Add a ValueInfoT template parameter to DenseMap so that it can properly make decisions
[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.1svn.
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-2007 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.1svn'
719 PACKAGE_STRING='llvm 2.1svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
892 AR
893 STRIP
894 CXXCPP
895 F77
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 ETAGSFLAGS
900 LLVMGCC
901 LLVMGXX
902 USE_UDIS86
903 HAVE_PTHREAD
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 LIBOBJS
926 LTLIBOBJS'
927 ac_subst_files=''
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 CPPFLAGS
935 CPP
936 CXX
937 CXXFLAGS
938 CCC
939 YACC
940 YFLAGS
941 CXXCPP
942 F77
943 FFLAGS'
944 ac_subdirs_all='projects/sample
945 projects/privbracket
946 projects/llvm-stacker
947 projects/llvm-test
948 projects/llvm-reopt
949 projects/llvm-gcc
950 projects/llvm-java
951 projects/llvm-tv
952 projects/llvm-poolalloc
953 projects/poolalloc
954 projects/llvm-kernel'
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
975
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006   # If the previous option needs an argument, assign it.
1007   if test -n "$ac_prev"; then
1008     eval $ac_prev=\$ac_option
1009     ac_prev=
1010     continue
1011   fi
1012
1013   case $ac_option in
1014   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015   *)    ac_optarg=yes ;;
1016   esac
1017
1018   # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020   case $ac_dashdash$ac_option in
1021   --)
1022     ac_dashdash=yes ;;
1023
1024   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025     ac_prev=bindir ;;
1026   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027     bindir=$ac_optarg ;;
1028
1029   -build | --build | --buil | --bui | --bu)
1030     ac_prev=build_alias ;;
1031   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032     build_alias=$ac_optarg ;;
1033
1034   -cache-file | --cache-file | --cache-fil | --cache-fi \
1035   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036     ac_prev=cache_file ;;
1037   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039     cache_file=$ac_optarg ;;
1040
1041   --config-cache | -C)
1042     cache_file=config.cache ;;
1043
1044   -datadir | --datadir | --datadi | --datad)
1045     ac_prev=datadir ;;
1046   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047     datadir=$ac_optarg ;;
1048
1049   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050   | --dataroo | --dataro | --datar)
1051     ac_prev=datarootdir ;;
1052   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054     datarootdir=$ac_optarg ;;
1055
1056   -disable-* | --disable-*)
1057     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1063     eval enable_$ac_feature=no ;;
1064
1065   -docdir | --docdir | --docdi | --doc | --do)
1066     ac_prev=docdir ;;
1067   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068     docdir=$ac_optarg ;;
1069
1070   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071     ac_prev=dvidir ;;
1072   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073     dvidir=$ac_optarg ;;
1074
1075   -enable-* | --enable-*)
1076     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080    { (exit 1); exit 1; }; }
1081     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082     eval enable_$ac_feature=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276       { echo "$as_me: error: invalid package name: $ac_package" >&2
1277    { (exit 1); exit 1; }; }
1278     ac_package=`echo $ac_package| sed 's/-/_/g'`
1279     eval with_$ac_package=\$ac_optarg ;;
1280
1281   -without-* | --without-*)
1282     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid package name: $ac_package" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_package=`echo $ac_package | sed 's/-/_/g'`
1288     eval with_$ac_package=no ;;
1289
1290   --x)
1291     # Obsolete; use --with-x.
1292     with_x=yes ;;
1293
1294   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295   | --x-incl | --x-inc | --x-in | --x-i)
1296     ac_prev=x_includes ;;
1297   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299     x_includes=$ac_optarg ;;
1300
1301   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303     ac_prev=x_libraries ;;
1304   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306     x_libraries=$ac_optarg ;;
1307
1308   -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310    { (exit 1); exit 1; }; }
1311     ;;
1312
1313   *=*)
1314     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318    { (exit 1); exit 1; }; }
1319     eval $ac_envvar=\$ac_optarg
1320     export $ac_envvar ;;
1321
1322   *)
1323     # FIXME: should be removed in autoconf 3.0.
1324     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328     ;;
1329
1330   esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335   { echo "$as_me: error: missing argument to $ac_option" >&2
1336    { (exit 1); exit 1; }; }
1337 fi
1338
1339 # Be sure to have absolute directory names.
1340 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341                 datadir sysconfdir sharedstatedir localstatedir includedir \
1342                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343                 libdir localedir mandir
1344 do
1345   eval ac_val=\$$ac_var
1346   case $ac_val in
1347     [\\/$]* | ?:[\\/]* )  continue;;
1348     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349   esac
1350   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351    { (exit 1); exit 1; }; }
1352 done
1353
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1360
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363   if test "x$build_alias" = x; then
1364     cross_compiling=maybe
1365     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366     If a cross compiler is detected then cross compile mode will be used." >&2
1367   elif test "x$build_alias" != "x$host_alias"; then
1368     cross_compiling=yes
1369   fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381   { echo "$as_me: error: Working directory cannot be determined" >&2
1382    { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384   { echo "$as_me: error: pwd does not report name of working directory" >&2
1385    { (exit 1); exit 1; }; }
1386
1387
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390   ac_srcdir_defaulted=yes
1391   # Try the directory containing this script, then the parent directory.
1392   ac_confdir=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394          X"$0" : 'X\(//\)[^/]' \| \
1395          X"$0" : 'X\(//\)$' \| \
1396          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1397 echo X"$0" |
1398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)[^/].*/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)$/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\).*/{
1411             s//\1/
1412             q
1413           }
1414           s/.*/./; q'`
1415   srcdir=$ac_confdir
1416   if test ! -r "$srcdir/$ac_unique_file"; then
1417     srcdir=..
1418   fi
1419 else
1420   ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425    { (exit 1); exit 1; }; }
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430    { (exit 1); exit 1; }; }
1431         pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434   srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_env_${ac_var}_value=\$${ac_var}
1445   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1448
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453   # Omit some internal or obsolete options to make the list less imposing.
1454   # This message is too long to be a string in the A/UX 3.1 sh.
1455   cat <<_ACEOF
1456 \`configure' configures llvm 2.1svn to adapt to many kinds of systems.
1457
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE.  See below for descriptions of some of the useful variables.
1462
1463 Defaults for the options are specified in brackets.
1464
1465 Configuration:
1466   -h, --help              display this help and exit
1467       --help=short        display options specific to this package
1468       --help=recursive    display the short help of all the included packages
1469   -V, --version           display version information and exit
1470   -q, --quiet, --silent   do not print \`checking...' messages
1471       --cache-file=FILE   cache test results in FILE [disabled]
1472   -C, --config-cache      alias for \`--cache-file=config.cache'
1473   -n, --no-create         do not create output files
1474       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1475
1476 Installation directories:
1477   --prefix=PREFIX         install architecture-independent files in PREFIX
1478                           [$ac_default_prefix]
1479   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1480                           [PREFIX]
1481
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1486
1487 For better control, use the options below.
1488
1489 Fine tuning of the installation directories:
1490   --bindir=DIR           user executables [EPREFIX/bin]
1491   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1492   --libexecdir=DIR       program executables [EPREFIX/libexec]
1493   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1494   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1495   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1496   --libdir=DIR           object code libraries [EPREFIX/lib]
1497   --includedir=DIR       C header files [PREFIX/include]
1498   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1499   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1500   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1501   --infodir=DIR          info documentation [DATAROOTDIR/info]
1502   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1503   --mandir=DIR           man documentation [DATAROOTDIR/man]
1504   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1505   --htmldir=DIR          html documentation [DOCDIR]
1506   --dvidir=DIR           dvi documentation [DOCDIR]
1507   --pdfdir=DIR           pdf documentation [DOCDIR]
1508   --psdir=DIR            ps documentation [DOCDIR]
1509 _ACEOF
1510
1511   cat <<\_ACEOF
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516   --target=TARGET   configure for building compilers for TARGET [HOST]
1517 _ACEOF
1518 fi
1519
1520 if test -n "$ac_init_help"; then
1521   case $ac_init_help in
1522      short | recursive ) echo "Configuration of llvm 2.1svn:";;
1523    esac
1524   cat <<\_ACEOF
1525
1526 Optional Features:
1527   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529   --enable-optimized
1530   --enable-assertions
1531   --enable-expensive-checks
1532
1533   --enable-debug-runtime
1534   --enable-jit            Enable Just In Time Compiling (default is YES)
1535   --enable-doxygen        Build doxygen documentation (default is NO)
1536   --enable-threads        Use threads if available (default is YES)
1537   --enable-pic            Build LLVM with Position Independent Code (default
1538                           is NO)
1539   --enable-targets        Build specific host targets:
1540                           all,host-only,{target-name} (default=all)
1541   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1542                           %a (default is YES)
1543   --enable-ltdl-install   install libltdl
1544   --enable-shared[=PKGS]  build shared libraries
1545                           [default=enable_shared_default]
1546   --enable-static[=PKGS]  build static libraries
1547                           [default=enable_static_default]
1548   --enable-fast-install[=PKGS]
1549                           optimize for fast installation
1550                           [default=enable_Fast_install_default]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552
1553 Optional Packages:
1554   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1557                           searches PATH)
1558   --with-extra-options    Specify addtional options to compile LLVM with
1559   --with-tclinclude       directory where tcl headers are
1560   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1561   --with-pic              try to use only PIC/non-PIC objects [default=use
1562                           both]
1563   --with-tags[=TAGS]      include additional configurations [automatic]
1564   --with-udis86=<path>    Use udis86 external x86 disassembler library
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572               you have headers in a nonstandard directory <include dir>
1573   CPP         C preprocessor
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1577               the first program found out of: `bison -y', `byacc', `yacc'.
1578   YFLAGS      The list of arguments that will be passed by default to $YACC.
1579               This script will default YFLAGS to the empty string to avoid a
1580               default value of `-d' given by some make applications.
1581   CXXCPP      C++ preprocessor
1582   F77         Fortran 77 compiler command
1583   FFLAGS      Fortran 77 compiler flags
1584
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to <llvmbugs@cs.uiuc.edu>.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594   # If there are subdirs, report their specific --help.
1595   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596     test -d "$ac_dir" || continue
1597     ac_builddir=.
1598
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *)
1602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1603   # A ".." for each directory in $ac_dir_suffix.
1604   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1605   case $ac_top_builddir_sub in
1606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608   esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1614
1615 case $srcdir in
1616   .)  # We are building in place.
1617     ac_srcdir=.
1618     ac_top_srcdir=$ac_top_builddir_sub
1619     ac_abs_top_srcdir=$ac_pwd ;;
1620   [\\/]* | ?:[\\/]* )  # Absolute name.
1621     ac_srcdir=$srcdir$ac_dir_suffix;
1622     ac_top_srcdir=$srcdir
1623     ac_abs_top_srcdir=$srcdir ;;
1624   *) # Relative name.
1625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626     ac_top_srcdir=$ac_top_build_prefix$srcdir
1627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631     cd "$ac_dir" || { ac_status=$?; continue; }
1632     # Check for guested configure.
1633     if test -f "$ac_srcdir/configure.gnu"; then
1634       echo &&
1635       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636     elif test -f "$ac_srcdir/configure"; then
1637       echo &&
1638       $SHELL "$ac_srcdir/configure" --help=recursive
1639     else
1640       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641     fi || ac_status=$?
1642     cd "$ac_pwd" || { ac_status=$?; break; }
1643   done
1644 fi
1645
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648   cat <<\_ACEOF
1649 llvm configure 2.1svn
1650 generated by GNU Autoconf 2.60
1651
1652 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1653 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656
1657 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1658 _ACEOF
1659   exit
1660 fi
1661 cat >config.log <<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1664
1665 It was created by llvm $as_me 2.1svn, which was
1666 generated by GNU Autoconf 2.60.  Invocation command line was
1667
1668   $ $0 $@
1669
1670 _ACEOF
1671 exec 5>>config.log
1672 {
1673 cat <<_ASUNAME
1674 ## --------- ##
1675 ## Platform. ##
1676 ## --------- ##
1677
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1686
1687 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1688 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1691 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1692 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1693 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1694
1695 _ASUNAME
1696
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   echo "PATH: $as_dir"
1703 done
1704 IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 cat >&5 <<_ACEOF
1709
1710
1711 ## ----------- ##
1712 ## Core tests. ##
1713 ## ----------- ##
1714
1715 _ACEOF
1716
1717
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1723 ac_configure_args=
1724 ac_configure_args0=
1725 ac_configure_args1=
1726 ac_must_keep_next=false
1727 for ac_pass in 1 2
1728 do
1729   for ac_arg
1730   do
1731     case $ac_arg in
1732     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734     | -silent | --silent | --silen | --sile | --sil)
1735       continue ;;
1736     *\'*)
1737       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738     esac
1739     case $ac_pass in
1740     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741     2)
1742       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743       if test $ac_must_keep_next = true; then
1744         ac_must_keep_next=false # Got value, back to normal.
1745       else
1746         case $ac_arg in
1747           *=* | --config-cache | -C | -disable-* | --disable-* \
1748           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750           | -with-* | --with-* | -without-* | --without-* | --x)
1751             case "$ac_configure_args0 " in
1752               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753             esac
1754             ;;
1755           -* ) ac_must_keep_next=true ;;
1756         esac
1757       fi
1758       ac_configure_args="$ac_configure_args '$ac_arg'"
1759       ;;
1760     esac
1761   done
1762 done
1763 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log.  We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772   # Save into config.log some information that might help in debugging.
1773   {
1774     echo
1775
1776     cat <<\_ASBOX
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1780 _ASBOX
1781     echo
1782     # The following way of writing the cache mishandles newlines in values,
1783 (
1784   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785     eval ac_val=\$$ac_var
1786     case $ac_val in #(
1787     *${as_nl}*)
1788       case $ac_var in #(
1789       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1791       esac
1792       case $ac_var in #(
1793       _ | IFS | as_nl) ;; #(
1794       *) $as_unset $ac_var ;;
1795       esac ;;
1796     esac
1797   done
1798   (set) 2>&1 |
1799     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800     *${as_nl}ac_space=\ *)
1801       sed -n \
1802         "s/'\''/'\''\\\\'\'''\''/g;
1803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804       ;; #(
1805     *)
1806       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807       ;;
1808     esac |
1809     sort
1810 )
1811     echo
1812
1813     cat <<\_ASBOX
1814 ## ----------------- ##
1815 ## Output variables. ##
1816 ## ----------------- ##
1817 _ASBOX
1818     echo
1819     for ac_var in $ac_subst_vars
1820     do
1821       eval ac_val=\$$ac_var
1822       case $ac_val in
1823       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824       esac
1825       echo "$ac_var='\''$ac_val'\''"
1826     done | sort
1827     echo
1828
1829     if test -n "$ac_subst_files"; then
1830       cat <<\_ASBOX
1831 ## ------------------- ##
1832 ## File substitutions. ##
1833 ## ------------------- ##
1834 _ASBOX
1835       echo
1836       for ac_var in $ac_subst_files
1837       do
1838         eval ac_val=\$$ac_var
1839         case $ac_val in
1840         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841         esac
1842         echo "$ac_var='\''$ac_val'\''"
1843       done | sort
1844       echo
1845     fi
1846
1847     if test -s confdefs.h; then
1848       cat <<\_ASBOX
1849 ## ----------- ##
1850 ## confdefs.h. ##
1851 ## ----------- ##
1852 _ASBOX
1853       echo
1854       cat confdefs.h
1855       echo
1856     fi
1857     test "$ac_signal" != 0 &&
1858       echo "$as_me: caught signal $ac_signal"
1859     echo "$as_me: exit $exit_status"
1860   } >&5
1861   rm -f core *.core core.conftest.* &&
1862     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1863     exit $exit_status
1864 ' 0
1865 for ac_signal in 1 2 13 15; do
1866   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867 done
1868 ac_signal=0
1869
1870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1871 rm -f -r conftest* confdefs.h
1872
1873 # Predefined preprocessor variables.
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_NAME "$PACKAGE_NAME"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_STRING "$PACKAGE_STRING"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897 _ACEOF
1898
1899
1900 # Let the site file select an alternate cache file if it wants to.
1901 # Prefer explicitly selected file to automatically selected ones.
1902 if test -n "$CONFIG_SITE"; then
1903   set x "$CONFIG_SITE"
1904 elif test "x$prefix" != xNONE; then
1905   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1906 else
1907   set x "$ac_default_prefix/share/config.site" \
1908         "$ac_default_prefix/etc/config.site"
1909 fi
1910 shift
1911 for ac_site_file
1912 do
1913   if test -r "$ac_site_file"; then
1914     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1915 echo "$as_me: loading site script $ac_site_file" >&6;}
1916     sed 's/^/| /' "$ac_site_file" >&5
1917     . "$ac_site_file"
1918   fi
1919 done
1920
1921 if test -r "$cache_file"; then
1922   # Some versions of bash will fail to source /dev/null (special
1923   # files actually), so we avoid doing that.
1924   if test -f "$cache_file"; then
1925     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1926 echo "$as_me: loading cache $cache_file" >&6;}
1927     case $cache_file in
1928       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929       *)                      . "./$cache_file";;
1930     esac
1931   fi
1932 else
1933   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1934 echo "$as_me: creating cache $cache_file" >&6;}
1935   >$cache_file
1936 fi
1937
1938 # Check that the precious variables saved in the cache have kept the same
1939 # value.
1940 ac_cache_corrupted=false
1941 for ac_var in $ac_precious_vars; do
1942   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943   eval ac_new_set=\$ac_env_${ac_var}_set
1944   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1945   eval ac_new_val=\$ac_env_${ac_var}_value
1946   case $ac_old_set,$ac_new_set in
1947     set,)
1948       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950       ac_cache_corrupted=: ;;
1951     ,set)
1952       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954       ac_cache_corrupted=: ;;
1955     ,);;
1956     *)
1957       if test "x$ac_old_val" != "x$ac_new_val"; then
1958         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1961 echo "$as_me:   former value:  $ac_old_val" >&2;}
1962         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1963 echo "$as_me:   current value: $ac_new_val" >&2;}
1964         ac_cache_corrupted=:
1965       fi;;
1966   esac
1967   # Pass precious variables to config.status.
1968   if test "$ac_new_set" = set; then
1969     case $ac_new_val in
1970     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1971     *) ac_arg=$ac_var=$ac_new_val ;;
1972     esac
1973     case " $ac_configure_args " in
1974       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1975       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1976     esac
1977   fi
1978 done
1979 if $ac_cache_corrupted; then
1980   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1981 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1982   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1983 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984    { (exit 1); exit 1; }; }
1985 fi
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016
2017
2018
2019 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2020
2021
2022
2023
2024
2025
2026
2027 ac_aux_dir=
2028 for ac_dir in autoconf "$srcdir"/autoconf; do
2029   if test -f "$ac_dir/install-sh"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/install-sh -c"
2032     break
2033   elif test -f "$ac_dir/install.sh"; then
2034     ac_aux_dir=$ac_dir
2035     ac_install_sh="$ac_aux_dir/install.sh -c"
2036     break
2037   elif test -f "$ac_dir/shtool"; then
2038     ac_aux_dir=$ac_dir
2039     ac_install_sh="$ac_aux_dir/shtool install -c"
2040     break
2041   fi
2042 done
2043 if test -z "$ac_aux_dir"; then
2044   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2056
2057
2058
2059 if test ${srcdir} != "." ; then
2060   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2061     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2062 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2063    { (exit 1); exit 1; }; }
2064   fi
2065 fi
2066
2067 for i in `ls ${srcdir}/projects`
2068 do
2069   if test -d ${srcdir}/projects/${i} ; then
2070     case ${i} in
2071       CVS) ;;
2072       sample)       subdirs="$subdirs projects/sample"
2073     ;;
2074       privbracket)  subdirs="$subdirs projects/privbracket"
2075  ;;
2076       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2077  ;;
2078       llvm-test)    subdirs="$subdirs projects/llvm-test"
2079  ;;
2080       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2081 ;;
2082       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2083   ;;
2084       llvm-java)    subdirs="$subdirs projects/llvm-java"
2085  ;;
2086       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2087    ;;
2088       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2089  ;;
2090       poolalloc)    subdirs="$subdirs projects/poolalloc"
2091  ;;
2092       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2093  ;;
2094       *)
2095         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2096 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2097         ;;
2098     esac
2099   fi
2100 done
2101
2102
2103 # Make sure we can run config.sub.
2104 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2105   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 { echo "$as_me:$LINENO: checking build system type" >&5
2110 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2111 if test "${ac_cv_build+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   ac_build_alias=$build_alias
2115 test "x$ac_build_alias" = x &&
2116   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117 test "x$ac_build_alias" = x &&
2118   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120    { (exit 1); exit 1; }; }
2121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2122   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2124    { (exit 1); exit 1; }; }
2125
2126 fi
2127 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2128 echo "${ECHO_T}$ac_cv_build" >&6; }
2129 case $ac_cv_build in
2130 *-*-*) ;;
2131 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132 echo "$as_me: error: invalid value of canonical build" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 build=$ac_cv_build
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_build
2138 shift
2139 build_cpu=$1
2140 build_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 build_os=$*
2145 IFS=$ac_save_IFS
2146 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2147
2148
2149 { echo "$as_me:$LINENO: checking host system type" >&5
2150 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_host+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   if test "x$host_alias" = x; then
2155   ac_cv_host=$ac_cv_build
2156 else
2157   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161 fi
2162
2163 fi
2164 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165 echo "${ECHO_T}$ac_cv_host" >&6; }
2166 case $ac_cv_host in
2167 *-*-*) ;;
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169 echo "$as_me: error: invalid value of canonical host" >&2;}
2170    { (exit 1); exit 1; }; };;
2171 esac
2172 host=$ac_cv_host
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_host
2175 shift
2176 host_cpu=$1
2177 host_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 host_os=$*
2182 IFS=$ac_save_IFS
2183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2184
2185
2186 { echo "$as_me:$LINENO: checking target system type" >&5
2187 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_target+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test "x$target_alias" = x; then
2192   ac_cv_target=$ac_cv_host
2193 else
2194   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2195     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2197    { (exit 1); exit 1; }; }
2198 fi
2199
2200 fi
2201 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2202 echo "${ECHO_T}$ac_cv_target" >&6; }
2203 case $ac_cv_target in
2204 *-*-*) ;;
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2206 echo "$as_me: error: invalid value of canonical target" >&2;}
2207    { (exit 1); exit 1; }; };;
2208 esac
2209 target=$ac_cv_target
2210 ac_save_IFS=$IFS; IFS='-'
2211 set x $ac_cv_target
2212 shift
2213 target_cpu=$1
2214 target_vendor=$2
2215 shift; shift
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2218 target_os=$*
2219 IFS=$ac_save_IFS
2220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2221
2222
2223 # The aliases save the names the user supplied, while $host etc.
2224 # will get canonicalized.
2225 test -n "$target_alias" &&
2226   test "$program_prefix$program_suffix$program_transform_name" = \
2227     NONENONEs,x,x, &&
2228   program_prefix=${target_alias}-
2229
2230 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2231 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2232 if test "${llvm_cv_os_type+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   case $host in
2236   *-*-aix*)
2237     llvm_cv_link_all_option="-Wl,--whole-archive"
2238     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239     llvm_cv_os_type="AIX"
2240     llvm_cv_platform_type="Unix" ;;
2241   *-*-irix*)
2242     llvm_cv_link_all_option="-Wl,--whole-archive"
2243     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244     llvm_cv_os_type="IRIX"
2245     llvm_cv_platform_type="Unix" ;;
2246   *-*-cygwin*)
2247     llvm_cv_link_all_option="-Wl,--whole-archive"
2248     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249     llvm_cv_os_type="Cygwin"
2250     llvm_cv_platform_type="Unix" ;;
2251   *-*-darwin*)
2252     llvm_cv_link_all_option="-Wl,-all_load"
2253     llvm_cv_link_all_option="-Wl,-noall_load"
2254     llvm_cv_os_type="Darwin"
2255     llvm_cv_platform_type="Unix" ;;
2256   *-*-freebsd*)
2257     llvm_cv_link_all_option="-Wl,--whole-archive"
2258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259     llvm_cv_os_type="FreeBSD"
2260     llvm_cv_platform_type="Unix" ;;
2261   *-*-openbsd*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="OpenBSD"
2265     llvm_cv_platform_type="Unix" ;;
2266   *-*-netbsd*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="NetBSD"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-hpux*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="HP-UX"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-interix*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="Interix"
2280     llvm_cv_platform_type="Unix" ;;
2281   *-*-linux*)
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="Linux"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-solaris*)
2287     llvm_cv_link_all_option="-Wl,-z,allextract"
2288     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2289     llvm_cv_os_type="SunOS"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-win32*)
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="Win32"
2295     llvm_cv_platform_type="Win32" ;;
2296   *-*-mingw*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="MingW"
2300     llvm_cv_platform_type="Win32" ;;
2301   *)
2302     llvm_cv_link_all_option=""
2303     llvm_cv_no_link_all_option=""
2304     llvm_cv_os_type="Unknown"
2305     llvm_cv_platform_type="Unknown" ;;
2306 esac
2307 fi
2308 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2309 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2310
2311 if test "$llvm_cv_os_type" = "Unknown" ; then
2312   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2313 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 OS=$llvm_cv_os_type
2318
2319
2320 LINKALL=$llvm_cv_link_all_option
2321
2322 NOLINKALL=$llvm_cv_no_link_all_option
2323
2324
2325 case $llvm_cv_platform_type in
2326   Unix)
2327
2328 cat >>confdefs.h <<\_ACEOF
2329 #define LLVM_ON_UNIX 1
2330 _ACEOF
2331
2332     LLVM_ON_UNIX=1
2333
2334     LLVM_ON_WIN32=0
2335
2336     ;;
2337   Win32)
2338
2339 cat >>confdefs.h <<\_ACEOF
2340 #define LLVM_ON_WIN32 1
2341 _ACEOF
2342
2343     LLVM_ON_UNIX=0
2344
2345     LLVM_ON_WIN32=1
2346
2347     ;;
2348 esac
2349
2350 { echo "$as_me:$LINENO: checking target architecture" >&5
2351 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2352 if test "${llvm_cv_target_arch+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   case $target in
2356   i?86-*)                 llvm_cv_target_arch="x86" ;;
2357   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2358   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2359   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2360   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2361   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2362   arm-*)                  llvm_cv_target_arch="ARM" ;;
2363   mips-*)                 llvm_cv_target_arch="Mips" ;;
2364   *)                      llvm_cv_target_arch="Unknown" ;;
2365 esac
2366 fi
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2369
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2373 fi
2374
2375 ARCH=$llvm_cv_target_arch
2376
2377
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383 if test -n "$ac_tool_prefix"; then
2384   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$CC"; then
2392   ac_cv_prog_CC="$CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2401     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413   { echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6; }
2415 else
2416   { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2418 fi
2419
2420
2421 fi
2422 if test -z "$ac_cv_prog_CC"; then
2423   ac_ct_CC=$CC
2424   # Extract the first word of "gcc", so it can be a program name with args.
2425 set dummy gcc; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   if test -n "$ac_ct_CC"; then
2432   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439   for ac_exec_ext in '' $ac_executable_extensions; do
2440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2441     ac_cv_prog_ac_ct_CC="gcc"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446 done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6; }
2455 else
2456   { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458 fi
2459
2460   if test "x$ac_ct_CC" = x; then
2461     CC=""
2462   else
2463     case $cross_compiling:$ac_tool_warned in
2464 yes:)
2465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2466 whose name does not start with the host triplet.  If you think this
2467 configuration is useful to you, please write to autoconf@gnu.org." >&5
2468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2469 whose name does not start with the host triplet.  If you think this
2470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2471 ac_tool_warned=yes ;;
2472 esac
2473     CC=$ac_ct_CC
2474   fi
2475 else
2476   CC="$ac_cv_prog_CC"
2477 fi
2478
2479 if test -z "$CC"; then
2480           if test -n "$ac_tool_prefix"; then
2481     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}cc; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_CC+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   if test -n "$CC"; then
2489   ac_cv_prog_CC="$CC" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496   for ac_exec_ext in '' $ac_executable_extensions; do
2497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2498     ac_cv_prog_CC="${ac_tool_prefix}cc"
2499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 CC=$ac_cv_prog_CC
2509 if test -n "$CC"; then
2510   { echo "$as_me:$LINENO: result: $CC" >&5
2511 echo "${ECHO_T}$CC" >&6; }
2512 else
2513   { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2515 fi
2516
2517
2518   fi
2519 fi
2520 if test -z "$CC"; then
2521   # Extract the first word of "cc", so it can be a program name with args.
2522 set dummy cc; ac_word=$2
2523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2525 if test "${ac_cv_prog_CC+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test -n "$CC"; then
2529   ac_cv_prog_CC="$CC" # Let the user override the test.
2530 else
2531   ac_prog_rejected=no
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   for ac_exec_ext in '' $ac_executable_extensions; do
2538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2539     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2540        ac_prog_rejected=yes
2541        continue
2542      fi
2543     ac_cv_prog_CC="cc"
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 if test $ac_prog_rejected = yes; then
2552   # We found a bogon in the path, so make sure we never use it.
2553   set dummy $ac_cv_prog_CC
2554   shift
2555   if test $# != 0; then
2556     # We chose a different compiler from the bogus one.
2557     # However, it has the same basename, so the bogon will be chosen
2558     # first if we set CC to just the basename; use the full file name.
2559     shift
2560     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561   fi
2562 fi
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567   { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2569 else
2570   { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2572 fi
2573
2574
2575 fi
2576 if test -z "$CC"; then
2577   if test -n "$ac_tool_prefix"; then
2578   for ac_prog in cl.exe
2579   do
2580     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_CC+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$CC"; then
2588   ac_cv_prog_CC="$CC" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 CC=$ac_cv_prog_CC
2608 if test -n "$CC"; then
2609   { echo "$as_me:$LINENO: result: $CC" >&5
2610 echo "${ECHO_T}$CC" >&6; }
2611 else
2612   { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2614 fi
2615
2616
2617     test -n "$CC" && break
2618   done
2619 fi
2620 if test -z "$CC"; then
2621   ac_ct_CC=$CC
2622   for ac_prog in cl.exe
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_CC"; then
2632   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_ac_ct_CC="$ac_prog"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652 if test -n "$ac_ct_CC"; then
2653   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2654 echo "${ECHO_T}$ac_ct_CC" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660
2661   test -n "$ac_ct_CC" && break
2662 done
2663
2664   if test "x$ac_ct_CC" = x; then
2665     CC=""
2666   else
2667     case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2670 whose name does not start with the host triplet.  If you think this
2671 configuration is useful to you, please write to autoconf@gnu.org." >&5
2672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2673 whose name does not start with the host triplet.  If you think this
2674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2675 ac_tool_warned=yes ;;
2676 esac
2677     CC=$ac_ct_CC
2678   fi
2679 fi
2680
2681 fi
2682
2683
2684 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&2;}
2688    { (exit 1); exit 1; }; }
2689
2690 # Provide some information about the compiler.
2691 echo "$as_me:$LINENO: checking for C compiler version" >&5
2692 ac_compiler=`set X $ac_compile; echo $2`
2693 { (ac_try="$ac_compiler --version >&5"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699   (eval "$ac_compiler --version >&5") 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }
2703 { (ac_try="$ac_compiler -v >&5"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709   (eval "$ac_compiler -v >&5") 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }
2713 { (ac_try="$ac_compiler -V >&5"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compiler -V >&5") 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }
2723
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730
2731 int
2732 main ()
2733 {
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 ac_clean_files_save=$ac_clean_files
2740 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2741 # Try to create an executable without -o first, disregard a.out.
2742 # It will help us diagnose broken compilers, and finding out an intuition
2743 # of exeext.
2744 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2745 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2746 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2747 #
2748 # List of possible output files, starting from the most likely.
2749 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2750 # only as a last resort.  b.out is created by i960 compilers.
2751 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2752 #
2753 # The IRIX 6 linker writes into existing files which may not be
2754 # executable, retaining their permissions.  Remove them first so a
2755 # subsequent execution test works.
2756 ac_rmfiles=
2757 for ac_file in $ac_files
2758 do
2759   case $ac_file in
2760     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2761     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762   esac
2763 done
2764 rm -f $ac_rmfiles
2765
2766 if { (ac_try="$ac_link_default"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_link_default") 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; then
2776   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2778 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2779 # so that the user can short-circuit this test for compilers unknown to
2780 # Autoconf.
2781 for ac_file in $ac_files
2782 do
2783   test -f "$ac_file" || continue
2784   case $ac_file in
2785     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2786         ;;
2787     [ab].out )
2788         # We found the default executable, but exeext='' is most
2789         # certainly right.
2790         break;;
2791     *.* )
2792         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2793         then :; else
2794            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795         fi
2796         # We set ac_cv_exeext here because the later test for it is not
2797         # safe: cross compilers may not add the suffix if given an `-o'
2798         # argument, so we may need to know it at that point already.
2799         # Even if this section looks crufty: it has the advantage of
2800         # actually working.
2801         break;;
2802     * )
2803         break;;
2804   esac
2805 done
2806 test "$ac_cv_exeext" = no && ac_cv_exeext=
2807
2808 else
2809   echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&2;}
2816    { (exit 77); exit 77; }; }
2817 fi
2818
2819 ac_exeext=$ac_cv_exeext
2820 { echo "$as_me:$LINENO: result: $ac_file" >&5
2821 echo "${ECHO_T}$ac_file" >&6; }
2822
2823 # Check that the compiler produces executables we can run.  If not, either
2824 # the compiler is broken, or we cross compile.
2825 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2826 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2827 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2828 # If not cross compiling, check that we can run a simple program.
2829 if test "$cross_compiling" != yes; then
2830   if { ac_try='./$ac_file'
2831   { (case "(($ac_try" in
2832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833   *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836   (eval "$ac_try") 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840     cross_compiling=no
2841   else
2842     if test "$cross_compiling" = maybe; then
2843         cross_compiling=yes
2844     else
2845         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2846 If you meant to cross compile, use \`--host'.
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&2;}
2851    { (exit 1); exit 1; }; }
2852     fi
2853   fi
2854 fi
2855 { echo "$as_me:$LINENO: result: yes" >&5
2856 echo "${ECHO_T}yes" >&6; }
2857
2858 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2859 ac_clean_files=$ac_clean_files_save
2860 # Check that the compiler produces executables we can run.  If not, either
2861 # the compiler is broken, or we cross compile.
2862 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2863 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2864 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2865 echo "${ECHO_T}$cross_compiling" >&6; }
2866
2867 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2868 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2869 if { (ac_try="$ac_link"
2870 case "(($ac_try" in
2871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872   *) ac_try_echo=$ac_try;;
2873 esac
2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875   (eval "$ac_link") 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }; then
2879   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2880 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2881 # work properly (i.e., refer to `conftest.exe'), while it won't with
2882 # `rm'.
2883 for ac_file in conftest.exe conftest conftest.*; do
2884   test -f "$ac_file" || continue
2885   case $ac_file in
2886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2887     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888           break;;
2889     * ) break;;
2890   esac
2891 done
2892 else
2893   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&2;}
2897    { (exit 1); exit 1; }; }
2898 fi
2899
2900 rm -f conftest$ac_cv_exeext
2901 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2902 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2903
2904 rm -f conftest.$ac_ext
2905 EXEEXT=$ac_cv_exeext
2906 ac_exeext=$EXEEXT
2907 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2908 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2909 if test "${ac_cv_objext+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918
2919 int
2920 main ()
2921 {
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.o conftest.obj
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compile") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; then
2938   for ac_file in conftest.o conftest.obj conftest.*; do
2939   test -f "$ac_file" || continue;
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2942     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943        break;;
2944   esac
2945 done
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2951 See \`config.log' for more details." >&5
2952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&2;}
2954    { (exit 1); exit 1; }; }
2955 fi
2956
2957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2958 fi
2959 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2960 echo "${ECHO_T}$ac_cv_objext" >&6; }
2961 OBJEXT=$ac_cv_objext
2962 ac_objext=$OBJEXT
2963 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978 #ifndef __GNUC__
2979        choke me
2980 #endif
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_compile") 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } &&
3000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3001   { (case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_try") 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016   (eval "$ac_try") 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; }; then
3020   ac_compiler_gnu=yes
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025         ac_compiler_gnu=no
3026 fi
3027
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3030
3031 fi
3032 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3033 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3034 GCC=`test $ac_compiler_gnu = yes && echo yes`
3035 ac_test_CFLAGS=${CFLAGS+set}
3036 ac_save_CFLAGS=$CFLAGS
3037 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3038 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_cc_g+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   ac_save_c_werror_flag=$ac_c_werror_flag
3043    ac_c_werror_flag=yes
3044    ac_cv_prog_cc_g=no
3045    CFLAGS="-g"
3046    cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052
3053 int
3054 main ()
3055 {
3056
3057   ;
3058   return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_compile") 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3076   { (case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_try") 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; } &&
3085          { ac_try='test -s conftest.$ac_objext'
3086   { (case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_try") 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; }; then
3095   ac_cv_prog_cc_g=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100         CFLAGS=""
3101       cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   :
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155         ac_c_werror_flag=$ac_save_c_werror_flag
3156          CFLAGS="-g"
3157          cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_try") 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; }; then
3206   ac_cv_prog_cc_g=yes
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211
3212 fi
3213
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3216
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 fi
3219
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221    ac_c_werror_flag=$ac_save_c_werror_flag
3222 fi
3223 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3224 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3225 if test "$ac_test_CFLAGS" = set; then
3226   CFLAGS=$ac_save_CFLAGS
3227 elif test $ac_cv_prog_cc_g = yes; then
3228   if test "$GCC" = yes; then
3229     CFLAGS="-g -O2"
3230   else
3231     CFLAGS="-g"
3232   fi
3233 else
3234   if test "$GCC" = yes; then
3235     CFLAGS="-O2"
3236   else
3237     CFLAGS=
3238   fi
3239 fi
3240 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3241 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3242 if test "${ac_cv_prog_cc_c89+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   ac_cv_prog_cc_c89=no
3246 ac_save_CC=$CC
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253 #include <stdarg.h>
3254 #include <stdio.h>
3255 #include <sys/types.h>
3256 #include <sys/stat.h>
3257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3258 struct buf { int x; };
3259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260 static char *e (p, i)
3261      char **p;
3262      int i;
3263 {
3264   return p[i];
3265 }
3266 static char *f (char * (*g) (char **, int), char **p, ...)
3267 {
3268   char *s;
3269   va_list v;
3270   va_start (v,p);
3271   s = g (p, va_arg (v,int));
3272   va_end (v);
3273   return s;
3274 }
3275
3276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3277    function prototypes and stuff, but not '\xHH' hex character constants.
3278    These don't provoke an error unfortunately, instead are silently treated
3279    as 'x'.  The following induces an error, until -std is added to get
3280    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3281    array size at least.  It's necessary to write '\x00'==0 to get something
3282    that's true only with -std.  */
3283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3284
3285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286    inside strings and character constants.  */
3287 #define FOO(x) 'x'
3288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3289
3290 int test (int i, double x);
3291 struct s1 {int (*f) (int a);};
3292 struct s2 {int (*f) (double a);};
3293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3294 int argc;
3295 char **argv;
3296 int
3297 main ()
3298 {
3299 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3306 do
3307   CC="$ac_save_CC $ac_arg"
3308   rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_compile") 2>conftest.er1
3316   ac_status=$?
3317   grep -v '^ *+' conftest.er1 >conftest.err
3318   rm -f conftest.er1
3319   cat conftest.err >&5
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); } &&
3322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3323   { (case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_try") 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; } &&
3332          { ac_try='test -s conftest.$ac_objext'
3333   { (case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338   (eval "$ac_try") 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }; }; then
3342   ac_cv_prog_cc_c89=$ac_arg
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347
3348 fi
3349
3350 rm -f core conftest.err conftest.$ac_objext
3351   test "x$ac_cv_prog_cc_c89" != "xno" && break
3352 done
3353 rm -f conftest.$ac_ext
3354 CC=$ac_save_CC
3355
3356 fi
3357 # AC_CACHE_VAL
3358 case "x$ac_cv_prog_cc_c89" in
3359   x)
3360     { echo "$as_me:$LINENO: result: none needed" >&5
3361 echo "${ECHO_T}none needed" >&6; } ;;
3362   xno)
3363     { echo "$as_me:$LINENO: result: unsupported" >&5
3364 echo "${ECHO_T}unsupported" >&6; } ;;
3365   *)
3366     CC="$CC $ac_cv_prog_cc_c89"
3367     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3369 esac
3370
3371
3372 ac_ext=c
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377
3378
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3385 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3388   CPP=
3389 fi
3390 if test -z "$CPP"; then
3391   if test "${ac_cv_prog_CPP+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394       # Double quotes because CPP needs to be expanded
3395     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3396     do
3397       ac_preproc_ok=false
3398 for ac_c_preproc_warn_flag in '' yes
3399 do
3400   # Use a header file that comes with gcc, so configuring glibc
3401   # with a fresh cross-compiler works.
3402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403   # <limits.h> exists even on freestanding compilers.
3404   # On the NeXT, cc -E runs the code through the compiler's parser,
3405   # not just through cpp. "Syntax error" is here to catch this case.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #ifdef __STDC__
3413 # include <limits.h>
3414 #else
3415 # include <assert.h>
3416 #endif
3417                      Syntax error
3418 _ACEOF
3419 if { (ac_try="$ac_cpp conftest.$ac_ext"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } >/dev/null; then
3432   if test -s conftest.err; then
3433     ac_cpp_err=$ac_c_preproc_warn_flag
3434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435   else
3436     ac_cpp_err=
3437   fi
3438 else
3439   ac_cpp_err=yes
3440 fi
3441 if test -z "$ac_cpp_err"; then
3442   :
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Broken: fails on valid input.
3448 continue
3449 fi
3450
3451 rm -f conftest.err conftest.$ac_ext
3452
3453   # OK, works on sane cases.  Now check whether nonexistent headers
3454   # can be detected and how.
3455   cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461 #include <ac_nonexistent.h>
3462 _ACEOF
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } >/dev/null; then
3476   if test -s conftest.err; then
3477     ac_cpp_err=$ac_c_preproc_warn_flag
3478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479   else
3480     ac_cpp_err=
3481   fi
3482 else
3483   ac_cpp_err=yes
3484 fi
3485 if test -z "$ac_cpp_err"; then
3486   # Broken: success on invalid input.
3487 continue
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492   # Passes both tests.
3493 ac_preproc_ok=:
3494 break
3495 fi
3496
3497 rm -f conftest.err conftest.$ac_ext
3498
3499 done
3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501 rm -f conftest.err conftest.$ac_ext
3502 if $ac_preproc_ok; then
3503   break
3504 fi
3505
3506     done
3507     ac_cv_prog_CPP=$CPP
3508
3509 fi
3510   CPP=$ac_cv_prog_CPP
3511 else
3512   ac_cv_prog_CPP=$CPP
3513 fi
3514 { echo "$as_me:$LINENO: result: $CPP" >&5
3515 echo "${ECHO_T}$CPP" >&6; }
3516 ac_preproc_ok=false
3517 for ac_c_preproc_warn_flag in '' yes
3518 do
3519   # Use a header file that comes with gcc, so configuring glibc
3520   # with a fresh cross-compiler works.
3521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3522   # <limits.h> exists even on freestanding compilers.
3523   # On the NeXT, cc -E runs the code through the compiler's parser,
3524   # not just through cpp. "Syntax error" is here to catch this case.
3525   cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531 #ifdef __STDC__
3532 # include <limits.h>
3533 #else
3534 # include <assert.h>
3535 #endif
3536                      Syntax error
3537 _ACEOF
3538 if { (ac_try="$ac_cpp conftest.$ac_ext"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } >/dev/null; then
3551   if test -s conftest.err; then
3552     ac_cpp_err=$ac_c_preproc_warn_flag
3553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554   else
3555     ac_cpp_err=
3556   fi
3557 else
3558   ac_cpp_err=yes
3559 fi
3560 if test -z "$ac_cpp_err"; then
3561   :
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566   # Broken: fails on valid input.
3567 continue
3568 fi
3569
3570 rm -f conftest.err conftest.$ac_ext
3571
3572   # OK, works on sane cases.  Now check whether nonexistent headers
3573   # can be detected and how.
3574   cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h.  */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h.  */
3580 #include <ac_nonexistent.h>
3581 _ACEOF
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589   ac_status=$?
3590   grep -v '^ *+' conftest.er1 >conftest.err
3591   rm -f conftest.er1
3592   cat conftest.err >&5
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); } >/dev/null; then
3595   if test -s conftest.err; then
3596     ac_cpp_err=$ac_c_preproc_warn_flag
3597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598   else
3599     ac_cpp_err=
3600   fi
3601 else
3602   ac_cpp_err=yes
3603 fi
3604 if test -z "$ac_cpp_err"; then
3605   # Broken: success on invalid input.
3606 continue
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611   # Passes both tests.
3612 ac_preproc_ok=:
3613 break
3614 fi
3615
3616 rm -f conftest.err conftest.$ac_ext
3617
3618 done
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then
3622   :
3623 else
3624   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3625 See \`config.log' for more details." >&5
3626 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637
3638 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3639 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3640 if test "${ac_cv_path_GREP+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   # Extract the first word of "grep ggrep" to use in msg output
3644 if test -z "$GREP"; then
3645 set dummy grep ggrep; ac_prog_name=$2
3646 if test "${ac_cv_path_GREP+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   ac_path_GREP_found=false
3650 # Loop through the user's path and test for each of PROGNAME-LIST
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3653 do
3654   IFS=$as_save_IFS
3655   test -z "$as_dir" && as_dir=.
3656   for ac_prog in grep ggrep; do
3657   for ac_exec_ext in '' $ac_executable_extensions; do
3658     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3659     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3660     # Check for GNU ac_path_GREP and select it if it is found.
3661   # Check for GNU $ac_path_GREP
3662 case `"$ac_path_GREP" --version 2>&1` in
3663 *GNU*)
3664   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3665 *)
3666   ac_count=0
3667   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3668   while :
3669   do
3670     cat "conftest.in" "conftest.in" >"conftest.tmp"
3671     mv "conftest.tmp" "conftest.in"
3672     cp "conftest.in" "conftest.nl"
3673     echo 'GREP' >> "conftest.nl"
3674     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3676     ac_count=`expr $ac_count + 1`
3677     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3678       # Best one so far, save it but keep looking for a better one
3679       ac_cv_path_GREP="$ac_path_GREP"
3680       ac_path_GREP_max=$ac_count
3681     fi
3682     # 10*(2^10) chars as input seems more than enough
3683     test $ac_count -gt 10 && break
3684   done
3685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3686 esac
3687
3688
3689     $ac_path_GREP_found && break 3
3690   done
3691 done
3692
3693 done
3694 IFS=$as_save_IFS
3695
3696
3697 fi
3698
3699 GREP="$ac_cv_path_GREP"
3700 if test -z "$GREP"; then
3701   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3702 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3703    { (exit 1); exit 1; }; }
3704 fi
3705
3706 else
3707   ac_cv_path_GREP=$GREP
3708 fi
3709
3710
3711 fi
3712 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3713 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3714  GREP="$ac_cv_path_GREP"
3715
3716
3717 { echo "$as_me:$LINENO: checking for egrep" >&5
3718 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3719 if test "${ac_cv_path_EGREP+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3723    then ac_cv_path_EGREP="$GREP -E"
3724    else
3725      # Extract the first word of "egrep" to use in msg output
3726 if test -z "$EGREP"; then
3727 set dummy egrep; ac_prog_name=$2
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   ac_path_EGREP_found=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_prog in egrep; do
3739   for ac_exec_ext in '' $ac_executable_extensions; do
3740     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3741     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3742     # Check for GNU ac_path_EGREP and select it if it is found.
3743   # Check for GNU $ac_path_EGREP
3744 case `"$ac_path_EGREP" --version 2>&1` in
3745 *GNU*)
3746   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3747 *)
3748   ac_count=0
3749   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3750   while :
3751   do
3752     cat "conftest.in" "conftest.in" >"conftest.tmp"
3753     mv "conftest.tmp" "conftest.in"
3754     cp "conftest.in" "conftest.nl"
3755     echo 'EGREP' >> "conftest.nl"
3756     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758     ac_count=`expr $ac_count + 1`
3759     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760       # Best one so far, save it but keep looking for a better one
3761       ac_cv_path_EGREP="$ac_path_EGREP"
3762       ac_path_EGREP_max=$ac_count
3763     fi
3764     # 10*(2^10) chars as input seems more than enough
3765     test $ac_count -gt 10 && break
3766   done
3767   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 esac
3769
3770
3771     $ac_path_EGREP_found && break 3
3772   done
3773 done
3774
3775 done
3776 IFS=$as_save_IFS
3777
3778
3779 fi
3780
3781 EGREP="$ac_cv_path_EGREP"
3782 if test -z "$EGREP"; then
3783   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3784 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3785    { (exit 1); exit 1; }; }
3786 fi
3787
3788 else
3789   ac_cv_path_EGREP=$EGREP
3790 fi
3791
3792
3793    fi
3794 fi
3795 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3796 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3797  EGREP="$ac_cv_path_EGREP"
3798
3799
3800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3802 if test "${ac_cv_header_stdc+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h.  */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h.  */
3811 #include <stdlib.h>
3812 #include <stdarg.h>
3813 #include <string.h>
3814 #include <float.h>
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_compile") 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } &&
3838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839   { (case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_try") 2>&5
3845   ac_status=$?
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); }; } &&
3848          { ac_try='test -s conftest.$ac_objext'
3849   { (case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854   (eval "$ac_try") 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); }; }; then
3858   ac_cv_header_stdc=yes
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863         ac_cv_header_stdc=no
3864 fi
3865
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867
3868 if test $ac_cv_header_stdc = yes; then
3869   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 #include <string.h>
3877
3878 _ACEOF
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880   $EGREP "memchr" >/dev/null 2>&1; then
3881   :
3882 else
3883   ac_cv_header_stdc=no
3884 fi
3885 rm -f conftest*
3886
3887 fi
3888
3889 if test $ac_cv_header_stdc = yes; then
3890   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #include <stdlib.h>
3898
3899 _ACEOF
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901   $EGREP "free" >/dev/null 2>&1; then
3902   :
3903 else
3904   ac_cv_header_stdc=no
3905 fi
3906 rm -f conftest*
3907
3908 fi
3909
3910 if test $ac_cv_header_stdc = yes; then
3911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912   if test "$cross_compiling" = yes; then
3913   :
3914 else
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <ctype.h>
3922 #include <stdlib.h>
3923 #if ((' ' & 0x0FF) == 0x020)
3924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926 #else
3927 # define ISLOWER(c) \
3928                    (('a' <= (c) && (c) <= 'i') \
3929                      || ('j' <= (c) && (c) <= 'r') \
3930                      || ('s' <= (c) && (c) <= 'z'))
3931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3932 #endif
3933
3934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935 int
3936 main ()
3937 {
3938   int i;
3939   for (i = 0; i < 256; i++)
3940     if (XOR (islower (i), ISLOWER (i))
3941         || toupper (i) != TOUPPER (i))
3942       return 2;
3943   return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest$ac_exeext
3947 if { (ac_try="$ac_link"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953   (eval "$ac_link") 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3957   { (case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_try") 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; }; then
3966   :
3967 else
3968   echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ( exit $ac_status )
3973 ac_cv_header_stdc=no
3974 fi
3975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3976 fi
3977
3978
3979 fi
3980 fi
3981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3983 if test $ac_cv_header_stdc = yes; then
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define STDC_HEADERS 1
3987 _ACEOF
3988
3989 fi
3990
3991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4002                   inttypes.h stdint.h unistd.h
4003 do
4004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h.  */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h.  */
4016 $ac_includes_default
4017
4018 #include <$ac_header>
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4022 case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027   (eval "$ac_compile") 2>conftest.er1
4028   ac_status=$?
4029   grep -v '^ *+' conftest.er1 >conftest.err
4030   rm -f conftest.er1
4031   cat conftest.err >&5
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } &&
4034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4035   { (case "(($ac_try" in
4036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037   *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040   (eval "$ac_try") 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; } &&
4044          { ac_try='test -s conftest.$ac_objext'
4045   { (case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050   (eval "$ac_try") 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }; }; then
4054   eval "$as_ac_Header=yes"
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059         eval "$as_ac_Header=no"
4060 fi
4061
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 ac_res=`eval echo '${'$as_ac_Header'}'`
4065                { echo "$as_me:$LINENO: result: $ac_res" >&5
4066 echo "${ECHO_T}$ac_res" >&6; }
4067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4068   cat >>confdefs.h <<_ACEOF
4069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4070 _ACEOF
4071
4072 fi
4073
4074 done
4075
4076
4077 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4078 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4079 if test "${ac_cv_c_bigendian+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   # See if sys/param.h defines the BYTE_ORDER macro.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089 #include <sys/types.h>
4090 #include <sys/param.h>
4091
4092 int
4093 main ()
4094 {
4095 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4096  bogus endian macros
4097 #endif
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110   (eval "$ac_compile") 2>conftest.er1
4111   ac_status=$?
4112   grep -v '^ *+' conftest.er1 >conftest.err
4113   rm -f conftest.er1
4114   cat conftest.err >&5
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118   { (case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_try") 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; } &&
4127          { ac_try='test -s conftest.$ac_objext'
4128   { (case "(($ac_try" in
4129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130   *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133   (eval "$ac_try") 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; }; then
4137   # It does; now see whether it defined to BIG_ENDIAN or not.
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 #include <sys/types.h>
4145 #include <sys/param.h>
4146
4147 int
4148 main ()
4149 {
4150 #if BYTE_ORDER != BIG_ENDIAN
4151  not big endian
4152 #endif
4153
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4166   ac_status=$?
4167   grep -v '^ *+' conftest.er1 >conftest.err
4168   rm -f conftest.er1
4169   cat conftest.err >&5
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); } &&
4172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4173   { (case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_try") 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; } &&
4182          { ac_try='test -s conftest.$ac_objext'
4183   { (case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188   (eval "$ac_try") 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192   ac_cv_c_bigendian=yes
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197         ac_cv_c_bigendian=no
4198 fi
4199
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         # It does not; compile a test program.
4206 if test "$cross_compiling" = yes; then
4207   # try to guess the endianness by grepping values into an object file
4208   ac_cv_c_bigendian=unknown
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4221 int
4222 main ()
4223 {
4224  _ascii (); _ebcdic ();
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (ac_try="$ac_compile"
4231 case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_compile") 2>conftest.er1
4237   ac_status=$?
4238   grep -v '^ *+' conftest.er1 >conftest.err
4239   rm -f conftest.er1
4240   cat conftest.err >&5
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } &&
4243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4244   { (case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_try") 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; } &&
4253          { ac_try='test -s conftest.$ac_objext'
4254   { (case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259   (eval "$ac_try") 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4264   ac_cv_c_bigendian=yes
4265 fi
4266 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4267   if test "$ac_cv_c_bigendian" = unknown; then
4268     ac_cv_c_bigendian=no
4269   else
4270     # finding both strings is unlikely to happen, but who knows?
4271     ac_cv_c_bigendian=unknown
4272   fi
4273 fi
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278
4279 fi
4280
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 else
4283   cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h.  */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h.  */
4289 $ac_includes_default
4290 int
4291 main ()
4292 {
4293
4294   /* Are we little or big endian?  From Harbison&Steele.  */
4295   union
4296   {
4297     long int l;
4298     char c[sizeof (long int)];
4299   } u;
4300   u.l = 1;
4301   return u.c[sizeof (long int) - 1] == 1;
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest$ac_exeext
4308 if { (ac_try="$ac_link"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_link") 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318   { (case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_try") 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   ac_cv_c_bigendian=no
4328 else
4329   echo "$as_me: program exited with status $ac_status" >&5
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 ( exit $ac_status )
4334 ac_cv_c_bigendian=yes
4335 fi
4336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337 fi
4338
4339
4340 fi
4341
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4345 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4346 case $ac_cv_c_bigendian in
4347   yes)
4348     ENDIAN=big
4349  ;;
4350   no)
4351     ENDIAN=little
4352  ;;
4353   *)
4354     { { echo "$as_me:$LINENO: error: unknown endianness
4355 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4356 echo "$as_me: error: unknown endianness
4357 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4358    { (exit 1); exit 1; }; } ;;
4359 esac
4360
4361
4362 if test "$cross_compiling" = yes; then
4363   LLVM_CROSS_COMPILING=1
4364
4365
4366 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4367 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4368 if test "${ac_cv_build_exeext+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4372   ac_cv_build_exeext=.exe
4373 else
4374   ac_build_prefix=${build_alias}-
4375
4376   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4377 set dummy ${ac_build_prefix}gcc; ac_word=$2
4378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   if test -n "$BUILD_CC"; then
4384   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389   IFS=$as_save_IFS
4390   test -z "$as_dir" && as_dir=.
4391   for ac_exec_ext in '' $ac_executable_extensions; do
4392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4393     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395     break 2
4396   fi
4397 done
4398 done
4399 IFS=$as_save_IFS
4400
4401 fi
4402 fi
4403 BUILD_CC=$ac_cv_prog_BUILD_CC
4404 if test -n "$BUILD_CC"; then
4405   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4406 echo "${ECHO_T}$BUILD_CC" >&6; }
4407 else
4408   { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4410 fi
4411
4412
4413   if test -z "$BUILD_CC"; then
4414      # Extract the first word of "gcc", so it can be a program name with args.
4415 set dummy gcc; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   if test -n "$BUILD_CC"; then
4422   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431     ac_cv_prog_BUILD_CC="gcc"
4432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 BUILD_CC=$ac_cv_prog_BUILD_CC
4442 if test -n "$BUILD_CC"; then
4443   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444 echo "${ECHO_T}$BUILD_CC" >&6; }
4445 else
4446   { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4448 fi
4449
4450
4451      if test -z "$BUILD_CC"; then
4452        # Extract the first word of "cc", so it can be a program name with args.
4453 set dummy cc; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test -n "$BUILD_CC"; then
4460   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4461 else
4462   ac_prog_rejected=no
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   for ac_exec_ext in '' $ac_executable_extensions; do
4469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4470     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4471        ac_prog_rejected=yes
4472        continue
4473      fi
4474     ac_cv_prog_BUILD_CC="cc"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 if test $ac_prog_rejected = yes; then
4483   # We found a bogon in the path, so make sure we never use it.
4484   set dummy $ac_cv_prog_BUILD_CC
4485   shift
4486   if test $# != 0; then
4487     # We chose a different compiler from the bogus one.
4488     # However, it has the same basename, so the bogon will be chosen
4489     # first if we set BUILD_CC to just the basename; use the full file name.
4490     shift
4491     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4492   fi
4493 fi
4494 fi
4495 fi
4496 BUILD_CC=$ac_cv_prog_BUILD_CC
4497 if test -n "$BUILD_CC"; then
4498   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4499 echo "${ECHO_T}$BUILD_CC" >&6; }
4500 else
4501   { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4503 fi
4504
4505
4506      fi
4507   fi
4508   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4509 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4510    { (exit 1); exit 1; }; }
4511   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4512   rm -f conftest*
4513   echo 'int main () { return 0; }' > conftest.$ac_ext
4514   ac_cv_build_exeext=
4515   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4516   (eval $ac_build_link) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; then
4520     for file in conftest.*; do
4521       case $file in
4522       *.c | *.o | *.obj) ;;
4523       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4524       esac
4525     done
4526   else
4527     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4528 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4529    { (exit 1); exit 1; }; }
4530   fi
4531   rm -f conftest*
4532   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4533 fi
4534 fi
4535
4536 BUILD_EXEEXT=""
4537 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4538 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4539 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4540 ac_build_exeext=$BUILD_EXEEXT
4541
4542 else
4543   LLVM_CROSS_COMPILING=0
4544
4545 fi
4546
4547 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4548   cvsbuild="yes"
4549   optimize="no"
4550   CVSBUILD=CVSBUILD=1
4551
4552 else
4553   cvsbuild="no"
4554   optimize="yes"
4555 fi
4556
4557
4558 # Check whether --enable-optimized was given.
4559 if test "${enable_optimized+set}" = set; then
4560   enableval=$enable_optimized;
4561 else
4562   enableval=$optimize
4563 fi
4564
4565 if test ${enableval} = "no" ; then
4566   ENABLE_OPTIMIZED=
4567
4568 else
4569   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4570
4571 fi
4572
4573 # Check whether --enable-assertions was given.
4574 if test "${enable_assertions+set}" = set; then
4575   enableval=$enable_assertions;
4576 else
4577   enableval="yes"
4578 fi
4579
4580 if test ${enableval} = "yes" ; then
4581   DISABLE_ASSERTIONS=
4582
4583 else
4584   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4585
4586 fi
4587
4588 # Check whether --enable-expensive-checks was given.
4589 if test "${enable_expensive_checks+set}" = set; then
4590   enableval=$enable_expensive_checks;
4591 else
4592   enableval="no"
4593 fi
4594
4595 if test ${enableval} = "yes" ; then
4596   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4597
4598   EXPENSIVE_CHECKS=yes
4599
4600 else
4601   ENABLE_EXPENSIVE_CHECKS=
4602
4603   EXPENSIVE_CHECKS=no
4604
4605 fi
4606
4607 # Check whether --enable-debug-runtime was given.
4608 if test "${enable_debug_runtime+set}" = set; then
4609   enableval=$enable_debug_runtime;
4610 else
4611   enableval=no
4612 fi
4613
4614 if test ${enableval} = "no" ; then
4615   DEBUG_RUNTIME=
4616
4617 else
4618   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4619
4620 fi
4621
4622 # Check whether --enable-jit was given.
4623 if test "${enable_jit+set}" = set; then
4624   enableval=$enable_jit;
4625 else
4626   enableval=default
4627 fi
4628
4629 if test ${enableval} = "no"
4630 then
4631   JIT=
4632
4633 else
4634   case "$llvm_cv_target_arch" in
4635     x86)     TARGET_HAS_JIT=1
4636  ;;
4637     Sparc)   TARGET_HAS_JIT=0
4638  ;;
4639     PowerPC) TARGET_HAS_JIT=1
4640  ;;
4641     x86_64)  TARGET_HAS_JIT=1
4642  ;;
4643     Alpha)   TARGET_HAS_JIT=1
4644  ;;
4645     IA64)    TARGET_HAS_JIT=0
4646  ;;
4647     ARM)     TARGET_HAS_JIT=0
4648  ;;
4649     Mips)    TARGET_HAS_JIT=0
4650  ;;
4651     *)       TARGET_HAS_JIT=0
4652  ;;
4653   esac
4654 fi
4655
4656 # Check whether --enable-doxygen was given.
4657 if test "${enable_doxygen+set}" = set; then
4658   enableval=$enable_doxygen;
4659 else
4660   enableval=default
4661 fi
4662
4663 case "$enableval" in
4664   yes) ENABLE_DOXYGEN=1
4665  ;;
4666   no)  ENABLE_DOXYGEN=0
4667  ;;
4668   default) ENABLE_DOXYGEN=0
4669  ;;
4670   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4671 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4672    { (exit 1); exit 1; }; } ;;
4673 esac
4674
4675 # Check whether --enable-threads was given.
4676 if test "${enable_threads+set}" = set; then
4677   enableval=$enable_threads;
4678 else
4679   enableval=default
4680 fi
4681
4682 case "$enableval" in
4683   yes) ENABLE_THREADS=1
4684  ;;
4685   no)  ENABLE_THREADS=0
4686  ;;
4687   default) ENABLE_THREADS=1
4688  ;;
4689   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4690 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4691    { (exit 1); exit 1; }; } ;;
4692 esac
4693
4694 cat >>confdefs.h <<_ACEOF
4695 #define ENABLE_THREADS $ENABLE_THREADS
4696 _ACEOF
4697
4698
4699 # Check whether --enable-pic was given.
4700 if test "${enable_pic+set}" = set; then
4701   enableval=$enable_pic;
4702 else
4703   enableval=default
4704 fi
4705
4706 case "$enableval" in
4707   yes) ENABLE_PIC=1
4708  ;;
4709   no)  ENABLE_PIC=0
4710  ;;
4711   default) ENABLE_PIC=0
4712  ;;
4713   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4714 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4715    { (exit 1); exit 1; }; } ;;
4716 esac
4717
4718 cat >>confdefs.h <<_ACEOF
4719 #define ENABLE_PIC $ENABLE_PIC
4720 _ACEOF
4721
4722
4723 TARGETS_TO_BUILD=""
4724 # Check whether --enable-targets was given.
4725 if test "${enable_targets+set}" = set; then
4726   enableval=$enable_targets;
4727 else
4728   enableval=all
4729 fi
4730
4731 case "$enableval" in
4732   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4733   host-only)
4734     case "$llvm_cv_target_arch" in
4735       x86)     TARGETS_TO_BUILD="X86" ;;
4736       x86_64)  TARGETS_TO_BUILD="X86" ;;
4737       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4738       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4739       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4740       IA64)    TARGETS_TO_BUILD="IA64" ;;
4741       ARM)     TARGETS_TO_BUILD="ARM" ;;
4742       Mips)    TARGETS_TO_BUILD="Mips" ;;
4743       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4744 echo "$as_me: error: Can not set target to build" >&2;}
4745    { (exit 1); exit 1; }; } ;;
4746     esac
4747     ;;
4748   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4749       case "$a_target" in
4750         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4751         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4752         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4753         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4754         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4755         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4756         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4757         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4758         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4759 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4760    { (exit 1); exit 1; }; } ;;
4761       esac
4762   done
4763   ;;
4764 esac
4765 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4766 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4767
4768
4769 # Check whether --enable-cbe-printf-a was given.
4770 if test "${enable_cbe_printf_a+set}" = set; then
4771   enableval=$enable_cbe_printf_a;
4772 else
4773   enableval=default
4774 fi
4775
4776 case "$enableval" in
4777   yes) ENABLE_CBE_PRINTF_A=1
4778  ;;
4779   no)  ENABLE_CBE_PRINTF_A=0
4780  ;;
4781   default)  ENABLE_CBE_PRINTF_A=1
4782  ;;
4783   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4784 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4785    { (exit 1); exit 1; }; } ;;
4786 esac
4787
4788 cat >>confdefs.h <<_ACEOF
4789 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4790 _ACEOF
4791
4792
4793
4794 # Check whether --with-llvmgccdir was given.
4795 if test "${with_llvmgccdir+set}" = set; then
4796   withval=$with_llvmgccdir;
4797 else
4798   withval=default
4799 fi
4800
4801 case "$withval" in
4802   default) WITH_LLVMGCCDIR=default ;;
4803   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4804   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4805 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4806    { (exit 1); exit 1; }; } ;;
4807 esac
4808
4809
4810 # Check whether --with-extra-options was given.
4811 if test "${with_extra_options+set}" = set; then
4812   withval=$with_extra_options;
4813 else
4814   withval=default
4815 fi
4816
4817 case "$withval" in
4818   default) EXTRA_OPTIONS= ;;
4819   *) EXTRA_OPTIONS=$withval ;;
4820 esac
4821 EXTRA_OPTIONS=$EXTRA_OPTIONS
4822
4823
4824
4825 ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4831 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4832 # On Suns, sometimes $CPP names a directory.
4833 if test -n "$CPP" && test -d "$CPP"; then
4834   CPP=
4835 fi
4836 if test -z "$CPP"; then
4837   if test "${ac_cv_prog_CPP+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840       # Double quotes because CPP needs to be expanded
4841     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4842     do
4843       ac_preproc_ok=false
4844 for ac_c_preproc_warn_flag in '' yes
4845 do
4846   # Use a header file that comes with gcc, so configuring glibc
4847   # with a fresh cross-compiler works.
4848   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849   # <limits.h> exists even on freestanding compilers.
4850   # On the NeXT, cc -E runs the code through the compiler's parser,
4851   # not just through cpp. "Syntax error" is here to catch this case.
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 #ifdef __STDC__
4859 # include <limits.h>
4860 #else
4861 # include <assert.h>
4862 #endif
4863                      Syntax error
4864 _ACEOF
4865 if { (ac_try="$ac_cpp conftest.$ac_ext"
4866 case "(($ac_try" in
4867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868   *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
4875   cat conftest.err >&5
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } >/dev/null; then
4878   if test -s conftest.err; then
4879     ac_cpp_err=$ac_c_preproc_warn_flag
4880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881   else
4882     ac_cpp_err=
4883   fi
4884 else
4885   ac_cpp_err=yes
4886 fi
4887 if test -z "$ac_cpp_err"; then
4888   :
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893   # Broken: fails on valid input.
4894 continue
4895 fi
4896
4897 rm -f conftest.err conftest.$ac_ext
4898
4899   # OK, works on sane cases.  Now check whether nonexistent headers
4900   # can be detected and how.
4901   cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 #include <ac_nonexistent.h>
4908 _ACEOF
4909 if { (ac_try="$ac_cpp conftest.$ac_ext"
4910 case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } >/dev/null; then
4922   if test -s conftest.err; then
4923     ac_cpp_err=$ac_c_preproc_warn_flag
4924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4925   else
4926     ac_cpp_err=
4927   fi
4928 else
4929   ac_cpp_err=yes
4930 fi
4931 if test -z "$ac_cpp_err"; then
4932   # Broken: success on invalid input.
4933 continue
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938   # Passes both tests.
4939 ac_preproc_ok=:
4940 break
4941 fi
4942
4943 rm -f conftest.err conftest.$ac_ext
4944
4945 done
4946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4947 rm -f conftest.err conftest.$ac_ext
4948 if $ac_preproc_ok; then
4949   break
4950 fi
4951
4952     done
4953     ac_cv_prog_CPP=$CPP
4954
4955 fi
4956   CPP=$ac_cv_prog_CPP
4957 else
4958   ac_cv_prog_CPP=$CPP
4959 fi
4960 { echo "$as_me:$LINENO: result: $CPP" >&5
4961 echo "${ECHO_T}$CPP" >&6; }
4962 ac_preproc_ok=false
4963 for ac_c_preproc_warn_flag in '' yes
4964 do
4965   # Use a header file that comes with gcc, so configuring glibc
4966   # with a fresh cross-compiler works.
4967   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4968   # <limits.h> exists even on freestanding compilers.
4969   # On the NeXT, cc -E runs the code through the compiler's parser,
4970   # not just through cpp. "Syntax error" is here to catch this case.
4971   cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #ifdef __STDC__
4978 # include <limits.h>
4979 #else
4980 # include <assert.h>
4981 #endif
4982                      Syntax error
4983 _ACEOF
4984 if { (ac_try="$ac_cpp conftest.$ac_ext"
4985 case "(($ac_try" in
4986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987   *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_c_preproc_warn_flag
4999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5000   else
5001     ac_cpp_err=
5002   fi
5003 else
5004   ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007   :
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Broken: fails on valid input.
5013 continue
5014 fi
5015
5016 rm -f conftest.err conftest.$ac_ext
5017
5018   # OK, works on sane cases.  Now check whether nonexistent headers
5019   # can be detected and how.
5020   cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <ac_nonexistent.h>
5027 _ACEOF
5028 if { (ac_try="$ac_cpp conftest.$ac_ext"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } >/dev/null; then
5041   if test -s conftest.err; then
5042     ac_cpp_err=$ac_c_preproc_warn_flag
5043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5044   else
5045     ac_cpp_err=
5046   fi
5047 else
5048   ac_cpp_err=yes
5049 fi
5050 if test -z "$ac_cpp_err"; then
5051   # Broken: success on invalid input.
5052 continue
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057   # Passes both tests.
5058 ac_preproc_ok=:
5059 break
5060 fi
5061
5062 rm -f conftest.err conftest.$ac_ext
5063
5064 done
5065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5066 rm -f conftest.err conftest.$ac_ext
5067 if $ac_preproc_ok; then
5068   :
5069 else
5070   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5071 See \`config.log' for more details." >&5
5072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details." >&2;}
5074    { (exit 1); exit 1; }; }
5075 fi
5076
5077 ac_ext=c
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 if test -n "$ac_tool_prefix"; then
5089   for ac_prog in gcc
5090   do
5091     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_CC+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   if test -n "$CC"; then
5099   ac_cv_prog_CC="$CC" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 fi
5117 fi
5118 CC=$ac_cv_prog_CC
5119 if test -n "$CC"; then
5120   { echo "$as_me:$LINENO: result: $CC" >&5
5121 echo "${ECHO_T}$CC" >&6; }
5122 else
5123   { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5125 fi
5126
5127
5128     test -n "$CC" && break
5129   done
5130 fi
5131 if test -z "$CC"; then
5132   ac_ct_CC=$CC
5133   for ac_prog in gcc
5134 do
5135   # Extract the first word of "$ac_prog", so it can be a program name with args.
5136 set dummy $ac_prog; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   if test -n "$ac_ct_CC"; then
5143   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150   for ac_exec_ext in '' $ac_executable_extensions; do
5151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5152     ac_cv_prog_ac_ct_CC="$ac_prog"
5153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5163 if test -n "$ac_ct_CC"; then
5164   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5165 echo "${ECHO_T}$ac_ct_CC" >&6; }
5166 else
5167   { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5169 fi
5170
5171
5172   test -n "$ac_ct_CC" && break
5173 done
5174
5175   if test "x$ac_ct_CC" = x; then
5176     CC=""
5177   else
5178     case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5181 whose name does not start with the host triplet.  If you think this
5182 configuration is useful to you, please write to autoconf@gnu.org." >&5
5183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5184 whose name does not start with the host triplet.  If you think this
5185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5186 ac_tool_warned=yes ;;
5187 esac
5188     CC=$ac_ct_CC
5189   fi
5190 fi
5191
5192
5193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5194 See \`config.log' for more details." >&5
5195 echo "$as_me: error: no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." >&2;}
5197    { (exit 1); exit 1; }; }
5198
5199 # Provide some information about the compiler.
5200 echo "$as_me:$LINENO: checking for C compiler version" >&5
5201 ac_compiler=`set X $ac_compile; echo $2`
5202 { (ac_try="$ac_compiler --version >&5"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208   (eval "$ac_compiler --version >&5") 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }
5212 { (ac_try="$ac_compiler -v >&5"
5213 case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218   (eval "$ac_compiler -v >&5") 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }
5222 { (ac_try="$ac_compiler -V >&5"
5223 case "(($ac_try" in
5224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225   *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228   (eval "$ac_compiler -V >&5") 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }
5232
5233 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244
5245 int
5246 main ()
5247 {
5248 #ifndef __GNUC__
5249        choke me
5250 #endif
5251
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263   (eval "$ac_compile") 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271   { (case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_try") 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }; } &&
5280          { ac_try='test -s conftest.$ac_objext'
5281   { (case "(($ac_try" in
5282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283   *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286   (eval "$ac_try") 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; }; then
5290   ac_compiler_gnu=yes
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295         ac_compiler_gnu=no
5296 fi
5297
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5300
5301 fi
5302 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5303 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5304 GCC=`test $ac_compiler_gnu = yes && echo yes`
5305 ac_test_CFLAGS=${CFLAGS+set}
5306 ac_save_CFLAGS=$CFLAGS
5307 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5308 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5309 if test "${ac_cv_prog_cc_g+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   ac_save_c_werror_flag=$ac_c_werror_flag
5313    ac_c_werror_flag=yes
5314    ac_cv_prog_cc_g=no
5315    CFLAGS="-g"
5316    cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322
5323 int
5324 main ()
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335   *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338   (eval "$ac_compile") 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } &&
5345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5346   { (case "(($ac_try" in
5347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348   *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351   (eval "$ac_try") 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; } &&
5355          { ac_try='test -s conftest.$ac_objext'
5356   { (case "(($ac_try" in
5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358   *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361   (eval "$ac_try") 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; }; then
5365   ac_cv_prog_cc_g=yes
5366 else
5367   echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370         CFLAGS=""
5371       cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377
5378 int
5379 main ()
5380 {
5381
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_compile") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } &&
5400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5401   { (case "(($ac_try" in
5402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403   *) ac_try_echo=$ac_try;;
5404 esac
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406   (eval "$ac_try") 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; } &&
5410          { ac_try='test -s conftest.$ac_objext'
5411   { (case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416   (eval "$ac_try") 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   :
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425         ac_c_werror_flag=$ac_save_c_werror_flag
5426          CFLAGS="-g"
5427          cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433
5434 int
5435 main ()
5436 {
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446   *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449   (eval "$ac_compile") 2>conftest.er1
5450   ac_status=$?
5451   grep -v '^ *+' conftest.er1 >conftest.err
5452   rm -f conftest.er1
5453   cat conftest.err >&5
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } &&
5456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457   { (case "(($ac_try" in
5458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459   *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462   (eval "$ac_try") 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; } &&
5466          { ac_try='test -s conftest.$ac_objext'
5467   { (case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_try") 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; }; then
5476   ac_cv_prog_cc_g=yes
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481
5482 fi
5483
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491    ac_c_werror_flag=$ac_save_c_werror_flag
5492 fi
5493 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5494 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5495 if test "$ac_test_CFLAGS" = set; then
5496   CFLAGS=$ac_save_CFLAGS
5497 elif test $ac_cv_prog_cc_g = yes; then
5498   if test "$GCC" = yes; then
5499     CFLAGS="-g -O2"
5500   else
5501     CFLAGS="-g"
5502   fi
5503 else
5504   if test "$GCC" = yes; then
5505     CFLAGS="-O2"
5506   else
5507     CFLAGS=
5508   fi
5509 fi
5510 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5511 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5512 if test "${ac_cv_prog_cc_c89+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   ac_cv_prog_cc_c89=no
5516 ac_save_CC=$CC
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 #include <stdarg.h>
5524 #include <stdio.h>
5525 #include <sys/types.h>
5526 #include <sys/stat.h>
5527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5528 struct buf { int x; };
5529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5530 static char *e (p, i)
5531      char **p;
5532      int i;
5533 {
5534   return p[i];
5535 }
5536 static char *f (char * (*g) (char **, int), char **p, ...)
5537 {
5538   char *s;
5539   va_list v;
5540   va_start (v,p);
5541   s = g (p, va_arg (v,int));
5542   va_end (v);
5543   return s;
5544 }
5545
5546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5547    function prototypes and stuff, but not '\xHH' hex character constants.
5548    These don't provoke an error unfortunately, instead are silently treated
5549    as 'x'.  The following induces an error, until -std is added to get
5550    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5551    array size at least.  It's necessary to write '\x00'==0 to get something
5552    that's true only with -std.  */
5553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5554
5555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5556    inside strings and character constants.  */
5557 #define FOO(x) 'x'
5558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5559
5560 int test (int i, double x);
5561 struct s1 {int (*f) (int a);};
5562 struct s2 {int (*f) (double a);};
5563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5564 int argc;
5565 char **argv;
5566 int
5567 main ()
5568 {
5569 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5575         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5576 do
5577   CC="$ac_save_CC $ac_arg"
5578   rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_compile") 2>conftest.er1
5586   ac_status=$?
5587   grep -v '^ *+' conftest.er1 >conftest.err
5588   rm -f conftest.er1
5589   cat conftest.err >&5
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } &&
5592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5593   { (case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_try") 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }; } &&
5602          { ac_try='test -s conftest.$ac_objext'
5603   { (case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_try") 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   ac_cv_prog_cc_c89=$ac_arg
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617
5618 fi
5619
5620 rm -f core conftest.err conftest.$ac_objext
5621   test "x$ac_cv_prog_cc_c89" != "xno" && break
5622 done
5623 rm -f conftest.$ac_ext
5624 CC=$ac_save_CC
5625
5626 fi
5627 # AC_CACHE_VAL
5628 case "x$ac_cv_prog_cc_c89" in
5629   x)
5630     { echo "$as_me:$LINENO: result: none needed" >&5
5631 echo "${ECHO_T}none needed" >&6; } ;;
5632   xno)
5633     { echo "$as_me:$LINENO: result: unsupported" >&5
5634 echo "${ECHO_T}unsupported" >&6; } ;;
5635   *)
5636     CC="$CC $ac_cv_prog_cc_c89"
5637     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5638 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5639 esac
5640
5641
5642 ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648 ac_ext=cpp
5649 ac_cpp='$CXXCPP $CPPFLAGS'
5650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653 if test -z "$CXX"; then
5654   if test -n "$CCC"; then
5655     CXX=$CCC
5656   else
5657     if test -n "$ac_tool_prefix"; then
5658   for ac_prog in g++
5659   do
5660     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664 if test "${ac_cv_prog_CXX+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   if test -n "$CXX"; then
5668   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 CXX=$ac_cv_prog_CXX
5688 if test -n "$CXX"; then
5689   { echo "$as_me:$LINENO: result: $CXX" >&5
5690 echo "${ECHO_T}$CXX" >&6; }
5691 else
5692   { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5694 fi
5695
5696
5697     test -n "$CXX" && break
5698   done
5699 fi
5700 if test -z "$CXX"; then
5701   ac_ct_CXX=$CXX
5702   for ac_prog in g++
5703 do
5704   # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5708 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   if test -n "$ac_ct_CXX"; then
5712   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719   for ac_exec_ext in '' $ac_executable_extensions; do
5720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5721     ac_cv_prog_ac_ct_CXX="$ac_prog"
5722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732 if test -n "$ac_ct_CXX"; then
5733   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5734 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5735 else
5736   { echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6; }
5738 fi
5739
5740
5741   test -n "$ac_ct_CXX" && break
5742 done
5743
5744   if test "x$ac_ct_CXX" = x; then
5745     CXX="g++"
5746   else
5747     case $cross_compiling:$ac_tool_warned in
5748 yes:)
5749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5750 whose name does not start with the host triplet.  If you think this
5751 configuration is useful to you, please write to autoconf@gnu.org." >&5
5752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5753 whose name does not start with the host triplet.  If you think this
5754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5755 ac_tool_warned=yes ;;
5756 esac
5757     CXX=$ac_ct_CXX
5758   fi
5759 fi
5760
5761   fi
5762 fi
5763 # Provide some information about the compiler.
5764 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5765 ac_compiler=`set X $ac_compile; echo $2`
5766 { (ac_try="$ac_compiler --version >&5"
5767 case "(($ac_try" in
5768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769   *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772   (eval "$ac_compiler --version >&5") 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }
5776 { (ac_try="$ac_compiler -v >&5"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_compiler -v >&5") 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }
5786 { (ac_try="$ac_compiler -V >&5"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_compiler -V >&5") 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }
5796
5797 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5798 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5799 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808
5809 int
5810 main ()
5811 {
5812 #ifndef __GNUC__
5813        choke me
5814 #endif
5815
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5822 case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827   (eval "$ac_compile") 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5835   { (case "(($ac_try" in
5836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837   *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840   (eval "$ac_try") 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest.$ac_objext'
5845   { (case "(($ac_try" in
5846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847   *) ac_try_echo=$ac_try;;
5848 esac
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850   (eval "$ac_try") 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); }; }; then
5854   ac_compiler_gnu=yes
5855 else
5856   echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859         ac_compiler_gnu=no
5860 fi
5861
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5864
5865 fi
5866 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5867 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5868 GXX=`test $ac_compiler_gnu = yes && echo yes`
5869 ac_test_CXXFLAGS=${CXXFLAGS+set}
5870 ac_save_CXXFLAGS=$CXXFLAGS
5871 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5872 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5873 if test "${ac_cv_prog_cxx_g+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5877    ac_cxx_werror_flag=yes
5878    ac_cv_prog_cxx_g=no
5879    CXXFLAGS="-g"
5880    cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886
5887 int
5888 main ()
5889 {
5890
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_compile") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5910   { (case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_try") 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; } &&
5919          { ac_try='test -s conftest.$ac_objext'
5920   { (case "(($ac_try" in
5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922   *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925   (eval "$ac_try") 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; }; then
5929   ac_cv_prog_cxx_g=yes
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934         CXXFLAGS=""
5935       cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h.  */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h.  */
5941
5942 int
5943 main ()
5944 {
5945
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_compile") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } &&
5964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5965   { (case "(($ac_try" in
5966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967   *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970   (eval "$ac_try") 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; } &&
5974          { ac_try='test -s conftest.$ac_objext'
5975   { (case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_try") 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; }; then
5984   :
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5990          CXXFLAGS="-g"
5991          cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997
5998 int
5999 main ()
6000 {
6001
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_compile") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6021   { (case "(($ac_try" in
6022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023   *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026   (eval "$ac_try") 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }; } &&
6030          { ac_try='test -s conftest.$ac_objext'
6031   { (case "(($ac_try" in
6032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033   *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036   (eval "$ac_try") 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; }; then
6040   ac_cv_prog_cxx_g=yes
6041 else
6042   echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6044
6045
6046 fi
6047
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 fi
6053
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6056 fi
6057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6058 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6059 if test "$ac_test_CXXFLAGS" = set; then
6060   CXXFLAGS=$ac_save_CXXFLAGS
6061 elif test $ac_cv_prog_cxx_g = yes; then
6062   if test "$GXX" = yes; then
6063     CXXFLAGS="-g -O2"
6064   else
6065     CXXFLAGS="-g"
6066   fi
6067 else
6068   if test "$GXX" = yes; then
6069     CXXFLAGS="-O2"
6070   else
6071     CXXFLAGS=
6072   fi
6073 fi
6074 ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080 { echo "$as_me:$LINENO: checking " >&5
6081 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6082 if test "${ac_cv_has_flex+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   for ac_prog in flex lex
6086 do
6087   # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_LEX+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$LEX"; then
6095   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_LEX="$ac_prog"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 LEX=$ac_cv_prog_LEX
6115 if test -n "$LEX"; then
6116   { echo "$as_me:$LINENO: result: $LEX" >&5
6117 echo "${ECHO_T}$LEX" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123
6124   test -n "$LEX" && break
6125 done
6126 test -n "$LEX" || LEX=":"
6127
6128 if test -z "$LEXLIB"
6129 then
6130   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6131 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6132 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lfl  $LIBS"
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143
6144 /* Override any GCC internal prototype to avoid an error.
6145    Use char because int might match the return type of a GCC
6146    builtin and then its argument prototype would still apply.  */
6147 #ifdef __cplusplus
6148 extern "C"
6149 #endif
6150 char yywrap ();
6151 int
6152 main ()
6153 {
6154 return yywrap ();
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (ac_try="$ac_link"
6161 case "(($ac_try" in
6162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163   *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166   (eval "$ac_link") 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } &&
6173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6174   { (case "(($ac_try" in
6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176   *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179   (eval "$ac_try") 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; } &&
6183          { ac_try='test -s conftest$ac_exeext'
6184   { (case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189   (eval "$ac_try") 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; }; then
6193   ac_cv_lib_fl_yywrap=yes
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198         ac_cv_lib_fl_yywrap=no
6199 fi
6200
6201 rm -f core conftest.err conftest.$ac_objext \
6202       conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6204 fi
6205 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6206 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6207 if test $ac_cv_lib_fl_yywrap = yes; then
6208   LEXLIB="-lfl"
6209 else
6210   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6211 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6212 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   ac_check_lib_save_LIBS=$LIBS
6216 LIBS="-ll  $LIBS"
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223
6224 /* Override any GCC internal prototype to avoid an error.
6225    Use char because int might match the return type of a GCC
6226    builtin and then its argument prototype would still apply.  */
6227 #ifdef __cplusplus
6228 extern "C"
6229 #endif
6230 char yywrap ();
6231 int
6232 main ()
6233 {
6234 return yywrap ();
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6241 case "(($ac_try" in
6242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243   *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246   (eval "$ac_link") 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } &&
6253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254   { (case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_try") 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; } &&
6263          { ac_try='test -s conftest$ac_exeext'
6264   { (case "(($ac_try" in
6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266   *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269   (eval "$ac_try") 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   ac_cv_lib_l_yywrap=yes
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         ac_cv_lib_l_yywrap=no
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext \
6282       conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_check_lib_save_LIBS
6284 fi
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6286 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6287 if test $ac_cv_lib_l_yywrap = yes; then
6288   LEXLIB="-ll"
6289 fi
6290
6291 fi
6292
6293 fi
6294
6295 if test "x$LEX" != "x:"; then
6296   { echo "$as_me:$LINENO: checking lex output file root" >&5
6297 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6298 if test "${ac_cv_prog_lex_root+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   # The minimal lex program is just a single line: %%.  But some broken lexes
6302 # (Solaris, I think it was) want two %% lines, so accommodate them.
6303 cat >conftest.l <<_ACEOF
6304 %%
6305 %%
6306 _ACEOF
6307 { (ac_try="$LEX conftest.l"
6308 case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$LEX conftest.l") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }
6317 if test -f lex.yy.c; then
6318   ac_cv_prog_lex_root=lex.yy
6319 elif test -f lexyy.c; then
6320   ac_cv_prog_lex_root=lexyy
6321 else
6322   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6323 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6324    { (exit 1); exit 1; }; }
6325 fi
6326 fi
6327 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6328 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6329 rm -f conftest.l
6330 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6331
6332 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6333 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6334 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   # POSIX says lex can declare yytext either as a pointer or an array; the
6338 # default is implementation-dependent. Figure out which it is, since
6339 # not all implementations provide the %pointer and %array declarations.
6340 ac_cv_prog_lex_yytext_pointer=no
6341 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6342 ac_save_LIBS=$LIBS
6343 LIBS="$LIBS $LEXLIB"
6344 cat >conftest.$ac_ext <<_ACEOF
6345 `cat $LEX_OUTPUT_ROOT.c`
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (ac_try="$ac_link"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_link") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362   { (case "(($ac_try" in
6363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364   *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367   (eval "$ac_try") 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; } &&
6371          { ac_try='test -s conftest$ac_exeext'
6372   { (case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377   (eval "$ac_try") 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_prog_lex_yytext_pointer=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386
6387 fi
6388
6389 rm -f core conftest.err conftest.$ac_objext \
6390       conftest$ac_exeext conftest.$ac_ext
6391 LIBS=$ac_save_LIBS
6392 rm -f "${LEX_OUTPUT_ROOT}.c"
6393
6394 fi
6395 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6396 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6397 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6398
6399 cat >>confdefs.h <<\_ACEOF
6400 #define YYTEXT_POINTER 1
6401 _ACEOF
6402
6403 fi
6404
6405 fi
6406
6407 fi
6408 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6409 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6410 if test "$LEX" != "flex"; then
6411   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6412 echo "$as_me: error: flex not found but required" >&2;}
6413    { (exit 1); exit 1; }; }
6414 else
6415   FLEX=flex
6416
6417 fi
6418
6419 { echo "$as_me:$LINENO: checking " >&5
6420 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6421 if test "${llvm_cv_has_bison+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   for ac_prog in 'bison -y' byacc
6425 do
6426   # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_prog_YACC+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   if test -n "$YACC"; then
6434   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441   for ac_exec_ext in '' $ac_executable_extensions; do
6442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443     ac_cv_prog_YACC="$ac_prog"
6444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 YACC=$ac_cv_prog_YACC
6454 if test -n "$YACC"; then
6455   { echo "$as_me:$LINENO: result: $YACC" >&5
6456 echo "${ECHO_T}$YACC" >&6; }
6457 else
6458   { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6460 fi
6461
6462
6463   test -n "$YACC" && break
6464 done
6465 test -n "$YACC" || YACC="yacc"
6466
6467 fi
6468 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6469 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6470 if test "$YACC" != "bison -y"; then
6471
6472   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6473 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6474 else
6475   BISON=bison
6476
6477 fi
6478
6479 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6480 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6481 if test "${lt_cv_path_NM+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$NM"; then
6485   # Let the user override the test.
6486   lt_cv_path_NM="$NM"
6487 else
6488   lt_nm_to_check="${ac_tool_prefix}nm"
6489   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6490     lt_nm_to_check="$lt_nm_to_check nm"
6491   fi
6492   for lt_tmp_nm in $lt_nm_to_check; do
6493     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6495       IFS="$lt_save_ifs"
6496       test -z "$ac_dir" && ac_dir=.
6497       tmp_nm="$ac_dir/$lt_tmp_nm"
6498       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6499         # Check to see if the nm accepts a BSD-compat flag.
6500         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6501         #   nm: unknown option "B" ignored
6502         # Tru64's nm complains that /dev/null is an invalid object file
6503         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6504         */dev/null* | *'Invalid file or object type'*)
6505           lt_cv_path_NM="$tmp_nm -B"
6506           break
6507           ;;
6508         *)
6509           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6510           */dev/null*)
6511             lt_cv_path_NM="$tmp_nm -p"
6512             break
6513             ;;
6514           *)
6515             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6516             continue # so that we can try to find one that supports BSD flags
6517             ;;
6518           esac
6519           ;;
6520         esac
6521       fi
6522     done
6523     IFS="$lt_save_ifs"
6524   done
6525   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6526 fi
6527 fi
6528 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6529 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6530 NM="$lt_cv_path_NM"
6531
6532
6533
6534 { echo "$as_me:$LINENO: checking for GNU make" >&5
6535 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536 if test "${llvm_cv_gnu_make_command+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   llvm_cv_gnu_make_command=''
6540  for a in "$MAKE" make gmake gnumake ; do
6541   if test -z "$a" ; then continue ; fi ;
6542   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6543   then
6544    llvm_cv_gnu_make_command=$a ;
6545    break;
6546   fi
6547  done
6548 fi
6549 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6550 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6551  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6552    ifGNUmake='' ;
6553  else
6554    ifGNUmake='#' ;
6555    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6556 echo "${ECHO_T}\"Not found\"" >&6; };
6557  fi
6558
6559
6560 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6561 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6562 LN_S=$as_ln_s
6563 if test "$LN_S" = "ln -s"; then
6564   { echo "$as_me:$LINENO: result: yes" >&5
6565 echo "${ECHO_T}yes" >&6; }
6566 else
6567   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6568 echo "${ECHO_T}no, using $LN_S" >&6; }
6569 fi
6570
6571 # Extract the first word of "cmp", so it can be a program name with args.
6572 set dummy cmp; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_CMP+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   case $CMP in
6579   [\\/]* | ?:[\\/]*)
6580   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6581   ;;
6582   *)
6583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6599   ;;
6600 esac
6601 fi
6602 CMP=$ac_cv_path_CMP
6603 if test -n "$CMP"; then
6604   { echo "$as_me:$LINENO: result: $CMP" >&5
6605 echo "${ECHO_T}$CMP" >&6; }
6606 else
6607   { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611
6612 # Extract the first word of "cp", so it can be a program name with args.
6613 set dummy cp; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_CP+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   case $CP in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6640   ;;
6641 esac
6642 fi
6643 CP=$ac_cv_path_CP
6644 if test -n "$CP"; then
6645   { echo "$as_me:$LINENO: result: $CP" >&5
6646 echo "${ECHO_T}$CP" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 # Extract the first word of "date", so it can be a program name with args.
6654 set dummy date; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_DATE+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   case $DATE in
6661   [\\/]* | ?:[\\/]*)
6662   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6663   ;;
6664   *)
6665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6681   ;;
6682 esac
6683 fi
6684 DATE=$ac_cv_path_DATE
6685 if test -n "$DATE"; then
6686   { echo "$as_me:$LINENO: result: $DATE" >&5
6687 echo "${ECHO_T}$DATE" >&6; }
6688 else
6689   { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6691 fi
6692
6693
6694 # Extract the first word of "find", so it can be a program name with args.
6695 set dummy find; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_FIND+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   case $FIND in
6702   [\\/]* | ?:[\\/]*)
6703   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6704   ;;
6705   *)
6706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6722   ;;
6723 esac
6724 fi
6725 FIND=$ac_cv_path_FIND
6726 if test -n "$FIND"; then
6727   { echo "$as_me:$LINENO: result: $FIND" >&5
6728 echo "${ECHO_T}$FIND" >&6; }
6729 else
6730   { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6732 fi
6733
6734
6735 # Extract the first word of "grep", so it can be a program name with args.
6736 set dummy grep; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_GREP+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   case $GREP in
6743   [\\/]* | ?:[\\/]*)
6744   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6745   ;;
6746   *)
6747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752   for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6763   ;;
6764 esac
6765 fi
6766 GREP=$ac_cv_path_GREP
6767 if test -n "$GREP"; then
6768   { echo "$as_me:$LINENO: result: $GREP" >&5
6769 echo "${ECHO_T}$GREP" >&6; }
6770 else
6771   { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6773 fi
6774
6775
6776 # Extract the first word of "mkdir", so it can be a program name with args.
6777 set dummy mkdir; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_MKDIR+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   case $MKDIR in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793   for ac_exec_ext in '' $ac_executable_extensions; do
6794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6804   ;;
6805 esac
6806 fi
6807 MKDIR=$ac_cv_path_MKDIR
6808 if test -n "$MKDIR"; then
6809   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6810 echo "${ECHO_T}$MKDIR" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 # Extract the first word of "mv", so it can be a program name with args.
6818 set dummy mv; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_MV+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   case $MV in
6825   [\\/]* | ?:[\\/]*)
6826   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6827   ;;
6828   *)
6829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6845   ;;
6846 esac
6847 fi
6848 MV=$ac_cv_path_MV
6849 if test -n "$MV"; then
6850   { echo "$as_me:$LINENO: result: $MV" >&5
6851 echo "${ECHO_T}$MV" >&6; }
6852 else
6853   { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6855 fi
6856
6857
6858 if test -n "$ac_tool_prefix"; then
6859   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_prog_RANLIB+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   if test -n "$RANLIB"; then
6867   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874   for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 RANLIB=$ac_cv_prog_RANLIB
6887 if test -n "$RANLIB"; then
6888   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6889 echo "${ECHO_T}$RANLIB" >&6; }
6890 else
6891   { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_RANLIB"; then
6898   ac_ct_RANLIB=$RANLIB
6899   # Extract the first word of "ranlib", so it can be a program name with args.
6900 set dummy ranlib; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   if test -n "$ac_ct_RANLIB"; then
6907   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914   for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_prog_ac_ct_RANLIB="ranlib"
6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6927 if test -n "$ac_ct_RANLIB"; then
6928   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6929 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6930 else
6931   { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6933 fi
6934
6935   if test "x$ac_ct_RANLIB" = x; then
6936     RANLIB=":"
6937   else
6938     case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6941 whose name does not start with the host triplet.  If you think this
6942 configuration is useful to you, please write to autoconf@gnu.org." >&5
6943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet.  If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948     RANLIB=$ac_ct_RANLIB
6949   fi
6950 else
6951   RANLIB="$ac_cv_prog_RANLIB"
6952 fi
6953
6954 # Extract the first word of "rm", so it can be a program name with args.
6955 set dummy rm; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_RM+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   case $RM in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6982   ;;
6983 esac
6984 fi
6985 RM=$ac_cv_path_RM
6986 if test -n "$RM"; then
6987   { echo "$as_me:$LINENO: result: $RM" >&5
6988 echo "${ECHO_T}$RM" >&6; }
6989 else
6990   { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992 fi
6993
6994
6995 # Extract the first word of "sed", so it can be a program name with args.
6996 set dummy sed; ac_word=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_SED+set}" = set; then
7000   echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002   case $SED in
7003   [\\/]* | ?:[\\/]*)
7004   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7005   ;;
7006   *)
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012   for ac_exec_ext in '' $ac_executable_extensions; do
7013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7014     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019 done
7020 IFS=$as_save_IFS
7021
7022   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7023   ;;
7024 esac
7025 fi
7026 SED=$ac_cv_path_SED
7027 if test -n "$SED"; then
7028   { echo "$as_me:$LINENO: result: $SED" >&5
7029 echo "${ECHO_T}$SED" >&6; }
7030 else
7031   { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7033 fi
7034
7035
7036 # Extract the first word of "tar", so it can be a program name with args.
7037 set dummy tar; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_TAR+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   case $TAR in
7044   [\\/]* | ?:[\\/]*)
7045   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7046   ;;
7047   *)
7048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053   for ac_exec_ext in '' $ac_executable_extensions; do
7054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7064   ;;
7065 esac
7066 fi
7067 TAR=$ac_cv_path_TAR
7068 if test -n "$TAR"; then
7069   { echo "$as_me:$LINENO: result: $TAR" >&5
7070 echo "${ECHO_T}$TAR" >&6; }
7071 else
7072   { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7074 fi
7075
7076
7077 # Extract the first word of "pwd", so it can be a program name with args.
7078 set dummy pwd; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_BINPWD+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   case $BINPWD in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7105   ;;
7106 esac
7107 fi
7108 BINPWD=$ac_cv_path_BINPWD
7109 if test -n "$BINPWD"; then
7110   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7111 echo "${ECHO_T}$BINPWD" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118
7119 # Extract the first word of "Graphviz", so it can be a program name with args.
7120 set dummy Graphviz; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   case $GRAPHVIZ in
7127   [\\/]* | ?:[\\/]*)
7128   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7129   ;;
7130   *)
7131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   for ac_exec_ext in '' $ac_executable_extensions; do
7137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7147   ;;
7148 esac
7149 fi
7150 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7151 if test -n "$GRAPHVIZ"; then
7152   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7153 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7161
7162 cat >>confdefs.h <<\_ACEOF
7163 #define HAVE_GRAPHVIZ 1
7164 _ACEOF
7165
7166     if test "$llvm_cv_os_type" = "MingW" ; then
7167     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7168   fi
7169
7170 cat >>confdefs.h <<_ACEOF
7171 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7172 _ACEOF
7173
7174 fi
7175 # Extract the first word of "dot", so it can be a program name with args.
7176 set dummy dot; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_path_DOT+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   case $DOT in
7183   [\\/]* | ?:[\\/]*)
7184   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7185   ;;
7186   *)
7187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192   for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7203   ;;
7204 esac
7205 fi
7206 DOT=$ac_cv_path_DOT
7207 if test -n "$DOT"; then
7208   { echo "$as_me:$LINENO: result: $DOT" >&5
7209 echo "${ECHO_T}$DOT" >&6; }
7210 else
7211   { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7213 fi
7214
7215
7216 if test "$DOT" != "echo dot" ; then
7217
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_DOT 1
7220 _ACEOF
7221
7222     if test "$llvm_cv_os_type" = "MingW" ; then
7223     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7224   fi
7225
7226 cat >>confdefs.h <<_ACEOF
7227 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7228 _ACEOF
7229
7230 fi
7231 for ac_prog in gv gsview32
7232 do
7233   # Extract the first word of "$ac_prog", so it can be a program name with args.
7234 set dummy $ac_prog; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_path_GV+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   case $GV in
7241   [\\/]* | ?:[\\/]*)
7242   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7243   ;;
7244   *)
7245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248   IFS=$as_save_IFS
7249   test -z "$as_dir" && as_dir=.
7250   for ac_exec_ext in '' $ac_executable_extensions; do
7251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254     break 2
7255   fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260   ;;
7261 esac
7262 fi
7263 GV=$ac_cv_path_GV
7264 if test -n "$GV"; then
7265   { echo "$as_me:$LINENO: result: $GV" >&5
7266 echo "${ECHO_T}$GV" >&6; }
7267 else
7268   { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272
7273   test -n "$GV" && break
7274 done
7275 test -n "$GV" || GV="echo gv"
7276
7277 if test "$GV" != "echo gv" ; then
7278
7279 cat >>confdefs.h <<\_ACEOF
7280 #define HAVE_GV 1
7281 _ACEOF
7282
7283     if test "$llvm_cv_os_type" = "MingW" ; then
7284     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7285   fi
7286
7287 cat >>confdefs.h <<_ACEOF
7288 #define LLVM_PATH_GV "$GV${EXEEXT}"
7289 _ACEOF
7290
7291 fi
7292 # Extract the first word of "dotty", so it can be a program name with args.
7293 set dummy dotty; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_path_DOTTY+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   case $DOTTY in
7300   [\\/]* | ?:[\\/]*)
7301   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7302   ;;
7303   *)
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   for ac_exec_ext in '' $ac_executable_extensions; do
7310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7320   ;;
7321 esac
7322 fi
7323 DOTTY=$ac_cv_path_DOTTY
7324 if test -n "$DOTTY"; then
7325   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7326 echo "${ECHO_T}$DOTTY" >&6; }
7327 else
7328   { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7330 fi
7331
7332
7333 if test "$DOTTY" != "echo dotty" ; then
7334
7335 cat >>confdefs.h <<\_ACEOF
7336 #define HAVE_DOTTY 1
7337 _ACEOF
7338
7339     if test "$llvm_cv_os_type" = "MingW" ; then
7340     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7341   fi
7342
7343 cat >>confdefs.h <<_ACEOF
7344 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7345 _ACEOF
7346
7347 fi
7348
7349
7350 # Extract the first word of "perl", so it can be a program name with args.
7351 set dummy perl; ac_word=$2
7352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7354 if test "${ac_cv_path_PERL+set}" = set; then
7355   echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357   case $PERL in
7358   [\\/]* | ?:[\\/]*)
7359   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7360   ;;
7361   *)
7362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367   for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7378   ;;
7379 esac
7380 fi
7381 PERL=$ac_cv_path_PERL
7382 if test -n "$PERL"; then
7383   { echo "$as_me:$LINENO: result: $PERL" >&5
7384 echo "${ECHO_T}$PERL" >&6; }
7385 else
7386   { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7388 fi
7389
7390
7391 if test "$PERL" != "none"; then
7392   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7393 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7394   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7395     { echo "$as_me:$LINENO: result: yes" >&5
7396 echo "${ECHO_T}yes" >&6; }
7397   else
7398     PERL=none
7399     { echo "$as_me:$LINENO: result: not found" >&5
7400 echo "${ECHO_T}not found" >&6; }
7401   fi
7402 fi
7403
7404
7405 if test x"$PERL" = xnone; then
7406    HAVE_PERL=0
7407
7408    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7409 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7410    { (exit 1); exit 1; }; }
7411 else
7412    HAVE_PERL=1
7413
7414 fi
7415
7416 # Find a good install program.  We prefer a C program (faster),
7417 # so one script is as good as another.  But avoid the broken or
7418 # incompatible versions:
7419 # SysV /etc/install, /usr/sbin/install
7420 # SunOS /usr/etc/install
7421 # IRIX /sbin/install
7422 # AIX /bin/install
7423 # AmigaOS /C/install, which installs bootblocks on floppy discs
7424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7427 # OS/2's system install, which has a completely different semantic
7428 # ./install, which can be erroneously created by make from ./install.sh.
7429 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7431 if test -z "$INSTALL"; then
7432 if test "${ac_cv_path_install+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440   # Account for people who put trailing slashes in PATH elements.
7441 case $as_dir/ in
7442   ./ | .// | /cC/* | \
7443   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7444   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7445   /usr/ucb/* ) ;;
7446   *)
7447     # OSF1 and SCO ODT 3.0 have their own names for install.
7448     # Don't use installbsd from OSF since it installs stuff as root
7449     # by default.
7450     for ac_prog in ginstall scoinst install; do
7451       for ac_exec_ext in '' $ac_executable_extensions; do
7452         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7453           if test $ac_prog = install &&
7454             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7455             # AIX install.  It has an incompatible calling convention.
7456             :
7457           elif test $ac_prog = install &&
7458             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7459             # program-specific install script used by HP pwplus--don't use.
7460             :
7461           else
7462             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7463             break 3
7464           fi
7465         fi
7466       done
7467     done
7468     ;;
7469 esac
7470 done
7471 IFS=$as_save_IFS
7472
7473
7474 fi
7475   if test "${ac_cv_path_install+set}" = set; then
7476     INSTALL=$ac_cv_path_install
7477   else
7478     # As a last resort, use the slow shell script.  Don't cache a
7479     # value for INSTALL within a source directory, because that will
7480     # break other packages using the cache if that directory is
7481     # removed, or if the value is a relative name.
7482     INSTALL=$ac_install_sh
7483   fi
7484 fi
7485 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7486 echo "${ECHO_T}$INSTALL" >&6; }
7487
7488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7489 # It thinks the first close brace ends the variable substitution.
7490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7491
7492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7493
7494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7495
7496
7497 # Extract the first word of "bzip2", so it can be a program name with args.
7498 set dummy bzip2; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_BZIP2+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   case $BZIP2 in
7505   [\\/]* | ?:[\\/]*)
7506   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7507   ;;
7508   *)
7509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514   for ac_exec_ext in '' $ac_executable_extensions; do
7515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7525   ;;
7526 esac
7527 fi
7528 BZIP2=$ac_cv_path_BZIP2
7529 if test -n "$BZIP2"; then
7530   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7531 echo "${ECHO_T}$BZIP2" >&6; }
7532 else
7533   { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7535 fi
7536
7537
7538 # Extract the first word of "doxygen", so it can be a program name with args.
7539 set dummy doxygen; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   case $DOXYGEN in
7546   [\\/]* | ?:[\\/]*)
7547   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7548   ;;
7549   *)
7550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7566   ;;
7567 esac
7568 fi
7569 DOXYGEN=$ac_cv_path_DOXYGEN
7570 if test -n "$DOXYGEN"; then
7571   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7572 echo "${ECHO_T}$DOXYGEN" >&6; }
7573 else
7574   { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576 fi
7577
7578
7579 # Extract the first word of "groff", so it can be a program name with args.
7580 set dummy groff; ac_word=$2
7581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583 if test "${ac_cv_path_GROFF+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   case $GROFF in
7587   [\\/]* | ?:[\\/]*)
7588   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7589   ;;
7590   *)
7591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596   for ac_exec_ext in '' $ac_executable_extensions; do
7597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7607   ;;
7608 esac
7609 fi
7610 GROFF=$ac_cv_path_GROFF
7611 if test -n "$GROFF"; then
7612   { echo "$as_me:$LINENO: result: $GROFF" >&5
7613 echo "${ECHO_T}$GROFF" >&6; }
7614 else
7615   { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7617 fi
7618
7619
7620 # Extract the first word of "gzip", so it can be a program name with args.
7621 set dummy gzip; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_GZIP+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   case $GZIP in
7628   [\\/]* | ?:[\\/]*)
7629   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7630   ;;
7631   *)
7632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637   for ac_exec_ext in '' $ac_executable_extensions; do
7638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644 done
7645 IFS=$as_save_IFS
7646
7647   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7648   ;;
7649 esac
7650 fi
7651 GZIP=$ac_cv_path_GZIP
7652 if test -n "$GZIP"; then
7653   { echo "$as_me:$LINENO: result: $GZIP" >&5
7654 echo "${ECHO_T}$GZIP" >&6; }
7655 else
7656   { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7658 fi
7659
7660
7661 # Extract the first word of "pod2html", so it can be a program name with args.
7662 set dummy pod2html; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_POD2HTML+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   case $POD2HTML in
7669   [\\/]* | ?:[\\/]*)
7670   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7671   ;;
7672   *)
7673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678   for ac_exec_ext in '' $ac_executable_extensions; do
7679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7689   ;;
7690 esac
7691 fi
7692 POD2HTML=$ac_cv_path_POD2HTML
7693 if test -n "$POD2HTML"; then
7694   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7695 echo "${ECHO_T}$POD2HTML" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702 # Extract the first word of "pod2man", so it can be a program name with args.
7703 set dummy pod2man; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_POD2MAN+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   case $POD2MAN in
7710   [\\/]* | ?:[\\/]*)
7711   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7712   ;;
7713   *)
7714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7730   ;;
7731 esac
7732 fi
7733 POD2MAN=$ac_cv_path_POD2MAN
7734 if test -n "$POD2MAN"; then
7735   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7736 echo "${ECHO_T}$POD2MAN" >&6; }
7737 else
7738   { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7740 fi
7741
7742
7743 # Extract the first word of "runtest", so it can be a program name with args.
7744 set dummy runtest; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_path_RUNTEST+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   case $RUNTEST in
7751   [\\/]* | ?:[\\/]*)
7752   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7753   ;;
7754   *)
7755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760   for ac_exec_ext in '' $ac_executable_extensions; do
7761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7762     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767 done
7768 IFS=$as_save_IFS
7769
7770   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7771   ;;
7772 esac
7773 fi
7774 RUNTEST=$ac_cv_path_RUNTEST
7775 if test -n "$RUNTEST"; then
7776   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7777 echo "${ECHO_T}$RUNTEST" >&6; }
7778 else
7779   { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7781 fi
7782
7783
7784
7785 no_itcl=true
7786 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7787 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7788
7789 # Check whether --with-tclinclude was given.
7790 if test "${with_tclinclude+set}" = set; then
7791   withval=$with_tclinclude; with_tclinclude=${withval}
7792 else
7793   with_tclinclude=''
7794 fi
7795
7796 if test "${ac_cv_path_tclsh+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799
7800 if test x"${with_tclinclude}" != x ; then
7801   if test -f ${with_tclinclude}/tclsh ; then
7802     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7803   elif test -f ${with_tclinclude}/src/tclsh ; then
7804     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7805   else
7806     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7807 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7808    { (exit 1); exit 1; }; }
7809   fi
7810 fi
7811
7812 if test x"${ac_cv_path_tclsh}" = x ; then
7813   { echo "$as_me:$LINENO: result: none" >&5
7814 echo "${ECHO_T}none" >&6; }
7815   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
7816 do
7817   # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821 if test "${ac_cv_path_TCLSH+set}" = set; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   case $TCLSH in
7825   [\\/]* | ?:[\\/]*)
7826   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7827   ;;
7828   *)
7829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832   IFS=$as_save_IFS
7833   test -z "$as_dir" && as_dir=.
7834   for ac_exec_ext in '' $ac_executable_extensions; do
7835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7836     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838     break 2
7839   fi
7840 done
7841 done
7842 IFS=$as_save_IFS
7843
7844   ;;
7845 esac
7846 fi
7847 TCLSH=$ac_cv_path_TCLSH
7848 if test -n "$TCLSH"; then
7849   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7850 echo "${ECHO_T}$TCLSH" >&6; }
7851 else
7852   { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7854 fi
7855
7856
7857   test -n "$TCLSH" && break
7858 done
7859
7860   if test x"${TCLSH}" = x ; then
7861     ac_cv_path_tclsh='';
7862   else
7863     ac_cv_path_tclsh="${TCLSH}";
7864   fi
7865 else
7866   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7867 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7868   TCLSH="${ac_cv_path_tclsh}"
7869
7870 fi
7871
7872 fi
7873
7874 # Extract the first word of "zip", so it can be a program name with args.
7875 set dummy zip; ac_word=$2
7876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878 if test "${ac_cv_path_ZIP+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   case $ZIP in
7882   [\\/]* | ?:[\\/]*)
7883   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7884   ;;
7885   *)
7886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891   for ac_exec_ext in '' $ac_executable_extensions; do
7892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7893     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898 done
7899 IFS=$as_save_IFS
7900
7901   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7902   ;;
7903 esac
7904 fi
7905 ZIP=$ac_cv_path_ZIP
7906 if test -n "$ZIP"; then
7907   { echo "$as_me:$LINENO: result: $ZIP" >&5
7908 echo "${ECHO_T}$ZIP" >&6; }
7909 else
7910   { echo "$as_me:$LINENO: result: no" >&5
7911 echo "${ECHO_T}no" >&6; }
7912 fi
7913
7914
7915
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_r+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921    ac_ext=c
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927   oldcflags="$CFLAGS"
7928   CFLAGS="$CFLAGS -Wl,-R."
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935
7936 int
7937 main ()
7938 {
7939 int main() { return 0; }
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_link") 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959   { (case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_try") 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   llvm_cv_link_use_r=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983         llvm_cv_link_use_r=no
7984 fi
7985
7986 rm -f core conftest.err conftest.$ac_objext \
7987       conftest$ac_exeext conftest.$ac_ext
7988   CFLAGS="$oldcflags"
7989   ac_ext=c
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995
7996 fi
7997 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7998 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7999 if test "$llvm_cv_link_use_r" = yes ; then
8000
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_LINK_R 1
8003 _ACEOF
8004
8005   fi
8006
8007
8008
8009
8010 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012 if test "${ac_cv_c_const+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021
8022 int
8023 main ()
8024 {
8025 /* FIXME: Include the comments suggested by Paul. */
8026 #ifndef __cplusplus
8027   /* Ultrix mips cc rejects this.  */
8028   typedef int charset[2];
8029   const charset x;
8030   /* SunOS 4.1.1 cc rejects this.  */
8031   char const *const *ccp;
8032   char **p;
8033   /* NEC SVR4.0.2 mips cc rejects this.  */
8034   struct point {int x, y;};
8035   static struct point const zero = {0,0};
8036   /* AIX XL C 1.02.0.0 rejects this.
8037      It does not let you subtract one const X* pointer from another in
8038      an arm of an if-expression whose if-part is not a constant
8039      expression */
8040   const char *g = "string";
8041   ccp = &g + (g ? g-g : 0);
8042   /* HPUX 7.0 cc rejects these. */
8043   ++ccp;
8044   p = (char**) ccp;
8045   ccp = (char const *const *) p;
8046   { /* SCO 3.2v4 cc rejects this.  */
8047     char *t;
8048     char const *s = 0 ? (char *) 0 : (char const *) 0;
8049
8050     *t++ = 0;
8051     if (s) return 0;
8052   }
8053   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8054     int x[] = {25, 17};
8055     const int *foo = &x[0];
8056     ++foo;
8057   }
8058   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059     typedef const int *iptr;
8060     iptr p = 0;
8061     ++p;
8062   }
8063   { /* AIX XL C 1.02.0.0 rejects this saying
8064        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065     struct s { int j; const int *ap[3]; };
8066     struct s *b; b->j = 5;
8067   }
8068   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8069     const int foo = 10;
8070     if (!foo) return 0;
8071   }
8072   return !x[0] && !zero.x;
8073 #endif
8074
8075   ;
8076   return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086   (eval "$ac_compile") 2>conftest.er1
8087   ac_status=$?
8088   grep -v '^ *+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8094   { (case "(($ac_try" in
8095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096   *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099   (eval "$ac_try") 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; } &&
8103          { ac_try='test -s conftest.$ac_objext'
8104   { (case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109   (eval "$ac_try") 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   ac_cv_c_const=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118         ac_cv_c_const=no
8119 fi
8120
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8124 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8125 if test $ac_cv_c_const = no; then
8126
8127 cat >>confdefs.h <<\_ACEOF
8128 #define const
8129 _ACEOF
8130
8131 fi
8132
8133
8134
8135
8136
8137
8138 ac_header_dirent=no
8139 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8140   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8141 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8142 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152 #include <sys/types.h>
8153 #include <$ac_hdr>
8154
8155 int
8156 main ()
8157 {
8158 if ((DIR *) 0)
8159 return 0;
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_compile") 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; } &&
8188          { ac_try='test -s conftest.$ac_objext'
8189   { (case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_try") 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   eval "$as_ac_Header=yes"
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203         eval "$as_ac_Header=no"
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209                { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212   cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8214 _ACEOF
8215
8216 ac_header_dirent=$ac_hdr; break
8217 fi
8218
8219 done
8220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8221 if test $ac_header_dirent = dirent.h; then
8222   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8224 if test "${ac_cv_search_opendir+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   ac_func_search_save_LIBS=$LIBS
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234
8235 /* Override any GCC internal prototype to avoid an error.
8236    Use char because int might match the return type of a GCC
8237    builtin and then its argument prototype would still apply.  */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 char opendir ();
8242 int
8243 main ()
8244 {
8245 return opendir ();
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 for ac_lib in '' dir; do
8251   if test -z "$ac_lib"; then
8252     ac_res="none required"
8253   else
8254     ac_res=-l$ac_lib
8255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8256   fi
8257   rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8259 case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_link") 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272   { (case "(($ac_try" in
8273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274   *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277   (eval "$ac_try") 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; } &&
8281          { ac_try='test -s conftest$ac_exeext'
8282   { (case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_try") 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; }; then
8291   ac_cv_search_opendir=$ac_res
8292 else
8293   echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296
8297 fi
8298
8299 rm -f core conftest.err conftest.$ac_objext \
8300       conftest$ac_exeext
8301   if test "${ac_cv_search_opendir+set}" = set; then
8302   break
8303 fi
8304 done
8305 if test "${ac_cv_search_opendir+set}" = set; then
8306   :
8307 else
8308   ac_cv_search_opendir=no
8309 fi
8310 rm conftest.$ac_ext
8311 LIBS=$ac_func_search_save_LIBS
8312 fi
8313 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8315 ac_res=$ac_cv_search_opendir
8316 if test "$ac_res" != no; then
8317   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8318
8319 fi
8320
8321 else
8322   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8323 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8324 if test "${ac_cv_search_opendir+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   ac_func_search_save_LIBS=$LIBS
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334
8335 /* Override any GCC internal prototype to avoid an error.
8336    Use char because int might match the return type of a GCC
8337    builtin and then its argument prototype would still apply.  */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 char opendir ();
8342 int
8343 main ()
8344 {
8345 return opendir ();
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 for ac_lib in '' x; do
8351   if test -z "$ac_lib"; then
8352     ac_res="none required"
8353   else
8354     ac_res=-l$ac_lib
8355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8356   fi
8357   rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8359 case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_link") 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372   { (case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_try") 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; } &&
8381          { ac_try='test -s conftest$ac_exeext'
8382   { (case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_try") 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; }; then
8391   ac_cv_search_opendir=$ac_res
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext \
8400       conftest$ac_exeext
8401   if test "${ac_cv_search_opendir+set}" = set; then
8402   break
8403 fi
8404 done
8405 if test "${ac_cv_search_opendir+set}" = set; then
8406   :
8407 else
8408   ac_cv_search_opendir=no
8409 fi
8410 rm conftest.$ac_ext
8411 LIBS=$ac_func_search_save_LIBS
8412 fi
8413 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8414 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8415 ac_res=$ac_cv_search_opendir
8416 if test "$ac_res" != no; then
8417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8418
8419 fi
8420
8421 fi
8422
8423
8424 for ac_header in dlfcn.h
8425 do
8426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 fi
8433 ac_res=`eval echo '${'$as_ac_Header'}'`
8434                { echo "$as_me:$LINENO: result: $ac_res" >&5
8435 echo "${ECHO_T}$ac_res" >&6; }
8436 else
8437   # Is the header compilable?
8438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 $ac_includes_default
8447 #include <$ac_header>
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8451 case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_compile") 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } &&
8463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464   { (case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469   (eval "$ac_try") 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; } &&
8473          { ac_try='test -s conftest.$ac_objext'
8474   { (case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_try") 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   ac_header_compiler=yes
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8487
8488         ac_header_compiler=no
8489 fi
8490
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493 echo "${ECHO_T}$ac_header_compiler" >&6; }
8494
8495 # Is the header present?
8496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504 #include <$ac_header>
8505 _ACEOF
8506 if { (ac_try="$ac_cpp conftest.$ac_ext"
8507 case "(($ac_try" in
8508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509   *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8513   ac_status=$?
8514   grep -v '^ *+' conftest.er1 >conftest.err
8515   rm -f conftest.er1
8516   cat conftest.err >&5
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } >/dev/null; then
8519   if test -s conftest.err; then
8520     ac_cpp_err=$ac_c_preproc_warn_flag
8521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8522   else
8523     ac_cpp_err=
8524   fi
8525 else
8526   ac_cpp_err=yes
8527 fi
8528 if test -z "$ac_cpp_err"; then
8529   ac_header_preproc=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534   ac_header_preproc=no
8535 fi
8536
8537 rm -f conftest.err conftest.$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539 echo "${ECHO_T}$ac_header_preproc" >&6; }
8540
8541 # So?  What about this header?
8542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8543   yes:no: )
8544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548     ac_header_preproc=yes
8549     ;;
8550   no:yes:* )
8551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8563     ( cat <<\_ASBOX
8564 ## ----------------------------------- ##
8565 ## Report this to llvmbugs@cs.uiuc.edu ##
8566 ## ----------------------------------- ##
8567 _ASBOX
8568      ) | sed "s/^/$as_me: WARNING:     /" >&2
8569     ;;
8570 esac
8571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   eval "$as_ac_Header=\$ac_header_preproc"
8577 fi
8578 ac_res=`eval echo '${'$as_ac_Header'}'`
8579                { echo "$as_me:$LINENO: result: $ac_res" >&5
8580 echo "${ECHO_T}$ac_res" >&6; }
8581
8582 fi
8583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8584   cat >>confdefs.h <<_ACEOF
8585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8586 _ACEOF
8587
8588 fi
8589
8590 done
8591
8592 # Check whether --enable-ltdl-install was given.
8593 if test "${enable_ltdl_install+set}" = set; then
8594   enableval=$enable_ltdl_install;
8595 fi
8596
8597
8598
8599
8600 if test x"${enable_ltdl_install-no}" != xno; then
8601   INSTALL_LTDL_TRUE=
8602   INSTALL_LTDL_FALSE='#'
8603 else
8604   INSTALL_LTDL_TRUE='#'
8605   INSTALL_LTDL_FALSE=
8606 fi
8607
8608
8609
8610 if test x"${enable_ltdl_convenience-no}" != xno; then
8611   CONVENIENCE_LTDL_TRUE=
8612   CONVENIENCE_LTDL_FALSE='#'
8613 else
8614   CONVENIENCE_LTDL_TRUE='#'
8615   CONVENIENCE_LTDL_FALSE=
8616 fi
8617
8618
8619 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8621 library_names_spec=
8622 libname_spec='lib$name'
8623 soname_spec=
8624 shrext_cmds=".so"
8625 postinstall_cmds=
8626 postuninstall_cmds=
8627 finish_cmds=
8628 finish_eval=
8629 shlibpath_var=
8630 shlibpath_overrides_runpath=unknown
8631 version_type=none
8632 dynamic_linker="$host_os ld.so"
8633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8634 if test "$GCC" = yes; then
8635   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8636   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8637     # if the path contains ";" then we assume it to be the separator
8638     # otherwise default to the standard path separator (i.e. ":") - it is
8639     # assumed that no part of a normal pathname contains ";" but that should
8640     # okay in the real world where ";" in dirpaths is itself problematic.
8641     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8642   else
8643     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8644   fi
8645 else
8646   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8647 fi
8648 need_lib_prefix=unknown
8649 hardcode_into_libs=no
8650
8651 # when you set need_version to no, make sure it does not cause -set_version
8652 # flags to be left without arguments
8653 need_version=unknown
8654
8655 case $host_os in
8656 aix3*)
8657   version_type=linux
8658   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8659   shlibpath_var=LIBPATH
8660
8661   # AIX 3 has no versioning support, so we append a major version to the name.
8662   soname_spec='${libname}${release}${shared_ext}$major'
8663   ;;
8664
8665 aix4* | aix5*)
8666   version_type=linux
8667   need_lib_prefix=no
8668   need_version=no
8669   hardcode_into_libs=yes
8670   if test "$host_cpu" = ia64; then
8671     # AIX 5 supports IA64
8672     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8673     shlibpath_var=LD_LIBRARY_PATH
8674   else
8675     # With GCC up to 2.95.x, collect2 would create an import file
8676     # for dependence libraries.  The import file would start with
8677     # the line `#! .'.  This would cause the generated library to
8678     # depend on `.', always an invalid library.  This was fixed in
8679     # development snapshots of GCC prior to 3.0.
8680     case $host_os in
8681       aix4 | aix4.[01] | aix4.[01].*)
8682       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8683            echo ' yes '
8684            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8685         :
8686       else
8687         can_build_shared=no
8688       fi
8689       ;;
8690     esac
8691     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8692     # soname into executable. Probably we can add versioning support to
8693     # collect2, so additional links can be useful in future.
8694     if test "$aix_use_runtimelinking" = yes; then
8695       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8696       # instead of lib<name>.a to let people know that these are not
8697       # typical AIX shared libraries.
8698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699     else
8700       # We preserve .a as extension for shared libraries through AIX4.2
8701       # and later when we are not doing run time linking.
8702       library_names_spec='${libname}${release}.a $libname.a'
8703       soname_spec='${libname}${release}${shared_ext}$major'
8704     fi
8705     shlibpath_var=LIBPATH
8706   fi
8707   ;;
8708
8709 amigaos*)
8710   library_names_spec='$libname.ixlibrary $libname.a'
8711   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8712   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'
8713   ;;
8714
8715 beos*)
8716   library_names_spec='${libname}${shared_ext}'
8717   dynamic_linker="$host_os ld.so"
8718   shlibpath_var=LIBRARY_PATH
8719   ;;
8720
8721 bsdi[45]*)
8722   version_type=linux
8723   need_version=no
8724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725   soname_spec='${libname}${release}${shared_ext}$major'
8726   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727   shlibpath_var=LD_LIBRARY_PATH
8728   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730   # the default ld.so.conf also contains /usr/contrib/lib and
8731   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732   # libtool to hard-code these into programs
8733   ;;
8734
8735 cygwin* | mingw* | pw32*)
8736   version_type=windows
8737   shrext_cmds=".dll"
8738   need_version=no
8739   need_lib_prefix=no
8740
8741   case $GCC,$host_os in
8742   yes,cygwin* | yes,mingw* | yes,pw32*)
8743     library_names_spec='$libname.dll.a'
8744     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745     postinstall_cmds='base_file=`basename \${file}`~
8746       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8747       dldir=$destdir/`dirname \$dlpath`~
8748       test -d \$dldir || mkdir -p \$dldir~
8749       $install_prog $dir/$dlname \$dldir/$dlname~
8750       chmod a+x \$dldir/$dlname'
8751     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8752       dlpath=$dir/\$dldll~
8753        $rm \$dlpath'
8754     shlibpath_overrides_runpath=yes
8755
8756     case $host_os in
8757     cygwin*)
8758       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8759       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8761       ;;
8762     mingw*)
8763       # MinGW DLLs use traditional 'lib' prefix
8764       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8767         # It is most probably a Windows format PATH printed by
8768         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8769         # path with ; separators, and with drive letters. We can handle the
8770         # drive letters (cygwin fileutils understands them), so leave them,
8771         # especially as we might pass files found there to a mingw objdump,
8772         # which wouldn't understand a cygwinified path. Ahh.
8773         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8774       else
8775         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8776       fi
8777       ;;
8778     pw32*)
8779       # pw32 DLLs use 'pw' prefix rather than 'lib'
8780       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8781       ;;
8782     esac
8783     ;;
8784
8785   *)
8786     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8787     ;;
8788   esac
8789   dynamic_linker='Win32 ld.exe'
8790   # FIXME: first we should search . and the directory the executable is in
8791   shlibpath_var=PATH
8792   ;;
8793
8794 darwin* | rhapsody*)
8795   dynamic_linker="$host_os dyld"
8796   version_type=darwin
8797   need_lib_prefix=no
8798   need_version=no
8799   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8800   soname_spec='${libname}${release}${major}$shared_ext'
8801   shlibpath_overrides_runpath=yes
8802   shlibpath_var=DYLD_LIBRARY_PATH
8803   shrext_cmds='.dylib'
8804   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8805   if test "$GCC" = yes; then
8806     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"`
8807   else
8808     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8809   fi
8810   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8811   ;;
8812
8813 dgux*)
8814   version_type=linux
8815   need_lib_prefix=no
8816   need_version=no
8817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8818   soname_spec='${libname}${release}${shared_ext}$major'
8819   shlibpath_var=LD_LIBRARY_PATH
8820   ;;
8821
8822 freebsd1*)
8823   dynamic_linker=no
8824   ;;
8825
8826 kfreebsd*-gnu)
8827   version_type=linux
8828   need_lib_prefix=no
8829   need_version=no
8830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831   soname_spec='${libname}${release}${shared_ext}$major'
8832   shlibpath_var=LD_LIBRARY_PATH
8833   shlibpath_overrides_runpath=no
8834   hardcode_into_libs=yes
8835   dynamic_linker='GNU ld.so'
8836   ;;
8837
8838 freebsd* | dragonfly*)
8839   # DragonFly does not have aout.  When/if they implement a new
8840   # versioning mechanism, adjust this.
8841   if test -x /usr/bin/objformat; then
8842     objformat=`/usr/bin/objformat`
8843   else
8844     case $host_os in
8845     freebsd[123]*) objformat=aout ;;
8846     *) objformat=elf ;;
8847     esac
8848   fi
8849   version_type=freebsd-$objformat
8850   case $version_type in
8851     freebsd-elf*)
8852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8853       need_version=no
8854       need_lib_prefix=no
8855       ;;
8856     freebsd-*)
8857       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8858       need_version=yes
8859       ;;
8860   esac
8861   shlibpath_var=LD_LIBRARY_PATH
8862   case $host_os in
8863   freebsd2*)
8864     shlibpath_overrides_runpath=yes
8865     ;;
8866   freebsd3.[01]* | freebsdelf3.[01]*)
8867     shlibpath_overrides_runpath=yes
8868     hardcode_into_libs=yes
8869     ;;
8870   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8871   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8872     shlibpath_overrides_runpath=no
8873     hardcode_into_libs=yes
8874     ;;
8875   freebsd*) # from 4.6 on
8876     shlibpath_overrides_runpath=yes
8877     hardcode_into_libs=yes
8878     ;;
8879   esac
8880   ;;
8881
8882 gnu*)
8883   version_type=linux
8884   need_lib_prefix=no
8885   need_version=no
8886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8887   soname_spec='${libname}${release}${shared_ext}$major'
8888   shlibpath_var=LD_LIBRARY_PATH
8889   hardcode_into_libs=yes
8890   ;;
8891
8892 hpux9* | hpux10* | hpux11*)
8893   # Give a soname corresponding to the major version so that dld.sl refuses to
8894   # link against other versions.
8895   version_type=sunos
8896   need_lib_prefix=no
8897   need_version=no
8898   case $host_cpu in
8899   ia64*)
8900     shrext_cmds='.so'
8901     hardcode_into_libs=yes
8902     dynamic_linker="$host_os dld.so"
8903     shlibpath_var=LD_LIBRARY_PATH
8904     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906     soname_spec='${libname}${release}${shared_ext}$major'
8907     if test "X$HPUX_IA64_MODE" = X32; then
8908       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8909     else
8910       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8911     fi
8912     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8913     ;;
8914    hppa*64*)
8915      shrext_cmds='.sl'
8916      hardcode_into_libs=yes
8917      dynamic_linker="$host_os dld.sl"
8918      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8919      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8920      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921      soname_spec='${libname}${release}${shared_ext}$major'
8922      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8923      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8924      ;;
8925    *)
8926     shrext_cmds='.sl'
8927     dynamic_linker="$host_os dld.sl"
8928     shlibpath_var=SHLIB_PATH
8929     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931     soname_spec='${libname}${release}${shared_ext}$major'
8932     ;;
8933   esac
8934   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8935   postinstall_cmds='chmod 555 $lib'
8936   ;;
8937
8938 interix3*)
8939   version_type=linux
8940   need_lib_prefix=no
8941   need_version=no
8942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943   soname_spec='${libname}${release}${shared_ext}$major'
8944   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   shlibpath_overrides_runpath=no
8947   hardcode_into_libs=yes
8948   ;;
8949
8950 irix5* | irix6* | nonstopux*)
8951   case $host_os in
8952     nonstopux*) version_type=nonstopux ;;
8953     *)
8954         if test "$lt_cv_prog_gnu_ld" = yes; then
8955                 version_type=linux
8956         else
8957                 version_type=irix
8958         fi ;;
8959   esac
8960   need_lib_prefix=no
8961   need_version=no
8962   soname_spec='${libname}${release}${shared_ext}$major'
8963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8964   case $host_os in
8965   irix5* | nonstopux*)
8966     libsuff= shlibsuff=
8967     ;;
8968   *)
8969     case $LD in # libtool.m4 will add one of these switches to LD
8970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8971       libsuff= shlibsuff= libmagic=32-bit;;
8972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8973       libsuff=32 shlibsuff=N32 libmagic=N32;;
8974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8976     *) libsuff= shlibsuff= libmagic=never-match;;
8977     esac
8978     ;;
8979   esac
8980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8981   shlibpath_overrides_runpath=no
8982   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8983   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8984   hardcode_into_libs=yes
8985   ;;
8986
8987 # No shared lib support for Linux oldld, aout, or coff.
8988 linux*oldld* | linux*aout* | linux*coff*)
8989   dynamic_linker=no
8990   ;;
8991
8992 # This must be Linux ELF.
8993 linux*)
8994   version_type=linux
8995   need_lib_prefix=no
8996   need_version=no
8997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998   soname_spec='${libname}${release}${shared_ext}$major'
8999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9000   shlibpath_var=LD_LIBRARY_PATH
9001   shlibpath_overrides_runpath=no
9002   # This implies no fast_install, which is unacceptable.
9003   # Some rework will be needed to allow for fast_install
9004   # before this can be enabled.
9005   hardcode_into_libs=yes
9006
9007   # Append ld.so.conf contents to the search path
9008   if test -f /etc/ld.so.conf; then
9009     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' ' '`
9010     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9011   fi
9012
9013   # We used to test for /lib/ld.so.1 and disable shared libraries on
9014   # powerpc, because MkLinux only supported shared libraries with the
9015   # GNU dynamic linker.  Since this was broken with cross compilers,
9016   # most powerpc-linux boxes support dynamic linking these days and
9017   # people can always --disable-shared, the test was removed, and we
9018   # assume the GNU/Linux dynamic linker is in use.
9019   dynamic_linker='GNU/Linux ld.so'
9020   ;;
9021
9022 knetbsd*-gnu)
9023   version_type=linux
9024   need_lib_prefix=no
9025   need_version=no
9026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027   soname_spec='${libname}${release}${shared_ext}$major'
9028   shlibpath_var=LD_LIBRARY_PATH
9029   shlibpath_overrides_runpath=no
9030   hardcode_into_libs=yes
9031   dynamic_linker='GNU ld.so'
9032   ;;
9033
9034 netbsd*)
9035   version_type=sunos
9036   need_lib_prefix=no
9037   need_version=no
9038   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041     dynamic_linker='NetBSD (a.out) ld.so'
9042   else
9043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044     soname_spec='${libname}${release}${shared_ext}$major'
9045     dynamic_linker='NetBSD ld.elf_so'
9046   fi
9047   shlibpath_var=LD_LIBRARY_PATH
9048   shlibpath_overrides_runpath=yes
9049   hardcode_into_libs=yes
9050   ;;
9051
9052 newsos6)
9053   version_type=linux
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   shlibpath_overrides_runpath=yes
9057   ;;
9058
9059 nto-qnx*)
9060   version_type=linux
9061   need_lib_prefix=no
9062   need_version=no
9063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064   soname_spec='${libname}${release}${shared_ext}$major'
9065   shlibpath_var=LD_LIBRARY_PATH
9066   shlibpath_overrides_runpath=yes
9067   ;;
9068
9069 openbsd*)
9070   version_type=sunos
9071   sys_lib_dlsearch_path_spec="/usr/lib"
9072   need_lib_prefix=no
9073   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9074   case $host_os in
9075     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9076     *)                         need_version=no  ;;
9077   esac
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9080   shlibpath_var=LD_LIBRARY_PATH
9081   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9082     case $host_os in
9083       openbsd2.[89] | openbsd2.[89].*)
9084         shlibpath_overrides_runpath=no
9085         ;;
9086       *)
9087         shlibpath_overrides_runpath=yes
9088         ;;
9089       esac
9090   else
9091     shlibpath_overrides_runpath=yes
9092   fi
9093   ;;
9094
9095 os2*)
9096   libname_spec='$name'
9097   shrext_cmds=".dll"
9098   need_lib_prefix=no
9099   library_names_spec='$libname${shared_ext} $libname.a'
9100   dynamic_linker='OS/2 ld.exe'
9101   shlibpath_var=LIBPATH
9102   ;;
9103
9104 osf3* | osf4* | osf5*)
9105   version_type=osf
9106   need_lib_prefix=no
9107   need_version=no
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110   shlibpath_var=LD_LIBRARY_PATH
9111   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9112   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9113   ;;
9114
9115 solaris*)
9116   version_type=linux
9117   need_lib_prefix=no
9118   need_version=no
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120   soname_spec='${libname}${release}${shared_ext}$major'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   shlibpath_overrides_runpath=yes
9123   hardcode_into_libs=yes
9124   # ldd complains unless libraries are executable
9125   postinstall_cmds='chmod +x $lib'
9126   ;;
9127
9128 sunos4*)
9129   version_type=sunos
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9131   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   shlibpath_overrides_runpath=yes
9134   if test "$with_gnu_ld" = yes; then
9135     need_lib_prefix=no
9136   fi
9137   need_version=yes
9138   ;;
9139
9140 sysv4 | sysv4.3*)
9141   version_type=linux
9142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143   soname_spec='${libname}${release}${shared_ext}$major'
9144   shlibpath_var=LD_LIBRARY_PATH
9145   case $host_vendor in
9146     sni)
9147       shlibpath_overrides_runpath=no
9148       need_lib_prefix=no
9149       export_dynamic_flag_spec='${wl}-Blargedynsym'
9150       runpath_var=LD_RUN_PATH
9151       ;;
9152     siemens)
9153       need_lib_prefix=no
9154       ;;
9155     motorola)
9156       need_lib_prefix=no
9157       need_version=no
9158       shlibpath_overrides_runpath=no
9159       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9160       ;;
9161   esac
9162   ;;
9163
9164 sysv4*MP*)
9165   if test -d /usr/nec ;then
9166     version_type=linux
9167     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168     soname_spec='$libname${shared_ext}.$major'
9169     shlibpath_var=LD_LIBRARY_PATH
9170   fi
9171   ;;
9172
9173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174   version_type=freebsd-elf
9175   need_lib_prefix=no
9176   need_version=no
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   hardcode_into_libs=yes
9181   if test "$with_gnu_ld" = yes; then
9182     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9183     shlibpath_overrides_runpath=no
9184   else
9185     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186     shlibpath_overrides_runpath=yes
9187     case $host_os in
9188       sco3.2v5*)
9189         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9190         ;;
9191     esac
9192   fi
9193   sys_lib_dlsearch_path_spec='/usr/lib'
9194   ;;
9195
9196 uts4*)
9197   version_type=linux
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199   soname_spec='${libname}${release}${shared_ext}$major'
9200   shlibpath_var=LD_LIBRARY_PATH
9201   ;;
9202
9203 *)
9204   dynamic_linker=no
9205   ;;
9206 esac
9207 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9208 echo "${ECHO_T}$dynamic_linker" >&6; }
9209 test "$dynamic_linker" = no && can_build_shared=no
9210
9211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9212 if test "$GCC" = yes; then
9213   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9214 fi
9215
9216
9217 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9218 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_shlibext+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222
9223 module=yes
9224 eval libltdl_cv_shlibext=$shrext_cmds
9225
9226 fi
9227 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9228 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9229 if test -n "$libltdl_cv_shlibext"; then
9230
9231 cat >>confdefs.h <<_ACEOF
9232 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9233 _ACEOF
9234
9235 fi
9236
9237
9238 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9239 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9240 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   libltdl_cv_shlibpath_var="$shlibpath_var"
9244 fi
9245 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9246 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9247 if test -n "$libltdl_cv_shlibpath_var"; then
9248
9249 cat >>confdefs.h <<_ACEOF
9250 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9251 _ACEOF
9252
9253 fi
9254
9255
9256 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9257 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9258 if test "${libltdl_cv_sys_search_path+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9262 fi
9263 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9264 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9265 if test -n "$libltdl_cv_sys_search_path"; then
9266   sys_search_path=
9267   for dir in $libltdl_cv_sys_search_path; do
9268     if test -z "$sys_search_path"; then
9269       sys_search_path="$dir"
9270     else
9271       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9272     fi
9273   done
9274
9275 cat >>confdefs.h <<_ACEOF
9276 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9277 _ACEOF
9278
9279 fi
9280
9281 { echo "$as_me:$LINENO: checking for objdir" >&5
9282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9283 if test "${libltdl_cv_objdir+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   libltdl_cv_objdir="$objdir"
9287   if test -n "$objdir"; then
9288     :
9289   else
9290     rm -f .libs 2>/dev/null
9291     mkdir .libs 2>/dev/null
9292     if test -d .libs; then
9293       libltdl_cv_objdir=.libs
9294     else
9295       # MS-DOS does not allow filenames that begin with a dot.
9296       libltdl_cv_objdir=_libs
9297     fi
9298   rmdir .libs 2>/dev/null
9299   fi
9300
9301 fi
9302 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9303 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9304
9305 cat >>confdefs.h <<_ACEOF
9306 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9307 _ACEOF
9308
9309
9310
9311
9312
9313
9314 # Check for command to grab the raw symbol name followed by C symbol from nm.
9315 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9316 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9317 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320
9321 # These are sane defaults that work on at least a few old systems.
9322 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9323
9324 # Character class describing NM global symbol codes.
9325 symcode='[BCDEGRST]'
9326
9327 # Regexp to match symbols that can be accessed directly from C.
9328 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9329
9330 # Transform an extracted symbol line into a proper C declaration
9331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9332
9333 # Transform an extracted symbol line into symbol name and symbol address
9334 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'"
9335
9336 # Define system-specific variables.
9337 case $host_os in
9338 aix*)
9339   symcode='[BCDT]'
9340   ;;
9341 cygwin* | mingw* | pw32*)
9342   symcode='[ABCDGISTW]'
9343   ;;
9344 hpux*) # Its linker distinguishes data from code symbols
9345   if test "$host_cpu" = ia64; then
9346     symcode='[ABCDEGRST]'
9347   fi
9348   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9349   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'"
9350   ;;
9351 linux*)
9352   if test "$host_cpu" = ia64; then
9353     symcode='[ABCDGIRSTW]'
9354     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9355     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'"
9356   fi
9357   ;;
9358 irix* | nonstopux*)
9359   symcode='[BCDEGRST]'
9360   ;;
9361 osf*)
9362   symcode='[BCDEGQRST]'
9363   ;;
9364 solaris*)
9365   symcode='[BDRT]'
9366   ;;
9367 sco3.2v5*)
9368   symcode='[DT]'
9369   ;;
9370 sysv4.2uw2*)
9371   symcode='[DT]'
9372   ;;
9373 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9374   symcode='[ABDT]'
9375   ;;
9376 sysv4)
9377   symcode='[DFNSTU]'
9378   ;;
9379 esac
9380
9381 # Handle CRLF in mingw tool chain
9382 opt_cr=
9383 case $build_os in
9384 mingw*)
9385   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9386   ;;
9387 esac
9388
9389 # If we're using GNU nm, then use its standard symbol codes.
9390 case `$NM -V 2>&1` in
9391 *GNU* | *'with BFD'*)
9392   symcode='[ABCDGIRSTW]' ;;
9393 esac
9394
9395 # Try without a prefix undercore, then with it.
9396 for ac_symprfx in "" "_"; do
9397
9398   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9399   symxfrm="\\1 $ac_symprfx\\2 \\2"
9400
9401   # Write the raw and C identifiers.
9402   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9403
9404   # Check to see that the pipe works correctly.
9405   pipe_works=no
9406
9407   rm -f conftest*
9408   cat > conftest.$ac_ext <<EOF
9409 #ifdef __cplusplus
9410 extern "C" {
9411 #endif
9412 char nm_test_var;
9413 void nm_test_func(){}
9414 #ifdef __cplusplus
9415 }
9416 #endif
9417 int main(){nm_test_var='a';nm_test_func();return(0);}
9418 EOF
9419
9420   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421   (eval $ac_compile) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); }; then
9425     # Now try to grab the symbols.
9426     nlist=conftest.nm
9427     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9428   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } && test -s "$nlist"; then
9432       # Try sorting and uniquifying the output.
9433       if sort "$nlist" | uniq > "$nlist"T; then
9434         mv -f "$nlist"T "$nlist"
9435       else
9436         rm -f "$nlist"T
9437       fi
9438
9439       # Make sure that we snagged all the symbols we need.
9440       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9441         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9442           cat <<EOF > conftest.$ac_ext
9443 #ifdef __cplusplus
9444 extern "C" {
9445 #endif
9446
9447 EOF
9448           # Now generate the symbol file.
9449           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9450
9451           cat <<EOF >> conftest.$ac_ext
9452 #if defined (__STDC__) && __STDC__
9453 # define lt_ptr_t void *
9454 #else
9455 # define lt_ptr_t char *
9456 # define const
9457 #endif
9458
9459 /* The mapping between symbol names and symbols. */
9460 const struct {
9461   const char *name;
9462   lt_ptr_t address;
9463 }
9464 lt_preloaded_symbols[] =
9465 {
9466 EOF
9467           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9468           cat <<\EOF >> conftest.$ac_ext
9469   {0, (lt_ptr_t) 0}
9470 };
9471
9472 #ifdef __cplusplus
9473 }
9474 #endif
9475 EOF
9476           # Now try linking the two files.
9477           mv conftest.$ac_objext conftstm.$ac_objext
9478           lt_save_LIBS="$LIBS"
9479           lt_save_CFLAGS="$CFLAGS"
9480           LIBS="conftstm.$ac_objext"
9481           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9482           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483   (eval $ac_link) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9487             pipe_works=yes
9488           fi
9489           LIBS="$lt_save_LIBS"
9490           CFLAGS="$lt_save_CFLAGS"
9491         else
9492           echo "cannot find nm_test_func in $nlist" >&5
9493         fi
9494       else
9495         echo "cannot find nm_test_var in $nlist" >&5
9496       fi
9497     else
9498       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9499     fi
9500   else
9501     echo "$progname: failed program was:" >&5
9502     cat conftest.$ac_ext >&5
9503   fi
9504   rm -f conftest* conftst*
9505
9506   # Do not use the global_symbol_pipe unless it works.
9507   if test "$pipe_works" = yes; then
9508     break
9509   else
9510     lt_cv_sys_global_symbol_pipe=
9511   fi
9512 done
9513
9514 fi
9515
9516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9517   lt_cv_sys_global_symbol_to_cdecl=
9518 fi
9519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9520   { echo "$as_me:$LINENO: result: failed" >&5
9521 echo "${ECHO_T}failed" >&6; }
9522 else
9523   { echo "$as_me:$LINENO: result: ok" >&5
9524 echo "${ECHO_T}ok" >&6; }
9525 fi
9526
9527
9528 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9529 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9530 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9534     libltdl_cv_preloaded_symbols=yes
9535   else
9536     libltdl_cv_preloaded_symbols=no
9537   fi
9538
9539 fi
9540 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9541 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9542 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9543
9544 cat >>confdefs.h <<\_ACEOF
9545 #define HAVE_PRELOADED_SYMBOLS 1
9546 _ACEOF
9547
9548 fi
9549
9550 LIBADD_DL=
9551
9552 ac_ext=c
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558
9559 { echo "$as_me:$LINENO: checking for shl_load" >&5
9560 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_shl_load+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9572 #define shl_load innocuous_shl_load
9573
9574 /* System header to define __stub macros and hopefully few prototypes,
9575     which can conflict with char shl_load (); below.
9576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577     <limits.h> exists even on freestanding compilers.  */
9578
9579 #ifdef __STDC__
9580 # include <limits.h>
9581 #else
9582 # include <assert.h>
9583 #endif
9584
9585 #undef shl_load
9586
9587 /* Override any GCC internal prototype to avoid an error.
9588    Use char because int might match the return type of a GCC
9589    builtin and then its argument prototype would still apply.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char shl_load ();
9594 /* The GNU C library defines this for functions which it implements
9595     to always fail with ENOSYS.  Some functions are actually named
9596     something starting with __ and the normal name is an alias.  */
9597 #if defined __stub_shl_load || defined __stub___shl_load
9598 choke me
9599 #endif
9600
9601 int
9602 main ()
9603 {
9604 return shl_load ();
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616   (eval "$ac_link") 2>conftest.er1
9617   ac_status=$?
9618   grep -v '^ *+' conftest.er1 >conftest.err
9619   rm -f conftest.er1
9620   cat conftest.err >&5
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } &&
9623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624   { (case "(($ac_try" in
9625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626   *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629   (eval "$ac_try") 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; } &&
9633          { ac_try='test -s conftest$ac_exeext'
9634   { (case "(($ac_try" in
9635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636   *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639   (eval "$ac_try") 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; }; then
9643   ac_cv_func_shl_load=yes
9644 else
9645   echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648         ac_cv_func_shl_load=no
9649 fi
9650
9651 rm -f core conftest.err conftest.$ac_objext \
9652       conftest$ac_exeext conftest.$ac_ext
9653 fi
9654 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9655 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9656 if test $ac_cv_func_shl_load = yes; then
9657
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_SHL_LOAD 1
9660 _ACEOF
9661
9662 else
9663   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9664 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-ldld  $LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678    Use char because int might match the return type of a GCC
9679    builtin and then its argument prototype would still apply.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char shl_load ();
9684 int
9685 main ()
9686 {
9687 return shl_load ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_link") 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707   { (case "(($ac_try" in
9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709   *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712   (eval "$ac_try") 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; } &&
9716          { ac_try='test -s conftest$ac_exeext'
9717   { (case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_try") 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_lib_dld_shl_load=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         ac_cv_lib_dld_shl_load=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext \
9735       conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9737 fi
9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9739 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9740 if test $ac_cv_lib_dld_shl_load = yes; then
9741
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_SHL_LOAD 1
9744 _ACEOF
9745
9746         LIBADD_DL="$LIBADD_DL -ldld"
9747 else
9748   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   ac_check_lib_save_LIBS=$LIBS
9754 LIBS="-ldl  $LIBS"
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761
9762 /* Override any GCC internal prototype to avoid an error.
9763    Use char because int might match the return type of a GCC
9764    builtin and then its argument prototype would still apply.  */
9765 #ifdef __cplusplus
9766 extern "C"
9767 #endif
9768 char dlopen ();
9769 int
9770 main ()
9771 {
9772 return dlopen ();
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9779 case "(($ac_try" in
9780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781   *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784   (eval "$ac_link") 2>conftest.er1
9785   ac_status=$?
9786   grep -v '^ *+' conftest.er1 >conftest.err
9787   rm -f conftest.er1
9788   cat conftest.err >&5
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } &&
9791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792   { (case "(($ac_try" in
9793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794   *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797   (eval "$ac_try") 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; } &&
9801          { ac_try='test -s conftest$ac_exeext'
9802   { (case "(($ac_try" in
9803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804   *) ac_try_echo=$ac_try;;
9805 esac
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807   (eval "$ac_try") 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   ac_cv_lib_dl_dlopen=yes
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816         ac_cv_lib_dl_dlopen=no
9817 fi
9818
9819 rm -f core conftest.err conftest.$ac_objext \
9820       conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9822 fi
9823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9825 if test $ac_cv_lib_dl_dlopen = yes; then
9826
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_LIBDL 1
9829 _ACEOF
9830
9831                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9832 else
9833   cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839 #if HAVE_DLFCN_H
9840 #  include <dlfcn.h>
9841 #endif
9842
9843 int
9844 main ()
9845 {
9846 dlopen(0, 0);
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9853 case "(($ac_try" in
9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855   *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858   (eval "$ac_link") 2>conftest.er1
9859   ac_status=$?
9860   grep -v '^ *+' conftest.er1 >conftest.err
9861   rm -f conftest.er1
9862   cat conftest.err >&5
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); } &&
9865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866   { (case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_try") 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885
9886 cat >>confdefs.h <<\_ACEOF
9887 #define HAVE_LIBDL 1
9888 _ACEOF
9889  libltdl_cv_func_dlopen="yes"
9890 else
9891   echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-lsvld  $LIBS"
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h.  */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h.  */
9907
9908 /* Override any GCC internal prototype to avoid an error.
9909    Use char because int might match the return type of a GCC
9910    builtin and then its argument prototype would still apply.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char dlopen ();
9915 int
9916 main ()
9917 {
9918 return dlopen ();
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9925 case "(($ac_try" in
9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927   *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930   (eval "$ac_link") 2>conftest.er1
9931   ac_status=$?
9932   grep -v '^ *+' conftest.er1 >conftest.err
9933   rm -f conftest.er1
9934   cat conftest.err >&5
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938   { (case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_try") 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; } &&
9947          { ac_try='test -s conftest$ac_exeext'
9948   { (case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_try") 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; }; then
9957   ac_cv_lib_svld_dlopen=yes
9958 else
9959   echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962         ac_cv_lib_svld_dlopen=no
9963 fi
9964
9965 rm -f core conftest.err conftest.$ac_objext \
9966       conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9968 fi
9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9971 if test $ac_cv_lib_svld_dlopen = yes; then
9972
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_LIBDL 1
9975 _ACEOF
9976
9977                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9978 else
9979   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9980 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9981 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9982   echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984   ac_check_lib_save_LIBS=$LIBS
9985 LIBS="-ldld  $LIBS"
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h.  */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h.  */
9992
9993 /* Override any GCC internal prototype to avoid an error.
9994    Use char because int might match the return type of a GCC
9995    builtin and then its argument prototype would still apply.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 #endif
9999 char dld_link ();
10000 int
10001 main ()
10002 {
10003 return dld_link ();
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012   *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015   (eval "$ac_link") 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023   { (case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028   (eval "$ac_try") 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_try") 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; }; then
10042   ac_cv_lib_dld_dld_link=yes
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047         ac_cv_lib_dld_dld_link=no
10048 fi
10049
10050 rm -f core conftest.err conftest.$ac_objext \
10051       conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10053 fi
10054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10055 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10056 if test $ac_cv_lib_dld_dld_link = yes; then
10057
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_DLD 1
10060 _ACEOF
10061
10062                 LIBADD_DL="$LIBADD_DL -ldld"
10063 else
10064   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10065 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10066 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10077 #define _dyld_func_lookup innocuous__dyld_func_lookup
10078
10079 /* System header to define __stub macros and hopefully few prototypes,
10080     which can conflict with char _dyld_func_lookup (); below.
10081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082     <limits.h> exists even on freestanding compilers.  */
10083
10084 #ifdef __STDC__
10085 # include <limits.h>
10086 #else
10087 # include <assert.h>
10088 #endif
10089
10090 #undef _dyld_func_lookup
10091
10092 /* Override any GCC internal prototype to avoid an error.
10093    Use char because int might match the return type of a GCC
10094    builtin and then its argument prototype would still apply.  */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 char _dyld_func_lookup ();
10099 /* The GNU C library defines this for functions which it implements
10100     to always fail with ENOSYS.  Some functions are actually named
10101     something starting with __ and the normal name is an alias.  */
10102 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10103 choke me
10104 #endif
10105
10106 int
10107 main ()
10108 {
10109 return _dyld_func_lookup ();
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_link") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10129   { (case "(($ac_try" in
10130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131   *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134   (eval "$ac_try") 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }; } &&
10138          { ac_try='test -s conftest$ac_exeext'
10139   { (case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_try") 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; }; then
10148   ac_cv_func__dyld_func_lookup=yes
10149 else
10150   echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153         ac_cv_func__dyld_func_lookup=no
10154 fi
10155
10156 rm -f core conftest.err conftest.$ac_objext \
10157       conftest$ac_exeext conftest.$ac_ext
10158 fi
10159 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10160 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10161 if test $ac_cv_func__dyld_func_lookup = yes; then
10162
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_DYLD 1
10165 _ACEOF
10166
10167 fi
10168
10169
10170 fi
10171
10172
10173 fi
10174
10175
10176 fi
10177
10178 rm -f core conftest.err conftest.$ac_objext \
10179       conftest$ac_exeext conftest.$ac_ext
10180
10181 fi
10182
10183
10184 fi
10185
10186
10187 fi
10188
10189
10190 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10191 then
10192   lt_save_LIBS="$LIBS"
10193   LIBS="$LIBS $LIBADD_DL"
10194
10195 for ac_func in dlerror
10196 do
10197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10211 #define $ac_func innocuous_$ac_func
10212
10213 /* System header to define __stub macros and hopefully few prototypes,
10214     which can conflict with char $ac_func (); below.
10215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216     <limits.h> exists even on freestanding compilers.  */
10217
10218 #ifdef __STDC__
10219 # include <limits.h>
10220 #else
10221 # include <assert.h>
10222 #endif
10223
10224 #undef $ac_func
10225
10226 /* Override any GCC internal prototype to avoid an error.
10227    Use char because int might match the return type of a GCC
10228    builtin and then its argument prototype would still apply.  */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 char $ac_func ();
10233 /* The GNU C library defines this for functions which it implements
10234     to always fail with ENOSYS.  Some functions are actually named
10235     something starting with __ and the normal name is an alias.  */
10236 #if defined __stub_$ac_func || defined __stub___$ac_func
10237 choke me
10238 #endif
10239
10240 int
10241 main ()
10242 {
10243 return $ac_func ();
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_link") 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263   { (case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_try") 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   eval "$as_ac_var=yes"
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287         eval "$as_ac_var=no"
10288 fi
10289
10290 rm -f core conftest.err conftest.$ac_objext \
10291       conftest$ac_exeext conftest.$ac_ext
10292 fi
10293 ac_res=`eval echo '${'$as_ac_var'}'`
10294                { echo "$as_me:$LINENO: result: $ac_res" >&5
10295 echo "${ECHO_T}$ac_res" >&6; }
10296 if test `eval echo '${'$as_ac_var'}'` = yes; then
10297   cat >>confdefs.h <<_ACEOF
10298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10299 _ACEOF
10300
10301 fi
10302 done
10303
10304   LIBS="$lt_save_LIBS"
10305 fi
10306 ac_ext=c
10307 ac_cpp='$CPP $CPPFLAGS'
10308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311
10312
10313
10314 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10315 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10316 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   ac_cv_sys_symbol_underscore=no
10320   cat > conftest.$ac_ext <<EOF
10321 void nm_test_func(){}
10322 int main(){nm_test_func;return 0;}
10323 EOF
10324   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325   (eval $ac_compile) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; then
10329     # Now try to grab the symbols.
10330     ac_nlist=conftest.nm
10331     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10332   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } && test -s "$ac_nlist"; then
10336       # See whether the symbols have a leading underscore.
10337       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10338         ac_cv_sys_symbol_underscore=yes
10339       else
10340         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10341           :
10342         else
10343           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10344         fi
10345       fi
10346     else
10347       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10348     fi
10349   else
10350     echo "configure: failed program was:" >&5
10351     cat conftest.c >&5
10352   fi
10353   rm -rf conftest*
10354
10355 fi
10356 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10357 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10358
10359
10360 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10361   if test x"$libltdl_cv_func_dlopen" = xyes ||
10362      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10363         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10364 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10365 if test "${libltdl_cv_need_uscore+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   libltdl_cv_need_uscore=unknown
10369           save_LIBS="$LIBS"
10370           LIBS="$LIBS $LIBADD_DL"
10371           if test "$cross_compiling" = yes; then :
10372   libltdl_cv_need_uscore=cross
10373 else
10374   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10375   lt_status=$lt_dlunknown
10376   cat > conftest.$ac_ext <<EOF
10377 #line 10377 "configure"
10378 #include "confdefs.h"
10379
10380 #if HAVE_DLFCN_H
10381 #include <dlfcn.h>
10382 #endif
10383
10384 #include <stdio.h>
10385
10386 #ifdef RTLD_GLOBAL
10387 #  define LT_DLGLOBAL           RTLD_GLOBAL
10388 #else
10389 #  ifdef DL_GLOBAL
10390 #    define LT_DLGLOBAL         DL_GLOBAL
10391 #  else
10392 #    define LT_DLGLOBAL         0
10393 #  endif
10394 #endif
10395
10396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10397    find out it does not work in some platform. */
10398 #ifndef LT_DLLAZY_OR_NOW
10399 #  ifdef RTLD_LAZY
10400 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10401 #  else
10402 #    ifdef DL_LAZY
10403 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10404 #    else
10405 #      ifdef RTLD_NOW
10406 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10407 #      else
10408 #        ifdef DL_NOW
10409 #          define LT_DLLAZY_OR_NOW      DL_NOW
10410 #        else
10411 #          define LT_DLLAZY_OR_NOW      0
10412 #        endif
10413 #      endif
10414 #    endif
10415 #  endif
10416 #endif
10417
10418 #ifdef __cplusplus
10419 extern "C" void exit (int);
10420 #endif
10421
10422 void fnord() { int i=42;}
10423 int main ()
10424 {
10425   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10426   int status = $lt_dlunknown;
10427
10428   if (self)
10429     {
10430       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10431       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432       /* dlclose (self); */
10433     }
10434   else
10435     puts (dlerror ());
10436
10437     exit (status);
10438 }
10439 EOF
10440   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441   (eval $ac_link) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10445     (./conftest; exit; ) >&5 2>/dev/null
10446     lt_status=$?
10447     case x$lt_status in
10448       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10449       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10450       x$lt_dlunknown|x*)  ;;
10451     esac
10452   else :
10453     # compilation failed
10454
10455   fi
10456 fi
10457 rm -fr conftest*
10458
10459           LIBS="$save_LIBS"
10460
10461 fi
10462 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10463 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10464   fi
10465 fi
10466
10467 if test x"$libltdl_cv_need_uscore" = xyes; then
10468
10469 cat >>confdefs.h <<\_ACEOF
10470 #define NEED_USCORE 1
10471 _ACEOF
10472
10473 fi
10474
10475
10476 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10477 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   # PORTME does your system automatically load deplibs for dlopen?
10482   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10483   # For now, we just catch OSes we know something about -- in the
10484   # future, we'll try test this programmatically.
10485   libltdl_cv_sys_dlopen_deplibs=unknown
10486   case "$host_os" in
10487   aix3*|aix4.1.*|aix4.2.*)
10488     # Unknown whether this is true for these versions of AIX, but
10489     # we want this `case' here to explicitly catch those versions.
10490     libltdl_cv_sys_dlopen_deplibs=unknown
10491     ;;
10492   aix[45]*)
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   darwin*)
10496     # Assuming the user has installed a libdl from somewhere, this is true
10497     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10498     libltdl_cv_sys_dlopen_deplibs=yes
10499     ;;
10500   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10501     # GNU and its variants, using gnu ld.so (Glibc)
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   hpux10*|hpux11*)
10505     libltdl_cv_sys_dlopen_deplibs=yes
10506     ;;
10507   interix*)
10508     libltdl_cv_sys_dlopen_deplibs=yes
10509     ;;
10510   irix[12345]*|irix6.[01]*)
10511     # Catch all versions of IRIX before 6.2, and indicate that we don't
10512     # know how it worked for any of those versions.
10513     libltdl_cv_sys_dlopen_deplibs=unknown
10514     ;;
10515   irix*)
10516     # The case above catches anything before 6.2, and it's known that
10517     # at 6.2 and later dlopen does load deplibs.
10518     libltdl_cv_sys_dlopen_deplibs=yes
10519     ;;
10520   netbsd*)
10521     libltdl_cv_sys_dlopen_deplibs=yes
10522     ;;
10523   openbsd*)
10524     libltdl_cv_sys_dlopen_deplibs=yes
10525     ;;
10526   osf[1234]*)
10527     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10528     # it did *not* use an RPATH in a shared library to find objects the
10529     # library depends on, so we explictly say `no'.
10530     libltdl_cv_sys_dlopen_deplibs=no
10531     ;;
10532   osf5.0|osf5.0a|osf5.1)
10533     # dlopen *does* load deplibs and with the right loader patch applied
10534     # it even uses RPATH in a shared library to search for shared objects
10535     # that the library depends on, but there's no easy way to know if that
10536     # patch is installed.  Since this is the case, all we can really
10537     # say is unknown -- it depends on the patch being installed.  If
10538     # it is, this changes to `yes'.  Without it, it would be `no'.
10539     libltdl_cv_sys_dlopen_deplibs=unknown
10540     ;;
10541   osf*)
10542     # the two cases above should catch all versions of osf <= 5.1.  Read
10543     # the comments above for what we know about them.
10544     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10545     # is used to find them so we can finally say `yes'.
10546     libltdl_cv_sys_dlopen_deplibs=yes
10547     ;;
10548   solaris*)
10549     libltdl_cv_sys_dlopen_deplibs=yes
10550     ;;
10551   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552     libltdl_cv_sys_dlopen_deplibs=yes
10553     ;;
10554   esac
10555
10556 fi
10557 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10558 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10559 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10560
10561 cat >>confdefs.h <<\_ACEOF
10562 #define LTDL_DLOPEN_DEPLIBS 1
10563 _ACEOF
10564
10565 fi
10566
10567
10568 for ac_header in argz.h
10569 do
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 fi
10577 ac_res=`eval echo '${'$as_ac_Header'}'`
10578                { echo "$as_me:$LINENO: result: $ac_res" >&5
10579 echo "${ECHO_T}$ac_res" >&6; }
10580 else
10581   # Is the header compilable?
10582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 $ac_includes_default
10591 #include <$ac_header>
10592 _ACEOF
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_compile") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } &&
10607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608   { (case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_try") 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; } &&
10617          { ac_try='test -s conftest.$ac_objext'
10618   { (case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_try") 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; }; then
10627   ac_header_compiler=yes
10628 else
10629   echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632         ac_header_compiler=no
10633 fi
10634
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637 echo "${ECHO_T}$ac_header_compiler" >&6; }
10638
10639 # Is the header present?
10640 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h.  */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h.  */
10648 #include <$ac_header>
10649 _ACEOF
10650 if { (ac_try="$ac_cpp conftest.$ac_ext"
10651 case "(($ac_try" in
10652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653   *) ac_try_echo=$ac_try;;
10654 esac
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } >/dev/null; then
10663   if test -s conftest.err; then
10664     ac_cpp_err=$ac_c_preproc_warn_flag
10665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10666   else
10667     ac_cpp_err=
10668   fi
10669 else
10670   ac_cpp_err=yes
10671 fi
10672 if test -z "$ac_cpp_err"; then
10673   ac_header_preproc=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678   ac_header_preproc=no
10679 fi
10680
10681 rm -f conftest.err conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683 echo "${ECHO_T}$ac_header_preproc" >&6; }
10684
10685 # So?  What about this header?
10686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10687   yes:no: )
10688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692     ac_header_preproc=yes
10693     ;;
10694   no:yes:* )
10695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10707     ( cat <<\_ASBOX
10708 ## ----------------------------------- ##
10709 ## Report this to llvmbugs@cs.uiuc.edu ##
10710 ## ----------------------------------- ##
10711 _ASBOX
10712      ) | sed "s/^/$as_me: WARNING:     /" >&2
10713     ;;
10714 esac
10715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718   echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720   eval "$as_ac_Header=\$ac_header_preproc"
10721 fi
10722 ac_res=`eval echo '${'$as_ac_Header'}'`
10723                { echo "$as_me:$LINENO: result: $ac_res" >&5
10724 echo "${ECHO_T}$ac_res" >&6; }
10725
10726 fi
10727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728   cat >>confdefs.h <<_ACEOF
10729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730 _ACEOF
10731
10732 fi
10733
10734 done
10735
10736
10737 { echo "$as_me:$LINENO: checking for error_t" >&5
10738 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10739 if test "${ac_cv_type_error_t+set}" = set; then
10740   echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742   cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h.  */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h.  */
10748 #if HAVE_ARGZ_H
10749 #  include <argz.h>
10750 #endif
10751
10752 typedef error_t ac__type_new_;
10753 int
10754 main ()
10755 {
10756 if ((ac__type_new_ *) 0)
10757   return 0;
10758 if (sizeof (ac__type_new_))
10759   return 0;
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } &&
10778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779   { (case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784   (eval "$ac_try") 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; } &&
10788          { ac_try='test -s conftest.$ac_objext'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; }; then
10798   ac_cv_type_error_t=yes
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803         ac_cv_type_error_t=no
10804 fi
10805
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 fi
10808 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10809 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10810 if test $ac_cv_type_error_t = yes; then
10811
10812 cat >>confdefs.h <<_ACEOF
10813 #define HAVE_ERROR_T 1
10814 _ACEOF
10815
10816
10817 else
10818
10819 cat >>confdefs.h <<\_ACEOF
10820 #define error_t int
10821 _ACEOF
10822
10823 fi
10824
10825
10826
10827
10828
10829
10830
10831 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10832 do
10833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10847 #define $ac_func innocuous_$ac_func
10848
10849 /* System header to define __stub macros and hopefully few prototypes,
10850     which can conflict with char $ac_func (); below.
10851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852     <limits.h> exists even on freestanding compilers.  */
10853
10854 #ifdef __STDC__
10855 # include <limits.h>
10856 #else
10857 # include <assert.h>
10858 #endif
10859
10860 #undef $ac_func
10861
10862 /* Override any GCC internal prototype to avoid an error.
10863    Use char because int might match the return type of a GCC
10864    builtin and then its argument prototype would still apply.  */
10865 #ifdef __cplusplus
10866 extern "C"
10867 #endif
10868 char $ac_func ();
10869 /* The GNU C library defines this for functions which it implements
10870     to always fail with ENOSYS.  Some functions are actually named
10871     something starting with __ and the normal name is an alias.  */
10872 #if defined __stub_$ac_func || defined __stub___$ac_func
10873 choke me
10874 #endif
10875
10876 int
10877 main ()
10878 {
10879 return $ac_func ();
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 rm -f conftest.$ac_objext conftest$ac_exeext
10885 if { (ac_try="$ac_link"
10886 case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_link") 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } &&
10898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899   { (case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_try") 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; } &&
10908          { ac_try='test -s conftest$ac_exeext'
10909   { (case "(($ac_try" in
10910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911   *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914   (eval "$ac_try") 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   eval "$as_ac_var=yes"
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923         eval "$as_ac_var=no"
10924 fi
10925
10926 rm -f core conftest.err conftest.$ac_objext \
10927       conftest$ac_exeext conftest.$ac_ext
10928 fi
10929 ac_res=`eval echo '${'$as_ac_var'}'`
10930                { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 if test `eval echo '${'$as_ac_var'}'` = yes; then
10933   cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10935 _ACEOF
10936
10937 fi
10938 done
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10968                   stdio.h unistd.h
10969 do
10970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 fi
10977 ac_res=`eval echo '${'$as_ac_Header'}'`
10978                { echo "$as_me:$LINENO: result: $ac_res" >&5
10979 echo "${ECHO_T}$ac_res" >&6; }
10980 else
10981   # Is the header compilable?
10982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 $ac_includes_default
10991 #include <$ac_header>
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_compile") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } &&
11007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008   { (case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013   (eval "$ac_try") 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; } &&
11017          { ac_try='test -s conftest.$ac_objext'
11018   { (case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_try") 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   ac_header_compiler=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032         ac_header_compiler=no
11033 fi
11034
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037 echo "${ECHO_T}$ac_header_compiler" >&6; }
11038
11039 # Is the header present?
11040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 #include <$ac_header>
11049 _ACEOF
11050 if { (ac_try="$ac_cpp conftest.$ac_ext"
11051 case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } >/dev/null; then
11063   if test -s conftest.err; then
11064     ac_cpp_err=$ac_c_preproc_warn_flag
11065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11066   else
11067     ac_cpp_err=
11068   fi
11069 else
11070   ac_cpp_err=yes
11071 fi
11072 if test -z "$ac_cpp_err"; then
11073   ac_header_preproc=yes
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078   ac_header_preproc=no
11079 fi
11080
11081 rm -f conftest.err conftest.$ac_ext
11082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11083 echo "${ECHO_T}$ac_header_preproc" >&6; }
11084
11085 # So?  What about this header?
11086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11087   yes:no: )
11088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11092     ac_header_preproc=yes
11093     ;;
11094   no:yes:* )
11095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11107     ( cat <<\_ASBOX
11108 ## ----------------------------------- ##
11109 ## Report this to llvmbugs@cs.uiuc.edu ##
11110 ## ----------------------------------- ##
11111 _ASBOX
11112      ) | sed "s/^/$as_me: WARNING:     /" >&2
11113     ;;
11114 esac
11115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   eval "$as_ac_Header=\$ac_header_preproc"
11121 fi
11122 ac_res=`eval echo '${'$as_ac_Header'}'`
11123                { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11125
11126 fi
11127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11128   cat >>confdefs.h <<_ACEOF
11129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11130 _ACEOF
11131
11132 fi
11133
11134 done
11135
11136
11137
11138
11139
11140 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11141 do
11142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 fi
11149 ac_res=`eval echo '${'$as_ac_Header'}'`
11150                { echo "$as_me:$LINENO: result: $ac_res" >&5
11151 echo "${ECHO_T}$ac_res" >&6; }
11152 else
11153   # Is the header compilable?
11154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11156 cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h.  */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h.  */
11162 $ac_includes_default
11163 #include <$ac_header>
11164 _ACEOF
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169   *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172   (eval "$ac_compile") 2>conftest.er1
11173   ac_status=$?
11174   grep -v '^ *+' conftest.er1 >conftest.err
11175   rm -f conftest.er1
11176   cat conftest.err >&5
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); } &&
11179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11180   { (case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185   (eval "$ac_try") 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; } &&
11189          { ac_try='test -s conftest.$ac_objext'
11190   { (case "(($ac_try" in
11191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192   *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195   (eval "$ac_try") 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }; }; then
11199   ac_header_compiler=yes
11200 else
11201   echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204         ac_header_compiler=no
11205 fi
11206
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11209 echo "${ECHO_T}$ac_header_compiler" >&6; }
11210
11211 # Is the header present?
11212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h.  */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h.  */
11220 #include <$ac_header>
11221 _ACEOF
11222 if { (ac_try="$ac_cpp conftest.$ac_ext"
11223 case "(($ac_try" in
11224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225   *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } >/dev/null; then
11235   if test -s conftest.err; then
11236     ac_cpp_err=$ac_c_preproc_warn_flag
11237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11238   else
11239     ac_cpp_err=
11240   fi
11241 else
11242   ac_cpp_err=yes
11243 fi
11244 if test -z "$ac_cpp_err"; then
11245   ac_header_preproc=yes
11246 else
11247   echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250   ac_header_preproc=no
11251 fi
11252
11253 rm -f conftest.err conftest.$ac_ext
11254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11255 echo "${ECHO_T}$ac_header_preproc" >&6; }
11256
11257 # So?  What about this header?
11258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11259   yes:no: )
11260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11264     ac_header_preproc=yes
11265     ;;
11266   no:yes:* )
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11270 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11271     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11273     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11274 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11279     ( cat <<\_ASBOX
11280 ## ----------------------------------- ##
11281 ## Report this to llvmbugs@cs.uiuc.edu ##
11282 ## ----------------------------------- ##
11283 _ASBOX
11284      ) | sed "s/^/$as_me: WARNING:     /" >&2
11285     ;;
11286 esac
11287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292   eval "$as_ac_Header=\$ac_header_preproc"
11293 fi
11294 ac_res=`eval echo '${'$as_ac_Header'}'`
11295                { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11297
11298 fi
11299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300   cat >>confdefs.h <<_ACEOF
11301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 _ACEOF
11303
11304 fi
11305
11306 done
11307
11308
11309
11310 for ac_header in string.h strings.h
11311 do
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 fi
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320                { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11322 else
11323   # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 $ac_includes_default
11333 #include <$ac_header>
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339   *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342   (eval "$ac_compile") 2>conftest.er1
11343   ac_status=$?
11344   grep -v '^ *+' conftest.er1 >conftest.err
11345   rm -f conftest.er1
11346   cat conftest.err >&5
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } &&
11349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350   { (case "(($ac_try" in
11351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352   *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355   (eval "$ac_try") 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; } &&
11359          { ac_try='test -s conftest.$ac_objext'
11360   { (case "(($ac_try" in
11361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362   *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365   (eval "$ac_try") 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; }; then
11369   ac_header_compiler=yes
11370 else
11371   echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374         ac_header_compiler=no
11375 fi
11376
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11380
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11405   if test -s conftest.err; then
11406     ac_cpp_err=$ac_c_preproc_warn_flag
11407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408   else
11409     ac_cpp_err=
11410   fi
11411 else
11412   ac_cpp_err=yes
11413 fi
11414 if test -z "$ac_cpp_err"; then
11415   ac_header_preproc=yes
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420   ac_header_preproc=no
11421 fi
11422
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11426
11427 # So?  What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429   yes:no: )
11430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434     ac_header_preproc=yes
11435     ;;
11436   no:yes:* )
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449     ( cat <<\_ASBOX
11450 ## ----------------------------------- ##
11451 ## Report this to llvmbugs@cs.uiuc.edu ##
11452 ## ----------------------------------- ##
11453 _ASBOX
11454      ) | sed "s/^/$as_me: WARNING:     /" >&2
11455     ;;
11456 esac
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   eval "$as_ac_Header=\$ac_header_preproc"
11463 fi
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465                { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467
11468 fi
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470   cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 _ACEOF
11473  break
11474 fi
11475
11476 done
11477
11478
11479
11480
11481 for ac_func in strchr index
11482 do
11483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11497 #define $ac_func innocuous_$ac_func
11498
11499 /* System header to define __stub macros and hopefully few prototypes,
11500     which can conflict with char $ac_func (); below.
11501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502     <limits.h> exists even on freestanding compilers.  */
11503
11504 #ifdef __STDC__
11505 # include <limits.h>
11506 #else
11507 # include <assert.h>
11508 #endif
11509
11510 #undef $ac_func
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513    Use char because int might match the return type of a GCC
11514    builtin and then its argument prototype would still apply.  */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char $ac_func ();
11519 /* The GNU C library defines this for functions which it implements
11520     to always fail with ENOSYS.  Some functions are actually named
11521     something starting with __ and the normal name is an alias.  */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11523 choke me
11524 #endif
11525
11526 int
11527 main ()
11528 {
11529 return $ac_func ();
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11549   { (case "(($ac_try" in
11550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551   *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554   (eval "$ac_try") 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; } &&
11558          { ac_try='test -s conftest$ac_exeext'
11559   { (case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_try") 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   eval "$as_ac_var=yes"
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573         eval "$as_ac_var=no"
11574 fi
11575
11576 rm -f core conftest.err conftest.$ac_objext \
11577       conftest$ac_exeext conftest.$ac_ext
11578 fi
11579 ac_res=`eval echo '${'$as_ac_var'}'`
11580                { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11582 if test `eval echo '${'$as_ac_var'}'` = yes; then
11583   cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585 _ACEOF
11586  break
11587 fi
11588 done
11589
11590
11591
11592 for ac_func in strrchr rindex
11593 do
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11608 #define $ac_func innocuous_$ac_func
11609
11610 /* System header to define __stub macros and hopefully few prototypes,
11611     which can conflict with char $ac_func (); below.
11612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613     <limits.h> exists even on freestanding compilers.  */
11614
11615 #ifdef __STDC__
11616 # include <limits.h>
11617 #else
11618 # include <assert.h>
11619 #endif
11620
11621 #undef $ac_func
11622
11623 /* Override any GCC internal prototype to avoid an error.
11624    Use char because int might match the return type of a GCC
11625    builtin and then its argument prototype would still apply.  */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char $ac_func ();
11630 /* The GNU C library defines this for functions which it implements
11631     to always fail with ENOSYS.  Some functions are actually named
11632     something starting with __ and the normal name is an alias.  */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11634 choke me
11635 #endif
11636
11637 int
11638 main ()
11639 {
11640 return $ac_func ();
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649   *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652   (eval "$ac_link") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660   { (case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_try") 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; } &&
11669          { ac_try='test -s conftest$ac_exeext'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   eval "$as_ac_var=yes"
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684         eval "$as_ac_var=no"
11685 fi
11686
11687 rm -f core conftest.err conftest.$ac_objext \
11688       conftest$ac_exeext conftest.$ac_ext
11689 fi
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691                { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694   cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11696 _ACEOF
11697  break
11698 fi
11699 done
11700
11701
11702
11703 for ac_func in memcpy bcopy
11704 do
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11719 #define $ac_func innocuous_$ac_func
11720
11721 /* System header to define __stub macros and hopefully few prototypes,
11722     which can conflict with char $ac_func (); below.
11723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724     <limits.h> exists even on freestanding compilers.  */
11725
11726 #ifdef __STDC__
11727 # include <limits.h>
11728 #else
11729 # include <assert.h>
11730 #endif
11731
11732 #undef $ac_func
11733
11734 /* Override any GCC internal prototype to avoid an error.
11735    Use char because int might match the return type of a GCC
11736    builtin and then its argument prototype would still apply.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char $ac_func ();
11741 /* The GNU C library defines this for functions which it implements
11742     to always fail with ENOSYS.  Some functions are actually named
11743     something starting with __ and the normal name is an alias.  */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11745 choke me
11746 #endif
11747
11748 int
11749 main ()
11750 {
11751 return $ac_func ();
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760   *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763   (eval "$ac_link") 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771   { (case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_try") 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   eval "$as_ac_var=yes"
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795         eval "$as_ac_var=no"
11796 fi
11797
11798 rm -f core conftest.err conftest.$ac_objext \
11799       conftest$ac_exeext conftest.$ac_ext
11800 fi
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802                { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807 _ACEOF
11808  break
11809 fi
11810 done
11811
11812
11813
11814 for ac_func in memmove strcmp
11815 do
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11830 #define $ac_func innocuous_$ac_func
11831
11832 /* System header to define __stub macros and hopefully few prototypes,
11833     which can conflict with char $ac_func (); below.
11834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835     <limits.h> exists even on freestanding compilers.  */
11836
11837 #ifdef __STDC__
11838 # include <limits.h>
11839 #else
11840 # include <assert.h>
11841 #endif
11842
11843 #undef $ac_func
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846    Use char because int might match the return type of a GCC
11847    builtin and then its argument prototype would still apply.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char $ac_func ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11856 choke me
11857 #endif
11858
11859 int
11860 main ()
11861 {
11862 return $ac_func ();
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_link") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882   { (case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_try") 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   eval "$as_ac_var=yes"
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906         eval "$as_ac_var=no"
11907 fi
11908
11909 rm -f core conftest.err conftest.$ac_objext \
11910       conftest$ac_exeext conftest.$ac_ext
11911 fi
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913                { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 _ACEOF
11919
11920 fi
11921 done
11922
11923
11924
11925
11926 for ac_func in closedir opendir readdir
11927 do
11928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11942 #define $ac_func innocuous_$ac_func
11943
11944 /* System header to define __stub macros and hopefully few prototypes,
11945     which can conflict with char $ac_func (); below.
11946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11947     <limits.h> exists even on freestanding compilers.  */
11948
11949 #ifdef __STDC__
11950 # include <limits.h>
11951 #else
11952 # include <assert.h>
11953 #endif
11954
11955 #undef $ac_func
11956
11957 /* Override any GCC internal prototype to avoid an error.
11958    Use char because int might match the return type of a GCC
11959    builtin and then its argument prototype would still apply.  */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char $ac_func ();
11964 /* The GNU C library defines this for functions which it implements
11965     to always fail with ENOSYS.  Some functions are actually named
11966     something starting with __ and the normal name is an alias.  */
11967 #if defined __stub_$ac_func || defined __stub___$ac_func
11968 choke me
11969 #endif
11970
11971 int
11972 main ()
11973 {
11974 return $ac_func ();
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (ac_try="$ac_link"
11981 case "(($ac_try" in
11982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983   *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986   (eval "$ac_link") 2>conftest.er1
11987   ac_status=$?
11988   grep -v '^ *+' conftest.er1 >conftest.err
11989   rm -f conftest.er1
11990   cat conftest.err >&5
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } &&
11993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11994   { (case "(($ac_try" in
11995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996   *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999   (eval "$ac_try") 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; } &&
12003          { ac_try='test -s conftest$ac_exeext'
12004   { (case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_try") 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; }; then
12013   eval "$as_ac_var=yes"
12014 else
12015   echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018         eval "$as_ac_var=no"
12019 fi
12020
12021 rm -f core conftest.err conftest.$ac_objext \
12022       conftest$ac_exeext conftest.$ac_ext
12023 fi
12024 ac_res=`eval echo '${'$as_ac_var'}'`
12025                { echo "$as_me:$LINENO: result: $ac_res" >&5
12026 echo "${ECHO_T}$ac_res" >&6; }
12027 if test `eval echo '${'$as_ac_var'}'` = yes; then
12028   cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12030 _ACEOF
12031
12032 fi
12033 done
12034
12035
12036 # Check whether --enable-shared was given.
12037 if test "${enable_shared+set}" = set; then
12038   enableval=$enable_shared; p=${PACKAGE-default}
12039     case $enableval in
12040     yes) enable_shared=yes ;;
12041     no) enable_shared=no ;;
12042     *)
12043       enable_shared=no
12044       # Look at the argument we got.  We use all the common list separators.
12045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046       for pkg in $enableval; do
12047         IFS="$lt_save_ifs"
12048         if test "X$pkg" = "X$p"; then
12049           enable_shared=yes
12050         fi
12051       done
12052       IFS="$lt_save_ifs"
12053       ;;
12054     esac
12055 else
12056   enable_shared=yes
12057 fi
12058
12059
12060 # Check whether --enable-static was given.
12061 if test "${enable_static+set}" = set; then
12062   enableval=$enable_static; p=${PACKAGE-default}
12063     case $enableval in
12064     yes) enable_static=yes ;;
12065     no) enable_static=no ;;
12066     *)
12067      enable_static=no
12068       # Look at the argument we got.  We use all the common list separators.
12069       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12070       for pkg in $enableval; do
12071         IFS="$lt_save_ifs"
12072         if test "X$pkg" = "X$p"; then
12073           enable_static=yes
12074         fi
12075       done
12076       IFS="$lt_save_ifs"
12077       ;;
12078     esac
12079 else
12080   enable_static=yes
12081 fi
12082
12083
12084 # Check whether --enable-fast-install was given.
12085 if test "${enable_fast_install+set}" = set; then
12086   enableval=$enable_fast_install; p=${PACKAGE-default}
12087     case $enableval in
12088     yes) enable_fast_install=yes ;;
12089     no) enable_fast_install=no ;;
12090     *)
12091       enable_fast_install=no
12092       # Look at the argument we got.  We use all the common list separators.
12093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12094       for pkg in $enableval; do
12095         IFS="$lt_save_ifs"
12096         if test "X$pkg" = "X$p"; then
12097           enable_fast_install=yes
12098         fi
12099       done
12100       IFS="$lt_save_ifs"
12101       ;;
12102     esac
12103 else
12104   enable_fast_install=yes
12105 fi
12106
12107
12108 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12109 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12110 if test "${lt_cv_path_SED+set}" = set; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113   # Loop through the user's path and test for sed and gsed.
12114 # Then use that list of sed's as ones to test for truncation.
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12117 do
12118   IFS=$as_save_IFS
12119   test -z "$as_dir" && as_dir=.
12120   for lt_ac_prog in sed gsed; do
12121     for ac_exec_ext in '' $ac_executable_extensions; do
12122       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12123         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12124       fi
12125     done
12126   done
12127 done
12128 lt_ac_max=0
12129 lt_ac_count=0
12130 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12131 # along with /bin/sed that truncates output.
12132 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12133   test ! -f $lt_ac_sed && continue
12134   cat /dev/null > conftest.in
12135   lt_ac_count=0
12136   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12137   # Check for GNU sed and select it if it is found.
12138   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12139     lt_cv_path_SED=$lt_ac_sed
12140     break
12141   fi
12142   while true; do
12143     cat conftest.in conftest.in >conftest.tmp
12144     mv conftest.tmp conftest.in
12145     cp conftest.in conftest.nl
12146     echo >>conftest.nl
12147     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12148     cmp -s conftest.out conftest.nl || break
12149     # 10000 chars as input seems more than enough
12150     test $lt_ac_count -gt 10 && break
12151     lt_ac_count=`expr $lt_ac_count + 1`
12152     if test $lt_ac_count -gt $lt_ac_max; then
12153       lt_ac_max=$lt_ac_count
12154       lt_cv_path_SED=$lt_ac_sed
12155     fi
12156   done
12157 done
12158
12159 fi
12160
12161 SED=$lt_cv_path_SED
12162 { echo "$as_me:$LINENO: result: $SED" >&5
12163 echo "${ECHO_T}$SED" >&6; }
12164
12165
12166 # Check whether --with-gnu-ld was given.
12167 if test "${with_gnu_ld+set}" = set; then
12168   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12169 else
12170   with_gnu_ld=no
12171 fi
12172
12173 ac_prog=ld
12174 if test "$GCC" = yes; then
12175   # Check if gcc -print-prog-name=ld gives a path.
12176   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12177 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12178   case $host in
12179   *-*-mingw*)
12180     # gcc leaves a trailing carriage return which upsets mingw
12181     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12182   *)
12183     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12184   esac
12185   case $ac_prog in
12186     # Accept absolute paths.
12187     [\\/]* | ?:[\\/]*)
12188       re_direlt='/[^/][^/]*/\.\./'
12189       # Canonicalize the pathname of ld
12190       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12191       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12192         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12193       done
12194       test -z "$LD" && LD="$ac_prog"
12195       ;;
12196   "")
12197     # If it fails, then pretend we aren't using GCC.
12198     ac_prog=ld
12199     ;;
12200   *)
12201     # If it is relative, then search for the first ld in PATH.
12202     with_gnu_ld=unknown
12203     ;;
12204   esac
12205 elif test "$with_gnu_ld" = yes; then
12206   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12207 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12208 else
12209   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12210 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12211 fi
12212 if test "${lt_cv_path_LD+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   if test -z "$LD"; then
12216   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12217   for ac_dir in $PATH; do
12218     IFS="$lt_save_ifs"
12219     test -z "$ac_dir" && ac_dir=.
12220     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12221       lt_cv_path_LD="$ac_dir/$ac_prog"
12222       # Check to see if the program is GNU ld.  I'd rather use --version,
12223       # but apparently some variants of GNU ld only accept -v.
12224       # Break only if it was the GNU/non-GNU ld that we prefer.
12225       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12226       *GNU* | *'with BFD'*)
12227         test "$with_gnu_ld" != no && break
12228         ;;
12229       *)
12230         test "$with_gnu_ld" != yes && break
12231         ;;
12232       esac
12233     fi
12234   done
12235   IFS="$lt_save_ifs"
12236 else
12237   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12238 fi
12239 fi
12240
12241 LD="$lt_cv_path_LD"
12242 if test -n "$LD"; then
12243   { echo "$as_me:$LINENO: result: $LD" >&5
12244 echo "${ECHO_T}$LD" >&6; }
12245 else
12246   { echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6; }
12248 fi
12249 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12250 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12251    { (exit 1); exit 1; }; }
12252 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12253 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12254 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12258 case `$LD -v 2>&1 </dev/null` in
12259 *GNU* | *'with BFD'*)
12260   lt_cv_prog_gnu_ld=yes
12261   ;;
12262 *)
12263   lt_cv_prog_gnu_ld=no
12264   ;;
12265 esac
12266 fi
12267 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12268 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12269 with_gnu_ld=$lt_cv_prog_gnu_ld
12270
12271
12272 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12273 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12274 if test "${lt_cv_ld_reload_flag+set}" = set; then
12275   echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277   lt_cv_ld_reload_flag='-r'
12278 fi
12279 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12280 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12281 reload_flag=$lt_cv_ld_reload_flag
12282 case $reload_flag in
12283 "" | " "*) ;;
12284 *) reload_flag=" $reload_flag" ;;
12285 esac
12286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12287 case $host_os in
12288   darwin*)
12289     if test "$GCC" = yes; then
12290       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12291     else
12292       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12293     fi
12294     ;;
12295 esac
12296
12297 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12298 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12299 if test "${lt_cv_deplibs_check_method+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   lt_cv_file_magic_cmd='$MAGIC_CMD'
12303 lt_cv_file_magic_test_file=
12304 lt_cv_deplibs_check_method='unknown'
12305 # Need to set the preceding variable on all platforms that support
12306 # interlibrary dependencies.
12307 # 'none' -- dependencies not supported.
12308 # `unknown' -- same as none, but documents that we really don't know.
12309 # 'pass_all' -- all dependencies passed with no checks.
12310 # 'test_compile' -- check by making test program.
12311 # 'file_magic [[regex]]' -- check by looking for files in library path
12312 # which responds to the $file_magic_cmd with a given extended regex.
12313 # If you have `file' or equivalent on your system and you're not sure
12314 # whether `pass_all' will *always* work, you probably want this one.
12315
12316 case $host_os in
12317 aix4* | aix5*)
12318   lt_cv_deplibs_check_method=pass_all
12319   ;;
12320
12321 beos*)
12322   lt_cv_deplibs_check_method=pass_all
12323   ;;
12324
12325 bsdi[45]*)
12326   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12327   lt_cv_file_magic_cmd='/usr/bin/file -L'
12328   lt_cv_file_magic_test_file=/shlib/libc.so
12329   ;;
12330
12331 cygwin*)
12332   # func_win32_libid is a shell function defined in ltmain.sh
12333   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12334   lt_cv_file_magic_cmd='func_win32_libid'
12335   ;;
12336
12337 mingw* | pw32*)
12338   # Base MSYS/MinGW do not provide the 'file' command needed by
12339   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12340   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12341   lt_cv_file_magic_cmd='$OBJDUMP -f'
12342   ;;
12343
12344 darwin* | rhapsody*)
12345   lt_cv_deplibs_check_method=pass_all
12346   ;;
12347
12348 freebsd* | kfreebsd*-gnu | dragonfly*)
12349   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12350     case $host_cpu in
12351     i*86 )
12352       # Not sure whether the presence of OpenBSD here was a mistake.
12353       # Let's accept both of them until this is cleared up.
12354       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12355       lt_cv_file_magic_cmd=/usr/bin/file
12356       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12357       ;;
12358     esac
12359   else
12360     lt_cv_deplibs_check_method=pass_all
12361   fi
12362   ;;
12363
12364 gnu*)
12365   lt_cv_deplibs_check_method=pass_all
12366   ;;
12367
12368 hpux10.20* | hpux11*)
12369   lt_cv_file_magic_cmd=/usr/bin/file
12370   case $host_cpu in
12371   ia64*)
12372     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12373     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12374     ;;
12375   hppa*64*)
12376     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]'
12377     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12378     ;;
12379   *)
12380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12381     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12382     ;;
12383   esac
12384   ;;
12385
12386 interix3*)
12387   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12388   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12389   ;;
12390
12391 irix5* | irix6* | nonstopux*)
12392   case $LD in
12393   *-32|*"-32 ") libmagic=32-bit;;
12394   *-n32|*"-n32 ") libmagic=N32;;
12395   *-64|*"-64 ") libmagic=64-bit;;
12396   *) libmagic=never-match;;
12397   esac
12398   lt_cv_deplibs_check_method=pass_all
12399   ;;
12400
12401 # This must be Linux ELF.
12402 linux*)
12403   lt_cv_deplibs_check_method=pass_all
12404   ;;
12405
12406 netbsd*)
12407   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12409   else
12410     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12411   fi
12412   ;;
12413
12414 newos6*)
12415   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12416   lt_cv_file_magic_cmd=/usr/bin/file
12417   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12418   ;;
12419
12420 nto-qnx*)
12421   lt_cv_deplibs_check_method=unknown
12422   ;;
12423
12424 openbsd*)
12425   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12427   else
12428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12429   fi
12430   ;;
12431
12432 osf3* | osf4* | osf5*)
12433   lt_cv_deplibs_check_method=pass_all
12434   ;;
12435
12436 solaris*)
12437   lt_cv_deplibs_check_method=pass_all
12438   ;;
12439
12440 sysv4 | sysv4.3*)
12441   case $host_vendor in
12442   motorola)
12443     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]'
12444     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12445     ;;
12446   ncr)
12447     lt_cv_deplibs_check_method=pass_all
12448     ;;
12449   sequent)
12450     lt_cv_file_magic_cmd='/bin/file'
12451     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12452     ;;
12453   sni)
12454     lt_cv_file_magic_cmd='/bin/file'
12455     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12456     lt_cv_file_magic_test_file=/lib/libc.so
12457     ;;
12458   siemens)
12459     lt_cv_deplibs_check_method=pass_all
12460     ;;
12461   pc)
12462     lt_cv_deplibs_check_method=pass_all
12463     ;;
12464   esac
12465   ;;
12466
12467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12468   lt_cv_deplibs_check_method=pass_all
12469   ;;
12470 esac
12471
12472 fi
12473 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12474 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12475 file_magic_cmd=$lt_cv_file_magic_cmd
12476 deplibs_check_method=$lt_cv_deplibs_check_method
12477 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12478
12479
12480
12481 # If no C compiler was specified, use CC.
12482 LTCC=${LTCC-"$CC"}
12483
12484 # If no C compiler flags were specified, use CFLAGS.
12485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12486
12487 # Allow CC to be a program name with arguments.
12488 compiler=$CC
12489
12490 # Check whether --enable-libtool-lock was given.
12491 if test "${enable_libtool_lock+set}" = set; then
12492   enableval=$enable_libtool_lock;
12493 fi
12494
12495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12496
12497 # Some flags need to be propagated to the compiler or linker for good
12498 # libtool support.
12499 case $host in
12500 ia64-*-hpux*)
12501   # Find out which ABI we are using.
12502   echo 'int i;' > conftest.$ac_ext
12503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504   (eval $ac_compile) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; then
12508     case `/usr/bin/file conftest.$ac_objext` in
12509     *ELF-32*)
12510       HPUX_IA64_MODE="32"
12511       ;;
12512     *ELF-64*)
12513       HPUX_IA64_MODE="64"
12514       ;;
12515     esac
12516   fi
12517   rm -rf conftest*
12518   ;;
12519 *-*-irix6*)
12520   # Find out which ABI we are using.
12521   echo '#line 12521 "configure"' > conftest.$ac_ext
12522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523   (eval $ac_compile) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; then
12527    if test "$lt_cv_prog_gnu_ld" = yes; then
12528     case `/usr/bin/file conftest.$ac_objext` in
12529     *32-bit*)
12530       LD="${LD-ld} -melf32bsmip"
12531       ;;
12532     *N32*)
12533       LD="${LD-ld} -melf32bmipn32"
12534       ;;
12535     *64-bit*)
12536       LD="${LD-ld} -melf64bmip"
12537       ;;
12538     esac
12539    else
12540     case `/usr/bin/file conftest.$ac_objext` in
12541     *32-bit*)
12542       LD="${LD-ld} -32"
12543       ;;
12544     *N32*)
12545       LD="${LD-ld} -n32"
12546       ;;
12547     *64-bit*)
12548       LD="${LD-ld} -64"
12549       ;;
12550     esac
12551    fi
12552   fi
12553   rm -rf conftest*
12554   ;;
12555
12556 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12557   # Find out which ABI we are using.
12558   echo 'int i;' > conftest.$ac_ext
12559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12560   (eval $ac_compile) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; then
12564     case `/usr/bin/file conftest.o` in
12565     *32-bit*)
12566       case $host in
12567         x86_64-*linux*)
12568           LD="${LD-ld} -m elf_i386"
12569           ;;
12570         ppc64-*linux*|powerpc64-*linux*)
12571           LD="${LD-ld} -m elf32ppclinux"
12572           ;;
12573         s390x-*linux*)
12574           LD="${LD-ld} -m elf_s390"
12575           ;;
12576         sparc64-*linux*)
12577           LD="${LD-ld} -m elf32_sparc"
12578           ;;
12579       esac
12580       ;;
12581     *64-bit*)
12582       case $host in
12583         x86_64-*linux*)
12584           LD="${LD-ld} -m elf_x86_64"
12585           ;;
12586         ppc*-*linux*|powerpc*-*linux*)
12587           LD="${LD-ld} -m elf64ppc"
12588           ;;
12589         s390*-*linux*)
12590           LD="${LD-ld} -m elf64_s390"
12591           ;;
12592         sparc*-*linux*)
12593           LD="${LD-ld} -m elf64_sparc"
12594           ;;
12595       esac
12596       ;;
12597     esac
12598   fi
12599   rm -rf conftest*
12600   ;;
12601
12602 *-*-sco3.2v5*)
12603   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12604   SAVE_CFLAGS="$CFLAGS"
12605   CFLAGS="$CFLAGS -belf"
12606   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12607 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12608 if test "${lt_cv_cc_needs_belf+set}" = set; then
12609   echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611   ac_ext=c
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12616
12617      cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623
12624 int
12625 main ()
12626 {
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636   *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639   (eval "$ac_link") 2>conftest.er1
12640   ac_status=$?
12641   grep -v '^ *+' conftest.er1 >conftest.err
12642   rm -f conftest.er1
12643   cat conftest.err >&5
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } &&
12646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12647   { (case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652   (eval "$ac_try") 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; } &&
12656          { ac_try='test -s conftest$ac_exeext'
12657   { (case "(($ac_try" in
12658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659   *) ac_try_echo=$ac_try;;
12660 esac
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662   (eval "$ac_try") 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; }; then
12666   lt_cv_cc_needs_belf=yes
12667 else
12668   echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12670
12671         lt_cv_cc_needs_belf=no
12672 fi
12673
12674 rm -f core conftest.err conftest.$ac_objext \
12675       conftest$ac_exeext conftest.$ac_ext
12676      ac_ext=c
12677 ac_cpp='$CPP $CPPFLAGS'
12678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
12682 fi
12683 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12684 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12685   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12686     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12687     CFLAGS="$SAVE_CFLAGS"
12688   fi
12689   ;;
12690 sparc*-*solaris*)
12691   # Find out which ABI we are using.
12692   echo 'int i;' > conftest.$ac_ext
12693   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694   (eval $ac_compile) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; then
12698     case `/usr/bin/file conftest.o` in
12699     *64-bit*)
12700       case $lt_cv_prog_gnu_ld in
12701       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12702       *)    LD="${LD-ld} -64" ;;
12703       esac
12704       ;;
12705     esac
12706   fi
12707   rm -rf conftest*
12708   ;;
12709
12710
12711 esac
12712
12713 need_locks="$enable_libtool_lock"
12714
12715
12716
12717
12718 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12719     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12720     (test "X$CXX" != "Xg++"))) ; then
12721   ac_ext=cpp
12722 ac_cpp='$CXXCPP $CPPFLAGS'
12723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12726 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12727 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12728 if test -z "$CXXCPP"; then
12729   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732       # Double quotes because CXXCPP needs to be expanded
12733     for CXXCPP in "$CXX -E" "/lib/cpp"
12734     do
12735       ac_preproc_ok=false
12736 for ac_cxx_preproc_warn_flag in '' yes
12737 do
12738   # Use a header file that comes with gcc, so configuring glibc
12739   # with a fresh cross-compiler works.
12740   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12741   # <limits.h> exists even on freestanding compilers.
12742   # On the NeXT, cc -E runs the code through the compiler's parser,
12743   # not just through cpp. "Syntax error" is here to catch this case.
12744   cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 #ifdef __STDC__
12751 # include <limits.h>
12752 #else
12753 # include <assert.h>
12754 #endif
12755                      Syntax error
12756 _ACEOF
12757 if { (ac_try="$ac_cpp conftest.$ac_ext"
12758 case "(($ac_try" in
12759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760   *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12764   ac_status=$?
12765   grep -v '^ *+' conftest.er1 >conftest.err
12766   rm -f conftest.er1
12767   cat conftest.err >&5
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } >/dev/null; then
12770   if test -s conftest.err; then
12771     ac_cpp_err=$ac_cxx_preproc_warn_flag
12772     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12773   else
12774     ac_cpp_err=
12775   fi
12776 else
12777   ac_cpp_err=yes
12778 fi
12779 if test -z "$ac_cpp_err"; then
12780   :
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785   # Broken: fails on valid input.
12786 continue
12787 fi
12788
12789 rm -f conftest.err conftest.$ac_ext
12790
12791   # OK, works on sane cases.  Now check whether nonexistent headers
12792   # can be detected and how.
12793   cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 #include <ac_nonexistent.h>
12800 _ACEOF
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12808   ac_status=$?
12809   grep -v '^ *+' conftest.er1 >conftest.err
12810   rm -f conftest.er1
12811   cat conftest.err >&5
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } >/dev/null; then
12814   if test -s conftest.err; then
12815     ac_cpp_err=$ac_cxx_preproc_warn_flag
12816     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12817   else
12818     ac_cpp_err=
12819   fi
12820 else
12821   ac_cpp_err=yes
12822 fi
12823 if test -z "$ac_cpp_err"; then
12824   # Broken: success on invalid input.
12825 continue
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830   # Passes both tests.
12831 ac_preproc_ok=:
12832 break
12833 fi
12834
12835 rm -f conftest.err conftest.$ac_ext
12836
12837 done
12838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12839 rm -f conftest.err conftest.$ac_ext
12840 if $ac_preproc_ok; then
12841   break
12842 fi
12843
12844     done
12845     ac_cv_prog_CXXCPP=$CXXCPP
12846
12847 fi
12848   CXXCPP=$ac_cv_prog_CXXCPP
12849 else
12850   ac_cv_prog_CXXCPP=$CXXCPP
12851 fi
12852 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12853 echo "${ECHO_T}$CXXCPP" >&6; }
12854 ac_preproc_ok=false
12855 for ac_cxx_preproc_warn_flag in '' yes
12856 do
12857   # Use a header file that comes with gcc, so configuring glibc
12858   # with a fresh cross-compiler works.
12859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860   # <limits.h> exists even on freestanding compilers.
12861   # On the NeXT, cc -E runs the code through the compiler's parser,
12862   # not just through cpp. "Syntax error" is here to catch this case.
12863   cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h.  */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h.  */
12869 #ifdef __STDC__
12870 # include <limits.h>
12871 #else
12872 # include <assert.h>
12873 #endif
12874                      Syntax error
12875 _ACEOF
12876 if { (ac_try="$ac_cpp conftest.$ac_ext"
12877 case "(($ac_try" in
12878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879   *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } >/dev/null; then
12889   if test -s conftest.err; then
12890     ac_cpp_err=$ac_cxx_preproc_warn_flag
12891     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12892   else
12893     ac_cpp_err=
12894   fi
12895 else
12896   ac_cpp_err=yes
12897 fi
12898 if test -z "$ac_cpp_err"; then
12899   :
12900 else
12901   echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904   # Broken: fails on valid input.
12905 continue
12906 fi
12907
12908 rm -f conftest.err conftest.$ac_ext
12909
12910   # OK, works on sane cases.  Now check whether nonexistent headers
12911   # can be detected and how.
12912   cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918 #include <ac_nonexistent.h>
12919 _ACEOF
12920 if { (ac_try="$ac_cpp conftest.$ac_ext"
12921 case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12927   ac_status=$?
12928   grep -v '^ *+' conftest.er1 >conftest.err
12929   rm -f conftest.er1
12930   cat conftest.err >&5
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } >/dev/null; then
12933   if test -s conftest.err; then
12934     ac_cpp_err=$ac_cxx_preproc_warn_flag
12935     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12936   else
12937     ac_cpp_err=
12938   fi
12939 else
12940   ac_cpp_err=yes
12941 fi
12942 if test -z "$ac_cpp_err"; then
12943   # Broken: success on invalid input.
12944 continue
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949   # Passes both tests.
12950 ac_preproc_ok=:
12951 break
12952 fi
12953
12954 rm -f conftest.err conftest.$ac_ext
12955
12956 done
12957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12958 rm -f conftest.err conftest.$ac_ext
12959 if $ac_preproc_ok; then
12960   :
12961 else
12962   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12963 See \`config.log' for more details." >&5
12964 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12965 See \`config.log' for more details." >&2;}
12966    { (exit 1); exit 1; }; }
12967 fi
12968
12969 ac_ext=cpp
12970 ac_cpp='$CXXCPP $CPPFLAGS'
12971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12974
12975 fi
12976
12977
12978 ac_ext=f
12979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12982 if test -n "$ac_tool_prefix"; then
12983   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
12984   do
12985     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12989 if test "${ac_cv_prog_F77+set}" = set; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992   if test -n "$F77"; then
12993   ac_cv_prog_F77="$F77" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998   IFS=$as_save_IFS
12999   test -z "$as_dir" && as_dir=.
13000   for ac_exec_ext in '' $ac_executable_extensions; do
13001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13002     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13004     break 2
13005   fi
13006 done
13007 done
13008 IFS=$as_save_IFS
13009
13010 fi
13011 fi
13012 F77=$ac_cv_prog_F77
13013 if test -n "$F77"; then
13014   { echo "$as_me:$LINENO: result: $F77" >&5
13015 echo "${ECHO_T}$F77" >&6; }
13016 else
13017   { echo "$as_me:$LINENO: result: no" >&5
13018 echo "${ECHO_T}no" >&6; }
13019 fi
13020
13021
13022     test -n "$F77" && break
13023   done
13024 fi
13025 if test -z "$F77"; then
13026   ac_ct_F77=$F77
13027   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
13028 do
13029   # Extract the first word of "$ac_prog", so it can be a program name with args.
13030 set dummy $ac_prog; ac_word=$2
13031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   if test -n "$ac_ct_F77"; then
13037   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13038 else
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13041 do
13042   IFS=$as_save_IFS
13043   test -z "$as_dir" && as_dir=.
13044   for ac_exec_ext in '' $ac_executable_extensions; do
13045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13046     ac_cv_prog_ac_ct_F77="$ac_prog"
13047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13048     break 2
13049   fi
13050 done
13051 done
13052 IFS=$as_save_IFS
13053
13054 fi
13055 fi
13056 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13057 if test -n "$ac_ct_F77"; then
13058   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13059 echo "${ECHO_T}$ac_ct_F77" >&6; }
13060 else
13061   { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13063 fi
13064
13065
13066   test -n "$ac_ct_F77" && break
13067 done
13068
13069   if test "x$ac_ct_F77" = x; then
13070     F77=""
13071   else
13072     case $cross_compiling:$ac_tool_warned in
13073 yes:)
13074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13075 whose name does not start with the host triplet.  If you think this
13076 configuration is useful to you, please write to autoconf@gnu.org." >&5
13077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13078 whose name does not start with the host triplet.  If you think this
13079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13080 ac_tool_warned=yes ;;
13081 esac
13082     F77=$ac_ct_F77
13083   fi
13084 fi
13085
13086
13087 # Provide some information about the compiler.
13088 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13089 ac_compiler=`set X $ac_compile; echo $2`
13090 { (ac_try="$ac_compiler --version >&5"
13091 case "(($ac_try" in
13092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093   *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096   (eval "$ac_compiler --version >&5") 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }
13100 { (ac_try="$ac_compiler -v >&5"
13101 case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_compiler -v >&5") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }
13110 { (ac_try="$ac_compiler -V >&5"
13111 case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_compiler -V >&5") 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); }
13120 rm -f a.out
13121
13122 # If we don't use `.F' as extension, the preprocessor is not run on the
13123 # input file.  (Note that this only needs to work for GNU compilers.)
13124 ac_save_ext=$ac_ext
13125 ac_ext=F
13126 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13127 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13128 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   cat >conftest.$ac_ext <<_ACEOF
13132       program main
13133 #ifndef __GNUC__
13134        choke me
13135 #endif
13136
13137       end
13138 _ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_compile") 2>conftest.er1
13147   ac_status=$?
13148   grep -v '^ *+' conftest.er1 >conftest.err
13149   rm -f conftest.er1
13150   cat conftest.err >&5
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } &&
13153          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13154   { (case "(($ac_try" in
13155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156   *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159   (eval "$ac_try") 2>&5
13160   ac_status=$?
13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); }; } &&
13163          { ac_try='test -s conftest.$ac_objext'
13164   { (case "(($ac_try" in
13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166   *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169   (eval "$ac_try") 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; }; then
13173   ac_compiler_gnu=yes
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178         ac_compiler_gnu=no
13179 fi
13180
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13183
13184 fi
13185 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13186 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13187 ac_ext=$ac_save_ext
13188 ac_test_FFLAGS=${FFLAGS+set}
13189 ac_save_FFLAGS=$FFLAGS
13190 FFLAGS=
13191 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13192 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13193 if test "${ac_cv_prog_f77_g+set}" = set; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196   FFLAGS=-g
13197 cat >conftest.$ac_ext <<_ACEOF
13198       program main
13199
13200       end
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209   (eval "$ac_compile") 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13217   { (case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_try") 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; } &&
13226          { ac_try='test -s conftest.$ac_objext'
13227   { (case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232   (eval "$ac_try") 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   ac_cv_prog_f77_g=yes
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241         ac_cv_prog_f77_g=no
13242 fi
13243
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245
13246 fi
13247 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13248 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13249 if test "$ac_test_FFLAGS" = set; then
13250   FFLAGS=$ac_save_FFLAGS
13251 elif test $ac_cv_prog_f77_g = yes; then
13252   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13253     FFLAGS="-g -O2"
13254   else
13255     FFLAGS="-g"
13256   fi
13257 else
13258   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13259     FFLAGS="-O2"
13260   else
13261     FFLAGS=
13262   fi
13263 fi
13264
13265 G77=`test $ac_compiler_gnu = yes && echo yes`
13266 ac_ext=c
13267 ac_cpp='$CPP $CPPFLAGS'
13268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13271
13272
13273
13274 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13275
13276 # find the maximum length of command line arguments
13277 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13278 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13279 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282     i=0
13283   teststring="ABCD"
13284
13285   case $build_os in
13286   msdosdjgpp*)
13287     # On DJGPP, this test can blow up pretty badly due to problems in libc
13288     # (any single argument exceeding 2000 bytes causes a buffer overrun
13289     # during glob expansion).  Even if it were fixed, the result of this
13290     # check would be larger than it should be.
13291     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13292     ;;
13293
13294   gnu*)
13295     # Under GNU Hurd, this test is not required because there is
13296     # no limit to the length of command line arguments.
13297     # Libtool will interpret -1 as no limit whatsoever
13298     lt_cv_sys_max_cmd_len=-1;
13299     ;;
13300
13301   cygwin* | mingw*)
13302     # On Win9x/ME, this test blows up -- it succeeds, but takes
13303     # about 5 minutes as the teststring grows exponentially.
13304     # Worse, since 9x/ME are not pre-emptively multitasking,
13305     # you end up with a "frozen" computer, even though with patience
13306     # the test eventually succeeds (with a max line length of 256k).
13307     # Instead, let's just punt: use the minimum linelength reported by
13308     # all of the supported platforms: 8192 (on NT/2K/XP).
13309     lt_cv_sys_max_cmd_len=8192;
13310     ;;
13311
13312   amigaos*)
13313     # On AmigaOS with pdksh, this test takes hours, literally.
13314     # So we just punt and use a minimum line length of 8192.
13315     lt_cv_sys_max_cmd_len=8192;
13316     ;;
13317
13318   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13319     # This has been around since 386BSD, at least.  Likely further.
13320     if test -x /sbin/sysctl; then
13321       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13322     elif test -x /usr/sbin/sysctl; then
13323       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13324     else
13325       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13326     fi
13327     # And add a safety zone
13328     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13329     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13330     ;;
13331
13332   interix*)
13333     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13334     lt_cv_sys_max_cmd_len=196608
13335     ;;
13336
13337   osf*)
13338     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13339     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13340     # nice to cause kernel panics so lets avoid the loop below.
13341     # First set a reasonable default.
13342     lt_cv_sys_max_cmd_len=16384
13343     #
13344     if test -x /sbin/sysconfig; then
13345       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13346         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13347       esac
13348     fi
13349     ;;
13350   sco3.2v5*)
13351     lt_cv_sys_max_cmd_len=102400
13352     ;;
13353   sysv5* | sco5v6* | sysv4.2uw2*)
13354     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13355     if test -n "$kargmax"; then
13356       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13357     else
13358       lt_cv_sys_max_cmd_len=32768
13359     fi
13360     ;;
13361   *)
13362     # If test is not a shell built-in, we'll probably end up computing a
13363     # maximum length that is only half of the actual maximum length, but
13364     # we can't tell.
13365     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13366     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13367                = "XX$teststring") >/dev/null 2>&1 &&
13368             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13369             lt_cv_sys_max_cmd_len=$new_result &&
13370             test $i != 17 # 1/2 MB should be enough
13371     do
13372       i=`expr $i + 1`
13373       teststring=$teststring$teststring
13374     done
13375     teststring=
13376     # Add a significant safety factor because C++ compilers can tack on massive
13377     # amounts of additional arguments before passing them to the linker.
13378     # It appears as though 1/2 is a usable value.
13379     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13380     ;;
13381   esac
13382
13383 fi
13384
13385 if test -n $lt_cv_sys_max_cmd_len ; then
13386   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13387 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13388 else
13389   { echo "$as_me:$LINENO: result: none" >&5
13390 echo "${ECHO_T}none" >&6; }
13391 fi
13392
13393
13394
13395
13396 # Check for command to grab the raw symbol name followed by C symbol from nm.
13397 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13398 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13400   echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402
13403 # These are sane defaults that work on at least a few old systems.
13404 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13405
13406 # Character class describing NM global symbol codes.
13407 symcode='[BCDEGRST]'
13408
13409 # Regexp to match symbols that can be accessed directly from C.
13410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13411
13412 # Transform an extracted symbol line into a proper C declaration
13413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13414
13415 # Transform an extracted symbol line into symbol name and symbol address
13416 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'"
13417
13418 # Define system-specific variables.
13419 case $host_os in
13420 aix*)
13421   symcode='[BCDT]'
13422   ;;
13423 cygwin* | mingw* | pw32*)
13424   symcode='[ABCDGISTW]'
13425   ;;
13426 hpux*) # Its linker distinguishes data from code symbols
13427   if test "$host_cpu" = ia64; then
13428     symcode='[ABCDEGRST]'
13429   fi
13430   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13431   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'"
13432   ;;
13433 linux*)
13434   if test "$host_cpu" = ia64; then
13435     symcode='[ABCDGIRSTW]'
13436     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13437     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'"
13438   fi
13439   ;;
13440 irix* | nonstopux*)
13441   symcode='[BCDEGRST]'
13442   ;;
13443 osf*)
13444   symcode='[BCDEGQRST]'
13445   ;;
13446 solaris*)
13447   symcode='[BDRT]'
13448   ;;
13449 sco3.2v5*)
13450   symcode='[DT]'
13451   ;;
13452 sysv4.2uw2*)
13453   symcode='[DT]'
13454   ;;
13455 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13456   symcode='[ABDT]'
13457   ;;
13458 sysv4)
13459   symcode='[DFNSTU]'
13460   ;;
13461 esac
13462
13463 # Handle CRLF in mingw tool chain
13464 opt_cr=
13465 case $build_os in
13466 mingw*)
13467   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13468   ;;
13469 esac
13470
13471 # If we're using GNU nm, then use its standard symbol codes.
13472 case `$NM -V 2>&1` in
13473 *GNU* | *'with BFD'*)
13474   symcode='[ABCDGIRSTW]' ;;
13475 esac
13476
13477 # Try without a prefix undercore, then with it.
13478 for ac_symprfx in "" "_"; do
13479
13480   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13481   symxfrm="\\1 $ac_symprfx\\2 \\2"
13482
13483   # Write the raw and C identifiers.
13484   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13485
13486   # Check to see that the pipe works correctly.
13487   pipe_works=no
13488
13489   rm -f conftest*
13490   cat > conftest.$ac_ext <<EOF
13491 #ifdef __cplusplus
13492 extern "C" {
13493 #endif
13494 char nm_test_var;
13495 void nm_test_func(){}
13496 #ifdef __cplusplus
13497 }
13498 #endif
13499 int main(){nm_test_var='a';nm_test_func();return(0);}
13500 EOF
13501
13502   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503   (eval $ac_compile) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; then
13507     # Now try to grab the symbols.
13508     nlist=conftest.nm
13509     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13510   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } && test -s "$nlist"; then
13514       # Try sorting and uniquifying the output.
13515       if sort "$nlist" | uniq > "$nlist"T; then
13516         mv -f "$nlist"T "$nlist"
13517       else
13518         rm -f "$nlist"T
13519       fi
13520
13521       # Make sure that we snagged all the symbols we need.
13522       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13523         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13524           cat <<EOF > conftest.$ac_ext
13525 #ifdef __cplusplus
13526 extern "C" {
13527 #endif
13528
13529 EOF
13530           # Now generate the symbol file.
13531           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13532
13533           cat <<EOF >> conftest.$ac_ext
13534 #if defined (__STDC__) && __STDC__
13535 # define lt_ptr_t void *
13536 #else
13537 # define lt_ptr_t char *
13538 # define const
13539 #endif
13540
13541 /* The mapping between symbol names and symbols. */
13542 const struct {
13543   const char *name;
13544   lt_ptr_t address;
13545 }
13546 lt_preloaded_symbols[] =
13547 {
13548 EOF
13549           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13550           cat <<\EOF >> conftest.$ac_ext
13551   {0, (lt_ptr_t) 0}
13552 };
13553
13554 #ifdef __cplusplus
13555 }
13556 #endif
13557 EOF
13558           # Now try linking the two files.
13559           mv conftest.$ac_objext conftstm.$ac_objext
13560           lt_save_LIBS="$LIBS"
13561           lt_save_CFLAGS="$CFLAGS"
13562           LIBS="conftstm.$ac_objext"
13563           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13564           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565   (eval $ac_link) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13569             pipe_works=yes
13570           fi
13571           LIBS="$lt_save_LIBS"
13572           CFLAGS="$lt_save_CFLAGS"
13573         else
13574           echo "cannot find nm_test_func in $nlist" >&5
13575         fi
13576       else
13577         echo "cannot find nm_test_var in $nlist" >&5
13578       fi
13579     else
13580       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13581     fi
13582   else
13583     echo "$progname: failed program was:" >&5
13584     cat conftest.$ac_ext >&5
13585   fi
13586   rm -f conftest* conftst*
13587
13588   # Do not use the global_symbol_pipe unless it works.
13589   if test "$pipe_works" = yes; then
13590     break
13591   else
13592     lt_cv_sys_global_symbol_pipe=
13593   fi
13594 done
13595
13596 fi
13597
13598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13599   lt_cv_sys_global_symbol_to_cdecl=
13600 fi
13601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13602   { echo "$as_me:$LINENO: result: failed" >&5
13603 echo "${ECHO_T}failed" >&6; }
13604 else
13605   { echo "$as_me:$LINENO: result: ok" >&5
13606 echo "${ECHO_T}ok" >&6; }
13607 fi
13608
13609 { echo "$as_me:$LINENO: checking for objdir" >&5
13610 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13611 if test "${lt_cv_objdir+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   rm -f .libs 2>/dev/null
13615 mkdir .libs 2>/dev/null
13616 if test -d .libs; then
13617   lt_cv_objdir=.libs
13618 else
13619   # MS-DOS does not allow filenames that begin with a dot.
13620   lt_cv_objdir=_libs
13621 fi
13622 rmdir .libs 2>/dev/null
13623 fi
13624 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13625 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13626 objdir=$lt_cv_objdir
13627
13628
13629
13630
13631
13632 case $host_os in
13633 aix3*)
13634   # AIX sometimes has problems with the GCC collect2 program.  For some
13635   # reason, if we set the COLLECT_NAMES environment variable, the problems
13636   # vanish in a puff of smoke.
13637   if test "X${COLLECT_NAMES+set}" != Xset; then
13638     COLLECT_NAMES=
13639     export COLLECT_NAMES
13640   fi
13641   ;;
13642 esac
13643
13644 # Sed substitution that helps us do robust quoting.  It backslashifies
13645 # metacharacters that are still active within double-quoted strings.
13646 Xsed='sed -e 1s/^X//'
13647 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13648
13649 # Same as above, but do not quote variable references.
13650 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13651
13652 # Sed substitution to delay expansion of an escaped shell variable in a
13653 # double_quote_subst'ed string.
13654 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13655
13656 # Sed substitution to avoid accidental globbing in evaled expressions
13657 no_glob_subst='s/\*/\\\*/g'
13658
13659 # Constants:
13660 rm="rm -f"
13661
13662 # Global variables:
13663 default_ofile=mklib
13664 can_build_shared=yes
13665
13666 # All known linkers require a `.a' archive for static linking (except MSVC,
13667 # which needs '.lib').
13668 libext=a
13669 ltmain="$ac_aux_dir/ltmain.sh"
13670 ofile="$default_ofile"
13671 with_gnu_ld="$lt_cv_prog_gnu_ld"
13672
13673 if test -n "$ac_tool_prefix"; then
13674   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13675 set dummy ${ac_tool_prefix}ar; ac_word=$2
13676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13678 if test "${ac_cv_prog_AR+set}" = set; then
13679   echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681   if test -n "$AR"; then
13682   ac_cv_prog_AR="$AR" # Let the user override the test.
13683 else
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13686 do
13687   IFS=$as_save_IFS
13688   test -z "$as_dir" && as_dir=.
13689   for ac_exec_ext in '' $ac_executable_extensions; do
13690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13691     ac_cv_prog_AR="${ac_tool_prefix}ar"
13692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13693     break 2
13694   fi
13695 done
13696 done
13697 IFS=$as_save_IFS
13698
13699 fi
13700 fi
13701 AR=$ac_cv_prog_AR
13702 if test -n "$AR"; then
13703   { echo "$as_me:$LINENO: result: $AR" >&5
13704 echo "${ECHO_T}$AR" >&6; }
13705 else
13706   { echo "$as_me:$LINENO: result: no" >&5
13707 echo "${ECHO_T}no" >&6; }
13708 fi
13709
13710
13711 fi
13712 if test -z "$ac_cv_prog_AR"; then
13713   ac_ct_AR=$AR
13714   # Extract the first word of "ar", so it can be a program name with args.
13715 set dummy ar; ac_word=$2
13716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13718 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   if test -n "$ac_ct_AR"; then
13722   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13723 else
13724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13726 do
13727   IFS=$as_save_IFS
13728   test -z "$as_dir" && as_dir=.
13729   for ac_exec_ext in '' $ac_executable_extensions; do
13730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13731     ac_cv_prog_ac_ct_AR="ar"
13732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13733     break 2
13734   fi
13735 done
13736 done
13737 IFS=$as_save_IFS
13738
13739 fi
13740 fi
13741 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13742 if test -n "$ac_ct_AR"; then
13743   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13744 echo "${ECHO_T}$ac_ct_AR" >&6; }
13745 else
13746   { echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6; }
13748 fi
13749
13750   if test "x$ac_ct_AR" = x; then
13751     AR="false"
13752   else
13753     case $cross_compiling:$ac_tool_warned in
13754 yes:)
13755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13756 whose name does not start with the host triplet.  If you think this
13757 configuration is useful to you, please write to autoconf@gnu.org." >&5
13758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13759 whose name does not start with the host triplet.  If you think this
13760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13761 ac_tool_warned=yes ;;
13762 esac
13763     AR=$ac_ct_AR
13764   fi
13765 else
13766   AR="$ac_cv_prog_AR"
13767 fi
13768
13769 if test -n "$ac_tool_prefix"; then
13770   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13774 if test "${ac_cv_prog_RANLIB+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   if test -n "$RANLIB"; then
13778   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13779 else
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $PATH
13782 do
13783   IFS=$as_save_IFS
13784   test -z "$as_dir" && as_dir=.
13785   for ac_exec_ext in '' $ac_executable_extensions; do
13786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13787     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13789     break 2
13790   fi
13791 done
13792 done
13793 IFS=$as_save_IFS
13794
13795 fi
13796 fi
13797 RANLIB=$ac_cv_prog_RANLIB
13798 if test -n "$RANLIB"; then
13799   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13800 echo "${ECHO_T}$RANLIB" >&6; }
13801 else
13802   { echo "$as_me:$LINENO: result: no" >&5
13803 echo "${ECHO_T}no" >&6; }
13804 fi
13805
13806
13807 fi
13808 if test -z "$ac_cv_prog_RANLIB"; then
13809   ac_ct_RANLIB=$RANLIB
13810   # Extract the first word of "ranlib", so it can be a program name with args.
13811 set dummy ranlib; ac_word=$2
13812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13814 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   if test -n "$ac_ct_RANLIB"; then
13818   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13819 else
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823   IFS=$as_save_IFS
13824   test -z "$as_dir" && as_dir=.
13825   for ac_exec_ext in '' $ac_executable_extensions; do
13826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13827     ac_cv_prog_ac_ct_RANLIB="ranlib"
13828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13829     break 2
13830   fi
13831 done
13832 done
13833 IFS=$as_save_IFS
13834
13835 fi
13836 fi
13837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13838 if test -n "$ac_ct_RANLIB"; then
13839   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13840 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13841 else
13842   { echo "$as_me:$LINENO: result: no" >&5
13843 echo "${ECHO_T}no" >&6; }
13844 fi
13845
13846   if test "x$ac_ct_RANLIB" = x; then
13847     RANLIB=":"
13848   else
13849     case $cross_compiling:$ac_tool_warned in
13850 yes:)
13851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13852 whose name does not start with the host triplet.  If you think this
13853 configuration is useful to you, please write to autoconf@gnu.org." >&5
13854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13855 whose name does not start with the host triplet.  If you think this
13856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13857 ac_tool_warned=yes ;;
13858 esac
13859     RANLIB=$ac_ct_RANLIB
13860   fi
13861 else
13862   RANLIB="$ac_cv_prog_RANLIB"
13863 fi
13864
13865 if test -n "$ac_tool_prefix"; then
13866   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13867 set dummy ${ac_tool_prefix}strip; ac_word=$2
13868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13870 if test "${ac_cv_prog_STRIP+set}" = set; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   if test -n "$STRIP"; then
13874   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13875 else
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13878 do
13879   IFS=$as_save_IFS
13880   test -z "$as_dir" && as_dir=.
13881   for ac_exec_ext in '' $ac_executable_extensions; do
13882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13883     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885     break 2
13886   fi
13887 done
13888 done
13889 IFS=$as_save_IFS
13890
13891 fi
13892 fi
13893 STRIP=$ac_cv_prog_STRIP
13894 if test -n "$STRIP"; then
13895   { echo "$as_me:$LINENO: result: $STRIP" >&5
13896 echo "${ECHO_T}$STRIP" >&6; }
13897 else
13898   { echo "$as_me:$LINENO: result: no" >&5
13899 echo "${ECHO_T}no" >&6; }
13900 fi
13901
13902
13903 fi
13904 if test -z "$ac_cv_prog_STRIP"; then
13905   ac_ct_STRIP=$STRIP
13906   # Extract the first word of "strip", so it can be a program name with args.
13907 set dummy strip; ac_word=$2
13908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   if test -n "$ac_ct_STRIP"; then
13914   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919   IFS=$as_save_IFS
13920   test -z "$as_dir" && as_dir=.
13921   for ac_exec_ext in '' $ac_executable_extensions; do
13922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13923     ac_cv_prog_ac_ct_STRIP="strip"
13924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13925     break 2
13926   fi
13927 done
13928 done
13929 IFS=$as_save_IFS
13930
13931 fi
13932 fi
13933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13934 if test -n "$ac_ct_STRIP"; then
13935   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13936 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13937 else
13938   { echo "$as_me:$LINENO: result: no" >&5
13939 echo "${ECHO_T}no" >&6; }
13940 fi
13941
13942   if test "x$ac_ct_STRIP" = x; then
13943     STRIP=":"
13944   else
13945     case $cross_compiling:$ac_tool_warned in
13946 yes:)
13947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13948 whose name does not start with the host triplet.  If you think this
13949 configuration is useful to you, please write to autoconf@gnu.org." >&5
13950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13951 whose name does not start with the host triplet.  If you think this
13952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13953 ac_tool_warned=yes ;;
13954 esac
13955     STRIP=$ac_ct_STRIP
13956   fi
13957 else
13958   STRIP="$ac_cv_prog_STRIP"
13959 fi
13960
13961
13962 old_CC="$CC"
13963 old_CFLAGS="$CFLAGS"
13964
13965 # Set sane defaults for various variables
13966 test -z "$AR" && AR=ar
13967 test -z "$AR_FLAGS" && AR_FLAGS=cru
13968 test -z "$AS" && AS=as
13969 test -z "$CC" && CC=cc
13970 test -z "$LTCC" && LTCC=$CC
13971 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13972 test -z "$DLLTOOL" && DLLTOOL=dlltool
13973 test -z "$LD" && LD=ld
13974 test -z "$LN_S" && LN_S="ln -s"
13975 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13976 test -z "$NM" && NM=nm
13977 test -z "$SED" && SED=sed
13978 test -z "$OBJDUMP" && OBJDUMP=objdump
13979 test -z "$RANLIB" && RANLIB=:
13980 test -z "$STRIP" && STRIP=:
13981 test -z "$ac_objext" && ac_objext=o
13982
13983 # Determine commands to create old-style static archives.
13984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13985 old_postinstall_cmds='chmod 644 $oldlib'
13986 old_postuninstall_cmds=
13987
13988 if test -n "$RANLIB"; then
13989   case $host_os in
13990   openbsd*)
13991     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13992     ;;
13993   *)
13994     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13995     ;;
13996   esac
13997   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13998 fi
13999
14000 for cc_temp in $compiler""; do
14001   case $cc_temp in
14002     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14003     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14004     \-*) ;;
14005     *) break;;
14006   esac
14007 done
14008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14009
14010
14011 # Only perform the check for file, if the check method requires it
14012 case $deplibs_check_method in
14013 file_magic*)
14014   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14015     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14016 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14017 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   case $MAGIC_CMD in
14021 [\\/*] |  ?:[\\/]*)
14022   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14023   ;;
14024 *)
14025   lt_save_MAGIC_CMD="$MAGIC_CMD"
14026   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14027   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14028   for ac_dir in $ac_dummy; do
14029     IFS="$lt_save_ifs"
14030     test -z "$ac_dir" && ac_dir=.
14031     if test -f $ac_dir/${ac_tool_prefix}file; then
14032       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14033       if test -n "$file_magic_test_file"; then
14034         case $deplibs_check_method in
14035         "file_magic "*)
14036           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14037           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14038           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14039             $EGREP "$file_magic_regex" > /dev/null; then
14040             :
14041           else
14042             cat <<EOF 1>&2
14043
14044 *** Warning: the command libtool uses to detect shared libraries,
14045 *** $file_magic_cmd, produces output that libtool cannot recognize.
14046 *** The result is that libtool may fail to recognize shared libraries
14047 *** as such.  This will affect the creation of libtool libraries that
14048 *** depend on shared libraries, but programs linked with such libtool
14049 *** libraries will work regardless of this problem.  Nevertheless, you
14050 *** may want to report the problem to your system manager and/or to
14051 *** bug-libtool@gnu.org
14052
14053 EOF
14054           fi ;;
14055         esac
14056       fi
14057       break
14058     fi
14059   done
14060   IFS="$lt_save_ifs"
14061   MAGIC_CMD="$lt_save_MAGIC_CMD"
14062   ;;
14063 esac
14064 fi
14065
14066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14067 if test -n "$MAGIC_CMD"; then
14068   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14069 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14070 else
14071   { echo "$as_me:$LINENO: result: no" >&5
14072 echo "${ECHO_T}no" >&6; }
14073 fi
14074
14075 if test -z "$lt_cv_path_MAGIC_CMD"; then
14076   if test -n "$ac_tool_prefix"; then
14077     { echo "$as_me:$LINENO: checking for file" >&5
14078 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14079 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   case $MAGIC_CMD in
14083 [\\/*] |  ?:[\\/]*)
14084   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14085   ;;
14086 *)
14087   lt_save_MAGIC_CMD="$MAGIC_CMD"
14088   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090   for ac_dir in $ac_dummy; do
14091     IFS="$lt_save_ifs"
14092     test -z "$ac_dir" && ac_dir=.
14093     if test -f $ac_dir/file; then
14094       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095       if test -n "$file_magic_test_file"; then
14096         case $deplibs_check_method in
14097         "file_magic "*)
14098           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14099           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101             $EGREP "$file_magic_regex" > /dev/null; then
14102             :
14103           else
14104             cat <<EOF 1>&2
14105
14106 *** Warning: the command libtool uses to detect shared libraries,
14107 *** $file_magic_cmd, produces output that libtool cannot recognize.
14108 *** The result is that libtool may fail to recognize shared libraries
14109 *** as such.  This will affect the creation of libtool libraries that
14110 *** depend on shared libraries, but programs linked with such libtool
14111 *** libraries will work regardless of this problem.  Nevertheless, you
14112 *** may want to report the problem to your system manager and/or to
14113 *** bug-libtool@gnu.org
14114
14115 EOF
14116           fi ;;
14117         esac
14118       fi
14119       break
14120     fi
14121   done
14122   IFS="$lt_save_ifs"
14123   MAGIC_CMD="$lt_save_MAGIC_CMD"
14124   ;;
14125 esac
14126 fi
14127
14128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129 if test -n "$MAGIC_CMD"; then
14130   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14131 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14132 else
14133   { echo "$as_me:$LINENO: result: no" >&5
14134 echo "${ECHO_T}no" >&6; }
14135 fi
14136
14137   else
14138     MAGIC_CMD=:
14139   fi
14140 fi
14141
14142   fi
14143   ;;
14144 esac
14145
14146 enable_dlopen=yes
14147 enable_win32_dll=no
14148
14149 # Check whether --enable-libtool-lock was given.
14150 if test "${enable_libtool_lock+set}" = set; then
14151   enableval=$enable_libtool_lock;
14152 fi
14153
14154 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14155
14156
14157 # Check whether --with-pic was given.
14158 if test "${with_pic+set}" = set; then
14159   withval=$with_pic; pic_mode="$withval"
14160 else
14161   pic_mode=default
14162 fi
14163
14164 test -z "$pic_mode" && pic_mode=default
14165
14166 # Use C for the default configuration in the libtool script
14167 tagname=
14168 lt_save_CC="$CC"
14169 ac_ext=c
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14174
14175
14176 # Source file extension for C test sources.
14177 ac_ext=c
14178
14179 # Object file extension for compiled C test sources.
14180 objext=o
14181 objext=$objext
14182
14183 # Code to be used in simple compile tests
14184 lt_simple_compile_test_code="int some_variable = 0;\n"
14185
14186 # Code to be used in simple link tests
14187 lt_simple_link_test_code='int main(){return(0);}\n'
14188
14189
14190 # If no C compiler was specified, use CC.
14191 LTCC=${LTCC-"$CC"}
14192
14193 # If no C compiler flags were specified, use CFLAGS.
14194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14195
14196 # Allow CC to be a program name with arguments.
14197 compiler=$CC
14198
14199
14200 # save warnings/boilerplate of simple test code
14201 ac_outfile=conftest.$ac_objext
14202 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204 _lt_compiler_boilerplate=`cat conftest.err`
14205 $rm conftest*
14206
14207 ac_outfile=conftest.$ac_objext
14208 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14210 _lt_linker_boilerplate=`cat conftest.err`
14211 $rm conftest*
14212
14213
14214
14215 lt_prog_compiler_no_builtin_flag=
14216
14217 if test "$GCC" = yes; then
14218   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14219
14220
14221 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14223 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   lt_cv_prog_compiler_rtti_exceptions=no
14227   ac_outfile=conftest.$ac_objext
14228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14229    lt_compiler_flag="-fno-rtti -fno-exceptions"
14230    # Insert the option either (1) after the last *FLAGS variable, or
14231    # (2) before a word containing "conftest.", or (3) at the end.
14232    # Note that $ac_compile itself does not contain backslashes and begins
14233    # with a dollar sign (not a hyphen), so the echo should work correctly.
14234    # The option is referenced via a variable to avoid confusing sed.
14235    lt_compile=`echo "$ac_compile" | $SED \
14236    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14238    -e 's:$: $lt_compiler_flag:'`
14239    (eval echo "\"\$as_me:14239: $lt_compile\"" >&5)
14240    (eval "$lt_compile" 2>conftest.err)
14241    ac_status=$?
14242    cat conftest.err >&5
14243    echo "$as_me:14243: \$? = $ac_status" >&5
14244    if (exit $ac_status) && test -s "$ac_outfile"; then
14245      # The compiler can only warn and ignore the option if not recognized
14246      # So say no if there are warnings other than the usual output.
14247      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14248      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14249      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14250        lt_cv_prog_compiler_rtti_exceptions=yes
14251      fi
14252    fi
14253    $rm conftest*
14254
14255 fi
14256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14257 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14258
14259 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14260     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14261 else
14262     :
14263 fi
14264
14265 fi
14266
14267 lt_prog_compiler_wl=
14268 lt_prog_compiler_pic=
14269 lt_prog_compiler_static=
14270
14271 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14273
14274   if test "$GCC" = yes; then
14275     lt_prog_compiler_wl='-Wl,'
14276     lt_prog_compiler_static='-static'
14277
14278     case $host_os in
14279       aix*)
14280       # All AIX code is PIC.
14281       if test "$host_cpu" = ia64; then
14282         # AIX 5 now supports IA64 processor
14283         lt_prog_compiler_static='-Bstatic'
14284       fi
14285       ;;
14286
14287     amigaos*)
14288       # FIXME: we need at least 68020 code to build shared libraries, but
14289       # adding the `-m68020' flag to GCC prevents building anything better,
14290       # like `-m68040'.
14291       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14292       ;;
14293
14294     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14295       # PIC is the default for these OSes.
14296       ;;
14297
14298     mingw* | pw32* | os2*)
14299       # This hack is so that the source file can tell whether it is being
14300       # built for inclusion in a dll (and should export symbols for example).
14301       lt_prog_compiler_pic='-DDLL_EXPORT'
14302       ;;
14303
14304     darwin* | rhapsody*)
14305       # PIC is the default on this platform
14306       # Common symbols not allowed in MH_DYLIB files
14307       lt_prog_compiler_pic='-fno-common'
14308       ;;
14309
14310     interix3*)
14311       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14312       # Instead, we relocate shared libraries at runtime.
14313       ;;
14314
14315     msdosdjgpp*)
14316       # Just because we use GCC doesn't mean we suddenly get shared libraries
14317       # on systems that don't support them.
14318       lt_prog_compiler_can_build_shared=no
14319       enable_shared=no
14320       ;;
14321
14322     sysv4*MP*)
14323       if test -d /usr/nec; then
14324         lt_prog_compiler_pic=-Kconform_pic
14325       fi
14326       ;;
14327
14328     hpux*)
14329       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14330       # not for PA HP-UX.
14331       case $host_cpu in
14332       hppa*64*|ia64*)
14333         # +Z the default
14334         ;;
14335       *)
14336         lt_prog_compiler_pic='-fPIC'
14337         ;;
14338       esac
14339       ;;
14340
14341     *)
14342       lt_prog_compiler_pic='-fPIC'
14343       ;;
14344     esac
14345   else
14346     # PORTME Check for flag to pass linker flags through the system compiler.
14347     case $host_os in
14348     aix*)
14349       lt_prog_compiler_wl='-Wl,'
14350       if test "$host_cpu" = ia64; then
14351         # AIX 5 now supports IA64 processor
14352         lt_prog_compiler_static='-Bstatic'
14353       else
14354         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14355       fi
14356       ;;
14357       darwin*)
14358         # PIC is the default on this platform
14359         # Common symbols not allowed in MH_DYLIB files
14360        case $cc_basename in
14361          xlc*)
14362          lt_prog_compiler_pic='-qnocommon'
14363          lt_prog_compiler_wl='-Wl,'
14364          ;;
14365        esac
14366        ;;
14367
14368     mingw* | pw32* | os2*)
14369       # This hack is so that the source file can tell whether it is being
14370       # built for inclusion in a dll (and should export symbols for example).
14371       lt_prog_compiler_pic='-DDLL_EXPORT'
14372       ;;
14373
14374     hpux9* | hpux10* | hpux11*)
14375       lt_prog_compiler_wl='-Wl,'
14376       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14377       # not for PA HP-UX.
14378       case $host_cpu in
14379       hppa*64*|ia64*)
14380         # +Z the default
14381         ;;
14382       *)
14383         lt_prog_compiler_pic='+Z'
14384         ;;
14385       esac
14386       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14387       lt_prog_compiler_static='${wl}-a ${wl}archive'
14388       ;;
14389
14390     irix5* | irix6* | nonstopux*)
14391       lt_prog_compiler_wl='-Wl,'
14392       # PIC (with -KPIC) is the default.
14393       lt_prog_compiler_static='-non_shared'
14394       ;;
14395
14396     newsos6)
14397       lt_prog_compiler_pic='-KPIC'
14398       lt_prog_compiler_static='-Bstatic'
14399       ;;
14400
14401     linux*)
14402       case $cc_basename in
14403       icc* | ecc*)
14404         lt_prog_compiler_wl='-Wl,'
14405         lt_prog_compiler_pic='-KPIC'
14406         lt_prog_compiler_static='-static'
14407         ;;
14408       pgcc* | pgf77* | pgf90* | pgf95*)
14409         # Portland Group compilers (*not* the Pentium gcc compiler,
14410         # which looks to be a dead project)
14411         lt_prog_compiler_wl='-Wl,'
14412         lt_prog_compiler_pic='-fpic'
14413         lt_prog_compiler_static='-Bstatic'
14414         ;;
14415       ccc*)
14416         lt_prog_compiler_wl='-Wl,'
14417         # All Alpha code is PIC.
14418         lt_prog_compiler_static='-non_shared'
14419         ;;
14420       esac
14421       ;;
14422
14423     osf3* | osf4* | osf5*)
14424       lt_prog_compiler_wl='-Wl,'
14425       # All OSF/1 code is PIC.
14426       lt_prog_compiler_static='-non_shared'
14427       ;;
14428
14429     solaris*)
14430       lt_prog_compiler_pic='-KPIC'
14431       lt_prog_compiler_static='-Bstatic'
14432       case $cc_basename in
14433       f77* | f90* | f95*)
14434         lt_prog_compiler_wl='-Qoption ld ';;
14435       *)
14436         lt_prog_compiler_wl='-Wl,';;
14437       esac
14438       ;;
14439
14440     sunos4*)
14441       lt_prog_compiler_wl='-Qoption ld '
14442       lt_prog_compiler_pic='-PIC'
14443       lt_prog_compiler_static='-Bstatic'
14444       ;;
14445
14446     sysv4 | sysv4.2uw2* | sysv4.3*)
14447       lt_prog_compiler_wl='-Wl,'
14448       lt_prog_compiler_pic='-KPIC'
14449       lt_prog_compiler_static='-Bstatic'
14450       ;;
14451
14452     sysv4*MP*)
14453       if test -d /usr/nec ;then
14454         lt_prog_compiler_pic='-Kconform_pic'
14455         lt_prog_compiler_static='-Bstatic'
14456       fi
14457       ;;
14458
14459     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460       lt_prog_compiler_wl='-Wl,'
14461       lt_prog_compiler_pic='-KPIC'
14462       lt_prog_compiler_static='-Bstatic'
14463       ;;
14464
14465     unicos*)
14466       lt_prog_compiler_wl='-Wl,'
14467       lt_prog_compiler_can_build_shared=no
14468       ;;
14469
14470     uts4*)
14471       lt_prog_compiler_pic='-pic'
14472       lt_prog_compiler_static='-Bstatic'
14473       ;;
14474
14475     *)
14476       lt_prog_compiler_can_build_shared=no
14477       ;;
14478     esac
14479   fi
14480
14481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14482 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14483
14484 #
14485 # Check to make sure the PIC flag actually works.
14486 #
14487 if test -n "$lt_prog_compiler_pic"; then
14488
14489 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14491 if test "${lt_prog_compiler_pic_works+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   lt_prog_compiler_pic_works=no
14495   ac_outfile=conftest.$ac_objext
14496    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14498    # Insert the option either (1) after the last *FLAGS variable, or
14499    # (2) before a word containing "conftest.", or (3) at the end.
14500    # Note that $ac_compile itself does not contain backslashes and begins
14501    # with a dollar sign (not a hyphen), so the echo should work correctly.
14502    # The option is referenced via a variable to avoid confusing sed.
14503    lt_compile=`echo "$ac_compile" | $SED \
14504    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506    -e 's:$: $lt_compiler_flag:'`
14507    (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
14508    (eval "$lt_compile" 2>conftest.err)
14509    ac_status=$?
14510    cat conftest.err >&5
14511    echo "$as_me:14511: \$? = $ac_status" >&5
14512    if (exit $ac_status) && test -s "$ac_outfile"; then
14513      # The compiler can only warn and ignore the option if not recognized
14514      # So say no if there are warnings other than the usual output.
14515      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14516      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518        lt_prog_compiler_pic_works=yes
14519      fi
14520    fi
14521    $rm conftest*
14522
14523 fi
14524 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14525 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14526
14527 if test x"$lt_prog_compiler_pic_works" = xyes; then
14528     case $lt_prog_compiler_pic in
14529      "" | " "*) ;;
14530      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14531      esac
14532 else
14533     lt_prog_compiler_pic=
14534      lt_prog_compiler_can_build_shared=no
14535 fi
14536
14537 fi
14538 case $host_os in
14539   # For platforms which do not support PIC, -DPIC is meaningless:
14540   *djgpp*)
14541     lt_prog_compiler_pic=
14542     ;;
14543   *)
14544     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14545     ;;
14546 esac
14547
14548 #
14549 # Check to make sure the static flag actually works.
14550 #
14551 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14552 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14553 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14554 if test "${lt_prog_compiler_static_works+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   lt_prog_compiler_static_works=no
14558    save_LDFLAGS="$LDFLAGS"
14559    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14560    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14561    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14562      # The linker can only warn and ignore the option if not recognized
14563      # So say no if there are warnings
14564      if test -s conftest.err; then
14565        # Append any errors to the config.log.
14566        cat conftest.err 1>&5
14567        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14568        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14569        if diff conftest.exp conftest.er2 >/dev/null; then
14570          lt_prog_compiler_static_works=yes
14571        fi
14572      else
14573        lt_prog_compiler_static_works=yes
14574      fi
14575    fi
14576    $rm conftest*
14577    LDFLAGS="$save_LDFLAGS"
14578
14579 fi
14580 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14581 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14582
14583 if test x"$lt_prog_compiler_static_works" = xyes; then
14584     :
14585 else
14586     lt_prog_compiler_static=
14587 fi
14588
14589
14590 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14591 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595   lt_cv_prog_compiler_c_o=no
14596    $rm -r conftest 2>/dev/null
14597    mkdir conftest
14598    cd conftest
14599    mkdir out
14600    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14601
14602    lt_compiler_flag="-o out/conftest2.$ac_objext"
14603    # Insert the option either (1) after the last *FLAGS variable, or
14604    # (2) before a word containing "conftest.", or (3) at the end.
14605    # Note that $ac_compile itself does not contain backslashes and begins
14606    # with a dollar sign (not a hyphen), so the echo should work correctly.
14607    lt_compile=`echo "$ac_compile" | $SED \
14608    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14609    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610    -e 's:$: $lt_compiler_flag:'`
14611    (eval echo "\"\$as_me:14611: $lt_compile\"" >&5)
14612    (eval "$lt_compile" 2>out/conftest.err)
14613    ac_status=$?
14614    cat out/conftest.err >&5
14615    echo "$as_me:14615: \$? = $ac_status" >&5
14616    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14617    then
14618      # The compiler can only warn and ignore the option if not recognized
14619      # So say no if there are warnings
14620      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14621      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14623        lt_cv_prog_compiler_c_o=yes
14624      fi
14625    fi
14626    chmod u+w . 2>&5
14627    $rm conftest*
14628    # SGI C++ compiler will create directory out/ii_files/ for
14629    # template instantiation
14630    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14631    $rm out/* && rmdir out
14632    cd ..
14633    rmdir conftest
14634    $rm conftest*
14635
14636 fi
14637 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14638 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14639
14640
14641 hard_links="nottested"
14642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14643   # do not overwrite the value of need_locks provided by the user
14644   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14645 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14646   hard_links=yes
14647   $rm conftest*
14648   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14649   touch conftest.a
14650   ln conftest.a conftest.b 2>&5 || hard_links=no
14651   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652   { echo "$as_me:$LINENO: result: $hard_links" >&5
14653 echo "${ECHO_T}$hard_links" >&6; }
14654   if test "$hard_links" = no; then
14655     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14656 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14657     need_locks=warn
14658   fi
14659 else
14660   need_locks=no
14661 fi
14662
14663 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14665
14666   runpath_var=
14667   allow_undefined_flag=
14668   enable_shared_with_static_runtimes=no
14669   archive_cmds=
14670   archive_expsym_cmds=
14671   old_archive_From_new_cmds=
14672   old_archive_from_expsyms_cmds=
14673   export_dynamic_flag_spec=
14674   whole_archive_flag_spec=
14675   thread_safe_flag_spec=
14676   hardcode_libdir_flag_spec=
14677   hardcode_libdir_flag_spec_ld=
14678   hardcode_libdir_separator=
14679   hardcode_direct=no
14680   hardcode_minus_L=no
14681   hardcode_shlibpath_var=unsupported
14682   link_all_deplibs=unknown
14683   hardcode_automatic=no
14684   module_cmds=
14685   module_expsym_cmds=
14686   always_export_symbols=no
14687   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688   # include_expsyms should be a list of space-separated symbols to be *always*
14689   # included in the symbol list
14690   include_expsyms=
14691   # exclude_expsyms can be an extended regexp of symbols to exclude
14692   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14693   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14694   # as well as any symbol that contains `d'.
14695   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14696   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14697   # platforms (ab)use it in PIC code, but their linkers get confused if
14698   # the symbol is explicitly referenced.  Since portable code cannot
14699   # rely on this symbol name, it's probably fine to never include it in
14700   # preloaded symbol tables.
14701   extract_expsyms_cmds=
14702   # Just being paranoid about ensuring that cc_basename is set.
14703   for cc_temp in $compiler""; do
14704   case $cc_temp in
14705     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14706     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14707     \-*) ;;
14708     *) break;;
14709   esac
14710 done
14711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14712
14713   case $host_os in
14714   cygwin* | mingw* | pw32*)
14715     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14716     # When not using gcc, we currently assume that we are using
14717     # Microsoft Visual C++.
14718     if test "$GCC" != yes; then
14719       with_gnu_ld=no
14720     fi
14721     ;;
14722   interix*)
14723     # we just hope/assume this is gcc and not c89 (= MSVC++)
14724     with_gnu_ld=yes
14725     ;;
14726   openbsd*)
14727     with_gnu_ld=no
14728     ;;
14729   esac
14730
14731   ld_shlibs=yes
14732   if test "$with_gnu_ld" = yes; then
14733     # If archive_cmds runs LD, not CC, wlarc should be empty
14734     wlarc='${wl}'
14735
14736     # Set some defaults for GNU ld with shared library support. These
14737     # are reset later if shared libraries are not supported. Putting them
14738     # here allows them to be overridden if necessary.
14739     runpath_var=LD_RUN_PATH
14740     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14741     export_dynamic_flag_spec='${wl}--export-dynamic'
14742     # ancient GNU ld didn't support --whole-archive et. al.
14743     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14744         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14745       else
14746         whole_archive_flag_spec=
14747     fi
14748     supports_anon_versioning=no
14749     case `$LD -v 2>/dev/null` in
14750       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14751       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14752       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14753       *\ 2.11.*) ;; # other 2.11 versions
14754       *) supports_anon_versioning=yes ;;
14755     esac
14756
14757     # See if GNU ld supports shared libraries.
14758     case $host_os in
14759     aix3* | aix4* | aix5*)
14760       # On AIX/PPC, the GNU linker is very broken
14761       if test "$host_cpu" != ia64; then
14762         ld_shlibs=no
14763         cat <<EOF 1>&2
14764
14765 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14766 *** to be unable to reliably create shared libraries on AIX.
14767 *** Therefore, libtool is disabling shared libraries support.  If you
14768 *** really care for shared libraries, you may want to modify your PATH
14769 *** so that a non-GNU linker is found, and then restart.
14770
14771 EOF
14772       fi
14773       ;;
14774
14775     amigaos*)
14776       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)'
14777       hardcode_libdir_flag_spec='-L$libdir'
14778       hardcode_minus_L=yes
14779
14780       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14781       # that the semantics of dynamic libraries on AmigaOS, at least up
14782       # to version 4, is to share data among multiple programs linked
14783       # with the same dynamic library.  Since this doesn't match the
14784       # behavior of shared libraries on other platforms, we can't use
14785       # them.
14786       ld_shlibs=no
14787       ;;
14788
14789     beos*)
14790       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791         allow_undefined_flag=unsupported
14792         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14793         # support --undefined.  This deserves some investigation.  FIXME
14794         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795       else
14796         ld_shlibs=no
14797       fi
14798       ;;
14799
14800     cygwin* | mingw* | pw32*)
14801       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14802       # as there is no search path for DLLs.
14803       hardcode_libdir_flag_spec='-L$libdir'
14804       allow_undefined_flag=unsupported
14805       always_export_symbols=no
14806       enable_shared_with_static_runtimes=yes
14807       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14808
14809       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14810         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14811         # If the export-symbols file already is a .def file (1st line
14812         # is EXPORTS), use it as is; otherwise, prepend...
14813         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14814           cp $export_symbols $output_objdir/$soname.def;
14815         else
14816           echo EXPORTS > $output_objdir/$soname.def;
14817           cat $export_symbols >> $output_objdir/$soname.def;
14818         fi~
14819         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14820       else
14821         ld_shlibs=no
14822       fi
14823       ;;
14824
14825     interix3*)
14826       hardcode_direct=no
14827       hardcode_shlibpath_var=no
14828       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14829       export_dynamic_flag_spec='${wl}-E'
14830       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14831       # Instead, shared libraries are loaded at an image base (0x10000000 by
14832       # default) and relocated if they conflict, which is a slow very memory
14833       # consuming and fragmenting process.  To avoid this, we pick a random,
14834       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14835       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14836       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14837       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'
14838       ;;
14839
14840     linux*)
14841       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14842         tmp_addflag=
14843         case $cc_basename,$host_cpu in
14844         pgcc*)                          # Portland Group C compiler
14845           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'
14846           tmp_addflag=' $pic_flag'
14847           ;;
14848         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14849           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'
14850           tmp_addflag=' $pic_flag -Mnomain' ;;
14851         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14852           tmp_addflag=' -i_dynamic' ;;
14853         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14854           tmp_addflag=' -i_dynamic -nofor_main' ;;
14855         ifc* | ifort*)                  # Intel Fortran compiler
14856           tmp_addflag=' -nofor_main' ;;
14857         esac
14858         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859
14860         if test $supports_anon_versioning = yes; then
14861           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14862   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863   $echo "local: *; };" >> $output_objdir/$libname.ver~
14864           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14865         fi
14866       else
14867         ld_shlibs=no
14868       fi
14869       ;;
14870
14871     netbsd*)
14872       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14874         wlarc=
14875       else
14876         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14878       fi
14879       ;;
14880
14881     solaris*)
14882       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14883         ld_shlibs=no
14884         cat <<EOF 1>&2
14885
14886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887 *** create shared libraries on Solaris systems.  Therefore, libtool
14888 *** is disabling shared libraries support.  We urge you to upgrade GNU
14889 *** binutils to release 2.9.1 or newer.  Another option is to modify
14890 *** your PATH or compiler configuration so that the native linker is
14891 *** used, and then restart.
14892
14893 EOF
14894       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14897       else
14898         ld_shlibs=no
14899       fi
14900       ;;
14901
14902     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903       case `$LD -v 2>&1` in
14904         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14905         ld_shlibs=no
14906         cat <<_LT_EOF 1>&2
14907
14908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14910 *** is disabling shared libraries support.  We urge you to upgrade GNU
14911 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14912 *** your PATH or compiler configuration so that the native linker is
14913 *** used, and then restart.
14914
14915 _LT_EOF
14916         ;;
14917         *)
14918           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14922           else
14923             ld_shlibs=no
14924           fi
14925         ;;
14926       esac
14927       ;;
14928
14929     sunos4*)
14930       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14931       wlarc=
14932       hardcode_direct=yes
14933       hardcode_shlibpath_var=no
14934       ;;
14935
14936     *)
14937       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14940       else
14941         ld_shlibs=no
14942       fi
14943       ;;
14944     esac
14945
14946     if test "$ld_shlibs" = no; then
14947       runpath_var=
14948       hardcode_libdir_flag_spec=
14949       export_dynamic_flag_spec=
14950       whole_archive_flag_spec=
14951     fi
14952   else
14953     # PORTME fill in a description of your system's linker (not GNU ld)
14954     case $host_os in
14955     aix3*)
14956       allow_undefined_flag=unsupported
14957       always_export_symbols=yes
14958       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'
14959       # Note: this linker hardcodes the directories in LIBPATH if there
14960       # are no directories specified by -L.
14961       hardcode_minus_L=yes
14962       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14963         # Neither direct hardcoding nor static linking is supported with a
14964         # broken collect2.
14965         hardcode_direct=unsupported
14966       fi
14967       ;;
14968
14969     aix4* | aix5*)
14970       if test "$host_cpu" = ia64; then
14971         # On IA64, the linker does run time linking by default, so we don't
14972         # have to do anything special.
14973         aix_use_runtimelinking=no
14974         exp_sym_flag='-Bexport'
14975         no_entry_flag=""
14976       else
14977         # If we're using GNU nm, then we don't want the "-C" option.
14978         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14979         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980           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'
14981         else
14982           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'
14983         fi
14984         aix_use_runtimelinking=no
14985
14986         # Test if we are trying to use run time linking or normal
14987         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988         # need to do runtime linking.
14989         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14990           for ld_flag in $LDFLAGS; do
14991           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992             aix_use_runtimelinking=yes
14993             break
14994           fi
14995           done
14996           ;;
14997         esac
14998
14999         exp_sym_flag='-bexport'
15000         no_entry_flag='-bnoentry'
15001       fi
15002
15003       # When large executables or shared objects are built, AIX ld can
15004       # have problems creating the table of contents.  If linking a library
15005       # or program results in "error TOC overflow" add -mminimal-toc to
15006       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15007       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15008
15009       archive_cmds=''
15010       hardcode_direct=yes
15011       hardcode_libdir_separator=':'
15012       link_all_deplibs=yes
15013
15014       if test "$GCC" = yes; then
15015         case $host_os in aix4.[012]|aix4.[012].*)
15016         # We only want to do this on AIX 4.2 and lower, the check
15017         # below for broken collect2 doesn't work under 4.3+
15018           collect2name=`${CC} -print-prog-name=collect2`
15019           if test -f "$collect2name" && \
15020            strings "$collect2name" | grep resolve_lib_name >/dev/null
15021           then
15022           # We have reworked collect2
15023           hardcode_direct=yes
15024           else
15025           # We have old collect2
15026           hardcode_direct=unsupported
15027           # It fails to find uninstalled libraries when the uninstalled
15028           # path is not listed in the libpath.  Setting hardcode_minus_L
15029           # to unsupported forces relinking
15030           hardcode_minus_L=yes
15031           hardcode_libdir_flag_spec='-L$libdir'
15032           hardcode_libdir_separator=
15033           fi
15034           ;;
15035         esac
15036         shared_flag='-shared'
15037         if test "$aix_use_runtimelinking" = yes; then
15038           shared_flag="$shared_flag "'${wl}-G'
15039         fi
15040       else
15041         # not using gcc
15042         if test "$host_cpu" = ia64; then
15043         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044         # chokes on -Wl,-G. The following line is correct:
15045           shared_flag='-G'
15046         else
15047           if test "$aix_use_runtimelinking" = yes; then
15048             shared_flag='${wl}-G'
15049           else
15050             shared_flag='${wl}-bM:SRE'
15051           fi
15052         fi
15053       fi
15054
15055       # It seems that -bexpall does not export symbols beginning with
15056       # underscore (_), so it is better to generate a list of symbols to export.
15057       always_export_symbols=yes
15058       if test "$aix_use_runtimelinking" = yes; then
15059         # Warning - without using the other runtime loading flags (-brtl),
15060         # -berok will link without error, but may produce a broken library.
15061         allow_undefined_flag='-berok'
15062        # Determine the default libpath from the value encoded in an empty executable.
15063        cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h.  */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h.  */
15069
15070 int
15071 main ()
15072 {
15073
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_link") 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093   { (case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_try") 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; } &&
15102          { ac_try='test -s conftest$ac_exeext'
15103   { (case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_try") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112
15113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15114 }'`
15115 # Check for a 64-bit object if we didn't find anything.
15116 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; }
15117 }'`; fi
15118 else
15119   echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15121
15122
15123 fi
15124
15125 rm -f core conftest.err conftest.$ac_objext \
15126       conftest$ac_exeext conftest.$ac_ext
15127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15128
15129        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15130         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"
15131        else
15132         if test "$host_cpu" = ia64; then
15133           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15134           allow_undefined_flag="-z nodefs"
15135           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"
15136         else
15137          # Determine the default libpath from the value encoded in an empty executable.
15138          cat >conftest.$ac_ext <<_ACEOF
15139 /* confdefs.h.  */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h.  */
15144
15145 int
15146 main ()
15147 {
15148
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (ac_try="$ac_link"
15155 case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_link") 2>conftest.er1
15161   ac_status=$?
15162   grep -v '^ *+' conftest.er1 >conftest.err
15163   rm -f conftest.er1
15164   cat conftest.err >&5
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); } &&
15167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168   { (case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_try") 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; } &&
15177          { ac_try='test -s conftest$ac_exeext'
15178   { (case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_try") 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187
15188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15189 }'`
15190 # Check for a 64-bit object if we didn't find anything.
15191 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; }
15192 }'`; fi
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197
15198 fi
15199
15200 rm -f core conftest.err conftest.$ac_objext \
15201       conftest$ac_exeext conftest.$ac_ext
15202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15203
15204          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15205           # Warning - without using the other run time loading flags,
15206           # -berok will link without error, but may produce a broken library.
15207           no_undefined_flag=' ${wl}-bernotok'
15208           allow_undefined_flag=' ${wl}-berok'
15209           # Exported symbols can be pulled into shared objects from archives
15210           whole_archive_flag_spec='$convenience'
15211           archive_cmds_need_lc=yes
15212           # This is similar to how AIX traditionally builds its shared libraries.
15213           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'
15214         fi
15215       fi
15216       ;;
15217
15218     amigaos*)
15219       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)'
15220       hardcode_libdir_flag_spec='-L$libdir'
15221       hardcode_minus_L=yes
15222       # see comment about different semantics on the GNU ld section
15223       ld_shlibs=no
15224       ;;
15225
15226     bsdi[45]*)
15227       export_dynamic_flag_spec=-rdynamic
15228       ;;
15229
15230     cygwin* | mingw* | pw32*)
15231       # When not using gcc, we currently assume that we are using
15232       # Microsoft Visual C++.
15233       # hardcode_libdir_flag_spec is actually meaningless, as there is
15234       # no search path for DLLs.
15235       hardcode_libdir_flag_spec=' '
15236       allow_undefined_flag=unsupported
15237       # Tell ltmain to make .lib files, not .a files.
15238       libext=lib
15239       # Tell ltmain to make .dll files, not .so files.
15240       shrext_cmds=".dll"
15241       # FIXME: Setting linknames here is a bad hack.
15242       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15243       # The linker will automatically build a .lib file if we build a DLL.
15244       old_archive_From_new_cmds='true'
15245       # FIXME: Should let the user specify the lib program.
15246       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15247       fix_srcfile_path='`cygpath -w "$srcfile"`'
15248       enable_shared_with_static_runtimes=yes
15249       ;;
15250
15251     darwin* | rhapsody*)
15252       case $host_os in
15253         rhapsody* | darwin1.[012])
15254          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15255          ;;
15256        *) # Darwin 1.3 on
15257          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15258            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15259          else
15260            case ${MACOSX_DEPLOYMENT_TARGET} in
15261              10.[012])
15262                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15263                ;;
15264              10.*)
15265                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15266                ;;
15267            esac
15268          fi
15269          ;;
15270       esac
15271       archive_cmds_need_lc=no
15272       hardcode_direct=no
15273       hardcode_automatic=yes
15274       hardcode_shlibpath_var=unsupported
15275       whole_archive_flag_spec=''
15276       link_all_deplibs=yes
15277     if test "$GCC" = yes ; then
15278         output_verbose_link_cmd='echo'
15279         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15280       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15281       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15282       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}'
15283       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}'
15284     else
15285       case $cc_basename in
15286         xlc*)
15287          output_verbose_link_cmd='echo'
15288          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15289          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15290           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15291          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}'
15292           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}'
15293           ;;
15294        *)
15295          ld_shlibs=no
15296           ;;
15297       esac
15298     fi
15299       ;;
15300
15301     dgux*)
15302       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15303       hardcode_libdir_flag_spec='-L$libdir'
15304       hardcode_shlibpath_var=no
15305       ;;
15306
15307     freebsd1*)
15308       ld_shlibs=no
15309       ;;
15310
15311     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15312     # support.  Future versions do this automatically, but an explicit c++rt0.o
15313     # does not break anything, and helps significantly (at the cost of a little
15314     # extra space).
15315     freebsd2.2*)
15316       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15317       hardcode_libdir_flag_spec='-R$libdir'
15318       hardcode_direct=yes
15319       hardcode_shlibpath_var=no
15320       ;;
15321
15322     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15323     freebsd2*)
15324       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325       hardcode_direct=yes
15326       hardcode_minus_L=yes
15327       hardcode_shlibpath_var=no
15328       ;;
15329
15330     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15331     freebsd* | kfreebsd*-gnu | dragonfly*)
15332       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15333       hardcode_libdir_flag_spec='-R$libdir'
15334       hardcode_direct=yes
15335       hardcode_shlibpath_var=no
15336       ;;
15337
15338     hpux9*)
15339       if test "$GCC" = yes; then
15340         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'
15341       else
15342         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'
15343       fi
15344       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15345       hardcode_libdir_separator=:
15346       hardcode_direct=yes
15347
15348       # hardcode_minus_L: Not really in the search PATH,
15349       # but as the default location of the library.
15350       hardcode_minus_L=yes
15351       export_dynamic_flag_spec='${wl}-E'
15352       ;;
15353
15354     hpux10*)
15355       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15356         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15357       else
15358         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15359       fi
15360       if test "$with_gnu_ld" = no; then
15361         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15362         hardcode_libdir_separator=:
15363
15364         hardcode_direct=yes
15365         export_dynamic_flag_spec='${wl}-E'
15366
15367         # hardcode_minus_L: Not really in the search PATH,
15368         # but as the default location of the library.
15369         hardcode_minus_L=yes
15370       fi
15371       ;;
15372
15373     hpux11*)
15374       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15375         case $host_cpu in
15376         hppa*64*)
15377           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378           ;;
15379         ia64*)
15380           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15381           ;;
15382         *)
15383           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15384           ;;
15385         esac
15386       else
15387         case $host_cpu in
15388         hppa*64*)
15389           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390           ;;
15391         ia64*)
15392           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15393           ;;
15394         *)
15395           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15396           ;;
15397         esac
15398       fi
15399       if test "$with_gnu_ld" = no; then
15400         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15401         hardcode_libdir_separator=:
15402
15403         case $host_cpu in
15404         hppa*64*|ia64*)
15405           hardcode_libdir_flag_spec_ld='+b $libdir'
15406           hardcode_direct=no
15407           hardcode_shlibpath_var=no
15408           ;;
15409         *)
15410           hardcode_direct=yes
15411           export_dynamic_flag_spec='${wl}-E'
15412
15413           # hardcode_minus_L: Not really in the search PATH,
15414           # but as the default location of the library.
15415           hardcode_minus_L=yes
15416           ;;
15417         esac
15418       fi
15419       ;;
15420
15421     irix5* | irix6* | nonstopux*)
15422       if test "$GCC" = yes; then
15423         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'
15424       else
15425         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'
15426         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15427       fi
15428       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15429       hardcode_libdir_separator=:
15430       link_all_deplibs=yes
15431       ;;
15432
15433     netbsd*)
15434       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15435         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15436       else
15437         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15438       fi
15439       hardcode_libdir_flag_spec='-R$libdir'
15440       hardcode_direct=yes
15441       hardcode_shlibpath_var=no
15442       ;;
15443
15444     newsos6)
15445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446       hardcode_direct=yes
15447       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15448       hardcode_libdir_separator=:
15449       hardcode_shlibpath_var=no
15450       ;;
15451
15452     openbsd*)
15453       hardcode_direct=yes
15454       hardcode_shlibpath_var=no
15455       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15456         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15457         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15458         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15459         export_dynamic_flag_spec='${wl}-E'
15460       else
15461        case $host_os in
15462          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15463            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15464            hardcode_libdir_flag_spec='-R$libdir'
15465            ;;
15466          *)
15467            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15468            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15469            ;;
15470        esac
15471       fi
15472       ;;
15473
15474     os2*)
15475       hardcode_libdir_flag_spec='-L$libdir'
15476       hardcode_minus_L=yes
15477       allow_undefined_flag=unsupported
15478       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'
15479       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15480       ;;
15481
15482     osf3*)
15483       if test "$GCC" = yes; then
15484         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15485         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'
15486       else
15487         allow_undefined_flag=' -expect_unresolved \*'
15488         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'
15489       fi
15490       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491       hardcode_libdir_separator=:
15492       ;;
15493
15494     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15495       if test "$GCC" = yes; then
15496         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15497         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'
15498         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15499       else
15500         allow_undefined_flag=' -expect_unresolved \*'
15501         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'
15502         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15503         $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'
15504
15505         # Both c and cxx compiler support -rpath directly
15506         hardcode_libdir_flag_spec='-rpath $libdir'
15507       fi
15508       hardcode_libdir_separator=:
15509       ;;
15510
15511     solaris*)
15512       no_undefined_flag=' -z text'
15513       if test "$GCC" = yes; then
15514         wlarc='${wl}'
15515         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15518       else
15519         wlarc=''
15520         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15523       fi
15524       hardcode_libdir_flag_spec='-R$libdir'
15525       hardcode_shlibpath_var=no
15526       case $host_os in
15527       solaris2.[0-5] | solaris2.[0-5].*) ;;
15528       *)
15529         # The compiler driver will combine linker options so we
15530         # cannot just pass the convience library names through
15531         # without $wl, iff we do not link with $LD.
15532         # Luckily, gcc supports the same syntax we need for Sun Studio.
15533         # Supported since Solaris 2.6 (maybe 2.5.1?)
15534         case $wlarc in
15535         '')
15536           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15537         *)
15538           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' ;;
15539         esac ;;
15540       esac
15541       link_all_deplibs=yes
15542       ;;
15543
15544     sunos4*)
15545       if test "x$host_vendor" = xsequent; then
15546         # Use $CC to link under sequent, because it throws in some extra .o
15547         # files that make .init and .fini sections work.
15548         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15549       else
15550         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15551       fi
15552       hardcode_libdir_flag_spec='-L$libdir'
15553       hardcode_direct=yes
15554       hardcode_minus_L=yes
15555       hardcode_shlibpath_var=no
15556       ;;
15557
15558     sysv4)
15559       case $host_vendor in
15560         sni)
15561           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562           hardcode_direct=yes # is this really true???
15563         ;;
15564         siemens)
15565           ## LD is ld it makes a PLAMLIB
15566           ## CC just makes a GrossModule.
15567           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15568           reload_cmds='$CC -r -o $output$reload_objs'
15569           hardcode_direct=no
15570         ;;
15571         motorola)
15572           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15574         ;;
15575       esac
15576       runpath_var='LD_RUN_PATH'
15577       hardcode_shlibpath_var=no
15578       ;;
15579
15580     sysv4.3*)
15581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15582       hardcode_shlibpath_var=no
15583       export_dynamic_flag_spec='-Bexport'
15584       ;;
15585
15586     sysv4*MP*)
15587       if test -d /usr/nec; then
15588         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589         hardcode_shlibpath_var=no
15590         runpath_var=LD_RUN_PATH
15591         hardcode_runpath_var=yes
15592         ld_shlibs=yes
15593       fi
15594       ;;
15595
15596     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15597       no_undefined_flag='${wl}-z,text'
15598       archive_cmds_need_lc=no
15599       hardcode_shlibpath_var=no
15600       runpath_var='LD_RUN_PATH'
15601
15602       if test "$GCC" = yes; then
15603         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15605       else
15606         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15608       fi
15609       ;;
15610
15611     sysv5* | sco3.2v5* | sco5v6*)
15612       # Note: We can NOT use -z defs as we might desire, because we do not
15613       # link with -lc, and that would cause any symbols used from libc to
15614       # always be unresolved, which means just about no library would
15615       # ever link correctly.  If we're not using GNU ld we use -z text
15616       # though, which does catch some bad symbols but isn't as heavy-handed
15617       # as -z defs.
15618       no_undefined_flag='${wl}-z,text'
15619       allow_undefined_flag='${wl}-z,nodefs'
15620       archive_cmds_need_lc=no
15621       hardcode_shlibpath_var=no
15622       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15623       hardcode_libdir_separator=':'
15624       link_all_deplibs=yes
15625       export_dynamic_flag_spec='${wl}-Bexport'
15626       runpath_var='LD_RUN_PATH'
15627
15628       if test "$GCC" = yes; then
15629         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15631       else
15632         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634       fi
15635       ;;
15636
15637     uts4*)
15638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639       hardcode_libdir_flag_spec='-L$libdir'
15640       hardcode_shlibpath_var=no
15641       ;;
15642
15643     *)
15644       ld_shlibs=no
15645       ;;
15646     esac
15647   fi
15648
15649 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15650 echo "${ECHO_T}$ld_shlibs" >&6; }
15651 test "$ld_shlibs" = no && can_build_shared=no
15652
15653 #
15654 # Do we need to explicitly link libc?
15655 #
15656 case "x$archive_cmds_need_lc" in
15657 x|xyes)
15658   # Assume -lc should be added
15659   archive_cmds_need_lc=yes
15660
15661   if test "$enable_shared" = yes && test "$GCC" = yes; then
15662     case $archive_cmds in
15663     *'~'*)
15664       # FIXME: we may have to deal with multi-command sequences.
15665       ;;
15666     '$CC '*)
15667       # Test whether the compiler implicitly links with -lc since on some
15668       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15669       # to ld, don't add -lc before -lgcc.
15670       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15672       $rm conftest*
15673       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15674
15675       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15676   (eval $ac_compile) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } 2>conftest.err; then
15680         soname=conftest
15681         lib=conftest
15682         libobjs=conftest.$ac_objext
15683         deplibs=
15684         wl=$lt_prog_compiler_wl
15685         pic_flag=$lt_prog_compiler_pic
15686         compiler_flags=-v
15687         linker_flags=-v
15688         verstring=
15689         output_objdir=.
15690         libname=conftest
15691         lt_save_allow_undefined_flag=$allow_undefined_flag
15692         allow_undefined_flag=
15693         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15694   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }
15698         then
15699           archive_cmds_need_lc=no
15700         else
15701           archive_cmds_need_lc=yes
15702         fi
15703         allow_undefined_flag=$lt_save_allow_undefined_flag
15704       else
15705         cat conftest.err 1>&5
15706       fi
15707       $rm conftest*
15708       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15709 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15710       ;;
15711     esac
15712   fi
15713   ;;
15714 esac
15715
15716 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15718 library_names_spec=
15719 libname_spec='lib$name'
15720 soname_spec=
15721 shrext_cmds=".so"
15722 postinstall_cmds=
15723 postuninstall_cmds=
15724 finish_cmds=
15725 finish_eval=
15726 shlibpath_var=
15727 shlibpath_overrides_runpath=unknown
15728 version_type=none
15729 dynamic_linker="$host_os ld.so"
15730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15731 if test "$GCC" = yes; then
15732   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15733   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15734     # if the path contains ";" then we assume it to be the separator
15735     # otherwise default to the standard path separator (i.e. ":") - it is
15736     # assumed that no part of a normal pathname contains ";" but that should
15737     # okay in the real world where ";" in dirpaths is itself problematic.
15738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15739   else
15740     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15741   fi
15742 else
15743   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15744 fi
15745 need_lib_prefix=unknown
15746 hardcode_into_libs=no
15747
15748 # when you set need_version to no, make sure it does not cause -set_version
15749 # flags to be left without arguments
15750 need_version=unknown
15751
15752 case $host_os in
15753 aix3*)
15754   version_type=linux
15755   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15756   shlibpath_var=LIBPATH
15757
15758   # AIX 3 has no versioning support, so we append a major version to the name.
15759   soname_spec='${libname}${release}${shared_ext}$major'
15760   ;;
15761
15762 aix4* | aix5*)
15763   version_type=linux
15764   need_lib_prefix=no
15765   need_version=no
15766   hardcode_into_libs=yes
15767   if test "$host_cpu" = ia64; then
15768     # AIX 5 supports IA64
15769     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15770     shlibpath_var=LD_LIBRARY_PATH
15771   else
15772     # With GCC up to 2.95.x, collect2 would create an import file
15773     # for dependence libraries.  The import file would start with
15774     # the line `#! .'.  This would cause the generated library to
15775     # depend on `.', always an invalid library.  This was fixed in
15776     # development snapshots of GCC prior to 3.0.
15777     case $host_os in
15778       aix4 | aix4.[01] | aix4.[01].*)
15779       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15780            echo ' yes '
15781            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15782         :
15783       else
15784         can_build_shared=no
15785       fi
15786       ;;
15787     esac
15788     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15789     # soname into executable. Probably we can add versioning support to
15790     # collect2, so additional links can be useful in future.
15791     if test "$aix_use_runtimelinking" = yes; then
15792       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15793       # instead of lib<name>.a to let people know that these are not
15794       # typical AIX shared libraries.
15795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15796     else
15797       # We preserve .a as extension for shared libraries through AIX4.2
15798       # and later when we are not doing run time linking.
15799       library_names_spec='${libname}${release}.a $libname.a'
15800       soname_spec='${libname}${release}${shared_ext}$major'
15801     fi
15802     shlibpath_var=LIBPATH
15803   fi
15804   ;;
15805
15806 amigaos*)
15807   library_names_spec='$libname.ixlibrary $libname.a'
15808   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15809   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'
15810   ;;
15811
15812 beos*)
15813   library_names_spec='${libname}${shared_ext}'
15814   dynamic_linker="$host_os ld.so"
15815   shlibpath_var=LIBRARY_PATH
15816   ;;
15817
15818 bsdi[45]*)
15819   version_type=linux
15820   need_version=no
15821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822   soname_spec='${libname}${release}${shared_ext}$major'
15823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15824   shlibpath_var=LD_LIBRARY_PATH
15825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15827   # the default ld.so.conf also contains /usr/contrib/lib and
15828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15829   # libtool to hard-code these into programs
15830   ;;
15831
15832 cygwin* | mingw* | pw32*)
15833   version_type=windows
15834   shrext_cmds=".dll"
15835   need_version=no
15836   need_lib_prefix=no
15837
15838   case $GCC,$host_os in
15839   yes,cygwin* | yes,mingw* | yes,pw32*)
15840     library_names_spec='$libname.dll.a'
15841     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15842     postinstall_cmds='base_file=`basename \${file}`~
15843       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15844       dldir=$destdir/`dirname \$dlpath`~
15845       test -d \$dldir || mkdir -p \$dldir~
15846       $install_prog $dir/$dlname \$dldir/$dlname~
15847       chmod a+x \$dldir/$dlname'
15848     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15849       dlpath=$dir/\$dldll~
15850        $rm \$dlpath'
15851     shlibpath_overrides_runpath=yes
15852
15853     case $host_os in
15854     cygwin*)
15855       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15856       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15858       ;;
15859     mingw*)
15860       # MinGW DLLs use traditional 'lib' prefix
15861       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15862       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15863       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15864         # It is most probably a Windows format PATH printed by
15865         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15866         # path with ; separators, and with drive letters. We can handle the
15867         # drive letters (cygwin fileutils understands them), so leave them,
15868         # especially as we might pass files found there to a mingw objdump,
15869         # which wouldn't understand a cygwinified path. Ahh.
15870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15871       else
15872         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15873       fi
15874       ;;
15875     pw32*)
15876       # pw32 DLLs use 'pw' prefix rather than 'lib'
15877       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15878       ;;
15879     esac
15880     ;;
15881
15882   *)
15883     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15884     ;;
15885   esac
15886   dynamic_linker='Win32 ld.exe'
15887   # FIXME: first we should search . and the directory the executable is in
15888   shlibpath_var=PATH
15889   ;;
15890
15891 darwin* | rhapsody*)
15892   dynamic_linker="$host_os dyld"
15893   version_type=darwin
15894   need_lib_prefix=no
15895   need_version=no
15896   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15897   soname_spec='${libname}${release}${major}$shared_ext'
15898   shlibpath_overrides_runpath=yes
15899   shlibpath_var=DYLD_LIBRARY_PATH
15900   shrext_cmds='.dylib'
15901   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15902   if test "$GCC" = yes; then
15903     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"`
15904   else
15905     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15906   fi
15907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15908   ;;
15909
15910 dgux*)
15911   version_type=linux
15912   need_lib_prefix=no
15913   need_version=no
15914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15915   soname_spec='${libname}${release}${shared_ext}$major'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   ;;
15918
15919 freebsd1*)
15920   dynamic_linker=no
15921   ;;
15922
15923 kfreebsd*-gnu)
15924   version_type=linux
15925   need_lib_prefix=no
15926   need_version=no
15927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15928   soname_spec='${libname}${release}${shared_ext}$major'
15929   shlibpath_var=LD_LIBRARY_PATH
15930   shlibpath_overrides_runpath=no
15931   hardcode_into_libs=yes
15932   dynamic_linker='GNU ld.so'
15933   ;;
15934
15935 freebsd* | dragonfly*)
15936   # DragonFly does not have aout.  When/if they implement a new
15937   # versioning mechanism, adjust this.
15938   if test -x /usr/bin/objformat; then
15939     objformat=`/usr/bin/objformat`
15940   else
15941     case $host_os in
15942     freebsd[123]*) objformat=aout ;;
15943     *) objformat=elf ;;
15944     esac
15945   fi
15946   version_type=freebsd-$objformat
15947   case $version_type in
15948     freebsd-elf*)
15949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15950       need_version=no
15951       need_lib_prefix=no
15952       ;;
15953     freebsd-*)
15954       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15955       need_version=yes
15956       ;;
15957   esac
15958   shlibpath_var=LD_LIBRARY_PATH
15959   case $host_os in
15960   freebsd2*)
15961     shlibpath_overrides_runpath=yes
15962     ;;
15963   freebsd3.[01]* | freebsdelf3.[01]*)
15964     shlibpath_overrides_runpath=yes
15965     hardcode_into_libs=yes
15966     ;;
15967   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15968   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15969     shlibpath_overrides_runpath=no
15970     hardcode_into_libs=yes
15971     ;;
15972   freebsd*) # from 4.6 on
15973     shlibpath_overrides_runpath=yes
15974     hardcode_into_libs=yes
15975     ;;
15976   esac
15977   ;;
15978
15979 gnu*)
15980   version_type=linux
15981   need_lib_prefix=no
15982   need_version=no
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   shlibpath_var=LD_LIBRARY_PATH
15986   hardcode_into_libs=yes
15987   ;;
15988
15989 hpux9* | hpux10* | hpux11*)
15990   # Give a soname corresponding to the major version so that dld.sl refuses to
15991   # link against other versions.
15992   version_type=sunos
15993   need_lib_prefix=no
15994   need_version=no
15995   case $host_cpu in
15996   ia64*)
15997     shrext_cmds='.so'
15998     hardcode_into_libs=yes
15999     dynamic_linker="$host_os dld.so"
16000     shlibpath_var=LD_LIBRARY_PATH
16001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003     soname_spec='${libname}${release}${shared_ext}$major'
16004     if test "X$HPUX_IA64_MODE" = X32; then
16005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16006     else
16007       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16008     fi
16009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16010     ;;
16011    hppa*64*)
16012      shrext_cmds='.sl'
16013      hardcode_into_libs=yes
16014      dynamic_linker="$host_os dld.sl"
16015      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018      soname_spec='${libname}${release}${shared_ext}$major'
16019      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021      ;;
16022    *)
16023     shrext_cmds='.sl'
16024     dynamic_linker="$host_os dld.sl"
16025     shlibpath_var=SHLIB_PATH
16026     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028     soname_spec='${libname}${release}${shared_ext}$major'
16029     ;;
16030   esac
16031   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16032   postinstall_cmds='chmod 555 $lib'
16033   ;;
16034
16035 interix3*)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   shlibpath_overrides_runpath=no
16044   hardcode_into_libs=yes
16045   ;;
16046
16047 irix5* | irix6* | nonstopux*)
16048   case $host_os in
16049     nonstopux*) version_type=nonstopux ;;
16050     *)
16051         if test "$lt_cv_prog_gnu_ld" = yes; then
16052                 version_type=linux
16053         else
16054                 version_type=irix
16055         fi ;;
16056   esac
16057   need_lib_prefix=no
16058   need_version=no
16059   soname_spec='${libname}${release}${shared_ext}$major'
16060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16061   case $host_os in
16062   irix5* | nonstopux*)
16063     libsuff= shlibsuff=
16064     ;;
16065   *)
16066     case $LD in # libtool.m4 will add one of these switches to LD
16067     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068       libsuff= shlibsuff= libmagic=32-bit;;
16069     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070       libsuff=32 shlibsuff=N32 libmagic=N32;;
16071     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16073     *) libsuff= shlibsuff= libmagic=never-match;;
16074     esac
16075     ;;
16076   esac
16077   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078   shlibpath_overrides_runpath=no
16079   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16080   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16081   hardcode_into_libs=yes
16082   ;;
16083
16084 # No shared lib support for Linux oldld, aout, or coff.
16085 linux*oldld* | linux*aout* | linux*coff*)
16086   dynamic_linker=no
16087   ;;
16088
16089 # This must be Linux ELF.
16090 linux*)
16091   version_type=linux
16092   need_lib_prefix=no
16093   need_version=no
16094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095   soname_spec='${libname}${release}${shared_ext}$major'
16096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16097   shlibpath_var=LD_LIBRARY_PATH
16098   shlibpath_overrides_runpath=no
16099   # This implies no fast_install, which is unacceptable.
16100   # Some rework will be needed to allow for fast_install
16101   # before this can be enabled.
16102   hardcode_into_libs=yes
16103
16104   # Append ld.so.conf contents to the search path
16105   if test -f /etc/ld.so.conf; then
16106     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' ' '`
16107     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16108   fi
16109
16110   # We used to test for /lib/ld.so.1 and disable shared libraries on
16111   # powerpc, because MkLinux only supported shared libraries with the
16112   # GNU dynamic linker.  Since this was broken with cross compilers,
16113   # most powerpc-linux boxes support dynamic linking these days and
16114   # people can always --disable-shared, the test was removed, and we
16115   # assume the GNU/Linux dynamic linker is in use.
16116   dynamic_linker='GNU/Linux ld.so'
16117   ;;
16118
16119 knetbsd*-gnu)
16120   version_type=linux
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124   soname_spec='${libname}${release}${shared_ext}$major'
16125   shlibpath_var=LD_LIBRARY_PATH
16126   shlibpath_overrides_runpath=no
16127   hardcode_into_libs=yes
16128   dynamic_linker='GNU ld.so'
16129   ;;
16130
16131 netbsd*)
16132   version_type=sunos
16133   need_lib_prefix=no
16134   need_version=no
16135   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16137     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16138     dynamic_linker='NetBSD (a.out) ld.so'
16139   else
16140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16141     soname_spec='${libname}${release}${shared_ext}$major'
16142     dynamic_linker='NetBSD ld.elf_so'
16143   fi
16144   shlibpath_var=LD_LIBRARY_PATH
16145   shlibpath_overrides_runpath=yes
16146   hardcode_into_libs=yes
16147   ;;
16148
16149 newsos6)
16150   version_type=linux
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152   shlibpath_var=LD_LIBRARY_PATH
16153   shlibpath_overrides_runpath=yes
16154   ;;
16155
16156 nto-qnx*)
16157   version_type=linux
16158   need_lib_prefix=no
16159   need_version=no
16160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161   soname_spec='${libname}${release}${shared_ext}$major'
16162   shlibpath_var=LD_LIBRARY_PATH
16163   shlibpath_overrides_runpath=yes
16164   ;;
16165
16166 openbsd*)
16167   version_type=sunos
16168   sys_lib_dlsearch_path_spec="/usr/lib"
16169   need_lib_prefix=no
16170   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16171   case $host_os in
16172     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16173     *)                         need_version=no  ;;
16174   esac
16175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16176   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16177   shlibpath_var=LD_LIBRARY_PATH
16178   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16179     case $host_os in
16180       openbsd2.[89] | openbsd2.[89].*)
16181         shlibpath_overrides_runpath=no
16182         ;;
16183       *)
16184         shlibpath_overrides_runpath=yes
16185         ;;
16186       esac
16187   else
16188     shlibpath_overrides_runpath=yes
16189   fi
16190   ;;
16191
16192 os2*)
16193   libname_spec='$name'
16194   shrext_cmds=".dll"
16195   need_lib_prefix=no
16196   library_names_spec='$libname${shared_ext} $libname.a'
16197   dynamic_linker='OS/2 ld.exe'
16198   shlibpath_var=LIBPATH
16199   ;;
16200
16201 osf3* | osf4* | osf5*)
16202   version_type=osf
16203   need_lib_prefix=no
16204   need_version=no
16205   soname_spec='${libname}${release}${shared_ext}$major'
16206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207   shlibpath_var=LD_LIBRARY_PATH
16208   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16209   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16210   ;;
16211
16212 solaris*)
16213   version_type=linux
16214   need_lib_prefix=no
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   shlibpath_overrides_runpath=yes
16220   hardcode_into_libs=yes
16221   # ldd complains unless libraries are executable
16222   postinstall_cmds='chmod +x $lib'
16223   ;;
16224
16225 sunos4*)
16226   version_type=sunos
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16228   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   shlibpath_overrides_runpath=yes
16231   if test "$with_gnu_ld" = yes; then
16232     need_lib_prefix=no
16233   fi
16234   need_version=yes
16235   ;;
16236
16237 sysv4 | sysv4.3*)
16238   version_type=linux
16239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240   soname_spec='${libname}${release}${shared_ext}$major'
16241   shlibpath_var=LD_LIBRARY_PATH
16242   case $host_vendor in
16243     sni)
16244       shlibpath_overrides_runpath=no
16245       need_lib_prefix=no
16246       export_dynamic_flag_spec='${wl}-Blargedynsym'
16247       runpath_var=LD_RUN_PATH
16248       ;;
16249     siemens)
16250       need_lib_prefix=no
16251       ;;
16252     motorola)
16253       need_lib_prefix=no
16254       need_version=no
16255       shlibpath_overrides_runpath=no
16256       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16257       ;;
16258   esac
16259   ;;
16260
16261 sysv4*MP*)
16262   if test -d /usr/nec ;then
16263     version_type=linux
16264     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16265     soname_spec='$libname${shared_ext}.$major'
16266     shlibpath_var=LD_LIBRARY_PATH
16267   fi
16268   ;;
16269
16270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16271   version_type=freebsd-elf
16272   need_lib_prefix=no
16273   need_version=no
16274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16275   soname_spec='${libname}${release}${shared_ext}$major'
16276   shlibpath_var=LD_LIBRARY_PATH
16277   hardcode_into_libs=yes
16278   if test "$with_gnu_ld" = yes; then
16279     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16280     shlibpath_overrides_runpath=no
16281   else
16282     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16283     shlibpath_overrides_runpath=yes
16284     case $host_os in
16285       sco3.2v5*)
16286         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16287         ;;
16288     esac
16289   fi
16290   sys_lib_dlsearch_path_spec='/usr/lib'
16291   ;;
16292
16293 uts4*)
16294   version_type=linux
16295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296   soname_spec='${libname}${release}${shared_ext}$major'
16297   shlibpath_var=LD_LIBRARY_PATH
16298   ;;
16299
16300 *)
16301   dynamic_linker=no
16302   ;;
16303 esac
16304 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16305 echo "${ECHO_T}$dynamic_linker" >&6; }
16306 test "$dynamic_linker" = no && can_build_shared=no
16307
16308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16309 if test "$GCC" = yes; then
16310   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16311 fi
16312
16313 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16315 hardcode_action=
16316 if test -n "$hardcode_libdir_flag_spec" || \
16317    test -n "$runpath_var" || \
16318    test "X$hardcode_automatic" = "Xyes" ; then
16319
16320   # We can hardcode non-existant directories.
16321   if test "$hardcode_direct" != no &&
16322      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16323      # have to relink, otherwise we might link with an installed library
16324      # when we should be linking with a yet-to-be-installed one
16325      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16326      test "$hardcode_minus_L" != no; then
16327     # Linking always hardcodes the temporary library directory.
16328     hardcode_action=relink
16329   else
16330     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16331     hardcode_action=immediate
16332   fi
16333 else
16334   # We cannot hardcode anything, or else we can only hardcode existing
16335   # directories.
16336   hardcode_action=unsupported
16337 fi
16338 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16339 echo "${ECHO_T}$hardcode_action" >&6; }
16340
16341 if test "$hardcode_action" = relink; then
16342   # Fast installation is not supported
16343   enable_fast_install=no
16344 elif test "$shlibpath_overrides_runpath" = yes ||
16345      test "$enable_shared" = no; then
16346   # Fast installation is not necessary
16347   enable_fast_install=needless
16348 fi
16349
16350 striplib=
16351 old_striplib=
16352 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16355   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16356   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16357   { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16359 else
16360 # FIXME - insert some real tests, host_os isn't really good enough
16361   case $host_os in
16362    darwin*)
16363        if test -n "$STRIP" ; then
16364          striplib="$STRIP -x"
16365          { echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6; }
16367        else
16368   { echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6; }
16370 fi
16371        ;;
16372    *)
16373   { echo "$as_me:$LINENO: result: no" >&5
16374 echo "${ECHO_T}no" >&6; }
16375     ;;
16376   esac
16377 fi
16378
16379 if test "x$enable_dlopen" != xyes; then
16380   enable_dlopen=unknown
16381   enable_dlopen_self=unknown
16382   enable_dlopen_self_static=unknown
16383 else
16384   lt_cv_dlopen=no
16385   lt_cv_dlopen_libs=
16386
16387   case $host_os in
16388   beos*)
16389     lt_cv_dlopen="load_add_on"
16390     lt_cv_dlopen_libs=
16391     lt_cv_dlopen_self=yes
16392     ;;
16393
16394   mingw* | pw32*)
16395     lt_cv_dlopen="LoadLibrary"
16396     lt_cv_dlopen_libs=
16397    ;;
16398
16399   cygwin*)
16400     lt_cv_dlopen="dlopen"
16401     lt_cv_dlopen_libs=
16402    ;;
16403
16404   darwin*)
16405   # if libdl is installed we need to link against it
16406     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   ac_check_lib_save_LIBS=$LIBS
16412 LIBS="-ldl  $LIBS"
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419
16420 /* Override any GCC internal prototype to avoid an error.
16421    Use char because int might match the return type of a GCC
16422    builtin and then its argument prototype would still apply.  */
16423 #ifdef __cplusplus
16424 extern "C"
16425 #endif
16426 char dlopen ();
16427 int
16428 main ()
16429 {
16430 return dlopen ();
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439   *) ac_try_echo=$ac_try;;
16440 esac
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442   (eval "$ac_link") 2>conftest.er1
16443   ac_status=$?
16444   grep -v '^ *+' conftest.er1 >conftest.err
16445   rm -f conftest.er1
16446   cat conftest.err >&5
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } &&
16449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450   { (case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_try") 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; } &&
16459          { ac_try='test -s conftest$ac_exeext'
16460   { (case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465   (eval "$ac_try") 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); }; }; then
16469   ac_cv_lib_dl_dlopen=yes
16470 else
16471   echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474         ac_cv_lib_dl_dlopen=no
16475 fi
16476
16477 rm -f core conftest.err conftest.$ac_objext \
16478       conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16480 fi
16481 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16482 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16483 if test $ac_cv_lib_dl_dlopen = yes; then
16484   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16485 else
16486
16487     lt_cv_dlopen="dyld"
16488     lt_cv_dlopen_libs=
16489     lt_cv_dlopen_self=yes
16490
16491 fi
16492
16493    ;;
16494
16495   *)
16496     { echo "$as_me:$LINENO: checking for shl_load" >&5
16497 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16498 if test "${ac_cv_func_shl_load+set}" = set; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501   cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h.  */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h.  */
16507 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16509 #define shl_load innocuous_shl_load
16510
16511 /* System header to define __stub macros and hopefully few prototypes,
16512     which can conflict with char shl_load (); below.
16513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16514     <limits.h> exists even on freestanding compilers.  */
16515
16516 #ifdef __STDC__
16517 # include <limits.h>
16518 #else
16519 # include <assert.h>
16520 #endif
16521
16522 #undef shl_load
16523
16524 /* Override any GCC internal prototype to avoid an error.
16525    Use char because int might match the return type of a GCC
16526    builtin and then its argument prototype would still apply.  */
16527 #ifdef __cplusplus
16528 extern "C"
16529 #endif
16530 char shl_load ();
16531 /* The GNU C library defines this for functions which it implements
16532     to always fail with ENOSYS.  Some functions are actually named
16533     something starting with __ and the normal name is an alias.  */
16534 #if defined __stub_shl_load || defined __stub___shl_load
16535 choke me
16536 #endif
16537
16538 int
16539 main ()
16540 {
16541 return shl_load ();
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (ac_try="$ac_link"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_link") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; } &&
16570          { ac_try='test -s conftest$ac_exeext'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   ac_cv_func_shl_load=yes
16581 else
16582   echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585         ac_cv_func_shl_load=no
16586 fi
16587
16588 rm -f core conftest.err conftest.$ac_objext \
16589       conftest$ac_exeext conftest.$ac_ext
16590 fi
16591 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16592 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16593 if test $ac_cv_func_shl_load = yes; then
16594   lt_cv_dlopen="shl_load"
16595 else
16596   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16597 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16599   echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601   ac_check_lib_save_LIBS=$LIBS
16602 LIBS="-ldld  $LIBS"
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609
16610 /* Override any GCC internal prototype to avoid an error.
16611    Use char because int might match the return type of a GCC
16612    builtin and then its argument prototype would still apply.  */
16613 #ifdef __cplusplus
16614 extern "C"
16615 #endif
16616 char shl_load ();
16617 int
16618 main ()
16619 {
16620 return shl_load ();
16621   ;
16622   return 0;
16623 }
16624 _ACEOF
16625 rm -f conftest.$ac_objext conftest$ac_exeext
16626 if { (ac_try="$ac_link"
16627 case "(($ac_try" in
16628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629   *) ac_try_echo=$ac_try;;
16630 esac
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632   (eval "$ac_link") 2>conftest.er1
16633   ac_status=$?
16634   grep -v '^ *+' conftest.er1 >conftest.err
16635   rm -f conftest.er1
16636   cat conftest.err >&5
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); } &&
16639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16640   { (case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_try") 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; } &&
16649          { ac_try='test -s conftest$ac_exeext'
16650   { (case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_try") 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); }; }; then
16659   ac_cv_lib_dld_shl_load=yes
16660 else
16661   echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664         ac_cv_lib_dld_shl_load=no
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext \
16668       conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16670 fi
16671 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16673 if test $ac_cv_lib_dld_shl_load = yes; then
16674   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16675 else
16676   { echo "$as_me:$LINENO: checking for dlopen" >&5
16677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16678 if test "${ac_cv_func_dlopen+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16689 #define dlopen innocuous_dlopen
16690
16691 /* System header to define __stub macros and hopefully few prototypes,
16692     which can conflict with char dlopen (); below.
16693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694     <limits.h> exists even on freestanding compilers.  */
16695
16696 #ifdef __STDC__
16697 # include <limits.h>
16698 #else
16699 # include <assert.h>
16700 #endif
16701
16702 #undef dlopen
16703
16704 /* Override any GCC internal prototype to avoid an error.
16705    Use char because int might match the return type of a GCC
16706    builtin and then its argument prototype would still apply.  */
16707 #ifdef __cplusplus
16708 extern "C"
16709 #endif
16710 char dlopen ();
16711 /* The GNU C library defines this for functions which it implements
16712     to always fail with ENOSYS.  Some functions are actually named
16713     something starting with __ and the normal name is an alias.  */
16714 #if defined __stub_dlopen || defined __stub___dlopen
16715 choke me
16716 #endif
16717
16718 int
16719 main ()
16720 {
16721 return dlopen ();
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (ac_try="$ac_link"
16728 case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_link") 2>conftest.er1
16734   ac_status=$?
16735   grep -v '^ *+' conftest.er1 >conftest.err
16736   rm -f conftest.er1
16737   cat conftest.err >&5
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741   { (case "(($ac_try" in
16742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743   *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746   (eval "$ac_try") 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; } &&
16750          { ac_try='test -s conftest$ac_exeext'
16751   { (case "(($ac_try" in
16752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753   *) ac_try_echo=$ac_try;;
16754 esac
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756   (eval "$ac_try") 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760   ac_cv_func_dlopen=yes
16761 else
16762   echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765         ac_cv_func_dlopen=no
16766 fi
16767
16768 rm -f core conftest.err conftest.$ac_objext \
16769       conftest$ac_exeext conftest.$ac_ext
16770 fi
16771 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16772 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16773 if test $ac_cv_func_dlopen = yes; then
16774   lt_cv_dlopen="dlopen"
16775 else
16776   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16777 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16779   echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781   ac_check_lib_save_LIBS=$LIBS
16782 LIBS="-ldl  $LIBS"
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h.  */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h.  */
16789
16790 /* Override any GCC internal prototype to avoid an error.
16791    Use char because int might match the return type of a GCC
16792    builtin and then its argument prototype would still apply.  */
16793 #ifdef __cplusplus
16794 extern "C"
16795 #endif
16796 char dlopen ();
16797 int
16798 main ()
16799 {
16800 return dlopen ();
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809   *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812   (eval "$ac_link") 2>conftest.er1
16813   ac_status=$?
16814   grep -v '^ *+' conftest.er1 >conftest.err
16815   rm -f conftest.er1
16816   cat conftest.err >&5
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820   { (case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_try") 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; } &&
16829          { ac_try='test -s conftest$ac_exeext'
16830   { (case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835   (eval "$ac_try") 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; }; then
16839   ac_cv_lib_dl_dlopen=yes
16840 else
16841   echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844         ac_cv_lib_dl_dlopen=no
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext \
16848       conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16850 fi
16851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16853 if test $ac_cv_lib_dl_dlopen = yes; then
16854   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16855 else
16856   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16857 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16858 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   ac_check_lib_save_LIBS=$LIBS
16862 LIBS="-lsvld  $LIBS"
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h.  */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h.  */
16869
16870 /* Override any GCC internal prototype to avoid an error.
16871    Use char because int might match the return type of a GCC
16872    builtin and then its argument prototype would still apply.  */
16873 #ifdef __cplusplus
16874 extern "C"
16875 #endif
16876 char dlopen ();
16877 int
16878 main ()
16879 {
16880 return dlopen ();
16881   ;
16882   return 0;
16883 }
16884 _ACEOF
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (ac_try="$ac_link"
16887 case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_link") 2>conftest.er1
16893   ac_status=$?
16894   grep -v '^ *+' conftest.er1 >conftest.err
16895   rm -f conftest.er1
16896   cat conftest.err >&5
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900   { (case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_try") 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; } &&
16909          { ac_try='test -s conftest$ac_exeext'
16910   { (case "(($ac_try" in
16911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912   *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915   (eval "$ac_try") 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   ac_cv_lib_svld_dlopen=yes
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924         ac_cv_lib_svld_dlopen=no
16925 fi
16926
16927 rm -f core conftest.err conftest.$ac_objext \
16928       conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16930 fi
16931 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16932 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16933 if test $ac_cv_lib_svld_dlopen = yes; then
16934   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16935 else
16936   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16937 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16938 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-ldld  $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h.  */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h.  */
16949
16950 /* Override any GCC internal prototype to avoid an error.
16951    Use char because int might match the return type of a GCC
16952    builtin and then its argument prototype would still apply.  */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char dld_link ();
16957 int
16958 main ()
16959 {
16960 return dld_link ();
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_link") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } &&
16979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980   { (case "(($ac_try" in
16981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982   *) ac_try_echo=$ac_try;;
16983 esac
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985   (eval "$ac_try") 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; } &&
16989          { ac_try='test -s conftest$ac_exeext'
16990   { (case "(($ac_try" in
16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992   *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995   (eval "$ac_try") 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; }; then
16999   ac_cv_lib_dld_dld_link=yes
17000 else
17001   echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004         ac_cv_lib_dld_dld_link=no
17005 fi
17006
17007 rm -f core conftest.err conftest.$ac_objext \
17008       conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17010 fi
17011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17012 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17013 if test $ac_cv_lib_dld_dld_link = yes; then
17014   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17015 fi
17016
17017
17018 fi
17019
17020
17021 fi
17022
17023
17024 fi
17025
17026
17027 fi
17028
17029
17030 fi
17031
17032     ;;
17033   esac
17034
17035   if test "x$lt_cv_dlopen" != xno; then
17036     enable_dlopen=yes
17037   else
17038     enable_dlopen=no
17039   fi
17040
17041   case $lt_cv_dlopen in
17042   dlopen)
17043     save_CPPFLAGS="$CPPFLAGS"
17044     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17045
17046     save_LDFLAGS="$LDFLAGS"
17047     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17048
17049     save_LIBS="$LIBS"
17050     LIBS="$lt_cv_dlopen_libs $LIBS"
17051
17052     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17053 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17054 if test "${lt_cv_dlopen_self+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057           if test "$cross_compiling" = yes; then :
17058   lt_cv_dlopen_self=cross
17059 else
17060   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17061   lt_status=$lt_dlunknown
17062   cat > conftest.$ac_ext <<EOF
17063 #line 17063 "configure"
17064 #include "confdefs.h"
17065
17066 #if HAVE_DLFCN_H
17067 #include <dlfcn.h>
17068 #endif
17069
17070 #include <stdio.h>
17071
17072 #ifdef RTLD_GLOBAL
17073 #  define LT_DLGLOBAL           RTLD_GLOBAL
17074 #else
17075 #  ifdef DL_GLOBAL
17076 #    define LT_DLGLOBAL         DL_GLOBAL
17077 #  else
17078 #    define LT_DLGLOBAL         0
17079 #  endif
17080 #endif
17081
17082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17083    find out it does not work in some platform. */
17084 #ifndef LT_DLLAZY_OR_NOW
17085 #  ifdef RTLD_LAZY
17086 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17087 #  else
17088 #    ifdef DL_LAZY
17089 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17090 #    else
17091 #      ifdef RTLD_NOW
17092 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17093 #      else
17094 #        ifdef DL_NOW
17095 #          define LT_DLLAZY_OR_NOW      DL_NOW
17096 #        else
17097 #          define LT_DLLAZY_OR_NOW      0
17098 #        endif
17099 #      endif
17100 #    endif
17101 #  endif
17102 #endif
17103
17104 #ifdef __cplusplus
17105 extern "C" void exit (int);
17106 #endif
17107
17108 void fnord() { int i=42;}
17109 int main ()
17110 {
17111   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17112   int status = $lt_dlunknown;
17113
17114   if (self)
17115     {
17116       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17117       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17118       /* dlclose (self); */
17119     }
17120   else
17121     puts (dlerror ());
17122
17123     exit (status);
17124 }
17125 EOF
17126   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127   (eval $ac_link) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17131     (./conftest; exit; ) >&5 2>/dev/null
17132     lt_status=$?
17133     case x$lt_status in
17134       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17135       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17136       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17137     esac
17138   else :
17139     # compilation failed
17140     lt_cv_dlopen_self=no
17141   fi
17142 fi
17143 rm -fr conftest*
17144
17145
17146 fi
17147 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17148 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17149
17150     if test "x$lt_cv_dlopen_self" = xyes; then
17151       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17152       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17153 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17154 if test "${lt_cv_dlopen_self_static+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157           if test "$cross_compiling" = yes; then :
17158   lt_cv_dlopen_self_static=cross
17159 else
17160   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17161   lt_status=$lt_dlunknown
17162   cat > conftest.$ac_ext <<EOF
17163 #line 17163 "configure"
17164 #include "confdefs.h"
17165
17166 #if HAVE_DLFCN_H
17167 #include <dlfcn.h>
17168 #endif
17169
17170 #include <stdio.h>
17171
17172 #ifdef RTLD_GLOBAL
17173 #  define LT_DLGLOBAL           RTLD_GLOBAL
17174 #else
17175 #  ifdef DL_GLOBAL
17176 #    define LT_DLGLOBAL         DL_GLOBAL
17177 #  else
17178 #    define LT_DLGLOBAL         0
17179 #  endif
17180 #endif
17181
17182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17183    find out it does not work in some platform. */
17184 #ifndef LT_DLLAZY_OR_NOW
17185 #  ifdef RTLD_LAZY
17186 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17187 #  else
17188 #    ifdef DL_LAZY
17189 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17190 #    else
17191 #      ifdef RTLD_NOW
17192 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17193 #      else
17194 #        ifdef DL_NOW
17195 #          define LT_DLLAZY_OR_NOW      DL_NOW
17196 #        else
17197 #          define LT_DLLAZY_OR_NOW      0
17198 #        endif
17199 #      endif
17200 #    endif
17201 #  endif
17202 #endif
17203
17204 #ifdef __cplusplus
17205 extern "C" void exit (int);
17206 #endif
17207
17208 void fnord() { int i=42;}
17209 int main ()
17210 {
17211   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17212   int status = $lt_dlunknown;
17213
17214   if (self)
17215     {
17216       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17217       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17218       /* dlclose (self); */
17219     }
17220   else
17221     puts (dlerror ());
17222
17223     exit (status);
17224 }
17225 EOF
17226   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227   (eval $ac_link) 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17231     (./conftest; exit; ) >&5 2>/dev/null
17232     lt_status=$?
17233     case x$lt_status in
17234       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17235       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17236       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17237     esac
17238   else :
17239     # compilation failed
17240     lt_cv_dlopen_self_static=no
17241   fi
17242 fi
17243 rm -fr conftest*
17244
17245
17246 fi
17247 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17248 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17249     fi
17250
17251     CPPFLAGS="$save_CPPFLAGS"
17252     LDFLAGS="$save_LDFLAGS"
17253     LIBS="$save_LIBS"
17254     ;;
17255   esac
17256
17257   case $lt_cv_dlopen_self in
17258   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17259   *) enable_dlopen_self=unknown ;;
17260   esac
17261
17262   case $lt_cv_dlopen_self_static in
17263   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17264   *) enable_dlopen_self_static=unknown ;;
17265   esac
17266 fi
17267
17268
17269 # Report which library types will actually be built
17270 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17271 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17272 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17273 echo "${ECHO_T}$can_build_shared" >&6; }
17274
17275 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17276 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17277 test "$can_build_shared" = "no" && enable_shared=no
17278
17279 # On AIX, shared libraries and static libraries use the same namespace, and
17280 # are all built from PIC.
17281 case $host_os in
17282 aix3*)
17283   test "$enable_shared" = yes && enable_static=no
17284   if test -n "$RANLIB"; then
17285     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17286     postinstall_cmds='$RANLIB $lib'
17287   fi
17288   ;;
17289
17290 aix4* | aix5*)
17291   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17292     test "$enable_shared" = yes && enable_static=no
17293   fi
17294     ;;
17295 esac
17296 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17297 echo "${ECHO_T}$enable_shared" >&6; }
17298
17299 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17300 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17301 # Make sure either enable_shared or enable_static is yes.
17302 test "$enable_shared" = yes || enable_static=yes
17303 { echo "$as_me:$LINENO: result: $enable_static" >&5
17304 echo "${ECHO_T}$enable_static" >&6; }
17305
17306 # The else clause should only fire when bootstrapping the
17307 # libtool distribution, otherwise you forgot to ship ltmain.sh
17308 # with your package, and you will get complaints that there are
17309 # no rules to generate ltmain.sh.
17310 if test -f "$ltmain"; then
17311   # See if we are running on zsh, and set the options which allow our commands through
17312   # without removal of \ escapes.
17313   if test -n "${ZSH_VERSION+set}" ; then
17314     setopt NO_GLOB_SUBST
17315   fi
17316   # Now quote all the things that may contain metacharacters while being
17317   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17318   # variables and quote the copies for generation of the libtool script.
17319   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17320     SED SHELL STRIP \
17321     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17322     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17323     deplibs_check_method reload_flag reload_cmds need_locks \
17324     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17325     lt_cv_sys_global_symbol_to_c_name_address \
17326     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17327     old_postinstall_cmds old_postuninstall_cmds \
17328     compiler \
17329     CC \
17330     LD \
17331     lt_prog_compiler_wl \
17332     lt_prog_compiler_pic \
17333     lt_prog_compiler_static \
17334     lt_prog_compiler_no_builtin_flag \
17335     export_dynamic_flag_spec \
17336     thread_safe_flag_spec \
17337     whole_archive_flag_spec \
17338     enable_shared_with_static_runtimes \
17339     old_archive_cmds \
17340     old_archive_from_new_cmds \
17341     predep_objects \
17342     postdep_objects \
17343     predeps \
17344     postdeps \
17345     compiler_lib_search_path \
17346     archive_cmds \
17347     archive_expsym_cmds \
17348     postinstall_cmds \
17349     postuninstall_cmds \
17350     old_archive_from_expsyms_cmds \
17351     allow_undefined_flag \
17352     no_undefined_flag \
17353     export_symbols_cmds \
17354     hardcode_libdir_flag_spec \
17355     hardcode_libdir_flag_spec_ld \
17356     hardcode_libdir_separator \
17357     hardcode_automatic \
17358     module_cmds \
17359     module_expsym_cmds \
17360     lt_cv_prog_compiler_c_o \
17361     exclude_expsyms \
17362     include_expsyms; do
17363
17364     case $var in
17365     old_archive_cmds | \
17366     old_archive_from_new_cmds | \
17367     archive_cmds | \
17368     archive_expsym_cmds | \
17369     module_cmds | \
17370     module_expsym_cmds | \
17371     old_archive_from_expsyms_cmds | \
17372     export_symbols_cmds | \
17373     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17374     postinstall_cmds | postuninstall_cmds | \
17375     old_postinstall_cmds | old_postuninstall_cmds | \
17376     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17377       # Double-quote double-evaled strings.
17378       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17379       ;;
17380     *)
17381       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17382       ;;
17383     esac
17384   done
17385
17386   case $lt_echo in
17387   *'\$0 --fallback-echo"')
17388     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17389     ;;
17390   esac
17391
17392 cfgfile="${ofile}T"
17393   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17394   $rm -f "$cfgfile"
17395   { echo "$as_me:$LINENO: creating $ofile" >&5
17396 echo "$as_me: creating $ofile" >&6;}
17397
17398   cat <<__EOF__ >> "$cfgfile"
17399 #! $SHELL
17400
17401 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17402 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17404 #
17405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17406 # Free Software Foundation, Inc.
17407 #
17408 # This file is part of GNU Libtool:
17409 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17410 #
17411 # This program is free software; you can redistribute it and/or modify
17412 # it under the terms of the GNU General Public License as published by
17413 # the Free Software Foundation; either version 2 of the License, or
17414 # (at your option) any later version.
17415 #
17416 # This program is distributed in the hope that it will be useful, but
17417 # WITHOUT ANY WARRANTY; without even the implied warranty of
17418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17419 # General Public License for more details.
17420 #
17421 # You should have received a copy of the GNU General Public License
17422 # along with this program; if not, write to the Free Software
17423 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17424 #
17425 # As a special exception to the GNU General Public License, if you
17426 # distribute this file as part of a program that contains a
17427 # configuration script generated by Autoconf, you may include it under
17428 # the same distribution terms that you use for the rest of that program.
17429
17430 # A sed program that does not truncate output.
17431 SED=$lt_SED
17432
17433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17434 Xsed="$SED -e 1s/^X//"
17435
17436 # The HP-UX ksh and POSIX shell print the target directory to stdout
17437 # if CDPATH is set.
17438 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17439
17440 # The names of the tagged configurations supported by this script.
17441 available_tags=
17442
17443 # ### BEGIN LIBTOOL CONFIG
17444
17445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17446
17447 # Shell to use when invoking shell scripts.
17448 SHELL=$lt_SHELL
17449
17450 # Whether or not to build shared libraries.
17451 build_libtool_libs=$enable_shared
17452
17453 # Whether or not to build static libraries.
17454 build_old_libs=$enable_static
17455
17456 # Whether or not to add -lc for building shared libraries.
17457 build_libtool_need_lc=$archive_cmds_need_lc
17458
17459 # Whether or not to disallow shared libs when runtime libs are static
17460 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17461
17462 # Whether or not to optimize for fast installation.
17463 fast_install=$enable_fast_install
17464
17465 # The host system.
17466 host_alias=$host_alias
17467 host=$host
17468 host_os=$host_os
17469
17470 # The build system.
17471 build_alias=$build_alias
17472 build=$build
17473 build_os=$build_os
17474
17475 # An echo program that does not interpret backslashes.
17476 echo=$lt_echo
17477
17478 # The archiver.
17479 AR=$lt_AR
17480 AR_FLAGS=$lt_AR_FLAGS
17481
17482 # A C compiler.
17483 LTCC=$lt_LTCC
17484
17485 # LTCC compiler flags.
17486 LTCFLAGS=$lt_LTCFLAGS
17487
17488 # A language-specific compiler.
17489 CC=$lt_compiler
17490
17491 # Is the compiler the GNU C compiler?
17492 with_gcc=$GCC
17493
17494 # An ERE matcher.
17495 EGREP=$lt_EGREP
17496
17497 # The linker used to build libraries.
17498 LD=$lt_LD
17499
17500 # Whether we need hard or soft links.
17501 LN_S=$lt_LN_S
17502
17503 # A BSD-compatible nm program.
17504 NM=$lt_NM
17505
17506 # A symbol stripping program
17507 STRIP=$lt_STRIP
17508
17509 # Used to examine libraries when file_magic_cmd begins "file"
17510 MAGIC_CMD=$MAGIC_CMD
17511
17512 # Used on cygwin: DLL creation program.
17513 DLLTOOL="$DLLTOOL"
17514
17515 # Used on cygwin: object dumper.
17516 OBJDUMP="$OBJDUMP"
17517
17518 # Used on cygwin: assembler.
17519 AS="$AS"
17520
17521 # The name of the directory that contains temporary libtool files.
17522 objdir=$objdir
17523
17524 # How to create reloadable object files.
17525 reload_flag=$lt_reload_flag
17526 reload_cmds=$lt_reload_cmds
17527
17528 # How to pass a linker flag through the compiler.
17529 wl=$lt_lt_prog_compiler_wl
17530
17531 # Object file suffix (normally "o").
17532 objext="$ac_objext"
17533
17534 # Old archive suffix (normally "a").
17535 libext="$libext"
17536
17537 # Shared library suffix (normally ".so").
17538 shrext_cmds='$shrext_cmds'
17539
17540 # Executable file suffix (normally "").
17541 exeext="$exeext"
17542
17543 # Additional compiler flags for building library objects.
17544 pic_flag=$lt_lt_prog_compiler_pic
17545 pic_mode=$pic_mode
17546
17547 # What is the maximum length of a command?
17548 max_cmd_len=$lt_cv_sys_max_cmd_len
17549
17550 # Does compiler simultaneously support -c and -o options?
17551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17552
17553 # Must we lock files when doing compilation?
17554 need_locks=$lt_need_locks
17555
17556 # Do we need the lib prefix for modules?
17557 need_lib_prefix=$need_lib_prefix
17558
17559 # Do we need a version for libraries?
17560 need_version=$need_version
17561
17562 # Whether dlopen is supported.
17563 dlopen_support=$enable_dlopen
17564
17565 # Whether dlopen of programs is supported.
17566 dlopen_self=$enable_dlopen_self
17567
17568 # Whether dlopen of statically linked programs is supported.
17569 dlopen_self_static=$enable_dlopen_self_static
17570
17571 # Compiler flag to prevent dynamic linking.
17572 link_static_flag=$lt_lt_prog_compiler_static
17573
17574 # Compiler flag to turn off builtin functions.
17575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17576
17577 # Compiler flag to allow reflexive dlopens.
17578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17579
17580 # Compiler flag to generate shared objects directly from archives.
17581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17582
17583 # Compiler flag to generate thread-safe objects.
17584 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17585
17586 # Library versioning type.
17587 version_type=$version_type
17588
17589 # Format of library name prefix.
17590 libname_spec=$lt_libname_spec
17591
17592 # List of archive names.  First name is the real one, the rest are links.
17593 # The last name is the one that the linker finds with -lNAME.
17594 library_names_spec=$lt_library_names_spec
17595
17596 # The coded name of the library, if different from the real name.
17597 soname_spec=$lt_soname_spec
17598
17599 # Commands used to build and install an old-style archive.
17600 RANLIB=$lt_RANLIB
17601 old_archive_cmds=$lt_old_archive_cmds
17602 old_postinstall_cmds=$lt_old_postinstall_cmds
17603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17604
17605 # Create an old-style archive from a shared archive.
17606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17607
17608 # Create a temporary old-style archive to link instead of a shared archive.
17609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17610
17611 # Commands used to build and install a shared archive.
17612 archive_cmds=$lt_archive_cmds
17613 archive_expsym_cmds=$lt_archive_expsym_cmds
17614 postinstall_cmds=$lt_postinstall_cmds
17615 postuninstall_cmds=$lt_postuninstall_cmds
17616
17617 # Commands used to build a loadable module (assumed same as above if empty)
17618 module_cmds=$lt_module_cmds
17619 module_expsym_cmds=$lt_module_expsym_cmds
17620
17621 # Commands to strip libraries.
17622 old_striplib=$lt_old_striplib
17623 striplib=$lt_striplib
17624
17625 # Dependencies to place before the objects being linked to create a
17626 # shared library.
17627 predep_objects=$lt_predep_objects
17628
17629 # Dependencies to place after the objects being linked to create a
17630 # shared library.
17631 postdep_objects=$lt_postdep_objects
17632
17633 # Dependencies to place before the objects being linked to create a
17634 # shared library.
17635 predeps=$lt_predeps
17636
17637 # Dependencies to place after the objects being linked to create a
17638 # shared library.
17639 postdeps=$lt_postdeps
17640
17641 # The library search path used internally by the compiler when linking
17642 # a shared library.
17643 compiler_lib_search_path=$lt_compiler_lib_search_path
17644
17645 # Method to check whether dependent libraries are shared objects.
17646 deplibs_check_method=$lt_deplibs_check_method
17647
17648 # Command to use when deplibs_check_method == file_magic.
17649 file_magic_cmd=$lt_file_magic_cmd
17650
17651 # Flag that allows shared libraries with undefined symbols to be built.
17652 allow_undefined_flag=$lt_allow_undefined_flag
17653
17654 # Flag that forces no undefined symbols.
17655 no_undefined_flag=$lt_no_undefined_flag
17656
17657 # Commands used to finish a libtool library installation in a directory.
17658 finish_cmds=$lt_finish_cmds
17659
17660 # Same as above, but a single script fragment to be evaled but not shown.
17661 finish_eval=$lt_finish_eval
17662
17663 # Take the output of nm and produce a listing of raw symbols and C names.
17664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17665
17666 # Transform the output of nm in a proper C declaration
17667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17668
17669 # Transform the output of nm in a C name address pair
17670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17671
17672 # This is the shared library runtime path variable.
17673 runpath_var=$runpath_var
17674
17675 # This is the shared library path variable.
17676 shlibpath_var=$shlibpath_var
17677
17678 # Is shlibpath searched before the hard-coded library search path?
17679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17680
17681 # How to hardcode a shared library path into an executable.
17682 hardcode_action=$hardcode_action
17683
17684 # Whether we should hardcode library paths into libraries.
17685 hardcode_into_libs=$hardcode_into_libs
17686
17687 # Flag to hardcode \$libdir into a binary during linking.
17688 # This must work even if \$libdir does not exist.
17689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17690
17691 # If ld is used when linking, flag to hardcode \$libdir into
17692 # a binary during linking. This must work even if \$libdir does
17693 # not exist.
17694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17695
17696 # Whether we need a single -rpath flag with a separated argument.
17697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17698
17699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17700 # resulting binary.
17701 hardcode_direct=$hardcode_direct
17702
17703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17704 # resulting binary.
17705 hardcode_minus_L=$hardcode_minus_L
17706
17707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17708 # the resulting binary.
17709 hardcode_shlibpath_var=$hardcode_shlibpath_var
17710
17711 # Set to yes if building a shared library automatically hardcodes DIR into the library
17712 # and all subsequent libraries and executables linked against it.
17713 hardcode_automatic=$hardcode_automatic
17714
17715 # Variables whose values should be saved in libtool wrapper scripts and
17716 # restored at relink time.
17717 variables_saved_for_relink="$variables_saved_for_relink"
17718
17719 # Whether libtool must link a program against all its dependency libraries.
17720 link_all_deplibs=$link_all_deplibs
17721
17722 # Compile-time system search path for libraries
17723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17724
17725 # Run-time system search path for libraries
17726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17727
17728 # Fix the shell variable \$srcfile for the compiler.
17729 fix_srcfile_path="$fix_srcfile_path"
17730
17731 # Set to yes if exported symbols are required.
17732 always_export_symbols=$always_export_symbols
17733
17734 # The commands to list exported symbols.
17735 export_symbols_cmds=$lt_export_symbols_cmds
17736
17737 # The commands to extract the exported symbol list from a shared archive.
17738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17739
17740 # Symbols that should not be listed in the preloaded symbols.
17741 exclude_expsyms=$lt_exclude_expsyms
17742
17743 # Symbols that must always be exported.
17744 include_expsyms=$lt_include_expsyms
17745
17746 # ### END LIBTOOL CONFIG
17747
17748 __EOF__
17749
17750
17751   case $host_os in
17752   aix3*)
17753     cat <<\EOF >> "$cfgfile"
17754
17755 # AIX sometimes has problems with the GCC collect2 program.  For some
17756 # reason, if we set the COLLECT_NAMES environment variable, the problems
17757 # vanish in a puff of smoke.
17758 if test "X${COLLECT_NAMES+set}" != Xset; then
17759   COLLECT_NAMES=
17760   export COLLECT_NAMES
17761 fi
17762 EOF
17763     ;;
17764   esac
17765
17766   # We use sed instead of cat because bash on DJGPP gets confused if
17767   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17768   # text mode, it properly converts lines to CR/LF.  This bash problem
17769   # is reportedly fixed, but why not run on old versions too?
17770   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17771
17772   mv -f "$cfgfile" "$ofile" || \
17773     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17774   chmod +x "$ofile"
17775
17776 else
17777   # If there is no Makefile yet, we rely on a make rule to execute
17778   # `config.status --recheck' to rerun these tests and create the
17779   # libtool script then.
17780   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17781   if test -f "$ltmain_in"; then
17782     test -f Makefile && make "$ltmain"
17783   fi
17784 fi
17785
17786
17787 ac_ext=c
17788 ac_cpp='$CPP $CPPFLAGS'
17789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17792
17793 CC="$lt_save_CC"
17794
17795
17796 # Check whether --with-tags was given.
17797 if test "${with_tags+set}" = set; then
17798   withval=$with_tags; tagnames="$withval"
17799 fi
17800
17801
17802 if test -f "$ltmain" && test -n "$tagnames"; then
17803   if test ! -f "${ofile}"; then
17804     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17805 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17806   fi
17807
17808   if test -z "$LTCC"; then
17809     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17810     if test -z "$LTCC"; then
17811       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17812 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17813     else
17814       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17815 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17816     fi
17817   fi
17818   if test -z "$LTCFLAGS"; then
17819     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17820   fi
17821
17822   # Extract list of available tagged configurations in $ofile.
17823   # Note that this assumes the entire list is on one line.
17824   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17825
17826   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17827   for tagname in $tagnames; do
17828     IFS="$lt_save_ifs"
17829     # Check whether tagname contains only valid characters
17830     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17831     "") ;;
17832     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17834    { (exit 1); exit 1; }; }
17835         ;;
17836     esac
17837
17838     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17839     then
17840       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17842    { (exit 1); exit 1; }; }
17843     fi
17844
17845     # Update the list of available tags.
17846     if test -n "$tagname"; then
17847       echo appending configuration tag \"$tagname\" to $ofile
17848
17849       case $tagname in
17850       CXX)
17851         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17852             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17853             (test "X$CXX" != "Xg++"))) ; then
17854           ac_ext=cpp
17855 ac_cpp='$CXXCPP $CPPFLAGS'
17856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17859
17860
17861
17862
17863 archive_cmds_need_lc_CXX=no
17864 allow_undefined_flag_CXX=
17865 always_export_symbols_CXX=no
17866 archive_expsym_cmds_CXX=
17867 export_dynamic_flag_spec_CXX=
17868 hardcode_direct_CXX=no
17869 hardcode_libdir_flag_spec_CXX=
17870 hardcode_libdir_flag_spec_ld_CXX=
17871 hardcode_libdir_separator_CXX=
17872 hardcode_minus_L_CXX=no
17873 hardcode_shlibpath_var_CXX=unsupported
17874 hardcode_automatic_CXX=no
17875 module_cmds_CXX=
17876 module_expsym_cmds_CXX=
17877 link_all_deplibs_CXX=unknown
17878 old_archive_cmds_CXX=$old_archive_cmds
17879 no_undefined_flag_CXX=
17880 whole_archive_flag_spec_CXX=
17881 enable_shared_with_static_runtimes_CXX=no
17882
17883 # Dependencies to place before and after the object being linked:
17884 predep_objects_CXX=
17885 postdep_objects_CXX=
17886 predeps_CXX=
17887 postdeps_CXX=
17888 compiler_lib_search_path_CXX=
17889
17890 # Source file extension for C++ test sources.
17891 ac_ext=cpp
17892
17893 # Object file extension for compiled C++ test sources.
17894 objext=o
17895 objext_CXX=$objext
17896
17897 # Code to be used in simple compile tests
17898 lt_simple_compile_test_code="int some_variable = 0;\n"
17899
17900 # Code to be used in simple link tests
17901 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17902
17903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17904
17905 # If no C compiler was specified, use CC.
17906 LTCC=${LTCC-"$CC"}
17907
17908 # If no C compiler flags were specified, use CFLAGS.
17909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17910
17911 # Allow CC to be a program name with arguments.
17912 compiler=$CC
17913
17914
17915 # save warnings/boilerplate of simple test code
17916 ac_outfile=conftest.$ac_objext
17917 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17919 _lt_compiler_boilerplate=`cat conftest.err`
17920 $rm conftest*
17921
17922 ac_outfile=conftest.$ac_objext
17923 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17925 _lt_linker_boilerplate=`cat conftest.err`
17926 $rm conftest*
17927
17928
17929 # Allow CC to be a program name with arguments.
17930 lt_save_CC=$CC
17931 lt_save_LD=$LD
17932 lt_save_GCC=$GCC
17933 GCC=$GXX
17934 lt_save_with_gnu_ld=$with_gnu_ld
17935 lt_save_path_LD=$lt_cv_path_LD
17936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17937   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17938 else
17939   $as_unset lt_cv_prog_gnu_ld
17940 fi
17941 if test -n "${lt_cv_path_LDCXX+set}"; then
17942   lt_cv_path_LD=$lt_cv_path_LDCXX
17943 else
17944   $as_unset lt_cv_path_LD
17945 fi
17946 test -z "${LDCXX+set}" || LD=$LDCXX
17947 CC=${CXX-"c++"}
17948 compiler=$CC
17949 compiler_CXX=$CC
17950 for cc_temp in $compiler""; do
17951   case $cc_temp in
17952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17954     \-*) ;;
17955     *) break;;
17956   esac
17957 done
17958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17959
17960
17961 # We don't want -fno-exception wen compiling C++ code, so set the
17962 # no_builtin_flag separately
17963 if test "$GXX" = yes; then
17964   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17965 else
17966   lt_prog_compiler_no_builtin_flag_CXX=
17967 fi
17968
17969 if test "$GXX" = yes; then
17970   # Set up default GNU C++ configuration
17971
17972
17973 # Check whether --with-gnu-ld was given.
17974 if test "${with_gnu_ld+set}" = set; then
17975   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17976 else
17977   with_gnu_ld=no
17978 fi
17979
17980 ac_prog=ld
17981 if test "$GCC" = yes; then
17982   # Check if gcc -print-prog-name=ld gives a path.
17983   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17984 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17985   case $host in
17986   *-*-mingw*)
17987     # gcc leaves a trailing carriage return which upsets mingw
17988     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17989   *)
17990     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17991   esac
17992   case $ac_prog in
17993     # Accept absolute paths.
17994     [\\/]* | ?:[\\/]*)
17995       re_direlt='/[^/][^/]*/\.\./'
17996       # Canonicalize the pathname of ld
17997       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17998       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17999         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18000       done
18001       test -z "$LD" && LD="$ac_prog"
18002       ;;
18003   "")
18004     # If it fails, then pretend we aren't using GCC.
18005     ac_prog=ld
18006     ;;
18007   *)
18008     # If it is relative, then search for the first ld in PATH.
18009     with_gnu_ld=unknown
18010     ;;
18011   esac
18012 elif test "$with_gnu_ld" = yes; then
18013   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18015 else
18016   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18018 fi
18019 if test "${lt_cv_path_LD+set}" = set; then
18020   echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022   if test -z "$LD"; then
18023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18024   for ac_dir in $PATH; do
18025     IFS="$lt_save_ifs"
18026     test -z "$ac_dir" && ac_dir=.
18027     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18028       lt_cv_path_LD="$ac_dir/$ac_prog"
18029       # Check to see if the program is GNU ld.  I'd rather use --version,
18030       # but apparently some variants of GNU ld only accept -v.
18031       # Break only if it was the GNU/non-GNU ld that we prefer.
18032       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18033       *GNU* | *'with BFD'*)
18034         test "$with_gnu_ld" != no && break
18035         ;;
18036       *)
18037         test "$with_gnu_ld" != yes && break
18038         ;;
18039       esac
18040     fi
18041   done
18042   IFS="$lt_save_ifs"
18043 else
18044   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18045 fi
18046 fi
18047
18048 LD="$lt_cv_path_LD"
18049 if test -n "$LD"; then
18050   { echo "$as_me:$LINENO: result: $LD" >&5
18051 echo "${ECHO_T}$LD" >&6; }
18052 else
18053   { echo "$as_me:$LINENO: result: no" >&5
18054 echo "${ECHO_T}no" >&6; }
18055 fi
18056 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18057 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18058    { (exit 1); exit 1; }; }
18059 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18060 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18065 case `$LD -v 2>&1 </dev/null` in
18066 *GNU* | *'with BFD'*)
18067   lt_cv_prog_gnu_ld=yes
18068   ;;
18069 *)
18070   lt_cv_prog_gnu_ld=no
18071   ;;
18072 esac
18073 fi
18074 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18075 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18076 with_gnu_ld=$lt_cv_prog_gnu_ld
18077
18078
18079
18080   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18081   # archiving commands below assume that GNU ld is being used.
18082   if test "$with_gnu_ld" = yes; then
18083     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18084     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'
18085
18086     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18087     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18088
18089     # If archive_cmds runs LD, not CC, wlarc should be empty
18090     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18091     #     investigate it a little bit more. (MM)
18092     wlarc='${wl}'
18093
18094     # ancient GNU ld didn't support --whole-archive et. al.
18095     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18096         grep 'no-whole-archive' > /dev/null; then
18097       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18098     else
18099       whole_archive_flag_spec_CXX=
18100     fi
18101   else
18102     with_gnu_ld=no
18103     wlarc=
18104
18105     # A generic and very simple default shared library creation
18106     # command for GNU C++ for the case where it uses the native
18107     # linker, instead of GNU ld.  If possible, this setting should
18108     # overridden to take advantage of the native linker features on
18109     # the platform it is being used on.
18110     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18111   fi
18112
18113   # Commands to make compiler produce verbose output that lists
18114   # what "hidden" libraries, object files and flags are used when
18115   # linking a shared library.
18116   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18117
18118 else
18119   GXX=no
18120   with_gnu_ld=no
18121   wlarc=
18122 fi
18123
18124 # PORTME: fill in a description of your system's C++ link characteristics
18125 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18127 ld_shlibs_CXX=yes
18128 case $host_os in
18129   aix3*)
18130     # FIXME: insert proper C++ library support
18131     ld_shlibs_CXX=no
18132     ;;
18133   aix4* | aix5*)
18134     if test "$host_cpu" = ia64; then
18135       # On IA64, the linker does run time linking by default, so we don't
18136       # have to do anything special.
18137       aix_use_runtimelinking=no
18138       exp_sym_flag='-Bexport'
18139       no_entry_flag=""
18140     else
18141       aix_use_runtimelinking=no
18142
18143       # Test if we are trying to use run time linking or normal
18144       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18145       # need to do runtime linking.
18146       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18147         for ld_flag in $LDFLAGS; do
18148           case $ld_flag in
18149           *-brtl*)
18150             aix_use_runtimelinking=yes
18151             break
18152             ;;
18153           esac
18154         done
18155         ;;
18156       esac
18157
18158       exp_sym_flag='-bexport'
18159       no_entry_flag='-bnoentry'
18160     fi
18161
18162     # When large executables or shared objects are built, AIX ld can
18163     # have problems creating the table of contents.  If linking a library
18164     # or program results in "error TOC overflow" add -mminimal-toc to
18165     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18166     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18167
18168     archive_cmds_CXX=''
18169     hardcode_direct_CXX=yes
18170     hardcode_libdir_separator_CXX=':'
18171     link_all_deplibs_CXX=yes
18172
18173     if test "$GXX" = yes; then
18174       case $host_os in aix4.[012]|aix4.[012].*)
18175       # We only want to do this on AIX 4.2 and lower, the check
18176       # below for broken collect2 doesn't work under 4.3+
18177         collect2name=`${CC} -print-prog-name=collect2`
18178         if test -f "$collect2name" && \
18179            strings "$collect2name" | grep resolve_lib_name >/dev/null
18180         then
18181           # We have reworked collect2
18182           hardcode_direct_CXX=yes
18183         else
18184           # We have old collect2
18185           hardcode_direct_CXX=unsupported
18186           # It fails to find uninstalled libraries when the uninstalled
18187           # path is not listed in the libpath.  Setting hardcode_minus_L
18188           # to unsupported forces relinking
18189           hardcode_minus_L_CXX=yes
18190           hardcode_libdir_flag_spec_CXX='-L$libdir'
18191           hardcode_libdir_separator_CXX=
18192         fi
18193         ;;
18194       esac
18195       shared_flag='-shared'
18196       if test "$aix_use_runtimelinking" = yes; then
18197         shared_flag="$shared_flag "'${wl}-G'
18198       fi
18199     else
18200       # not using gcc
18201       if test "$host_cpu" = ia64; then
18202         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18203         # chokes on -Wl,-G. The following line is correct:
18204         shared_flag='-G'
18205       else
18206         if test "$aix_use_runtimelinking" = yes; then
18207           shared_flag='${wl}-G'
18208         else
18209           shared_flag='${wl}-bM:SRE'
18210         fi
18211       fi
18212     fi
18213
18214     # It seems that -bexpall does not export symbols beginning with
18215     # underscore (_), so it is better to generate a list of symbols to export.
18216     always_export_symbols_CXX=yes
18217     if test "$aix_use_runtimelinking" = yes; then
18218       # Warning - without using the other runtime loading flags (-brtl),
18219       # -berok will link without error, but may produce a broken library.
18220       allow_undefined_flag_CXX='-berok'
18221       # Determine the default libpath from the value encoded in an empty executable.
18222       cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h.  */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h.  */
18228
18229 int
18230 main ()
18231 {
18232
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241   *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244   (eval "$ac_link") 2>conftest.er1
18245   ac_status=$?
18246   grep -v '^ *+' conftest.er1 >conftest.err
18247   rm -f conftest.er1
18248   cat conftest.err >&5
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); } &&
18251          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252   { (case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_try") 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; } &&
18261          { ac_try='test -s conftest$ac_exeext'
18262   { (case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_try") 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); }; }; then
18271
18272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18273 }'`
18274 # Check for a 64-bit object if we didn't find anything.
18275 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; }
18276 }'`; fi
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext \
18285       conftest$ac_exeext conftest.$ac_ext
18286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18287
18288       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18289
18290       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"
18291      else
18292       if test "$host_cpu" = ia64; then
18293         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18294         allow_undefined_flag_CXX="-z nodefs"
18295         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"
18296       else
18297         # Determine the default libpath from the value encoded in an empty executable.
18298         cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h.  */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h.  */
18304
18305 int
18306 main ()
18307 {
18308
18309   ;
18310   return 0;
18311 }
18312 _ACEOF
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317   *) ac_try_echo=$ac_try;;
18318 esac
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320   (eval "$ac_link") 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18328   { (case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_try") 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347
18348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18349 }'`
18350 # Check for a 64-bit object if we didn't find anything.
18351 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; }
18352 }'`; fi
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357
18358 fi
18359
18360 rm -f core conftest.err conftest.$ac_objext \
18361       conftest$ac_exeext conftest.$ac_ext
18362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18363
18364         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18365         # Warning - without using the other run time loading flags,
18366         # -berok will link without error, but may produce a broken library.
18367         no_undefined_flag_CXX=' ${wl}-bernotok'
18368         allow_undefined_flag_CXX=' ${wl}-berok'
18369         # Exported symbols can be pulled into shared objects from archives
18370         whole_archive_flag_spec_CXX='$convenience'
18371         archive_cmds_need_lc_CXX=yes
18372         # This is similar to how AIX traditionally builds its shared libraries.
18373         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'
18374       fi
18375     fi
18376     ;;
18377
18378   beos*)
18379     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18380       allow_undefined_flag_CXX=unsupported
18381       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18382       # support --undefined.  This deserves some investigation.  FIXME
18383       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18384     else
18385       ld_shlibs_CXX=no
18386     fi
18387     ;;
18388
18389   chorus*)
18390     case $cc_basename in
18391       *)
18392         # FIXME: insert proper C++ library support
18393         ld_shlibs_CXX=no
18394         ;;
18395     esac
18396     ;;
18397
18398   cygwin* | mingw* | pw32*)
18399     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18400     # as there is no search path for DLLs.
18401     hardcode_libdir_flag_spec_CXX='-L$libdir'
18402     allow_undefined_flag_CXX=unsupported
18403     always_export_symbols_CXX=no
18404     enable_shared_with_static_runtimes_CXX=yes
18405
18406     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18407       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'
18408       # If the export-symbols file already is a .def file (1st line
18409       # is EXPORTS), use it as is; otherwise, prepend...
18410       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18411         cp $export_symbols $output_objdir/$soname.def;
18412       else
18413         echo EXPORTS > $output_objdir/$soname.def;
18414         cat $export_symbols >> $output_objdir/$soname.def;
18415       fi~
18416       $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'
18417     else
18418       ld_shlibs_CXX=no
18419     fi
18420   ;;
18421       darwin* | rhapsody*)
18422         case $host_os in
18423         rhapsody* | darwin1.[012])
18424          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18425          ;;
18426        *) # Darwin 1.3 on
18427          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18428            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18429          else
18430            case ${MACOSX_DEPLOYMENT_TARGET} in
18431              10.[012])
18432                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18433                ;;
18434              10.*)
18435                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18436                ;;
18437            esac
18438          fi
18439          ;;
18440         esac
18441       archive_cmds_need_lc_CXX=no
18442       hardcode_direct_CXX=no
18443       hardcode_automatic_CXX=yes
18444       hardcode_shlibpath_var_CXX=unsupported
18445       whole_archive_flag_spec_CXX=''
18446       link_all_deplibs_CXX=yes
18447
18448     if test "$GXX" = yes ; then
18449       lt_int_apple_cc_single_mod=no
18450       output_verbose_link_cmd='echo'
18451       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18452        lt_int_apple_cc_single_mod=yes
18453       fi
18454       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18455        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18456       else
18457           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'
18458         fi
18459         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18460         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18461           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18462             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}'
18463           else
18464             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}'
18465           fi
18466             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}'
18467       else
18468       case $cc_basename in
18469         xlc*)
18470          output_verbose_link_cmd='echo'
18471           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'
18472           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18473           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18474           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}'
18475           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}'
18476           ;;
18477        *)
18478          ld_shlibs_CXX=no
18479           ;;
18480       esac
18481       fi
18482         ;;
18483
18484   dgux*)
18485     case $cc_basename in
18486       ec++*)
18487         # FIXME: insert proper C++ library support
18488         ld_shlibs_CXX=no
18489         ;;
18490       ghcx*)
18491         # Green Hills C++ Compiler
18492         # FIXME: insert proper C++ library support
18493         ld_shlibs_CXX=no
18494         ;;
18495       *)
18496         # FIXME: insert proper C++ library support
18497         ld_shlibs_CXX=no
18498         ;;
18499     esac
18500     ;;
18501   freebsd[12]*)
18502     # C++ shared libraries reported to be fairly broken before switch to ELF
18503     ld_shlibs_CXX=no
18504     ;;
18505   freebsd-elf*)
18506     archive_cmds_need_lc_CXX=no
18507     ;;
18508   freebsd* | kfreebsd*-gnu | dragonfly*)
18509     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18510     # conventions
18511     ld_shlibs_CXX=yes
18512     ;;
18513   gnu*)
18514     ;;
18515   hpux9*)
18516     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18517     hardcode_libdir_separator_CXX=:
18518     export_dynamic_flag_spec_CXX='${wl}-E'
18519     hardcode_direct_CXX=yes
18520     hardcode_minus_L_CXX=yes # Not in the search PATH,
18521                                 # but as the default
18522                                 # location of the library.
18523
18524     case $cc_basename in
18525     CC*)
18526       # FIXME: insert proper C++ library support
18527       ld_shlibs_CXX=no
18528       ;;
18529     aCC*)
18530       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'
18531       # Commands to make compiler produce verbose output that lists
18532       # what "hidden" libraries, object files and flags are used when
18533       # linking a shared library.
18534       #
18535       # There doesn't appear to be a way to prevent this compiler from
18536       # explicitly linking system object files so we need to strip them
18537       # from the output so that they don't get included in the library
18538       # dependencies.
18539       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'
18540       ;;
18541     *)
18542       if test "$GXX" = yes; then
18543         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'
18544       else
18545         # FIXME: insert proper C++ library support
18546         ld_shlibs_CXX=no
18547       fi
18548       ;;
18549     esac
18550     ;;
18551   hpux10*|hpux11*)
18552     if test $with_gnu_ld = no; then
18553       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18554       hardcode_libdir_separator_CXX=:
18555
18556       case $host_cpu in
18557       hppa*64*|ia64*)
18558         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18559         ;;
18560       *)
18561         export_dynamic_flag_spec_CXX='${wl}-E'
18562         ;;
18563       esac
18564     fi
18565     case $host_cpu in
18566     hppa*64*|ia64*)
18567       hardcode_direct_CXX=no
18568       hardcode_shlibpath_var_CXX=no
18569       ;;
18570     *)
18571       hardcode_direct_CXX=yes
18572       hardcode_minus_L_CXX=yes # Not in the search PATH,
18573                                               # but as the default
18574                                               # location of the library.
18575       ;;
18576     esac
18577
18578     case $cc_basename in
18579       CC*)
18580         # FIXME: insert proper C++ library support
18581         ld_shlibs_CXX=no
18582         ;;
18583       aCC*)
18584         case $host_cpu in
18585         hppa*64*)
18586           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18587           ;;
18588         ia64*)
18589           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18590           ;;
18591         *)
18592           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18593           ;;
18594         esac
18595         # Commands to make compiler produce verbose output that lists
18596         # what "hidden" libraries, object files and flags are used when
18597         # linking a shared library.
18598         #
18599         # There doesn't appear to be a way to prevent this compiler from
18600         # explicitly linking system object files so we need to strip them
18601         # from the output so that they don't get included in the library
18602         # dependencies.
18603         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'
18604         ;;
18605       *)
18606         if test "$GXX" = yes; then
18607           if test $with_gnu_ld = no; then
18608             case $host_cpu in
18609             hppa*64*)
18610               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18611               ;;
18612             ia64*)
18613               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18614               ;;
18615             *)
18616               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'
18617               ;;
18618             esac
18619           fi
18620         else
18621           # FIXME: insert proper C++ library support
18622           ld_shlibs_CXX=no
18623         fi
18624         ;;
18625     esac
18626     ;;
18627   interix3*)
18628     hardcode_direct_CXX=no
18629     hardcode_shlibpath_var_CXX=no
18630     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18631     export_dynamic_flag_spec_CXX='${wl}-E'
18632     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18633     # Instead, shared libraries are loaded at an image base (0x10000000 by
18634     # default) and relocated if they conflict, which is a slow very memory
18635     # consuming and fragmenting process.  To avoid this, we pick a random,
18636     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18637     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18638     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'
18639     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'
18640     ;;
18641   irix5* | irix6*)
18642     case $cc_basename in
18643       CC*)
18644         # SGI C++
18645         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'
18646
18647         # Archives containing C++ object files must be created using
18648         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18649         # necessary to make sure instantiated templates are included
18650         # in the archive.
18651         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18652         ;;
18653       *)
18654         if test "$GXX" = yes; then
18655           if test "$with_gnu_ld" = no; then
18656             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'
18657           else
18658             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'
18659           fi
18660         fi
18661         link_all_deplibs_CXX=yes
18662         ;;
18663     esac
18664     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18665     hardcode_libdir_separator_CXX=:
18666     ;;
18667   linux*)
18668     case $cc_basename in
18669       KCC*)
18670         # Kuck and Associates, Inc. (KAI) C++ Compiler
18671
18672         # KCC will only create a shared library if the output file
18673         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18674         # to its proper name (with version) after linking.
18675         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'
18676         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'
18677         # Commands to make compiler produce verbose output that lists
18678         # what "hidden" libraries, object files and flags are used when
18679         # linking a shared library.
18680         #
18681         # There doesn't appear to be a way to prevent this compiler from
18682         # explicitly linking system object files so we need to strip them
18683         # from the output so that they don't get included in the library
18684         # dependencies.
18685         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'
18686
18687         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18688         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18689
18690         # Archives containing C++ object files must be created using
18691         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18692         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18693         ;;
18694       icpc*)
18695         # Intel C++
18696         with_gnu_ld=yes
18697         # version 8.0 and above of icpc choke on multiply defined symbols
18698         # if we add $predep_objects and $postdep_objects, however 7.1 and
18699         # earlier do not add the objects themselves.
18700         case `$CC -V 2>&1` in
18701         *"Version 7."*)
18702           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703           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'
18704           ;;
18705         *)  # Version 8.0 or newer
18706           tmp_idyn=
18707           case $host_cpu in
18708             ia64*) tmp_idyn=' -i_dynamic';;
18709           esac
18710           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711           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'
18712           ;;
18713         esac
18714         archive_cmds_need_lc_CXX=no
18715         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18716         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18717         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18718         ;;
18719       pgCC*)
18720         # Portland Group C++ compiler
18721         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18722         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'
18723
18724         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18725         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18726         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'
18727         ;;
18728       cxx*)
18729         # Compaq C++
18730         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18731         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'
18732
18733         runpath_var=LD_RUN_PATH
18734         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18735         hardcode_libdir_separator_CXX=:
18736
18737         # Commands to make compiler produce verbose output that lists
18738         # what "hidden" libraries, object files and flags are used when
18739         # linking a shared library.
18740         #
18741         # There doesn't appear to be a way to prevent this compiler from
18742         # explicitly linking system object files so we need to strip them
18743         # from the output so that they don't get included in the library
18744         # dependencies.
18745         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'
18746         ;;
18747     esac
18748     ;;
18749   lynxos*)
18750     # FIXME: insert proper C++ library support
18751     ld_shlibs_CXX=no
18752     ;;
18753   m88k*)
18754     # FIXME: insert proper C++ library support
18755     ld_shlibs_CXX=no
18756     ;;
18757   mvs*)
18758     case $cc_basename in
18759       cxx*)
18760         # FIXME: insert proper C++ library support
18761         ld_shlibs_CXX=no
18762         ;;
18763       *)
18764         # FIXME: insert proper C++ library support
18765         ld_shlibs_CXX=no
18766         ;;
18767     esac
18768     ;;
18769   netbsd*)
18770     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18771       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18772       wlarc=
18773       hardcode_libdir_flag_spec_CXX='-R$libdir'
18774       hardcode_direct_CXX=yes
18775       hardcode_shlibpath_var_CXX=no
18776     fi
18777     # Workaround some broken pre-1.5 toolchains
18778     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18779     ;;
18780   openbsd2*)
18781     # C++ shared libraries are fairly broken
18782     ld_shlibs_CXX=no
18783     ;;
18784   openbsd*)
18785     hardcode_direct_CXX=yes
18786     hardcode_shlibpath_var_CXX=no
18787     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18788     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18789     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18790       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18791       export_dynamic_flag_spec_CXX='${wl}-E'
18792       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18793     fi
18794     output_verbose_link_cmd='echo'
18795     ;;
18796   osf3*)
18797     case $cc_basename in
18798       KCC*)
18799         # Kuck and Associates, Inc. (KAI) C++ Compiler
18800
18801         # KCC will only create a shared library if the output file
18802         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18803         # to its proper name (with version) after linking.
18804         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'
18805
18806         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18807         hardcode_libdir_separator_CXX=:
18808
18809         # Archives containing C++ object files must be created using
18810         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18811         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18812
18813         ;;
18814       RCC*)
18815         # Rational C++ 2.4.1
18816         # FIXME: insert proper C++ library support
18817         ld_shlibs_CXX=no
18818         ;;
18819       cxx*)
18820         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18821         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'
18822
18823         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18824         hardcode_libdir_separator_CXX=:
18825
18826         # Commands to make compiler produce verbose output that lists
18827         # what "hidden" libraries, object files and flags are used when
18828         # linking a shared library.
18829         #
18830         # There doesn't appear to be a way to prevent this compiler from
18831         # explicitly linking system object files so we need to strip them
18832         # from the output so that they don't get included in the library
18833         # dependencies.
18834         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'
18835         ;;
18836       *)
18837         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18838           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18839           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'
18840
18841           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18842           hardcode_libdir_separator_CXX=:
18843
18844           # Commands to make compiler produce verbose output that lists
18845           # what "hidden" libraries, object files and flags are used when
18846           # linking a shared library.
18847           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18848
18849         else
18850           # FIXME: insert proper C++ library support
18851           ld_shlibs_CXX=no
18852         fi
18853         ;;
18854     esac
18855     ;;
18856   osf4* | osf5*)
18857     case $cc_basename in
18858       KCC*)
18859         # Kuck and Associates, Inc. (KAI) C++ Compiler
18860
18861         # KCC will only create a shared library if the output file
18862         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18863         # to its proper name (with version) after linking.
18864         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'
18865
18866         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18867         hardcode_libdir_separator_CXX=:
18868
18869         # Archives containing C++ object files must be created using
18870         # the KAI C++ compiler.
18871         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18872         ;;
18873       RCC*)
18874         # Rational C++ 2.4.1
18875         # FIXME: insert proper C++ library support
18876         ld_shlibs_CXX=no
18877         ;;
18878       cxx*)
18879         allow_undefined_flag_CXX=' -expect_unresolved \*'
18880         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'
18881         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18882           echo "-hidden">> $lib.exp~
18883           $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~
18884           $rm $lib.exp'
18885
18886         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18887         hardcode_libdir_separator_CXX=:
18888
18889         # Commands to make compiler produce verbose output that lists
18890         # what "hidden" libraries, object files and flags are used when
18891         # linking a shared library.
18892         #
18893         # There doesn't appear to be a way to prevent this compiler from
18894         # explicitly linking system object files so we need to strip them
18895         # from the output so that they don't get included in the library
18896         # dependencies.
18897         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'
18898         ;;
18899       *)
18900         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18901           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18902          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'
18903
18904           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18905           hardcode_libdir_separator_CXX=:
18906
18907           # Commands to make compiler produce verbose output that lists
18908           # what "hidden" libraries, object files and flags are used when
18909           # linking a shared library.
18910           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18911
18912         else
18913           # FIXME: insert proper C++ library support
18914           ld_shlibs_CXX=no
18915         fi
18916         ;;
18917     esac
18918     ;;
18919   psos*)
18920     # FIXME: insert proper C++ library support
18921     ld_shlibs_CXX=no
18922     ;;
18923   sunos4*)
18924     case $cc_basename in
18925       CC*)
18926         # Sun C++ 4.x
18927         # FIXME: insert proper C++ library support
18928         ld_shlibs_CXX=no
18929         ;;
18930       lcc*)
18931         # Lucid
18932         # FIXME: insert proper C++ library support
18933         ld_shlibs_CXX=no
18934         ;;
18935       *)
18936         # FIXME: insert proper C++ library support
18937         ld_shlibs_CXX=no
18938         ;;
18939     esac
18940     ;;
18941   solaris*)
18942     case $cc_basename in
18943       CC*)
18944         # Sun C++ 4.2, 5.x and Centerline C++
18945         archive_cmds_need_lc_CXX=yes
18946         no_undefined_flag_CXX=' -zdefs'
18947         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18948         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18949         $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'
18950
18951         hardcode_libdir_flag_spec_CXX='-R$libdir'
18952         hardcode_shlibpath_var_CXX=no
18953         case $host_os in
18954           solaris2.[0-5] | solaris2.[0-5].*) ;;
18955           *)
18956             # The C++ compiler is used as linker so we must use $wl
18957             # flag to pass the commands to the underlying system
18958             # linker. We must also pass each convience library through
18959             # to the system linker between allextract/defaultextract.
18960             # The C++ compiler will combine linker options so we
18961             # cannot just pass the convience library names through
18962             # without $wl.
18963             # Supported since Solaris 2.6 (maybe 2.5.1?)
18964             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'
18965             ;;
18966         esac
18967         link_all_deplibs_CXX=yes
18968
18969         output_verbose_link_cmd='echo'
18970
18971         # Archives containing C++ object files must be created using
18972         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18973         # necessary to make sure instantiated templates are included
18974         # in the archive.
18975         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18976         ;;
18977       gcx*)
18978         # Green Hills C++ Compiler
18979         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18980
18981         # The C++ compiler must be used to create the archive.
18982         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18983         ;;
18984       *)
18985         # GNU C++ compiler with Solaris linker
18986         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18987           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18988           if $CC --version | grep -v '^2\.7' > /dev/null; then
18989             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18990             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18991                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18992
18993             # Commands to make compiler produce verbose output that lists
18994             # what "hidden" libraries, object files and flags are used when
18995             # linking a shared library.
18996             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18997           else
18998             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18999             # platform.
19000             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19001             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19002                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19003
19004             # Commands to make compiler produce verbose output that lists
19005             # what "hidden" libraries, object files and flags are used when
19006             # linking a shared library.
19007             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19008           fi
19009
19010           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19011         fi
19012         ;;
19013     esac
19014     ;;
19015   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19016     no_undefined_flag_CXX='${wl}-z,text'
19017     archive_cmds_need_lc_CXX=no
19018     hardcode_shlibpath_var_CXX=no
19019     runpath_var='LD_RUN_PATH'
19020
19021     case $cc_basename in
19022       CC*)
19023         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19024         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19025         ;;
19026       *)
19027         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19028         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19029         ;;
19030     esac
19031     ;;
19032   sysv5* | sco3.2v5* | sco5v6*)
19033     # Note: We can NOT use -z defs as we might desire, because we do not
19034     # link with -lc, and that would cause any symbols used from libc to
19035     # always be unresolved, which means just about no library would
19036     # ever link correctly.  If we're not using GNU ld we use -z text
19037     # though, which does catch some bad symbols but isn't as heavy-handed
19038     # as -z defs.
19039     # For security reasons, it is highly recommended that you always
19040     # use absolute paths for naming shared libraries, and exclude the
19041     # DT_RUNPATH tag from executables and libraries.  But doing so
19042     # requires that you compile everything twice, which is a pain.
19043     # So that behaviour is only enabled if SCOABSPATH is set to a
19044     # non-empty value in the environment.  Most likely only useful for
19045     # creating official distributions of packages.
19046     # This is a hack until libtool officially supports absolute path
19047     # names for shared libraries.
19048     no_undefined_flag_CXX='${wl}-z,text'
19049     allow_undefined_flag_CXX='${wl}-z,nodefs'
19050     archive_cmds_need_lc_CXX=no
19051     hardcode_shlibpath_var_CXX=no
19052     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19053     hardcode_libdir_separator_CXX=':'
19054     link_all_deplibs_CXX=yes
19055     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19056     runpath_var='LD_RUN_PATH'
19057
19058     case $cc_basename in
19059       CC*)
19060         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19061         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19062         ;;
19063       *)
19064         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19065         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19066         ;;
19067     esac
19068     ;;
19069   tandem*)
19070     case $cc_basename in
19071       NCC*)
19072         # NonStop-UX NCC 3.20
19073         # FIXME: insert proper C++ library support
19074         ld_shlibs_CXX=no
19075         ;;
19076       *)
19077         # FIXME: insert proper C++ library support
19078         ld_shlibs_CXX=no
19079         ;;
19080     esac
19081     ;;
19082   vxworks*)
19083     # FIXME: insert proper C++ library support
19084     ld_shlibs_CXX=no
19085     ;;
19086   *)
19087     # FIXME: insert proper C++ library support
19088     ld_shlibs_CXX=no
19089     ;;
19090 esac
19091 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19092 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19093 test "$ld_shlibs_CXX" = no && can_build_shared=no
19094
19095 GCC_CXX="$GXX"
19096 LD_CXX="$LD"
19097
19098
19099 cat > conftest.$ac_ext <<EOF
19100 class Foo
19101 {
19102 public:
19103   Foo (void) { a = 0; }
19104 private:
19105   int a;
19106 };
19107 EOF
19108
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110   (eval $ac_compile) 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); }; then
19114   # Parse the compiler output and extract the necessary
19115   # objects, libraries and library flags.
19116
19117   # Sentinel used to keep track of whether or not we are before
19118   # the conftest object file.
19119   pre_test_object_deps_done=no
19120
19121   # The `*' in the case matches for architectures that use `case' in
19122   # $output_verbose_cmd can trigger glob expansion during the loop
19123   # eval without this substitution.
19124   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19125
19126   for p in `eval $output_verbose_link_cmd`; do
19127     case $p in
19128
19129     -L* | -R* | -l*)
19130        # Some compilers place space between "-{L,R}" and the path.
19131        # Remove the space.
19132        if test $p = "-L" \
19133           || test $p = "-R"; then
19134          prev=$p
19135          continue
19136        else
19137          prev=
19138        fi
19139
19140        if test "$pre_test_object_deps_done" = no; then
19141          case $p in
19142          -L* | -R*)
19143            # Internal compiler library paths should come after those
19144            # provided the user.  The postdeps already come after the
19145            # user supplied libs so there is no need to process them.
19146            if test -z "$compiler_lib_search_path_CXX"; then
19147              compiler_lib_search_path_CXX="${prev}${p}"
19148            else
19149              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19150            fi
19151            ;;
19152          # The "-l" case would never come before the object being
19153          # linked, so don't bother handling this case.
19154          esac
19155        else
19156          if test -z "$postdeps_CXX"; then
19157            postdeps_CXX="${prev}${p}"
19158          else
19159            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19160          fi
19161        fi
19162        ;;
19163
19164     *.$objext)
19165        # This assumes that the test object file only shows up
19166        # once in the compiler output.
19167        if test "$p" = "conftest.$objext"; then
19168          pre_test_object_deps_done=yes
19169          continue
19170        fi
19171
19172        if test "$pre_test_object_deps_done" = no; then
19173          if test -z "$predep_objects_CXX"; then
19174            predep_objects_CXX="$p"
19175          else
19176            predep_objects_CXX="$predep_objects_CXX $p"
19177          fi
19178        else
19179          if test -z "$postdep_objects_CXX"; then
19180            postdep_objects_CXX="$p"
19181          else
19182            postdep_objects_CXX="$postdep_objects_CXX $p"
19183          fi
19184        fi
19185        ;;
19186
19187     *) ;; # Ignore the rest.
19188
19189     esac
19190   done
19191
19192   # Clean up.
19193   rm -f a.out a.exe
19194 else
19195   echo "libtool.m4: error: problem compiling CXX test program"
19196 fi
19197
19198 $rm -f confest.$objext
19199
19200 # PORTME: override above test on systems where it is broken
19201 case $host_os in
19202 interix3*)
19203   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19204   # hack all around it, let's just trust "g++" to DTRT.
19205   predep_objects_CXX=
19206   postdep_objects_CXX=
19207   postdeps_CXX=
19208   ;;
19209
19210 solaris*)
19211   case $cc_basename in
19212   CC*)
19213     # Adding this requires a known-good setup of shared libraries for
19214     # Sun compiler versions before 5.6, else PIC objects from an old
19215     # archive will be linked into the output, leading to subtle bugs.
19216     postdeps_CXX='-lCstd -lCrun'
19217     ;;
19218   esac
19219   ;;
19220 esac
19221
19222
19223 case " $postdeps_CXX " in
19224 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19225 esac
19226
19227 lt_prog_compiler_wl_CXX=
19228 lt_prog_compiler_pic_CXX=
19229 lt_prog_compiler_static_CXX=
19230
19231 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19232 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19233
19234   # C++ specific cases for pic, static, wl, etc.
19235   if test "$GXX" = yes; then
19236     lt_prog_compiler_wl_CXX='-Wl,'
19237     lt_prog_compiler_static_CXX='-static'
19238
19239     case $host_os in
19240     aix*)
19241       # All AIX code is PIC.
19242       if test "$host_cpu" = ia64; then
19243         # AIX 5 now supports IA64 processor
19244         lt_prog_compiler_static_CXX='-Bstatic'
19245       fi
19246       ;;
19247     amigaos*)
19248       # FIXME: we need at least 68020 code to build shared libraries, but
19249       # adding the `-m68020' flag to GCC prevents building anything better,
19250       # like `-m68040'.
19251       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19252       ;;
19253     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19254       # PIC is the default for these OSes.
19255       ;;
19256     mingw* | os2* | pw32*)
19257       # This hack is so that the source file can tell whether it is being
19258       # built for inclusion in a dll (and should export symbols for example).
19259       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19260       ;;
19261     darwin* | rhapsody*)
19262       # PIC is the default on this platform
19263       # Common symbols not allowed in MH_DYLIB files
19264       lt_prog_compiler_pic_CXX='-fno-common'
19265       ;;
19266     *djgpp*)
19267       # DJGPP does not support shared libraries at all
19268       lt_prog_compiler_pic_CXX=
19269       ;;
19270     interix3*)
19271       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19272       # Instead, we relocate shared libraries at runtime.
19273       ;;
19274     sysv4*MP*)
19275       if test -d /usr/nec; then
19276         lt_prog_compiler_pic_CXX=-Kconform_pic
19277       fi
19278       ;;
19279     hpux*)
19280       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19281       # not for PA HP-UX.
19282       case $host_cpu in
19283       hppa*64*|ia64*)
19284         ;;
19285       *)
19286         lt_prog_compiler_pic_CXX='-fPIC'
19287         ;;
19288       esac
19289       ;;
19290     *)
19291       lt_prog_compiler_pic_CXX='-fPIC'
19292       ;;
19293     esac
19294   else
19295     case $host_os in
19296       aix4* | aix5*)
19297         # All AIX code is PIC.
19298         if test "$host_cpu" = ia64; then
19299           # AIX 5 now supports IA64 processor
19300           lt_prog_compiler_static_CXX='-Bstatic'
19301         else
19302           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19303         fi
19304         ;;
19305       chorus*)
19306         case $cc_basename in
19307         cxch68*)
19308           # Green Hills C++ Compiler
19309           # _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"
19310           ;;
19311         esac
19312         ;;
19313        darwin*)
19314          # PIC is the default on this platform
19315          # Common symbols not allowed in MH_DYLIB files
19316          case $cc_basename in
19317            xlc*)
19318            lt_prog_compiler_pic_CXX='-qnocommon'
19319            lt_prog_compiler_wl_CXX='-Wl,'
19320            ;;
19321          esac
19322        ;;
19323       dgux*)
19324         case $cc_basename in
19325           ec++*)
19326             lt_prog_compiler_pic_CXX='-KPIC'
19327             ;;
19328           ghcx*)
19329             # Green Hills C++ Compiler
19330             lt_prog_compiler_pic_CXX='-pic'
19331             ;;
19332           *)
19333             ;;
19334         esac
19335         ;;
19336       freebsd* | kfreebsd*-gnu | dragonfly*)
19337         # FreeBSD uses GNU C++
19338         ;;
19339       hpux9* | hpux10* | hpux11*)
19340         case $cc_basename in
19341           CC*)
19342             lt_prog_compiler_wl_CXX='-Wl,'
19343             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19344             if test "$host_cpu" != ia64; then
19345               lt_prog_compiler_pic_CXX='+Z'
19346             fi
19347             ;;
19348           aCC*)
19349             lt_prog_compiler_wl_CXX='-Wl,'
19350             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19351             case $host_cpu in
19352             hppa*64*|ia64*)
19353               # +Z the default
19354               ;;
19355             *)
19356               lt_prog_compiler_pic_CXX='+Z'
19357               ;;
19358             esac
19359             ;;
19360           *)
19361             ;;
19362         esac
19363         ;;
19364       interix*)
19365         # This is c89, which is MS Visual C++ (no shared libs)
19366         # Anyone wants to do a port?
19367         ;;
19368       irix5* | irix6* | nonstopux*)
19369         case $cc_basename in
19370           CC*)
19371             lt_prog_compiler_wl_CXX='-Wl,'
19372             lt_prog_compiler_static_CXX='-non_shared'
19373             # CC pic flag -KPIC is the default.
19374             ;;
19375           *)
19376             ;;
19377         esac
19378         ;;
19379       linux*)
19380         case $cc_basename in
19381           KCC*)
19382             # KAI C++ Compiler
19383             lt_prog_compiler_wl_CXX='--backend -Wl,'
19384             lt_prog_compiler_pic_CXX='-fPIC'
19385             ;;
19386           icpc* | ecpc*)
19387             # Intel C++
19388             lt_prog_compiler_wl_CXX='-Wl,'
19389             lt_prog_compiler_pic_CXX='-KPIC'
19390             lt_prog_compiler_static_CXX='-static'
19391             ;;
19392           pgCC*)
19393             # Portland Group C++ compiler.
19394             lt_prog_compiler_wl_CXX='-Wl,'
19395             lt_prog_compiler_pic_CXX='-fpic'
19396             lt_prog_compiler_static_CXX='-Bstatic'
19397             ;;
19398           cxx*)
19399             # Compaq C++
19400             # Make sure the PIC flag is empty.  It appears that all Alpha
19401             # Linux and Compaq Tru64 Unix objects are PIC.
19402             lt_prog_compiler_pic_CXX=
19403             lt_prog_compiler_static_CXX='-non_shared'
19404             ;;
19405           *)
19406             ;;
19407         esac
19408         ;;
19409       lynxos*)
19410         ;;
19411       m88k*)
19412         ;;
19413       mvs*)
19414         case $cc_basename in
19415           cxx*)
19416             lt_prog_compiler_pic_CXX='-W c,exportall'
19417             ;;
19418           *)
19419             ;;
19420         esac
19421         ;;
19422       netbsd*)
19423         ;;
19424       osf3* | osf4* | osf5*)
19425         case $cc_basename in
19426           KCC*)
19427             lt_prog_compiler_wl_CXX='--backend -Wl,'
19428             ;;
19429           RCC*)
19430             # Rational C++ 2.4.1
19431             lt_prog_compiler_pic_CXX='-pic'
19432             ;;
19433           cxx*)
19434             # Digital/Compaq C++
19435             lt_prog_compiler_wl_CXX='-Wl,'
19436             # Make sure the PIC flag is empty.  It appears that all Alpha
19437             # Linux and Compaq Tru64 Unix objects are PIC.
19438             lt_prog_compiler_pic_CXX=
19439             lt_prog_compiler_static_CXX='-non_shared'
19440             ;;
19441           *)
19442             ;;
19443         esac
19444         ;;
19445       psos*)
19446         ;;
19447       solaris*)
19448         case $cc_basename in
19449           CC*)
19450             # Sun C++ 4.2, 5.x and Centerline C++
19451             lt_prog_compiler_pic_CXX='-KPIC'
19452             lt_prog_compiler_static_CXX='-Bstatic'
19453             lt_prog_compiler_wl_CXX='-Qoption ld '
19454             ;;
19455           gcx*)
19456             # Green Hills C++ Compiler
19457             lt_prog_compiler_pic_CXX='-PIC'
19458             ;;
19459           *)
19460             ;;
19461         esac
19462         ;;
19463       sunos4*)
19464         case $cc_basename in
19465           CC*)
19466             # Sun C++ 4.x
19467             lt_prog_compiler_pic_CXX='-pic'
19468             lt_prog_compiler_static_CXX='-Bstatic'
19469             ;;
19470           lcc*)
19471             # Lucid
19472             lt_prog_compiler_pic_CXX='-pic'
19473             ;;
19474           *)
19475             ;;
19476         esac
19477         ;;
19478       tandem*)
19479         case $cc_basename in
19480           NCC*)
19481             # NonStop-UX NCC 3.20
19482             lt_prog_compiler_pic_CXX='-KPIC'
19483             ;;
19484           *)
19485             ;;
19486         esac
19487         ;;
19488       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19489         case $cc_basename in
19490           CC*)
19491             lt_prog_compiler_wl_CXX='-Wl,'
19492             lt_prog_compiler_pic_CXX='-KPIC'
19493             lt_prog_compiler_static_CXX='-Bstatic'
19494             ;;
19495         esac
19496         ;;
19497       vxworks*)
19498         ;;
19499       *)
19500         lt_prog_compiler_can_build_shared_CXX=no
19501         ;;
19502     esac
19503   fi
19504
19505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19506 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19507
19508 #
19509 # Check to make sure the PIC flag actually works.
19510 #
19511 if test -n "$lt_prog_compiler_pic_CXX"; then
19512
19513 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19514 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19515 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   lt_prog_compiler_pic_works_CXX=no
19519   ac_outfile=conftest.$ac_objext
19520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19521    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19522    # Insert the option either (1) after the last *FLAGS variable, or
19523    # (2) before a word containing "conftest.", or (3) at the end.
19524    # Note that $ac_compile itself does not contain backslashes and begins
19525    # with a dollar sign (not a hyphen), so the echo should work correctly.
19526    # The option is referenced via a variable to avoid confusing sed.
19527    lt_compile=`echo "$ac_compile" | $SED \
19528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19530    -e 's:$: $lt_compiler_flag:'`
19531    (eval echo "\"\$as_me:19531: $lt_compile\"" >&5)
19532    (eval "$lt_compile" 2>conftest.err)
19533    ac_status=$?
19534    cat conftest.err >&5
19535    echo "$as_me:19535: \$? = $ac_status" >&5
19536    if (exit $ac_status) && test -s "$ac_outfile"; then
19537      # The compiler can only warn and ignore the option if not recognized
19538      # So say no if there are warnings other than the usual output.
19539      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19540      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19541      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19542        lt_prog_compiler_pic_works_CXX=yes
19543      fi
19544    fi
19545    $rm conftest*
19546
19547 fi
19548 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19549 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19550
19551 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19552     case $lt_prog_compiler_pic_CXX in
19553      "" | " "*) ;;
19554      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19555      esac
19556 else
19557     lt_prog_compiler_pic_CXX=
19558      lt_prog_compiler_can_build_shared_CXX=no
19559 fi
19560
19561 fi
19562 case $host_os in
19563   # For platforms which do not support PIC, -DPIC is meaningless:
19564   *djgpp*)
19565     lt_prog_compiler_pic_CXX=
19566     ;;
19567   *)
19568     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19569     ;;
19570 esac
19571
19572 #
19573 # Check to make sure the static flag actually works.
19574 #
19575 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19576 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19577 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19578 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   lt_prog_compiler_static_works_CXX=no
19582    save_LDFLAGS="$LDFLAGS"
19583    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19584    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19585    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19586      # The linker can only warn and ignore the option if not recognized
19587      # So say no if there are warnings
19588      if test -s conftest.err; then
19589        # Append any errors to the config.log.
19590        cat conftest.err 1>&5
19591        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19592        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19593        if diff conftest.exp conftest.er2 >/dev/null; then
19594          lt_prog_compiler_static_works_CXX=yes
19595        fi
19596      else
19597        lt_prog_compiler_static_works_CXX=yes
19598      fi
19599    fi
19600    $rm conftest*
19601    LDFLAGS="$save_LDFLAGS"
19602
19603 fi
19604 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19605 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19606
19607 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19608     :
19609 else
19610     lt_prog_compiler_static_CXX=
19611 fi
19612
19613
19614 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19617   echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619   lt_cv_prog_compiler_c_o_CXX=no
19620    $rm -r conftest 2>/dev/null
19621    mkdir conftest
19622    cd conftest
19623    mkdir out
19624    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19625
19626    lt_compiler_flag="-o out/conftest2.$ac_objext"
19627    # Insert the option either (1) after the last *FLAGS variable, or
19628    # (2) before a word containing "conftest.", or (3) at the end.
19629    # Note that $ac_compile itself does not contain backslashes and begins
19630    # with a dollar sign (not a hyphen), so the echo should work correctly.
19631    lt_compile=`echo "$ac_compile" | $SED \
19632    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19633    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19634    -e 's:$: $lt_compiler_flag:'`
19635    (eval echo "\"\$as_me:19635: $lt_compile\"" >&5)
19636    (eval "$lt_compile" 2>out/conftest.err)
19637    ac_status=$?
19638    cat out/conftest.err >&5
19639    echo "$as_me:19639: \$? = $ac_status" >&5
19640    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19641    then
19642      # The compiler can only warn and ignore the option if not recognized
19643      # So say no if there are warnings
19644      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19645      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19646      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19647        lt_cv_prog_compiler_c_o_CXX=yes
19648      fi
19649    fi
19650    chmod u+w . 2>&5
19651    $rm conftest*
19652    # SGI C++ compiler will create directory out/ii_files/ for
19653    # template instantiation
19654    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19655    $rm out/* && rmdir out
19656    cd ..
19657    rmdir conftest
19658    $rm conftest*
19659
19660 fi
19661 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19663
19664
19665 hard_links="nottested"
19666 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19667   # do not overwrite the value of need_locks provided by the user
19668   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19669 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19670   hard_links=yes
19671   $rm conftest*
19672   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19673   touch conftest.a
19674   ln conftest.a conftest.b 2>&5 || hard_links=no
19675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19676   { echo "$as_me:$LINENO: result: $hard_links" >&5
19677 echo "${ECHO_T}$hard_links" >&6; }
19678   if test "$hard_links" = no; then
19679     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19681     need_locks=warn
19682   fi
19683 else
19684   need_locks=no
19685 fi
19686
19687 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19689
19690   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19691   case $host_os in
19692   aix4* | aix5*)
19693     # If we're using GNU nm, then we don't want the "-C" option.
19694     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19695     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19696       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'
19697     else
19698       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'
19699     fi
19700     ;;
19701   pw32*)
19702     export_symbols_cmds_CXX="$ltdll_cmds"
19703   ;;
19704   cygwin* | mingw*)
19705     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'
19706   ;;
19707   *)
19708     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19709   ;;
19710   esac
19711
19712 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19713 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19714 test "$ld_shlibs_CXX" = no && can_build_shared=no
19715
19716 #
19717 # Do we need to explicitly link libc?
19718 #
19719 case "x$archive_cmds_need_lc_CXX" in
19720 x|xyes)
19721   # Assume -lc should be added
19722   archive_cmds_need_lc_CXX=yes
19723
19724   if test "$enable_shared" = yes && test "$GCC" = yes; then
19725     case $archive_cmds_CXX in
19726     *'~'*)
19727       # FIXME: we may have to deal with multi-command sequences.
19728       ;;
19729     '$CC '*)
19730       # Test whether the compiler implicitly links with -lc since on some
19731       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19732       # to ld, don't add -lc before -lgcc.
19733       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19735       $rm conftest*
19736       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19737
19738       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739   (eval $ac_compile) 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); } 2>conftest.err; then
19743         soname=conftest
19744         lib=conftest
19745         libobjs=conftest.$ac_objext
19746         deplibs=
19747         wl=$lt_prog_compiler_wl_CXX
19748         pic_flag=$lt_prog_compiler_pic_CXX
19749         compiler_flags=-v
19750         linker_flags=-v
19751         verstring=
19752         output_objdir=.
19753         libname=conftest
19754         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19755         allow_undefined_flag_CXX=
19756         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19757   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19758   ac_status=$?
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); }
19761         then
19762           archive_cmds_need_lc_CXX=no
19763         else
19764           archive_cmds_need_lc_CXX=yes
19765         fi
19766         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19767       else
19768         cat conftest.err 1>&5
19769       fi
19770       $rm conftest*
19771       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19772 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19773       ;;
19774     esac
19775   fi
19776   ;;
19777 esac
19778
19779 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19781 library_names_spec=
19782 libname_spec='lib$name'
19783 soname_spec=
19784 shrext_cmds=".so"
19785 postinstall_cmds=
19786 postuninstall_cmds=
19787 finish_cmds=
19788 finish_eval=
19789 shlibpath_var=
19790 shlibpath_overrides_runpath=unknown
19791 version_type=none
19792 dynamic_linker="$host_os ld.so"
19793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19794 if test "$GCC" = yes; then
19795   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19796   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19797     # if the path contains ";" then we assume it to be the separator
19798     # otherwise default to the standard path separator (i.e. ":") - it is
19799     # assumed that no part of a normal pathname contains ";" but that should
19800     # okay in the real world where ";" in dirpaths is itself problematic.
19801     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19802   else
19803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19804   fi
19805 else
19806   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19807 fi
19808 need_lib_prefix=unknown
19809 hardcode_into_libs=no
19810
19811 # when you set need_version to no, make sure it does not cause -set_version
19812 # flags to be left without arguments
19813 need_version=unknown
19814
19815 case $host_os in
19816 aix3*)
19817   version_type=linux
19818   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19819   shlibpath_var=LIBPATH
19820
19821   # AIX 3 has no versioning support, so we append a major version to the name.
19822   soname_spec='${libname}${release}${shared_ext}$major'
19823   ;;
19824
19825 aix4* | aix5*)
19826   version_type=linux
19827   need_lib_prefix=no
19828   need_version=no
19829   hardcode_into_libs=yes
19830   if test "$host_cpu" = ia64; then
19831     # AIX 5 supports IA64
19832     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19833     shlibpath_var=LD_LIBRARY_PATH
19834   else
19835     # With GCC up to 2.95.x, collect2 would create an import file
19836     # for dependence libraries.  The import file would start with
19837     # the line `#! .'.  This would cause the generated library to
19838     # depend on `.', always an invalid library.  This was fixed in
19839     # development snapshots of GCC prior to 3.0.
19840     case $host_os in
19841       aix4 | aix4.[01] | aix4.[01].*)
19842       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19843            echo ' yes '
19844            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19845         :
19846       else
19847         can_build_shared=no
19848       fi
19849       ;;
19850     esac
19851     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19852     # soname into executable. Probably we can add versioning support to
19853     # collect2, so additional links can be useful in future.
19854     if test "$aix_use_runtimelinking" = yes; then
19855       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19856       # instead of lib<name>.a to let people know that these are not
19857       # typical AIX shared libraries.
19858       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859     else
19860       # We preserve .a as extension for shared libraries through AIX4.2
19861       # and later when we are not doing run time linking.
19862       library_names_spec='${libname}${release}.a $libname.a'
19863       soname_spec='${libname}${release}${shared_ext}$major'
19864     fi
19865     shlibpath_var=LIBPATH
19866   fi
19867   ;;
19868
19869 amigaos*)
19870   library_names_spec='$libname.ixlibrary $libname.a'
19871   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19872   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'
19873   ;;
19874
19875 beos*)
19876   library_names_spec='${libname}${shared_ext}'
19877   dynamic_linker="$host_os ld.so"
19878   shlibpath_var=LIBRARY_PATH
19879   ;;
19880
19881 bsdi[45]*)
19882   version_type=linux
19883   need_version=no
19884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19885   soname_spec='${libname}${release}${shared_ext}$major'
19886   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19887   shlibpath_var=LD_LIBRARY_PATH
19888   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19889   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19890   # the default ld.so.conf also contains /usr/contrib/lib and
19891   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19892   # libtool to hard-code these into programs
19893   ;;
19894
19895 cygwin* | mingw* | pw32*)
19896   version_type=windows
19897   shrext_cmds=".dll"
19898   need_version=no
19899   need_lib_prefix=no
19900
19901   case $GCC,$host_os in
19902   yes,cygwin* | yes,mingw* | yes,pw32*)
19903     library_names_spec='$libname.dll.a'
19904     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19905     postinstall_cmds='base_file=`basename \${file}`~
19906       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19907       dldir=$destdir/`dirname \$dlpath`~
19908       test -d \$dldir || mkdir -p \$dldir~
19909       $install_prog $dir/$dlname \$dldir/$dlname~
19910       chmod a+x \$dldir/$dlname'
19911     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19912       dlpath=$dir/\$dldll~
19913        $rm \$dlpath'
19914     shlibpath_overrides_runpath=yes
19915
19916     case $host_os in
19917     cygwin*)
19918       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19919       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19920       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19921       ;;
19922     mingw*)
19923       # MinGW DLLs use traditional 'lib' prefix
19924       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19925       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19926       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19927         # It is most probably a Windows format PATH printed by
19928         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19929         # path with ; separators, and with drive letters. We can handle the
19930         # drive letters (cygwin fileutils understands them), so leave them,
19931         # especially as we might pass files found there to a mingw objdump,
19932         # which wouldn't understand a cygwinified path. Ahh.
19933         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19934       else
19935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19936       fi
19937       ;;
19938     pw32*)
19939       # pw32 DLLs use 'pw' prefix rather than 'lib'
19940       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19941       ;;
19942     esac
19943     ;;
19944
19945   *)
19946     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19947     ;;
19948   esac
19949   dynamic_linker='Win32 ld.exe'
19950   # FIXME: first we should search . and the directory the executable is in
19951   shlibpath_var=PATH
19952   ;;
19953
19954 darwin* | rhapsody*)
19955   dynamic_linker="$host_os dyld"
19956   version_type=darwin
19957   need_lib_prefix=no
19958   need_version=no
19959   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19960   soname_spec='${libname}${release}${major}$shared_ext'
19961   shlibpath_overrides_runpath=yes
19962   shlibpath_var=DYLD_LIBRARY_PATH
19963   shrext_cmds='.dylib'
19964   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19965   if test "$GCC" = yes; then
19966     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"`
19967   else
19968     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19969   fi
19970   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19971   ;;
19972
19973 dgux*)
19974   version_type=linux
19975   need_lib_prefix=no
19976   need_version=no
19977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19978   soname_spec='${libname}${release}${shared_ext}$major'
19979   shlibpath_var=LD_LIBRARY_PATH
19980   ;;
19981
19982 freebsd1*)
19983   dynamic_linker=no
19984   ;;
19985
19986 kfreebsd*-gnu)
19987   version_type=linux
19988   need_lib_prefix=no
19989   need_version=no
19990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19991   soname_spec='${libname}${release}${shared_ext}$major'
19992   shlibpath_var=LD_LIBRARY_PATH
19993   shlibpath_overrides_runpath=no
19994   hardcode_into_libs=yes
19995   dynamic_linker='GNU ld.so'
19996   ;;
19997
19998 freebsd* | dragonfly*)
19999   # DragonFly does not have aout.  When/if they implement a new
20000   # versioning mechanism, adjust this.
20001   if test -x /usr/bin/objformat; then
20002     objformat=`/usr/bin/objformat`
20003   else
20004     case $host_os in
20005     freebsd[123]*) objformat=aout ;;
20006     *) objformat=elf ;;
20007     esac
20008   fi
20009   version_type=freebsd-$objformat
20010   case $version_type in
20011     freebsd-elf*)
20012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20013       need_version=no
20014       need_lib_prefix=no
20015       ;;
20016     freebsd-*)
20017       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20018       need_version=yes
20019       ;;
20020   esac
20021   shlibpath_var=LD_LIBRARY_PATH
20022   case $host_os in
20023   freebsd2*)
20024     shlibpath_overrides_runpath=yes
20025     ;;
20026   freebsd3.[01]* | freebsdelf3.[01]*)
20027     shlibpath_overrides_runpath=yes
20028     hardcode_into_libs=yes
20029     ;;
20030   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20031   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20032     shlibpath_overrides_runpath=no
20033     hardcode_into_libs=yes
20034     ;;
20035   freebsd*) # from 4.6 on
20036     shlibpath_overrides_runpath=yes
20037     hardcode_into_libs=yes
20038     ;;
20039   esac
20040   ;;
20041
20042 gnu*)
20043   version_type=linux
20044   need_lib_prefix=no
20045   need_version=no
20046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20047   soname_spec='${libname}${release}${shared_ext}$major'
20048   shlibpath_var=LD_LIBRARY_PATH
20049   hardcode_into_libs=yes
20050   ;;
20051
20052 hpux9* | hpux10* | hpux11*)
20053   # Give a soname corresponding to the major version so that dld.sl refuses to
20054   # link against other versions.
20055   version_type=sunos
20056   need_lib_prefix=no
20057   need_version=no
20058   case $host_cpu in
20059   ia64*)
20060     shrext_cmds='.so'
20061     hardcode_into_libs=yes
20062     dynamic_linker="$host_os dld.so"
20063     shlibpath_var=LD_LIBRARY_PATH
20064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20066     soname_spec='${libname}${release}${shared_ext}$major'
20067     if test "X$HPUX_IA64_MODE" = X32; then
20068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20069     else
20070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20071     fi
20072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20073     ;;
20074    hppa*64*)
20075      shrext_cmds='.sl'
20076      hardcode_into_libs=yes
20077      dynamic_linker="$host_os dld.sl"
20078      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20079      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20081      soname_spec='${libname}${release}${shared_ext}$major'
20082      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20083      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20084      ;;
20085    *)
20086     shrext_cmds='.sl'
20087     dynamic_linker="$host_os dld.sl"
20088     shlibpath_var=SHLIB_PATH
20089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091     soname_spec='${libname}${release}${shared_ext}$major'
20092     ;;
20093   esac
20094   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20095   postinstall_cmds='chmod 555 $lib'
20096   ;;
20097
20098 interix3*)
20099   version_type=linux
20100   need_lib_prefix=no
20101   need_version=no
20102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20103   soname_spec='${libname}${release}${shared_ext}$major'
20104   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20105   shlibpath_var=LD_LIBRARY_PATH
20106   shlibpath_overrides_runpath=no
20107   hardcode_into_libs=yes
20108   ;;
20109
20110 irix5* | irix6* | nonstopux*)
20111   case $host_os in
20112     nonstopux*) version_type=nonstopux ;;
20113     *)
20114         if test "$lt_cv_prog_gnu_ld" = yes; then
20115                 version_type=linux
20116         else
20117                 version_type=irix
20118         fi ;;
20119   esac
20120   need_lib_prefix=no
20121   need_version=no
20122   soname_spec='${libname}${release}${shared_ext}$major'
20123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20124   case $host_os in
20125   irix5* | nonstopux*)
20126     libsuff= shlibsuff=
20127     ;;
20128   *)
20129     case $LD in # libtool.m4 will add one of these switches to LD
20130     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20131       libsuff= shlibsuff= libmagic=32-bit;;
20132     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20133       libsuff=32 shlibsuff=N32 libmagic=N32;;
20134     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20135       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20136     *) libsuff= shlibsuff= libmagic=never-match;;
20137     esac
20138     ;;
20139   esac
20140   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20141   shlibpath_overrides_runpath=no
20142   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20143   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20144   hardcode_into_libs=yes
20145   ;;
20146
20147 # No shared lib support for Linux oldld, aout, or coff.
20148 linux*oldld* | linux*aout* | linux*coff*)
20149   dynamic_linker=no
20150   ;;
20151
20152 # This must be Linux ELF.
20153 linux*)
20154   version_type=linux
20155   need_lib_prefix=no
20156   need_version=no
20157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158   soname_spec='${libname}${release}${shared_ext}$major'
20159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20160   shlibpath_var=LD_LIBRARY_PATH
20161   shlibpath_overrides_runpath=no
20162   # This implies no fast_install, which is unacceptable.
20163   # Some rework will be needed to allow for fast_install
20164   # before this can be enabled.
20165   hardcode_into_libs=yes
20166
20167   # Append ld.so.conf contents to the search path
20168   if test -f /etc/ld.so.conf; then
20169     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' ' '`
20170     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20171   fi
20172
20173   # We used to test for /lib/ld.so.1 and disable shared libraries on
20174   # powerpc, because MkLinux only supported shared libraries with the
20175   # GNU dynamic linker.  Since this was broken with cross compilers,
20176   # most powerpc-linux boxes support dynamic linking these days and
20177   # people can always --disable-shared, the test was removed, and we
20178   # assume the GNU/Linux dynamic linker is in use.
20179   dynamic_linker='GNU/Linux ld.so'
20180   ;;
20181
20182 knetbsd*-gnu)
20183   version_type=linux
20184   need_lib_prefix=no
20185   need_version=no
20186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187   soname_spec='${libname}${release}${shared_ext}$major'
20188   shlibpath_var=LD_LIBRARY_PATH
20189   shlibpath_overrides_runpath=no
20190   hardcode_into_libs=yes
20191   dynamic_linker='GNU ld.so'
20192   ;;
20193
20194 netbsd*)
20195   version_type=sunos
20196   need_lib_prefix=no
20197   need_version=no
20198   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20200     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20201     dynamic_linker='NetBSD (a.out) ld.so'
20202   else
20203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20204     soname_spec='${libname}${release}${shared_ext}$major'
20205     dynamic_linker='NetBSD ld.elf_so'
20206   fi
20207   shlibpath_var=LD_LIBRARY_PATH
20208   shlibpath_overrides_runpath=yes
20209   hardcode_into_libs=yes
20210   ;;
20211
20212 newsos6)
20213   version_type=linux
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215   shlibpath_var=LD_LIBRARY_PATH
20216   shlibpath_overrides_runpath=yes
20217   ;;
20218
20219 nto-qnx*)
20220   version_type=linux
20221   need_lib_prefix=no
20222   need_version=no
20223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20224   soname_spec='${libname}${release}${shared_ext}$major'
20225   shlibpath_var=LD_LIBRARY_PATH
20226   shlibpath_overrides_runpath=yes
20227   ;;
20228
20229 openbsd*)
20230   version_type=sunos
20231   sys_lib_dlsearch_path_spec="/usr/lib"
20232   need_lib_prefix=no
20233   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20234   case $host_os in
20235     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20236     *)                         need_version=no  ;;
20237   esac
20238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20239   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20240   shlibpath_var=LD_LIBRARY_PATH
20241   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20242     case $host_os in
20243       openbsd2.[89] | openbsd2.[89].*)
20244         shlibpath_overrides_runpath=no
20245         ;;
20246       *)
20247         shlibpath_overrides_runpath=yes
20248         ;;
20249       esac
20250   else
20251     shlibpath_overrides_runpath=yes
20252   fi
20253   ;;
20254
20255 os2*)
20256   libname_spec='$name'
20257   shrext_cmds=".dll"
20258   need_lib_prefix=no
20259   library_names_spec='$libname${shared_ext} $libname.a'
20260   dynamic_linker='OS/2 ld.exe'
20261   shlibpath_var=LIBPATH
20262   ;;
20263
20264 osf3* | osf4* | osf5*)
20265   version_type=osf
20266   need_lib_prefix=no
20267   need_version=no
20268   soname_spec='${libname}${release}${shared_ext}$major'
20269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270   shlibpath_var=LD_LIBRARY_PATH
20271   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20272   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20273   ;;
20274
20275 solaris*)
20276   version_type=linux
20277   need_lib_prefix=no
20278   need_version=no
20279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280   soname_spec='${libname}${release}${shared_ext}$major'
20281   shlibpath_var=LD_LIBRARY_PATH
20282   shlibpath_overrides_runpath=yes
20283   hardcode_into_libs=yes
20284   # ldd complains unless libraries are executable
20285   postinstall_cmds='chmod +x $lib'
20286   ;;
20287
20288 sunos4*)
20289   version_type=sunos
20290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20291   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20292   shlibpath_var=LD_LIBRARY_PATH
20293   shlibpath_overrides_runpath=yes
20294   if test "$with_gnu_ld" = yes; then
20295     need_lib_prefix=no
20296   fi
20297   need_version=yes
20298   ;;
20299
20300 sysv4 | sysv4.3*)
20301   version_type=linux
20302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303   soname_spec='${libname}${release}${shared_ext}$major'
20304   shlibpath_var=LD_LIBRARY_PATH
20305   case $host_vendor in
20306     sni)
20307       shlibpath_overrides_runpath=no
20308       need_lib_prefix=no
20309       export_dynamic_flag_spec='${wl}-Blargedynsym'
20310       runpath_var=LD_RUN_PATH
20311       ;;
20312     siemens)
20313       need_lib_prefix=no
20314       ;;
20315     motorola)
20316       need_lib_prefix=no
20317       need_version=no
20318       shlibpath_overrides_runpath=no
20319       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20320       ;;
20321   esac
20322   ;;
20323
20324 sysv4*MP*)
20325   if test -d /usr/nec ;then
20326     version_type=linux
20327     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20328     soname_spec='$libname${shared_ext}.$major'
20329     shlibpath_var=LD_LIBRARY_PATH
20330   fi
20331   ;;
20332
20333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20334   version_type=freebsd-elf
20335   need_lib_prefix=no
20336   need_version=no
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20338   soname_spec='${libname}${release}${shared_ext}$major'
20339   shlibpath_var=LD_LIBRARY_PATH
20340   hardcode_into_libs=yes
20341   if test "$with_gnu_ld" = yes; then
20342     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20343     shlibpath_overrides_runpath=no
20344   else
20345     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20346     shlibpath_overrides_runpath=yes
20347     case $host_os in
20348       sco3.2v5*)
20349         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20350         ;;
20351     esac
20352   fi
20353   sys_lib_dlsearch_path_spec='/usr/lib'
20354   ;;
20355
20356 uts4*)
20357   version_type=linux
20358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20359   soname_spec='${libname}${release}${shared_ext}$major'
20360   shlibpath_var=LD_LIBRARY_PATH
20361   ;;
20362
20363 *)
20364   dynamic_linker=no
20365   ;;
20366 esac
20367 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20368 echo "${ECHO_T}$dynamic_linker" >&6; }
20369 test "$dynamic_linker" = no && can_build_shared=no
20370
20371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20372 if test "$GCC" = yes; then
20373   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20374 fi
20375
20376 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20378 hardcode_action_CXX=
20379 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20380    test -n "$runpath_var_CXX" || \
20381    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20382
20383   # We can hardcode non-existant directories.
20384   if test "$hardcode_direct_CXX" != no &&
20385      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20386      # have to relink, otherwise we might link with an installed library
20387      # when we should be linking with a yet-to-be-installed one
20388      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20389      test "$hardcode_minus_L_CXX" != no; then
20390     # Linking always hardcodes the temporary library directory.
20391     hardcode_action_CXX=relink
20392   else
20393     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20394     hardcode_action_CXX=immediate
20395   fi
20396 else
20397   # We cannot hardcode anything, or else we can only hardcode existing
20398   # directories.
20399   hardcode_action_CXX=unsupported
20400 fi
20401 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20402 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20403
20404 if test "$hardcode_action_CXX" = relink; then
20405   # Fast installation is not supported
20406   enable_fast_install=no
20407 elif test "$shlibpath_overrides_runpath" = yes ||
20408      test "$enable_shared" = no; then
20409   # Fast installation is not necessary
20410   enable_fast_install=needless
20411 fi
20412
20413
20414 # The else clause should only fire when bootstrapping the
20415 # libtool distribution, otherwise you forgot to ship ltmain.sh
20416 # with your package, and you will get complaints that there are
20417 # no rules to generate ltmain.sh.
20418 if test -f "$ltmain"; then
20419   # See if we are running on zsh, and set the options which allow our commands through
20420   # without removal of \ escapes.
20421   if test -n "${ZSH_VERSION+set}" ; then
20422     setopt NO_GLOB_SUBST
20423   fi
20424   # Now quote all the things that may contain metacharacters while being
20425   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20426   # variables and quote the copies for generation of the libtool script.
20427   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20428     SED SHELL STRIP \
20429     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20430     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20431     deplibs_check_method reload_flag reload_cmds need_locks \
20432     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20433     lt_cv_sys_global_symbol_to_c_name_address \
20434     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20435     old_postinstall_cmds old_postuninstall_cmds \
20436     compiler_CXX \
20437     CC_CXX \
20438     LD_CXX \
20439     lt_prog_compiler_wl_CXX \
20440     lt_prog_compiler_pic_CXX \
20441     lt_prog_compiler_static_CXX \
20442     lt_prog_compiler_no_builtin_flag_CXX \
20443     export_dynamic_flag_spec_CXX \
20444     thread_safe_flag_spec_CXX \
20445     whole_archive_flag_spec_CXX \
20446     enable_shared_with_static_runtimes_CXX \
20447     old_archive_cmds_CXX \
20448     old_archive_from_new_cmds_CXX \
20449     predep_objects_CXX \
20450     postdep_objects_CXX \
20451     predeps_CXX \
20452     postdeps_CXX \
20453     compiler_lib_search_path_CXX \
20454     archive_cmds_CXX \
20455     archive_expsym_cmds_CXX \
20456     postinstall_cmds_CXX \
20457     postuninstall_cmds_CXX \
20458     old_archive_from_expsyms_cmds_CXX \
20459     allow_undefined_flag_CXX \
20460     no_undefined_flag_CXX \
20461     export_symbols_cmds_CXX \
20462     hardcode_libdir_flag_spec_CXX \
20463     hardcode_libdir_flag_spec_ld_CXX \
20464     hardcode_libdir_separator_CXX \
20465     hardcode_automatic_CXX \
20466     module_cmds_CXX \
20467     module_expsym_cmds_CXX \
20468     lt_cv_prog_compiler_c_o_CXX \
20469     exclude_expsyms_CXX \
20470     include_expsyms_CXX; do
20471
20472     case $var in
20473     old_archive_cmds_CXX | \
20474     old_archive_from_new_cmds_CXX | \
20475     archive_cmds_CXX | \
20476     archive_expsym_cmds_CXX | \
20477     module_cmds_CXX | \
20478     module_expsym_cmds_CXX | \
20479     old_archive_from_expsyms_cmds_CXX | \
20480     export_symbols_cmds_CXX | \
20481     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20482     postinstall_cmds | postuninstall_cmds | \
20483     old_postinstall_cmds | old_postuninstall_cmds | \
20484     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20485       # Double-quote double-evaled strings.
20486       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20487       ;;
20488     *)
20489       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20490       ;;
20491     esac
20492   done
20493
20494   case $lt_echo in
20495   *'\$0 --fallback-echo"')
20496     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20497     ;;
20498   esac
20499
20500 cfgfile="$ofile"
20501
20502   cat <<__EOF__ >> "$cfgfile"
20503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20504
20505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20506
20507 # Shell to use when invoking shell scripts.
20508 SHELL=$lt_SHELL
20509
20510 # Whether or not to build shared libraries.
20511 build_libtool_libs=$enable_shared
20512
20513 # Whether or not to build static libraries.
20514 build_old_libs=$enable_static
20515
20516 # Whether or not to add -lc for building shared libraries.
20517 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20518
20519 # Whether or not to disallow shared libs when runtime libs are static
20520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20521
20522 # Whether or not to optimize for fast installation.
20523 fast_install=$enable_fast_install
20524
20525 # The host system.
20526 host_alias=$host_alias
20527 host=$host
20528 host_os=$host_os
20529
20530 # The build system.
20531 build_alias=$build_alias
20532 build=$build
20533 build_os=$build_os
20534
20535 # An echo program that does not interpret backslashes.
20536 echo=$lt_echo
20537
20538 # The archiver.
20539 AR=$lt_AR
20540 AR_FLAGS=$lt_AR_FLAGS
20541
20542 # A C compiler.
20543 LTCC=$lt_LTCC
20544
20545 # LTCC compiler flags.
20546 LTCFLAGS=$lt_LTCFLAGS
20547
20548 # A language-specific compiler.
20549 CC=$lt_compiler_CXX
20550
20551 # Is the compiler the GNU C compiler?
20552 with_gcc=$GCC_CXX
20553
20554 # An ERE matcher.
20555 EGREP=$lt_EGREP
20556
20557 # The linker used to build libraries.
20558 LD=$lt_LD_CXX
20559
20560 # Whether we need hard or soft links.
20561 LN_S=$lt_LN_S
20562
20563 # A BSD-compatible nm program.
20564 NM=$lt_NM
20565
20566 # A symbol stripping program
20567 STRIP=$lt_STRIP
20568
20569 # Used to examine libraries when file_magic_cmd begins "file"
20570 MAGIC_CMD=$MAGIC_CMD
20571
20572 # Used on cygwin: DLL creation program.
20573 DLLTOOL="$DLLTOOL"
20574
20575 # Used on cygwin: object dumper.
20576 OBJDUMP="$OBJDUMP"
20577
20578 # Used on cygwin: assembler.
20579 AS="$AS"
20580
20581 # The name of the directory that contains temporary libtool files.
20582 objdir=$objdir
20583
20584 # How to create reloadable object files.
20585 reload_flag=$lt_reload_flag
20586 reload_cmds=$lt_reload_cmds
20587
20588 # How to pass a linker flag through the compiler.
20589 wl=$lt_lt_prog_compiler_wl_CXX
20590
20591 # Object file suffix (normally "o").
20592 objext="$ac_objext"
20593
20594 # Old archive suffix (normally "a").
20595 libext="$libext"
20596
20597 # Shared library suffix (normally ".so").
20598 shrext_cmds='$shrext_cmds'
20599
20600 # Executable file suffix (normally "").
20601 exeext="$exeext"
20602
20603 # Additional compiler flags for building library objects.
20604 pic_flag=$lt_lt_prog_compiler_pic_CXX
20605 pic_mode=$pic_mode
20606
20607 # What is the maximum length of a command?
20608 max_cmd_len=$lt_cv_sys_max_cmd_len
20609
20610 # Does compiler simultaneously support -c and -o options?
20611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20612
20613 # Must we lock files when doing compilation?
20614 need_locks=$lt_need_locks
20615
20616 # Do we need the lib prefix for modules?
20617 need_lib_prefix=$need_lib_prefix
20618
20619 # Do we need a version for libraries?
20620 need_version=$need_version
20621
20622 # Whether dlopen is supported.
20623 dlopen_support=$enable_dlopen
20624
20625 # Whether dlopen of programs is supported.
20626 dlopen_self=$enable_dlopen_self
20627
20628 # Whether dlopen of statically linked programs is supported.
20629 dlopen_self_static=$enable_dlopen_self_static
20630
20631 # Compiler flag to prevent dynamic linking.
20632 link_static_flag=$lt_lt_prog_compiler_static_CXX
20633
20634 # Compiler flag to turn off builtin functions.
20635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20636
20637 # Compiler flag to allow reflexive dlopens.
20638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20639
20640 # Compiler flag to generate shared objects directly from archives.
20641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20642
20643 # Compiler flag to generate thread-safe objects.
20644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20645
20646 # Library versioning type.
20647 version_type=$version_type
20648
20649 # Format of library name prefix.
20650 libname_spec=$lt_libname_spec
20651
20652 # List of archive names.  First name is the real one, the rest are links.
20653 # The last name is the one that the linker finds with -lNAME.
20654 library_names_spec=$lt_library_names_spec
20655
20656 # The coded name of the library, if different from the real name.
20657 soname_spec=$lt_soname_spec
20658
20659 # Commands used to build and install an old-style archive.
20660 RANLIB=$lt_RANLIB
20661 old_archive_cmds=$lt_old_archive_cmds_CXX
20662 old_postinstall_cmds=$lt_old_postinstall_cmds
20663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20664
20665 # Create an old-style archive from a shared archive.
20666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20667
20668 # Create a temporary old-style archive to link instead of a shared archive.
20669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20670
20671 # Commands used to build and install a shared archive.
20672 archive_cmds=$lt_archive_cmds_CXX
20673 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20674 postinstall_cmds=$lt_postinstall_cmds
20675 postuninstall_cmds=$lt_postuninstall_cmds
20676
20677 # Commands used to build a loadable module (assumed same as above if empty)
20678 module_cmds=$lt_module_cmds_CXX
20679 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20680
20681 # Commands to strip libraries.
20682 old_striplib=$lt_old_striplib
20683 striplib=$lt_striplib
20684
20685 # Dependencies to place before the objects being linked to create a
20686 # shared library.
20687 predep_objects=$lt_predep_objects_CXX
20688
20689 # Dependencies to place after the objects being linked to create a
20690 # shared library.
20691 postdep_objects=$lt_postdep_objects_CXX
20692
20693 # Dependencies to place before the objects being linked to create a
20694 # shared library.
20695 predeps=$lt_predeps_CXX
20696
20697 # Dependencies to place after the objects being linked to create a
20698 # shared library.
20699 postdeps=$lt_postdeps_CXX
20700
20701 # The library search path used internally by the compiler when linking
20702 # a shared library.
20703 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20704
20705 # Method to check whether dependent libraries are shared objects.
20706 deplibs_check_method=$lt_deplibs_check_method
20707
20708 # Command to use when deplibs_check_method == file_magic.
20709 file_magic_cmd=$lt_file_magic_cmd
20710
20711 # Flag that allows shared libraries with undefined symbols to be built.
20712 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20713
20714 # Flag that forces no undefined symbols.
20715 no_undefined_flag=$lt_no_undefined_flag_CXX
20716
20717 # Commands used to finish a libtool library installation in a directory.
20718 finish_cmds=$lt_finish_cmds
20719
20720 # Same as above, but a single script fragment to be evaled but not shown.
20721 finish_eval=$lt_finish_eval
20722
20723 # Take the output of nm and produce a listing of raw symbols and C names.
20724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20725
20726 # Transform the output of nm in a proper C declaration
20727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20728
20729 # Transform the output of nm in a C name address pair
20730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20731
20732 # This is the shared library runtime path variable.
20733 runpath_var=$runpath_var
20734
20735 # This is the shared library path variable.
20736 shlibpath_var=$shlibpath_var
20737
20738 # Is shlibpath searched before the hard-coded library search path?
20739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20740
20741 # How to hardcode a shared library path into an executable.
20742 hardcode_action=$hardcode_action_CXX
20743
20744 # Whether we should hardcode library paths into libraries.
20745 hardcode_into_libs=$hardcode_into_libs
20746
20747 # Flag to hardcode \$libdir into a binary during linking.
20748 # This must work even if \$libdir does not exist.
20749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20750
20751 # If ld is used when linking, flag to hardcode \$libdir into
20752 # a binary during linking. This must work even if \$libdir does
20753 # not exist.
20754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20755
20756 # Whether we need a single -rpath flag with a separated argument.
20757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20758
20759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20760 # resulting binary.
20761 hardcode_direct=$hardcode_direct_CXX
20762
20763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20764 # resulting binary.
20765 hardcode_minus_L=$hardcode_minus_L_CXX
20766
20767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20768 # the resulting binary.
20769 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20770
20771 # Set to yes if building a shared library automatically hardcodes DIR into the library
20772 # and all subsequent libraries and executables linked against it.
20773 hardcode_automatic=$hardcode_automatic_CXX
20774
20775 # Variables whose values should be saved in libtool wrapper scripts and
20776 # restored at relink time.
20777 variables_saved_for_relink="$variables_saved_for_relink"
20778
20779 # Whether libtool must link a program against all its dependency libraries.
20780 link_all_deplibs=$link_all_deplibs_CXX
20781
20782 # Compile-time system search path for libraries
20783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20784
20785 # Run-time system search path for libraries
20786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20787
20788 # Fix the shell variable \$srcfile for the compiler.
20789 fix_srcfile_path="$fix_srcfile_path_CXX"
20790
20791 # Set to yes if exported symbols are required.
20792 always_export_symbols=$always_export_symbols_CXX
20793
20794 # The commands to list exported symbols.
20795 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20796
20797 # The commands to extract the exported symbol list from a shared archive.
20798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20799
20800 # Symbols that should not be listed in the preloaded symbols.
20801 exclude_expsyms=$lt_exclude_expsyms_CXX
20802
20803 # Symbols that must always be exported.
20804 include_expsyms=$lt_include_expsyms_CXX
20805
20806 # ### END LIBTOOL TAG CONFIG: $tagname
20807
20808 __EOF__
20809
20810
20811 else
20812   # If there is no Makefile yet, we rely on a make rule to execute
20813   # `config.status --recheck' to rerun these tests and create the
20814   # libtool script then.
20815   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20816   if test -f "$ltmain_in"; then
20817     test -f Makefile && make "$ltmain"
20818   fi
20819 fi
20820
20821
20822 ac_ext=c
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827
20828 CC=$lt_save_CC
20829 LDCXX=$LD
20830 LD=$lt_save_LD
20831 GCC=$lt_save_GCC
20832 with_gnu_ldcxx=$with_gnu_ld
20833 with_gnu_ld=$lt_save_with_gnu_ld
20834 lt_cv_path_LDCXX=$lt_cv_path_LD
20835 lt_cv_path_LD=$lt_save_path_LD
20836 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20837 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20838
20839         else
20840           tagname=""
20841         fi
20842         ;;
20843
20844       F77)
20845         if test -n "$F77" && test "X$F77" != "Xno"; then
20846
20847 ac_ext=f
20848 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20849 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20851
20852
20853 archive_cmds_need_lc_F77=no
20854 allow_undefined_flag_F77=
20855 always_export_symbols_F77=no
20856 archive_expsym_cmds_F77=
20857 export_dynamic_flag_spec_F77=
20858 hardcode_direct_F77=no
20859 hardcode_libdir_flag_spec_F77=
20860 hardcode_libdir_flag_spec_ld_F77=
20861 hardcode_libdir_separator_F77=
20862 hardcode_minus_L_F77=no
20863 hardcode_automatic_F77=no
20864 module_cmds_F77=
20865 module_expsym_cmds_F77=
20866 link_all_deplibs_F77=unknown
20867 old_archive_cmds_F77=$old_archive_cmds
20868 no_undefined_flag_F77=
20869 whole_archive_flag_spec_F77=
20870 enable_shared_with_static_runtimes_F77=no
20871
20872 # Source file extension for f77 test sources.
20873 ac_ext=f
20874
20875 # Object file extension for compiled f77 test sources.
20876 objext=o
20877 objext_F77=$objext
20878
20879 # Code to be used in simple compile tests
20880 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20881
20882 # Code to be used in simple link tests
20883 lt_simple_link_test_code="      program t\n      end\n"
20884
20885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20886
20887 # If no C compiler was specified, use CC.
20888 LTCC=${LTCC-"$CC"}
20889
20890 # If no C compiler flags were specified, use CFLAGS.
20891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20892
20893 # Allow CC to be a program name with arguments.
20894 compiler=$CC
20895
20896
20897 # save warnings/boilerplate of simple test code
20898 ac_outfile=conftest.$ac_objext
20899 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20901 _lt_compiler_boilerplate=`cat conftest.err`
20902 $rm conftest*
20903
20904 ac_outfile=conftest.$ac_objext
20905 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20907 _lt_linker_boilerplate=`cat conftest.err`
20908 $rm conftest*
20909
20910
20911 # Allow CC to be a program name with arguments.
20912 lt_save_CC="$CC"
20913 CC=${F77-"f77"}
20914 compiler=$CC
20915 compiler_F77=$CC
20916 for cc_temp in $compiler""; do
20917   case $cc_temp in
20918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20920     \-*) ;;
20921     *) break;;
20922   esac
20923 done
20924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20925
20926
20927 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20928 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20929 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20930 echo "${ECHO_T}$can_build_shared" >&6; }
20931
20932 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20933 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20934 test "$can_build_shared" = "no" && enable_shared=no
20935
20936 # On AIX, shared libraries and static libraries use the same namespace, and
20937 # are all built from PIC.
20938 case $host_os in
20939 aix3*)
20940   test "$enable_shared" = yes && enable_static=no
20941   if test -n "$RANLIB"; then
20942     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20943     postinstall_cmds='$RANLIB $lib'
20944   fi
20945   ;;
20946 aix4* | aix5*)
20947   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20948     test "$enable_shared" = yes && enable_static=no
20949   fi
20950   ;;
20951 esac
20952 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20953 echo "${ECHO_T}$enable_shared" >&6; }
20954
20955 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20957 # Make sure either enable_shared or enable_static is yes.
20958 test "$enable_shared" = yes || enable_static=yes
20959 { echo "$as_me:$LINENO: result: $enable_static" >&5
20960 echo "${ECHO_T}$enable_static" >&6; }
20961
20962 GCC_F77="$G77"
20963 LD_F77="$LD"
20964
20965 lt_prog_compiler_wl_F77=
20966 lt_prog_compiler_pic_F77=
20967 lt_prog_compiler_static_F77=
20968
20969 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20970 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20971
20972   if test "$GCC" = yes; then
20973     lt_prog_compiler_wl_F77='-Wl,'
20974     lt_prog_compiler_static_F77='-static'
20975
20976     case $host_os in
20977       aix*)
20978       # All AIX code is PIC.
20979       if test "$host_cpu" = ia64; then
20980         # AIX 5 now supports IA64 processor
20981         lt_prog_compiler_static_F77='-Bstatic'
20982       fi
20983       ;;
20984
20985     amigaos*)
20986       # FIXME: we need at least 68020 code to build shared libraries, but
20987       # adding the `-m68020' flag to GCC prevents building anything better,
20988       # like `-m68040'.
20989       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20990       ;;
20991
20992     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20993       # PIC is the default for these OSes.
20994       ;;
20995
20996     mingw* | pw32* | os2*)
20997       # This hack is so that the source file can tell whether it is being
20998       # built for inclusion in a dll (and should export symbols for example).
20999       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21000       ;;
21001
21002     darwin* | rhapsody*)
21003       # PIC is the default on this platform
21004       # Common symbols not allowed in MH_DYLIB files
21005       lt_prog_compiler_pic_F77='-fno-common'
21006       ;;
21007
21008     interix3*)
21009       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21010       # Instead, we relocate shared libraries at runtime.
21011       ;;
21012
21013     msdosdjgpp*)
21014       # Just because we use GCC doesn't mean we suddenly get shared libraries
21015       # on systems that don't support them.
21016       lt_prog_compiler_can_build_shared_F77=no
21017       enable_shared=no
21018       ;;
21019
21020     sysv4*MP*)
21021       if test -d /usr/nec; then
21022         lt_prog_compiler_pic_F77=-Kconform_pic
21023       fi
21024       ;;
21025
21026     hpux*)
21027       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21028       # not for PA HP-UX.
21029       case $host_cpu in
21030       hppa*64*|ia64*)
21031         # +Z the default
21032         ;;
21033       *)
21034         lt_prog_compiler_pic_F77='-fPIC'
21035         ;;
21036       esac
21037       ;;
21038
21039     *)
21040       lt_prog_compiler_pic_F77='-fPIC'
21041       ;;
21042     esac
21043   else
21044     # PORTME Check for flag to pass linker flags through the system compiler.
21045     case $host_os in
21046     aix*)
21047       lt_prog_compiler_wl_F77='-Wl,'
21048       if test "$host_cpu" = ia64; then
21049         # AIX 5 now supports IA64 processor
21050         lt_prog_compiler_static_F77='-Bstatic'
21051       else
21052         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21053       fi
21054       ;;
21055       darwin*)
21056         # PIC is the default on this platform
21057         # Common symbols not allowed in MH_DYLIB files
21058        case $cc_basename in
21059          xlc*)
21060          lt_prog_compiler_pic_F77='-qnocommon'
21061          lt_prog_compiler_wl_F77='-Wl,'
21062          ;;
21063        esac
21064        ;;
21065
21066     mingw* | pw32* | os2*)
21067       # This hack is so that the source file can tell whether it is being
21068       # built for inclusion in a dll (and should export symbols for example).
21069       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21070       ;;
21071
21072     hpux9* | hpux10* | hpux11*)
21073       lt_prog_compiler_wl_F77='-Wl,'
21074       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21075       # not for PA HP-UX.
21076       case $host_cpu in
21077       hppa*64*|ia64*)
21078         # +Z the default
21079         ;;
21080       *)
21081         lt_prog_compiler_pic_F77='+Z'
21082         ;;
21083       esac
21084       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21085       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21086       ;;
21087
21088     irix5* | irix6* | nonstopux*)
21089       lt_prog_compiler_wl_F77='-Wl,'
21090       # PIC (with -KPIC) is the default.
21091       lt_prog_compiler_static_F77='-non_shared'
21092       ;;
21093
21094     newsos6)
21095       lt_prog_compiler_pic_F77='-KPIC'
21096       lt_prog_compiler_static_F77='-Bstatic'
21097       ;;
21098
21099     linux*)
21100       case $cc_basename in
21101       icc* | ecc*)
21102         lt_prog_compiler_wl_F77='-Wl,'
21103         lt_prog_compiler_pic_F77='-KPIC'
21104         lt_prog_compiler_static_F77='-static'
21105         ;;
21106       pgcc* | pgf77* | pgf90* | pgf95*)
21107         # Portland Group compilers (*not* the Pentium gcc compiler,
21108         # which looks to be a dead project)
21109         lt_prog_compiler_wl_F77='-Wl,'
21110         lt_prog_compiler_pic_F77='-fpic'
21111         lt_prog_compiler_static_F77='-Bstatic'
21112         ;;
21113       ccc*)
21114         lt_prog_compiler_wl_F77='-Wl,'
21115         # All Alpha code is PIC.
21116         lt_prog_compiler_static_F77='-non_shared'
21117         ;;
21118       esac
21119       ;;
21120
21121     osf3* | osf4* | osf5*)
21122       lt_prog_compiler_wl_F77='-Wl,'
21123       # All OSF/1 code is PIC.
21124       lt_prog_compiler_static_F77='-non_shared'
21125       ;;
21126
21127     solaris*)
21128       lt_prog_compiler_pic_F77='-KPIC'
21129       lt_prog_compiler_static_F77='-Bstatic'
21130       case $cc_basename in
21131       f77* | f90* | f95*)
21132         lt_prog_compiler_wl_F77='-Qoption ld ';;
21133       *)
21134         lt_prog_compiler_wl_F77='-Wl,';;
21135       esac
21136       ;;
21137
21138     sunos4*)
21139       lt_prog_compiler_wl_F77='-Qoption ld '
21140       lt_prog_compiler_pic_F77='-PIC'
21141       lt_prog_compiler_static_F77='-Bstatic'
21142       ;;
21143
21144     sysv4 | sysv4.2uw2* | sysv4.3*)
21145       lt_prog_compiler_wl_F77='-Wl,'
21146       lt_prog_compiler_pic_F77='-KPIC'
21147       lt_prog_compiler_static_F77='-Bstatic'
21148       ;;
21149
21150     sysv4*MP*)
21151       if test -d /usr/nec ;then
21152         lt_prog_compiler_pic_F77='-Kconform_pic'
21153         lt_prog_compiler_static_F77='-Bstatic'
21154       fi
21155       ;;
21156
21157     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21158       lt_prog_compiler_wl_F77='-Wl,'
21159       lt_prog_compiler_pic_F77='-KPIC'
21160       lt_prog_compiler_static_F77='-Bstatic'
21161       ;;
21162
21163     unicos*)
21164       lt_prog_compiler_wl_F77='-Wl,'
21165       lt_prog_compiler_can_build_shared_F77=no
21166       ;;
21167
21168     uts4*)
21169       lt_prog_compiler_pic_F77='-pic'
21170       lt_prog_compiler_static_F77='-Bstatic'
21171       ;;
21172
21173     *)
21174       lt_prog_compiler_can_build_shared_F77=no
21175       ;;
21176     esac
21177   fi
21178
21179 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21180 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21181
21182 #
21183 # Check to make sure the PIC flag actually works.
21184 #
21185 if test -n "$lt_prog_compiler_pic_F77"; then
21186
21187 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21188 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21189 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21190   echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192   lt_prog_compiler_pic_works_F77=no
21193   ac_outfile=conftest.$ac_objext
21194    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21195    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21196    # Insert the option either (1) after the last *FLAGS variable, or
21197    # (2) before a word containing "conftest.", or (3) at the end.
21198    # Note that $ac_compile itself does not contain backslashes and begins
21199    # with a dollar sign (not a hyphen), so the echo should work correctly.
21200    # The option is referenced via a variable to avoid confusing sed.
21201    lt_compile=`echo "$ac_compile" | $SED \
21202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21204    -e 's:$: $lt_compiler_flag:'`
21205    (eval echo "\"\$as_me:21205: $lt_compile\"" >&5)
21206    (eval "$lt_compile" 2>conftest.err)
21207    ac_status=$?
21208    cat conftest.err >&5
21209    echo "$as_me:21209: \$? = $ac_status" >&5
21210    if (exit $ac_status) && test -s "$ac_outfile"; then
21211      # The compiler can only warn and ignore the option if not recognized
21212      # So say no if there are warnings other than the usual output.
21213      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21214      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21215      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21216        lt_prog_compiler_pic_works_F77=yes
21217      fi
21218    fi
21219    $rm conftest*
21220
21221 fi
21222 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21223 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21224
21225 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21226     case $lt_prog_compiler_pic_F77 in
21227      "" | " "*) ;;
21228      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21229      esac
21230 else
21231     lt_prog_compiler_pic_F77=
21232      lt_prog_compiler_can_build_shared_F77=no
21233 fi
21234
21235 fi
21236 case $host_os in
21237   # For platforms which do not support PIC, -DPIC is meaningless:
21238   *djgpp*)
21239     lt_prog_compiler_pic_F77=
21240     ;;
21241   *)
21242     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21243     ;;
21244 esac
21245
21246 #
21247 # Check to make sure the static flag actually works.
21248 #
21249 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21250 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21251 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21252 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21253   echo $ECHO_N "(cached) $ECHO_C" >&6
21254 else
21255   lt_prog_compiler_static_works_F77=no
21256    save_LDFLAGS="$LDFLAGS"
21257    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21258    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21259    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21260      # The linker can only warn and ignore the option if not recognized
21261      # So say no if there are warnings
21262      if test -s conftest.err; then
21263        # Append any errors to the config.log.
21264        cat conftest.err 1>&5
21265        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21266        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21267        if diff conftest.exp conftest.er2 >/dev/null; then
21268          lt_prog_compiler_static_works_F77=yes
21269        fi
21270      else
21271        lt_prog_compiler_static_works_F77=yes
21272      fi
21273    fi
21274    $rm conftest*
21275    LDFLAGS="$save_LDFLAGS"
21276
21277 fi
21278 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21279 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21280
21281 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21282     :
21283 else
21284     lt_prog_compiler_static_F77=
21285 fi
21286
21287
21288 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21289 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21290 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21291   echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293   lt_cv_prog_compiler_c_o_F77=no
21294    $rm -r conftest 2>/dev/null
21295    mkdir conftest
21296    cd conftest
21297    mkdir out
21298    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21299
21300    lt_compiler_flag="-o out/conftest2.$ac_objext"
21301    # Insert the option either (1) after the last *FLAGS variable, or
21302    # (2) before a word containing "conftest.", or (3) at the end.
21303    # Note that $ac_compile itself does not contain backslashes and begins
21304    # with a dollar sign (not a hyphen), so the echo should work correctly.
21305    lt_compile=`echo "$ac_compile" | $SED \
21306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21308    -e 's:$: $lt_compiler_flag:'`
21309    (eval echo "\"\$as_me:21309: $lt_compile\"" >&5)
21310    (eval "$lt_compile" 2>out/conftest.err)
21311    ac_status=$?
21312    cat out/conftest.err >&5
21313    echo "$as_me:21313: \$? = $ac_status" >&5
21314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21315    then
21316      # The compiler can only warn and ignore the option if not recognized
21317      # So say no if there are warnings
21318      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21321        lt_cv_prog_compiler_c_o_F77=yes
21322      fi
21323    fi
21324    chmod u+w . 2>&5
21325    $rm conftest*
21326    # SGI C++ compiler will create directory out/ii_files/ for
21327    # template instantiation
21328    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21329    $rm out/* && rmdir out
21330    cd ..
21331    rmdir conftest
21332    $rm conftest*
21333
21334 fi
21335 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21336 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21337
21338
21339 hard_links="nottested"
21340 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21341   # do not overwrite the value of need_locks provided by the user
21342   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21343 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21344   hard_links=yes
21345   $rm conftest*
21346   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21347   touch conftest.a
21348   ln conftest.a conftest.b 2>&5 || hard_links=no
21349   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21350   { echo "$as_me:$LINENO: result: $hard_links" >&5
21351 echo "${ECHO_T}$hard_links" >&6; }
21352   if test "$hard_links" = no; then
21353     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21354 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21355     need_locks=warn
21356   fi
21357 else
21358   need_locks=no
21359 fi
21360
21361 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21362 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21363
21364   runpath_var=
21365   allow_undefined_flag_F77=
21366   enable_shared_with_static_runtimes_F77=no
21367   archive_cmds_F77=
21368   archive_expsym_cmds_F77=
21369   old_archive_From_new_cmds_F77=
21370   old_archive_from_expsyms_cmds_F77=
21371   export_dynamic_flag_spec_F77=
21372   whole_archive_flag_spec_F77=
21373   thread_safe_flag_spec_F77=
21374   hardcode_libdir_flag_spec_F77=
21375   hardcode_libdir_flag_spec_ld_F77=
21376   hardcode_libdir_separator_F77=
21377   hardcode_direct_F77=no
21378   hardcode_minus_L_F77=no
21379   hardcode_shlibpath_var_F77=unsupported
21380   link_all_deplibs_F77=unknown
21381   hardcode_automatic_F77=no
21382   module_cmds_F77=
21383   module_expsym_cmds_F77=
21384   always_export_symbols_F77=no
21385   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21386   # include_expsyms should be a list of space-separated symbols to be *always*
21387   # included in the symbol list
21388   include_expsyms_F77=
21389   # exclude_expsyms can be an extended regexp of symbols to exclude
21390   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21391   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21392   # as well as any symbol that contains `d'.
21393   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21394   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21395   # platforms (ab)use it in PIC code, but their linkers get confused if
21396   # the symbol is explicitly referenced.  Since portable code cannot
21397   # rely on this symbol name, it's probably fine to never include it in
21398   # preloaded symbol tables.
21399   extract_expsyms_cmds=
21400   # Just being paranoid about ensuring that cc_basename is set.
21401   for cc_temp in $compiler""; do
21402   case $cc_temp in
21403     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21404     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21405     \-*) ;;
21406     *) break;;
21407   esac
21408 done
21409 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21410
21411   case $host_os in
21412   cygwin* | mingw* | pw32*)
21413     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21414     # When not using gcc, we currently assume that we are using
21415     # Microsoft Visual C++.
21416     if test "$GCC" != yes; then
21417       with_gnu_ld=no
21418     fi
21419     ;;
21420   interix*)
21421     # we just hope/assume this is gcc and not c89 (= MSVC++)
21422     with_gnu_ld=yes
21423     ;;
21424   openbsd*)
21425     with_gnu_ld=no
21426     ;;
21427   esac
21428
21429   ld_shlibs_F77=yes
21430   if test "$with_gnu_ld" = yes; then
21431     # If archive_cmds runs LD, not CC, wlarc should be empty
21432     wlarc='${wl}'
21433
21434     # Set some defaults for GNU ld with shared library support. These
21435     # are reset later if shared libraries are not supported. Putting them
21436     # here allows them to be overridden if necessary.
21437     runpath_var=LD_RUN_PATH
21438     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21439     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21440     # ancient GNU ld didn't support --whole-archive et. al.
21441     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21442         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21443       else
21444         whole_archive_flag_spec_F77=
21445     fi
21446     supports_anon_versioning=no
21447     case `$LD -v 2>/dev/null` in
21448       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21449       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21450       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21451       *\ 2.11.*) ;; # other 2.11 versions
21452       *) supports_anon_versioning=yes ;;
21453     esac
21454
21455     # See if GNU ld supports shared libraries.
21456     case $host_os in
21457     aix3* | aix4* | aix5*)
21458       # On AIX/PPC, the GNU linker is very broken
21459       if test "$host_cpu" != ia64; then
21460         ld_shlibs_F77=no
21461         cat <<EOF 1>&2
21462
21463 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21464 *** to be unable to reliably create shared libraries on AIX.
21465 *** Therefore, libtool is disabling shared libraries support.  If you
21466 *** really care for shared libraries, you may want to modify your PATH
21467 *** so that a non-GNU linker is found, and then restart.
21468
21469 EOF
21470       fi
21471       ;;
21472
21473     amigaos*)
21474       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)'
21475       hardcode_libdir_flag_spec_F77='-L$libdir'
21476       hardcode_minus_L_F77=yes
21477
21478       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21479       # that the semantics of dynamic libraries on AmigaOS, at least up
21480       # to version 4, is to share data among multiple programs linked
21481       # with the same dynamic library.  Since this doesn't match the
21482       # behavior of shared libraries on other platforms, we can't use
21483       # them.
21484       ld_shlibs_F77=no
21485       ;;
21486
21487     beos*)
21488       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21489         allow_undefined_flag_F77=unsupported
21490         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21491         # support --undefined.  This deserves some investigation.  FIXME
21492         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21493       else
21494         ld_shlibs_F77=no
21495       fi
21496       ;;
21497
21498     cygwin* | mingw* | pw32*)
21499       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21500       # as there is no search path for DLLs.
21501       hardcode_libdir_flag_spec_F77='-L$libdir'
21502       allow_undefined_flag_F77=unsupported
21503       always_export_symbols_F77=no
21504       enable_shared_with_static_runtimes_F77=yes
21505       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21506
21507       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21508         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21509         # If the export-symbols file already is a .def file (1st line
21510         # is EXPORTS), use it as is; otherwise, prepend...
21511         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21512           cp $export_symbols $output_objdir/$soname.def;
21513         else
21514           echo EXPORTS > $output_objdir/$soname.def;
21515           cat $export_symbols >> $output_objdir/$soname.def;
21516         fi~
21517         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21518       else
21519         ld_shlibs_F77=no
21520       fi
21521       ;;
21522
21523     interix3*)
21524       hardcode_direct_F77=no
21525       hardcode_shlibpath_var_F77=no
21526       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21527       export_dynamic_flag_spec_F77='${wl}-E'
21528       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21529       # Instead, shared libraries are loaded at an image base (0x10000000 by
21530       # default) and relocated if they conflict, which is a slow very memory
21531       # consuming and fragmenting process.  To avoid this, we pick a random,
21532       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21533       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21534       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'
21535       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'
21536       ;;
21537
21538     linux*)
21539       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21540         tmp_addflag=
21541         case $cc_basename,$host_cpu in
21542         pgcc*)                          # Portland Group C compiler
21543           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'
21544           tmp_addflag=' $pic_flag'
21545           ;;
21546         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21547           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'
21548           tmp_addflag=' $pic_flag -Mnomain' ;;
21549         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21550           tmp_addflag=' -i_dynamic' ;;
21551         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21552           tmp_addflag=' -i_dynamic -nofor_main' ;;
21553         ifc* | ifort*)                  # Intel Fortran compiler
21554           tmp_addflag=' -nofor_main' ;;
21555         esac
21556         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21557
21558         if test $supports_anon_versioning = yes; then
21559           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21560   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21561   $echo "local: *; };" >> $output_objdir/$libname.ver~
21562           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21563         fi
21564       else
21565         ld_shlibs_F77=no
21566       fi
21567       ;;
21568
21569     netbsd*)
21570       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21571         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21572         wlarc=
21573       else
21574         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21575         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21576       fi
21577       ;;
21578
21579     solaris*)
21580       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21581         ld_shlibs_F77=no
21582         cat <<EOF 1>&2
21583
21584 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21585 *** create shared libraries on Solaris systems.  Therefore, libtool
21586 *** is disabling shared libraries support.  We urge you to upgrade GNU
21587 *** binutils to release 2.9.1 or newer.  Another option is to modify
21588 *** your PATH or compiler configuration so that the native linker is
21589 *** used, and then restart.
21590
21591 EOF
21592       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21594         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21595       else
21596         ld_shlibs_F77=no
21597       fi
21598       ;;
21599
21600     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21601       case `$LD -v 2>&1` in
21602         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21603         ld_shlibs_F77=no
21604         cat <<_LT_EOF 1>&2
21605
21606 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21607 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21608 *** is disabling shared libraries support.  We urge you to upgrade GNU
21609 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21610 *** your PATH or compiler configuration so that the native linker is
21611 *** used, and then restart.
21612
21613 _LT_EOF
21614         ;;
21615         *)
21616           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21617             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21618             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21619             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21620           else
21621             ld_shlibs_F77=no
21622           fi
21623         ;;
21624       esac
21625       ;;
21626
21627     sunos4*)
21628       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21629       wlarc=
21630       hardcode_direct_F77=yes
21631       hardcode_shlibpath_var_F77=no
21632       ;;
21633
21634     *)
21635       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21636         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21637         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21638       else
21639         ld_shlibs_F77=no
21640       fi
21641       ;;
21642     esac
21643
21644     if test "$ld_shlibs_F77" = no; then
21645       runpath_var=
21646       hardcode_libdir_flag_spec_F77=
21647       export_dynamic_flag_spec_F77=
21648       whole_archive_flag_spec_F77=
21649     fi
21650   else
21651     # PORTME fill in a description of your system's linker (not GNU ld)
21652     case $host_os in
21653     aix3*)
21654       allow_undefined_flag_F77=unsupported
21655       always_export_symbols_F77=yes
21656       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'
21657       # Note: this linker hardcodes the directories in LIBPATH if there
21658       # are no directories specified by -L.
21659       hardcode_minus_L_F77=yes
21660       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21661         # Neither direct hardcoding nor static linking is supported with a
21662         # broken collect2.
21663         hardcode_direct_F77=unsupported
21664       fi
21665       ;;
21666
21667     aix4* | aix5*)
21668       if test "$host_cpu" = ia64; then
21669         # On IA64, the linker does run time linking by default, so we don't
21670         # have to do anything special.
21671         aix_use_runtimelinking=no
21672         exp_sym_flag='-Bexport'
21673         no_entry_flag=""
21674       else
21675         # If we're using GNU nm, then we don't want the "-C" option.
21676         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21677         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21678           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'
21679         else
21680           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'
21681         fi
21682         aix_use_runtimelinking=no
21683
21684         # Test if we are trying to use run time linking or normal
21685         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21686         # need to do runtime linking.
21687         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21688           for ld_flag in $LDFLAGS; do
21689           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21690             aix_use_runtimelinking=yes
21691             break
21692           fi
21693           done
21694           ;;
21695         esac
21696
21697         exp_sym_flag='-bexport'
21698         no_entry_flag='-bnoentry'
21699       fi
21700
21701       # When large executables or shared objects are built, AIX ld can
21702       # have problems creating the table of contents.  If linking a library
21703       # or program results in "error TOC overflow" add -mminimal-toc to
21704       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21705       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21706
21707       archive_cmds_F77=''
21708       hardcode_direct_F77=yes
21709       hardcode_libdir_separator_F77=':'
21710       link_all_deplibs_F77=yes
21711
21712       if test "$GCC" = yes; then
21713         case $host_os in aix4.[012]|aix4.[012].*)
21714         # We only want to do this on AIX 4.2 and lower, the check
21715         # below for broken collect2 doesn't work under 4.3+
21716           collect2name=`${CC} -print-prog-name=collect2`
21717           if test -f "$collect2name" && \
21718            strings "$collect2name" | grep resolve_lib_name >/dev/null
21719           then
21720           # We have reworked collect2
21721           hardcode_direct_F77=yes
21722           else
21723           # We have old collect2
21724           hardcode_direct_F77=unsupported
21725           # It fails to find uninstalled libraries when the uninstalled
21726           # path is not listed in the libpath.  Setting hardcode_minus_L
21727           # to unsupported forces relinking
21728           hardcode_minus_L_F77=yes
21729           hardcode_libdir_flag_spec_F77='-L$libdir'
21730           hardcode_libdir_separator_F77=
21731           fi
21732           ;;
21733         esac
21734         shared_flag='-shared'
21735         if test "$aix_use_runtimelinking" = yes; then
21736           shared_flag="$shared_flag "'${wl}-G'
21737         fi
21738       else
21739         # not using gcc
21740         if test "$host_cpu" = ia64; then
21741         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21742         # chokes on -Wl,-G. The following line is correct:
21743           shared_flag='-G'
21744         else
21745           if test "$aix_use_runtimelinking" = yes; then
21746             shared_flag='${wl}-G'
21747           else
21748             shared_flag='${wl}-bM:SRE'
21749           fi
21750         fi
21751       fi
21752
21753       # It seems that -bexpall does not export symbols beginning with
21754       # underscore (_), so it is better to generate a list of symbols to export.
21755       always_export_symbols_F77=yes
21756       if test "$aix_use_runtimelinking" = yes; then
21757         # Warning - without using the other runtime loading flags (-brtl),
21758         # -berok will link without error, but may produce a broken library.
21759         allow_undefined_flag_F77='-berok'
21760        # Determine the default libpath from the value encoded in an empty executable.
21761        cat >conftest.$ac_ext <<_ACEOF
21762       program main
21763
21764       end
21765 _ACEOF
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_link") 2>conftest.er1
21774   ac_status=$?
21775   grep -v '^ *+' conftest.er1 >conftest.err
21776   rm -f conftest.er1
21777   cat conftest.err >&5
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); } &&
21780          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21781   { (case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_try") 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; } &&
21790          { ac_try='test -s conftest$ac_exeext'
21791   { (case "(($ac_try" in
21792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793   *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796   (eval "$ac_try") 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); }; }; then
21800
21801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21802 }'`
21803 # Check for a 64-bit object if we didn't find anything.
21804 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; }
21805 }'`; fi
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810
21811 fi
21812
21813 rm -f core conftest.err conftest.$ac_objext \
21814       conftest$ac_exeext conftest.$ac_ext
21815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21816
21817        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21818         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"
21819        else
21820         if test "$host_cpu" = ia64; then
21821           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21822           allow_undefined_flag_F77="-z nodefs"
21823           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"
21824         else
21825          # Determine the default libpath from the value encoded in an empty executable.
21826          cat >conftest.$ac_ext <<_ACEOF
21827       program main
21828
21829       end
21830 _ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835   *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838   (eval "$ac_link") 2>conftest.er1
21839   ac_status=$?
21840   grep -v '^ *+' conftest.er1 >conftest.err
21841   rm -f conftest.er1
21842   cat conftest.err >&5
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } &&
21845          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21846   { (case "(($ac_try" in
21847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848   *) ac_try_echo=$ac_try;;
21849 esac
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851   (eval "$ac_try") 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); }; } &&
21855          { ac_try='test -s conftest$ac_exeext'
21856   { (case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_try") 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); }; }; then
21865
21866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21867 }'`
21868 # Check for a 64-bit object if we didn't find anything.
21869 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; }
21870 }'`; fi
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875
21876 fi
21877
21878 rm -f core conftest.err conftest.$ac_objext \
21879       conftest$ac_exeext conftest.$ac_ext
21880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21881
21882          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21883           # Warning - without using the other run time loading flags,
21884           # -berok will link without error, but may produce a broken library.
21885           no_undefined_flag_F77=' ${wl}-bernotok'
21886           allow_undefined_flag_F77=' ${wl}-berok'
21887           # Exported symbols can be pulled into shared objects from archives
21888           whole_archive_flag_spec_F77='$convenience'
21889           archive_cmds_need_lc_F77=yes
21890           # This is similar to how AIX traditionally builds its shared libraries.
21891           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'
21892         fi
21893       fi
21894       ;;
21895
21896     amigaos*)
21897       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)'
21898       hardcode_libdir_flag_spec_F77='-L$libdir'
21899       hardcode_minus_L_F77=yes
21900       # see comment about different semantics on the GNU ld section
21901       ld_shlibs_F77=no
21902       ;;
21903
21904     bsdi[45]*)
21905       export_dynamic_flag_spec_F77=-rdynamic
21906       ;;
21907
21908     cygwin* | mingw* | pw32*)
21909       # When not using gcc, we currently assume that we are using
21910       # Microsoft Visual C++.
21911       # hardcode_libdir_flag_spec is actually meaningless, as there is
21912       # no search path for DLLs.
21913       hardcode_libdir_flag_spec_F77=' '
21914       allow_undefined_flag_F77=unsupported
21915       # Tell ltmain to make .lib files, not .a files.
21916       libext=lib
21917       # Tell ltmain to make .dll files, not .so files.
21918       shrext_cmds=".dll"
21919       # FIXME: Setting linknames here is a bad hack.
21920       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21921       # The linker will automatically build a .lib file if we build a DLL.
21922       old_archive_From_new_cmds_F77='true'
21923       # FIXME: Should let the user specify the lib program.
21924       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21925       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21926       enable_shared_with_static_runtimes_F77=yes
21927       ;;
21928
21929     darwin* | rhapsody*)
21930       case $host_os in
21931         rhapsody* | darwin1.[012])
21932          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21933          ;;
21934        *) # Darwin 1.3 on
21935          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21936            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21937          else
21938            case ${MACOSX_DEPLOYMENT_TARGET} in
21939              10.[012])
21940                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21941                ;;
21942              10.*)
21943                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21944                ;;
21945            esac
21946          fi
21947          ;;
21948       esac
21949       archive_cmds_need_lc_F77=no
21950       hardcode_direct_F77=no
21951       hardcode_automatic_F77=yes
21952       hardcode_shlibpath_var_F77=unsupported
21953       whole_archive_flag_spec_F77=''
21954       link_all_deplibs_F77=yes
21955     if test "$GCC" = yes ; then
21956         output_verbose_link_cmd='echo'
21957         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21958       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21959       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21960       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}'
21961       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}'
21962     else
21963       case $cc_basename in
21964         xlc*)
21965          output_verbose_link_cmd='echo'
21966          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21967          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21968           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21969          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}'
21970           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}'
21971           ;;
21972        *)
21973          ld_shlibs_F77=no
21974           ;;
21975       esac
21976     fi
21977       ;;
21978
21979     dgux*)
21980       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21981       hardcode_libdir_flag_spec_F77='-L$libdir'
21982       hardcode_shlibpath_var_F77=no
21983       ;;
21984
21985     freebsd1*)
21986       ld_shlibs_F77=no
21987       ;;
21988
21989     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21990     # support.  Future versions do this automatically, but an explicit c++rt0.o
21991     # does not break anything, and helps significantly (at the cost of a little
21992     # extra space).
21993     freebsd2.2*)
21994       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21995       hardcode_libdir_flag_spec_F77='-R$libdir'
21996       hardcode_direct_F77=yes
21997       hardcode_shlibpath_var_F77=no
21998       ;;
21999
22000     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22001     freebsd2*)
22002       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22003       hardcode_direct_F77=yes
22004       hardcode_minus_L_F77=yes
22005       hardcode_shlibpath_var_F77=no
22006       ;;
22007
22008     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22009     freebsd* | kfreebsd*-gnu | dragonfly*)
22010       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22011       hardcode_libdir_flag_spec_F77='-R$libdir'
22012       hardcode_direct_F77=yes
22013       hardcode_shlibpath_var_F77=no
22014       ;;
22015
22016     hpux9*)
22017       if test "$GCC" = yes; then
22018         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'
22019       else
22020         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'
22021       fi
22022       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22023       hardcode_libdir_separator_F77=:
22024       hardcode_direct_F77=yes
22025
22026       # hardcode_minus_L: Not really in the search PATH,
22027       # but as the default location of the library.
22028       hardcode_minus_L_F77=yes
22029       export_dynamic_flag_spec_F77='${wl}-E'
22030       ;;
22031
22032     hpux10*)
22033       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22034         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22035       else
22036         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22037       fi
22038       if test "$with_gnu_ld" = no; then
22039         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22040         hardcode_libdir_separator_F77=:
22041
22042         hardcode_direct_F77=yes
22043         export_dynamic_flag_spec_F77='${wl}-E'
22044
22045         # hardcode_minus_L: Not really in the search PATH,
22046         # but as the default location of the library.
22047         hardcode_minus_L_F77=yes
22048       fi
22049       ;;
22050
22051     hpux11*)
22052       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22053         case $host_cpu in
22054         hppa*64*)
22055           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22056           ;;
22057         ia64*)
22058           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22059           ;;
22060         *)
22061           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22062           ;;
22063         esac
22064       else
22065         case $host_cpu in
22066         hppa*64*)
22067           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22068           ;;
22069         ia64*)
22070           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22071           ;;
22072         *)
22073           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22074           ;;
22075         esac
22076       fi
22077       if test "$with_gnu_ld" = no; then
22078         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22079         hardcode_libdir_separator_F77=:
22080
22081         case $host_cpu in
22082         hppa*64*|ia64*)
22083           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22084           hardcode_direct_F77=no
22085           hardcode_shlibpath_var_F77=no
22086           ;;
22087         *)
22088           hardcode_direct_F77=yes
22089           export_dynamic_flag_spec_F77='${wl}-E'
22090
22091           # hardcode_minus_L: Not really in the search PATH,
22092           # but as the default location of the library.
22093           hardcode_minus_L_F77=yes
22094           ;;
22095         esac
22096       fi
22097       ;;
22098
22099     irix5* | irix6* | nonstopux*)
22100       if test "$GCC" = yes; then
22101         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'
22102       else
22103         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'
22104         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22105       fi
22106       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22107       hardcode_libdir_separator_F77=:
22108       link_all_deplibs_F77=yes
22109       ;;
22110
22111     netbsd*)
22112       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22113         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22114       else
22115         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22116       fi
22117       hardcode_libdir_flag_spec_F77='-R$libdir'
22118       hardcode_direct_F77=yes
22119       hardcode_shlibpath_var_F77=no
22120       ;;
22121
22122     newsos6)
22123       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22124       hardcode_direct_F77=yes
22125       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22126       hardcode_libdir_separator_F77=:
22127       hardcode_shlibpath_var_F77=no
22128       ;;
22129
22130     openbsd*)
22131       hardcode_direct_F77=yes
22132       hardcode_shlibpath_var_F77=no
22133       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22134         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22135         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22136         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22137         export_dynamic_flag_spec_F77='${wl}-E'
22138       else
22139        case $host_os in
22140          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22141            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22142            hardcode_libdir_flag_spec_F77='-R$libdir'
22143            ;;
22144          *)
22145            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22146            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147            ;;
22148        esac
22149       fi
22150       ;;
22151
22152     os2*)
22153       hardcode_libdir_flag_spec_F77='-L$libdir'
22154       hardcode_minus_L_F77=yes
22155       allow_undefined_flag_F77=unsupported
22156       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'
22157       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22158       ;;
22159
22160     osf3*)
22161       if test "$GCC" = yes; then
22162         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22163         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'
22164       else
22165         allow_undefined_flag_F77=' -expect_unresolved \*'
22166         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'
22167       fi
22168       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169       hardcode_libdir_separator_F77=:
22170       ;;
22171
22172     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22173       if test "$GCC" = yes; then
22174         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22175         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'
22176         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22177       else
22178         allow_undefined_flag_F77=' -expect_unresolved \*'
22179         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'
22180         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~
22181         $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'
22182
22183         # Both c and cxx compiler support -rpath directly
22184         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22185       fi
22186       hardcode_libdir_separator_F77=:
22187       ;;
22188
22189     solaris*)
22190       no_undefined_flag_F77=' -z text'
22191       if test "$GCC" = yes; then
22192         wlarc='${wl}'
22193         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22194         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22195           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22196       else
22197         wlarc=''
22198         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22199         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22200         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22201       fi
22202       hardcode_libdir_flag_spec_F77='-R$libdir'
22203       hardcode_shlibpath_var_F77=no
22204       case $host_os in
22205       solaris2.[0-5] | solaris2.[0-5].*) ;;
22206       *)
22207         # The compiler driver will combine linker options so we
22208         # cannot just pass the convience library names through
22209         # without $wl, iff we do not link with $LD.
22210         # Luckily, gcc supports the same syntax we need for Sun Studio.
22211         # Supported since Solaris 2.6 (maybe 2.5.1?)
22212         case $wlarc in
22213         '')
22214           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22215         *)
22216           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' ;;
22217         esac ;;
22218       esac
22219       link_all_deplibs_F77=yes
22220       ;;
22221
22222     sunos4*)
22223       if test "x$host_vendor" = xsequent; then
22224         # Use $CC to link under sequent, because it throws in some extra .o
22225         # files that make .init and .fini sections work.
22226         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22227       else
22228         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22229       fi
22230       hardcode_libdir_flag_spec_F77='-L$libdir'
22231       hardcode_direct_F77=yes
22232       hardcode_minus_L_F77=yes
22233       hardcode_shlibpath_var_F77=no
22234       ;;
22235
22236     sysv4)
22237       case $host_vendor in
22238         sni)
22239           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240           hardcode_direct_F77=yes # is this really true???
22241         ;;
22242         siemens)
22243           ## LD is ld it makes a PLAMLIB
22244           ## CC just makes a GrossModule.
22245           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22246           reload_cmds_F77='$CC -r -o $output$reload_objs'
22247           hardcode_direct_F77=no
22248         ;;
22249         motorola)
22250           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22251           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22252         ;;
22253       esac
22254       runpath_var='LD_RUN_PATH'
22255       hardcode_shlibpath_var_F77=no
22256       ;;
22257
22258     sysv4.3*)
22259       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22260       hardcode_shlibpath_var_F77=no
22261       export_dynamic_flag_spec_F77='-Bexport'
22262       ;;
22263
22264     sysv4*MP*)
22265       if test -d /usr/nec; then
22266         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22267         hardcode_shlibpath_var_F77=no
22268         runpath_var=LD_RUN_PATH
22269         hardcode_runpath_var=yes
22270         ld_shlibs_F77=yes
22271       fi
22272       ;;
22273
22274     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22275       no_undefined_flag_F77='${wl}-z,text'
22276       archive_cmds_need_lc_F77=no
22277       hardcode_shlibpath_var_F77=no
22278       runpath_var='LD_RUN_PATH'
22279
22280       if test "$GCC" = yes; then
22281         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22282         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22283       else
22284         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22285         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22286       fi
22287       ;;
22288
22289     sysv5* | sco3.2v5* | sco5v6*)
22290       # Note: We can NOT use -z defs as we might desire, because we do not
22291       # link with -lc, and that would cause any symbols used from libc to
22292       # always be unresolved, which means just about no library would
22293       # ever link correctly.  If we're not using GNU ld we use -z text
22294       # though, which does catch some bad symbols but isn't as heavy-handed
22295       # as -z defs.
22296       no_undefined_flag_F77='${wl}-z,text'
22297       allow_undefined_flag_F77='${wl}-z,nodefs'
22298       archive_cmds_need_lc_F77=no
22299       hardcode_shlibpath_var_F77=no
22300       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22301       hardcode_libdir_separator_F77=':'
22302       link_all_deplibs_F77=yes
22303       export_dynamic_flag_spec_F77='${wl}-Bexport'
22304       runpath_var='LD_RUN_PATH'
22305
22306       if test "$GCC" = yes; then
22307         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22308         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22309       else
22310         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22311         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22312       fi
22313       ;;
22314
22315     uts4*)
22316       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317       hardcode_libdir_flag_spec_F77='-L$libdir'
22318       hardcode_shlibpath_var_F77=no
22319       ;;
22320
22321     *)
22322       ld_shlibs_F77=no
22323       ;;
22324     esac
22325   fi
22326
22327 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22328 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22329 test "$ld_shlibs_F77" = no && can_build_shared=no
22330
22331 #
22332 # Do we need to explicitly link libc?
22333 #
22334 case "x$archive_cmds_need_lc_F77" in
22335 x|xyes)
22336   # Assume -lc should be added
22337   archive_cmds_need_lc_F77=yes
22338
22339   if test "$enable_shared" = yes && test "$GCC" = yes; then
22340     case $archive_cmds_F77 in
22341     *'~'*)
22342       # FIXME: we may have to deal with multi-command sequences.
22343       ;;
22344     '$CC '*)
22345       # Test whether the compiler implicitly links with -lc since on some
22346       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22347       # to ld, don't add -lc before -lgcc.
22348       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22350       $rm conftest*
22351       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22352
22353       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354   (eval $ac_compile) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } 2>conftest.err; then
22358         soname=conftest
22359         lib=conftest
22360         libobjs=conftest.$ac_objext
22361         deplibs=
22362         wl=$lt_prog_compiler_wl_F77
22363         pic_flag=$lt_prog_compiler_pic_F77
22364         compiler_flags=-v
22365         linker_flags=-v
22366         verstring=
22367         output_objdir=.
22368         libname=conftest
22369         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22370         allow_undefined_flag_F77=
22371         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22372   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22373   ac_status=$?
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); }
22376         then
22377           archive_cmds_need_lc_F77=no
22378         else
22379           archive_cmds_need_lc_F77=yes
22380         fi
22381         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22382       else
22383         cat conftest.err 1>&5
22384       fi
22385       $rm conftest*
22386       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22387 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22388       ;;
22389     esac
22390   fi
22391   ;;
22392 esac
22393
22394 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22395 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22396 library_names_spec=
22397 libname_spec='lib$name'
22398 soname_spec=
22399 shrext_cmds=".so"
22400 postinstall_cmds=
22401 postuninstall_cmds=
22402 finish_cmds=
22403 finish_eval=
22404 shlibpath_var=
22405 shlibpath_overrides_runpath=unknown
22406 version_type=none
22407 dynamic_linker="$host_os ld.so"
22408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22409 if test "$GCC" = yes; then
22410   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22411   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22412     # if the path contains ";" then we assume it to be the separator
22413     # otherwise default to the standard path separator (i.e. ":") - it is
22414     # assumed that no part of a normal pathname contains ";" but that should
22415     # okay in the real world where ";" in dirpaths is itself problematic.
22416     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22417   else
22418     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22419   fi
22420 else
22421   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22422 fi
22423 need_lib_prefix=unknown
22424 hardcode_into_libs=no
22425
22426 # when you set need_version to no, make sure it does not cause -set_version
22427 # flags to be left without arguments
22428 need_version=unknown
22429
22430 case $host_os in
22431 aix3*)
22432   version_type=linux
22433   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22434   shlibpath_var=LIBPATH
22435
22436   # AIX 3 has no versioning support, so we append a major version to the name.
22437   soname_spec='${libname}${release}${shared_ext}$major'
22438   ;;
22439
22440 aix4* | aix5*)
22441   version_type=linux
22442   need_lib_prefix=no
22443   need_version=no
22444   hardcode_into_libs=yes
22445   if test "$host_cpu" = ia64; then
22446     # AIX 5 supports IA64
22447     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22448     shlibpath_var=LD_LIBRARY_PATH
22449   else
22450     # With GCC up to 2.95.x, collect2 would create an import file
22451     # for dependence libraries.  The import file would start with
22452     # the line `#! .'.  This would cause the generated library to
22453     # depend on `.', always an invalid library.  This was fixed in
22454     # development snapshots of GCC prior to 3.0.
22455     case $host_os in
22456       aix4 | aix4.[01] | aix4.[01].*)
22457       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22458            echo ' yes '
22459            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22460         :
22461       else
22462         can_build_shared=no
22463       fi
22464       ;;
22465     esac
22466     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22467     # soname into executable. Probably we can add versioning support to
22468     # collect2, so additional links can be useful in future.
22469     if test "$aix_use_runtimelinking" = yes; then
22470       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22471       # instead of lib<name>.a to let people know that these are not
22472       # typical AIX shared libraries.
22473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22474     else
22475       # We preserve .a as extension for shared libraries through AIX4.2
22476       # and later when we are not doing run time linking.
22477       library_names_spec='${libname}${release}.a $libname.a'
22478       soname_spec='${libname}${release}${shared_ext}$major'
22479     fi
22480     shlibpath_var=LIBPATH
22481   fi
22482   ;;
22483
22484 amigaos*)
22485   library_names_spec='$libname.ixlibrary $libname.a'
22486   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22487   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'
22488   ;;
22489
22490 beos*)
22491   library_names_spec='${libname}${shared_ext}'
22492   dynamic_linker="$host_os ld.so"
22493   shlibpath_var=LIBRARY_PATH
22494   ;;
22495
22496 bsdi[45]*)
22497   version_type=linux
22498   need_version=no
22499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500   soname_spec='${libname}${release}${shared_ext}$major'
22501   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22502   shlibpath_var=LD_LIBRARY_PATH
22503   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22504   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22505   # the default ld.so.conf also contains /usr/contrib/lib and
22506   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22507   # libtool to hard-code these into programs
22508   ;;
22509
22510 cygwin* | mingw* | pw32*)
22511   version_type=windows
22512   shrext_cmds=".dll"
22513   need_version=no
22514   need_lib_prefix=no
22515
22516   case $GCC,$host_os in
22517   yes,cygwin* | yes,mingw* | yes,pw32*)
22518     library_names_spec='$libname.dll.a'
22519     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22520     postinstall_cmds='base_file=`basename \${file}`~
22521       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22522       dldir=$destdir/`dirname \$dlpath`~
22523       test -d \$dldir || mkdir -p \$dldir~
22524       $install_prog $dir/$dlname \$dldir/$dlname~
22525       chmod a+x \$dldir/$dlname'
22526     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22527       dlpath=$dir/\$dldll~
22528        $rm \$dlpath'
22529     shlibpath_overrides_runpath=yes
22530
22531     case $host_os in
22532     cygwin*)
22533       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22534       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22535       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22536       ;;
22537     mingw*)
22538       # MinGW DLLs use traditional 'lib' prefix
22539       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22540       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22541       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22542         # It is most probably a Windows format PATH printed by
22543         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22544         # path with ; separators, and with drive letters. We can handle the
22545         # drive letters (cygwin fileutils understands them), so leave them,
22546         # especially as we might pass files found there to a mingw objdump,
22547         # which wouldn't understand a cygwinified path. Ahh.
22548         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22549       else
22550         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22551       fi
22552       ;;
22553     pw32*)
22554       # pw32 DLLs use 'pw' prefix rather than 'lib'
22555       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22556       ;;
22557     esac
22558     ;;
22559
22560   *)
22561     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22562     ;;
22563   esac
22564   dynamic_linker='Win32 ld.exe'
22565   # FIXME: first we should search . and the directory the executable is in
22566   shlibpath_var=PATH
22567   ;;
22568
22569 darwin* | rhapsody*)
22570   dynamic_linker="$host_os dyld"
22571   version_type=darwin
22572   need_lib_prefix=no
22573   need_version=no
22574   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22575   soname_spec='${libname}${release}${major}$shared_ext'
22576   shlibpath_overrides_runpath=yes
22577   shlibpath_var=DYLD_LIBRARY_PATH
22578   shrext_cmds='.dylib'
22579   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22580   if test "$GCC" = yes; then
22581     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"`
22582   else
22583     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22584   fi
22585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22586   ;;
22587
22588 dgux*)
22589   version_type=linux
22590   need_lib_prefix=no
22591   need_version=no
22592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22593   soname_spec='${libname}${release}${shared_ext}$major'
22594   shlibpath_var=LD_LIBRARY_PATH
22595   ;;
22596
22597 freebsd1*)
22598   dynamic_linker=no
22599   ;;
22600
22601 kfreebsd*-gnu)
22602   version_type=linux
22603   need_lib_prefix=no
22604   need_version=no
22605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22606   soname_spec='${libname}${release}${shared_ext}$major'
22607   shlibpath_var=LD_LIBRARY_PATH
22608   shlibpath_overrides_runpath=no
22609   hardcode_into_libs=yes
22610   dynamic_linker='GNU ld.so'
22611   ;;
22612
22613 freebsd* | dragonfly*)
22614   # DragonFly does not have aout.  When/if they implement a new
22615   # versioning mechanism, adjust this.
22616   if test -x /usr/bin/objformat; then
22617     objformat=`/usr/bin/objformat`
22618   else
22619     case $host_os in
22620     freebsd[123]*) objformat=aout ;;
22621     *) objformat=elf ;;
22622     esac
22623   fi
22624   version_type=freebsd-$objformat
22625   case $version_type in
22626     freebsd-elf*)
22627       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22628       need_version=no
22629       need_lib_prefix=no
22630       ;;
22631     freebsd-*)
22632       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22633       need_version=yes
22634       ;;
22635   esac
22636   shlibpath_var=LD_LIBRARY_PATH
22637   case $host_os in
22638   freebsd2*)
22639     shlibpath_overrides_runpath=yes
22640     ;;
22641   freebsd3.[01]* | freebsdelf3.[01]*)
22642     shlibpath_overrides_runpath=yes
22643     hardcode_into_libs=yes
22644     ;;
22645   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22646   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22647     shlibpath_overrides_runpath=no
22648     hardcode_into_libs=yes
22649     ;;
22650   freebsd*) # from 4.6 on
22651     shlibpath_overrides_runpath=yes
22652     hardcode_into_libs=yes
22653     ;;
22654   esac
22655   ;;
22656
22657 gnu*)
22658   version_type=linux
22659   need_lib_prefix=no
22660   need_version=no
22661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22662   soname_spec='${libname}${release}${shared_ext}$major'
22663   shlibpath_var=LD_LIBRARY_PATH
22664   hardcode_into_libs=yes
22665   ;;
22666
22667 hpux9* | hpux10* | hpux11*)
22668   # Give a soname corresponding to the major version so that dld.sl refuses to
22669   # link against other versions.
22670   version_type=sunos
22671   need_lib_prefix=no
22672   need_version=no
22673   case $host_cpu in
22674   ia64*)
22675     shrext_cmds='.so'
22676     hardcode_into_libs=yes
22677     dynamic_linker="$host_os dld.so"
22678     shlibpath_var=LD_LIBRARY_PATH
22679     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681     soname_spec='${libname}${release}${shared_ext}$major'
22682     if test "X$HPUX_IA64_MODE" = X32; then
22683       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22684     else
22685       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22686     fi
22687     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22688     ;;
22689    hppa*64*)
22690      shrext_cmds='.sl'
22691      hardcode_into_libs=yes
22692      dynamic_linker="$host_os dld.sl"
22693      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22694      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22695      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696      soname_spec='${libname}${release}${shared_ext}$major'
22697      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22698      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22699      ;;
22700    *)
22701     shrext_cmds='.sl'
22702     dynamic_linker="$host_os dld.sl"
22703     shlibpath_var=SHLIB_PATH
22704     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706     soname_spec='${libname}${release}${shared_ext}$major'
22707     ;;
22708   esac
22709   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22710   postinstall_cmds='chmod 555 $lib'
22711   ;;
22712
22713 interix3*)
22714   version_type=linux
22715   need_lib_prefix=no
22716   need_version=no
22717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22718   soname_spec='${libname}${release}${shared_ext}$major'
22719   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22720   shlibpath_var=LD_LIBRARY_PATH
22721   shlibpath_overrides_runpath=no
22722   hardcode_into_libs=yes
22723   ;;
22724
22725 irix5* | irix6* | nonstopux*)
22726   case $host_os in
22727     nonstopux*) version_type=nonstopux ;;
22728     *)
22729         if test "$lt_cv_prog_gnu_ld" = yes; then
22730                 version_type=linux
22731         else
22732                 version_type=irix
22733         fi ;;
22734   esac
22735   need_lib_prefix=no
22736   need_version=no
22737   soname_spec='${libname}${release}${shared_ext}$major'
22738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22739   case $host_os in
22740   irix5* | nonstopux*)
22741     libsuff= shlibsuff=
22742     ;;
22743   *)
22744     case $LD in # libtool.m4 will add one of these switches to LD
22745     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22746       libsuff= shlibsuff= libmagic=32-bit;;
22747     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22748       libsuff=32 shlibsuff=N32 libmagic=N32;;
22749     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22750       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22751     *) libsuff= shlibsuff= libmagic=never-match;;
22752     esac
22753     ;;
22754   esac
22755   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22756   shlibpath_overrides_runpath=no
22757   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22758   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22759   hardcode_into_libs=yes
22760   ;;
22761
22762 # No shared lib support for Linux oldld, aout, or coff.
22763 linux*oldld* | linux*aout* | linux*coff*)
22764   dynamic_linker=no
22765   ;;
22766
22767 # This must be Linux ELF.
22768 linux*)
22769   version_type=linux
22770   need_lib_prefix=no
22771   need_version=no
22772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773   soname_spec='${libname}${release}${shared_ext}$major'
22774   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22775   shlibpath_var=LD_LIBRARY_PATH
22776   shlibpath_overrides_runpath=no
22777   # This implies no fast_install, which is unacceptable.
22778   # Some rework will be needed to allow for fast_install
22779   # before this can be enabled.
22780   hardcode_into_libs=yes
22781
22782   # Append ld.so.conf contents to the search path
22783   if test -f /etc/ld.so.conf; then
22784     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' ' '`
22785     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22786   fi
22787
22788   # We used to test for /lib/ld.so.1 and disable shared libraries on
22789   # powerpc, because MkLinux only supported shared libraries with the
22790   # GNU dynamic linker.  Since this was broken with cross compilers,
22791   # most powerpc-linux boxes support dynamic linking these days and
22792   # people can always --disable-shared, the test was removed, and we
22793   # assume the GNU/Linux dynamic linker is in use.
22794   dynamic_linker='GNU/Linux ld.so'
22795   ;;
22796
22797 knetbsd*-gnu)
22798   version_type=linux
22799   need_lib_prefix=no
22800   need_version=no
22801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802   soname_spec='${libname}${release}${shared_ext}$major'
22803   shlibpath_var=LD_LIBRARY_PATH
22804   shlibpath_overrides_runpath=no
22805   hardcode_into_libs=yes
22806   dynamic_linker='GNU ld.so'
22807   ;;
22808
22809 netbsd*)
22810   version_type=sunos
22811   need_lib_prefix=no
22812   need_version=no
22813   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22815     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22816     dynamic_linker='NetBSD (a.out) ld.so'
22817   else
22818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22819     soname_spec='${libname}${release}${shared_ext}$major'
22820     dynamic_linker='NetBSD ld.elf_so'
22821   fi
22822   shlibpath_var=LD_LIBRARY_PATH
22823   shlibpath_overrides_runpath=yes
22824   hardcode_into_libs=yes
22825   ;;
22826
22827 newsos6)
22828   version_type=linux
22829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22830   shlibpath_var=LD_LIBRARY_PATH
22831   shlibpath_overrides_runpath=yes
22832   ;;
22833
22834 nto-qnx*)
22835   version_type=linux
22836   need_lib_prefix=no
22837   need_version=no
22838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22839   soname_spec='${libname}${release}${shared_ext}$major'
22840   shlibpath_var=LD_LIBRARY_PATH
22841   shlibpath_overrides_runpath=yes
22842   ;;
22843
22844 openbsd*)
22845   version_type=sunos
22846   sys_lib_dlsearch_path_spec="/usr/lib"
22847   need_lib_prefix=no
22848   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22849   case $host_os in
22850     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22851     *)                         need_version=no  ;;
22852   esac
22853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22855   shlibpath_var=LD_LIBRARY_PATH
22856   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22857     case $host_os in
22858       openbsd2.[89] | openbsd2.[89].*)
22859         shlibpath_overrides_runpath=no
22860         ;;
22861       *)
22862         shlibpath_overrides_runpath=yes
22863         ;;
22864       esac
22865   else
22866     shlibpath_overrides_runpath=yes
22867   fi
22868   ;;
22869
22870 os2*)
22871   libname_spec='$name'
22872   shrext_cmds=".dll"
22873   need_lib_prefix=no
22874   library_names_spec='$libname${shared_ext} $libname.a'
22875   dynamic_linker='OS/2 ld.exe'
22876   shlibpath_var=LIBPATH
22877   ;;
22878
22879 osf3* | osf4* | osf5*)
22880   version_type=osf
22881   need_lib_prefix=no
22882   need_version=no
22883   soname_spec='${libname}${release}${shared_ext}$major'
22884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22885   shlibpath_var=LD_LIBRARY_PATH
22886   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22887   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22888   ;;
22889
22890 solaris*)
22891   version_type=linux
22892   need_lib_prefix=no
22893   need_version=no
22894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895   soname_spec='${libname}${release}${shared_ext}$major'
22896   shlibpath_var=LD_LIBRARY_PATH
22897   shlibpath_overrides_runpath=yes
22898   hardcode_into_libs=yes
22899   # ldd complains unless libraries are executable
22900   postinstall_cmds='chmod +x $lib'
22901   ;;
22902
22903 sunos4*)
22904   version_type=sunos
22905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22907   shlibpath_var=LD_LIBRARY_PATH
22908   shlibpath_overrides_runpath=yes
22909   if test "$with_gnu_ld" = yes; then
22910     need_lib_prefix=no
22911   fi
22912   need_version=yes
22913   ;;
22914
22915 sysv4 | sysv4.3*)
22916   version_type=linux
22917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918   soname_spec='${libname}${release}${shared_ext}$major'
22919   shlibpath_var=LD_LIBRARY_PATH
22920   case $host_vendor in
22921     sni)
22922       shlibpath_overrides_runpath=no
22923       need_lib_prefix=no
22924       export_dynamic_flag_spec='${wl}-Blargedynsym'
22925       runpath_var=LD_RUN_PATH
22926       ;;
22927     siemens)
22928       need_lib_prefix=no
22929       ;;
22930     motorola)
22931       need_lib_prefix=no
22932       need_version=no
22933       shlibpath_overrides_runpath=no
22934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22935       ;;
22936   esac
22937   ;;
22938
22939 sysv4*MP*)
22940   if test -d /usr/nec ;then
22941     version_type=linux
22942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22943     soname_spec='$libname${shared_ext}.$major'
22944     shlibpath_var=LD_LIBRARY_PATH
22945   fi
22946   ;;
22947
22948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22949   version_type=freebsd-elf
22950   need_lib_prefix=no
22951   need_version=no
22952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22953   soname_spec='${libname}${release}${shared_ext}$major'
22954   shlibpath_var=LD_LIBRARY_PATH
22955   hardcode_into_libs=yes
22956   if test "$with_gnu_ld" = yes; then
22957     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22958     shlibpath_overrides_runpath=no
22959   else
22960     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22961     shlibpath_overrides_runpath=yes
22962     case $host_os in
22963       sco3.2v5*)
22964         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22965         ;;
22966     esac
22967   fi
22968   sys_lib_dlsearch_path_spec='/usr/lib'
22969   ;;
22970
22971 uts4*)
22972   version_type=linux
22973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22974   soname_spec='${libname}${release}${shared_ext}$major'
22975   shlibpath_var=LD_LIBRARY_PATH
22976   ;;
22977
22978 *)
22979   dynamic_linker=no
22980   ;;
22981 esac
22982 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22983 echo "${ECHO_T}$dynamic_linker" >&6; }
22984 test "$dynamic_linker" = no && can_build_shared=no
22985
22986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22987 if test "$GCC" = yes; then
22988   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22989 fi
22990
22991 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22993 hardcode_action_F77=
22994 if test -n "$hardcode_libdir_flag_spec_F77" || \
22995    test -n "$runpath_var_F77" || \
22996    test "X$hardcode_automatic_F77" = "Xyes" ; then
22997
22998   # We can hardcode non-existant directories.
22999   if test "$hardcode_direct_F77" != no &&
23000      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23001      # have to relink, otherwise we might link with an installed library
23002      # when we should be linking with a yet-to-be-installed one
23003      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23004      test "$hardcode_minus_L_F77" != no; then
23005     # Linking always hardcodes the temporary library directory.
23006     hardcode_action_F77=relink
23007   else
23008     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23009     hardcode_action_F77=immediate
23010   fi
23011 else
23012   # We cannot hardcode anything, or else we can only hardcode existing
23013   # directories.
23014   hardcode_action_F77=unsupported
23015 fi
23016 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23017 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23018
23019 if test "$hardcode_action_F77" = relink; then
23020   # Fast installation is not supported
23021   enable_fast_install=no
23022 elif test "$shlibpath_overrides_runpath" = yes ||
23023      test "$enable_shared" = no; then
23024   # Fast installation is not necessary
23025   enable_fast_install=needless
23026 fi
23027
23028
23029 # The else clause should only fire when bootstrapping the
23030 # libtool distribution, otherwise you forgot to ship ltmain.sh
23031 # with your package, and you will get complaints that there are
23032 # no rules to generate ltmain.sh.
23033 if test -f "$ltmain"; then
23034   # See if we are running on zsh, and set the options which allow our commands through
23035   # without removal of \ escapes.
23036   if test -n "${ZSH_VERSION+set}" ; then
23037     setopt NO_GLOB_SUBST
23038   fi
23039   # Now quote all the things that may contain metacharacters while being
23040   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23041   # variables and quote the copies for generation of the libtool script.
23042   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23043     SED SHELL STRIP \
23044     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23045     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23046     deplibs_check_method reload_flag reload_cmds need_locks \
23047     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23048     lt_cv_sys_global_symbol_to_c_name_address \
23049     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23050     old_postinstall_cmds old_postuninstall_cmds \
23051     compiler_F77 \
23052     CC_F77 \
23053     LD_F77 \
23054     lt_prog_compiler_wl_F77 \
23055     lt_prog_compiler_pic_F77 \
23056     lt_prog_compiler_static_F77 \
23057     lt_prog_compiler_no_builtin_flag_F77 \
23058     export_dynamic_flag_spec_F77 \
23059     thread_safe_flag_spec_F77 \
23060     whole_archive_flag_spec_F77 \
23061     enable_shared_with_static_runtimes_F77 \
23062     old_archive_cmds_F77 \
23063     old_archive_from_new_cmds_F77 \
23064     predep_objects_F77 \
23065     postdep_objects_F77 \
23066     predeps_F77 \
23067     postdeps_F77 \
23068     compiler_lib_search_path_F77 \
23069     archive_cmds_F77 \
23070     archive_expsym_cmds_F77 \
23071     postinstall_cmds_F77 \
23072     postuninstall_cmds_F77 \
23073     old_archive_from_expsyms_cmds_F77 \
23074     allow_undefined_flag_F77 \
23075     no_undefined_flag_F77 \
23076     export_symbols_cmds_F77 \
23077     hardcode_libdir_flag_spec_F77 \
23078     hardcode_libdir_flag_spec_ld_F77 \
23079     hardcode_libdir_separator_F77 \
23080     hardcode_automatic_F77 \
23081     module_cmds_F77 \
23082     module_expsym_cmds_F77 \
23083     lt_cv_prog_compiler_c_o_F77 \
23084     exclude_expsyms_F77 \
23085     include_expsyms_F77; do
23086
23087     case $var in
23088     old_archive_cmds_F77 | \
23089     old_archive_from_new_cmds_F77 | \
23090     archive_cmds_F77 | \
23091     archive_expsym_cmds_F77 | \
23092     module_cmds_F77 | \
23093     module_expsym_cmds_F77 | \
23094     old_archive_from_expsyms_cmds_F77 | \
23095     export_symbols_cmds_F77 | \
23096     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23097     postinstall_cmds | postuninstall_cmds | \
23098     old_postinstall_cmds | old_postuninstall_cmds | \
23099     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23100       # Double-quote double-evaled strings.
23101       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23102       ;;
23103     *)
23104       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23105       ;;
23106     esac
23107   done
23108
23109   case $lt_echo in
23110   *'\$0 --fallback-echo"')
23111     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23112     ;;
23113   esac
23114
23115 cfgfile="$ofile"
23116
23117   cat <<__EOF__ >> "$cfgfile"
23118 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23119
23120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23121
23122 # Shell to use when invoking shell scripts.
23123 SHELL=$lt_SHELL
23124
23125 # Whether or not to build shared libraries.
23126 build_libtool_libs=$enable_shared
23127
23128 # Whether or not to build static libraries.
23129 build_old_libs=$enable_static
23130
23131 # Whether or not to add -lc for building shared libraries.
23132 build_libtool_need_lc=$archive_cmds_need_lc_F77
23133
23134 # Whether or not to disallow shared libs when runtime libs are static
23135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23136
23137 # Whether or not to optimize for fast installation.
23138 fast_install=$enable_fast_install
23139
23140 # The host system.
23141 host_alias=$host_alias
23142 host=$host
23143 host_os=$host_os
23144
23145 # The build system.
23146 build_alias=$build_alias
23147 build=$build
23148 build_os=$build_os
23149
23150 # An echo program that does not interpret backslashes.
23151 echo=$lt_echo
23152
23153 # The archiver.
23154 AR=$lt_AR
23155 AR_FLAGS=$lt_AR_FLAGS
23156
23157 # A C compiler.
23158 LTCC=$lt_LTCC
23159
23160 # LTCC compiler flags.
23161 LTCFLAGS=$lt_LTCFLAGS
23162
23163 # A language-specific compiler.
23164 CC=$lt_compiler_F77
23165
23166 # Is the compiler the GNU C compiler?
23167 with_gcc=$GCC_F77
23168
23169 # An ERE matcher.
23170 EGREP=$lt_EGREP
23171
23172 # The linker used to build libraries.
23173 LD=$lt_LD_F77
23174
23175 # Whether we need hard or soft links.
23176 LN_S=$lt_LN_S
23177
23178 # A BSD-compatible nm program.
23179 NM=$lt_NM
23180
23181 # A symbol stripping program
23182 STRIP=$lt_STRIP
23183
23184 # Used to examine libraries when file_magic_cmd begins "file"
23185 MAGIC_CMD=$MAGIC_CMD
23186
23187 # Used on cygwin: DLL creation program.
23188 DLLTOOL="$DLLTOOL"
23189
23190 # Used on cygwin: object dumper.
23191 OBJDUMP="$OBJDUMP"
23192
23193 # Used on cygwin: assembler.
23194 AS="$AS"
23195
23196 # The name of the directory that contains temporary libtool files.
23197 objdir=$objdir
23198
23199 # How to create reloadable object files.
23200 reload_flag=$lt_reload_flag
23201 reload_cmds=$lt_reload_cmds
23202
23203 # How to pass a linker flag through the compiler.
23204 wl=$lt_lt_prog_compiler_wl_F77
23205
23206 # Object file suffix (normally "o").
23207 objext="$ac_objext"
23208
23209 # Old archive suffix (normally "a").
23210 libext="$libext"
23211
23212 # Shared library suffix (normally ".so").
23213 shrext_cmds='$shrext_cmds'
23214
23215 # Executable file suffix (normally "").
23216 exeext="$exeext"
23217
23218 # Additional compiler flags for building library objects.
23219 pic_flag=$lt_lt_prog_compiler_pic_F77
23220 pic_mode=$pic_mode
23221
23222 # What is the maximum length of a command?
23223 max_cmd_len=$lt_cv_sys_max_cmd_len
23224
23225 # Does compiler simultaneously support -c and -o options?
23226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23227
23228 # Must we lock files when doing compilation?
23229 need_locks=$lt_need_locks
23230
23231 # Do we need the lib prefix for modules?
23232 need_lib_prefix=$need_lib_prefix
23233
23234 # Do we need a version for libraries?
23235 need_version=$need_version
23236
23237 # Whether dlopen is supported.
23238 dlopen_support=$enable_dlopen
23239
23240 # Whether dlopen of programs is supported.
23241 dlopen_self=$enable_dlopen_self
23242
23243 # Whether dlopen of statically linked programs is supported.
23244 dlopen_self_static=$enable_dlopen_self_static
23245
23246 # Compiler flag to prevent dynamic linking.
23247 link_static_flag=$lt_lt_prog_compiler_static_F77
23248
23249 # Compiler flag to turn off builtin functions.
23250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23251
23252 # Compiler flag to allow reflexive dlopens.
23253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23254
23255 # Compiler flag to generate shared objects directly from archives.
23256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23257
23258 # Compiler flag to generate thread-safe objects.
23259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23260
23261 # Library versioning type.
23262 version_type=$version_type
23263
23264 # Format of library name prefix.
23265 libname_spec=$lt_libname_spec
23266
23267 # List of archive names.  First name is the real one, the rest are links.
23268 # The last name is the one that the linker finds with -lNAME.
23269 library_names_spec=$lt_library_names_spec
23270
23271 # The coded name of the library, if different from the real name.
23272 soname_spec=$lt_soname_spec
23273
23274 # Commands used to build and install an old-style archive.
23275 RANLIB=$lt_RANLIB
23276 old_archive_cmds=$lt_old_archive_cmds_F77
23277 old_postinstall_cmds=$lt_old_postinstall_cmds
23278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23279
23280 # Create an old-style archive from a shared archive.
23281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23282
23283 # Create a temporary old-style archive to link instead of a shared archive.
23284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23285
23286 # Commands used to build and install a shared archive.
23287 archive_cmds=$lt_archive_cmds_F77
23288 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23289 postinstall_cmds=$lt_postinstall_cmds
23290 postuninstall_cmds=$lt_postuninstall_cmds
23291
23292 # Commands used to build a loadable module (assumed same as above if empty)
23293 module_cmds=$lt_module_cmds_F77
23294 module_expsym_cmds=$lt_module_expsym_cmds_F77
23295
23296 # Commands to strip libraries.
23297 old_striplib=$lt_old_striplib
23298 striplib=$lt_striplib
23299
23300 # Dependencies to place before the objects being linked to create a
23301 # shared library.
23302 predep_objects=$lt_predep_objects_F77
23303
23304 # Dependencies to place after the objects being linked to create a
23305 # shared library.
23306 postdep_objects=$lt_postdep_objects_F77
23307
23308 # Dependencies to place before the objects being linked to create a
23309 # shared library.
23310 predeps=$lt_predeps_F77
23311
23312 # Dependencies to place after the objects being linked to create a
23313 # shared library.
23314 postdeps=$lt_postdeps_F77
23315
23316 # The library search path used internally by the compiler when linking
23317 # a shared library.
23318 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23319
23320 # Method to check whether dependent libraries are shared objects.
23321 deplibs_check_method=$lt_deplibs_check_method
23322
23323 # Command to use when deplibs_check_method == file_magic.
23324 file_magic_cmd=$lt_file_magic_cmd
23325
23326 # Flag that allows shared libraries with undefined symbols to be built.
23327 allow_undefined_flag=$lt_allow_undefined_flag_F77
23328
23329 # Flag that forces no undefined symbols.
23330 no_undefined_flag=$lt_no_undefined_flag_F77
23331
23332 # Commands used to finish a libtool library installation in a directory.
23333 finish_cmds=$lt_finish_cmds
23334
23335 # Same as above, but a single script fragment to be evaled but not shown.
23336 finish_eval=$lt_finish_eval
23337
23338 # Take the output of nm and produce a listing of raw symbols and C names.
23339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23340
23341 # Transform the output of nm in a proper C declaration
23342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23343
23344 # Transform the output of nm in a C name address pair
23345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23346
23347 # This is the shared library runtime path variable.
23348 runpath_var=$runpath_var
23349
23350 # This is the shared library path variable.
23351 shlibpath_var=$shlibpath_var
23352
23353 # Is shlibpath searched before the hard-coded library search path?
23354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23355
23356 # How to hardcode a shared library path into an executable.
23357 hardcode_action=$hardcode_action_F77
23358
23359 # Whether we should hardcode library paths into libraries.
23360 hardcode_into_libs=$hardcode_into_libs
23361
23362 # Flag to hardcode \$libdir into a binary during linking.
23363 # This must work even if \$libdir does not exist.
23364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23365
23366 # If ld is used when linking, flag to hardcode \$libdir into
23367 # a binary during linking. This must work even if \$libdir does
23368 # not exist.
23369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23370
23371 # Whether we need a single -rpath flag with a separated argument.
23372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23373
23374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23375 # resulting binary.
23376 hardcode_direct=$hardcode_direct_F77
23377
23378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23379 # resulting binary.
23380 hardcode_minus_L=$hardcode_minus_L_F77
23381
23382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23383 # the resulting binary.
23384 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23385
23386 # Set to yes if building a shared library automatically hardcodes DIR into the library
23387 # and all subsequent libraries and executables linked against it.
23388 hardcode_automatic=$hardcode_automatic_F77
23389
23390 # Variables whose values should be saved in libtool wrapper scripts and
23391 # restored at relink time.
23392 variables_saved_for_relink="$variables_saved_for_relink"
23393
23394 # Whether libtool must link a program against all its dependency libraries.
23395 link_all_deplibs=$link_all_deplibs_F77
23396
23397 # Compile-time system search path for libraries
23398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23399
23400 # Run-time system search path for libraries
23401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23402
23403 # Fix the shell variable \$srcfile for the compiler.
23404 fix_srcfile_path="$fix_srcfile_path_F77"
23405
23406 # Set to yes if exported symbols are required.
23407 always_export_symbols=$always_export_symbols_F77
23408
23409 # The commands to list exported symbols.
23410 export_symbols_cmds=$lt_export_symbols_cmds_F77
23411
23412 # The commands to extract the exported symbol list from a shared archive.
23413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23414
23415 # Symbols that should not be listed in the preloaded symbols.
23416 exclude_expsyms=$lt_exclude_expsyms_F77
23417
23418 # Symbols that must always be exported.
23419 include_expsyms=$lt_include_expsyms_F77
23420
23421 # ### END LIBTOOL TAG CONFIG: $tagname
23422
23423 __EOF__
23424
23425
23426 else
23427   # If there is no Makefile yet, we rely on a make rule to execute
23428   # `config.status --recheck' to rerun these tests and create the
23429   # libtool script then.
23430   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23431   if test -f "$ltmain_in"; then
23432     test -f Makefile && make "$ltmain"
23433   fi
23434 fi
23435
23436
23437 ac_ext=c
23438 ac_cpp='$CPP $CPPFLAGS'
23439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23442
23443 CC="$lt_save_CC"
23444
23445         else
23446           tagname=""
23447         fi
23448         ;;
23449
23450       GCJ)
23451         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23452           ac_ext=c
23453 ac_cpp='$CPP $CPPFLAGS'
23454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23457
23458
23459 # Source file extension for Java test sources.
23460 ac_ext=java
23461
23462 # Object file extension for compiled Java test sources.
23463 objext=o
23464 objext_GCJ=$objext
23465
23466 # Code to be used in simple compile tests
23467 lt_simple_compile_test_code="class foo {}\n"
23468
23469 # Code to be used in simple link tests
23470 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23471
23472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23473
23474 # If no C compiler was specified, use CC.
23475 LTCC=${LTCC-"$CC"}
23476
23477 # If no C compiler flags were specified, use CFLAGS.
23478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23479
23480 # Allow CC to be a program name with arguments.
23481 compiler=$CC
23482
23483
23484 # save warnings/boilerplate of simple test code
23485 ac_outfile=conftest.$ac_objext
23486 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23488 _lt_compiler_boilerplate=`cat conftest.err`
23489 $rm conftest*
23490
23491 ac_outfile=conftest.$ac_objext
23492 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23494 _lt_linker_boilerplate=`cat conftest.err`
23495 $rm conftest*
23496
23497
23498 # Allow CC to be a program name with arguments.
23499 lt_save_CC="$CC"
23500 CC=${GCJ-"gcj"}
23501 compiler=$CC
23502 compiler_GCJ=$CC
23503 for cc_temp in $compiler""; do
23504   case $cc_temp in
23505     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23506     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23507     \-*) ;;
23508     *) break;;
23509   esac
23510 done
23511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23512
23513
23514 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23515 archive_cmds_need_lc_GCJ=no
23516
23517 old_archive_cmds_GCJ=$old_archive_cmds
23518
23519
23520 lt_prog_compiler_no_builtin_flag_GCJ=
23521
23522 if test "$GCC" = yes; then
23523   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23524
23525
23526 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23529   echo $ECHO_N "(cached) $ECHO_C" >&6
23530 else
23531   lt_cv_prog_compiler_rtti_exceptions=no
23532   ac_outfile=conftest.$ac_objext
23533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23534    lt_compiler_flag="-fno-rtti -fno-exceptions"
23535    # Insert the option either (1) after the last *FLAGS variable, or
23536    # (2) before a word containing "conftest.", or (3) at the end.
23537    # Note that $ac_compile itself does not contain backslashes and begins
23538    # with a dollar sign (not a hyphen), so the echo should work correctly.
23539    # The option is referenced via a variable to avoid confusing sed.
23540    lt_compile=`echo "$ac_compile" | $SED \
23541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23543    -e 's:$: $lt_compiler_flag:'`
23544    (eval echo "\"\$as_me:23544: $lt_compile\"" >&5)
23545    (eval "$lt_compile" 2>conftest.err)
23546    ac_status=$?
23547    cat conftest.err >&5
23548    echo "$as_me:23548: \$? = $ac_status" >&5
23549    if (exit $ac_status) && test -s "$ac_outfile"; then
23550      # The compiler can only warn and ignore the option if not recognized
23551      # So say no if there are warnings other than the usual output.
23552      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23553      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23554      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23555        lt_cv_prog_compiler_rtti_exceptions=yes
23556      fi
23557    fi
23558    $rm conftest*
23559
23560 fi
23561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23562 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23563
23564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23565     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23566 else
23567     :
23568 fi
23569
23570 fi
23571
23572 lt_prog_compiler_wl_GCJ=
23573 lt_prog_compiler_pic_GCJ=
23574 lt_prog_compiler_static_GCJ=
23575
23576 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23577 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23578
23579   if test "$GCC" = yes; then
23580     lt_prog_compiler_wl_GCJ='-Wl,'
23581     lt_prog_compiler_static_GCJ='-static'
23582
23583     case $host_os in
23584       aix*)
23585       # All AIX code is PIC.
23586       if test "$host_cpu" = ia64; then
23587         # AIX 5 now supports IA64 processor
23588         lt_prog_compiler_static_GCJ='-Bstatic'
23589       fi
23590       ;;
23591
23592     amigaos*)
23593       # FIXME: we need at least 68020 code to build shared libraries, but
23594       # adding the `-m68020' flag to GCC prevents building anything better,
23595       # like `-m68040'.
23596       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23597       ;;
23598
23599     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23600       # PIC is the default for these OSes.
23601       ;;
23602
23603     mingw* | pw32* | os2*)
23604       # This hack is so that the source file can tell whether it is being
23605       # built for inclusion in a dll (and should export symbols for example).
23606       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23607       ;;
23608
23609     darwin* | rhapsody*)
23610       # PIC is the default on this platform
23611       # Common symbols not allowed in MH_DYLIB files
23612       lt_prog_compiler_pic_GCJ='-fno-common'
23613       ;;
23614
23615     interix3*)
23616       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23617       # Instead, we relocate shared libraries at runtime.
23618       ;;
23619
23620     msdosdjgpp*)
23621       # Just because we use GCC doesn't mean we suddenly get shared libraries
23622       # on systems that don't support them.
23623       lt_prog_compiler_can_build_shared_GCJ=no
23624       enable_shared=no
23625       ;;
23626
23627     sysv4*MP*)
23628       if test -d /usr/nec; then
23629         lt_prog_compiler_pic_GCJ=-Kconform_pic
23630       fi
23631       ;;
23632
23633     hpux*)
23634       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23635       # not for PA HP-UX.
23636       case $host_cpu in
23637       hppa*64*|ia64*)
23638         # +Z the default
23639         ;;
23640       *)
23641         lt_prog_compiler_pic_GCJ='-fPIC'
23642         ;;
23643       esac
23644       ;;
23645
23646     *)
23647       lt_prog_compiler_pic_GCJ='-fPIC'
23648       ;;
23649     esac
23650   else
23651     # PORTME Check for flag to pass linker flags through the system compiler.
23652     case $host_os in
23653     aix*)
23654       lt_prog_compiler_wl_GCJ='-Wl,'
23655       if test "$host_cpu" = ia64; then
23656         # AIX 5 now supports IA64 processor
23657         lt_prog_compiler_static_GCJ='-Bstatic'
23658       else
23659         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23660       fi
23661       ;;
23662       darwin*)
23663         # PIC is the default on this platform
23664         # Common symbols not allowed in MH_DYLIB files
23665        case $cc_basename in
23666          xlc*)
23667          lt_prog_compiler_pic_GCJ='-qnocommon'
23668          lt_prog_compiler_wl_GCJ='-Wl,'
23669          ;;
23670        esac
23671        ;;
23672
23673     mingw* | pw32* | os2*)
23674       # This hack is so that the source file can tell whether it is being
23675       # built for inclusion in a dll (and should export symbols for example).
23676       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23677       ;;
23678
23679     hpux9* | hpux10* | hpux11*)
23680       lt_prog_compiler_wl_GCJ='-Wl,'
23681       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23682       # not for PA HP-UX.
23683       case $host_cpu in
23684       hppa*64*|ia64*)
23685         # +Z the default
23686         ;;
23687       *)
23688         lt_prog_compiler_pic_GCJ='+Z'
23689         ;;
23690       esac
23691       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23692       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23693       ;;
23694
23695     irix5* | irix6* | nonstopux*)
23696       lt_prog_compiler_wl_GCJ='-Wl,'
23697       # PIC (with -KPIC) is the default.
23698       lt_prog_compiler_static_GCJ='-non_shared'
23699       ;;
23700
23701     newsos6)
23702       lt_prog_compiler_pic_GCJ='-KPIC'
23703       lt_prog_compiler_static_GCJ='-Bstatic'
23704       ;;
23705
23706     linux*)
23707       case $cc_basename in
23708       icc* | ecc*)
23709         lt_prog_compiler_wl_GCJ='-Wl,'
23710         lt_prog_compiler_pic_GCJ='-KPIC'
23711         lt_prog_compiler_static_GCJ='-static'
23712         ;;
23713       pgcc* | pgf77* | pgf90* | pgf95*)
23714         # Portland Group compilers (*not* the Pentium gcc compiler,
23715         # which looks to be a dead project)
23716         lt_prog_compiler_wl_GCJ='-Wl,'
23717         lt_prog_compiler_pic_GCJ='-fpic'
23718         lt_prog_compiler_static_GCJ='-Bstatic'
23719         ;;
23720       ccc*)
23721         lt_prog_compiler_wl_GCJ='-Wl,'
23722         # All Alpha code is PIC.
23723         lt_prog_compiler_static_GCJ='-non_shared'
23724         ;;
23725       esac
23726       ;;
23727
23728     osf3* | osf4* | osf5*)
23729       lt_prog_compiler_wl_GCJ='-Wl,'
23730       # All OSF/1 code is PIC.
23731       lt_prog_compiler_static_GCJ='-non_shared'
23732       ;;
23733
23734     solaris*)
23735       lt_prog_compiler_pic_GCJ='-KPIC'
23736       lt_prog_compiler_static_GCJ='-Bstatic'
23737       case $cc_basename in
23738       f77* | f90* | f95*)
23739         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23740       *)
23741         lt_prog_compiler_wl_GCJ='-Wl,';;
23742       esac
23743       ;;
23744
23745     sunos4*)
23746       lt_prog_compiler_wl_GCJ='-Qoption ld '
23747       lt_prog_compiler_pic_GCJ='-PIC'
23748       lt_prog_compiler_static_GCJ='-Bstatic'
23749       ;;
23750
23751     sysv4 | sysv4.2uw2* | sysv4.3*)
23752       lt_prog_compiler_wl_GCJ='-Wl,'
23753       lt_prog_compiler_pic_GCJ='-KPIC'
23754       lt_prog_compiler_static_GCJ='-Bstatic'
23755       ;;
23756
23757     sysv4*MP*)
23758       if test -d /usr/nec ;then
23759         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23760         lt_prog_compiler_static_GCJ='-Bstatic'
23761       fi
23762       ;;
23763
23764     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23765       lt_prog_compiler_wl_GCJ='-Wl,'
23766       lt_prog_compiler_pic_GCJ='-KPIC'
23767       lt_prog_compiler_static_GCJ='-Bstatic'
23768       ;;
23769
23770     unicos*)
23771       lt_prog_compiler_wl_GCJ='-Wl,'
23772       lt_prog_compiler_can_build_shared_GCJ=no
23773       ;;
23774
23775     uts4*)
23776       lt_prog_compiler_pic_GCJ='-pic'
23777       lt_prog_compiler_static_GCJ='-Bstatic'
23778       ;;
23779
23780     *)
23781       lt_prog_compiler_can_build_shared_GCJ=no
23782       ;;
23783     esac
23784   fi
23785
23786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23787 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23788
23789 #
23790 # Check to make sure the PIC flag actually works.
23791 #
23792 if test -n "$lt_prog_compiler_pic_GCJ"; then
23793
23794 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23796 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23797   echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799   lt_prog_compiler_pic_works_GCJ=no
23800   ac_outfile=conftest.$ac_objext
23801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23802    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23803    # Insert the option either (1) after the last *FLAGS variable, or
23804    # (2) before a word containing "conftest.", or (3) at the end.
23805    # Note that $ac_compile itself does not contain backslashes and begins
23806    # with a dollar sign (not a hyphen), so the echo should work correctly.
23807    # The option is referenced via a variable to avoid confusing sed.
23808    lt_compile=`echo "$ac_compile" | $SED \
23809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23811    -e 's:$: $lt_compiler_flag:'`
23812    (eval echo "\"\$as_me:23812: $lt_compile\"" >&5)
23813    (eval "$lt_compile" 2>conftest.err)
23814    ac_status=$?
23815    cat conftest.err >&5
23816    echo "$as_me:23816: \$? = $ac_status" >&5
23817    if (exit $ac_status) && test -s "$ac_outfile"; then
23818      # The compiler can only warn and ignore the option if not recognized
23819      # So say no if there are warnings other than the usual output.
23820      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23821      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23822      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23823        lt_prog_compiler_pic_works_GCJ=yes
23824      fi
23825    fi
23826    $rm conftest*
23827
23828 fi
23829 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23830 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23831
23832 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23833     case $lt_prog_compiler_pic_GCJ in
23834      "" | " "*) ;;
23835      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23836      esac
23837 else
23838     lt_prog_compiler_pic_GCJ=
23839      lt_prog_compiler_can_build_shared_GCJ=no
23840 fi
23841
23842 fi
23843 case $host_os in
23844   # For platforms which do not support PIC, -DPIC is meaningless:
23845   *djgpp*)
23846     lt_prog_compiler_pic_GCJ=
23847     ;;
23848   *)
23849     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23850     ;;
23851 esac
23852
23853 #
23854 # Check to make sure the static flag actually works.
23855 #
23856 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23857 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23858 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23859 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23860   echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862   lt_prog_compiler_static_works_GCJ=no
23863    save_LDFLAGS="$LDFLAGS"
23864    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23865    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23866    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23867      # The linker can only warn and ignore the option if not recognized
23868      # So say no if there are warnings
23869      if test -s conftest.err; then
23870        # Append any errors to the config.log.
23871        cat conftest.err 1>&5
23872        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23873        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23874        if diff conftest.exp conftest.er2 >/dev/null; then
23875          lt_prog_compiler_static_works_GCJ=yes
23876        fi
23877      else
23878        lt_prog_compiler_static_works_GCJ=yes
23879      fi
23880    fi
23881    $rm conftest*
23882    LDFLAGS="$save_LDFLAGS"
23883
23884 fi
23885 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23886 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23887
23888 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23889     :
23890 else
23891     lt_prog_compiler_static_GCJ=
23892 fi
23893
23894
23895 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23897 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900   lt_cv_prog_compiler_c_o_GCJ=no
23901    $rm -r conftest 2>/dev/null
23902    mkdir conftest
23903    cd conftest
23904    mkdir out
23905    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23906
23907    lt_compiler_flag="-o out/conftest2.$ac_objext"
23908    # Insert the option either (1) after the last *FLAGS variable, or
23909    # (2) before a word containing "conftest.", or (3) at the end.
23910    # Note that $ac_compile itself does not contain backslashes and begins
23911    # with a dollar sign (not a hyphen), so the echo should work correctly.
23912    lt_compile=`echo "$ac_compile" | $SED \
23913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23915    -e 's:$: $lt_compiler_flag:'`
23916    (eval echo "\"\$as_me:23916: $lt_compile\"" >&5)
23917    (eval "$lt_compile" 2>out/conftest.err)
23918    ac_status=$?
23919    cat out/conftest.err >&5
23920    echo "$as_me:23920: \$? = $ac_status" >&5
23921    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23922    then
23923      # The compiler can only warn and ignore the option if not recognized
23924      # So say no if there are warnings
23925      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23926      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23927      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23928        lt_cv_prog_compiler_c_o_GCJ=yes
23929      fi
23930    fi
23931    chmod u+w . 2>&5
23932    $rm conftest*
23933    # SGI C++ compiler will create directory out/ii_files/ for
23934    # template instantiation
23935    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23936    $rm out/* && rmdir out
23937    cd ..
23938    rmdir conftest
23939    $rm conftest*
23940
23941 fi
23942 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23944
23945
23946 hard_links="nottested"
23947 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23948   # do not overwrite the value of need_locks provided by the user
23949   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23950 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23951   hard_links=yes
23952   $rm conftest*
23953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23954   touch conftest.a
23955   ln conftest.a conftest.b 2>&5 || hard_links=no
23956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23957   { echo "$as_me:$LINENO: result: $hard_links" >&5
23958 echo "${ECHO_T}$hard_links" >&6; }
23959   if test "$hard_links" = no; then
23960     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23961 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23962     need_locks=warn
23963   fi
23964 else
23965   need_locks=no
23966 fi
23967
23968 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23970
23971   runpath_var=
23972   allow_undefined_flag_GCJ=
23973   enable_shared_with_static_runtimes_GCJ=no
23974   archive_cmds_GCJ=
23975   archive_expsym_cmds_GCJ=
23976   old_archive_From_new_cmds_GCJ=
23977   old_archive_from_expsyms_cmds_GCJ=
23978   export_dynamic_flag_spec_GCJ=
23979   whole_archive_flag_spec_GCJ=
23980   thread_safe_flag_spec_GCJ=
23981   hardcode_libdir_flag_spec_GCJ=
23982   hardcode_libdir_flag_spec_ld_GCJ=
23983   hardcode_libdir_separator_GCJ=
23984   hardcode_direct_GCJ=no
23985   hardcode_minus_L_GCJ=no
23986   hardcode_shlibpath_var_GCJ=unsupported
23987   link_all_deplibs_GCJ=unknown
23988   hardcode_automatic_GCJ=no
23989   module_cmds_GCJ=
23990   module_expsym_cmds_GCJ=
23991   always_export_symbols_GCJ=no
23992   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23993   # include_expsyms should be a list of space-separated symbols to be *always*
23994   # included in the symbol list
23995   include_expsyms_GCJ=
23996   # exclude_expsyms can be an extended regexp of symbols to exclude
23997   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23998   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23999   # as well as any symbol that contains `d'.
24000   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24001   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24002   # platforms (ab)use it in PIC code, but their linkers get confused if
24003   # the symbol is explicitly referenced.  Since portable code cannot
24004   # rely on this symbol name, it's probably fine to never include it in
24005   # preloaded symbol tables.
24006   extract_expsyms_cmds=
24007   # Just being paranoid about ensuring that cc_basename is set.
24008   for cc_temp in $compiler""; do
24009   case $cc_temp in
24010     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24011     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24012     \-*) ;;
24013     *) break;;
24014   esac
24015 done
24016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24017
24018   case $host_os in
24019   cygwin* | mingw* | pw32*)
24020     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24021     # When not using gcc, we currently assume that we are using
24022     # Microsoft Visual C++.
24023     if test "$GCC" != yes; then
24024       with_gnu_ld=no
24025     fi
24026     ;;
24027   interix*)
24028     # we just hope/assume this is gcc and not c89 (= MSVC++)
24029     with_gnu_ld=yes
24030     ;;
24031   openbsd*)
24032     with_gnu_ld=no
24033     ;;
24034   esac
24035
24036   ld_shlibs_GCJ=yes
24037   if test "$with_gnu_ld" = yes; then
24038     # If archive_cmds runs LD, not CC, wlarc should be empty
24039     wlarc='${wl}'
24040
24041     # Set some defaults for GNU ld with shared library support. These
24042     # are reset later if shared libraries are not supported. Putting them
24043     # here allows them to be overridden if necessary.
24044     runpath_var=LD_RUN_PATH
24045     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24046     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24047     # ancient GNU ld didn't support --whole-archive et. al.
24048     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24049         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24050       else
24051         whole_archive_flag_spec_GCJ=
24052     fi
24053     supports_anon_versioning=no
24054     case `$LD -v 2>/dev/null` in
24055       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24056       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24057       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24058       *\ 2.11.*) ;; # other 2.11 versions
24059       *) supports_anon_versioning=yes ;;
24060     esac
24061
24062     # See if GNU ld supports shared libraries.
24063     case $host_os in
24064     aix3* | aix4* | aix5*)
24065       # On AIX/PPC, the GNU linker is very broken
24066       if test "$host_cpu" != ia64; then
24067         ld_shlibs_GCJ=no
24068         cat <<EOF 1>&2
24069
24070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24071 *** to be unable to reliably create shared libraries on AIX.
24072 *** Therefore, libtool is disabling shared libraries support.  If you
24073 *** really care for shared libraries, you may want to modify your PATH
24074 *** so that a non-GNU linker is found, and then restart.
24075
24076 EOF
24077       fi
24078       ;;
24079
24080     amigaos*)
24081       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)'
24082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24083       hardcode_minus_L_GCJ=yes
24084
24085       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24086       # that the semantics of dynamic libraries on AmigaOS, at least up
24087       # to version 4, is to share data among multiple programs linked
24088       # with the same dynamic library.  Since this doesn't match the
24089       # behavior of shared libraries on other platforms, we can't use
24090       # them.
24091       ld_shlibs_GCJ=no
24092       ;;
24093
24094     beos*)
24095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24096         allow_undefined_flag_GCJ=unsupported
24097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24098         # support --undefined.  This deserves some investigation.  FIXME
24099         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24100       else
24101         ld_shlibs_GCJ=no
24102       fi
24103       ;;
24104
24105     cygwin* | mingw* | pw32*)
24106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24107       # as there is no search path for DLLs.
24108       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24109       allow_undefined_flag_GCJ=unsupported
24110       always_export_symbols_GCJ=no
24111       enable_shared_with_static_runtimes_GCJ=yes
24112       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24113
24114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24115         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24116         # If the export-symbols file already is a .def file (1st line
24117         # is EXPORTS), use it as is; otherwise, prepend...
24118         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24119           cp $export_symbols $output_objdir/$soname.def;
24120         else
24121           echo EXPORTS > $output_objdir/$soname.def;
24122           cat $export_symbols >> $output_objdir/$soname.def;
24123         fi~
24124         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24125       else
24126         ld_shlibs_GCJ=no
24127       fi
24128       ;;
24129
24130     interix3*)
24131       hardcode_direct_GCJ=no
24132       hardcode_shlibpath_var_GCJ=no
24133       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24134       export_dynamic_flag_spec_GCJ='${wl}-E'
24135       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24136       # Instead, shared libraries are loaded at an image base (0x10000000 by
24137       # default) and relocated if they conflict, which is a slow very memory
24138       # consuming and fragmenting process.  To avoid this, we pick a random,
24139       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24140       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24141       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'
24142       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'
24143       ;;
24144
24145     linux*)
24146       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24147         tmp_addflag=
24148         case $cc_basename,$host_cpu in
24149         pgcc*)                          # Portland Group C compiler
24150           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'
24151           tmp_addflag=' $pic_flag'
24152           ;;
24153         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24154           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'
24155           tmp_addflag=' $pic_flag -Mnomain' ;;
24156         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24157           tmp_addflag=' -i_dynamic' ;;
24158         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24159           tmp_addflag=' -i_dynamic -nofor_main' ;;
24160         ifc* | ifort*)                  # Intel Fortran compiler
24161           tmp_addflag=' -nofor_main' ;;
24162         esac
24163         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24164
24165         if test $supports_anon_versioning = yes; then
24166           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24167   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24168   $echo "local: *; };" >> $output_objdir/$libname.ver~
24169           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24170         fi
24171       else
24172         ld_shlibs_GCJ=no
24173       fi
24174       ;;
24175
24176     netbsd*)
24177       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24178         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24179         wlarc=
24180       else
24181         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24182         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24183       fi
24184       ;;
24185
24186     solaris*)
24187       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24188         ld_shlibs_GCJ=no
24189         cat <<EOF 1>&2
24190
24191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24192 *** create shared libraries on Solaris systems.  Therefore, libtool
24193 *** is disabling shared libraries support.  We urge you to upgrade GNU
24194 *** binutils to release 2.9.1 or newer.  Another option is to modify
24195 *** your PATH or compiler configuration so that the native linker is
24196 *** used, and then restart.
24197
24198 EOF
24199       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24200         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24201         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24202       else
24203         ld_shlibs_GCJ=no
24204       fi
24205       ;;
24206
24207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24208       case `$LD -v 2>&1` in
24209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24210         ld_shlibs_GCJ=no
24211         cat <<_LT_EOF 1>&2
24212
24213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24215 *** is disabling shared libraries support.  We urge you to upgrade GNU
24216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24217 *** your PATH or compiler configuration so that the native linker is
24218 *** used, and then restart.
24219
24220 _LT_EOF
24221         ;;
24222         *)
24223           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24224             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24225             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24226             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24227           else
24228             ld_shlibs_GCJ=no
24229           fi
24230         ;;
24231       esac
24232       ;;
24233
24234     sunos4*)
24235       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24236       wlarc=
24237       hardcode_direct_GCJ=yes
24238       hardcode_shlibpath_var_GCJ=no
24239       ;;
24240
24241     *)
24242       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24243         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24244         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24245       else
24246         ld_shlibs_GCJ=no
24247       fi
24248       ;;
24249     esac
24250
24251     if test "$ld_shlibs_GCJ" = no; then
24252       runpath_var=
24253       hardcode_libdir_flag_spec_GCJ=
24254       export_dynamic_flag_spec_GCJ=
24255       whole_archive_flag_spec_GCJ=
24256     fi
24257   else
24258     # PORTME fill in a description of your system's linker (not GNU ld)
24259     case $host_os in
24260     aix3*)
24261       allow_undefined_flag_GCJ=unsupported
24262       always_export_symbols_GCJ=yes
24263       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'
24264       # Note: this linker hardcodes the directories in LIBPATH if there
24265       # are no directories specified by -L.
24266       hardcode_minus_L_GCJ=yes
24267       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24268         # Neither direct hardcoding nor static linking is supported with a
24269         # broken collect2.
24270         hardcode_direct_GCJ=unsupported
24271       fi
24272       ;;
24273
24274     aix4* | aix5*)
24275       if test "$host_cpu" = ia64; then
24276         # On IA64, the linker does run time linking by default, so we don't
24277         # have to do anything special.
24278         aix_use_runtimelinking=no
24279         exp_sym_flag='-Bexport'
24280         no_entry_flag=""
24281       else
24282         # If we're using GNU nm, then we don't want the "-C" option.
24283         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24284         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24285           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'
24286         else
24287           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'
24288         fi
24289         aix_use_runtimelinking=no
24290
24291         # Test if we are trying to use run time linking or normal
24292         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24293         # need to do runtime linking.
24294         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24295           for ld_flag in $LDFLAGS; do
24296           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24297             aix_use_runtimelinking=yes
24298             break
24299           fi
24300           done
24301           ;;
24302         esac
24303
24304         exp_sym_flag='-bexport'
24305         no_entry_flag='-bnoentry'
24306       fi
24307
24308       # When large executables or shared objects are built, AIX ld can
24309       # have problems creating the table of contents.  If linking a library
24310       # or program results in "error TOC overflow" add -mminimal-toc to
24311       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24312       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24313
24314       archive_cmds_GCJ=''
24315       hardcode_direct_GCJ=yes
24316       hardcode_libdir_separator_GCJ=':'
24317       link_all_deplibs_GCJ=yes
24318
24319       if test "$GCC" = yes; then
24320         case $host_os in aix4.[012]|aix4.[012].*)
24321         # We only want to do this on AIX 4.2 and lower, the check
24322         # below for broken collect2 doesn't work under 4.3+
24323           collect2name=`${CC} -print-prog-name=collect2`
24324           if test -f "$collect2name" && \
24325            strings "$collect2name" | grep resolve_lib_name >/dev/null
24326           then
24327           # We have reworked collect2
24328           hardcode_direct_GCJ=yes
24329           else
24330           # We have old collect2
24331           hardcode_direct_GCJ=unsupported
24332           # It fails to find uninstalled libraries when the uninstalled
24333           # path is not listed in the libpath.  Setting hardcode_minus_L
24334           # to unsupported forces relinking
24335           hardcode_minus_L_GCJ=yes
24336           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24337           hardcode_libdir_separator_GCJ=
24338           fi
24339           ;;
24340         esac
24341         shared_flag='-shared'
24342         if test "$aix_use_runtimelinking" = yes; then
24343           shared_flag="$shared_flag "'${wl}-G'
24344         fi
24345       else
24346         # not using gcc
24347         if test "$host_cpu" = ia64; then
24348         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24349         # chokes on -Wl,-G. The following line is correct:
24350           shared_flag='-G'
24351         else
24352           if test "$aix_use_runtimelinking" = yes; then
24353             shared_flag='${wl}-G'
24354           else
24355             shared_flag='${wl}-bM:SRE'
24356           fi
24357         fi
24358       fi
24359
24360       # It seems that -bexpall does not export symbols beginning with
24361       # underscore (_), so it is better to generate a list of symbols to export.
24362       always_export_symbols_GCJ=yes
24363       if test "$aix_use_runtimelinking" = yes; then
24364         # Warning - without using the other runtime loading flags (-brtl),
24365         # -berok will link without error, but may produce a broken library.
24366         allow_undefined_flag_GCJ='-berok'
24367        # Determine the default libpath from the value encoded in an empty executable.
24368        cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374
24375 int
24376 main ()
24377 {
24378
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390   (eval "$ac_link") 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } &&
24397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24398   { (case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_try") 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); }; } &&
24407          { ac_try='test -s conftest$ac_exeext'
24408   { (case "(($ac_try" in
24409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410   *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413   (eval "$ac_try") 2>&5
24414   ac_status=$?
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); }; }; then
24417
24418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24419 }'`
24420 # Check for a 64-bit object if we didn't find anything.
24421 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; }
24422 }'`; fi
24423 else
24424   echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24426
24427
24428 fi
24429
24430 rm -f core conftest.err conftest.$ac_objext \
24431       conftest$ac_exeext conftest.$ac_ext
24432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433
24434        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24435         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"
24436        else
24437         if test "$host_cpu" = ia64; then
24438           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24439           allow_undefined_flag_GCJ="-z nodefs"
24440           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"
24441         else
24442          # Determine the default libpath from the value encoded in an empty executable.
24443          cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449
24450 int
24451 main ()
24452 {
24453
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 rm -f conftest.$ac_objext conftest$ac_exeext
24459 if { (ac_try="$ac_link"
24460 case "(($ac_try" in
24461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24462   *) ac_try_echo=$ac_try;;
24463 esac
24464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24465   (eval "$ac_link") 2>conftest.er1
24466   ac_status=$?
24467   grep -v '^ *+' conftest.er1 >conftest.err
24468   rm -f conftest.er1
24469   cat conftest.err >&5
24470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471   (exit $ac_status); } &&
24472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24473   { (case "(($ac_try" in
24474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475   *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478   (eval "$ac_try") 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; } &&
24482          { ac_try='test -s conftest$ac_exeext'
24483   { (case "(($ac_try" in
24484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485   *) ac_try_echo=$ac_try;;
24486 esac
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488   (eval "$ac_try") 2>&5
24489   ac_status=$?
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); }; }; then
24492
24493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24494 }'`
24495 # Check for a 64-bit object if we didn't find anything.
24496 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; }
24497 }'`; fi
24498 else
24499   echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502
24503 fi
24504
24505 rm -f core conftest.err conftest.$ac_objext \
24506       conftest$ac_exeext conftest.$ac_ext
24507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24508
24509          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24510           # Warning - without using the other run time loading flags,
24511           # -berok will link without error, but may produce a broken library.
24512           no_undefined_flag_GCJ=' ${wl}-bernotok'
24513           allow_undefined_flag_GCJ=' ${wl}-berok'
24514           # Exported symbols can be pulled into shared objects from archives
24515           whole_archive_flag_spec_GCJ='$convenience'
24516           archive_cmds_need_lc_GCJ=yes
24517           # This is similar to how AIX traditionally builds its shared libraries.
24518           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'
24519         fi
24520       fi
24521       ;;
24522
24523     amigaos*)
24524       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)'
24525       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24526       hardcode_minus_L_GCJ=yes
24527       # see comment about different semantics on the GNU ld section
24528       ld_shlibs_GCJ=no
24529       ;;
24530
24531     bsdi[45]*)
24532       export_dynamic_flag_spec_GCJ=-rdynamic
24533       ;;
24534
24535     cygwin* | mingw* | pw32*)
24536       # When not using gcc, we currently assume that we are using
24537       # Microsoft Visual C++.
24538       # hardcode_libdir_flag_spec is actually meaningless, as there is
24539       # no search path for DLLs.
24540       hardcode_libdir_flag_spec_GCJ=' '
24541       allow_undefined_flag_GCJ=unsupported
24542       # Tell ltmain to make .lib files, not .a files.
24543       libext=lib
24544       # Tell ltmain to make .dll files, not .so files.
24545       shrext_cmds=".dll"
24546       # FIXME: Setting linknames here is a bad hack.
24547       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24548       # The linker will automatically build a .lib file if we build a DLL.
24549       old_archive_From_new_cmds_GCJ='true'
24550       # FIXME: Should let the user specify the lib program.
24551       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24552       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24553       enable_shared_with_static_runtimes_GCJ=yes
24554       ;;
24555
24556     darwin* | rhapsody*)
24557       case $host_os in
24558         rhapsody* | darwin1.[012])
24559          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24560          ;;
24561        *) # Darwin 1.3 on
24562          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24563            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24564          else
24565            case ${MACOSX_DEPLOYMENT_TARGET} in
24566              10.[012])
24567                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24568                ;;
24569              10.*)
24570                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24571                ;;
24572            esac
24573          fi
24574          ;;
24575       esac
24576       archive_cmds_need_lc_GCJ=no
24577       hardcode_direct_GCJ=no
24578       hardcode_automatic_GCJ=yes
24579       hardcode_shlibpath_var_GCJ=unsupported
24580       whole_archive_flag_spec_GCJ=''
24581       link_all_deplibs_GCJ=yes
24582     if test "$GCC" = yes ; then
24583         output_verbose_link_cmd='echo'
24584         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24585       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24586       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24587       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}'
24588       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}'
24589     else
24590       case $cc_basename in
24591         xlc*)
24592          output_verbose_link_cmd='echo'
24593          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24594          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24595           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24596          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}'
24597           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}'
24598           ;;
24599        *)
24600          ld_shlibs_GCJ=no
24601           ;;
24602       esac
24603     fi
24604       ;;
24605
24606     dgux*)
24607       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24608       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24609       hardcode_shlibpath_var_GCJ=no
24610       ;;
24611
24612     freebsd1*)
24613       ld_shlibs_GCJ=no
24614       ;;
24615
24616     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24617     # support.  Future versions do this automatically, but an explicit c++rt0.o
24618     # does not break anything, and helps significantly (at the cost of a little
24619     # extra space).
24620     freebsd2.2*)
24621       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24622       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24623       hardcode_direct_GCJ=yes
24624       hardcode_shlibpath_var_GCJ=no
24625       ;;
24626
24627     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24628     freebsd2*)
24629       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24630       hardcode_direct_GCJ=yes
24631       hardcode_minus_L_GCJ=yes
24632       hardcode_shlibpath_var_GCJ=no
24633       ;;
24634
24635     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24636     freebsd* | kfreebsd*-gnu | dragonfly*)
24637       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24638       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24639       hardcode_direct_GCJ=yes
24640       hardcode_shlibpath_var_GCJ=no
24641       ;;
24642
24643     hpux9*)
24644       if test "$GCC" = yes; then
24645         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'
24646       else
24647         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'
24648       fi
24649       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24650       hardcode_libdir_separator_GCJ=:
24651       hardcode_direct_GCJ=yes
24652
24653       # hardcode_minus_L: Not really in the search PATH,
24654       # but as the default location of the library.
24655       hardcode_minus_L_GCJ=yes
24656       export_dynamic_flag_spec_GCJ='${wl}-E'
24657       ;;
24658
24659     hpux10*)
24660       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24661         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24662       else
24663         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24664       fi
24665       if test "$with_gnu_ld" = no; then
24666         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24667         hardcode_libdir_separator_GCJ=:
24668
24669         hardcode_direct_GCJ=yes
24670         export_dynamic_flag_spec_GCJ='${wl}-E'
24671
24672         # hardcode_minus_L: Not really in the search PATH,
24673         # but as the default location of the library.
24674         hardcode_minus_L_GCJ=yes
24675       fi
24676       ;;
24677
24678     hpux11*)
24679       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24680         case $host_cpu in
24681         hppa*64*)
24682           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24683           ;;
24684         ia64*)
24685           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24686           ;;
24687         *)
24688           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24689           ;;
24690         esac
24691       else
24692         case $host_cpu in
24693         hppa*64*)
24694           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24695           ;;
24696         ia64*)
24697           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24698           ;;
24699         *)
24700           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24701           ;;
24702         esac
24703       fi
24704       if test "$with_gnu_ld" = no; then
24705         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24706         hardcode_libdir_separator_GCJ=:
24707
24708         case $host_cpu in
24709         hppa*64*|ia64*)
24710           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24711           hardcode_direct_GCJ=no
24712           hardcode_shlibpath_var_GCJ=no
24713           ;;
24714         *)
24715           hardcode_direct_GCJ=yes
24716           export_dynamic_flag_spec_GCJ='${wl}-E'
24717
24718           # hardcode_minus_L: Not really in the search PATH,
24719           # but as the default location of the library.
24720           hardcode_minus_L_GCJ=yes
24721           ;;
24722         esac
24723       fi
24724       ;;
24725
24726     irix5* | irix6* | nonstopux*)
24727       if test "$GCC" = yes; then
24728         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'
24729       else
24730         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'
24731         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24732       fi
24733       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24734       hardcode_libdir_separator_GCJ=:
24735       link_all_deplibs_GCJ=yes
24736       ;;
24737
24738     netbsd*)
24739       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24740         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24741       else
24742         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24743       fi
24744       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24745       hardcode_direct_GCJ=yes
24746       hardcode_shlibpath_var_GCJ=no
24747       ;;
24748
24749     newsos6)
24750       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24751       hardcode_direct_GCJ=yes
24752       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24753       hardcode_libdir_separator_GCJ=:
24754       hardcode_shlibpath_var_GCJ=no
24755       ;;
24756
24757     openbsd*)
24758       hardcode_direct_GCJ=yes
24759       hardcode_shlibpath_var_GCJ=no
24760       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24761         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24762         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24763         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24764         export_dynamic_flag_spec_GCJ='${wl}-E'
24765       else
24766        case $host_os in
24767          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24768            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24769            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24770            ;;
24771          *)
24772            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24773            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24774            ;;
24775        esac
24776       fi
24777       ;;
24778
24779     os2*)
24780       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24781       hardcode_minus_L_GCJ=yes
24782       allow_undefined_flag_GCJ=unsupported
24783       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'
24784       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24785       ;;
24786
24787     osf3*)
24788       if test "$GCC" = yes; then
24789         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24790         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'
24791       else
24792         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24793         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'
24794       fi
24795       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24796       hardcode_libdir_separator_GCJ=:
24797       ;;
24798
24799     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24800       if test "$GCC" = yes; then
24801         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24802         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'
24803         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24804       else
24805         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24806         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'
24807         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~
24808         $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'
24809
24810         # Both c and cxx compiler support -rpath directly
24811         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24812       fi
24813       hardcode_libdir_separator_GCJ=:
24814       ;;
24815
24816     solaris*)
24817       no_undefined_flag_GCJ=' -z text'
24818       if test "$GCC" = yes; then
24819         wlarc='${wl}'
24820         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24821         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24822           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24823       else
24824         wlarc=''
24825         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24826         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24827         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24828       fi
24829       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24830       hardcode_shlibpath_var_GCJ=no
24831       case $host_os in
24832       solaris2.[0-5] | solaris2.[0-5].*) ;;
24833       *)
24834         # The compiler driver will combine linker options so we
24835         # cannot just pass the convience library names through
24836         # without $wl, iff we do not link with $LD.
24837         # Luckily, gcc supports the same syntax we need for Sun Studio.
24838         # Supported since Solaris 2.6 (maybe 2.5.1?)
24839         case $wlarc in
24840         '')
24841           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24842         *)
24843           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' ;;
24844         esac ;;
24845       esac
24846       link_all_deplibs_GCJ=yes
24847       ;;
24848
24849     sunos4*)
24850       if test "x$host_vendor" = xsequent; then
24851         # Use $CC to link under sequent, because it throws in some extra .o
24852         # files that make .init and .fini sections work.
24853         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24854       else
24855         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24856       fi
24857       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24858       hardcode_direct_GCJ=yes
24859       hardcode_minus_L_GCJ=yes
24860       hardcode_shlibpath_var_GCJ=no
24861       ;;
24862
24863     sysv4)
24864       case $host_vendor in
24865         sni)
24866           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867           hardcode_direct_GCJ=yes # is this really true???
24868         ;;
24869         siemens)
24870           ## LD is ld it makes a PLAMLIB
24871           ## CC just makes a GrossModule.
24872           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24873           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24874           hardcode_direct_GCJ=no
24875         ;;
24876         motorola)
24877           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24878           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24879         ;;
24880       esac
24881       runpath_var='LD_RUN_PATH'
24882       hardcode_shlibpath_var_GCJ=no
24883       ;;
24884
24885     sysv4.3*)
24886       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24887       hardcode_shlibpath_var_GCJ=no
24888       export_dynamic_flag_spec_GCJ='-Bexport'
24889       ;;
24890
24891     sysv4*MP*)
24892       if test -d /usr/nec; then
24893         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24894         hardcode_shlibpath_var_GCJ=no
24895         runpath_var=LD_RUN_PATH
24896         hardcode_runpath_var=yes
24897         ld_shlibs_GCJ=yes
24898       fi
24899       ;;
24900
24901     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24902       no_undefined_flag_GCJ='${wl}-z,text'
24903       archive_cmds_need_lc_GCJ=no
24904       hardcode_shlibpath_var_GCJ=no
24905       runpath_var='LD_RUN_PATH'
24906
24907       if test "$GCC" = yes; then
24908         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24909         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24910       else
24911         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24912         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24913       fi
24914       ;;
24915
24916     sysv5* | sco3.2v5* | sco5v6*)
24917       # Note: We can NOT use -z defs as we might desire, because we do not
24918       # link with -lc, and that would cause any symbols used from libc to
24919       # always be unresolved, which means just about no library would
24920       # ever link correctly.  If we're not using GNU ld we use -z text
24921       # though, which does catch some bad symbols but isn't as heavy-handed
24922       # as -z defs.
24923       no_undefined_flag_GCJ='${wl}-z,text'
24924       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24925       archive_cmds_need_lc_GCJ=no
24926       hardcode_shlibpath_var_GCJ=no
24927       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24928       hardcode_libdir_separator_GCJ=':'
24929       link_all_deplibs_GCJ=yes
24930       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24931       runpath_var='LD_RUN_PATH'
24932
24933       if test "$GCC" = yes; then
24934         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24935         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24936       else
24937         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24938         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24939       fi
24940       ;;
24941
24942     uts4*)
24943       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24944       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24945       hardcode_shlibpath_var_GCJ=no
24946       ;;
24947
24948     *)
24949       ld_shlibs_GCJ=no
24950       ;;
24951     esac
24952   fi
24953
24954 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24955 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24956 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24957
24958 #
24959 # Do we need to explicitly link libc?
24960 #
24961 case "x$archive_cmds_need_lc_GCJ" in
24962 x|xyes)
24963   # Assume -lc should be added
24964   archive_cmds_need_lc_GCJ=yes
24965
24966   if test "$enable_shared" = yes && test "$GCC" = yes; then
24967     case $archive_cmds_GCJ in
24968     *'~'*)
24969       # FIXME: we may have to deal with multi-command sequences.
24970       ;;
24971     '$CC '*)
24972       # Test whether the compiler implicitly links with -lc since on some
24973       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24974       # to ld, don't add -lc before -lgcc.
24975       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24977       $rm conftest*
24978       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24979
24980       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24981   (eval $ac_compile) 2>&5
24982   ac_status=$?
24983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984   (exit $ac_status); } 2>conftest.err; then
24985         soname=conftest
24986         lib=conftest
24987         libobjs=conftest.$ac_objext
24988         deplibs=
24989         wl=$lt_prog_compiler_wl_GCJ
24990         pic_flag=$lt_prog_compiler_pic_GCJ
24991         compiler_flags=-v
24992         linker_flags=-v
24993         verstring=
24994         output_objdir=.
24995         libname=conftest
24996         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24997         allow_undefined_flag_GCJ=
24998         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24999   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); }
25003         then
25004           archive_cmds_need_lc_GCJ=no
25005         else
25006           archive_cmds_need_lc_GCJ=yes
25007         fi
25008         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25009       else
25010         cat conftest.err 1>&5
25011       fi
25012       $rm conftest*
25013       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25014 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25015       ;;
25016     esac
25017   fi
25018   ;;
25019 esac
25020
25021 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25022 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25023 library_names_spec=
25024 libname_spec='lib$name'
25025 soname_spec=
25026 shrext_cmds=".so"
25027 postinstall_cmds=
25028 postuninstall_cmds=
25029 finish_cmds=
25030 finish_eval=
25031 shlibpath_var=
25032 shlibpath_overrides_runpath=unknown
25033 version_type=none
25034 dynamic_linker="$host_os ld.so"
25035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25036 if test "$GCC" = yes; then
25037   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25038   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25039     # if the path contains ";" then we assume it to be the separator
25040     # otherwise default to the standard path separator (i.e. ":") - it is
25041     # assumed that no part of a normal pathname contains ";" but that should
25042     # okay in the real world where ";" in dirpaths is itself problematic.
25043     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25044   else
25045     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25046   fi
25047 else
25048   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25049 fi
25050 need_lib_prefix=unknown
25051 hardcode_into_libs=no
25052
25053 # when you set need_version to no, make sure it does not cause -set_version
25054 # flags to be left without arguments
25055 need_version=unknown
25056
25057 case $host_os in
25058 aix3*)
25059   version_type=linux
25060   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25061   shlibpath_var=LIBPATH
25062
25063   # AIX 3 has no versioning support, so we append a major version to the name.
25064   soname_spec='${libname}${release}${shared_ext}$major'
25065   ;;
25066
25067 aix4* | aix5*)
25068   version_type=linux
25069   need_lib_prefix=no
25070   need_version=no
25071   hardcode_into_libs=yes
25072   if test "$host_cpu" = ia64; then
25073     # AIX 5 supports IA64
25074     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25075     shlibpath_var=LD_LIBRARY_PATH
25076   else
25077     # With GCC up to 2.95.x, collect2 would create an import file
25078     # for dependence libraries.  The import file would start with
25079     # the line `#! .'.  This would cause the generated library to
25080     # depend on `.', always an invalid library.  This was fixed in
25081     # development snapshots of GCC prior to 3.0.
25082     case $host_os in
25083       aix4 | aix4.[01] | aix4.[01].*)
25084       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25085            echo ' yes '
25086            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25087         :
25088       else
25089         can_build_shared=no
25090       fi
25091       ;;
25092     esac
25093     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25094     # soname into executable. Probably we can add versioning support to
25095     # collect2, so additional links can be useful in future.
25096     if test "$aix_use_runtimelinking" = yes; then
25097       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25098       # instead of lib<name>.a to let people know that these are not
25099       # typical AIX shared libraries.
25100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25101     else
25102       # We preserve .a as extension for shared libraries through AIX4.2
25103       # and later when we are not doing run time linking.
25104       library_names_spec='${libname}${release}.a $libname.a'
25105       soname_spec='${libname}${release}${shared_ext}$major'
25106     fi
25107     shlibpath_var=LIBPATH
25108   fi
25109   ;;
25110
25111 amigaos*)
25112   library_names_spec='$libname.ixlibrary $libname.a'
25113   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25114   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'
25115   ;;
25116
25117 beos*)
25118   library_names_spec='${libname}${shared_ext}'
25119   dynamic_linker="$host_os ld.so"
25120   shlibpath_var=LIBRARY_PATH
25121   ;;
25122
25123 bsdi[45]*)
25124   version_type=linux
25125   need_version=no
25126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25127   soname_spec='${libname}${release}${shared_ext}$major'
25128   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25129   shlibpath_var=LD_LIBRARY_PATH
25130   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25131   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25132   # the default ld.so.conf also contains /usr/contrib/lib and
25133   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25134   # libtool to hard-code these into programs
25135   ;;
25136
25137 cygwin* | mingw* | pw32*)
25138   version_type=windows
25139   shrext_cmds=".dll"
25140   need_version=no
25141   need_lib_prefix=no
25142
25143   case $GCC,$host_os in
25144   yes,cygwin* | yes,mingw* | yes,pw32*)
25145     library_names_spec='$libname.dll.a'
25146     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25147     postinstall_cmds='base_file=`basename \${file}`~
25148       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25149       dldir=$destdir/`dirname \$dlpath`~
25150       test -d \$dldir || mkdir -p \$dldir~
25151       $install_prog $dir/$dlname \$dldir/$dlname~
25152       chmod a+x \$dldir/$dlname'
25153     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25154       dlpath=$dir/\$dldll~
25155        $rm \$dlpath'
25156     shlibpath_overrides_runpath=yes
25157
25158     case $host_os in
25159     cygwin*)
25160       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25161       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25162       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25163       ;;
25164     mingw*)
25165       # MinGW DLLs use traditional 'lib' prefix
25166       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25167       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25168       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25169         # It is most probably a Windows format PATH printed by
25170         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25171         # path with ; separators, and with drive letters. We can handle the
25172         # drive letters (cygwin fileutils understands them), so leave them,
25173         # especially as we might pass files found there to a mingw objdump,
25174         # which wouldn't understand a cygwinified path. Ahh.
25175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25176       else
25177         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25178       fi
25179       ;;
25180     pw32*)
25181       # pw32 DLLs use 'pw' prefix rather than 'lib'
25182       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25183       ;;
25184     esac
25185     ;;
25186
25187   *)
25188     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25189     ;;
25190   esac
25191   dynamic_linker='Win32 ld.exe'
25192   # FIXME: first we should search . and the directory the executable is in
25193   shlibpath_var=PATH
25194   ;;
25195
25196 darwin* | rhapsody*)
25197   dynamic_linker="$host_os dyld"
25198   version_type=darwin
25199   need_lib_prefix=no
25200   need_version=no
25201   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25202   soname_spec='${libname}${release}${major}$shared_ext'
25203   shlibpath_overrides_runpath=yes
25204   shlibpath_var=DYLD_LIBRARY_PATH
25205   shrext_cmds='.dylib'
25206   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25207   if test "$GCC" = yes; then
25208     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"`
25209   else
25210     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25211   fi
25212   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25213   ;;
25214
25215 dgux*)
25216   version_type=linux
25217   need_lib_prefix=no
25218   need_version=no
25219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25220   soname_spec='${libname}${release}${shared_ext}$major'
25221   shlibpath_var=LD_LIBRARY_PATH
25222   ;;
25223
25224 freebsd1*)
25225   dynamic_linker=no
25226   ;;
25227
25228 kfreebsd*-gnu)
25229   version_type=linux
25230   need_lib_prefix=no
25231   need_version=no
25232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25233   soname_spec='${libname}${release}${shared_ext}$major'
25234   shlibpath_var=LD_LIBRARY_PATH
25235   shlibpath_overrides_runpath=no
25236   hardcode_into_libs=yes
25237   dynamic_linker='GNU ld.so'
25238   ;;
25239
25240 freebsd* | dragonfly*)
25241   # DragonFly does not have aout.  When/if they implement a new
25242   # versioning mechanism, adjust this.
25243   if test -x /usr/bin/objformat; then
25244     objformat=`/usr/bin/objformat`
25245   else
25246     case $host_os in
25247     freebsd[123]*) objformat=aout ;;
25248     *) objformat=elf ;;
25249     esac
25250   fi
25251   version_type=freebsd-$objformat
25252   case $version_type in
25253     freebsd-elf*)
25254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25255       need_version=no
25256       need_lib_prefix=no
25257       ;;
25258     freebsd-*)
25259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25260       need_version=yes
25261       ;;
25262   esac
25263   shlibpath_var=LD_LIBRARY_PATH
25264   case $host_os in
25265   freebsd2*)
25266     shlibpath_overrides_runpath=yes
25267     ;;
25268   freebsd3.[01]* | freebsdelf3.[01]*)
25269     shlibpath_overrides_runpath=yes
25270     hardcode_into_libs=yes
25271     ;;
25272   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25273   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25274     shlibpath_overrides_runpath=no
25275     hardcode_into_libs=yes
25276     ;;
25277   freebsd*) # from 4.6 on
25278     shlibpath_overrides_runpath=yes
25279     hardcode_into_libs=yes
25280     ;;
25281   esac
25282   ;;
25283
25284 gnu*)
25285   version_type=linux
25286   need_lib_prefix=no
25287   need_version=no
25288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25289   soname_spec='${libname}${release}${shared_ext}$major'
25290   shlibpath_var=LD_LIBRARY_PATH
25291   hardcode_into_libs=yes
25292   ;;
25293
25294 hpux9* | hpux10* | hpux11*)
25295   # Give a soname corresponding to the major version so that dld.sl refuses to
25296   # link against other versions.
25297   version_type=sunos
25298   need_lib_prefix=no
25299   need_version=no
25300   case $host_cpu in
25301   ia64*)
25302     shrext_cmds='.so'
25303     hardcode_into_libs=yes
25304     dynamic_linker="$host_os dld.so"
25305     shlibpath_var=LD_LIBRARY_PATH
25306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25308     soname_spec='${libname}${release}${shared_ext}$major'
25309     if test "X$HPUX_IA64_MODE" = X32; then
25310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25311     else
25312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25313     fi
25314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25315     ;;
25316    hppa*64*)
25317      shrext_cmds='.sl'
25318      hardcode_into_libs=yes
25319      dynamic_linker="$host_os dld.sl"
25320      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25321      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25322      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25323      soname_spec='${libname}${release}${shared_ext}$major'
25324      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25325      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25326      ;;
25327    *)
25328     shrext_cmds='.sl'
25329     dynamic_linker="$host_os dld.sl"
25330     shlibpath_var=SHLIB_PATH
25331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25333     soname_spec='${libname}${release}${shared_ext}$major'
25334     ;;
25335   esac
25336   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25337   postinstall_cmds='chmod 555 $lib'
25338   ;;
25339
25340 interix3*)
25341   version_type=linux
25342   need_lib_prefix=no
25343   need_version=no
25344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25345   soname_spec='${libname}${release}${shared_ext}$major'
25346   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25347   shlibpath_var=LD_LIBRARY_PATH
25348   shlibpath_overrides_runpath=no
25349   hardcode_into_libs=yes
25350   ;;
25351
25352 irix5* | irix6* | nonstopux*)
25353   case $host_os in
25354     nonstopux*) version_type=nonstopux ;;
25355     *)
25356         if test "$lt_cv_prog_gnu_ld" = yes; then
25357                 version_type=linux
25358         else
25359                 version_type=irix
25360         fi ;;
25361   esac
25362   need_lib_prefix=no
25363   need_version=no
25364   soname_spec='${libname}${release}${shared_ext}$major'
25365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25366   case $host_os in
25367   irix5* | nonstopux*)
25368     libsuff= shlibsuff=
25369     ;;
25370   *)
25371     case $LD in # libtool.m4 will add one of these switches to LD
25372     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25373       libsuff= shlibsuff= libmagic=32-bit;;
25374     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25375       libsuff=32 shlibsuff=N32 libmagic=N32;;
25376     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25377       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25378     *) libsuff= shlibsuff= libmagic=never-match;;
25379     esac
25380     ;;
25381   esac
25382   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25383   shlibpath_overrides_runpath=no
25384   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25385   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25386   hardcode_into_libs=yes
25387   ;;
25388
25389 # No shared lib support for Linux oldld, aout, or coff.
25390 linux*oldld* | linux*aout* | linux*coff*)
25391   dynamic_linker=no
25392   ;;
25393
25394 # This must be Linux ELF.
25395 linux*)
25396   version_type=linux
25397   need_lib_prefix=no
25398   need_version=no
25399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400   soname_spec='${libname}${release}${shared_ext}$major'
25401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25402   shlibpath_var=LD_LIBRARY_PATH
25403   shlibpath_overrides_runpath=no
25404   # This implies no fast_install, which is unacceptable.
25405   # Some rework will be needed to allow for fast_install
25406   # before this can be enabled.
25407   hardcode_into_libs=yes
25408
25409   # Append ld.so.conf contents to the search path
25410   if test -f /etc/ld.so.conf; then
25411     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' ' '`
25412     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25413   fi
25414
25415   # We used to test for /lib/ld.so.1 and disable shared libraries on
25416   # powerpc, because MkLinux only supported shared libraries with the
25417   # GNU dynamic linker.  Since this was broken with cross compilers,
25418   # most powerpc-linux boxes support dynamic linking these days and
25419   # people can always --disable-shared, the test was removed, and we
25420   # assume the GNU/Linux dynamic linker is in use.
25421   dynamic_linker='GNU/Linux ld.so'
25422   ;;
25423
25424 knetbsd*-gnu)
25425   version_type=linux
25426   need_lib_prefix=no
25427   need_version=no
25428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429   soname_spec='${libname}${release}${shared_ext}$major'
25430   shlibpath_var=LD_LIBRARY_PATH
25431   shlibpath_overrides_runpath=no
25432   hardcode_into_libs=yes
25433   dynamic_linker='GNU ld.so'
25434   ;;
25435
25436 netbsd*)
25437   version_type=sunos
25438   need_lib_prefix=no
25439   need_version=no
25440   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25442     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25443     dynamic_linker='NetBSD (a.out) ld.so'
25444   else
25445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25446     soname_spec='${libname}${release}${shared_ext}$major'
25447     dynamic_linker='NetBSD ld.elf_so'
25448   fi
25449   shlibpath_var=LD_LIBRARY_PATH
25450   shlibpath_overrides_runpath=yes
25451   hardcode_into_libs=yes
25452   ;;
25453
25454 newsos6)
25455   version_type=linux
25456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25457   shlibpath_var=LD_LIBRARY_PATH
25458   shlibpath_overrides_runpath=yes
25459   ;;
25460
25461 nto-qnx*)
25462   version_type=linux
25463   need_lib_prefix=no
25464   need_version=no
25465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25466   soname_spec='${libname}${release}${shared_ext}$major'
25467   shlibpath_var=LD_LIBRARY_PATH
25468   shlibpath_overrides_runpath=yes
25469   ;;
25470
25471 openbsd*)
25472   version_type=sunos
25473   sys_lib_dlsearch_path_spec="/usr/lib"
25474   need_lib_prefix=no
25475   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25476   case $host_os in
25477     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25478     *)                         need_version=no  ;;
25479   esac
25480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25482   shlibpath_var=LD_LIBRARY_PATH
25483   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25484     case $host_os in
25485       openbsd2.[89] | openbsd2.[89].*)
25486         shlibpath_overrides_runpath=no
25487         ;;
25488       *)
25489         shlibpath_overrides_runpath=yes
25490         ;;
25491       esac
25492   else
25493     shlibpath_overrides_runpath=yes
25494   fi
25495   ;;
25496
25497 os2*)
25498   libname_spec='$name'
25499   shrext_cmds=".dll"
25500   need_lib_prefix=no
25501   library_names_spec='$libname${shared_ext} $libname.a'
25502   dynamic_linker='OS/2 ld.exe'
25503   shlibpath_var=LIBPATH
25504   ;;
25505
25506 osf3* | osf4* | osf5*)
25507   version_type=osf
25508   need_lib_prefix=no
25509   need_version=no
25510   soname_spec='${libname}${release}${shared_ext}$major'
25511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25512   shlibpath_var=LD_LIBRARY_PATH
25513   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25514   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25515   ;;
25516
25517 solaris*)
25518   version_type=linux
25519   need_lib_prefix=no
25520   need_version=no
25521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25522   soname_spec='${libname}${release}${shared_ext}$major'
25523   shlibpath_var=LD_LIBRARY_PATH
25524   shlibpath_overrides_runpath=yes
25525   hardcode_into_libs=yes
25526   # ldd complains unless libraries are executable
25527   postinstall_cmds='chmod +x $lib'
25528   ;;
25529
25530 sunos4*)
25531   version_type=sunos
25532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25534   shlibpath_var=LD_LIBRARY_PATH
25535   shlibpath_overrides_runpath=yes
25536   if test "$with_gnu_ld" = yes; then
25537     need_lib_prefix=no
25538   fi
25539   need_version=yes
25540   ;;
25541
25542 sysv4 | sysv4.3*)
25543   version_type=linux
25544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25545   soname_spec='${libname}${release}${shared_ext}$major'
25546   shlibpath_var=LD_LIBRARY_PATH
25547   case $host_vendor in
25548     sni)
25549       shlibpath_overrides_runpath=no
25550       need_lib_prefix=no
25551       export_dynamic_flag_spec='${wl}-Blargedynsym'
25552       runpath_var=LD_RUN_PATH
25553       ;;
25554     siemens)
25555       need_lib_prefix=no
25556       ;;
25557     motorola)
25558       need_lib_prefix=no
25559       need_version=no
25560       shlibpath_overrides_runpath=no
25561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25562       ;;
25563   esac
25564   ;;
25565
25566 sysv4*MP*)
25567   if test -d /usr/nec ;then
25568     version_type=linux
25569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25570     soname_spec='$libname${shared_ext}.$major'
25571     shlibpath_var=LD_LIBRARY_PATH
25572   fi
25573   ;;
25574
25575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25576   version_type=freebsd-elf
25577   need_lib_prefix=no
25578   need_version=no
25579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25580   soname_spec='${libname}${release}${shared_ext}$major'
25581   shlibpath_var=LD_LIBRARY_PATH
25582   hardcode_into_libs=yes
25583   if test "$with_gnu_ld" = yes; then
25584     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25585     shlibpath_overrides_runpath=no
25586   else
25587     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25588     shlibpath_overrides_runpath=yes
25589     case $host_os in
25590       sco3.2v5*)
25591         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25592         ;;
25593     esac
25594   fi
25595   sys_lib_dlsearch_path_spec='/usr/lib'
25596   ;;
25597
25598 uts4*)
25599   version_type=linux
25600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25601   soname_spec='${libname}${release}${shared_ext}$major'
25602   shlibpath_var=LD_LIBRARY_PATH
25603   ;;
25604
25605 *)
25606   dynamic_linker=no
25607   ;;
25608 esac
25609 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25610 echo "${ECHO_T}$dynamic_linker" >&6; }
25611 test "$dynamic_linker" = no && can_build_shared=no
25612
25613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25614 if test "$GCC" = yes; then
25615   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25616 fi
25617
25618 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25620 hardcode_action_GCJ=
25621 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25622    test -n "$runpath_var_GCJ" || \
25623    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25624
25625   # We can hardcode non-existant directories.
25626   if test "$hardcode_direct_GCJ" != no &&
25627      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25628      # have to relink, otherwise we might link with an installed library
25629      # when we should be linking with a yet-to-be-installed one
25630      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25631      test "$hardcode_minus_L_GCJ" != no; then
25632     # Linking always hardcodes the temporary library directory.
25633     hardcode_action_GCJ=relink
25634   else
25635     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25636     hardcode_action_GCJ=immediate
25637   fi
25638 else
25639   # We cannot hardcode anything, or else we can only hardcode existing
25640   # directories.
25641   hardcode_action_GCJ=unsupported
25642 fi
25643 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25644 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25645
25646 if test "$hardcode_action_GCJ" = relink; then
25647   # Fast installation is not supported
25648   enable_fast_install=no
25649 elif test "$shlibpath_overrides_runpath" = yes ||
25650      test "$enable_shared" = no; then
25651   # Fast installation is not necessary
25652   enable_fast_install=needless
25653 fi
25654
25655
25656 # The else clause should only fire when bootstrapping the
25657 # libtool distribution, otherwise you forgot to ship ltmain.sh
25658 # with your package, and you will get complaints that there are
25659 # no rules to generate ltmain.sh.
25660 if test -f "$ltmain"; then
25661   # See if we are running on zsh, and set the options which allow our commands through
25662   # without removal of \ escapes.
25663   if test -n "${ZSH_VERSION+set}" ; then
25664     setopt NO_GLOB_SUBST
25665   fi
25666   # Now quote all the things that may contain metacharacters while being
25667   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25668   # variables and quote the copies for generation of the libtool script.
25669   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25670     SED SHELL STRIP \
25671     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25672     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25673     deplibs_check_method reload_flag reload_cmds need_locks \
25674     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25675     lt_cv_sys_global_symbol_to_c_name_address \
25676     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25677     old_postinstall_cmds old_postuninstall_cmds \
25678     compiler_GCJ \
25679     CC_GCJ \
25680     LD_GCJ \
25681     lt_prog_compiler_wl_GCJ \
25682     lt_prog_compiler_pic_GCJ \
25683     lt_prog_compiler_static_GCJ \
25684     lt_prog_compiler_no_builtin_flag_GCJ \
25685     export_dynamic_flag_spec_GCJ \
25686     thread_safe_flag_spec_GCJ \
25687     whole_archive_flag_spec_GCJ \
25688     enable_shared_with_static_runtimes_GCJ \
25689     old_archive_cmds_GCJ \
25690     old_archive_from_new_cmds_GCJ \
25691     predep_objects_GCJ \
25692     postdep_objects_GCJ \
25693     predeps_GCJ \
25694     postdeps_GCJ \
25695     compiler_lib_search_path_GCJ \
25696     archive_cmds_GCJ \
25697     archive_expsym_cmds_GCJ \
25698     postinstall_cmds_GCJ \
25699     postuninstall_cmds_GCJ \
25700     old_archive_from_expsyms_cmds_GCJ \
25701     allow_undefined_flag_GCJ \
25702     no_undefined_flag_GCJ \
25703     export_symbols_cmds_GCJ \
25704     hardcode_libdir_flag_spec_GCJ \
25705     hardcode_libdir_flag_spec_ld_GCJ \
25706     hardcode_libdir_separator_GCJ \
25707     hardcode_automatic_GCJ \
25708     module_cmds_GCJ \
25709     module_expsym_cmds_GCJ \
25710     lt_cv_prog_compiler_c_o_GCJ \
25711     exclude_expsyms_GCJ \
25712     include_expsyms_GCJ; do
25713
25714     case $var in
25715     old_archive_cmds_GCJ | \
25716     old_archive_from_new_cmds_GCJ | \
25717     archive_cmds_GCJ | \
25718     archive_expsym_cmds_GCJ | \
25719     module_cmds_GCJ | \
25720     module_expsym_cmds_GCJ | \
25721     old_archive_from_expsyms_cmds_GCJ | \
25722     export_symbols_cmds_GCJ | \
25723     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25724     postinstall_cmds | postuninstall_cmds | \
25725     old_postinstall_cmds | old_postuninstall_cmds | \
25726     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25727       # Double-quote double-evaled strings.
25728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25729       ;;
25730     *)
25731       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25732       ;;
25733     esac
25734   done
25735
25736   case $lt_echo in
25737   *'\$0 --fallback-echo"')
25738     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25739     ;;
25740   esac
25741
25742 cfgfile="$ofile"
25743
25744   cat <<__EOF__ >> "$cfgfile"
25745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25746
25747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25748
25749 # Shell to use when invoking shell scripts.
25750 SHELL=$lt_SHELL
25751
25752 # Whether or not to build shared libraries.
25753 build_libtool_libs=$enable_shared
25754
25755 # Whether or not to build static libraries.
25756 build_old_libs=$enable_static
25757
25758 # Whether or not to add -lc for building shared libraries.
25759 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25760
25761 # Whether or not to disallow shared libs when runtime libs are static
25762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25763
25764 # Whether or not to optimize for fast installation.
25765 fast_install=$enable_fast_install
25766
25767 # The host system.
25768 host_alias=$host_alias
25769 host=$host
25770 host_os=$host_os
25771
25772 # The build system.
25773 build_alias=$build_alias
25774 build=$build
25775 build_os=$build_os
25776
25777 # An echo program that does not interpret backslashes.
25778 echo=$lt_echo
25779
25780 # The archiver.
25781 AR=$lt_AR
25782 AR_FLAGS=$lt_AR_FLAGS
25783
25784 # A C compiler.
25785 LTCC=$lt_LTCC
25786
25787 # LTCC compiler flags.
25788 LTCFLAGS=$lt_LTCFLAGS
25789
25790 # A language-specific compiler.
25791 CC=$lt_compiler_GCJ
25792
25793 # Is the compiler the GNU C compiler?
25794 with_gcc=$GCC_GCJ
25795
25796 # An ERE matcher.
25797 EGREP=$lt_EGREP
25798
25799 # The linker used to build libraries.
25800 LD=$lt_LD_GCJ
25801
25802 # Whether we need hard or soft links.
25803 LN_S=$lt_LN_S
25804
25805 # A BSD-compatible nm program.
25806 NM=$lt_NM
25807
25808 # A symbol stripping program
25809 STRIP=$lt_STRIP
25810
25811 # Used to examine libraries when file_magic_cmd begins "file"
25812 MAGIC_CMD=$MAGIC_CMD
25813
25814 # Used on cygwin: DLL creation program.
25815 DLLTOOL="$DLLTOOL"
25816
25817 # Used on cygwin: object dumper.
25818 OBJDUMP="$OBJDUMP"
25819
25820 # Used on cygwin: assembler.
25821 AS="$AS"
25822
25823 # The name of the directory that contains temporary libtool files.
25824 objdir=$objdir
25825
25826 # How to create reloadable object files.
25827 reload_flag=$lt_reload_flag
25828 reload_cmds=$lt_reload_cmds
25829
25830 # How to pass a linker flag through the compiler.
25831 wl=$lt_lt_prog_compiler_wl_GCJ
25832
25833 # Object file suffix (normally "o").
25834 objext="$ac_objext"
25835
25836 # Old archive suffix (normally "a").
25837 libext="$libext"
25838
25839 # Shared library suffix (normally ".so").
25840 shrext_cmds='$shrext_cmds'
25841
25842 # Executable file suffix (normally "").
25843 exeext="$exeext"
25844
25845 # Additional compiler flags for building library objects.
25846 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25847 pic_mode=$pic_mode
25848
25849 # What is the maximum length of a command?
25850 max_cmd_len=$lt_cv_sys_max_cmd_len
25851
25852 # Does compiler simultaneously support -c and -o options?
25853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25854
25855 # Must we lock files when doing compilation?
25856 need_locks=$lt_need_locks
25857
25858 # Do we need the lib prefix for modules?
25859 need_lib_prefix=$need_lib_prefix
25860
25861 # Do we need a version for libraries?
25862 need_version=$need_version
25863
25864 # Whether dlopen is supported.
25865 dlopen_support=$enable_dlopen
25866
25867 # Whether dlopen of programs is supported.
25868 dlopen_self=$enable_dlopen_self
25869
25870 # Whether dlopen of statically linked programs is supported.
25871 dlopen_self_static=$enable_dlopen_self_static
25872
25873 # Compiler flag to prevent dynamic linking.
25874 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25875
25876 # Compiler flag to turn off builtin functions.
25877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25878
25879 # Compiler flag to allow reflexive dlopens.
25880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25881
25882 # Compiler flag to generate shared objects directly from archives.
25883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25884
25885 # Compiler flag to generate thread-safe objects.
25886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25887
25888 # Library versioning type.
25889 version_type=$version_type
25890
25891 # Format of library name prefix.
25892 libname_spec=$lt_libname_spec
25893
25894 # List of archive names.  First name is the real one, the rest are links.
25895 # The last name is the one that the linker finds with -lNAME.
25896 library_names_spec=$lt_library_names_spec
25897
25898 # The coded name of the library, if different from the real name.
25899 soname_spec=$lt_soname_spec
25900
25901 # Commands used to build and install an old-style archive.
25902 RANLIB=$lt_RANLIB
25903 old_archive_cmds=$lt_old_archive_cmds_GCJ
25904 old_postinstall_cmds=$lt_old_postinstall_cmds
25905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25906
25907 # Create an old-style archive from a shared archive.
25908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25909
25910 # Create a temporary old-style archive to link instead of a shared archive.
25911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25912
25913 # Commands used to build and install a shared archive.
25914 archive_cmds=$lt_archive_cmds_GCJ
25915 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25916 postinstall_cmds=$lt_postinstall_cmds
25917 postuninstall_cmds=$lt_postuninstall_cmds
25918
25919 # Commands used to build a loadable module (assumed same as above if empty)
25920 module_cmds=$lt_module_cmds_GCJ
25921 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25922
25923 # Commands to strip libraries.
25924 old_striplib=$lt_old_striplib
25925 striplib=$lt_striplib
25926
25927 # Dependencies to place before the objects being linked to create a
25928 # shared library.
25929 predep_objects=$lt_predep_objects_GCJ
25930
25931 # Dependencies to place after the objects being linked to create a
25932 # shared library.
25933 postdep_objects=$lt_postdep_objects_GCJ
25934
25935 # Dependencies to place before the objects being linked to create a
25936 # shared library.
25937 predeps=$lt_predeps_GCJ
25938
25939 # Dependencies to place after the objects being linked to create a
25940 # shared library.
25941 postdeps=$lt_postdeps_GCJ
25942
25943 # The library search path used internally by the compiler when linking
25944 # a shared library.
25945 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25946
25947 # Method to check whether dependent libraries are shared objects.
25948 deplibs_check_method=$lt_deplibs_check_method
25949
25950 # Command to use when deplibs_check_method == file_magic.
25951 file_magic_cmd=$lt_file_magic_cmd
25952
25953 # Flag that allows shared libraries with undefined symbols to be built.
25954 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25955
25956 # Flag that forces no undefined symbols.
25957 no_undefined_flag=$lt_no_undefined_flag_GCJ
25958
25959 # Commands used to finish a libtool library installation in a directory.
25960 finish_cmds=$lt_finish_cmds
25961
25962 # Same as above, but a single script fragment to be evaled but not shown.
25963 finish_eval=$lt_finish_eval
25964
25965 # Take the output of nm and produce a listing of raw symbols and C names.
25966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25967
25968 # Transform the output of nm in a proper C declaration
25969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25970
25971 # Transform the output of nm in a C name address pair
25972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25973
25974 # This is the shared library runtime path variable.
25975 runpath_var=$runpath_var
25976
25977 # This is the shared library path variable.
25978 shlibpath_var=$shlibpath_var
25979
25980 # Is shlibpath searched before the hard-coded library search path?
25981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25982
25983 # How to hardcode a shared library path into an executable.
25984 hardcode_action=$hardcode_action_GCJ
25985
25986 # Whether we should hardcode library paths into libraries.
25987 hardcode_into_libs=$hardcode_into_libs
25988
25989 # Flag to hardcode \$libdir into a binary during linking.
25990 # This must work even if \$libdir does not exist.
25991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25992
25993 # If ld is used when linking, flag to hardcode \$libdir into
25994 # a binary during linking. This must work even if \$libdir does
25995 # not exist.
25996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25997
25998 # Whether we need a single -rpath flag with a separated argument.
25999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26000
26001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26002 # resulting binary.
26003 hardcode_direct=$hardcode_direct_GCJ
26004
26005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26006 # resulting binary.
26007 hardcode_minus_L=$hardcode_minus_L_GCJ
26008
26009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26010 # the resulting binary.
26011 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26012
26013 # Set to yes if building a shared library automatically hardcodes DIR into the library
26014 # and all subsequent libraries and executables linked against it.
26015 hardcode_automatic=$hardcode_automatic_GCJ
26016
26017 # Variables whose values should be saved in libtool wrapper scripts and
26018 # restored at relink time.
26019 variables_saved_for_relink="$variables_saved_for_relink"
26020
26021 # Whether libtool must link a program against all its dependency libraries.
26022 link_all_deplibs=$link_all_deplibs_GCJ
26023
26024 # Compile-time system search path for libraries
26025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26026
26027 # Run-time system search path for libraries
26028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26029
26030 # Fix the shell variable \$srcfile for the compiler.
26031 fix_srcfile_path="$fix_srcfile_path_GCJ"
26032
26033 # Set to yes if exported symbols are required.
26034 always_export_symbols=$always_export_symbols_GCJ
26035
26036 # The commands to list exported symbols.
26037 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26038
26039 # The commands to extract the exported symbol list from a shared archive.
26040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26041
26042 # Symbols that should not be listed in the preloaded symbols.
26043 exclude_expsyms=$lt_exclude_expsyms_GCJ
26044
26045 # Symbols that must always be exported.
26046 include_expsyms=$lt_include_expsyms_GCJ
26047
26048 # ### END LIBTOOL TAG CONFIG: $tagname
26049
26050 __EOF__
26051
26052
26053 else
26054   # If there is no Makefile yet, we rely on a make rule to execute
26055   # `config.status --recheck' to rerun these tests and create the
26056   # libtool script then.
26057   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26058   if test -f "$ltmain_in"; then
26059     test -f Makefile && make "$ltmain"
26060   fi
26061 fi
26062
26063
26064 ac_ext=c
26065 ac_cpp='$CPP $CPPFLAGS'
26066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26069
26070 CC="$lt_save_CC"
26071
26072         else
26073           tagname=""
26074         fi
26075         ;;
26076
26077       RC)
26078         ac_ext=c
26079 ac_cpp='$CPP $CPPFLAGS'
26080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26083
26084
26085 # Source file extension for RC test sources.
26086 ac_ext=rc
26087
26088 # Object file extension for compiled RC test sources.
26089 objext=o
26090 objext_RC=$objext
26091
26092 # Code to be used in simple compile tests
26093 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26094
26095 # Code to be used in simple link tests
26096 lt_simple_link_test_code="$lt_simple_compile_test_code"
26097
26098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26099
26100 # If no C compiler was specified, use CC.
26101 LTCC=${LTCC-"$CC"}
26102
26103 # If no C compiler flags were specified, use CFLAGS.
26104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26105
26106 # Allow CC to be a program name with arguments.
26107 compiler=$CC
26108
26109
26110 # save warnings/boilerplate of simple test code
26111 ac_outfile=conftest.$ac_objext
26112 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26114 _lt_compiler_boilerplate=`cat conftest.err`
26115 $rm conftest*
26116
26117 ac_outfile=conftest.$ac_objext
26118 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26120 _lt_linker_boilerplate=`cat conftest.err`
26121 $rm conftest*
26122
26123
26124 # Allow CC to be a program name with arguments.
26125 lt_save_CC="$CC"
26126 CC=${RC-"windres"}
26127 compiler=$CC
26128 compiler_RC=$CC
26129 for cc_temp in $compiler""; do
26130   case $cc_temp in
26131     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26132     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26133     \-*) ;;
26134     *) break;;
26135   esac
26136 done
26137 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26138
26139 lt_cv_prog_compiler_c_o_RC=yes
26140
26141 # The else clause should only fire when bootstrapping the
26142 # libtool distribution, otherwise you forgot to ship ltmain.sh
26143 # with your package, and you will get complaints that there are
26144 # no rules to generate ltmain.sh.
26145 if test -f "$ltmain"; then
26146   # See if we are running on zsh, and set the options which allow our commands through
26147   # without removal of \ escapes.
26148   if test -n "${ZSH_VERSION+set}" ; then
26149     setopt NO_GLOB_SUBST
26150   fi
26151   # Now quote all the things that may contain metacharacters while being
26152   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26153   # variables and quote the copies for generation of the libtool script.
26154   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26155     SED SHELL STRIP \
26156     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26157     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26158     deplibs_check_method reload_flag reload_cmds need_locks \
26159     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26160     lt_cv_sys_global_symbol_to_c_name_address \
26161     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26162     old_postinstall_cmds old_postuninstall_cmds \
26163     compiler_RC \
26164     CC_RC \
26165     LD_RC \
26166     lt_prog_compiler_wl_RC \
26167     lt_prog_compiler_pic_RC \
26168     lt_prog_compiler_static_RC \
26169     lt_prog_compiler_no_builtin_flag_RC \
26170     export_dynamic_flag_spec_RC \
26171     thread_safe_flag_spec_RC \
26172     whole_archive_flag_spec_RC \
26173     enable_shared_with_static_runtimes_RC \
26174     old_archive_cmds_RC \
26175     old_archive_from_new_cmds_RC \
26176     predep_objects_RC \
26177     postdep_objects_RC \
26178     predeps_RC \
26179     postdeps_RC \
26180     compiler_lib_search_path_RC \
26181     archive_cmds_RC \
26182     archive_expsym_cmds_RC \
26183     postinstall_cmds_RC \
26184     postuninstall_cmds_RC \
26185     old_archive_from_expsyms_cmds_RC \
26186     allow_undefined_flag_RC \
26187     no_undefined_flag_RC \
26188     export_symbols_cmds_RC \
26189     hardcode_libdir_flag_spec_RC \
26190     hardcode_libdir_flag_spec_ld_RC \
26191     hardcode_libdir_separator_RC \
26192     hardcode_automatic_RC \
26193     module_cmds_RC \
26194     module_expsym_cmds_RC \
26195     lt_cv_prog_compiler_c_o_RC \
26196     exclude_expsyms_RC \
26197     include_expsyms_RC; do
26198
26199     case $var in
26200     old_archive_cmds_RC | \
26201     old_archive_from_new_cmds_RC | \
26202     archive_cmds_RC | \
26203     archive_expsym_cmds_RC | \
26204     module_cmds_RC | \
26205     module_expsym_cmds_RC | \
26206     old_archive_from_expsyms_cmds_RC | \
26207     export_symbols_cmds_RC | \
26208     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26209     postinstall_cmds | postuninstall_cmds | \
26210     old_postinstall_cmds | old_postuninstall_cmds | \
26211     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26212       # Double-quote double-evaled strings.
26213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26214       ;;
26215     *)
26216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26217       ;;
26218     esac
26219   done
26220
26221   case $lt_echo in
26222   *'\$0 --fallback-echo"')
26223     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26224     ;;
26225   esac
26226
26227 cfgfile="$ofile"
26228
26229   cat <<__EOF__ >> "$cfgfile"
26230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26231
26232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26233
26234 # Shell to use when invoking shell scripts.
26235 SHELL=$lt_SHELL
26236
26237 # Whether or not to build shared libraries.
26238 build_libtool_libs=$enable_shared
26239
26240 # Whether or not to build static libraries.
26241 build_old_libs=$enable_static
26242
26243 # Whether or not to add -lc for building shared libraries.
26244 build_libtool_need_lc=$archive_cmds_need_lc_RC
26245
26246 # Whether or not to disallow shared libs when runtime libs are static
26247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26248
26249 # Whether or not to optimize for fast installation.
26250 fast_install=$enable_fast_install
26251
26252 # The host system.
26253 host_alias=$host_alias
26254 host=$host
26255 host_os=$host_os
26256
26257 # The build system.
26258 build_alias=$build_alias
26259 build=$build
26260 build_os=$build_os
26261
26262 # An echo program that does not interpret backslashes.
26263 echo=$lt_echo
26264
26265 # The archiver.
26266 AR=$lt_AR
26267 AR_FLAGS=$lt_AR_FLAGS
26268
26269 # A C compiler.
26270 LTCC=$lt_LTCC
26271
26272 # LTCC compiler flags.
26273 LTCFLAGS=$lt_LTCFLAGS
26274
26275 # A language-specific compiler.
26276 CC=$lt_compiler_RC
26277
26278 # Is the compiler the GNU C compiler?
26279 with_gcc=$GCC_RC
26280
26281 # An ERE matcher.
26282 EGREP=$lt_EGREP
26283
26284 # The linker used to build libraries.
26285 LD=$lt_LD_RC
26286
26287 # Whether we need hard or soft links.
26288 LN_S=$lt_LN_S
26289
26290 # A BSD-compatible nm program.
26291 NM=$lt_NM
26292
26293 # A symbol stripping program
26294 STRIP=$lt_STRIP
26295
26296 # Used to examine libraries when file_magic_cmd begins "file"
26297 MAGIC_CMD=$MAGIC_CMD
26298
26299 # Used on cygwin: DLL creation program.
26300 DLLTOOL="$DLLTOOL"
26301
26302 # Used on cygwin: object dumper.
26303 OBJDUMP="$OBJDUMP"
26304
26305 # Used on cygwin: assembler.
26306 AS="$AS"
26307
26308 # The name of the directory that contains temporary libtool files.
26309 objdir=$objdir
26310
26311 # How to create reloadable object files.
26312 reload_flag=$lt_reload_flag
26313 reload_cmds=$lt_reload_cmds
26314
26315 # How to pass a linker flag through the compiler.
26316 wl=$lt_lt_prog_compiler_wl_RC
26317
26318 # Object file suffix (normally "o").
26319 objext="$ac_objext"
26320
26321 # Old archive suffix (normally "a").
26322 libext="$libext"
26323
26324 # Shared library suffix (normally ".so").
26325 shrext_cmds='$shrext_cmds'
26326
26327 # Executable file suffix (normally "").
26328 exeext="$exeext"
26329
26330 # Additional compiler flags for building library objects.
26331 pic_flag=$lt_lt_prog_compiler_pic_RC
26332 pic_mode=$pic_mode
26333
26334 # What is the maximum length of a command?
26335 max_cmd_len=$lt_cv_sys_max_cmd_len
26336
26337 # Does compiler simultaneously support -c and -o options?
26338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26339
26340 # Must we lock files when doing compilation?
26341 need_locks=$lt_need_locks
26342
26343 # Do we need the lib prefix for modules?
26344 need_lib_prefix=$need_lib_prefix
26345
26346 # Do we need a version for libraries?
26347 need_version=$need_version
26348
26349 # Whether dlopen is supported.
26350 dlopen_support=$enable_dlopen
26351
26352 # Whether dlopen of programs is supported.
26353 dlopen_self=$enable_dlopen_self
26354
26355 # Whether dlopen of statically linked programs is supported.
26356 dlopen_self_static=$enable_dlopen_self_static
26357
26358 # Compiler flag to prevent dynamic linking.
26359 link_static_flag=$lt_lt_prog_compiler_static_RC
26360
26361 # Compiler flag to turn off builtin functions.
26362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26363
26364 # Compiler flag to allow reflexive dlopens.
26365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26366
26367 # Compiler flag to generate shared objects directly from archives.
26368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26369
26370 # Compiler flag to generate thread-safe objects.
26371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26372
26373 # Library versioning type.
26374 version_type=$version_type
26375
26376 # Format of library name prefix.
26377 libname_spec=$lt_libname_spec
26378
26379 # List of archive names.  First name is the real one, the rest are links.
26380 # The last name is the one that the linker finds with -lNAME.
26381 library_names_spec=$lt_library_names_spec
26382
26383 # The coded name of the library, if different from the real name.
26384 soname_spec=$lt_soname_spec
26385
26386 # Commands used to build and install an old-style archive.
26387 RANLIB=$lt_RANLIB
26388 old_archive_cmds=$lt_old_archive_cmds_RC
26389 old_postinstall_cmds=$lt_old_postinstall_cmds
26390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26391
26392 # Create an old-style archive from a shared archive.
26393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26394
26395 # Create a temporary old-style archive to link instead of a shared archive.
26396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26397
26398 # Commands used to build and install a shared archive.
26399 archive_cmds=$lt_archive_cmds_RC
26400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26401 postinstall_cmds=$lt_postinstall_cmds
26402 postuninstall_cmds=$lt_postuninstall_cmds
26403
26404 # Commands used to build a loadable module (assumed same as above if empty)
26405 module_cmds=$lt_module_cmds_RC
26406 module_expsym_cmds=$lt_module_expsym_cmds_RC
26407
26408 # Commands to strip libraries.
26409 old_striplib=$lt_old_striplib
26410 striplib=$lt_striplib
26411
26412 # Dependencies to place before the objects being linked to create a
26413 # shared library.
26414 predep_objects=$lt_predep_objects_RC
26415
26416 # Dependencies to place after the objects being linked to create a
26417 # shared library.
26418 postdep_objects=$lt_postdep_objects_RC
26419
26420 # Dependencies to place before the objects being linked to create a
26421 # shared library.
26422 predeps=$lt_predeps_RC
26423
26424 # Dependencies to place after the objects being linked to create a
26425 # shared library.
26426 postdeps=$lt_postdeps_RC
26427
26428 # The library search path used internally by the compiler when linking
26429 # a shared library.
26430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26431
26432 # Method to check whether dependent libraries are shared objects.
26433 deplibs_check_method=$lt_deplibs_check_method
26434
26435 # Command to use when deplibs_check_method == file_magic.
26436 file_magic_cmd=$lt_file_magic_cmd
26437
26438 # Flag that allows shared libraries with undefined symbols to be built.
26439 allow_undefined_flag=$lt_allow_undefined_flag_RC
26440
26441 # Flag that forces no undefined symbols.
26442 no_undefined_flag=$lt_no_undefined_flag_RC
26443
26444 # Commands used to finish a libtool library installation in a directory.
26445 finish_cmds=$lt_finish_cmds
26446
26447 # Same as above, but a single script fragment to be evaled but not shown.
26448 finish_eval=$lt_finish_eval
26449
26450 # Take the output of nm and produce a listing of raw symbols and C names.
26451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26452
26453 # Transform the output of nm in a proper C declaration
26454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26455
26456 # Transform the output of nm in a C name address pair
26457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26458
26459 # This is the shared library runtime path variable.
26460 runpath_var=$runpath_var
26461
26462 # This is the shared library path variable.
26463 shlibpath_var=$shlibpath_var
26464
26465 # Is shlibpath searched before the hard-coded library search path?
26466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26467
26468 # How to hardcode a shared library path into an executable.
26469 hardcode_action=$hardcode_action_RC
26470
26471 # Whether we should hardcode library paths into libraries.
26472 hardcode_into_libs=$hardcode_into_libs
26473
26474 # Flag to hardcode \$libdir into a binary during linking.
26475 # This must work even if \$libdir does not exist.
26476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26477
26478 # If ld is used when linking, flag to hardcode \$libdir into
26479 # a binary during linking. This must work even if \$libdir does
26480 # not exist.
26481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26482
26483 # Whether we need a single -rpath flag with a separated argument.
26484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26485
26486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26487 # resulting binary.
26488 hardcode_direct=$hardcode_direct_RC
26489
26490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26491 # resulting binary.
26492 hardcode_minus_L=$hardcode_minus_L_RC
26493
26494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26495 # the resulting binary.
26496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26497
26498 # Set to yes if building a shared library automatically hardcodes DIR into the library
26499 # and all subsequent libraries and executables linked against it.
26500 hardcode_automatic=$hardcode_automatic_RC
26501
26502 # Variables whose values should be saved in libtool wrapper scripts and
26503 # restored at relink time.
26504 variables_saved_for_relink="$variables_saved_for_relink"
26505
26506 # Whether libtool must link a program against all its dependency libraries.
26507 link_all_deplibs=$link_all_deplibs_RC
26508
26509 # Compile-time system search path for libraries
26510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26511
26512 # Run-time system search path for libraries
26513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26514
26515 # Fix the shell variable \$srcfile for the compiler.
26516 fix_srcfile_path="$fix_srcfile_path_RC"
26517
26518 # Set to yes if exported symbols are required.
26519 always_export_symbols=$always_export_symbols_RC
26520
26521 # The commands to list exported symbols.
26522 export_symbols_cmds=$lt_export_symbols_cmds_RC
26523
26524 # The commands to extract the exported symbol list from a shared archive.
26525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26526
26527 # Symbols that should not be listed in the preloaded symbols.
26528 exclude_expsyms=$lt_exclude_expsyms_RC
26529
26530 # Symbols that must always be exported.
26531 include_expsyms=$lt_include_expsyms_RC
26532
26533 # ### END LIBTOOL TAG CONFIG: $tagname
26534
26535 __EOF__
26536
26537
26538 else
26539   # If there is no Makefile yet, we rely on a make rule to execute
26540   # `config.status --recheck' to rerun these tests and create the
26541   # libtool script then.
26542   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26543   if test -f "$ltmain_in"; then
26544     test -f Makefile && make "$ltmain"
26545   fi
26546 fi
26547
26548
26549 ac_ext=c
26550 ac_cpp='$CPP $CPPFLAGS'
26551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26554
26555 CC="$lt_save_CC"
26556
26557         ;;
26558
26559       *)
26560         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26562    { (exit 1); exit 1; }; }
26563         ;;
26564       esac
26565
26566       # Append the new tag name to the list of available tags.
26567       if test -n "$tagname" ; then
26568       available_tags="$available_tags $tagname"
26569     fi
26570     fi
26571   done
26572   IFS="$lt_save_ifs"
26573
26574   # Now substitute the updated list of available tags.
26575   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26576     mv "${ofile}T" "$ofile"
26577     chmod +x "$ofile"
26578   else
26579     rm -f "${ofile}T"
26580     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26582    { (exit 1); exit 1; }; }
26583   fi
26584 fi
26585
26586
26587
26588 # This can be used to rebuild libtool when needed
26589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26590
26591 # Always use our own libtool.
26592 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26593
26594 # Prevent multiple expansion
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616 if test "$lt_cv_dlopen_self" = "yes" ; then
26617
26618 cat >>confdefs.h <<\_ACEOF
26619 #define CAN_DLOPEN_SELF 1
26620 _ACEOF
26621
26622 fi
26623
26624 etags_version=`$ETAGS --version 2>&1`
26625 case "$etags_version" in
26626         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26627         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26628         *) ETAGSFLAGS="" ;;
26629 esac
26630 ETAGSFLAGS=$ETAGSFLAGS
26631
26632
26633 if test "$WITH_LLVMGCCDIR" = "default" ; then
26634   LLVMGCC="llvm-gcc${EXEEXT}"
26635   LLVMGXX="llvm-g++${EXEEXT}"
26636   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26637 set dummy $LLVMGCC; ac_word=$2
26638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26640 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26641   echo $ECHO_N "(cached) $ECHO_C" >&6
26642 else
26643   case $LLVMGCC in
26644   [\\/]* | ?:[\\/]*)
26645   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26646   ;;
26647   *)
26648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26649 for as_dir in $PATH
26650 do
26651   IFS=$as_save_IFS
26652   test -z "$as_dir" && as_dir=.
26653   for ac_exec_ext in '' $ac_executable_extensions; do
26654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26655     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26657     break 2
26658   fi
26659 done
26660 done
26661 IFS=$as_save_IFS
26662
26663   ;;
26664 esac
26665 fi
26666 LLVMGCC=$ac_cv_path_LLVMGCC
26667 if test -n "$LLVMGCC"; then
26668   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26669 echo "${ECHO_T}$LLVMGCC" >&6; }
26670 else
26671   { echo "$as_me:$LINENO: result: no" >&5
26672 echo "${ECHO_T}no" >&6; }
26673 fi
26674
26675
26676   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26677 set dummy $LLVMGXX; ac_word=$2
26678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26680 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26681   echo $ECHO_N "(cached) $ECHO_C" >&6
26682 else
26683   case $LLVMGXX in
26684   [\\/]* | ?:[\\/]*)
26685   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26686   ;;
26687   *)
26688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26689 for as_dir in $PATH
26690 do
26691   IFS=$as_save_IFS
26692   test -z "$as_dir" && as_dir=.
26693   for ac_exec_ext in '' $ac_executable_extensions; do
26694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26695     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26697     break 2
26698   fi
26699 done
26700 done
26701 IFS=$as_save_IFS
26702
26703   ;;
26704 esac
26705 fi
26706 LLVMGXX=$ac_cv_path_LLVMGXX
26707 if test -n "$LLVMGXX"; then
26708   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26709 echo "${ECHO_T}$LLVMGXX" >&6; }
26710 else
26711   { echo "$as_me:$LINENO: result: no" >&5
26712 echo "${ECHO_T}no" >&6; }
26713 fi
26714
26715
26716 else
26717   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26718   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26719   LLVMGCC=$LLVMGCC
26720
26721   LLVMGXX=$LLVMGXX
26722
26723 fi
26724
26725 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26726 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26727
26728 ICC=no
26729 IXX=no
26730 case $CC in
26731   icc*|icpc*)
26732     ICC=yes
26733     IXX=yes
26734     ;;
26735    *)
26736     ;;
26737 esac
26738
26739 if test "$GCC" != "yes" && test "$ICC" != "yes"
26740 then
26741   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26742 echo "$as_me: error: gcc|icc required but not found" >&2;}
26743    { (exit 1); exit 1; }; }
26744 fi
26745
26746 if test "$GXX" != "yes" && test "$IXX" != "yes"
26747 then
26748   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26749 echo "$as_me: error: g++|icc required but not found" >&2;}
26750    { (exit 1); exit 1; }; }
26751 fi
26752
26753 if test "$GCC" = "yes"
26754 then
26755   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26756   if test "$gccmajor" -lt "3"
26757   then
26758     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26759 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26760    { (exit 1); exit 1; }; }
26761   fi
26762 fi
26763
26764 if test -z "$llvm_cv_gnu_make_command"
26765 then
26766   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26767 echo "$as_me: error: GNU Make required but not found" >&2;}
26768    { (exit 1); exit 1; }; }
26769 fi
26770
26771 { echo "$as_me:$LINENO: result: ok" >&5
26772 echo "${ECHO_T}ok" >&6; }
26773
26774
26775
26776 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26777 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26778 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26779   echo $ECHO_N "(cached) $ECHO_C" >&6
26780 else
26781   ac_check_lib_save_LIBS=$LIBS
26782 LIBS="-lelf  $LIBS"
26783 cat >conftest.$ac_ext <<_ACEOF
26784 /* confdefs.h.  */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h.  */
26789
26790 /* Override any GCC internal prototype to avoid an error.
26791    Use char because int might match the return type of a GCC
26792    builtin and then its argument prototype would still apply.  */
26793 #ifdef __cplusplus
26794 extern "C"
26795 #endif
26796 char elf_begin ();
26797 int
26798 main ()
26799 {
26800 return elf_begin ();
26801   ;
26802   return 0;
26803 }
26804 _ACEOF
26805 rm -f conftest.$ac_objext conftest$ac_exeext
26806 if { (ac_try="$ac_link"
26807 case "(($ac_try" in
26808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809   *) ac_try_echo=$ac_try;;
26810 esac
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812   (eval "$ac_link") 2>conftest.er1
26813   ac_status=$?
26814   grep -v '^ *+' conftest.er1 >conftest.err
26815   rm -f conftest.er1
26816   cat conftest.err >&5
26817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818   (exit $ac_status); } &&
26819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26820   { (case "(($ac_try" in
26821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26822   *) ac_try_echo=$ac_try;;
26823 esac
26824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26825   (eval "$ac_try") 2>&5
26826   ac_status=$?
26827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); }; } &&
26829          { ac_try='test -s conftest$ac_exeext'
26830   { (case "(($ac_try" in
26831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832   *) ac_try_echo=$ac_try;;
26833 esac
26834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835   (eval "$ac_try") 2>&5
26836   ac_status=$?
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); }; }; then
26839   ac_cv_lib_elf_elf_begin=yes
26840 else
26841   echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26843
26844         ac_cv_lib_elf_elf_begin=no
26845 fi
26846
26847 rm -f core conftest.err conftest.$ac_objext \
26848       conftest$ac_exeext conftest.$ac_ext
26849 LIBS=$ac_check_lib_save_LIBS
26850 fi
26851 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26852 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26853 if test $ac_cv_lib_elf_elf_begin = yes; then
26854   cat >>confdefs.h <<_ACEOF
26855 #define HAVE_LIBELF 1
26856 _ACEOF
26857
26858   LIBS="-lelf $LIBS"
26859
26860 fi
26861
26862
26863 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26864 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26865 if test "${ac_cv_lib_m_sin+set}" = set; then
26866   echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868   ac_check_lib_save_LIBS=$LIBS
26869 LIBS="-lm  $LIBS"
26870 cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h.  */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h.  */
26876
26877 /* Override any GCC internal prototype to avoid an error.
26878    Use char because int might match the return type of a GCC
26879    builtin and then its argument prototype would still apply.  */
26880 #ifdef __cplusplus
26881 extern "C"
26882 #endif
26883 char sin ();
26884 int
26885 main ()
26886 {
26887 return sin ();
26888   ;
26889   return 0;
26890 }
26891 _ACEOF
26892 rm -f conftest.$ac_objext conftest$ac_exeext
26893 if { (ac_try="$ac_link"
26894 case "(($ac_try" in
26895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896   *) ac_try_echo=$ac_try;;
26897 esac
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899   (eval "$ac_link") 2>conftest.er1
26900   ac_status=$?
26901   grep -v '^ *+' conftest.er1 >conftest.err
26902   rm -f conftest.er1
26903   cat conftest.err >&5
26904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905   (exit $ac_status); } &&
26906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26907   { (case "(($ac_try" in
26908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909   *) ac_try_echo=$ac_try;;
26910 esac
26911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912   (eval "$ac_try") 2>&5
26913   ac_status=$?
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); }; } &&
26916          { ac_try='test -s conftest$ac_exeext'
26917   { (case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922   (eval "$ac_try") 2>&5
26923   ac_status=$?
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); }; }; then
26926   ac_cv_lib_m_sin=yes
26927 else
26928   echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26930
26931         ac_cv_lib_m_sin=no
26932 fi
26933
26934 rm -f core conftest.err conftest.$ac_objext \
26935       conftest$ac_exeext conftest.$ac_ext
26936 LIBS=$ac_check_lib_save_LIBS
26937 fi
26938 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26939 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26940 if test $ac_cv_lib_m_sin = yes; then
26941   cat >>confdefs.h <<_ACEOF
26942 #define HAVE_LIBM 1
26943 _ACEOF
26944
26945   LIBS="-lm $LIBS"
26946
26947 fi
26948
26949 if test "$llvm_cv_os_type" = "MingW" ; then
26950
26951 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26952 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26953 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26954   echo $ECHO_N "(cached) $ECHO_C" >&6
26955 else
26956   ac_check_lib_save_LIBS=$LIBS
26957 LIBS="-limagehlp  $LIBS"
26958 cat >conftest.$ac_ext <<_ACEOF
26959 /* confdefs.h.  */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h.  */
26964
26965
26966 int
26967 main ()
26968 {
26969 return main ();
26970   ;
26971   return 0;
26972 }
26973 _ACEOF
26974 rm -f conftest.$ac_objext conftest$ac_exeext
26975 if { (ac_try="$ac_link"
26976 case "(($ac_try" in
26977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978   *) ac_try_echo=$ac_try;;
26979 esac
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981   (eval "$ac_link") 2>conftest.er1
26982   ac_status=$?
26983   grep -v '^ *+' conftest.er1 >conftest.err
26984   rm -f conftest.er1
26985   cat conftest.err >&5
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); } &&
26988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26989   { (case "(($ac_try" in
26990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991   *) ac_try_echo=$ac_try;;
26992 esac
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994   (eval "$ac_try") 2>&5
26995   ac_status=$?
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); }; } &&
26998          { ac_try='test -s conftest$ac_exeext'
26999   { (case "(($ac_try" in
27000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001   *) ac_try_echo=$ac_try;;
27002 esac
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004   (eval "$ac_try") 2>&5
27005   ac_status=$?
27006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); }; }; then
27008   ac_cv_lib_imagehlp_main=yes
27009 else
27010   echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013         ac_cv_lib_imagehlp_main=no
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext \
27017       conftest$ac_exeext conftest.$ac_ext
27018 LIBS=$ac_check_lib_save_LIBS
27019 fi
27020 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27021 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27022 if test $ac_cv_lib_imagehlp_main = yes; then
27023   cat >>confdefs.h <<_ACEOF
27024 #define HAVE_LIBIMAGEHLP 1
27025 _ACEOF
27026
27027   LIBS="-limagehlp $LIBS"
27028
27029 fi
27030
27031
27032 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27033 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27034 if test "${ac_cv_lib_psapi_main+set}" = set; then
27035   echo $ECHO_N "(cached) $ECHO_C" >&6
27036 else
27037   ac_check_lib_save_LIBS=$LIBS
27038 LIBS="-lpsapi  $LIBS"
27039 cat >conftest.$ac_ext <<_ACEOF
27040 /* confdefs.h.  */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h.  */
27045
27046
27047 int
27048 main ()
27049 {
27050 return main ();
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (ac_try="$ac_link"
27057 case "(($ac_try" in
27058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059   *) ac_try_echo=$ac_try;;
27060 esac
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062   (eval "$ac_link") 2>conftest.er1
27063   ac_status=$?
27064   grep -v '^ *+' conftest.er1 >conftest.err
27065   rm -f conftest.er1
27066   cat conftest.err >&5
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } &&
27069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070   { (case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_try") 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; } &&
27079          { ac_try='test -s conftest$ac_exeext'
27080   { (case "(($ac_try" in
27081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082   *) ac_try_echo=$ac_try;;
27083 esac
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085   (eval "$ac_try") 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; }; then
27089   ac_cv_lib_psapi_main=yes
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094         ac_cv_lib_psapi_main=no
27095 fi
27096
27097 rm -f core conftest.err conftest.$ac_objext \
27098       conftest$ac_exeext conftest.$ac_ext
27099 LIBS=$ac_check_lib_save_LIBS
27100 fi
27101 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27102 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27103 if test $ac_cv_lib_psapi_main = yes; then
27104   cat >>confdefs.h <<_ACEOF
27105 #define HAVE_LIBPSAPI 1
27106 _ACEOF
27107
27108   LIBS="-lpsapi $LIBS"
27109
27110 fi
27111
27112 fi
27113
27114 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27115 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27116 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27117   echo $ECHO_N "(cached) $ECHO_C" >&6
27118 else
27119   ac_func_search_save_LIBS=$LIBS
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126
27127 /* Override any GCC internal prototype to avoid an error.
27128    Use char because int might match the return type of a GCC
27129    builtin and then its argument prototype would still apply.  */
27130 #ifdef __cplusplus
27131 extern "C"
27132 #endif
27133 char lt_dlopen ();
27134 int
27135 main ()
27136 {
27137 return lt_dlopen ();
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 for ac_lib in '' ltdl; do
27143   if test -z "$ac_lib"; then
27144     ac_res="none required"
27145   else
27146     ac_res=-l$ac_lib
27147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27148   fi
27149   rm -f conftest.$ac_objext conftest$ac_exeext
27150 if { (ac_try="$ac_link"
27151 case "(($ac_try" in
27152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153   *) ac_try_echo=$ac_try;;
27154 esac
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156   (eval "$ac_link") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } &&
27163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27164   { (case "(($ac_try" in
27165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166   *) ac_try_echo=$ac_try;;
27167 esac
27168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169   (eval "$ac_try") 2>&5
27170   ac_status=$?
27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172   (exit $ac_status); }; } &&
27173          { ac_try='test -s conftest$ac_exeext'
27174   { (case "(($ac_try" in
27175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176   *) ac_try_echo=$ac_try;;
27177 esac
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179   (eval "$ac_try") 2>&5
27180   ac_status=$?
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); }; }; then
27183   ac_cv_search_lt_dlopen=$ac_res
27184 else
27185   echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27187
27188
27189 fi
27190
27191 rm -f core conftest.err conftest.$ac_objext \
27192       conftest$ac_exeext
27193   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27194   break
27195 fi
27196 done
27197 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27198   :
27199 else
27200   ac_cv_search_lt_dlopen=no
27201 fi
27202 rm conftest.$ac_ext
27203 LIBS=$ac_func_search_save_LIBS
27204 fi
27205 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27206 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27207 ac_res=$ac_cv_search_lt_dlopen
27208 if test "$ac_res" != no; then
27209   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27210
27211 cat >>confdefs.h <<\_ACEOF
27212 #define HAVE_LT_DLOPEN 1
27213 _ACEOF
27214
27215 else
27216   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27217                            not be available" >&5
27218 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27219                            not be available" >&2;}
27220 fi
27221
27222
27223 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27224 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27225 if test "${ac_cv_search_dlopen+set}" = set; then
27226   echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228   ac_func_search_save_LIBS=$LIBS
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235
27236 /* Override any GCC internal prototype to avoid an error.
27237    Use char because int might match the return type of a GCC
27238    builtin and then its argument prototype would still apply.  */
27239 #ifdef __cplusplus
27240 extern "C"
27241 #endif
27242 char dlopen ();
27243 int
27244 main ()
27245 {
27246 return dlopen ();
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 for ac_lib in '' dl; do
27252   if test -z "$ac_lib"; then
27253     ac_res="none required"
27254   else
27255     ac_res=-l$ac_lib
27256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27257   fi
27258   rm -f conftest.$ac_objext conftest$ac_exeext
27259 if { (ac_try="$ac_link"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265   (eval "$ac_link") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } &&
27272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27273   { (case "(($ac_try" in
27274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275   *) ac_try_echo=$ac_try;;
27276 esac
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278   (eval "$ac_try") 2>&5
27279   ac_status=$?
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); }; } &&
27282          { ac_try='test -s conftest$ac_exeext'
27283   { (case "(($ac_try" in
27284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285   *) ac_try_echo=$ac_try;;
27286 esac
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288   (eval "$ac_try") 2>&5
27289   ac_status=$?
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); }; }; then
27292   ac_cv_search_dlopen=$ac_res
27293 else
27294   echo "$as_me: failed program was:" >&5
27295 sed 's/^/| /' conftest.$ac_ext >&5
27296
27297
27298 fi
27299
27300 rm -f core conftest.err conftest.$ac_objext \
27301       conftest$ac_exeext
27302   if test "${ac_cv_search_dlopen+set}" = set; then
27303   break
27304 fi
27305 done
27306 if test "${ac_cv_search_dlopen+set}" = set; then
27307   :
27308 else
27309   ac_cv_search_dlopen=no
27310 fi
27311 rm conftest.$ac_ext
27312 LIBS=$ac_func_search_save_LIBS
27313 fi
27314 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27315 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27316 ac_res=$ac_cv_search_dlopen
27317 if test "$ac_res" != no; then
27318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27319
27320 cat >>confdefs.h <<\_ACEOF
27321 #define HAVE_DLOPEN 1
27322 _ACEOF
27323
27324 else
27325   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27326 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27327 fi
27328
27329
27330 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27331 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27332 if test "${ac_cv_search_mallinfo+set}" = set; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335   ac_func_search_save_LIBS=$LIBS
27336 cat >conftest.$ac_ext <<_ACEOF
27337 /* confdefs.h.  */
27338 _ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h.  */
27342
27343 /* Override any GCC internal prototype to avoid an error.
27344    Use char because int might match the return type of a GCC
27345    builtin and then its argument prototype would still apply.  */
27346 #ifdef __cplusplus
27347 extern "C"
27348 #endif
27349 char mallinfo ();
27350 int
27351 main ()
27352 {
27353 return mallinfo ();
27354   ;
27355   return 0;
27356 }
27357 _ACEOF
27358 for ac_lib in '' malloc; do
27359   if test -z "$ac_lib"; then
27360     ac_res="none required"
27361   else
27362     ac_res=-l$ac_lib
27363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27364   fi
27365   rm -f conftest.$ac_objext conftest$ac_exeext
27366 if { (ac_try="$ac_link"
27367 case "(($ac_try" in
27368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369   *) ac_try_echo=$ac_try;;
27370 esac
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372   (eval "$ac_link") 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } &&
27379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27380   { (case "(($ac_try" in
27381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382   *) ac_try_echo=$ac_try;;
27383 esac
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385   (eval "$ac_try") 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; } &&
27389          { ac_try='test -s conftest$ac_exeext'
27390   { (case "(($ac_try" in
27391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392   *) ac_try_echo=$ac_try;;
27393 esac
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395   (eval "$ac_try") 2>&5
27396   ac_status=$?
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); }; }; then
27399   ac_cv_search_mallinfo=$ac_res
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404
27405 fi
27406
27407 rm -f core conftest.err conftest.$ac_objext \
27408       conftest$ac_exeext
27409   if test "${ac_cv_search_mallinfo+set}" = set; then
27410   break
27411 fi
27412 done
27413 if test "${ac_cv_search_mallinfo+set}" = set; then
27414   :
27415 else
27416   ac_cv_search_mallinfo=no
27417 fi
27418 rm conftest.$ac_ext
27419 LIBS=$ac_func_search_save_LIBS
27420 fi
27421 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27422 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27423 ac_res=$ac_cv_search_mallinfo
27424 if test "$ac_res" != no; then
27425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27426
27427 cat >>confdefs.h <<\_ACEOF
27428 #define HAVE_MALLINFO 1
27429 _ACEOF
27430
27431 fi
27432
27433
27434 if test "$ENABLE_THREADS" -eq 1 ; then
27435
27436 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27437 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27438 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27439   echo $ECHO_N "(cached) $ECHO_C" >&6
27440 else
27441   ac_check_lib_save_LIBS=$LIBS
27442 LIBS="-lpthread  $LIBS"
27443 cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449
27450 /* Override any GCC internal prototype to avoid an error.
27451    Use char because int might match the return type of a GCC
27452    builtin and then its argument prototype would still apply.  */
27453 #ifdef __cplusplus
27454 extern "C"
27455 #endif
27456 char pthread_mutex_init ();
27457 int
27458 main ()
27459 {
27460 return pthread_mutex_init ();
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext conftest$ac_exeext
27466 if { (ac_try="$ac_link"
27467 case "(($ac_try" in
27468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469   *) ac_try_echo=$ac_try;;
27470 esac
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472   (eval "$ac_link") 2>conftest.er1
27473   ac_status=$?
27474   grep -v '^ *+' conftest.er1 >conftest.err
27475   rm -f conftest.er1
27476   cat conftest.err >&5
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } &&
27479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27480   { (case "(($ac_try" in
27481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482   *) ac_try_echo=$ac_try;;
27483 esac
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485   (eval "$ac_try") 2>&5
27486   ac_status=$?
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); }; } &&
27489          { ac_try='test -s conftest$ac_exeext'
27490   { (case "(($ac_try" in
27491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492   *) ac_try_echo=$ac_try;;
27493 esac
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495   (eval "$ac_try") 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; }; then
27499   ac_cv_lib_pthread_pthread_mutex_init=yes
27500 else
27501   echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27503
27504         ac_cv_lib_pthread_pthread_mutex_init=no
27505 fi
27506
27507 rm -f core conftest.err conftest.$ac_objext \
27508       conftest$ac_exeext conftest.$ac_ext
27509 LIBS=$ac_check_lib_save_LIBS
27510 fi
27511 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27512 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27513 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27514   cat >>confdefs.h <<_ACEOF
27515 #define HAVE_LIBPTHREAD 1
27516 _ACEOF
27517
27518   LIBS="-lpthread $LIBS"
27519
27520 fi
27521
27522   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27523 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27524 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27525   echo $ECHO_N "(cached) $ECHO_C" >&6
27526 else
27527   ac_func_search_save_LIBS=$LIBS
27528 cat >conftest.$ac_ext <<_ACEOF
27529 /* confdefs.h.  */
27530 _ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h.  */
27534
27535 /* Override any GCC internal prototype to avoid an error.
27536    Use char because int might match the return type of a GCC
27537    builtin and then its argument prototype would still apply.  */
27538 #ifdef __cplusplus
27539 extern "C"
27540 #endif
27541 char pthread_mutex_lock ();
27542 int
27543 main ()
27544 {
27545 return pthread_mutex_lock ();
27546   ;
27547   return 0;
27548 }
27549 _ACEOF
27550 for ac_lib in '' pthread; do
27551   if test -z "$ac_lib"; then
27552     ac_res="none required"
27553   else
27554     ac_res=-l$ac_lib
27555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27556   fi
27557   rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_link") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } &&
27571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572   { (case "(($ac_try" in
27573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574   *) ac_try_echo=$ac_try;;
27575 esac
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577   (eval "$ac_try") 2>&5
27578   ac_status=$?
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); }; } &&
27581          { ac_try='test -s conftest$ac_exeext'
27582   { (case "(($ac_try" in
27583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584   *) ac_try_echo=$ac_try;;
27585 esac
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587   (eval "$ac_try") 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); }; }; then
27591   ac_cv_search_pthread_mutex_lock=$ac_res
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext \
27600       conftest$ac_exeext
27601   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27602   break
27603 fi
27604 done
27605 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27606   :
27607 else
27608   ac_cv_search_pthread_mutex_lock=no
27609 fi
27610 rm conftest.$ac_ext
27611 LIBS=$ac_func_search_save_LIBS
27612 fi
27613 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27614 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27615 ac_res=$ac_cv_search_pthread_mutex_lock
27616 if test "$ac_res" != no; then
27617   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27618
27619 cat >>confdefs.h <<\_ACEOF
27620 #define HAVE_PTHREAD_MUTEX_LOCK 1
27621 _ACEOF
27622
27623 fi
27624
27625 fi
27626
27627
27628 # Check whether --with-udis86 was given.
27629 if test "${with_udis86+set}" = set; then
27630   withval=$with_udis86;
27631       USE_UDIS86=1
27632
27633       case "$withval" in
27634         /usr/lib|yes) ;;
27635         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27636       esac
27637
27638 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27639 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27640 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27641   echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643   ac_check_lib_save_LIBS=$LIBS
27644 LIBS="-ludis86  $LIBS"
27645 cat >conftest.$ac_ext <<_ACEOF
27646 /* confdefs.h.  */
27647 _ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h.  */
27651
27652 /* Override any GCC internal prototype to avoid an error.
27653    Use char because int might match the return type of a GCC
27654    builtin and then its argument prototype would still apply.  */
27655 #ifdef __cplusplus
27656 extern "C"
27657 #endif
27658 char ud_init ();
27659 int
27660 main ()
27661 {
27662 return ud_init ();
27663   ;
27664   return 0;
27665 }
27666 _ACEOF
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (ac_try="$ac_link"
27669 case "(($ac_try" in
27670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671   *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674   (eval "$ac_link") 2>conftest.er1
27675   ac_status=$?
27676   grep -v '^ *+' conftest.er1 >conftest.err
27677   rm -f conftest.er1
27678   cat conftest.err >&5
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); } &&
27681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682   { (case "(($ac_try" in
27683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684   *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687   (eval "$ac_try") 2>&5
27688   ac_status=$?
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); }; } &&
27691          { ac_try='test -s conftest$ac_exeext'
27692   { (case "(($ac_try" in
27693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694   *) ac_try_echo=$ac_try;;
27695 esac
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697   (eval "$ac_try") 2>&5
27698   ac_status=$?
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); }; }; then
27701   ac_cv_lib_udis86_ud_init=yes
27702 else
27703   echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27705
27706         ac_cv_lib_udis86_ud_init=no
27707 fi
27708
27709 rm -f core conftest.err conftest.$ac_objext \
27710       conftest$ac_exeext conftest.$ac_ext
27711 LIBS=$ac_check_lib_save_LIBS
27712 fi
27713 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27714 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27715 if test $ac_cv_lib_udis86_ud_init = yes; then
27716   cat >>confdefs.h <<_ACEOF
27717 #define HAVE_LIBUDIS86 1
27718 _ACEOF
27719
27720   LIBS="-ludis86 $LIBS"
27721
27722 else
27723
27724         echo "Error! You need to have libudis86 around."
27725         exit -1
27726
27727 fi
27728
27729
27730 else
27731   USE_UDIS86=0
27732
27733 fi
27734
27735
27736 cat >>confdefs.h <<_ACEOF
27737 #define USE_UDIS86 $USE_UDIS86
27738 _ACEOF
27739
27740
27741
27742
27743
27744
27745
27746
27747 ac_header_dirent=no
27748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27749   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27753   echo $ECHO_N "(cached) $ECHO_C" >&6
27754 else
27755   cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761 #include <sys/types.h>
27762 #include <$ac_hdr>
27763
27764 int
27765 main ()
27766 {
27767 if ((DIR *) 0)
27768 return 0;
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 rm -f conftest.$ac_objext
27774 if { (ac_try="$ac_compile"
27775 case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780   (eval "$ac_compile") 2>conftest.er1
27781   ac_status=$?
27782   grep -v '^ *+' conftest.er1 >conftest.err
27783   rm -f conftest.er1
27784   cat conftest.err >&5
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); } &&
27787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27788   { (case "(($ac_try" in
27789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790   *) ac_try_echo=$ac_try;;
27791 esac
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793   (eval "$ac_try") 2>&5
27794   ac_status=$?
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); }; } &&
27797          { ac_try='test -s conftest.$ac_objext'
27798   { (case "(($ac_try" in
27799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800   *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803   (eval "$ac_try") 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; }; then
27807   eval "$as_ac_Header=yes"
27808 else
27809   echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27811
27812         eval "$as_ac_Header=no"
27813 fi
27814
27815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27816 fi
27817 ac_res=`eval echo '${'$as_ac_Header'}'`
27818                { echo "$as_me:$LINENO: result: $ac_res" >&5
27819 echo "${ECHO_T}$ac_res" >&6; }
27820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27821   cat >>confdefs.h <<_ACEOF
27822 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27823 _ACEOF
27824
27825 ac_header_dirent=$ac_hdr; break
27826 fi
27827
27828 done
27829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27830 if test $ac_header_dirent = dirent.h; then
27831   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27833 if test "${ac_cv_search_opendir+set}" = set; then
27834   echo $ECHO_N "(cached) $ECHO_C" >&6
27835 else
27836   ac_func_search_save_LIBS=$LIBS
27837 cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h.  */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h.  */
27843
27844 /* Override any GCC internal prototype to avoid an error.
27845    Use char because int might match the return type of a GCC
27846    builtin and then its argument prototype would still apply.  */
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char opendir ();
27851 int
27852 main ()
27853 {
27854 return opendir ();
27855   ;
27856   return 0;
27857 }
27858 _ACEOF
27859 for ac_lib in '' dir; do
27860   if test -z "$ac_lib"; then
27861     ac_res="none required"
27862   else
27863     ac_res=-l$ac_lib
27864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27865   fi
27866   rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_link") 2>conftest.er1
27874   ac_status=$?
27875   grep -v '^ *+' conftest.er1 >conftest.err
27876   rm -f conftest.er1
27877   cat conftest.err >&5
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); } &&
27880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881   { (case "(($ac_try" in
27882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883   *) ac_try_echo=$ac_try;;
27884 esac
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886   (eval "$ac_try") 2>&5
27887   ac_status=$?
27888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889   (exit $ac_status); }; } &&
27890          { ac_try='test -s conftest$ac_exeext'
27891   { (case "(($ac_try" in
27892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893   *) ac_try_echo=$ac_try;;
27894 esac
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896   (eval "$ac_try") 2>&5
27897   ac_status=$?
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); }; }; then
27900   ac_cv_search_opendir=$ac_res
27901 else
27902   echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27904
27905
27906 fi
27907
27908 rm -f core conftest.err conftest.$ac_objext \
27909       conftest$ac_exeext
27910   if test "${ac_cv_search_opendir+set}" = set; then
27911   break
27912 fi
27913 done
27914 if test "${ac_cv_search_opendir+set}" = set; then
27915   :
27916 else
27917   ac_cv_search_opendir=no
27918 fi
27919 rm conftest.$ac_ext
27920 LIBS=$ac_func_search_save_LIBS
27921 fi
27922 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27923 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27924 ac_res=$ac_cv_search_opendir
27925 if test "$ac_res" != no; then
27926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27927
27928 fi
27929
27930 else
27931   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27933 if test "${ac_cv_search_opendir+set}" = set; then
27934   echo $ECHO_N "(cached) $ECHO_C" >&6
27935 else
27936   ac_func_search_save_LIBS=$LIBS
27937 cat >conftest.$ac_ext <<_ACEOF
27938 /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943
27944 /* Override any GCC internal prototype to avoid an error.
27945    Use char because int might match the return type of a GCC
27946    builtin and then its argument prototype would still apply.  */
27947 #ifdef __cplusplus
27948 extern "C"
27949 #endif
27950 char opendir ();
27951 int
27952 main ()
27953 {
27954 return opendir ();
27955   ;
27956   return 0;
27957 }
27958 _ACEOF
27959 for ac_lib in '' x; do
27960   if test -z "$ac_lib"; then
27961     ac_res="none required"
27962   else
27963     ac_res=-l$ac_lib
27964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27965   fi
27966   rm -f conftest.$ac_objext conftest$ac_exeext
27967 if { (ac_try="$ac_link"
27968 case "(($ac_try" in
27969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970   *) ac_try_echo=$ac_try;;
27971 esac
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973   (eval "$ac_link") 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } &&
27980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981   { (case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_try") 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; } &&
27990          { ac_try='test -s conftest$ac_exeext'
27991   { (case "(($ac_try" in
27992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993   *) ac_try_echo=$ac_try;;
27994 esac
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996   (eval "$ac_try") 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); }; }; then
28000   ac_cv_search_opendir=$ac_res
28001 else
28002   echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28004
28005
28006 fi
28007
28008 rm -f core conftest.err conftest.$ac_objext \
28009       conftest$ac_exeext
28010   if test "${ac_cv_search_opendir+set}" = set; then
28011   break
28012 fi
28013 done
28014 if test "${ac_cv_search_opendir+set}" = set; then
28015   :
28016 else
28017   ac_cv_search_opendir=no
28018 fi
28019 rm conftest.$ac_ext
28020 LIBS=$ac_func_search_save_LIBS
28021 fi
28022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28024 ac_res=$ac_cv_search_opendir
28025 if test "$ac_res" != no; then
28026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28027
28028 fi
28029
28030 fi
28031
28032 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28033 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28034 if test "${ac_cv_header_mmap_anon+set}" = set; then
28035   echo $ECHO_N "(cached) $ECHO_C" >&6
28036 else
28037    ac_ext=c
28038 ac_cpp='$CPP $CPPFLAGS'
28039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28042
28043   cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049 #include <sys/mman.h>
28050 #include <unistd.h>
28051 #include <fcntl.h>
28052 int
28053 main ()
28054 {
28055 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28056   ;
28057   return 0;
28058 }
28059 _ACEOF
28060 rm -f conftest.$ac_objext
28061 if { (ac_try="$ac_compile"
28062 case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067   (eval "$ac_compile") 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } &&
28074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075   { (case "(($ac_try" in
28076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077   *) ac_try_echo=$ac_try;;
28078 esac
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080   (eval "$ac_try") 2>&5
28081   ac_status=$?
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); }; } &&
28084          { ac_try='test -s conftest.$ac_objext'
28085   { (case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_try") 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; }; then
28094   ac_cv_header_mmap_anon=yes
28095 else
28096   echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28098
28099         ac_cv_header_mmap_anon=no
28100 fi
28101
28102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103   ac_ext=c
28104 ac_cpp='$CPP $CPPFLAGS'
28105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28108
28109
28110 fi
28111 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28112 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28113 if test "$ac_cv_header_mmap_anon" = yes; then
28114
28115 cat >>confdefs.h <<\_ACEOF
28116 #define HAVE_MMAP_ANONYMOUS 1
28117 _ACEOF
28118
28119 fi
28120
28121 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28122 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28123 if test "${ac_cv_header_stat_broken+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132 #include <sys/types.h>
28133 #include <sys/stat.h>
28134
28135 #if defined S_ISBLK && defined S_IFDIR
28136 # if S_ISBLK (S_IFDIR)
28137 You lose.
28138 # endif
28139 #endif
28140
28141 #if defined S_ISBLK && defined S_IFCHR
28142 # if S_ISBLK (S_IFCHR)
28143 You lose.
28144 # endif
28145 #endif
28146
28147 #if defined S_ISLNK && defined S_IFREG
28148 # if S_ISLNK (S_IFREG)
28149 You lose.
28150 # endif
28151 #endif
28152
28153 #if defined S_ISSOCK && defined S_IFREG
28154 # if S_ISSOCK (S_IFREG)
28155 You lose.
28156 # endif
28157 #endif
28158
28159 _ACEOF
28160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28161   $EGREP "You lose" >/dev/null 2>&1; then
28162   ac_cv_header_stat_broken=yes
28163 else
28164   ac_cv_header_stat_broken=no
28165 fi
28166 rm -f conftest*
28167
28168 fi
28169 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28170 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28171 if test $ac_cv_header_stat_broken = yes; then
28172
28173 cat >>confdefs.h <<\_ACEOF
28174 #define STAT_MACROS_BROKEN 1
28175 _ACEOF
28176
28177 fi
28178
28179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28181 if test "${ac_cv_header_stdc+set}" = set; then
28182   echo $ECHO_N "(cached) $ECHO_C" >&6
28183 else
28184   cat >conftest.$ac_ext <<_ACEOF
28185 /* confdefs.h.  */
28186 _ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h.  */
28190 #include <stdlib.h>
28191 #include <stdarg.h>
28192 #include <string.h>
28193 #include <float.h>
28194
28195 int
28196 main ()
28197 {
28198
28199   ;
28200   return 0;
28201 }
28202 _ACEOF
28203 rm -f conftest.$ac_objext
28204 if { (ac_try="$ac_compile"
28205 case "(($ac_try" in
28206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207   *) ac_try_echo=$ac_try;;
28208 esac
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210   (eval "$ac_compile") 2>conftest.er1
28211   ac_status=$?
28212   grep -v '^ *+' conftest.er1 >conftest.err
28213   rm -f conftest.er1
28214   cat conftest.err >&5
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); } &&
28217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218   { (case "(($ac_try" in
28219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220   *) ac_try_echo=$ac_try;;
28221 esac
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223   (eval "$ac_try") 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); }; } &&
28227          { ac_try='test -s conftest.$ac_objext'
28228   { (case "(($ac_try" in
28229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230   *) ac_try_echo=$ac_try;;
28231 esac
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233   (eval "$ac_try") 2>&5
28234   ac_status=$?
28235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; }; then
28237   ac_cv_header_stdc=yes
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242         ac_cv_header_stdc=no
28243 fi
28244
28245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246
28247 if test $ac_cv_header_stdc = yes; then
28248   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28249   cat >conftest.$ac_ext <<_ACEOF
28250 /* confdefs.h.  */
28251 _ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h.  */
28255 #include <string.h>
28256
28257 _ACEOF
28258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28259   $EGREP "memchr" >/dev/null 2>&1; then
28260   :
28261 else
28262   ac_cv_header_stdc=no
28263 fi
28264 rm -f conftest*
28265
28266 fi
28267
28268 if test $ac_cv_header_stdc = yes; then
28269   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28270   cat >conftest.$ac_ext <<_ACEOF
28271 /* confdefs.h.  */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h.  */
28276 #include <stdlib.h>
28277
28278 _ACEOF
28279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28280   $EGREP "free" >/dev/null 2>&1; then
28281   :
28282 else
28283   ac_cv_header_stdc=no
28284 fi
28285 rm -f conftest*
28286
28287 fi
28288
28289 if test $ac_cv_header_stdc = yes; then
28290   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28291   if test "$cross_compiling" = yes; then
28292   :
28293 else
28294   cat >conftest.$ac_ext <<_ACEOF
28295 /* confdefs.h.  */
28296 _ACEOF
28297 cat confdefs.h >>conftest.$ac_ext
28298 cat >>conftest.$ac_ext <<_ACEOF
28299 /* end confdefs.h.  */
28300 #include <ctype.h>
28301 #include <stdlib.h>
28302 #if ((' ' & 0x0FF) == 0x020)
28303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28305 #else
28306 # define ISLOWER(c) \
28307                    (('a' <= (c) && (c) <= 'i') \
28308                      || ('j' <= (c) && (c) <= 'r') \
28309                      || ('s' <= (c) && (c) <= 'z'))
28310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28311 #endif
28312
28313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28314 int
28315 main ()
28316 {
28317   int i;
28318   for (i = 0; i < 256; i++)
28319     if (XOR (islower (i), ISLOWER (i))
28320         || toupper (i) != TOUPPER (i))
28321       return 2;
28322   return 0;
28323 }
28324 _ACEOF
28325 rm -f conftest$ac_exeext
28326 if { (ac_try="$ac_link"
28327 case "(($ac_try" in
28328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329   *) ac_try_echo=$ac_try;;
28330 esac
28331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332   (eval "$ac_link") 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28336   { (case "(($ac_try" in
28337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338   *) ac_try_echo=$ac_try;;
28339 esac
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341   (eval "$ac_try") 2>&5
28342   ac_status=$?
28343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); }; }; then
28345   :
28346 else
28347   echo "$as_me: program exited with status $ac_status" >&5
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28350
28351 ( exit $ac_status )
28352 ac_cv_header_stdc=no
28353 fi
28354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28355 fi
28356
28357
28358 fi
28359 fi
28360 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28361 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28362 if test $ac_cv_header_stdc = yes; then
28363
28364 cat >>confdefs.h <<\_ACEOF
28365 #define STDC_HEADERS 1
28366 _ACEOF
28367
28368 fi
28369
28370 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28371 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28372 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28373   echo $ECHO_N "(cached) $ECHO_C" >&6
28374 else
28375   cat >conftest.$ac_ext <<_ACEOF
28376 /* confdefs.h.  */
28377 _ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h.  */
28381 #include <sys/types.h>
28382 #include <sys/wait.h>
28383 #ifndef WEXITSTATUS
28384 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28385 #endif
28386 #ifndef WIFEXITED
28387 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28388 #endif
28389
28390 int
28391 main ()
28392 {
28393   int s;
28394   wait (&s);
28395   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28396   ;
28397   return 0;
28398 }
28399 _ACEOF
28400 rm -f conftest.$ac_objext
28401 if { (ac_try="$ac_compile"
28402 case "(($ac_try" in
28403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404   *) ac_try_echo=$ac_try;;
28405 esac
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407   (eval "$ac_compile") 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } &&
28414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28415   { (case "(($ac_try" in
28416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417   *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420   (eval "$ac_try") 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); }; } &&
28424          { ac_try='test -s conftest.$ac_objext'
28425   { (case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_try") 2>&5
28431   ac_status=$?
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); }; }; then
28434   ac_cv_header_sys_wait_h=yes
28435 else
28436   echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28438
28439         ac_cv_header_sys_wait_h=no
28440 fi
28441
28442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28443 fi
28444 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28445 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28446 if test $ac_cv_header_sys_wait_h = yes; then
28447
28448 cat >>confdefs.h <<\_ACEOF
28449 #define HAVE_SYS_WAIT_H 1
28450 _ACEOF
28451
28452 fi
28453
28454 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28455 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_time+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465 #include <sys/types.h>
28466 #include <sys/time.h>
28467 #include <time.h>
28468
28469 int
28470 main ()
28471 {
28472 if ((struct tm *) 0)
28473 return 0;
28474   ;
28475   return 0;
28476 }
28477 _ACEOF
28478 rm -f conftest.$ac_objext
28479 if { (ac_try="$ac_compile"
28480 case "(($ac_try" in
28481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482   *) ac_try_echo=$ac_try;;
28483 esac
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485   (eval "$ac_compile") 2>conftest.er1
28486   ac_status=$?
28487   grep -v '^ *+' conftest.er1 >conftest.err
28488   rm -f conftest.er1
28489   cat conftest.err >&5
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); } &&
28492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28493   { (case "(($ac_try" in
28494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495   *) ac_try_echo=$ac_try;;
28496 esac
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498   (eval "$ac_try") 2>&5
28499   ac_status=$?
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); }; } &&
28502          { ac_try='test -s conftest.$ac_objext'
28503   { (case "(($ac_try" in
28504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505   *) ac_try_echo=$ac_try;;
28506 esac
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508   (eval "$ac_try") 2>&5
28509   ac_status=$?
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); }; }; then
28512   ac_cv_header_time=yes
28513 else
28514   echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28516
28517         ac_cv_header_time=no
28518 fi
28519
28520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521 fi
28522 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28523 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28524 if test $ac_cv_header_time = yes; then
28525
28526 cat >>confdefs.h <<\_ACEOF
28527 #define TIME_WITH_SYS_TIME 1
28528 _ACEOF
28529
28530 fi
28531
28532
28533
28534
28535
28536
28537
28538
28539 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28540 do
28541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28546   echo $ECHO_N "(cached) $ECHO_C" >&6
28547 fi
28548 ac_res=`eval echo '${'$as_ac_Header'}'`
28549                { echo "$as_me:$LINENO: result: $ac_res" >&5
28550 echo "${ECHO_T}$ac_res" >&6; }
28551 else
28552   # Is the header compilable?
28553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28555 cat >conftest.$ac_ext <<_ACEOF
28556 /* confdefs.h.  */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h.  */
28561 $ac_includes_default
28562 #include <$ac_header>
28563 _ACEOF
28564 rm -f conftest.$ac_objext
28565 if { (ac_try="$ac_compile"
28566 case "(($ac_try" in
28567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568   *) ac_try_echo=$ac_try;;
28569 esac
28570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571   (eval "$ac_compile") 2>conftest.er1
28572   ac_status=$?
28573   grep -v '^ *+' conftest.er1 >conftest.err
28574   rm -f conftest.er1
28575   cat conftest.err >&5
28576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); } &&
28578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28579   { (case "(($ac_try" in
28580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581   *) ac_try_echo=$ac_try;;
28582 esac
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584   (eval "$ac_try") 2>&5
28585   ac_status=$?
28586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587   (exit $ac_status); }; } &&
28588          { ac_try='test -s conftest.$ac_objext'
28589   { (case "(($ac_try" in
28590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591   *) ac_try_echo=$ac_try;;
28592 esac
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594   (eval "$ac_try") 2>&5
28595   ac_status=$?
28596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597   (exit $ac_status); }; }; then
28598   ac_header_compiler=yes
28599 else
28600   echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28602
28603         ac_header_compiler=no
28604 fi
28605
28606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28608 echo "${ECHO_T}$ac_header_compiler" >&6; }
28609
28610 # Is the header present?
28611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28613 cat >conftest.$ac_ext <<_ACEOF
28614 /* confdefs.h.  */
28615 _ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h.  */
28619 #include <$ac_header>
28620 _ACEOF
28621 if { (ac_try="$ac_cpp conftest.$ac_ext"
28622 case "(($ac_try" in
28623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624   *) ac_try_echo=$ac_try;;
28625 esac
28626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28628   ac_status=$?
28629   grep -v '^ *+' conftest.er1 >conftest.err
28630   rm -f conftest.er1
28631   cat conftest.err >&5
28632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633   (exit $ac_status); } >/dev/null; then
28634   if test -s conftest.err; then
28635     ac_cpp_err=$ac_c_preproc_warn_flag
28636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28637   else
28638     ac_cpp_err=
28639   fi
28640 else
28641   ac_cpp_err=yes
28642 fi
28643 if test -z "$ac_cpp_err"; then
28644   ac_header_preproc=yes
28645 else
28646   echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28648
28649   ac_header_preproc=no
28650 fi
28651
28652 rm -f conftest.err conftest.$ac_ext
28653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28654 echo "${ECHO_T}$ac_header_preproc" >&6; }
28655
28656 # So?  What about this header?
28657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28658   yes:no: )
28659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28663     ac_header_preproc=yes
28664     ;;
28665   no:yes:* )
28666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28678     ( cat <<\_ASBOX
28679 ## ----------------------------------- ##
28680 ## Report this to llvmbugs@cs.uiuc.edu ##
28681 ## ----------------------------------- ##
28682 _ASBOX
28683      ) | sed "s/^/$as_me: WARNING:     /" >&2
28684     ;;
28685 esac
28686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 else
28691   eval "$as_ac_Header=\$ac_header_preproc"
28692 fi
28693 ac_res=`eval echo '${'$as_ac_Header'}'`
28694                { echo "$as_me:$LINENO: result: $ac_res" >&5
28695 echo "${ECHO_T}$ac_res" >&6; }
28696
28697 fi
28698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28699   cat >>confdefs.h <<_ACEOF
28700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28701 _ACEOF
28702
28703 fi
28704
28705 done
28706
28707
28708
28709
28710
28711
28712
28713 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28714 do
28715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28717   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28720   echo $ECHO_N "(cached) $ECHO_C" >&6
28721 fi
28722 ac_res=`eval echo '${'$as_ac_Header'}'`
28723                { echo "$as_me:$LINENO: result: $ac_res" >&5
28724 echo "${ECHO_T}$ac_res" >&6; }
28725 else
28726   # Is the header compilable?
28727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h.  */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h.  */
28735 $ac_includes_default
28736 #include <$ac_header>
28737 _ACEOF
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_compile") 2>conftest.er1
28746   ac_status=$?
28747   grep -v '^ *+' conftest.er1 >conftest.err
28748   rm -f conftest.er1
28749   cat conftest.err >&5
28750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751   (exit $ac_status); } &&
28752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28753   { (case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758   (eval "$ac_try") 2>&5
28759   ac_status=$?
28760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761   (exit $ac_status); }; } &&
28762          { ac_try='test -s conftest.$ac_objext'
28763   { (case "(($ac_try" in
28764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765   *) ac_try_echo=$ac_try;;
28766 esac
28767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768   (eval "$ac_try") 2>&5
28769   ac_status=$?
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); }; }; then
28772   ac_header_compiler=yes
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777         ac_header_compiler=no
28778 fi
28779
28780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28782 echo "${ECHO_T}$ac_header_compiler" >&6; }
28783
28784 # Is the header present?
28785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28787 cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h.  */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h.  */
28793 #include <$ac_header>
28794 _ACEOF
28795 if { (ac_try="$ac_cpp conftest.$ac_ext"
28796 case "(($ac_try" in
28797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798   *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28802   ac_status=$?
28803   grep -v '^ *+' conftest.er1 >conftest.err
28804   rm -f conftest.er1
28805   cat conftest.err >&5
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); } >/dev/null; then
28808   if test -s conftest.err; then
28809     ac_cpp_err=$ac_c_preproc_warn_flag
28810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28811   else
28812     ac_cpp_err=
28813   fi
28814 else
28815   ac_cpp_err=yes
28816 fi
28817 if test -z "$ac_cpp_err"; then
28818   ac_header_preproc=yes
28819 else
28820   echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28822
28823   ac_header_preproc=no
28824 fi
28825
28826 rm -f conftest.err conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28828 echo "${ECHO_T}$ac_header_preproc" >&6; }
28829
28830 # So?  What about this header?
28831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28832   yes:no: )
28833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28837     ac_header_preproc=yes
28838     ;;
28839   no:yes:* )
28840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28852     ( cat <<\_ASBOX
28853 ## ----------------------------------- ##
28854 ## Report this to llvmbugs@cs.uiuc.edu ##
28855 ## ----------------------------------- ##
28856 _ASBOX
28857      ) | sed "s/^/$as_me: WARNING:     /" >&2
28858     ;;
28859 esac
28860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28863   echo $ECHO_N "(cached) $ECHO_C" >&6
28864 else
28865   eval "$as_ac_Header=\$ac_header_preproc"
28866 fi
28867 ac_res=`eval echo '${'$as_ac_Header'}'`
28868                { echo "$as_me:$LINENO: result: $ac_res" >&5
28869 echo "${ECHO_T}$ac_res" >&6; }
28870
28871 fi
28872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28873   cat >>confdefs.h <<_ACEOF
28874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28875 _ACEOF
28876
28877 fi
28878
28879 done
28880
28881
28882 for ac_header in windows.h
28883 do
28884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28886   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28889   echo $ECHO_N "(cached) $ECHO_C" >&6
28890 fi
28891 ac_res=`eval echo '${'$as_ac_Header'}'`
28892                { echo "$as_me:$LINENO: result: $ac_res" >&5
28893 echo "${ECHO_T}$ac_res" >&6; }
28894 else
28895   # Is the header compilable?
28896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28898 cat >conftest.$ac_ext <<_ACEOF
28899 /* confdefs.h.  */
28900 _ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h.  */
28904 $ac_includes_default
28905 #include <$ac_header>
28906 _ACEOF
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911   *) ac_try_echo=$ac_try;;
28912 esac
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914   (eval "$ac_compile") 2>conftest.er1
28915   ac_status=$?
28916   grep -v '^ *+' conftest.er1 >conftest.err
28917   rm -f conftest.er1
28918   cat conftest.err >&5
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); } &&
28921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28922   { (case "(($ac_try" in
28923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924   *) ac_try_echo=$ac_try;;
28925 esac
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927   (eval "$ac_try") 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); }; } &&
28931          { ac_try='test -s conftest.$ac_objext'
28932   { (case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937   (eval "$ac_try") 2>&5
28938   ac_status=$?
28939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940   (exit $ac_status); }; }; then
28941   ac_header_compiler=yes
28942 else
28943   echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28945
28946         ac_header_compiler=no
28947 fi
28948
28949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28951 echo "${ECHO_T}$ac_header_compiler" >&6; }
28952
28953 # Is the header present?
28954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28956 cat >conftest.$ac_ext <<_ACEOF
28957 /* confdefs.h.  */
28958 _ACEOF
28959 cat confdefs.h >>conftest.$ac_ext
28960 cat >>conftest.$ac_ext <<_ACEOF
28961 /* end confdefs.h.  */
28962 #include <$ac_header>
28963 _ACEOF
28964 if { (ac_try="$ac_cpp conftest.$ac_ext"
28965 case "(($ac_try" in
28966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967   *) ac_try_echo=$ac_try;;
28968 esac
28969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28971   ac_status=$?
28972   grep -v '^ *+' conftest.er1 >conftest.err
28973   rm -f conftest.er1
28974   cat conftest.err >&5
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); } >/dev/null; then
28977   if test -s conftest.err; then
28978     ac_cpp_err=$ac_c_preproc_warn_flag
28979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28980   else
28981     ac_cpp_err=
28982   fi
28983 else
28984   ac_cpp_err=yes
28985 fi
28986 if test -z "$ac_cpp_err"; then
28987   ac_header_preproc=yes
28988 else
28989   echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28991
28992   ac_header_preproc=no
28993 fi
28994
28995 rm -f conftest.err conftest.$ac_ext
28996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28997 echo "${ECHO_T}$ac_header_preproc" >&6; }
28998
28999 # So?  What about this header?
29000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29001   yes:no: )
29002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29006     ac_header_preproc=yes
29007     ;;
29008   no:yes:* )
29009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29021     ( cat <<\_ASBOX
29022 ## ----------------------------------- ##
29023 ## Report this to llvmbugs@cs.uiuc.edu ##
29024 ## ----------------------------------- ##
29025 _ASBOX
29026      ) | sed "s/^/$as_me: WARNING:     /" >&2
29027     ;;
29028 esac
29029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032   echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034   eval "$as_ac_Header=\$ac_header_preproc"
29035 fi
29036 ac_res=`eval echo '${'$as_ac_Header'}'`
29037                { echo "$as_me:$LINENO: result: $ac_res" >&5
29038 echo "${ECHO_T}$ac_res" >&6; }
29039
29040 fi
29041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29042   cat >>confdefs.h <<_ACEOF
29043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29044 _ACEOF
29045
29046 fi
29047
29048 done
29049
29050
29051
29052
29053
29054 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29055 do
29056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 fi
29063 ac_res=`eval echo '${'$as_ac_Header'}'`
29064                { echo "$as_me:$LINENO: result: $ac_res" >&5
29065 echo "${ECHO_T}$ac_res" >&6; }
29066 else
29067   # Is the header compilable?
29068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29070 cat >conftest.$ac_ext <<_ACEOF
29071 /* confdefs.h.  */
29072 _ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h.  */
29076 $ac_includes_default
29077 #include <$ac_header>
29078 _ACEOF
29079 rm -f conftest.$ac_objext
29080 if { (ac_try="$ac_compile"
29081 case "(($ac_try" in
29082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083   *) ac_try_echo=$ac_try;;
29084 esac
29085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086   (eval "$ac_compile") 2>conftest.er1
29087   ac_status=$?
29088   grep -v '^ *+' conftest.er1 >conftest.err
29089   rm -f conftest.er1
29090   cat conftest.err >&5
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); } &&
29093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29094   { (case "(($ac_try" in
29095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096   *) ac_try_echo=$ac_try;;
29097 esac
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099   (eval "$ac_try") 2>&5
29100   ac_status=$?
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); }; } &&
29103          { ac_try='test -s conftest.$ac_objext'
29104   { (case "(($ac_try" in
29105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106   *) ac_try_echo=$ac_try;;
29107 esac
29108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109   (eval "$ac_try") 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; }; then
29113   ac_header_compiler=yes
29114 else
29115   echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118         ac_header_compiler=no
29119 fi
29120
29121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29123 echo "${ECHO_T}$ac_header_compiler" >&6; }
29124
29125 # Is the header present?
29126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29128 cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134 #include <$ac_header>
29135 _ACEOF
29136 if { (ac_try="$ac_cpp conftest.$ac_ext"
29137 case "(($ac_try" in
29138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139   *) ac_try_echo=$ac_try;;
29140 esac
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29143   ac_status=$?
29144   grep -v '^ *+' conftest.er1 >conftest.err
29145   rm -f conftest.er1
29146   cat conftest.err >&5
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); } >/dev/null; then
29149   if test -s conftest.err; then
29150     ac_cpp_err=$ac_c_preproc_warn_flag
29151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29152   else
29153     ac_cpp_err=
29154   fi
29155 else
29156   ac_cpp_err=yes
29157 fi
29158 if test -z "$ac_cpp_err"; then
29159   ac_header_preproc=yes
29160 else
29161   echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29163
29164   ac_header_preproc=no
29165 fi
29166
29167 rm -f conftest.err conftest.$ac_ext
29168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29169 echo "${ECHO_T}$ac_header_preproc" >&6; }
29170
29171 # So?  What about this header?
29172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29173   yes:no: )
29174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29178     ac_header_preproc=yes
29179     ;;
29180   no:yes:* )
29181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29193     ( cat <<\_ASBOX
29194 ## ----------------------------------- ##
29195 ## Report this to llvmbugs@cs.uiuc.edu ##
29196 ## ----------------------------------- ##
29197 _ASBOX
29198      ) | sed "s/^/$as_me: WARNING:     /" >&2
29199     ;;
29200 esac
29201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29204   echo $ECHO_N "(cached) $ECHO_C" >&6
29205 else
29206   eval "$as_ac_Header=\$ac_header_preproc"
29207 fi
29208 ac_res=`eval echo '${'$as_ac_Header'}'`
29209                { echo "$as_me:$LINENO: result: $ac_res" >&5
29210 echo "${ECHO_T}$ac_res" >&6; }
29211
29212 fi
29213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29214   cat >>confdefs.h <<_ACEOF
29215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29216 _ACEOF
29217
29218 fi
29219
29220 done
29221
29222
29223
29224
29225 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29226 do
29227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29229   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29232   echo $ECHO_N "(cached) $ECHO_C" >&6
29233 fi
29234 ac_res=`eval echo '${'$as_ac_Header'}'`
29235                { echo "$as_me:$LINENO: result: $ac_res" >&5
29236 echo "${ECHO_T}$ac_res" >&6; }
29237 else
29238   # Is the header compilable?
29239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29241 cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247 $ac_includes_default
29248 #include <$ac_header>
29249 _ACEOF
29250 rm -f conftest.$ac_objext
29251 if { (ac_try="$ac_compile"
29252 case "(($ac_try" in
29253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254   *) ac_try_echo=$ac_try;;
29255 esac
29256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257   (eval "$ac_compile") 2>conftest.er1
29258   ac_status=$?
29259   grep -v '^ *+' conftest.er1 >conftest.err
29260   rm -f conftest.er1
29261   cat conftest.err >&5
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); } &&
29264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29265   { (case "(($ac_try" in
29266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267   *) ac_try_echo=$ac_try;;
29268 esac
29269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270   (eval "$ac_try") 2>&5
29271   ac_status=$?
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); }; } &&
29274          { ac_try='test -s conftest.$ac_objext'
29275   { (case "(($ac_try" in
29276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277   *) ac_try_echo=$ac_try;;
29278 esac
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280   (eval "$ac_try") 2>&5
29281   ac_status=$?
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); }; }; then
29284   ac_header_compiler=yes
29285 else
29286   echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29288
29289         ac_header_compiler=no
29290 fi
29291
29292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29294 echo "${ECHO_T}$ac_header_compiler" >&6; }
29295
29296 # Is the header present?
29297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29299 cat >conftest.$ac_ext <<_ACEOF
29300 /* confdefs.h.  */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h.  */
29305 #include <$ac_header>
29306 _ACEOF
29307 if { (ac_try="$ac_cpp conftest.$ac_ext"
29308 case "(($ac_try" in
29309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310   *) ac_try_echo=$ac_try;;
29311 esac
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29314   ac_status=$?
29315   grep -v '^ *+' conftest.er1 >conftest.err
29316   rm -f conftest.er1
29317   cat conftest.err >&5
29318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319   (exit $ac_status); } >/dev/null; then
29320   if test -s conftest.err; then
29321     ac_cpp_err=$ac_c_preproc_warn_flag
29322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29323   else
29324     ac_cpp_err=
29325   fi
29326 else
29327   ac_cpp_err=yes
29328 fi
29329 if test -z "$ac_cpp_err"; then
29330   ac_header_preproc=yes
29331 else
29332   echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29334
29335   ac_header_preproc=no
29336 fi
29337
29338 rm -f conftest.err conftest.$ac_ext
29339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29340 echo "${ECHO_T}$ac_header_preproc" >&6; }
29341
29342 # So?  What about this header?
29343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29344   yes:no: )
29345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29349     ac_header_preproc=yes
29350     ;;
29351   no:yes:* )
29352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29364     ( cat <<\_ASBOX
29365 ## ----------------------------------- ##
29366 ## Report this to llvmbugs@cs.uiuc.edu ##
29367 ## ----------------------------------- ##
29368 _ASBOX
29369      ) | sed "s/^/$as_me: WARNING:     /" >&2
29370     ;;
29371 esac
29372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29375   echo $ECHO_N "(cached) $ECHO_C" >&6
29376 else
29377   eval "$as_ac_Header=\$ac_header_preproc"
29378 fi
29379 ac_res=`eval echo '${'$as_ac_Header'}'`
29380                { echo "$as_me:$LINENO: result: $ac_res" >&5
29381 echo "${ECHO_T}$ac_res" >&6; }
29382
29383 fi
29384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29385   cat >>confdefs.h <<_ACEOF
29386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29387 _ACEOF
29388
29389 fi
29390
29391 done
29392
29393 if test "$ENABLE_THREADS" -eq 1 ; then
29394
29395 for ac_header in pthread.h
29396 do
29397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402   echo $ECHO_N "(cached) $ECHO_C" >&6
29403 fi
29404 ac_res=`eval echo '${'$as_ac_Header'}'`
29405                { echo "$as_me:$LINENO: result: $ac_res" >&5
29406 echo "${ECHO_T}$ac_res" >&6; }
29407 else
29408   # Is the header compilable?
29409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29411 cat >conftest.$ac_ext <<_ACEOF
29412 /* confdefs.h.  */
29413 _ACEOF
29414 cat confdefs.h >>conftest.$ac_ext
29415 cat >>conftest.$ac_ext <<_ACEOF
29416 /* end confdefs.h.  */
29417 $ac_includes_default
29418 #include <$ac_header>
29419 _ACEOF
29420 rm -f conftest.$ac_objext
29421 if { (ac_try="$ac_compile"
29422 case "(($ac_try" in
29423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424   *) ac_try_echo=$ac_try;;
29425 esac
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427   (eval "$ac_compile") 2>conftest.er1
29428   ac_status=$?
29429   grep -v '^ *+' conftest.er1 >conftest.err
29430   rm -f conftest.er1
29431   cat conftest.err >&5
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); } &&
29434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29435   { (case "(($ac_try" in
29436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437   *) ac_try_echo=$ac_try;;
29438 esac
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440   (eval "$ac_try") 2>&5
29441   ac_status=$?
29442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443   (exit $ac_status); }; } &&
29444          { ac_try='test -s conftest.$ac_objext'
29445   { (case "(($ac_try" in
29446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29447   *) ac_try_echo=$ac_try;;
29448 esac
29449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29450   (eval "$ac_try") 2>&5
29451   ac_status=$?
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); }; }; then
29454   ac_header_compiler=yes
29455 else
29456   echo "$as_me: failed program was:" >&5
29457 sed 's/^/| /' conftest.$ac_ext >&5
29458
29459         ac_header_compiler=no
29460 fi
29461
29462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29464 echo "${ECHO_T}$ac_header_compiler" >&6; }
29465
29466 # Is the header present?
29467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29469 cat >conftest.$ac_ext <<_ACEOF
29470 /* confdefs.h.  */
29471 _ACEOF
29472 cat confdefs.h >>conftest.$ac_ext
29473 cat >>conftest.$ac_ext <<_ACEOF
29474 /* end confdefs.h.  */
29475 #include <$ac_header>
29476 _ACEOF
29477 if { (ac_try="$ac_cpp conftest.$ac_ext"
29478 case "(($ac_try" in
29479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480   *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29484   ac_status=$?
29485   grep -v '^ *+' conftest.er1 >conftest.err
29486   rm -f conftest.er1
29487   cat conftest.err >&5
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } >/dev/null; then
29490   if test -s conftest.err; then
29491     ac_cpp_err=$ac_c_preproc_warn_flag
29492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29493   else
29494     ac_cpp_err=
29495   fi
29496 else
29497   ac_cpp_err=yes
29498 fi
29499 if test -z "$ac_cpp_err"; then
29500   ac_header_preproc=yes
29501 else
29502   echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505   ac_header_preproc=no
29506 fi
29507
29508 rm -f conftest.err conftest.$ac_ext
29509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29510 echo "${ECHO_T}$ac_header_preproc" >&6; }
29511
29512 # So?  What about this header?
29513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29514   yes:no: )
29515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29519     ac_header_preproc=yes
29520     ;;
29521   no:yes:* )
29522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29534     ( cat <<\_ASBOX
29535 ## ----------------------------------- ##
29536 ## Report this to llvmbugs@cs.uiuc.edu ##
29537 ## ----------------------------------- ##
29538 _ASBOX
29539      ) | sed "s/^/$as_me: WARNING:     /" >&2
29540     ;;
29541 esac
29542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29545   echo $ECHO_N "(cached) $ECHO_C" >&6
29546 else
29547   eval "$as_ac_Header=\$ac_header_preproc"
29548 fi
29549 ac_res=`eval echo '${'$as_ac_Header'}'`
29550                { echo "$as_me:$LINENO: result: $ac_res" >&5
29551 echo "${ECHO_T}$ac_res" >&6; }
29552
29553 fi
29554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29555   cat >>confdefs.h <<_ACEOF
29556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29557 _ACEOF
29558  HAVE_PTHREAD=1
29559
29560 else
29561   HAVE_PTHREAD=0
29562
29563 fi
29564
29565 done
29566
29567 else
29568   HAVE_PTHREAD=0
29569
29570 fi
29571
29572
29573
29574   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29575 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29576 if test "${ac_cv_huge_val_sanity+set}" = set; then
29577   echo $ECHO_N "(cached) $ECHO_C" >&6
29578 else
29579
29580     ac_ext=cpp
29581 ac_cpp='$CXXCPP $CPPFLAGS'
29582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29585
29586     CXXFLAGS=-pedantic
29587     if test "$cross_compiling" = yes; then
29588   ac_cv_huge_val_sanity=yes
29589 else
29590   cat >conftest.$ac_ext <<_ACEOF
29591 /* confdefs.h.  */
29592 _ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h.  */
29596 #include <math.h>
29597 int
29598 main ()
29599 {
29600 double x = HUGE_VAL; return x != x;
29601   ;
29602   return 0;
29603 }
29604 _ACEOF
29605 rm -f conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_link") 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
29622   ac_status=$?
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); }; }; then
29625   ac_cv_huge_val_sanity=yes
29626 else
29627   echo "$as_me: program exited with status $ac_status" >&5
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631 ( exit $ac_status )
29632 ac_cv_huge_val_sanity=no
29633 fi
29634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29635 fi
29636
29637
29638     ac_ext=c
29639 ac_cpp='$CPP $CPPFLAGS'
29640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29643
29644
29645 fi
29646 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29647 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29648   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29649
29650
29651 { echo "$as_me:$LINENO: checking for pid_t" >&5
29652 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29653 if test "${ac_cv_type_pid_t+set}" = set; then
29654   echo $ECHO_N "(cached) $ECHO_C" >&6
29655 else
29656   cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662 $ac_includes_default
29663 typedef pid_t ac__type_new_;
29664 int
29665 main ()
29666 {
29667 if ((ac__type_new_ *) 0)
29668   return 0;
29669 if (sizeof (ac__type_new_))
29670   return 0;
29671   ;
29672   return 0;
29673 }
29674 _ACEOF
29675 rm -f conftest.$ac_objext
29676 if { (ac_try="$ac_compile"
29677 case "(($ac_try" in
29678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679   *) ac_try_echo=$ac_try;;
29680 esac
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682   (eval "$ac_compile") 2>conftest.er1
29683   ac_status=$?
29684   grep -v '^ *+' conftest.er1 >conftest.err
29685   rm -f conftest.er1
29686   cat conftest.err >&5
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); } &&
29689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29690   { (case "(($ac_try" in
29691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692   *) ac_try_echo=$ac_try;;
29693 esac
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695   (eval "$ac_try") 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; } &&
29699          { ac_try='test -s conftest.$ac_objext'
29700   { (case "(($ac_try" in
29701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702   *) ac_try_echo=$ac_try;;
29703 esac
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705   (eval "$ac_try") 2>&5
29706   ac_status=$?
29707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); }; }; then
29709   ac_cv_type_pid_t=yes
29710 else
29711   echo "$as_me: failed program was:" >&5
29712 sed 's/^/| /' conftest.$ac_ext >&5
29713
29714         ac_cv_type_pid_t=no
29715 fi
29716
29717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29718 fi
29719 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29720 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29721 if test $ac_cv_type_pid_t = yes; then
29722   :
29723 else
29724
29725 cat >>confdefs.h <<_ACEOF
29726 #define pid_t int
29727 _ACEOF
29728
29729 fi
29730
29731 { echo "$as_me:$LINENO: checking for size_t" >&5
29732 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29733 if test "${ac_cv_type_size_t+set}" = set; then
29734   echo $ECHO_N "(cached) $ECHO_C" >&6
29735 else
29736   cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 $ac_includes_default
29743 typedef size_t ac__type_new_;
29744 int
29745 main ()
29746 {
29747 if ((ac__type_new_ *) 0)
29748   return 0;
29749 if (sizeof (ac__type_new_))
29750   return 0;
29751   ;
29752   return 0;
29753 }
29754 _ACEOF
29755 rm -f conftest.$ac_objext
29756 if { (ac_try="$ac_compile"
29757 case "(($ac_try" in
29758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759   *) ac_try_echo=$ac_try;;
29760 esac
29761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762   (eval "$ac_compile") 2>conftest.er1
29763   ac_status=$?
29764   grep -v '^ *+' conftest.er1 >conftest.err
29765   rm -f conftest.er1
29766   cat conftest.err >&5
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); } &&
29769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29770   { (case "(($ac_try" in
29771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772   *) ac_try_echo=$ac_try;;
29773 esac
29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775   (eval "$ac_try") 2>&5
29776   ac_status=$?
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); }; } &&
29779          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29786   ac_status=$?
29787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); }; }; then
29789   ac_cv_type_size_t=yes
29790 else
29791   echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29793
29794         ac_cv_type_size_t=no
29795 fi
29796
29797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29798 fi
29799 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29800 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29801 if test $ac_cv_type_size_t = yes; then
29802   :
29803 else
29804
29805 cat >>confdefs.h <<_ACEOF
29806 #define size_t unsigned int
29807 _ACEOF
29808
29809 fi
29810
29811 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29812 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29813 if test "${ac_cv_type_signal+set}" = set; then
29814   echo $ECHO_N "(cached) $ECHO_C" >&6
29815 else
29816   cat >conftest.$ac_ext <<_ACEOF
29817 /* confdefs.h.  */
29818 _ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h.  */
29822 #include <sys/types.h>
29823 #include <signal.h>
29824
29825 int
29826 main ()
29827 {
29828 return *(signal (0, 0)) (0) == 1;
29829   ;
29830   return 0;
29831 }
29832 _ACEOF
29833 rm -f conftest.$ac_objext
29834 if { (ac_try="$ac_compile"
29835 case "(($ac_try" in
29836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837   *) ac_try_echo=$ac_try;;
29838 esac
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840   (eval "$ac_compile") 2>conftest.er1
29841   ac_status=$?
29842   grep -v '^ *+' conftest.er1 >conftest.err
29843   rm -f conftest.er1
29844   cat conftest.err >&5
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); } &&
29847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29848   { (case "(($ac_try" in
29849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850   *) ac_try_echo=$ac_try;;
29851 esac
29852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853   (eval "$ac_try") 2>&5
29854   ac_status=$?
29855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856   (exit $ac_status); }; } &&
29857          { ac_try='test -s conftest.$ac_objext'
29858   { (case "(($ac_try" in
29859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860   *) ac_try_echo=$ac_try;;
29861 esac
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863   (eval "$ac_try") 2>&5
29864   ac_status=$?
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); }; }; then
29867   ac_cv_type_signal=int
29868 else
29869   echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29871
29872         ac_cv_type_signal=void
29873 fi
29874
29875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29876 fi
29877 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29878 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29879
29880 cat >>confdefs.h <<_ACEOF
29881 #define RETSIGTYPE $ac_cv_type_signal
29882 _ACEOF
29883
29884
29885 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29886 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29887 if test "${ac_cv_struct_tm+set}" = set; then
29888   echo $ECHO_N "(cached) $ECHO_C" >&6
29889 else
29890   cat >conftest.$ac_ext <<_ACEOF
29891 /* confdefs.h.  */
29892 _ACEOF
29893 cat confdefs.h >>conftest.$ac_ext
29894 cat >>conftest.$ac_ext <<_ACEOF
29895 /* end confdefs.h.  */
29896 #include <sys/types.h>
29897 #include <time.h>
29898
29899 int
29900 main ()
29901 {
29902 struct tm *tp; tp->tm_sec;
29903   ;
29904   return 0;
29905 }
29906 _ACEOF
29907 rm -f conftest.$ac_objext
29908 if { (ac_try="$ac_compile"
29909 case "(($ac_try" in
29910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911   *) ac_try_echo=$ac_try;;
29912 esac
29913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914   (eval "$ac_compile") 2>conftest.er1
29915   ac_status=$?
29916   grep -v '^ *+' conftest.er1 >conftest.err
29917   rm -f conftest.er1
29918   cat conftest.err >&5
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); } &&
29921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29922   { (case "(($ac_try" in
29923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924   *) ac_try_echo=$ac_try;;
29925 esac
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927   (eval "$ac_try") 2>&5
29928   ac_status=$?
29929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930   (exit $ac_status); }; } &&
29931          { ac_try='test -s conftest.$ac_objext'
29932   { (case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_try") 2>&5
29938   ac_status=$?
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); }; }; then
29941   ac_cv_struct_tm=time.h
29942 else
29943   echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29945
29946         ac_cv_struct_tm=sys/time.h
29947 fi
29948
29949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29950 fi
29951 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29952 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29953 if test $ac_cv_struct_tm = sys/time.h; then
29954
29955 cat >>confdefs.h <<\_ACEOF
29956 #define TM_IN_SYS_TIME 1
29957 _ACEOF
29958
29959 fi
29960
29961 { echo "$as_me:$LINENO: checking for int64_t" >&5
29962 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29963 if test "${ac_cv_type_int64_t+set}" = set; then
29964   echo $ECHO_N "(cached) $ECHO_C" >&6
29965 else
29966   cat >conftest.$ac_ext <<_ACEOF
29967 /* confdefs.h.  */
29968 _ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h.  */
29972 $ac_includes_default
29973 typedef int64_t ac__type_new_;
29974 int
29975 main ()
29976 {
29977 if ((ac__type_new_ *) 0)
29978   return 0;
29979 if (sizeof (ac__type_new_))
29980   return 0;
29981   ;
29982   return 0;
29983 }
29984 _ACEOF
29985 rm -f conftest.$ac_objext
29986 if { (ac_try="$ac_compile"
29987 case "(($ac_try" in
29988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989   *) ac_try_echo=$ac_try;;
29990 esac
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992   (eval "$ac_compile") 2>conftest.er1
29993   ac_status=$?
29994   grep -v '^ *+' conftest.er1 >conftest.err
29995   rm -f conftest.er1
29996   cat conftest.err >&5
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); } &&
29999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30000   { (case "(($ac_try" in
30001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30002   *) ac_try_echo=$ac_try;;
30003 esac
30004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30005   (eval "$ac_try") 2>&5
30006   ac_status=$?
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); }; } &&
30009          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30016   ac_status=$?
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); }; }; then
30019   ac_cv_type_int64_t=yes
30020 else
30021   echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30023
30024         ac_cv_type_int64_t=no
30025 fi
30026
30027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30028 fi
30029 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30030 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30031 if test $ac_cv_type_int64_t = yes; then
30032
30033 cat >>confdefs.h <<_ACEOF
30034 #define HAVE_INT64_T 1
30035 _ACEOF
30036
30037
30038 else
30039   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30040 echo "$as_me: error: Type int64_t required but not found" >&2;}
30041    { (exit 1); exit 1; }; }
30042 fi
30043
30044 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30045 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30046 if test "${ac_cv_type_uint64_t+set}" = set; then
30047   echo $ECHO_N "(cached) $ECHO_C" >&6
30048 else
30049   cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h.  */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h.  */
30055 $ac_includes_default
30056 typedef uint64_t ac__type_new_;
30057 int
30058 main ()
30059 {
30060 if ((ac__type_new_ *) 0)
30061   return 0;
30062 if (sizeof (ac__type_new_))
30063   return 0;
30064   ;
30065   return 0;
30066 }
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075   (eval "$ac_compile") 2>conftest.er1
30076   ac_status=$?
30077   grep -v '^ *+' conftest.er1 >conftest.err
30078   rm -f conftest.er1
30079   cat conftest.err >&5
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); } &&
30082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30083   { (case "(($ac_try" in
30084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085   *) ac_try_echo=$ac_try;;
30086 esac
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088   (eval "$ac_try") 2>&5
30089   ac_status=$?
30090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091   (exit $ac_status); }; } &&
30092          { ac_try='test -s conftest.$ac_objext'
30093   { (case "(($ac_try" in
30094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095   *) ac_try_echo=$ac_try;;
30096 esac
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098   (eval "$ac_try") 2>&5
30099   ac_status=$?
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); }; }; then
30102   ac_cv_type_uint64_t=yes
30103 else
30104   echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30106
30107         ac_cv_type_uint64_t=no
30108 fi
30109
30110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30111 fi
30112 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30113 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30114 if test $ac_cv_type_uint64_t = yes; then
30115
30116 cat >>confdefs.h <<_ACEOF
30117 #define HAVE_UINT64_T 1
30118 _ACEOF
30119
30120
30121 else
30122   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30123 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30124 if test "${ac_cv_type_u_int64_t+set}" = set; then
30125   echo $ECHO_N "(cached) $ECHO_C" >&6
30126 else
30127   cat >conftest.$ac_ext <<_ACEOF
30128 /* confdefs.h.  */
30129 _ACEOF
30130 cat confdefs.h >>conftest.$ac_ext
30131 cat >>conftest.$ac_ext <<_ACEOF
30132 /* end confdefs.h.  */
30133 $ac_includes_default
30134 typedef u_int64_t ac__type_new_;
30135 int
30136 main ()
30137 {
30138 if ((ac__type_new_ *) 0)
30139   return 0;
30140 if (sizeof (ac__type_new_))
30141   return 0;
30142   ;
30143   return 0;
30144 }
30145 _ACEOF
30146 rm -f conftest.$ac_objext
30147 if { (ac_try="$ac_compile"
30148 case "(($ac_try" in
30149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150   *) ac_try_echo=$ac_try;;
30151 esac
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153   (eval "$ac_compile") 2>conftest.er1
30154   ac_status=$?
30155   grep -v '^ *+' conftest.er1 >conftest.err
30156   rm -f conftest.er1
30157   cat conftest.err >&5
30158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159   (exit $ac_status); } &&
30160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30161   { (case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166   (eval "$ac_try") 2>&5
30167   ac_status=$?
30168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169   (exit $ac_status); }; } &&
30170          { ac_try='test -s conftest.$ac_objext'
30171   { (case "(($ac_try" in
30172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173   *) ac_try_echo=$ac_try;;
30174 esac
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176   (eval "$ac_try") 2>&5
30177   ac_status=$?
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); }; }; then
30180   ac_cv_type_u_int64_t=yes
30181 else
30182   echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30184
30185         ac_cv_type_u_int64_t=no
30186 fi
30187
30188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30189 fi
30190 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30191 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30192 if test $ac_cv_type_u_int64_t = yes; then
30193
30194 cat >>confdefs.h <<_ACEOF
30195 #define HAVE_U_INT64_T 1
30196 _ACEOF
30197
30198
30199 else
30200   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30201 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30202    { (exit 1); exit 1; }; }
30203 fi
30204
30205 fi
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30217 do
30218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30222   echo $ECHO_N "(cached) $ECHO_C" >&6
30223 else
30224   cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30232 #define $ac_func innocuous_$ac_func
30233
30234 /* System header to define __stub macros and hopefully few prototypes,
30235     which can conflict with char $ac_func (); below.
30236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30237     <limits.h> exists even on freestanding compilers.  */
30238
30239 #ifdef __STDC__
30240 # include <limits.h>
30241 #else
30242 # include <assert.h>
30243 #endif
30244
30245 #undef $ac_func
30246
30247 /* Override any GCC internal prototype to avoid an error.
30248    Use char because int might match the return type of a GCC
30249    builtin and then its argument prototype would still apply.  */
30250 #ifdef __cplusplus
30251 extern "C"
30252 #endif
30253 char $ac_func ();
30254 /* The GNU C library defines this for functions which it implements
30255     to always fail with ENOSYS.  Some functions are actually named
30256     something starting with __ and the normal name is an alias.  */
30257 #if defined __stub_$ac_func || defined __stub___$ac_func
30258 choke me
30259 #endif
30260
30261 int
30262 main ()
30263 {
30264 return $ac_func ();
30265   ;
30266   return 0;
30267 }
30268 _ACEOF
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_link") 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } &&
30283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30284   { (case "(($ac_try" in
30285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286   *) ac_try_echo=$ac_try;;
30287 esac
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289   (eval "$ac_try") 2>&5
30290   ac_status=$?
30291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292   (exit $ac_status); }; } &&
30293          { ac_try='test -s conftest$ac_exeext'
30294   { (case "(($ac_try" in
30295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296   *) ac_try_echo=$ac_try;;
30297 esac
30298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299   (eval "$ac_try") 2>&5
30300   ac_status=$?
30301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302   (exit $ac_status); }; }; then
30303   eval "$as_ac_var=yes"
30304 else
30305   echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30307
30308         eval "$as_ac_var=no"
30309 fi
30310
30311 rm -f core conftest.err conftest.$ac_objext \
30312       conftest$ac_exeext conftest.$ac_ext
30313 fi
30314 ac_res=`eval echo '${'$as_ac_var'}'`
30315                { echo "$as_me:$LINENO: result: $ac_res" >&5
30316 echo "${ECHO_T}$ac_res" >&6; }
30317 if test `eval echo '${'$as_ac_var'}'` = yes; then
30318   cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30320 _ACEOF
30321
30322 fi
30323 done
30324
30325
30326
30327
30328
30329 for ac_func in powf fmodf strtof round
30330 do
30331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30335   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 else
30337   cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30345 #define $ac_func innocuous_$ac_func
30346
30347 /* System header to define __stub macros and hopefully few prototypes,
30348     which can conflict with char $ac_func (); below.
30349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30350     <limits.h> exists even on freestanding compilers.  */
30351
30352 #ifdef __STDC__
30353 # include <limits.h>
30354 #else
30355 # include <assert.h>
30356 #endif
30357
30358 #undef $ac_func
30359
30360 /* Override any GCC internal prototype to avoid an error.
30361    Use char because int might match the return type of a GCC
30362    builtin and then its argument prototype would still apply.  */
30363 #ifdef __cplusplus
30364 extern "C"
30365 #endif
30366 char $ac_func ();
30367 /* The GNU C library defines this for functions which it implements
30368     to always fail with ENOSYS.  Some functions are actually named
30369     something starting with __ and the normal name is an alias.  */
30370 #if defined __stub_$ac_func || defined __stub___$ac_func
30371 choke me
30372 #endif
30373
30374 int
30375 main ()
30376 {
30377 return $ac_func ();
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (ac_try="$ac_link"
30384 case "(($ac_try" in
30385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386   *) ac_try_echo=$ac_try;;
30387 esac
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389   (eval "$ac_link") 2>conftest.er1
30390   ac_status=$?
30391   grep -v '^ *+' conftest.er1 >conftest.err
30392   rm -f conftest.er1
30393   cat conftest.err >&5
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); } &&
30396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30397   { (case "(($ac_try" in
30398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399   *) ac_try_echo=$ac_try;;
30400 esac
30401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402   (eval "$ac_try") 2>&5
30403   ac_status=$?
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); }; } &&
30406          { ac_try='test -s conftest$ac_exeext'
30407   { (case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_try") 2>&5
30413   ac_status=$?
30414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415   (exit $ac_status); }; }; then
30416   eval "$as_ac_var=yes"
30417 else
30418   echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30420
30421         eval "$as_ac_var=no"
30422 fi
30423
30424 rm -f core conftest.err conftest.$ac_objext \
30425       conftest$ac_exeext conftest.$ac_ext
30426 fi
30427 ac_res=`eval echo '${'$as_ac_var'}'`
30428                { echo "$as_me:$LINENO: result: $ac_res" >&5
30429 echo "${ECHO_T}$ac_res" >&6; }
30430 if test `eval echo '${'$as_ac_var'}'` = yes; then
30431   cat >>confdefs.h <<_ACEOF
30432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30433 _ACEOF
30434
30435 fi
30436 done
30437
30438
30439
30440
30441
30442
30443 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30444 do
30445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30449   echo $ECHO_N "(cached) $ECHO_C" >&6
30450 else
30451   cat >conftest.$ac_ext <<_ACEOF
30452 /* confdefs.h.  */
30453 _ACEOF
30454 cat confdefs.h >>conftest.$ac_ext
30455 cat >>conftest.$ac_ext <<_ACEOF
30456 /* end confdefs.h.  */
30457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30459 #define $ac_func innocuous_$ac_func
30460
30461 /* System header to define __stub macros and hopefully few prototypes,
30462     which can conflict with char $ac_func (); below.
30463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30464     <limits.h> exists even on freestanding compilers.  */
30465
30466 #ifdef __STDC__
30467 # include <limits.h>
30468 #else
30469 # include <assert.h>
30470 #endif
30471
30472 #undef $ac_func
30473
30474 /* Override any GCC internal prototype to avoid an error.
30475    Use char because int might match the return type of a GCC
30476    builtin and then its argument prototype would still apply.  */
30477 #ifdef __cplusplus
30478 extern "C"
30479 #endif
30480 char $ac_func ();
30481 /* The GNU C library defines this for functions which it implements
30482     to always fail with ENOSYS.  Some functions are actually named
30483     something starting with __ and the normal name is an alias.  */
30484 #if defined __stub_$ac_func || defined __stub___$ac_func
30485 choke me
30486 #endif
30487
30488 int
30489 main ()
30490 {
30491 return $ac_func ();
30492   ;
30493   return 0;
30494 }
30495 _ACEOF
30496 rm -f conftest.$ac_objext conftest$ac_exeext
30497 if { (ac_try="$ac_link"
30498 case "(($ac_try" in
30499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500   *) ac_try_echo=$ac_try;;
30501 esac
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503   (eval "$ac_link") 2>conftest.er1
30504   ac_status=$?
30505   grep -v '^ *+' conftest.er1 >conftest.err
30506   rm -f conftest.er1
30507   cat conftest.err >&5
30508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509   (exit $ac_status); } &&
30510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30511   { (case "(($ac_try" in
30512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513   *) ac_try_echo=$ac_try;;
30514 esac
30515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516   (eval "$ac_try") 2>&5
30517   ac_status=$?
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); }; } &&
30520          { ac_try='test -s conftest$ac_exeext'
30521   { (case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_try") 2>&5
30527   ac_status=$?
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); }; }; then
30530   eval "$as_ac_var=yes"
30531 else
30532   echo "$as_me: failed program was:" >&5
30533 sed 's/^/| /' conftest.$ac_ext >&5
30534
30535         eval "$as_ac_var=no"
30536 fi
30537
30538 rm -f core conftest.err conftest.$ac_objext \
30539       conftest$ac_exeext conftest.$ac_ext
30540 fi
30541 ac_res=`eval echo '${'$as_ac_var'}'`
30542                { echo "$as_me:$LINENO: result: $ac_res" >&5
30543 echo "${ECHO_T}$ac_res" >&6; }
30544 if test `eval echo '${'$as_ac_var'}'` = yes; then
30545   cat >>confdefs.h <<_ACEOF
30546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30547 _ACEOF
30548
30549 fi
30550 done
30551
30552
30553
30554
30555 for ac_func in isatty mkdtemp mkstemp
30556 do
30557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30561   echo $ECHO_N "(cached) $ECHO_C" >&6
30562 else
30563   cat >conftest.$ac_ext <<_ACEOF
30564 /* confdefs.h.  */
30565 _ACEOF
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h.  */
30569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30571 #define $ac_func innocuous_$ac_func
30572
30573 /* System header to define __stub macros and hopefully few prototypes,
30574     which can conflict with char $ac_func (); below.
30575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30576     <limits.h> exists even on freestanding compilers.  */
30577
30578 #ifdef __STDC__
30579 # include <limits.h>
30580 #else
30581 # include <assert.h>
30582 #endif
30583
30584 #undef $ac_func
30585
30586 /* Override any GCC internal prototype to avoid an error.
30587    Use char because int might match the return type of a GCC
30588    builtin and then its argument prototype would still apply.  */
30589 #ifdef __cplusplus
30590 extern "C"
30591 #endif
30592 char $ac_func ();
30593 /* The GNU C library defines this for functions which it implements
30594     to always fail with ENOSYS.  Some functions are actually named
30595     something starting with __ and the normal name is an alias.  */
30596 #if defined __stub_$ac_func || defined __stub___$ac_func
30597 choke me
30598 #endif
30599
30600 int
30601 main ()
30602 {
30603 return $ac_func ();
30604   ;
30605   return 0;
30606 }
30607 _ACEOF
30608 rm -f conftest.$ac_objext conftest$ac_exeext
30609 if { (ac_try="$ac_link"
30610 case "(($ac_try" in
30611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612   *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615   (eval "$ac_link") 2>conftest.er1
30616   ac_status=$?
30617   grep -v '^ *+' conftest.er1 >conftest.err
30618   rm -f conftest.er1
30619   cat conftest.err >&5
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); } &&
30622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30623   { (case "(($ac_try" in
30624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625   *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628   (eval "$ac_try") 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); }; } &&
30632          { ac_try='test -s conftest$ac_exeext'
30633   { (case "(($ac_try" in
30634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635   *) ac_try_echo=$ac_try;;
30636 esac
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638   (eval "$ac_try") 2>&5
30639   ac_status=$?
30640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641   (exit $ac_status); }; }; then
30642   eval "$as_ac_var=yes"
30643 else
30644   echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30646
30647         eval "$as_ac_var=no"
30648 fi
30649
30650 rm -f core conftest.err conftest.$ac_objext \
30651       conftest$ac_exeext conftest.$ac_ext
30652 fi
30653 ac_res=`eval echo '${'$as_ac_var'}'`
30654                { echo "$as_me:$LINENO: result: $ac_res" >&5
30655 echo "${ECHO_T}$ac_res" >&6; }
30656 if test `eval echo '${'$as_ac_var'}'` = yes; then
30657   cat >>confdefs.h <<_ACEOF
30658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30659 _ACEOF
30660
30661 fi
30662 done
30663
30664
30665
30666
30667
30668
30669
30670
30671 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30672 do
30673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30677   echo $ECHO_N "(cached) $ECHO_C" >&6
30678 else
30679   cat >conftest.$ac_ext <<_ACEOF
30680 /* confdefs.h.  */
30681 _ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h.  */
30685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30687 #define $ac_func innocuous_$ac_func
30688
30689 /* System header to define __stub macros and hopefully few prototypes,
30690     which can conflict with char $ac_func (); below.
30691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30692     <limits.h> exists even on freestanding compilers.  */
30693
30694 #ifdef __STDC__
30695 # include <limits.h>
30696 #else
30697 # include <assert.h>
30698 #endif
30699
30700 #undef $ac_func
30701
30702 /* Override any GCC internal prototype to avoid an error.
30703    Use char because int might match the return type of a GCC
30704    builtin and then its argument prototype would still apply.  */
30705 #ifdef __cplusplus
30706 extern "C"
30707 #endif
30708 char $ac_func ();
30709 /* The GNU C library defines this for functions which it implements
30710     to always fail with ENOSYS.  Some functions are actually named
30711     something starting with __ and the normal name is an alias.  */
30712 #if defined __stub_$ac_func || defined __stub___$ac_func
30713 choke me
30714 #endif
30715
30716 int
30717 main ()
30718 {
30719 return $ac_func ();
30720   ;
30721   return 0;
30722 }
30723 _ACEOF
30724 rm -f conftest.$ac_objext conftest$ac_exeext
30725 if { (ac_try="$ac_link"
30726 case "(($ac_try" in
30727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728   *) ac_try_echo=$ac_try;;
30729 esac
30730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731   (eval "$ac_link") 2>conftest.er1
30732   ac_status=$?
30733   grep -v '^ *+' conftest.er1 >conftest.err
30734   rm -f conftest.er1
30735   cat conftest.err >&5
30736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737   (exit $ac_status); } &&
30738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30739   { (case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_try") 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); }; } &&
30748          { ac_try='test -s conftest$ac_exeext'
30749   { (case "(($ac_try" in
30750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751   *) ac_try_echo=$ac_try;;
30752 esac
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754   (eval "$ac_try") 2>&5
30755   ac_status=$?
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); }; }; then
30758   eval "$as_ac_var=yes"
30759 else
30760   echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30762
30763         eval "$as_ac_var=no"
30764 fi
30765
30766 rm -f core conftest.err conftest.$ac_objext \
30767       conftest$ac_exeext conftest.$ac_ext
30768 fi
30769 ac_res=`eval echo '${'$as_ac_var'}'`
30770                { echo "$as_me:$LINENO: result: $ac_res" >&5
30771 echo "${ECHO_T}$ac_res" >&6; }
30772 if test `eval echo '${'$as_ac_var'}'` = yes; then
30773   cat >>confdefs.h <<_ACEOF
30774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30775 _ACEOF
30776
30777 fi
30778 done
30779
30780
30781
30782
30783
30784 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30785 do
30786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30790   echo $ECHO_N "(cached) $ECHO_C" >&6
30791 else
30792   cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30800 #define $ac_func innocuous_$ac_func
30801
30802 /* System header to define __stub macros and hopefully few prototypes,
30803     which can conflict with char $ac_func (); below.
30804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30805     <limits.h> exists even on freestanding compilers.  */
30806
30807 #ifdef __STDC__
30808 # include <limits.h>
30809 #else
30810 # include <assert.h>
30811 #endif
30812
30813 #undef $ac_func
30814
30815 /* Override any GCC internal prototype to avoid an error.
30816    Use char because int might match the return type of a GCC
30817    builtin and then its argument prototype would still apply.  */
30818 #ifdef __cplusplus
30819 extern "C"
30820 #endif
30821 char $ac_func ();
30822 /* The GNU C library defines this for functions which it implements
30823     to always fail with ENOSYS.  Some functions are actually named
30824     something starting with __ and the normal name is an alias.  */
30825 #if defined __stub_$ac_func || defined __stub___$ac_func
30826 choke me
30827 #endif
30828
30829 int
30830 main ()
30831 {
30832 return $ac_func ();
30833   ;
30834   return 0;
30835 }
30836 _ACEOF
30837 rm -f conftest.$ac_objext conftest$ac_exeext
30838 if { (ac_try="$ac_link"
30839 case "(($ac_try" in
30840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841   *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844   (eval "$ac_link") 2>conftest.er1
30845   ac_status=$?
30846   grep -v '^ *+' conftest.er1 >conftest.err
30847   rm -f conftest.er1
30848   cat conftest.err >&5
30849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850   (exit $ac_status); } &&
30851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30852   { (case "(($ac_try" in
30853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854   *) ac_try_echo=$ac_try;;
30855 esac
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857   (eval "$ac_try") 2>&5
30858   ac_status=$?
30859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860   (exit $ac_status); }; } &&
30861          { ac_try='test -s conftest$ac_exeext'
30862   { (case "(($ac_try" in
30863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864   *) ac_try_echo=$ac_try;;
30865 esac
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867   (eval "$ac_try") 2>&5
30868   ac_status=$?
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); }; }; then
30871   eval "$as_ac_var=yes"
30872 else
30873   echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30875
30876         eval "$as_ac_var=no"
30877 fi
30878
30879 rm -f core conftest.err conftest.$ac_objext \
30880       conftest$ac_exeext conftest.$ac_ext
30881 fi
30882 ac_res=`eval echo '${'$as_ac_var'}'`
30883                { echo "$as_me:$LINENO: result: $ac_res" >&5
30884 echo "${ECHO_T}$ac_res" >&6; }
30885 if test `eval echo '${'$as_ac_var'}'` = yes; then
30886   cat >>confdefs.h <<_ACEOF
30887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30888 _ACEOF
30889
30890 fi
30891 done
30892
30893
30894
30895
30896
30897 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30898 do
30899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30903   echo $ECHO_N "(cached) $ECHO_C" >&6
30904 else
30905   cat >conftest.$ac_ext <<_ACEOF
30906 /* confdefs.h.  */
30907 _ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h.  */
30911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30913 #define $ac_func innocuous_$ac_func
30914
30915 /* System header to define __stub macros and hopefully few prototypes,
30916     which can conflict with char $ac_func (); below.
30917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918     <limits.h> exists even on freestanding compilers.  */
30919
30920 #ifdef __STDC__
30921 # include <limits.h>
30922 #else
30923 # include <assert.h>
30924 #endif
30925
30926 #undef $ac_func
30927
30928 /* Override any GCC internal prototype to avoid an error.
30929    Use char because int might match the return type of a GCC
30930    builtin and then its argument prototype would still apply.  */
30931 #ifdef __cplusplus
30932 extern "C"
30933 #endif
30934 char $ac_func ();
30935 /* The GNU C library defines this for functions which it implements
30936     to always fail with ENOSYS.  Some functions are actually named
30937     something starting with __ and the normal name is an alias.  */
30938 #if defined __stub_$ac_func || defined __stub___$ac_func
30939 choke me
30940 #endif
30941
30942 int
30943 main ()
30944 {
30945 return $ac_func ();
30946   ;
30947   return 0;
30948 }
30949 _ACEOF
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954   *) ac_try_echo=$ac_try;;
30955 esac
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957   (eval "$ac_link") 2>conftest.er1
30958   ac_status=$?
30959   grep -v '^ *+' conftest.er1 >conftest.err
30960   rm -f conftest.er1
30961   cat conftest.err >&5
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); } &&
30964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30965   { (case "(($ac_try" in
30966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967   *) ac_try_echo=$ac_try;;
30968 esac
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970   (eval "$ac_try") 2>&5
30971   ac_status=$?
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); }; } &&
30974          { ac_try='test -s conftest$ac_exeext'
30975   { (case "(($ac_try" in
30976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977   *) ac_try_echo=$ac_try;;
30978 esac
30979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30980   (eval "$ac_try") 2>&5
30981   ac_status=$?
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); }; }; then
30984   eval "$as_ac_var=yes"
30985 else
30986   echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30988
30989         eval "$as_ac_var=no"
30990 fi
30991
30992 rm -f core conftest.err conftest.$ac_objext \
30993       conftest$ac_exeext conftest.$ac_ext
30994 fi
30995 ac_res=`eval echo '${'$as_ac_var'}'`
30996                { echo "$as_me:$LINENO: result: $ac_res" >&5
30997 echo "${ECHO_T}$ac_res" >&6; }
30998 if test `eval echo '${'$as_ac_var'}'` = yes; then
30999   cat >>confdefs.h <<_ACEOF
31000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31001 _ACEOF
31002
31003 fi
31004 done
31005
31006 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31007 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31008 if test "${llvm_cv_c_printf_a+set}" = set; then
31009   echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011   ac_ext=c
31012 ac_cpp='$CPP $CPPFLAGS'
31013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31016
31017  if test "$cross_compiling" = yes; then
31018   llvmac_cv_c_printf_a=no
31019 else
31020   cat >conftest.$ac_ext <<_ACEOF
31021
31022   /* confdefs.h.  */
31023 _ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h.  */
31027
31028 #include <stdio.h>
31029 #include <stdlib.h>
31030
31031 int
31032 main ()
31033 {
31034
31035 volatile double A, B;
31036 char Buffer[100];
31037 A = 1;
31038 A /= 10.0;
31039 sprintf(Buffer, "%a", A);
31040 B = atof(Buffer);
31041 if (A != B)
31042   return (1);
31043 if (A != 0x1.999999999999ap-4)
31044   return (1);
31045 return (0);
31046   ;
31047   return 0;
31048 }
31049 _ACEOF
31050 rm -f conftest$ac_exeext
31051 if { (ac_try="$ac_link"
31052 case "(($ac_try" in
31053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054   *) ac_try_echo=$ac_try;;
31055 esac
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057   (eval "$ac_link") 2>&5
31058   ac_status=$?
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061   { (case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_try") 2>&5
31067   ac_status=$?
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); }; }; then
31070   llvm_cv_c_printf_a=yes
31071 else
31072   echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31075
31076 ( exit $ac_status )
31077 llvmac_cv_c_printf_a=no
31078 fi
31079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31080 fi
31081
31082
31083  ac_ext=c
31084 ac_cpp='$CPP $CPPFLAGS'
31085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31088
31089 fi
31090 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31091 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31092  if test "$llvm_cv_c_printf_a" = "yes"; then
31093
31094 cat >>confdefs.h <<\_ACEOF
31095 #define HAVE_PRINTF_A 1
31096 _ACEOF
31097
31098  fi
31099
31100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31101 # for constant arguments.  Useless!
31102 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31103 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31104 if test "${ac_cv_working_alloca_h+set}" = set; then
31105   echo $ECHO_N "(cached) $ECHO_C" >&6
31106 else
31107   cat >conftest.$ac_ext <<_ACEOF
31108 /* confdefs.h.  */
31109 _ACEOF
31110 cat confdefs.h >>conftest.$ac_ext
31111 cat >>conftest.$ac_ext <<_ACEOF
31112 /* end confdefs.h.  */
31113 #include <alloca.h>
31114 int
31115 main ()
31116 {
31117 char *p = (char *) alloca (2 * sizeof (int));
31118                           if (p) return 0;
31119   ;
31120   return 0;
31121 }
31122 _ACEOF
31123 rm -f conftest.$ac_objext conftest$ac_exeext
31124 if { (ac_try="$ac_link"
31125 case "(($ac_try" in
31126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127   *) ac_try_echo=$ac_try;;
31128 esac
31129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130   (eval "$ac_link") 2>conftest.er1
31131   ac_status=$?
31132   grep -v '^ *+' conftest.er1 >conftest.err
31133   rm -f conftest.er1
31134   cat conftest.err >&5
31135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136   (exit $ac_status); } &&
31137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31138   { (case "(($ac_try" in
31139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140   *) ac_try_echo=$ac_try;;
31141 esac
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143   (eval "$ac_try") 2>&5
31144   ac_status=$?
31145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146   (exit $ac_status); }; } &&
31147          { ac_try='test -s conftest$ac_exeext'
31148   { (case "(($ac_try" in
31149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150   *) ac_try_echo=$ac_try;;
31151 esac
31152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153   (eval "$ac_try") 2>&5
31154   ac_status=$?
31155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156   (exit $ac_status); }; }; then
31157   ac_cv_working_alloca_h=yes
31158 else
31159   echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31161
31162         ac_cv_working_alloca_h=no
31163 fi
31164
31165 rm -f core conftest.err conftest.$ac_objext \
31166       conftest$ac_exeext conftest.$ac_ext
31167 fi
31168 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31169 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31170 if test $ac_cv_working_alloca_h = yes; then
31171
31172 cat >>confdefs.h <<\_ACEOF
31173 #define HAVE_ALLOCA_H 1
31174 _ACEOF
31175
31176 fi
31177
31178 { echo "$as_me:$LINENO: checking for alloca" >&5
31179 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31180 if test "${ac_cv_func_alloca_works+set}" = set; then
31181   echo $ECHO_N "(cached) $ECHO_C" >&6
31182 else
31183   cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h.  */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h.  */
31189 #ifdef __GNUC__
31190 # define alloca __builtin_alloca
31191 #else
31192 # ifdef _MSC_VER
31193 #  include <malloc.h>
31194 #  define alloca _alloca
31195 # else
31196 #  if HAVE_ALLOCA_H
31197 #   include <alloca.h>
31198 #  else
31199 #   ifdef _AIX
31200  #pragma alloca
31201 #   else
31202 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31203 char *alloca ();
31204 #    endif
31205 #   endif
31206 #  endif
31207 # endif
31208 #endif
31209
31210 int
31211 main ()
31212 {
31213 char *p = (char *) alloca (1);
31214                                     if (p) return 0;
31215   ;
31216   return 0;
31217 }
31218 _ACEOF
31219 rm -f conftest.$ac_objext conftest$ac_exeext
31220 if { (ac_try="$ac_link"
31221 case "(($ac_try" in
31222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223   *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226   (eval "$ac_link") 2>conftest.er1
31227   ac_status=$?
31228   grep -v '^ *+' conftest.er1 >conftest.err
31229   rm -f conftest.er1
31230   cat conftest.err >&5
31231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232   (exit $ac_status); } &&
31233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31234   { (case "(($ac_try" in
31235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236   *) ac_try_echo=$ac_try;;
31237 esac
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239   (eval "$ac_try") 2>&5
31240   ac_status=$?
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); }; } &&
31243          { ac_try='test -s conftest$ac_exeext'
31244   { (case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_try") 2>&5
31250   ac_status=$?
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); }; }; then
31253   ac_cv_func_alloca_works=yes
31254 else
31255   echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31257
31258         ac_cv_func_alloca_works=no
31259 fi
31260
31261 rm -f core conftest.err conftest.$ac_objext \
31262       conftest$ac_exeext conftest.$ac_ext
31263 fi
31264 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31266
31267 if test $ac_cv_func_alloca_works = yes; then
31268
31269 cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_ALLOCA 1
31271 _ACEOF
31272
31273 else
31274   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31275 # that cause trouble.  Some versions do not even contain alloca or
31276 # contain a buggy version.  If you still want to use their alloca,
31277 # use ar to extract alloca.o from them instead of compiling alloca.c.
31278
31279 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31280
31281 cat >>confdefs.h <<\_ACEOF
31282 #define C_ALLOCA 1
31283 _ACEOF
31284
31285
31286 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31288 if test "${ac_cv_os_cray+set}" = set; then
31289   echo $ECHO_N "(cached) $ECHO_C" >&6
31290 else
31291   cat >conftest.$ac_ext <<_ACEOF
31292 /* confdefs.h.  */
31293 _ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h.  */
31297 #if defined CRAY && ! defined CRAY2
31298 webecray
31299 #else
31300 wenotbecray
31301 #endif
31302
31303 _ACEOF
31304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31305   $EGREP "webecray" >/dev/null 2>&1; then
31306   ac_cv_os_cray=yes
31307 else
31308   ac_cv_os_cray=no
31309 fi
31310 rm -f conftest*
31311
31312 fi
31313 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31314 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31315 if test $ac_cv_os_cray = yes; then
31316   for ac_func in _getb67 GETB67 getb67; do
31317     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31321   echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323   cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h.  */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h.  */
31329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31331 #define $ac_func innocuous_$ac_func
31332
31333 /* System header to define __stub macros and hopefully few prototypes,
31334     which can conflict with char $ac_func (); below.
31335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31336     <limits.h> exists even on freestanding compilers.  */
31337
31338 #ifdef __STDC__
31339 # include <limits.h>
31340 #else
31341 # include <assert.h>
31342 #endif
31343
31344 #undef $ac_func
31345
31346 /* Override any GCC internal prototype to avoid an error.
31347    Use char because int might match the return type of a GCC
31348    builtin and then its argument prototype would still apply.  */
31349 #ifdef __cplusplus
31350 extern "C"
31351 #endif
31352 char $ac_func ();
31353 /* The GNU C library defines this for functions which it implements
31354     to always fail with ENOSYS.  Some functions are actually named
31355     something starting with __ and the normal name is an alias.  */
31356 #if defined __stub_$ac_func || defined __stub___$ac_func
31357 choke me
31358 #endif
31359
31360 int
31361 main ()
31362 {
31363 return $ac_func ();
31364   ;
31365   return 0;
31366 }
31367 _ACEOF
31368 rm -f conftest.$ac_objext conftest$ac_exeext
31369 if { (ac_try="$ac_link"
31370 case "(($ac_try" in
31371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372   *) ac_try_echo=$ac_try;;
31373 esac
31374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375   (eval "$ac_link") 2>conftest.er1
31376   ac_status=$?
31377   grep -v '^ *+' conftest.er1 >conftest.err
31378   rm -f conftest.er1
31379   cat conftest.err >&5
31380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381   (exit $ac_status); } &&
31382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31383   { (case "(($ac_try" in
31384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385   *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388   (eval "$ac_try") 2>&5
31389   ac_status=$?
31390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391   (exit $ac_status); }; } &&
31392          { ac_try='test -s conftest$ac_exeext'
31393   { (case "(($ac_try" in
31394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395   *) ac_try_echo=$ac_try;;
31396 esac
31397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31398   (eval "$ac_try") 2>&5
31399   ac_status=$?
31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); }; }; then
31402   eval "$as_ac_var=yes"
31403 else
31404   echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31406
31407         eval "$as_ac_var=no"
31408 fi
31409
31410 rm -f core conftest.err conftest.$ac_objext \
31411       conftest$ac_exeext conftest.$ac_ext
31412 fi
31413 ac_res=`eval echo '${'$as_ac_var'}'`
31414                { echo "$as_me:$LINENO: result: $ac_res" >&5
31415 echo "${ECHO_T}$ac_res" >&6; }
31416 if test `eval echo '${'$as_ac_var'}'` = yes; then
31417
31418 cat >>confdefs.h <<_ACEOF
31419 #define CRAY_STACKSEG_END $ac_func
31420 _ACEOF
31421
31422     break
31423 fi
31424
31425   done
31426 fi
31427
31428 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31429 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31430 if test "${ac_cv_c_stack_direction+set}" = set; then
31431   echo $ECHO_N "(cached) $ECHO_C" >&6
31432 else
31433   if test "$cross_compiling" = yes; then
31434   ac_cv_c_stack_direction=0
31435 else
31436   cat >conftest.$ac_ext <<_ACEOF
31437 /* confdefs.h.  */
31438 _ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h.  */
31442 $ac_includes_default
31443 int
31444 find_stack_direction ()
31445 {
31446   static char *addr = 0;
31447   auto char dummy;
31448   if (addr == 0)
31449     {
31450       addr = &dummy;
31451       return find_stack_direction ();
31452     }
31453   else
31454     return (&dummy > addr) ? 1 : -1;
31455 }
31456
31457 int
31458 main ()
31459 {
31460   return find_stack_direction () < 0;
31461 }
31462 _ACEOF
31463 rm -f conftest$ac_exeext
31464 if { (ac_try="$ac_link"
31465 case "(($ac_try" in
31466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31467   *) ac_try_echo=$ac_try;;
31468 esac
31469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31470   (eval "$ac_link") 2>&5
31471   ac_status=$?
31472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31474   { (case "(($ac_try" in
31475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476   *) ac_try_echo=$ac_try;;
31477 esac
31478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479   (eval "$ac_try") 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); }; }; then
31483   ac_cv_c_stack_direction=1
31484 else
31485   echo "$as_me: program exited with status $ac_status" >&5
31486 echo "$as_me: failed program was:" >&5
31487 sed 's/^/| /' conftest.$ac_ext >&5
31488
31489 ( exit $ac_status )
31490 ac_cv_c_stack_direction=-1
31491 fi
31492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31493 fi
31494
31495
31496 fi
31497 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31498 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31499
31500 cat >>confdefs.h <<_ACEOF
31501 #define STACK_DIRECTION $ac_cv_c_stack_direction
31502 _ACEOF
31503
31504
31505 fi
31506
31507
31508 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31509 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31510 if test "${ac_cv_func_rand48+set}" = set; then
31511   echo $ECHO_N "(cached) $ECHO_C" >&6
31512 else
31513   ac_ext=cpp
31514 ac_cpp='$CXXCPP $CPPFLAGS'
31515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31518
31519    cat >conftest.$ac_ext <<_ACEOF
31520 /* confdefs.h.  */
31521 _ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h.  */
31525 #include <stdlib.h>
31526 int
31527 main ()
31528 {
31529 srand48(0);lrand48();drand48();
31530   ;
31531   return 0;
31532 }
31533 _ACEOF
31534 rm -f conftest.$ac_objext
31535 if { (ac_try="$ac_compile"
31536 case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_compile") 2>conftest.er1
31542   ac_status=$?
31543   grep -v '^ *+' conftest.er1 >conftest.err
31544   rm -f conftest.er1
31545   cat conftest.err >&5
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); } &&
31548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549   { (case "(($ac_try" in
31550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551   *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554   (eval "$ac_try") 2>&5
31555   ac_status=$?
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); }; } &&
31558          { ac_try='test -s conftest.$ac_objext'
31559   { (case "(($ac_try" in
31560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561   *) ac_try_echo=$ac_try;;
31562 esac
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564   (eval "$ac_try") 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; }; then
31568   ac_cv_func_rand48=yes
31569 else
31570   echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573         ac_cv_func_rand48=no
31574 fi
31575
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577   ac_ext=c
31578 ac_cpp='$CPP $CPPFLAGS'
31579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31582
31583 fi
31584 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31585 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31586
31587 if test "$ac_cv_func_rand48" = "yes" ; then
31588
31589 cat >>confdefs.h <<\_ACEOF
31590 #define HAVE_RAND48 1
31591 _ACEOF
31592
31593 fi
31594
31595
31596 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31597 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31598 if test "${ac_cv_cxx_namespaces+set}" = set; then
31599   echo $ECHO_N "(cached) $ECHO_C" >&6
31600 else
31601   ac_ext=cpp
31602 ac_cpp='$CXXCPP $CPPFLAGS'
31603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31606
31607  cat >conftest.$ac_ext <<_ACEOF
31608 /* confdefs.h.  */
31609 _ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h.  */
31613 namespace Outer { namespace Inner { int i = 0; }}
31614 int
31615 main ()
31616 {
31617 using namespace Outer::Inner; return i;
31618   ;
31619   return 0;
31620 }
31621 _ACEOF
31622 rm -f conftest.$ac_objext
31623 if { (ac_try="$ac_compile"
31624 case "(($ac_try" in
31625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626   *) ac_try_echo=$ac_try;;
31627 esac
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629   (eval "$ac_compile") 2>conftest.er1
31630   ac_status=$?
31631   grep -v '^ *+' conftest.er1 >conftest.err
31632   rm -f conftest.er1
31633   cat conftest.err >&5
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); } &&
31636          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31637   { (case "(($ac_try" in
31638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639   *) ac_try_echo=$ac_try;;
31640 esac
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642   (eval "$ac_try") 2>&5
31643   ac_status=$?
31644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645   (exit $ac_status); }; } &&
31646          { ac_try='test -s conftest.$ac_objext'
31647   { (case "(($ac_try" in
31648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649   *) ac_try_echo=$ac_try;;
31650 esac
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652   (eval "$ac_try") 2>&5
31653   ac_status=$?
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); }; }; then
31656   ac_cv_cxx_namespaces=yes
31657 else
31658   echo "$as_me: failed program was:" >&5
31659 sed 's/^/| /' conftest.$ac_ext >&5
31660
31661         ac_cv_cxx_namespaces=no
31662 fi
31663
31664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31665  ac_ext=c
31666 ac_cpp='$CPP $CPPFLAGS'
31667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31670
31671
31672 fi
31673 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31674 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31675 if test "$ac_cv_cxx_namespaces" = yes; then
31676
31677 cat >>confdefs.h <<\_ACEOF
31678 #define HAVE_NAMESPACES
31679 _ACEOF
31680
31681 fi
31682
31683 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31684 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31685 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31686   echo $ECHO_N "(cached) $ECHO_C" >&6
31687 else
31688
31689   ac_ext=cpp
31690 ac_cpp='$CXXCPP $CPPFLAGS'
31691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31694
31695   cat >conftest.$ac_ext <<_ACEOF
31696 /* confdefs.h.  */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h.  */
31701 #include <ext/hash_map>
31702 #ifdef HAVE_NAMESPACES
31703 using namespace std;
31704 #endif
31705 int
31706 main ()
31707 {
31708 hash_map<int, int> t;
31709   ;
31710   return 0;
31711 }
31712 _ACEOF
31713 rm -f conftest.$ac_objext
31714 if { (ac_try="$ac_compile"
31715 case "(($ac_try" in
31716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717   *) ac_try_echo=$ac_try;;
31718 esac
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720   (eval "$ac_compile") 2>conftest.er1
31721   ac_status=$?
31722   grep -v '^ *+' conftest.er1 >conftest.err
31723   rm -f conftest.er1
31724   cat conftest.err >&5
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); } &&
31727          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31728   { (case "(($ac_try" in
31729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730   *) ac_try_echo=$ac_try;;
31731 esac
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733   (eval "$ac_try") 2>&5
31734   ac_status=$?
31735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736   (exit $ac_status); }; } &&
31737          { ac_try='test -s conftest.$ac_objext'
31738   { (case "(($ac_try" in
31739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740   *) ac_try_echo=$ac_try;;
31741 esac
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743   (eval "$ac_try") 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; }; then
31747   ac_cv_cxx_have_std_ext_hash_map=yes
31748 else
31749   echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31751
31752         ac_cv_cxx_have_std_ext_hash_map=no
31753 fi
31754
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756   ac_ext=c
31757 ac_cpp='$CPP $CPPFLAGS'
31758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31761
31762 fi
31763 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31764 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31765  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31766  then
31767
31768 cat >>confdefs.h <<\_ACEOF
31769 #define HAVE_STD_EXT_HASH_MAP 1
31770 _ACEOF
31771
31772  else
31773
31774 cat >>confdefs.h <<\_ACEOF
31775 #define HAVE_STD_EXT_HASH_MAP 0
31776 _ACEOF
31777
31778  fi
31779
31780  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31781 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31782 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31783   echo $ECHO_N "(cached) $ECHO_C" >&6
31784 else
31785
31786   ac_ext=cpp
31787 ac_cpp='$CXXCPP $CPPFLAGS'
31788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31791
31792   cat >conftest.$ac_ext <<_ACEOF
31793 /* confdefs.h.  */
31794 _ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h.  */
31798 #include <ext/hash_map>
31799 #ifdef HAVE_NAMESPACES
31800 using namespace __gnu_cxx;
31801 #endif
31802 int
31803 main ()
31804 {
31805 hash_map<int,int> t;
31806   ;
31807   return 0;
31808 }
31809 _ACEOF
31810 rm -f conftest.$ac_objext
31811 if { (ac_try="$ac_compile"
31812 case "(($ac_try" in
31813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814   *) ac_try_echo=$ac_try;;
31815 esac
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817   (eval "$ac_compile") 2>conftest.er1
31818   ac_status=$?
31819   grep -v '^ *+' conftest.er1 >conftest.err
31820   rm -f conftest.er1
31821   cat conftest.err >&5
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); } &&
31824          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31825   { (case "(($ac_try" in
31826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827   *) ac_try_echo=$ac_try;;
31828 esac
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830   (eval "$ac_try") 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; } &&
31834          { ac_try='test -s conftest.$ac_objext'
31835   { (case "(($ac_try" in
31836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837   *) ac_try_echo=$ac_try;;
31838 esac
31839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840   (eval "$ac_try") 2>&5
31841   ac_status=$?
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); }; }; then
31844   ac_cv_cxx_have_gnu_ext_hash_map=yes
31845 else
31846   echo "$as_me: failed program was:" >&5
31847 sed 's/^/| /' conftest.$ac_ext >&5
31848
31849         ac_cv_cxx_have_gnu_ext_hash_map=no
31850 fi
31851
31852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31853   ac_ext=c
31854 ac_cpp='$CPP $CPPFLAGS'
31855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31858
31859 fi
31860 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31861 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31862  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31863  then
31864
31865 cat >>confdefs.h <<\_ACEOF
31866 #define HAVE_GNU_EXT_HASH_MAP 1
31867 _ACEOF
31868
31869  else
31870
31871 cat >>confdefs.h <<\_ACEOF
31872 #define HAVE_GNU_EXT_HASH_MAP 0
31873 _ACEOF
31874
31875  fi
31876
31877  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31878 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31879 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31880   echo $ECHO_N "(cached) $ECHO_C" >&6
31881 else
31882
31883   ac_ext=cpp
31884 ac_cpp='$CXXCPP $CPPFLAGS'
31885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31888
31889   cat >conftest.$ac_ext <<_ACEOF
31890 /* confdefs.h.  */
31891 _ACEOF
31892 cat confdefs.h >>conftest.$ac_ext
31893 cat >>conftest.$ac_ext <<_ACEOF
31894 /* end confdefs.h.  */
31895 #include <hash_map>
31896 int
31897 main ()
31898 {
31899 hash_map<int,int> t;
31900   ;
31901   return 0;
31902 }
31903 _ACEOF
31904 rm -f conftest.$ac_objext
31905 if { (ac_try="$ac_compile"
31906 case "(($ac_try" in
31907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908   *) ac_try_echo=$ac_try;;
31909 esac
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911   (eval "$ac_compile") 2>conftest.er1
31912   ac_status=$?
31913   grep -v '^ *+' conftest.er1 >conftest.err
31914   rm -f conftest.er1
31915   cat conftest.err >&5
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); } &&
31918          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31919   { (case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_try") 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); }; } &&
31928          { ac_try='test -s conftest.$ac_objext'
31929   { (case "(($ac_try" in
31930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31931   *) ac_try_echo=$ac_try;;
31932 esac
31933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31934   (eval "$ac_try") 2>&5
31935   ac_status=$?
31936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937   (exit $ac_status); }; }; then
31938   ac_cv_cxx_have_global_hash_map=yes
31939 else
31940   echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31942
31943         ac_cv_cxx_have_global_hash_map=no
31944 fi
31945
31946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31947   ac_ext=c
31948 ac_cpp='$CPP $CPPFLAGS'
31949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31952
31953 fi
31954 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31955 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31956  if test "$ac_cv_cxx_have_global_hash_map" = yes
31957  then
31958
31959 cat >>confdefs.h <<\_ACEOF
31960 #define HAVE_GLOBAL_HASH_MAP 1
31961 _ACEOF
31962
31963  else
31964
31965 cat >>confdefs.h <<\_ACEOF
31966 #define HAVE_GLOBAL_HASH_MAP 0
31967 _ACEOF
31968
31969  fi
31970
31971 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31972 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31973 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31974   echo $ECHO_N "(cached) $ECHO_C" >&6
31975 else
31976
31977   ac_ext=cpp
31978 ac_cpp='$CXXCPP $CPPFLAGS'
31979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31982
31983   cat >conftest.$ac_ext <<_ACEOF
31984 /* confdefs.h.  */
31985 _ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h.  */
31989 #include <ext/hash_set>
31990 #ifdef HAVE_NAMESPACES
31991 using namespace std;
31992 #endif
31993 int
31994 main ()
31995 {
31996 hash_set<int> t;
31997   ;
31998   return 0;
31999 }
32000 _ACEOF
32001 rm -f conftest.$ac_objext
32002 if { (ac_try="$ac_compile"
32003 case "(($ac_try" in
32004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005   *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008   (eval "$ac_compile") 2>conftest.er1
32009   ac_status=$?
32010   grep -v '^ *+' conftest.er1 >conftest.err
32011   rm -f conftest.er1
32012   cat conftest.err >&5
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); } &&
32015          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32016   { (case "(($ac_try" in
32017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018   *) ac_try_echo=$ac_try;;
32019 esac
32020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021   (eval "$ac_try") 2>&5
32022   ac_status=$?
32023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024   (exit $ac_status); }; } &&
32025          { ac_try='test -s conftest.$ac_objext'
32026   { (case "(($ac_try" in
32027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32028   *) ac_try_echo=$ac_try;;
32029 esac
32030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32031   (eval "$ac_try") 2>&5
32032   ac_status=$?
32033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034   (exit $ac_status); }; }; then
32035   ac_cv_cxx_have_std_ext_hash_set=yes
32036 else
32037   echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32039
32040         ac_cv_cxx_have_std_ext_hash_set=no
32041 fi
32042
32043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32044   ac_ext=c
32045 ac_cpp='$CPP $CPPFLAGS'
32046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32049
32050 fi
32051 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32052 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32053  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32054  then
32055
32056 cat >>confdefs.h <<\_ACEOF
32057 #define HAVE_STD_EXT_HASH_SET 1
32058 _ACEOF
32059
32060  else
32061
32062 cat >>confdefs.h <<\_ACEOF
32063 #define HAVE_STD_EXT_HASH_SET 0
32064 _ACEOF
32065
32066  fi
32067
32068  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32069 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32070 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32071   echo $ECHO_N "(cached) $ECHO_C" >&6
32072 else
32073
32074   ac_ext=cpp
32075 ac_cpp='$CXXCPP $CPPFLAGS'
32076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32079
32080   cat >conftest.$ac_ext <<_ACEOF
32081 /* confdefs.h.  */
32082 _ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h.  */
32086 #include <ext/hash_set>
32087 #ifdef HAVE_NAMESPACES
32088 using namespace __gnu_cxx;
32089 #endif
32090 int
32091 main ()
32092 {
32093 hash_set<int> t;
32094   ;
32095   return 0;
32096 }
32097 _ACEOF
32098 rm -f conftest.$ac_objext
32099 if { (ac_try="$ac_compile"
32100 case "(($ac_try" in
32101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102   *) ac_try_echo=$ac_try;;
32103 esac
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105   (eval "$ac_compile") 2>conftest.er1
32106   ac_status=$?
32107   grep -v '^ *+' conftest.er1 >conftest.err
32108   rm -f conftest.er1
32109   cat conftest.err >&5
32110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111   (exit $ac_status); } &&
32112          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32119   ac_status=$?
32120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121   (exit $ac_status); }; } &&
32122          { ac_try='test -s conftest.$ac_objext'
32123   { (case "(($ac_try" in
32124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125   *) ac_try_echo=$ac_try;;
32126 esac
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128   (eval "$ac_try") 2>&5
32129   ac_status=$?
32130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131   (exit $ac_status); }; }; then
32132   ac_cv_cxx_have_gnu_ext_hash_set=yes
32133 else
32134   echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137         ac_cv_cxx_have_gnu_ext_hash_set=no
32138 fi
32139
32140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32141   ac_ext=c
32142 ac_cpp='$CPP $CPPFLAGS'
32143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32146
32147 fi
32148 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32149 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32150  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32151  then
32152
32153 cat >>confdefs.h <<\_ACEOF
32154 #define HAVE_GNU_EXT_HASH_SET 1
32155 _ACEOF
32156
32157  else
32158
32159 cat >>confdefs.h <<\_ACEOF
32160 #define HAVE_GNU_EXT_HASH_SET 0
32161 _ACEOF
32162
32163  fi
32164
32165  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32166 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32167 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32168   echo $ECHO_N "(cached) $ECHO_C" >&6
32169 else
32170
32171   ac_ext=cpp
32172 ac_cpp='$CXXCPP $CPPFLAGS'
32173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32176
32177   cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183 #include <hash_set>
32184 int
32185 main ()
32186 {
32187 hash_set<int> t; return 0;
32188   ;
32189   return 0;
32190 }
32191 _ACEOF
32192 rm -f conftest.$ac_objext
32193 if { (ac_try="$ac_compile"
32194 case "(($ac_try" in
32195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196   *) ac_try_echo=$ac_try;;
32197 esac
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199   (eval "$ac_compile") 2>conftest.er1
32200   ac_status=$?
32201   grep -v '^ *+' conftest.er1 >conftest.err
32202   rm -f conftest.er1
32203   cat conftest.err >&5
32204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205   (exit $ac_status); } &&
32206          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32207   { (case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212   (eval "$ac_try") 2>&5
32213   ac_status=$?
32214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215   (exit $ac_status); }; } &&
32216          { ac_try='test -s conftest.$ac_objext'
32217   { (case "(($ac_try" in
32218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219   *) ac_try_echo=$ac_try;;
32220 esac
32221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222   (eval "$ac_try") 2>&5
32223   ac_status=$?
32224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225   (exit $ac_status); }; }; then
32226   ac_cv_cxx_have_global_hash_set=yes
32227 else
32228   echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32230
32231         ac_cv_cxx_have_global_hash_set=no
32232 fi
32233
32234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32235   ac_ext=c
32236 ac_cpp='$CPP $CPPFLAGS'
32237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32240
32241 fi
32242 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32243 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32244  if test "$ac_cv_cxx_have_global_hash_set" = yes
32245  then
32246
32247 cat >>confdefs.h <<\_ACEOF
32248 #define HAVE_GLOBAL_HASH_SET 1
32249 _ACEOF
32250
32251  else
32252
32253 cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_GLOBAL_HASH_SET 0
32255 _ACEOF
32256
32257  fi
32258
32259 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32260 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32261 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32262   echo $ECHO_N "(cached) $ECHO_C" >&6
32263 else
32264
32265   ac_ext=cpp
32266 ac_cpp='$CXXCPP $CPPFLAGS'
32267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32270
32271   cat >conftest.$ac_ext <<_ACEOF
32272 /* confdefs.h.  */
32273 _ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h.  */
32277 #include <iterator>
32278 #ifdef HAVE_NAMESPACES
32279 using namespace std;
32280 #endif
32281 int
32282 main ()
32283 {
32284 iterator<int,int,int> t; return 0;
32285   ;
32286   return 0;
32287 }
32288 _ACEOF
32289 rm -f conftest.$ac_objext
32290 if { (ac_try="$ac_compile"
32291 case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_compile") 2>conftest.er1
32297   ac_status=$?
32298   grep -v '^ *+' conftest.er1 >conftest.err
32299   rm -f conftest.er1
32300   cat conftest.err >&5
32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302   (exit $ac_status); } &&
32303          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32304   { (case "(($ac_try" in
32305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306   *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309   (eval "$ac_try") 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; } &&
32313          { ac_try='test -s conftest.$ac_objext'
32314   { (case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_try") 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; }; then
32323   ac_cv_cxx_have_std_iterator=yes
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32327
32328         ac_cv_cxx_have_std_iterator=no
32329 fi
32330
32331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32332   ac_ext=c
32333 ac_cpp='$CPP $CPPFLAGS'
32334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32337
32338
32339 fi
32340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32341 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32342 if test "$ac_cv_cxx_have_std_iterator" = yes
32343 then
32344
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_STD_ITERATOR 1
32347 _ACEOF
32348
32349 else
32350
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_STD_ITERATOR 0
32353 _ACEOF
32354
32355 fi
32356
32357 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32358 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32359 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32360   echo $ECHO_N "(cached) $ECHO_C" >&6
32361 else
32362
32363   ac_ext=cpp
32364 ac_cpp='$CXXCPP $CPPFLAGS'
32365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32368
32369   cat >conftest.$ac_ext <<_ACEOF
32370 /* confdefs.h.  */
32371 _ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h.  */
32375 #include <iterator>
32376 #ifdef HAVE_NAMESPACES
32377 using namespace std;
32378 #endif
32379 int
32380 main ()
32381 {
32382 bidirectional_iterator<int,int> t; return 0;
32383   ;
32384   return 0;
32385 }
32386 _ACEOF
32387 rm -f conftest.$ac_objext
32388 if { (ac_try="$ac_compile"
32389 case "(($ac_try" in
32390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391   *) ac_try_echo=$ac_try;;
32392 esac
32393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394   (eval "$ac_compile") 2>conftest.er1
32395   ac_status=$?
32396   grep -v '^ *+' conftest.er1 >conftest.err
32397   rm -f conftest.er1
32398   cat conftest.err >&5
32399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400   (exit $ac_status); } &&
32401          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32402   { (case "(($ac_try" in
32403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404   *) ac_try_echo=$ac_try;;
32405 esac
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407   (eval "$ac_try") 2>&5
32408   ac_status=$?
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); }; } &&
32411          { ac_try='test -s conftest.$ac_objext'
32412   { (case "(($ac_try" in
32413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414   *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417   (eval "$ac_try") 2>&5
32418   ac_status=$?
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); }; }; then
32421   ac_cv_cxx_have_bi_iterator=yes
32422 else
32423   echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426         ac_cv_cxx_have_bi_iterator=no
32427 fi
32428
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430   ac_ext=c
32431 ac_cpp='$CPP $CPPFLAGS'
32432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32435
32436
32437 fi
32438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32439 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32440 if test "$ac_cv_cxx_have_bi_iterator" = yes
32441 then
32442
32443 cat >>confdefs.h <<\_ACEOF
32444 #define HAVE_BI_ITERATOR 1
32445 _ACEOF
32446
32447 else
32448
32449 cat >>confdefs.h <<\_ACEOF
32450 #define HAVE_BI_ITERATOR 0
32451 _ACEOF
32452
32453 fi
32454
32455 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32456 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32457 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32458   echo $ECHO_N "(cached) $ECHO_C" >&6
32459 else
32460
32461   ac_ext=cpp
32462 ac_cpp='$CXXCPP $CPPFLAGS'
32463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32466
32467   cat >conftest.$ac_ext <<_ACEOF
32468 /* confdefs.h.  */
32469 _ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h.  */
32473 #include <iterator>
32474 #ifdef HAVE_NAMESPACES
32475 using namespace std;
32476 #endif
32477 int
32478 main ()
32479 {
32480 forward_iterator<int,int> t; return 0;
32481   ;
32482   return 0;
32483 }
32484 _ACEOF
32485 rm -f conftest.$ac_objext
32486 if { (ac_try="$ac_compile"
32487 case "(($ac_try" in
32488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489   *) ac_try_echo=$ac_try;;
32490 esac
32491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492   (eval "$ac_compile") 2>conftest.er1
32493   ac_status=$?
32494   grep -v '^ *+' conftest.er1 >conftest.err
32495   rm -f conftest.er1
32496   cat conftest.err >&5
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); } &&
32499          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32500   { (case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_try") 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); }; } &&
32509          { ac_try='test -s conftest.$ac_objext'
32510   { (case "(($ac_try" in
32511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512   *) ac_try_echo=$ac_try;;
32513 esac
32514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515   (eval "$ac_try") 2>&5
32516   ac_status=$?
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); }; }; then
32519   ac_cv_cxx_have_fwd_iterator=yes
32520 else
32521   echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32523
32524         ac_cv_cxx_have_fwd_iterator=no
32525 fi
32526
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528   ac_ext=c
32529 ac_cpp='$CPP $CPPFLAGS'
32530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32533
32534
32535 fi
32536 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32537 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32538 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32539 then
32540
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_FWD_ITERATOR 1
32543 _ACEOF
32544
32545 else
32546
32547 cat >>confdefs.h <<\_ACEOF
32548 #define HAVE_FWD_ITERATOR 0
32549 _ACEOF
32550
32551 fi
32552
32553
32554 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32555 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32556 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32557   echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559   ac_ext=cpp
32560 ac_cpp='$CXXCPP $CPPFLAGS'
32561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32564
32565    cat >conftest.$ac_ext <<_ACEOF
32566 /* confdefs.h.  */
32567 _ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h.  */
32571 #include <math.h>
32572 int
32573 main ()
32574 {
32575 float f; isnan(f);
32576   ;
32577   return 0;
32578 }
32579 _ACEOF
32580 rm -f conftest.$ac_objext
32581 if { (ac_try="$ac_compile"
32582 case "(($ac_try" in
32583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584   *) ac_try_echo=$ac_try;;
32585 esac
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587   (eval "$ac_compile") 2>conftest.er1
32588   ac_status=$?
32589   grep -v '^ *+' conftest.er1 >conftest.err
32590   rm -f conftest.er1
32591   cat conftest.err >&5
32592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); } &&
32594          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32595   { (case "(($ac_try" in
32596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597   *) ac_try_echo=$ac_try;;
32598 esac
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600   (eval "$ac_try") 2>&5
32601   ac_status=$?
32602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603   (exit $ac_status); }; } &&
32604          { ac_try='test -s conftest.$ac_objext'
32605   { (case "(($ac_try" in
32606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607   *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610   (eval "$ac_try") 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; }; then
32614   ac_cv_func_isnan_in_math_h=yes
32615 else
32616   echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32618
32619         ac_cv_func_isnan_in_math_h=no
32620 fi
32621
32622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32623   ac_ext=c
32624 ac_cpp='$CPP $CPPFLAGS'
32625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32628
32629 fi
32630 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32631 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32632
32633
32634 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32635
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_ISNAN_IN_MATH_H 1
32638 _ACEOF
32639
32640 fi
32641
32642 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32643 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32644 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32645   echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647   ac_ext=cpp
32648 ac_cpp='$CXXCPP $CPPFLAGS'
32649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32652
32653    cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 #include <cmath>
32660 int
32661 main ()
32662 {
32663 float f; isnan(f);
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest.$ac_objext
32669 if { (ac_try="$ac_compile"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_compile") 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } &&
32682          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32683   { (case "(($ac_try" in
32684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685   *) ac_try_echo=$ac_try;;
32686 esac
32687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688   (eval "$ac_try") 2>&5
32689   ac_status=$?
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); }; } &&
32692          { ac_try='test -s conftest.$ac_objext'
32693   { (case "(($ac_try" in
32694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695   *) ac_try_echo=$ac_try;;
32696 esac
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698   (eval "$ac_try") 2>&5
32699   ac_status=$?
32700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701   (exit $ac_status); }; }; then
32702   ac_cv_func_isnan_in_cmath=yes
32703 else
32704   echo "$as_me: failed program was:" >&5
32705 sed 's/^/| /' conftest.$ac_ext >&5
32706
32707         ac_cv_func_isnan_in_cmath=no
32708 fi
32709
32710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32711   ac_ext=c
32712 ac_cpp='$CPP $CPPFLAGS'
32713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32716
32717 fi
32718 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32719 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32720
32721 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32722
32723 cat >>confdefs.h <<\_ACEOF
32724 #define HAVE_ISNAN_IN_CMATH 1
32725 _ACEOF
32726
32727 fi
32728
32729 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32730 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32731 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32732   echo $ECHO_N "(cached) $ECHO_C" >&6
32733 else
32734   ac_ext=cpp
32735 ac_cpp='$CXXCPP $CPPFLAGS'
32736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32739
32740    cat >conftest.$ac_ext <<_ACEOF
32741 /* confdefs.h.  */
32742 _ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h.  */
32746 #include <cmath>
32747 int
32748 main ()
32749 {
32750 float f; std::isnan(f);
32751   ;
32752   return 0;
32753 }
32754 _ACEOF
32755 rm -f conftest.$ac_objext
32756 if { (ac_try="$ac_compile"
32757 case "(($ac_try" in
32758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759   *) ac_try_echo=$ac_try;;
32760 esac
32761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762   (eval "$ac_compile") 2>conftest.er1
32763   ac_status=$?
32764   grep -v '^ *+' conftest.er1 >conftest.err
32765   rm -f conftest.er1
32766   cat conftest.err >&5
32767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768   (exit $ac_status); } &&
32769          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32770   { (case "(($ac_try" in
32771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772   *) ac_try_echo=$ac_try;;
32773 esac
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775   (eval "$ac_try") 2>&5
32776   ac_status=$?
32777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778   (exit $ac_status); }; } &&
32779          { ac_try='test -s conftest.$ac_objext'
32780   { (case "(($ac_try" in
32781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782   *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785   (eval "$ac_try") 2>&5
32786   ac_status=$?
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); }; }; then
32789   ac_cv_func_std_isnan_in_cmath=yes
32790 else
32791   echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32793
32794         ac_cv_func_std_isnan_in_cmath=no
32795 fi
32796
32797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32798   ac_ext=c
32799 ac_cpp='$CPP $CPPFLAGS'
32800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32803
32804 fi
32805 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32806 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32807
32808 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32809
32810 cat >>confdefs.h <<\_ACEOF
32811 #define HAVE_STD_ISNAN_IN_CMATH 1
32812 _ACEOF
32813
32814 fi
32815
32816
32817 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32818 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32819 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32820   echo $ECHO_N "(cached) $ECHO_C" >&6
32821 else
32822   ac_ext=cpp
32823 ac_cpp='$CXXCPP $CPPFLAGS'
32824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32827
32828    cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834 #include <math.h>
32835 int
32836 main ()
32837 {
32838 float f; isinf(f);
32839   ;
32840   return 0;
32841 }
32842 _ACEOF
32843 rm -f conftest.$ac_objext
32844 if { (ac_try="$ac_compile"
32845 case "(($ac_try" in
32846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847   *) ac_try_echo=$ac_try;;
32848 esac
32849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850   (eval "$ac_compile") 2>conftest.er1
32851   ac_status=$?
32852   grep -v '^ *+' conftest.er1 >conftest.err
32853   rm -f conftest.er1
32854   cat conftest.err >&5
32855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856   (exit $ac_status); } &&
32857          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32858   { (case "(($ac_try" in
32859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32860   *) ac_try_echo=$ac_try;;
32861 esac
32862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32863   (eval "$ac_try") 2>&5
32864   ac_status=$?
32865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866   (exit $ac_status); }; } &&
32867          { ac_try='test -s conftest.$ac_objext'
32868   { (case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_try") 2>&5
32874   ac_status=$?
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); }; }; then
32877   ac_cv_func_isinf_in_math_h=yes
32878 else
32879   echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32881
32882         ac_cv_func_isinf_in_math_h=no
32883 fi
32884
32885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32886   ac_ext=c
32887 ac_cpp='$CPP $CPPFLAGS'
32888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32891
32892 fi
32893 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32894 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32895
32896 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32897
32898 cat >>confdefs.h <<\_ACEOF
32899 #define HAVE_ISINF_IN_MATH_H 1
32900 _ACEOF
32901
32902 fi
32903
32904 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32905 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32906 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32907   echo $ECHO_N "(cached) $ECHO_C" >&6
32908 else
32909   ac_ext=cpp
32910 ac_cpp='$CXXCPP $CPPFLAGS'
32911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32914
32915    cat >conftest.$ac_ext <<_ACEOF
32916 /* confdefs.h.  */
32917 _ACEOF
32918 cat confdefs.h >>conftest.$ac_ext
32919 cat >>conftest.$ac_ext <<_ACEOF
32920 /* end confdefs.h.  */
32921 #include <cmath>
32922 int
32923 main ()
32924 {
32925 float f; isinf(f);
32926   ;
32927   return 0;
32928 }
32929 _ACEOF
32930 rm -f conftest.$ac_objext
32931 if { (ac_try="$ac_compile"
32932 case "(($ac_try" in
32933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934   *) ac_try_echo=$ac_try;;
32935 esac
32936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937   (eval "$ac_compile") 2>conftest.er1
32938   ac_status=$?
32939   grep -v '^ *+' conftest.er1 >conftest.err
32940   rm -f conftest.er1
32941   cat conftest.err >&5
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); } &&
32944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32945   { (case "(($ac_try" in
32946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947   *) ac_try_echo=$ac_try;;
32948 esac
32949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950   (eval "$ac_try") 2>&5
32951   ac_status=$?
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); }; } &&
32954          { ac_try='test -s conftest.$ac_objext'
32955   { (case "(($ac_try" in
32956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957   *) ac_try_echo=$ac_try;;
32958 esac
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960   (eval "$ac_try") 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; }; then
32964   ac_cv_func_isinf_in_cmath=yes
32965 else
32966   echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32968
32969         ac_cv_func_isinf_in_cmath=no
32970 fi
32971
32972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32973   ac_ext=c
32974 ac_cpp='$CPP $CPPFLAGS'
32975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32978
32979 fi
32980 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32981 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32982
32983 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32984
32985 cat >>confdefs.h <<\_ACEOF
32986 #define HAVE_ISINF_IN_CMATH 1
32987 _ACEOF
32988
32989 fi
32990
32991 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32992 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32993 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32994   echo $ECHO_N "(cached) $ECHO_C" >&6
32995 else
32996   ac_ext=cpp
32997 ac_cpp='$CXXCPP $CPPFLAGS'
32998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33001
33002    cat >conftest.$ac_ext <<_ACEOF
33003 /* confdefs.h.  */
33004 _ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h.  */
33008 #include <cmath>
33009 int
33010 main ()
33011 {
33012 float f; std::isinf(f)}
33013   ;
33014   return 0;
33015 }
33016 _ACEOF
33017 rm -f conftest.$ac_objext
33018 if { (ac_try="$ac_compile"
33019 case "(($ac_try" in
33020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33021   *) ac_try_echo=$ac_try;;
33022 esac
33023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33024   (eval "$ac_compile") 2>conftest.er1
33025   ac_status=$?
33026   grep -v '^ *+' conftest.er1 >conftest.err
33027   rm -f conftest.er1
33028   cat conftest.err >&5
33029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030   (exit $ac_status); } &&
33031          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33032   { (case "(($ac_try" in
33033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034   *) ac_try_echo=$ac_try;;
33035 esac
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037   (eval "$ac_try") 2>&5
33038   ac_status=$?
33039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040   (exit $ac_status); }; } &&
33041          { ac_try='test -s conftest.$ac_objext'
33042   { (case "(($ac_try" in
33043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044   *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047   (eval "$ac_try") 2>&5
33048   ac_status=$?
33049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050   (exit $ac_status); }; }; then
33051   ac_cv_func_std_isinf_in_cmath=yes
33052 else
33053   echo "$as_me: failed program was:" >&5
33054 sed 's/^/| /' conftest.$ac_ext >&5
33055
33056         ac_cv_func_std_isinf_in_cmath=no
33057 fi
33058
33059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33060   ac_ext=c
33061 ac_cpp='$CPP $CPPFLAGS'
33062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33065
33066 fi
33067 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33068 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33069
33070 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33071
33072 cat >>confdefs.h <<\_ACEOF
33073 #define HAVE_STD_ISINF_IN_CMATH 1
33074 _ACEOF
33075
33076 fi
33077
33078 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33079 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33080 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33081   echo $ECHO_N "(cached) $ECHO_C" >&6
33082 else
33083   ac_ext=cpp
33084 ac_cpp='$CXXCPP $CPPFLAGS'
33085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33088
33089    cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095 #include <ieeefp.h>
33096 int
33097 main ()
33098 {
33099 float f; finite(f);
33100   ;
33101   return 0;
33102 }
33103 _ACEOF
33104 rm -f conftest.$ac_objext
33105 if { (ac_try="$ac_compile"
33106 case "(($ac_try" in
33107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108   *) ac_try_echo=$ac_try;;
33109 esac
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111   (eval "$ac_compile") 2>conftest.er1
33112   ac_status=$?
33113   grep -v '^ *+' conftest.er1 >conftest.err
33114   rm -f conftest.er1
33115   cat conftest.err >&5
33116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117   (exit $ac_status); } &&
33118          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33119   { (case "(($ac_try" in
33120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121   *) ac_try_echo=$ac_try;;
33122 esac
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124   (eval "$ac_try") 2>&5
33125   ac_status=$?
33126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127   (exit $ac_status); }; } &&
33128          { ac_try='test -s conftest.$ac_objext'
33129   { (case "(($ac_try" in
33130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131   *) ac_try_echo=$ac_try;;
33132 esac
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134   (eval "$ac_try") 2>&5
33135   ac_status=$?
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); }; }; then
33138   ac_cv_func_finite_in_ieeefp_h=yes
33139 else
33140   echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33142
33143         ac_cv_func_finite_in_ieeefp_h=no
33144 fi
33145
33146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33147   ac_ext=c
33148 ac_cpp='$CPP $CPPFLAGS'
33149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33152
33153 fi
33154 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33155 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33156
33157 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33158
33159 cat >>confdefs.h <<\_ACEOF
33160 #define HAVE_FINITE_IN_IEEEFP_H 1
33161 _ACEOF
33162
33163 fi
33164
33165
33166
33167 if test "$llvm_cv_platform_type" = "Unix" ; then
33168
33169
33170 for ac_header in stdlib.h unistd.h
33171 do
33172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 fi
33179 ac_res=`eval echo '${'$as_ac_Header'}'`
33180                { echo "$as_me:$LINENO: result: $ac_res" >&5
33181 echo "${ECHO_T}$ac_res" >&6; }
33182 else
33183   # Is the header compilable?
33184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33186 cat >conftest.$ac_ext <<_ACEOF
33187 /* confdefs.h.  */
33188 _ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h.  */
33192 $ac_includes_default
33193 #include <$ac_header>
33194 _ACEOF
33195 rm -f conftest.$ac_objext
33196 if { (ac_try="$ac_compile"
33197 case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_compile") 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } &&
33209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33210   { (case "(($ac_try" in
33211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212   *) ac_try_echo=$ac_try;;
33213 esac
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215   (eval "$ac_try") 2>&5
33216   ac_status=$?
33217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218   (exit $ac_status); }; } &&
33219          { ac_try='test -s conftest.$ac_objext'
33220   { (case "(($ac_try" in
33221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222   *) ac_try_echo=$ac_try;;
33223 esac
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225   (eval "$ac_try") 2>&5
33226   ac_status=$?
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); }; }; then
33229   ac_header_compiler=yes
33230 else
33231   echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33233
33234         ac_header_compiler=no
33235 fi
33236
33237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33239 echo "${ECHO_T}$ac_header_compiler" >&6; }
33240
33241 # Is the header present?
33242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33244 cat >conftest.$ac_ext <<_ACEOF
33245 /* confdefs.h.  */
33246 _ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h.  */
33250 #include <$ac_header>
33251 _ACEOF
33252 if { (ac_try="$ac_cpp conftest.$ac_ext"
33253 case "(($ac_try" in
33254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255   *) ac_try_echo=$ac_try;;
33256 esac
33257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33259   ac_status=$?
33260   grep -v '^ *+' conftest.er1 >conftest.err
33261   rm -f conftest.er1
33262   cat conftest.err >&5
33263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264   (exit $ac_status); } >/dev/null; then
33265   if test -s conftest.err; then
33266     ac_cpp_err=$ac_c_preproc_warn_flag
33267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33268   else
33269     ac_cpp_err=
33270   fi
33271 else
33272   ac_cpp_err=yes
33273 fi
33274 if test -z "$ac_cpp_err"; then
33275   ac_header_preproc=yes
33276 else
33277   echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33279
33280   ac_header_preproc=no
33281 fi
33282
33283 rm -f conftest.err conftest.$ac_ext
33284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33285 echo "${ECHO_T}$ac_header_preproc" >&6; }
33286
33287 # So?  What about this header?
33288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33289   yes:no: )
33290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33294     ac_header_preproc=yes
33295     ;;
33296   no:yes:* )
33297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33309     ( cat <<\_ASBOX
33310 ## ----------------------------------- ##
33311 ## Report this to llvmbugs@cs.uiuc.edu ##
33312 ## ----------------------------------- ##
33313 _ASBOX
33314      ) | sed "s/^/$as_me: WARNING:     /" >&2
33315     ;;
33316 esac
33317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33320   echo $ECHO_N "(cached) $ECHO_C" >&6
33321 else
33322   eval "$as_ac_Header=\$ac_header_preproc"
33323 fi
33324 ac_res=`eval echo '${'$as_ac_Header'}'`
33325                { echo "$as_me:$LINENO: result: $ac_res" >&5
33326 echo "${ECHO_T}$ac_res" >&6; }
33327
33328 fi
33329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33330   cat >>confdefs.h <<_ACEOF
33331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33332 _ACEOF
33333
33334 fi
33335
33336 done
33337
33338
33339 for ac_func in getpagesize
33340 do
33341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33345   echo $ECHO_N "(cached) $ECHO_C" >&6
33346 else
33347   cat >conftest.$ac_ext <<_ACEOF
33348 /* confdefs.h.  */
33349 _ACEOF
33350 cat confdefs.h >>conftest.$ac_ext
33351 cat >>conftest.$ac_ext <<_ACEOF
33352 /* end confdefs.h.  */
33353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33355 #define $ac_func innocuous_$ac_func
33356
33357 /* System header to define __stub macros and hopefully few prototypes,
33358     which can conflict with char $ac_func (); below.
33359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33360     <limits.h> exists even on freestanding compilers.  */
33361
33362 #ifdef __STDC__
33363 # include <limits.h>
33364 #else
33365 # include <assert.h>
33366 #endif
33367
33368 #undef $ac_func
33369
33370 /* Override any GCC internal prototype to avoid an error.
33371    Use char because int might match the return type of a GCC
33372    builtin and then its argument prototype would still apply.  */
33373 #ifdef __cplusplus
33374 extern "C"
33375 #endif
33376 char $ac_func ();
33377 /* The GNU C library defines this for functions which it implements
33378     to always fail with ENOSYS.  Some functions are actually named
33379     something starting with __ and the normal name is an alias.  */
33380 #if defined __stub_$ac_func || defined __stub___$ac_func
33381 choke me
33382 #endif
33383
33384 int
33385 main ()
33386 {
33387 return $ac_func ();
33388   ;
33389   return 0;
33390 }
33391 _ACEOF
33392 rm -f conftest.$ac_objext conftest$ac_exeext
33393 if { (ac_try="$ac_link"
33394 case "(($ac_try" in
33395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396   *) ac_try_echo=$ac_try;;
33397 esac
33398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399   (eval "$ac_link") 2>conftest.er1
33400   ac_status=$?
33401   grep -v '^ *+' conftest.er1 >conftest.err
33402   rm -f conftest.er1
33403   cat conftest.err >&5
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); } &&
33406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33407   { (case "(($ac_try" in
33408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409   *) ac_try_echo=$ac_try;;
33410 esac
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412   (eval "$ac_try") 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); }; } &&
33416          { ac_try='test -s conftest$ac_exeext'
33417   { (case "(($ac_try" in
33418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419   *) ac_try_echo=$ac_try;;
33420 esac
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422   (eval "$ac_try") 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; }; then
33426   eval "$as_ac_var=yes"
33427 else
33428   echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33430
33431         eval "$as_ac_var=no"
33432 fi
33433
33434 rm -f core conftest.err conftest.$ac_objext \
33435       conftest$ac_exeext conftest.$ac_ext
33436 fi
33437 ac_res=`eval echo '${'$as_ac_var'}'`
33438                { echo "$as_me:$LINENO: result: $ac_res" >&5
33439 echo "${ECHO_T}$ac_res" >&6; }
33440 if test `eval echo '${'$as_ac_var'}'` = yes; then
33441   cat >>confdefs.h <<_ACEOF
33442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33443 _ACEOF
33444
33445 fi
33446 done
33447
33448 { echo "$as_me:$LINENO: checking for working mmap" >&5
33449 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33450 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33451   echo $ECHO_N "(cached) $ECHO_C" >&6
33452 else
33453   if test "$cross_compiling" = yes; then
33454   ac_cv_func_mmap_fixed_mapped=no
33455 else
33456   cat >conftest.$ac_ext <<_ACEOF
33457 /* confdefs.h.  */
33458 _ACEOF
33459 cat confdefs.h >>conftest.$ac_ext
33460 cat >>conftest.$ac_ext <<_ACEOF
33461 /* end confdefs.h.  */
33462 $ac_includes_default
33463 /* malloc might have been renamed as rpl_malloc. */
33464 #undef malloc
33465
33466 /* Thanks to Mike Haertel and Jim Avera for this test.
33467    Here is a matrix of mmap possibilities:
33468         mmap private not fixed
33469         mmap private fixed at somewhere currently unmapped
33470         mmap private fixed at somewhere already mapped
33471         mmap shared not fixed
33472         mmap shared fixed at somewhere currently unmapped
33473         mmap shared fixed at somewhere already mapped
33474    For private mappings, we should verify that changes cannot be read()
33475    back from the file, nor mmap's back from the file at a different
33476    address.  (There have been systems where private was not correctly
33477    implemented like the infamous i386 svr4.0, and systems where the
33478    VM page cache was not coherent with the file system buffer cache
33479    like early versions of FreeBSD and possibly contemporary NetBSD.)
33480    For shared mappings, we should conversely verify that changes get
33481    propagated back to all the places they're supposed to be.
33482
33483    Grep wants private fixed already mapped.
33484    The main things grep needs to know about mmap are:
33485    * does it exist and is it safe to write into the mmap'd area
33486    * how to use it (BSD variants)  */
33487
33488 #include <fcntl.h>
33489 #include <sys/mman.h>
33490
33491 #if !STDC_HEADERS && !HAVE_STDLIB_H
33492 char *malloc ();
33493 #endif
33494
33495 /* This mess was copied from the GNU getpagesize.h.  */
33496 #if !HAVE_GETPAGESIZE
33497 /* Assume that all systems that can run configure have sys/param.h.  */
33498 # if !HAVE_SYS_PARAM_H
33499 #  define HAVE_SYS_PARAM_H 1
33500 # endif
33501
33502 # ifdef _SC_PAGESIZE
33503 #  define getpagesize() sysconf(_SC_PAGESIZE)
33504 # else /* no _SC_PAGESIZE */
33505 #  if HAVE_SYS_PARAM_H
33506 #   include <sys/param.h>
33507 #   ifdef EXEC_PAGESIZE
33508 #    define getpagesize() EXEC_PAGESIZE
33509 #   else /* no EXEC_PAGESIZE */
33510 #    ifdef NBPG
33511 #     define getpagesize() NBPG * CLSIZE
33512 #     ifndef CLSIZE
33513 #      define CLSIZE 1
33514 #     endif /* no CLSIZE */
33515 #    else /* no NBPG */
33516 #     ifdef NBPC
33517 #      define getpagesize() NBPC
33518 #     else /* no NBPC */
33519 #      ifdef PAGESIZE
33520 #       define getpagesize() PAGESIZE
33521 #      endif /* PAGESIZE */
33522 #     endif /* no NBPC */
33523 #    endif /* no NBPG */
33524 #   endif /* no EXEC_PAGESIZE */
33525 #  else /* no HAVE_SYS_PARAM_H */
33526 #   define getpagesize() 8192   /* punt totally */
33527 #  endif /* no HAVE_SYS_PARAM_H */
33528 # endif /* no _SC_PAGESIZE */
33529
33530 #endif /* no HAVE_GETPAGESIZE */
33531
33532 int
33533 main ()
33534 {
33535   char *data, *data2, *data3;
33536   int i, pagesize;
33537   int fd;
33538
33539   pagesize = getpagesize ();
33540
33541   /* First, make a file with some known garbage in it. */
33542   data = (char *) malloc (pagesize);
33543   if (!data)
33544     return 1;
33545   for (i = 0; i < pagesize; ++i)
33546     *(data + i) = rand ();
33547   umask (0);
33548   fd = creat ("conftest.mmap", 0600);
33549   if (fd < 0)
33550     return 1;
33551   if (write (fd, data, pagesize) != pagesize)
33552     return 1;
33553   close (fd);
33554
33555   /* Next, try to mmap the file at a fixed address which already has
33556      something else allocated at it.  If we can, also make sure that
33557      we see the same garbage.  */
33558   fd = open ("conftest.mmap", O_RDWR);
33559   if (fd < 0)
33560     return 1;
33561   data2 = (char *) malloc (2 * pagesize);
33562   if (!data2)
33563     return 1;
33564   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33565   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33566                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33567     return 1;
33568   for (i = 0; i < pagesize; ++i)
33569     if (*(data + i) != *(data2 + i))
33570       return 1;
33571
33572   /* Finally, make sure that changes to the mapped area do not
33573      percolate back to the file as seen by read().  (This is a bug on
33574      some variants of i386 svr4.0.)  */
33575   for (i = 0; i < pagesize; ++i)
33576     *(data2 + i) = *(data2 + i) + 1;
33577   data3 = (char *) malloc (pagesize);
33578   if (!data3)
33579     return 1;
33580   if (read (fd, data3, pagesize) != pagesize)
33581     return 1;
33582   for (i = 0; i < pagesize; ++i)
33583     if (*(data + i) != *(data3 + i))
33584       return 1;
33585   close (fd);
33586   return 0;
33587 }
33588 _ACEOF
33589 rm -f conftest$ac_exeext
33590 if { (ac_try="$ac_link"
33591 case "(($ac_try" in
33592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593   *) ac_try_echo=$ac_try;;
33594 esac
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596   (eval "$ac_link") 2>&5
33597   ac_status=$?
33598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33600   { (case "(($ac_try" in
33601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602   *) ac_try_echo=$ac_try;;
33603 esac
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605   (eval "$ac_try") 2>&5
33606   ac_status=$?
33607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608   (exit $ac_status); }; }; then
33609   ac_cv_func_mmap_fixed_mapped=yes
33610 else
33611   echo "$as_me: program exited with status $ac_status" >&5
33612 echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33614
33615 ( exit $ac_status )
33616 ac_cv_func_mmap_fixed_mapped=no
33617 fi
33618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33619 fi
33620
33621
33622 fi
33623 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33624 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33625 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33626
33627 cat >>confdefs.h <<\_ACEOF
33628 #define HAVE_MMAP 1
33629 _ACEOF
33630
33631 fi
33632 rm -f conftest.mmap
33633
33634   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33635 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33636 if test "${ac_cv_func_mmap_file+set}" = set; then
33637   echo $ECHO_N "(cached) $ECHO_C" >&6
33638 else
33639    ac_ext=c
33640 ac_cpp='$CPP $CPPFLAGS'
33641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33644
33645   if test "$cross_compiling" = yes; then
33646   ac_cv_func_mmap_file=no
33647 else
33648   cat >conftest.$ac_ext <<_ACEOF
33649
33650     /* confdefs.h.  */
33651 _ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h.  */
33655
33656 #include <sys/types.h>
33657 #include <sys/mman.h>
33658 #include <fcntl.h>
33659
33660 int
33661 main ()
33662 {
33663
33664   int fd;
33665   fd = creat ("foo",0777);
33666   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33667   unlink ("foo");
33668   return (fd != (int) MAP_FAILED);
33669   ;
33670   return 0;
33671 }
33672 _ACEOF
33673 rm -f conftest$ac_exeext
33674 if { (ac_try="$ac_link"
33675 case "(($ac_try" in
33676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677   *) ac_try_echo=$ac_try;;
33678 esac
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680   (eval "$ac_link") 2>&5
33681   ac_status=$?
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33684   { (case "(($ac_try" in
33685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686   *) ac_try_echo=$ac_try;;
33687 esac
33688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689   (eval "$ac_try") 2>&5
33690   ac_status=$?
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); }; }; then
33693   ac_cv_func_mmap_file=yes
33694 else
33695   echo "$as_me: program exited with status $ac_status" >&5
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699 ( exit $ac_status )
33700 ac_cv_func_mmap_file=no
33701 fi
33702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33703 fi
33704
33705
33706   ac_ext=c
33707 ac_cpp='$CPP $CPPFLAGS'
33708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33711
33712
33713 fi
33714 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33715 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33716 if test "$ac_cv_func_mmap_file" = yes; then
33717
33718 cat >>confdefs.h <<\_ACEOF
33719 #define HAVE_MMAP_FILE
33720 _ACEOF
33721
33722    MMAP_FILE=yes
33723
33724 fi
33725
33726   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33727 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33728 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33729   echo $ECHO_N "(cached) $ECHO_C" >&6
33730 else
33731   if test "$llvm_cv_os_type" = "Interix" ; then
33732    ac_cv_need_dev_zero_for_mmap=yes
33733  else
33734    ac_cv_need_dev_zero_for_mmap=no
33735  fi
33736
33737 fi
33738 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33739 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33740 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33741
33742 cat >>confdefs.h <<\_ACEOF
33743 #define NEED_DEV_ZERO_FOR_MMAP 1
33744 _ACEOF
33745
33746 fi
33747
33748   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33749   then
33750     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33751 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33752   fi
33753   if test "$ac_cv_func_mmap_file" = "no"
33754   then
33755     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33756 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33757   fi
33758 fi
33759
33760
33761
33762 for ac_func in __dso_handle
33763 do
33764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33768   echo $ECHO_N "(cached) $ECHO_C" >&6
33769 else
33770   cat >conftest.$ac_ext <<_ACEOF
33771 /* confdefs.h.  */
33772 _ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h.  */
33776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33778 #define $ac_func innocuous_$ac_func
33779
33780 /* System header to define __stub macros and hopefully few prototypes,
33781     which can conflict with char $ac_func (); below.
33782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33783     <limits.h> exists even on freestanding compilers.  */
33784
33785 #ifdef __STDC__
33786 # include <limits.h>
33787 #else
33788 # include <assert.h>
33789 #endif
33790
33791 #undef $ac_func
33792
33793 /* Override any GCC internal prototype to avoid an error.
33794    Use char because int might match the return type of a GCC
33795    builtin and then its argument prototype would still apply.  */
33796 #ifdef __cplusplus
33797 extern "C"
33798 #endif
33799 char $ac_func ();
33800 /* The GNU C library defines this for functions which it implements
33801     to always fail with ENOSYS.  Some functions are actually named
33802     something starting with __ and the normal name is an alias.  */
33803 #if defined __stub_$ac_func || defined __stub___$ac_func
33804 choke me
33805 #endif
33806
33807 int
33808 main ()
33809 {
33810 return $ac_func ();
33811   ;
33812   return 0;
33813 }
33814 _ACEOF
33815 rm -f conftest.$ac_objext conftest$ac_exeext
33816 if { (ac_try="$ac_link"
33817 case "(($ac_try" in
33818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819   *) ac_try_echo=$ac_try;;
33820 esac
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822   (eval "$ac_link") 2>conftest.er1
33823   ac_status=$?
33824   grep -v '^ *+' conftest.er1 >conftest.err
33825   rm -f conftest.er1
33826   cat conftest.err >&5
33827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828   (exit $ac_status); } &&
33829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33830   { (case "(($ac_try" in
33831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832   *) ac_try_echo=$ac_try;;
33833 esac
33834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835   (eval "$ac_try") 2>&5
33836   ac_status=$?
33837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838   (exit $ac_status); }; } &&
33839          { ac_try='test -s conftest$ac_exeext'
33840   { (case "(($ac_try" in
33841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842   *) ac_try_echo=$ac_try;;
33843 esac
33844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845   (eval "$ac_try") 2>&5
33846   ac_status=$?
33847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848   (exit $ac_status); }; }; then
33849   eval "$as_ac_var=yes"
33850 else
33851   echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33853
33854         eval "$as_ac_var=no"
33855 fi
33856
33857 rm -f core conftest.err conftest.$ac_objext \
33858       conftest$ac_exeext conftest.$ac_ext
33859 fi
33860 ac_res=`eval echo '${'$as_ac_var'}'`
33861                { echo "$as_me:$LINENO: result: $ac_res" >&5
33862 echo "${ECHO_T}$ac_res" >&6; }
33863 if test `eval echo '${'$as_ac_var'}'` = yes; then
33864   cat >>confdefs.h <<_ACEOF
33865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33866 _ACEOF
33867
33868 fi
33869 done
33870
33871
33872 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33873 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33874 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33875   echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877   llvm_cv_llvmgcc_sanity="no"
33878 if test -x "$LLVMGCC" ; then
33879   cp /dev/null conftest.c
33880   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33881       grep 'target datalayout =' > /dev/null 2>&1
33882   if test $? -eq 0 ; then
33883     llvm_cv_llvmgcc_sanity="yes"
33884   fi
33885   rm conftest.c
33886 fi
33887 fi
33888 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33889 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33890
33891 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33892   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33893 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33894   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33895   LLVMCC1=$llvmcc1path
33896
33897   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33898   LLVMCC1PLUS=$llvmcc1pluspath
33899
33900   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33901   LLVMGCCDIR=$llvmgccdir
33902
33903   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33904   LLVMGCCLIBEXEC=$llvmgcclibexec
33905
33906   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33907   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33908   LLVMGCC_VERSION=$llvmgccversion
33909
33910   LLVMGCC_MAJVERS=$llvmgccmajvers
33911
33912   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33913   LLVMGCC_LANGS=$llvmgcclangs
33914
33915   { echo "$as_me:$LINENO: result: ok" >&5
33916 echo "${ECHO_T}ok" >&6; }
33917 fi
33918
33919 SHLIBEXT=$libltdl_cv_shlibext
33920
33921
33922 # Translate the various configuration directories and other basic
33923 # information into substitutions that will end up in Makefile.config.in
33924 # that these configured values can be used by the makefiles
33925 if test "${prefix}" = "NONE" ; then
33926   prefix="/usr/local"
33927 fi
33928 eval LLVM_PREFIX="${prefix}";
33929 eval LLVM_BINDIR="${prefix}/bin";
33930 eval LLVM_LIBDIR="${prefix}/lib";
33931 eval LLVM_DATADIR="${prefix}/share/llvm";
33932 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33933 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33934 eval LLVM_INCLUDEDIR="${prefix}/include";
33935 eval LLVM_INFODIR="${prefix}/info";
33936 eval LLVM_MANDIR="${prefix}/man";
33937 LLVM_CONFIGTIME=`date`
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949 # Place the various directores into the config.h file as #defines so that we
33950 # can know about the installation paths within LLVM.
33951
33952 cat >>confdefs.h <<_ACEOF
33953 #define LLVM_PREFIX "$LLVM_PREFIX"
33954 _ACEOF
33955
33956
33957 cat >>confdefs.h <<_ACEOF
33958 #define LLVM_BINDIR "$LLVM_BINDIR"
33959 _ACEOF
33960
33961
33962 cat >>confdefs.h <<_ACEOF
33963 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33964 _ACEOF
33965
33966
33967 cat >>confdefs.h <<_ACEOF
33968 #define LLVM_DATADIR "$LLVM_DATADIR"
33969 _ACEOF
33970
33971
33972 cat >>confdefs.h <<_ACEOF
33973 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33974 _ACEOF
33975
33976
33977 cat >>confdefs.h <<_ACEOF
33978 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33979 _ACEOF
33980
33981
33982 cat >>confdefs.h <<_ACEOF
33983 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33984 _ACEOF
33985
33986
33987 cat >>confdefs.h <<_ACEOF
33988 #define LLVM_INFODIR "$LLVM_INFODIR"
33989 _ACEOF
33990
33991
33992 cat >>confdefs.h <<_ACEOF
33993 #define LLVM_MANDIR "$LLVM_MANDIR"
33994 _ACEOF
33995
33996
33997 cat >>confdefs.h <<_ACEOF
33998 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33999 _ACEOF
34000
34001
34002
34003 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34004
34005 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34006
34007 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34008
34009 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34010
34011 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34012
34013
34014 ac_config_files="$ac_config_files Makefile.config"
34015
34016
34017 ac_config_files="$ac_config_files llvm.spec"
34018
34019
34020 ac_config_files="$ac_config_files docs/doxygen.cfg"
34021
34022
34023 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34024
34025
34026 ac_config_commands="$ac_config_commands setup"
34027
34028 ac_config_commands="$ac_config_commands Makefile"
34029
34030
34031 ac_config_commands="$ac_config_commands Makefile.common"
34032
34033
34034 ac_config_commands="$ac_config_commands examples/Makefile"
34035
34036
34037 ac_config_commands="$ac_config_commands lib/Makefile"
34038
34039
34040 ac_config_commands="$ac_config_commands runtime/Makefile"
34041
34042
34043 ac_config_commands="$ac_config_commands test/Makefile"
34044
34045
34046 ac_config_commands="$ac_config_commands test/Makefile.tests"
34047
34048
34049 ac_config_commands="$ac_config_commands tools/Makefile"
34050
34051
34052 ac_config_commands="$ac_config_commands utils/Makefile"
34053
34054
34055 ac_config_commands="$ac_config_commands projects/Makefile"
34056
34057
34058
34059 cat >confcache <<\_ACEOF
34060 # This file is a shell script that caches the results of configure
34061 # tests run on this system so they can be shared between configure
34062 # scripts and configure runs, see configure's option --config-cache.
34063 # It is not useful on other systems.  If it contains results you don't
34064 # want to keep, you may remove or edit it.
34065 #
34066 # config.status only pays attention to the cache file if you give it
34067 # the --recheck option to rerun configure.
34068 #
34069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34071 # following values.
34072
34073 _ACEOF
34074
34075 # The following way of writing the cache mishandles newlines in values,
34076 # but we know of no workaround that is simple, portable, and efficient.
34077 # So, we kill variables containing newlines.
34078 # Ultrix sh set writes to stderr and can't be redirected directly,
34079 # and sets the high bit in the cache file unless we assign to the vars.
34080 (
34081   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34082     eval ac_val=\$$ac_var
34083     case $ac_val in #(
34084     *${as_nl}*)
34085       case $ac_var in #(
34086       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34087 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34088       esac
34089       case $ac_var in #(
34090       _ | IFS | as_nl) ;; #(
34091       *) $as_unset $ac_var ;;
34092       esac ;;
34093     esac
34094   done
34095
34096   (set) 2>&1 |
34097     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34098     *${as_nl}ac_space=\ *)
34099       # `set' does not quote correctly, so add quotes (double-quote
34100       # substitution turns \\\\ into \\, and sed turns \\ into \).
34101       sed -n \
34102         "s/'/'\\\\''/g;
34103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34104       ;; #(
34105     *)
34106       # `set' quotes correctly as required by POSIX, so do not add quotes.
34107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34108       ;;
34109     esac |
34110     sort
34111 ) |
34112   sed '
34113      /^ac_cv_env_/b end
34114      t clear
34115      :clear
34116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34117      t end
34118      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34119      :end' >>confcache
34120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34121   if test -w "$cache_file"; then
34122     test "x$cache_file" != "x/dev/null" &&
34123       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34124 echo "$as_me: updating cache $cache_file" >&6;}
34125     cat confcache >$cache_file
34126   else
34127     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34128 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34129   fi
34130 fi
34131 rm -f confcache
34132
34133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34134 # Let make expand exec_prefix.
34135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34136
34137 DEFS=-DHAVE_CONFIG_H
34138
34139 ac_libobjs=
34140 ac_ltlibobjs=
34141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34142   # 1. Remove the extension, and $U if already installed.
34143   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34144   ac_i=`echo "$ac_i" | sed "$ac_script"`
34145   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34146   #    will be set to the directory where LIBOBJS objects are built.
34147   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34148   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34149 done
34150 LIBOBJS=$ac_libobjs
34151
34152 LTLIBOBJS=$ac_ltlibobjs
34153
34154
34155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34156   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34157 Usually this means the macro was only invoked conditionally." >&5
34158 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34159 Usually this means the macro was only invoked conditionally." >&2;}
34160    { (exit 1); exit 1; }; }
34161 fi
34162 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34163   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34164 Usually this means the macro was only invoked conditionally." >&5
34165 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34166 Usually this means the macro was only invoked conditionally." >&2;}
34167    { (exit 1); exit 1; }; }
34168 fi
34169
34170 : ${CONFIG_STATUS=./config.status}
34171 ac_clean_files_save=$ac_clean_files
34172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34175 cat >$CONFIG_STATUS <<_ACEOF
34176 #! $SHELL
34177 # Generated by $as_me.
34178 # Run this file to recreate the current configuration.
34179 # Compiler output produced by configure, useful for debugging
34180 # configure, is in config.log if it exists.
34181
34182 debug=false
34183 ac_cs_recheck=false
34184 ac_cs_silent=false
34185 SHELL=\${CONFIG_SHELL-$SHELL}
34186 _ACEOF
34187
34188 cat >>$CONFIG_STATUS <<\_ACEOF
34189 ## --------------------- ##
34190 ## M4sh Initialization.  ##
34191 ## --------------------- ##
34192
34193 # Be Bourne compatible
34194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34195   emulate sh
34196   NULLCMD=:
34197   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34198   # is contrary to our usage.  Disable this feature.
34199   alias -g '${1+"$@"}'='"$@"'
34200   setopt NO_GLOB_SUBST
34201 else
34202   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34203 fi
34204 BIN_SH=xpg4; export BIN_SH # for Tru64
34205 DUALCASE=1; export DUALCASE # for MKS sh
34206
34207
34208 # PATH needs CR
34209 # Avoid depending upon Character Ranges.
34210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34213 as_cr_digits='0123456789'
34214 as_cr_alnum=$as_cr_Letters$as_cr_digits
34215
34216 # The user is always right.
34217 if test "${PATH_SEPARATOR+set}" != set; then
34218   echo "#! /bin/sh" >conf$$.sh
34219   echo  "exit 0"   >>conf$$.sh
34220   chmod +x conf$$.sh
34221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34222     PATH_SEPARATOR=';'
34223   else
34224     PATH_SEPARATOR=:
34225   fi
34226   rm -f conf$$.sh
34227 fi
34228
34229 # Support unset when possible.
34230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34231   as_unset=unset
34232 else
34233   as_unset=false
34234 fi
34235
34236
34237 # IFS
34238 # We need space, tab and new line, in precisely that order.  Quoting is
34239 # there to prevent editors from complaining about space-tab.
34240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34241 # splitting by setting IFS to empty value.)
34242 as_nl='
34243 '
34244 IFS=" ""        $as_nl"
34245
34246 # Find who we are.  Look in the path if we contain no directory separator.
34247 case $0 in
34248   *[\\/]* ) as_myself=$0 ;;
34249   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34250 for as_dir in $PATH
34251 do
34252   IFS=$as_save_IFS
34253   test -z "$as_dir" && as_dir=.
34254   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34255 done
34256 IFS=$as_save_IFS
34257
34258      ;;
34259 esac
34260 # We did not find ourselves, most probably we were run as `sh COMMAND'
34261 # in which case we are not to be found in the path.
34262 if test "x$as_myself" = x; then
34263   as_myself=$0
34264 fi
34265 if test ! -f "$as_myself"; then
34266   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34267   { (exit 1); exit 1; }
34268 fi
34269
34270 # Work around bugs in pre-3.0 UWIN ksh.
34271 for as_var in ENV MAIL MAILPATH
34272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34273 done
34274 PS1='$ '
34275 PS2='> '
34276 PS4='+ '
34277
34278 # NLS nuisances.
34279 for as_var in \
34280   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34281   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34282   LC_TELEPHONE LC_TIME
34283 do
34284   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34285     eval $as_var=C; export $as_var
34286   else
34287     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34288   fi
34289 done
34290
34291 # Required to use basename.
34292 if expr a : '\(a\)' >/dev/null 2>&1 &&
34293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34294   as_expr=expr
34295 else
34296   as_expr=false
34297 fi
34298
34299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34300   as_basename=basename
34301 else
34302   as_basename=false
34303 fi
34304
34305
34306 # Name of the executable.
34307 as_me=`$as_basename -- "$0" ||
34308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34309          X"$0" : 'X\(//\)$' \| \
34310          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34311 echo X/"$0" |
34312     sed '/^.*\/\([^/][^/]*\)\/*$/{
34313             s//\1/
34314             q
34315           }
34316           /^X\/\(\/\/\)$/{
34317             s//\1/
34318             q
34319           }
34320           /^X\/\(\/\).*/{
34321             s//\1/
34322             q
34323           }
34324           s/.*/./; q'`
34325
34326 # CDPATH.
34327 $as_unset CDPATH
34328
34329
34330
34331   as_lineno_1=$LINENO
34332   as_lineno_2=$LINENO
34333   test "x$as_lineno_1" != "x$as_lineno_2" &&
34334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34335
34336   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34337   # uniformly replaced by the line number.  The first 'sed' inserts a
34338   # line-number line after each line using $LINENO; the second 'sed'
34339   # does the real work.  The second script uses 'N' to pair each
34340   # line-number line with the line containing $LINENO, and appends
34341   # trailing '-' during substitution so that $LINENO is not a special
34342   # case at line end.
34343   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34344   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34345   # E. McMahon (1931-1989) for sed's syntax.  :-)
34346   sed -n '
34347     p
34348     /[$]LINENO/=
34349   ' <$as_myself |
34350     sed '
34351       s/[$]LINENO.*/&-/
34352       t lineno
34353       b
34354       :lineno
34355       N
34356       :loop
34357       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34358       t loop
34359       s/-\n.*//
34360     ' >$as_me.lineno &&
34361   chmod +x "$as_me.lineno" ||
34362     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34363    { (exit 1); exit 1; }; }
34364
34365   # Don't try to exec as it changes $[0], causing all sort of problems
34366   # (the dirname of $[0] is not the place where we might find the
34367   # original and so on.  Autoconf is especially sensitive to this).
34368   . "./$as_me.lineno"
34369   # Exit status is that of the last command.
34370   exit
34371 }
34372
34373
34374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34375   as_dirname=dirname
34376 else
34377   as_dirname=false
34378 fi
34379
34380 ECHO_C= ECHO_N= ECHO_T=
34381 case `echo -n x` in
34382 -n*)
34383   case `echo 'x\c'` in
34384   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34385   *)   ECHO_C='\c';;
34386   esac;;
34387 *)
34388   ECHO_N='-n';;
34389 esac
34390
34391 if expr a : '\(a\)' >/dev/null 2>&1 &&
34392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34393   as_expr=expr
34394 else
34395   as_expr=false
34396 fi
34397
34398 rm -f conf$$ conf$$.exe conf$$.file
34399 if test -d conf$$.dir; then
34400   rm -f conf$$.dir/conf$$.file
34401 else
34402   rm -f conf$$.dir
34403   mkdir conf$$.dir
34404 fi
34405 echo >conf$$.file
34406 if ln -s conf$$.file conf$$ 2>/dev/null; then
34407   as_ln_s='ln -s'
34408   # ... but there are two gotchas:
34409   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34410   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34411   # In both cases, we have to default to `cp -p'.
34412   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34413     as_ln_s='cp -p'
34414 elif ln conf$$.file conf$$ 2>/dev/null; then
34415   as_ln_s=ln
34416 else
34417   as_ln_s='cp -p'
34418 fi
34419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34420 rmdir conf$$.dir 2>/dev/null
34421
34422 if mkdir -p . 2>/dev/null; then
34423   as_mkdir_p=:
34424 else
34425   test -d ./-p && rmdir ./-p
34426   as_mkdir_p=false
34427 fi
34428
34429 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34430 # systems may use methods other than mode bits to determine executability.
34431 cat >conf$$.file <<_ASEOF
34432 #! /bin/sh
34433 exit 0
34434 _ASEOF
34435 chmod +x conf$$.file
34436 if test -x conf$$.file >/dev/null 2>&1; then
34437   as_executable_p="test -x"
34438 else
34439   as_executable_p=:
34440 fi
34441 rm -f conf$$.file
34442
34443 # Sed expression to map a string onto a valid CPP name.
34444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34445
34446 # Sed expression to map a string onto a valid variable name.
34447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34448
34449
34450 exec 6>&1
34451
34452 # Save the log message, to keep $[0] and so on meaningful, and to
34453 # report actual input values of CONFIG_FILES etc. instead of their
34454 # values after options handling.
34455 ac_log="
34456 This file was extended by llvm $as_me 2.1svn, which was
34457 generated by GNU Autoconf 2.60.  Invocation command line was
34458
34459   CONFIG_FILES    = $CONFIG_FILES
34460   CONFIG_HEADERS  = $CONFIG_HEADERS
34461   CONFIG_LINKS    = $CONFIG_LINKS
34462   CONFIG_COMMANDS = $CONFIG_COMMANDS
34463   $ $0 $@
34464
34465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34466 "
34467
34468 _ACEOF
34469
34470 cat >>$CONFIG_STATUS <<_ACEOF
34471 # Files that config.status was made for.
34472 config_files="$ac_config_files"
34473 config_headers="$ac_config_headers"
34474 config_commands="$ac_config_commands"
34475
34476 _ACEOF
34477
34478 cat >>$CONFIG_STATUS <<\_ACEOF
34479 ac_cs_usage="\
34480 \`$as_me' instantiates files from templates according to the
34481 current configuration.
34482
34483 Usage: $0 [OPTIONS] [FILE]...
34484
34485   -h, --help       print this help, then exit
34486   -V, --version    print version number, then exit
34487   -q, --quiet      do not print progress messages
34488   -d, --debug      don't remove temporary files
34489       --recheck    update $as_me by reconfiguring in the same conditions
34490   --file=FILE[:TEMPLATE]
34491                    instantiate the configuration file FILE
34492   --header=FILE[:TEMPLATE]
34493                    instantiate the configuration header FILE
34494
34495 Configuration files:
34496 $config_files
34497
34498 Configuration headers:
34499 $config_headers
34500
34501 Configuration commands:
34502 $config_commands
34503
34504 Report bugs to <bug-autoconf@gnu.org>."
34505
34506 _ACEOF
34507 cat >>$CONFIG_STATUS <<_ACEOF
34508 ac_cs_version="\\
34509 llvm config.status 2.1svn
34510 configured by $0, generated by GNU Autoconf 2.60,
34511   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34512
34513 Copyright (C) 2006 Free Software Foundation, Inc.
34514 This config.status script is free software; the Free Software Foundation
34515 gives unlimited permission to copy, distribute and modify it."
34516
34517 ac_pwd='$ac_pwd'
34518 srcdir='$srcdir'
34519 INSTALL='$INSTALL'
34520 _ACEOF
34521
34522 cat >>$CONFIG_STATUS <<\_ACEOF
34523 # If no file are specified by the user, then we need to provide default
34524 # value.  By we need to know if files were specified by the user.
34525 ac_need_defaults=:
34526 while test $# != 0
34527 do
34528   case $1 in
34529   --*=*)
34530     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34531     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34532     ac_shift=:
34533     ;;
34534   *)
34535     ac_option=$1
34536     ac_optarg=$2
34537     ac_shift=shift
34538     ;;
34539   esac
34540
34541   case $ac_option in
34542   # Handling of the options.
34543   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34544     ac_cs_recheck=: ;;
34545   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34546     echo "$ac_cs_version"; exit ;;
34547   --debug | --debu | --deb | --de | --d | -d )
34548     debug=: ;;
34549   --file | --fil | --fi | --f )
34550     $ac_shift
34551     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34552     ac_need_defaults=false;;
34553   --header | --heade | --head | --hea )
34554     $ac_shift
34555     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34556     ac_need_defaults=false;;
34557   --he | --h)
34558     # Conflict between --help and --header
34559     { echo "$as_me: error: ambiguous option: $1
34560 Try \`$0 --help' for more information." >&2
34561    { (exit 1); exit 1; }; };;
34562   --help | --hel | -h )
34563     echo "$ac_cs_usage"; exit ;;
34564   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34565   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34566     ac_cs_silent=: ;;
34567
34568   # This is an error.
34569   -*) { echo "$as_me: error: unrecognized option: $1
34570 Try \`$0 --help' for more information." >&2
34571    { (exit 1); exit 1; }; } ;;
34572
34573   *) ac_config_targets="$ac_config_targets $1"
34574      ac_need_defaults=false ;;
34575
34576   esac
34577   shift
34578 done
34579
34580 ac_configure_extra_args=
34581
34582 if $ac_cs_silent; then
34583   exec 6>/dev/null
34584   ac_configure_extra_args="$ac_configure_extra_args --silent"
34585 fi
34586
34587 _ACEOF
34588 cat >>$CONFIG_STATUS <<_ACEOF
34589 if \$ac_cs_recheck; then
34590   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34591   CONFIG_SHELL=$SHELL
34592   export CONFIG_SHELL
34593   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34594 fi
34595
34596 _ACEOF
34597 cat >>$CONFIG_STATUS <<\_ACEOF
34598 exec 5>>config.log
34599 {
34600   echo
34601   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34602 ## Running $as_me. ##
34603 _ASBOX
34604   echo "$ac_log"
34605 } >&5
34606
34607 _ACEOF
34608 cat >>$CONFIG_STATUS <<_ACEOF
34609 #
34610 # INIT-COMMANDS
34611 #
34612 llvm_src="${srcdir}"
34613
34614 _ACEOF
34615
34616 cat >>$CONFIG_STATUS <<\_ACEOF
34617
34618 # Handling of arguments.
34619 for ac_config_target in $ac_config_targets
34620 do
34621   case $ac_config_target in
34622     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34623     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34624     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34625     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34626     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34627     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34628     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34629     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34630     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34631     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34632     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34633     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34634     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34635     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34636     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34637     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34638     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34639     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34640     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34641     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34642
34643   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34644 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34645    { (exit 1); exit 1; }; };;
34646   esac
34647 done
34648
34649
34650 # If the user did not use the arguments to specify the items to instantiate,
34651 # then the envvar interface is used.  Set only those that are not.
34652 # We use the long form for the default assignment because of an extremely
34653 # bizarre bug on SunOS 4.1.3.
34654 if $ac_need_defaults; then
34655   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34656   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34657   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34658 fi
34659
34660 # Have a temporary directory for convenience.  Make it in the build tree
34661 # simply because there is no reason against having it here, and in addition,
34662 # creating and moving files from /tmp can sometimes cause problems.
34663 # Hook for its removal unless debugging.
34664 # Note that there is a small window in which the directory will not be cleaned:
34665 # after its creation but before its name has been assigned to `$tmp'.
34666 $debug ||
34667 {
34668   tmp=
34669   trap 'exit_status=$?
34670   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34671 ' 0
34672   trap '{ (exit 1); exit 1; }' 1 2 13 15
34673 }
34674 # Create a (secure) tmp directory for tmp files.
34675
34676 {
34677   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34678   test -n "$tmp" && test -d "$tmp"
34679 }  ||
34680 {
34681   tmp=./conf$$-$RANDOM
34682   (umask 077 && mkdir "$tmp")
34683 } ||
34684 {
34685    echo "$me: cannot create a temporary directory in ." >&2
34686    { (exit 1); exit 1; }
34687 }
34688
34689 #
34690 # Set up the sed scripts for CONFIG_FILES section.
34691 #
34692
34693 # No need to generate the scripts if there are no CONFIG_FILES.
34694 # This happens for instance when ./config.status config.h
34695 if test -n "$CONFIG_FILES"; then
34696
34697 _ACEOF
34698
34699
34700
34701 ac_delim='%!_!# '
34702 for ac_last_try in false false false false false :; do
34703   cat >conf$$subs.sed <<_ACEOF
34704 SHELL!$SHELL$ac_delim
34705 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34706 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34707 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34708 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34709 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34710 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34711 exec_prefix!$exec_prefix$ac_delim
34712 prefix!$prefix$ac_delim
34713 program_transform_name!$program_transform_name$ac_delim
34714 bindir!$bindir$ac_delim
34715 sbindir!$sbindir$ac_delim
34716 libexecdir!$libexecdir$ac_delim
34717 datarootdir!$datarootdir$ac_delim
34718 datadir!$datadir$ac_delim
34719 sysconfdir!$sysconfdir$ac_delim
34720 sharedstatedir!$sharedstatedir$ac_delim
34721 localstatedir!$localstatedir$ac_delim
34722 includedir!$includedir$ac_delim
34723 oldincludedir!$oldincludedir$ac_delim
34724 docdir!$docdir$ac_delim
34725 infodir!$infodir$ac_delim
34726 htmldir!$htmldir$ac_delim
34727 dvidir!$dvidir$ac_delim
34728 pdfdir!$pdfdir$ac_delim
34729 psdir!$psdir$ac_delim
34730 libdir!$libdir$ac_delim
34731 localedir!$localedir$ac_delim
34732 mandir!$mandir$ac_delim
34733 DEFS!$DEFS$ac_delim
34734 ECHO_C!$ECHO_C$ac_delim
34735 ECHO_N!$ECHO_N$ac_delim
34736 ECHO_T!$ECHO_T$ac_delim
34737 LIBS!$LIBS$ac_delim
34738 build_alias!$build_alias$ac_delim
34739 host_alias!$host_alias$ac_delim
34740 target_alias!$target_alias$ac_delim
34741 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34742 subdirs!$subdirs$ac_delim
34743 build!$build$ac_delim
34744 build_cpu!$build_cpu$ac_delim
34745 build_vendor!$build_vendor$ac_delim
34746 build_os!$build_os$ac_delim
34747 host!$host$ac_delim
34748 host_cpu!$host_cpu$ac_delim
34749 host_vendor!$host_vendor$ac_delim
34750 host_os!$host_os$ac_delim
34751 target!$target$ac_delim
34752 target_cpu!$target_cpu$ac_delim
34753 target_vendor!$target_vendor$ac_delim
34754 target_os!$target_os$ac_delim
34755 OS!$OS$ac_delim
34756 LINKALL!$LINKALL$ac_delim
34757 NOLINKALL!$NOLINKALL$ac_delim
34758 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34759 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34760 ARCH!$ARCH$ac_delim
34761 ENDIAN!$ENDIAN$ac_delim
34762 CC!$CC$ac_delim
34763 CFLAGS!$CFLAGS$ac_delim
34764 LDFLAGS!$LDFLAGS$ac_delim
34765 CPPFLAGS!$CPPFLAGS$ac_delim
34766 ac_ct_CC!$ac_ct_CC$ac_delim
34767 EXEEXT!$EXEEXT$ac_delim
34768 OBJEXT!$OBJEXT$ac_delim
34769 CPP!$CPP$ac_delim
34770 GREP!$GREP$ac_delim
34771 EGREP!$EGREP$ac_delim
34772 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34773 BUILD_CC!$BUILD_CC$ac_delim
34774 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34775 CVSBUILD!$CVSBUILD$ac_delim
34776 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34777 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34778 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34779 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34780 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34781 JIT!$JIT$ac_delim
34782 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34783 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34784 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34785 ENABLE_PIC!$ENABLE_PIC$ac_delim
34786 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34787 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34788 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34789 CXX!$CXX$ac_delim
34790 CXXFLAGS!$CXXFLAGS$ac_delim
34791 ac_ct_CXX!$ac_ct_CXX$ac_delim
34792 LEX!$LEX$ac_delim
34793 LEXLIB!$LEXLIB$ac_delim
34794 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34795 FLEX!$FLEX$ac_delim
34796 YACC!$YACC$ac_delim
34797 YFLAGS!$YFLAGS$ac_delim
34798 BISON!$BISON$ac_delim
34799 NM!$NM$ac_delim
34800 ifGNUmake!$ifGNUmake$ac_delim
34801 _ACEOF
34802
34803   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34804     break
34805   elif $ac_last_try; then
34806     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34807 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34808    { (exit 1); exit 1; }; }
34809   else
34810     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34811   fi
34812 done
34813
34814 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34815 if test -n "$ac_eof"; then
34816   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34817   ac_eof=`expr $ac_eof + 1`
34818 fi
34819
34820 cat >>$CONFIG_STATUS <<_ACEOF
34821 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34823 _ACEOF
34824 sed '
34825 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34826 s/^/s,@/; s/!/@,|#_!!_#|/
34827 :n
34828 t n
34829 s/'"$ac_delim"'$/,g/; t
34830 s/$/\\/; p
34831 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34832 ' >>$CONFIG_STATUS <conf$$subs.sed
34833 rm -f conf$$subs.sed
34834 cat >>$CONFIG_STATUS <<_ACEOF
34835 CEOF$ac_eof
34836 _ACEOF
34837
34838
34839 ac_delim='%!_!# '
34840 for ac_last_try in false false false false false :; do
34841   cat >conf$$subs.sed <<_ACEOF
34842 LN_S!$LN_S$ac_delim
34843 CMP!$CMP$ac_delim
34844 CP!$CP$ac_delim
34845 DATE!$DATE$ac_delim
34846 FIND!$FIND$ac_delim
34847 MKDIR!$MKDIR$ac_delim
34848 MV!$MV$ac_delim
34849 RANLIB!$RANLIB$ac_delim
34850 RM!$RM$ac_delim
34851 SED!$SED$ac_delim
34852 TAR!$TAR$ac_delim
34853 BINPWD!$BINPWD$ac_delim
34854 GRAPHVIZ!$GRAPHVIZ$ac_delim
34855 DOT!$DOT$ac_delim
34856 GV!$GV$ac_delim
34857 DOTTY!$DOTTY$ac_delim
34858 PERL!$PERL$ac_delim
34859 HAVE_PERL!$HAVE_PERL$ac_delim
34860 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34861 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34862 INSTALL_DATA!$INSTALL_DATA$ac_delim
34863 BZIP2!$BZIP2$ac_delim
34864 DOXYGEN!$DOXYGEN$ac_delim
34865 GROFF!$GROFF$ac_delim
34866 GZIP!$GZIP$ac_delim
34867 POD2HTML!$POD2HTML$ac_delim
34868 POD2MAN!$POD2MAN$ac_delim
34869 RUNTEST!$RUNTEST$ac_delim
34870 TCLSH!$TCLSH$ac_delim
34871 ZIP!$ZIP$ac_delim
34872 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34873 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34874 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34875 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34876 LIBADD_DL!$LIBADD_DL$ac_delim
34877 ECHO!$ECHO$ac_delim
34878 AR!$AR$ac_delim
34879 STRIP!$STRIP$ac_delim
34880 CXXCPP!$CXXCPP$ac_delim
34881 F77!$F77$ac_delim
34882 FFLAGS!$FFLAGS$ac_delim
34883 ac_ct_F77!$ac_ct_F77$ac_delim
34884 LIBTOOL!$LIBTOOL$ac_delim
34885 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34886 LLVMGCC!$LLVMGCC$ac_delim
34887 LLVMGXX!$LLVMGXX$ac_delim
34888 USE_UDIS86!$USE_UDIS86$ac_delim
34889 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34890 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34891 ALLOCA!$ALLOCA$ac_delim
34892 MMAP_FILE!$MMAP_FILE$ac_delim
34893 LLVMCC1!$LLVMCC1$ac_delim
34894 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34895 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34896 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34897 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34898 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34899 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34900 SHLIBEXT!$SHLIBEXT$ac_delim
34901 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34902 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34903 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34904 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34905 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34906 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34907 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34908 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34909 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34910 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34911 LIBOBJS!$LIBOBJS$ac_delim
34912 LTLIBOBJS!$LTLIBOBJS$ac_delim
34913 _ACEOF
34914
34915   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
34916     break
34917   elif $ac_last_try; then
34918     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34919 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34920    { (exit 1); exit 1; }; }
34921   else
34922     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34923   fi
34924 done
34925
34926 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34927 if test -n "$ac_eof"; then
34928   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34929   ac_eof=`expr $ac_eof + 1`
34930 fi
34931
34932 cat >>$CONFIG_STATUS <<_ACEOF
34933 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34935 _ACEOF
34936 sed '
34937 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34938 s/^/s,@/; s/!/@,|#_!!_#|/
34939 :n
34940 t n
34941 s/'"$ac_delim"'$/,g/; t
34942 s/$/\\/; p
34943 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34944 ' >>$CONFIG_STATUS <conf$$subs.sed
34945 rm -f conf$$subs.sed
34946 cat >>$CONFIG_STATUS <<_ACEOF
34947 :end
34948 s/|#_!!_#|//g
34949 CEOF$ac_eof
34950 _ACEOF
34951
34952
34953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34955 # trailing colons and then remove the whole line if VPATH becomes empty
34956 # (actually we leave an empty line to preserve line numbers).
34957 if test "x$srcdir" = x.; then
34958   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34959 s/:*\$(srcdir):*/:/
34960 s/:*\${srcdir}:*/:/
34961 s/:*@srcdir@:*/:/
34962 s/^\([^=]*=[     ]*\):*/\1/
34963 s/:*$//
34964 s/^[^=]*=[       ]*$//
34965 }'
34966 fi
34967
34968 cat >>$CONFIG_STATUS <<\_ACEOF
34969 fi # test -n "$CONFIG_FILES"
34970
34971
34972 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34973 do
34974   case $ac_tag in
34975   :[FHLC]) ac_mode=$ac_tag; continue;;
34976   esac
34977   case $ac_mode$ac_tag in
34978   :[FHL]*:*);;
34979   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34980 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34981    { (exit 1); exit 1; }; };;
34982   :[FH]-) ac_tag=-:-;;
34983   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34984   esac
34985   ac_save_IFS=$IFS
34986   IFS=:
34987   set x $ac_tag
34988   IFS=$ac_save_IFS
34989   shift
34990   ac_file=$1
34991   shift
34992
34993   case $ac_mode in
34994   :L) ac_source=$1;;
34995   :[FH])
34996     ac_file_inputs=
34997     for ac_f
34998     do
34999       case $ac_f in
35000       -) ac_f="$tmp/stdin";;
35001       *) # Look for the file first in the build tree, then in the source tree
35002          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35003          # because $ac_f cannot contain `:'.
35004          test -f "$ac_f" ||
35005            case $ac_f in
35006            [\\/$]*) false;;
35007            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35008            esac ||
35009            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35010 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35011    { (exit 1); exit 1; }; };;
35012       esac
35013       ac_file_inputs="$ac_file_inputs $ac_f"
35014     done
35015
35016     # Let's still pretend it is `configure' which instantiates (i.e., don't
35017     # use $as_me), people would be surprised to read:
35018     #    /* config.h.  Generated by config.status.  */
35019     configure_input="Generated from "`IFS=:
35020           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35021     if test x"$ac_file" != x-; then
35022       configure_input="$ac_file.  $configure_input"
35023       { echo "$as_me:$LINENO: creating $ac_file" >&5
35024 echo "$as_me: creating $ac_file" >&6;}
35025     fi
35026
35027     case $ac_tag in
35028     *:-:* | *:-) cat >"$tmp/stdin";;
35029     esac
35030     ;;
35031   esac
35032
35033   ac_dir=`$as_dirname -- "$ac_file" ||
35034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35035          X"$ac_file" : 'X\(//\)[^/]' \| \
35036          X"$ac_file" : 'X\(//\)$' \| \
35037          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35038 echo X"$ac_file" |
35039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35040             s//\1/
35041             q
35042           }
35043           /^X\(\/\/\)[^/].*/{
35044             s//\1/
35045             q
35046           }
35047           /^X\(\/\/\)$/{
35048             s//\1/
35049             q
35050           }
35051           /^X\(\/\).*/{
35052             s//\1/
35053             q
35054           }
35055           s/.*/./; q'`
35056   { as_dir="$ac_dir"
35057   case $as_dir in #(
35058   -*) as_dir=./$as_dir;;
35059   esac
35060   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35061     as_dirs=
35062     while :; do
35063       case $as_dir in #(
35064       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35065       *) as_qdir=$as_dir;;
35066       esac
35067       as_dirs="'$as_qdir' $as_dirs"
35068       as_dir=`$as_dirname -- "$as_dir" ||
35069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35070          X"$as_dir" : 'X\(//\)[^/]' \| \
35071          X"$as_dir" : 'X\(//\)$' \| \
35072          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35073 echo X"$as_dir" |
35074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35075             s//\1/
35076             q
35077           }
35078           /^X\(\/\/\)[^/].*/{
35079             s//\1/
35080             q
35081           }
35082           /^X\(\/\/\)$/{
35083             s//\1/
35084             q
35085           }
35086           /^X\(\/\).*/{
35087             s//\1/
35088             q
35089           }
35090           s/.*/./; q'`
35091       test -d "$as_dir" && break
35092     done
35093     test -z "$as_dirs" || eval "mkdir $as_dirs"
35094   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35095 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35096    { (exit 1); exit 1; }; }; }
35097   ac_builddir=.
35098
35099 case "$ac_dir" in
35100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35101 *)
35102   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35103   # A ".." for each directory in $ac_dir_suffix.
35104   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35105   case $ac_top_builddir_sub in
35106   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35107   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35108   esac ;;
35109 esac
35110 ac_abs_top_builddir=$ac_pwd
35111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35112 # for backward compatibility:
35113 ac_top_builddir=$ac_top_build_prefix
35114
35115 case $srcdir in
35116   .)  # We are building in place.
35117     ac_srcdir=.
35118     ac_top_srcdir=$ac_top_builddir_sub
35119     ac_abs_top_srcdir=$ac_pwd ;;
35120   [\\/]* | ?:[\\/]* )  # Absolute name.
35121     ac_srcdir=$srcdir$ac_dir_suffix;
35122     ac_top_srcdir=$srcdir
35123     ac_abs_top_srcdir=$srcdir ;;
35124   *) # Relative name.
35125     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35126     ac_top_srcdir=$ac_top_build_prefix$srcdir
35127     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35128 esac
35129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35130
35131
35132   case $ac_mode in
35133   :F)
35134   #
35135   # CONFIG_FILE
35136   #
35137
35138   case $INSTALL in
35139   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35140   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35141   esac
35142 _ACEOF
35143
35144 cat >>$CONFIG_STATUS <<\_ACEOF
35145 # If the template does not know about datarootdir, expand it.
35146 # FIXME: This hack should be removed a few years after 2.60.
35147 ac_datarootdir_hack=; ac_datarootdir_seen=
35148
35149 case `sed -n '/datarootdir/ {
35150   p
35151   q
35152 }
35153 /@datadir@/p
35154 /@docdir@/p
35155 /@infodir@/p
35156 /@localedir@/p
35157 /@mandir@/p
35158 ' $ac_file_inputs` in
35159 *datarootdir*) ac_datarootdir_seen=yes;;
35160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35161   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35163 _ACEOF
35164 cat >>$CONFIG_STATUS <<_ACEOF
35165   ac_datarootdir_hack='
35166   s&@datadir@&$datadir&g
35167   s&@docdir@&$docdir&g
35168   s&@infodir@&$infodir&g
35169   s&@localedir@&$localedir&g
35170   s&@mandir@&$mandir&g
35171     s&\\\${datarootdir}&$datarootdir&g' ;;
35172 esac
35173 _ACEOF
35174
35175 # Neutralize VPATH when `$srcdir' = `.'.
35176 # Shell code in configure.ac might set extrasub.
35177 # FIXME: do we really want to maintain this feature?
35178 cat >>$CONFIG_STATUS <<_ACEOF
35179   sed "$ac_vpsub
35180 $extrasub
35181 _ACEOF
35182 cat >>$CONFIG_STATUS <<\_ACEOF
35183 :t
35184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35185 s&@configure_input@&$configure_input&;t t
35186 s&@top_builddir@&$ac_top_builddir_sub&;t t
35187 s&@srcdir@&$ac_srcdir&;t t
35188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35189 s&@top_srcdir@&$ac_top_srcdir&;t t
35190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35191 s&@builddir@&$ac_builddir&;t t
35192 s&@abs_builddir@&$ac_abs_builddir&;t t
35193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35194 s&@INSTALL@&$ac_INSTALL&;t t
35195 $ac_datarootdir_hack
35196 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35197
35198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35199   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35200   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35201   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35202 which seems to be undefined.  Please make sure it is defined." >&5
35203 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35204 which seems to be undefined.  Please make sure it is defined." >&2;}
35205
35206   rm -f "$tmp/stdin"
35207   case $ac_file in
35208   -) cat "$tmp/out"; rm -f "$tmp/out";;
35209   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35210   esac
35211  ;;
35212   :H)
35213   #
35214   # CONFIG_HEADER
35215   #
35216 _ACEOF
35217
35218 # Transform confdefs.h into a sed script `conftest.defines', that
35219 # substitutes the proper values into config.h.in to produce config.h.
35220 rm -f conftest.defines conftest.tail
35221 # First, append a space to every undef/define line, to ease matching.
35222 echo 's/$/ /' >conftest.defines
35223 # Then, protect against being on the right side of a sed subst, or in
35224 # an unquoted here document, in config.status.  If some macros were
35225 # called several times there might be several #defines for the same
35226 # symbol, which is useless.  But do not sort them, since the last
35227 # AC_DEFINE must be honored.
35228 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35229 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35230 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35231 # PARAMS is the parameter list in the macro definition--in most cases, it's
35232 # just an empty string.
35233 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35234 ac_dB='\\)[      (].*,\\1define\\2'
35235 ac_dC=' '
35236 ac_dD=' ,'
35237
35238 uniq confdefs.h |
35239   sed -n '
35240         t rset
35241         :rset
35242         s/^[     ]*#[    ]*define[       ][      ]*//
35243         t ok
35244         d
35245         :ok
35246         s/[\\&,]/\\&/g
35247         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35248         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35249   ' >>conftest.defines
35250
35251 # Remove the space that was appended to ease matching.
35252 # Then replace #undef with comments.  This is necessary, for
35253 # example, in the case of _POSIX_SOURCE, which is predefined and required
35254 # on some systems where configure will not decide to define it.
35255 # (The regexp can be short, since the line contains either #define or #undef.)
35256 echo 's/ $//
35257 s,^[     #]*u.*,/* & */,' >>conftest.defines
35258
35259 # Break up conftest.defines:
35260 ac_max_sed_lines=50
35261
35262 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35263 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35264 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35265 # et cetera.
35266 ac_in='$ac_file_inputs'
35267 ac_out='"$tmp/out1"'
35268 ac_nxt='"$tmp/out2"'
35269
35270 while :
35271 do
35272   # Write a here document:
35273     cat >>$CONFIG_STATUS <<_ACEOF
35274     # First, check the format of the line:
35275     cat >"\$tmp/defines.sed" <<\\CEOF
35276 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35277 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35278 b
35279 :def
35280 _ACEOF
35281   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35282   echo 'CEOF
35283     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35284   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35285   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35286   grep . conftest.tail >/dev/null || break
35287   rm -f conftest.defines
35288   mv conftest.tail conftest.defines
35289 done
35290 rm -f conftest.defines conftest.tail
35291
35292 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35293 cat >>$CONFIG_STATUS <<\_ACEOF
35294   if test x"$ac_file" != x-; then
35295     echo "/* $configure_input  */" >"$tmp/config.h"
35296     cat "$ac_result" >>"$tmp/config.h"
35297     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35298       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35299 echo "$as_me: $ac_file is unchanged" >&6;}
35300     else
35301       rm -f $ac_file
35302       mv "$tmp/config.h" $ac_file
35303     fi
35304   else
35305     echo "/* $configure_input  */"
35306     cat "$ac_result"
35307   fi
35308   rm -f "$tmp/out12"
35309  ;;
35310
35311   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35312 echo "$as_me: executing $ac_file commands" >&6;}
35313  ;;
35314   esac
35315
35316
35317   case $ac_file$ac_mode in
35318     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35319    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35320     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35321    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35322     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35323    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35324     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35325    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35326     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35327    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35328     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35329    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35330     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35331    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35332     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35333    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35334     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35335    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35336     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35337    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35338
35339   esac
35340 done # for ac_tag
35341
35342
35343 { (exit 0); exit 0; }
35344 _ACEOF
35345 chmod +x $CONFIG_STATUS
35346 ac_clean_files=$ac_clean_files_save
35347
35348
35349 # configure is writing to config.log, and then calls config.status.
35350 # config.status does its own redirection, appending to config.log.
35351 # Unfortunately, on DOS this fails, as config.log is still kept open
35352 # by configure, so config.status won't be able to write to it; its
35353 # output is simply discarded.  So we exec the FD to /dev/null,
35354 # effectively closing config.log, so it can be properly (re)opened and
35355 # appended to by config.status.  When coming back to configure, we
35356 # need to make the FD available again.
35357 if test "$no_create" != yes; then
35358   ac_cs_success=:
35359   ac_config_status_args=
35360   test "$silent" = yes &&
35361     ac_config_status_args="$ac_config_status_args --quiet"
35362   exec 5>/dev/null
35363   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35364   exec 5>>config.log
35365   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35366   # would make configure fail if this is the last instruction.
35367   $ac_cs_success || { (exit 1); exit 1; }
35368 fi
35369
35370 #
35371 # CONFIG_SUBDIRS section.
35372 #
35373 if test "$no_recursion" != yes; then
35374
35375   # Remove --cache-file and --srcdir arguments so they do not pile up.
35376   ac_sub_configure_args=
35377   ac_prev=
35378   eval "set x $ac_configure_args"
35379   shift
35380   for ac_arg
35381   do
35382     if test -n "$ac_prev"; then
35383       ac_prev=
35384       continue
35385     fi
35386     case $ac_arg in
35387     -cache-file | --cache-file | --cache-fil | --cache-fi \
35388     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35389       ac_prev=cache_file ;;
35390     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35391     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35392     | --c=*)
35393       ;;
35394     --config-cache | -C)
35395       ;;
35396     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35397       ac_prev=srcdir ;;
35398     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35399       ;;
35400     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35401       ac_prev=prefix ;;
35402     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35403       ;;
35404     *)
35405       case $ac_arg in
35406       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35407       esac
35408       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35409     esac
35410   done
35411
35412   # Always prepend --prefix to ensure using the same prefix
35413   # in subdir configurations.
35414   ac_arg="--prefix=$prefix"
35415   case $ac_arg in
35416   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35417   esac
35418   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35419
35420   ac_popdir=`pwd`
35421   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35422
35423     # Do not complain, so a configure script can configure whichever
35424     # parts of a large source tree are present.
35425     test -d "$srcdir/$ac_dir" || continue
35426
35427     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35428     echo "$as_me:$LINENO: $ac_msg" >&5
35429     echo "$ac_msg" >&6
35430     { as_dir="$ac_dir"
35431   case $as_dir in #(
35432   -*) as_dir=./$as_dir;;
35433   esac
35434   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35435     as_dirs=
35436     while :; do
35437       case $as_dir in #(
35438       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35439       *) as_qdir=$as_dir;;
35440       esac
35441       as_dirs="'$as_qdir' $as_dirs"
35442       as_dir=`$as_dirname -- "$as_dir" ||
35443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35444          X"$as_dir" : 'X\(//\)[^/]' \| \
35445          X"$as_dir" : 'X\(//\)$' \| \
35446          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35447 echo X"$as_dir" |
35448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35449             s//\1/
35450             q
35451           }
35452           /^X\(\/\/\)[^/].*/{
35453             s//\1/
35454             q
35455           }
35456           /^X\(\/\/\)$/{
35457             s//\1/
35458             q
35459           }
35460           /^X\(\/\).*/{
35461             s//\1/
35462             q
35463           }
35464           s/.*/./; q'`
35465       test -d "$as_dir" && break
35466     done
35467     test -z "$as_dirs" || eval "mkdir $as_dirs"
35468   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35469 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35470    { (exit 1); exit 1; }; }; }
35471     ac_builddir=.
35472
35473 case "$ac_dir" in
35474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35475 *)
35476   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35477   # A ".." for each directory in $ac_dir_suffix.
35478   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35479   case $ac_top_builddir_sub in
35480   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35481   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35482   esac ;;
35483 esac
35484 ac_abs_top_builddir=$ac_pwd
35485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35486 # for backward compatibility:
35487 ac_top_builddir=$ac_top_build_prefix
35488
35489 case $srcdir in
35490   .)  # We are building in place.
35491     ac_srcdir=.
35492     ac_top_srcdir=$ac_top_builddir_sub
35493     ac_abs_top_srcdir=$ac_pwd ;;
35494   [\\/]* | ?:[\\/]* )  # Absolute name.
35495     ac_srcdir=$srcdir$ac_dir_suffix;
35496     ac_top_srcdir=$srcdir
35497     ac_abs_top_srcdir=$srcdir ;;
35498   *) # Relative name.
35499     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35500     ac_top_srcdir=$ac_top_build_prefix$srcdir
35501     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35502 esac
35503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35504
35505
35506     cd "$ac_dir"
35507
35508     # Check for guested configure; otherwise get Cygnus style configure.
35509     if test -f "$ac_srcdir/configure.gnu"; then
35510       ac_sub_configure=$ac_srcdir/configure.gnu
35511     elif test -f "$ac_srcdir/configure"; then
35512       ac_sub_configure=$ac_srcdir/configure
35513     elif test -f "$ac_srcdir/configure.in"; then
35514       # This should be Cygnus configure.
35515       ac_sub_configure=$ac_aux_dir/configure
35516     else
35517       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35519       ac_sub_configure=
35520     fi
35521
35522     # The recursion is here.
35523     if test -n "$ac_sub_configure"; then
35524       # Make the cache file name correct relative to the subdirectory.
35525       case $cache_file in
35526       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35527       *) # Relative name.
35528         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35529       esac
35530
35531       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35532 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35533       # The eval makes quoting arguments work.
35534       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35535            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35536         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35537 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35538    { (exit 1); exit 1; }; }
35539     fi
35540
35541     cd "$ac_popdir"
35542   done
35543 fi
35544
35545