Remove debugging.
[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.2svn.
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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
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 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 ETAGSFLAGS
903 LLVMGCC
904 LLVMGXX
905 USE_UDIS86
906 HAVE_PTHREAD
907 HUGE_VAL_SANITY
908 ALLOCA
909 MMAP_FILE
910 LLVMCC1
911 LLVMCC1PLUS
912 LLVMGCCDIR
913 LLVMGCCLIBEXEC
914 LLVMGCC_VERSION
915 LLVMGCC_MAJVERS
916 LLVMGCC_LANGS
917 SHLIBEXT
918 LLVM_PREFIX
919 LLVM_BINDIR
920 LLVM_LIBDIR
921 LLVM_DATADIR
922 LLVM_DOCSDIR
923 LLVM_ETCDIR
924 LLVM_INCLUDEDIR
925 LLVM_INFODIR
926 LLVM_MANDIR
927 LLVM_CONFIGTIME
928 LIBOBJS
929 LTLIBOBJS'
930 ac_subst_files=''
931       ac_precious_vars='build_alias
932 host_alias
933 target_alias
934 CC
935 CFLAGS
936 LDFLAGS
937 CPPFLAGS
938 CPP
939 CXX
940 CXXFLAGS
941 CCC
942 YACC
943 YFLAGS
944 CXXCPP
945 F77
946 FFLAGS'
947 ac_subdirs_all='projects/sample
948 projects/privbracket
949 projects/llvm-stacker
950 projects/llvm-test
951 projects/llvm-reopt
952 projects/llvm-gcc
953 projects/llvm-java
954 projects/llvm-tv
955 projects/llvm-poolalloc
956 projects/poolalloc
957 projects/llvm-kernel'
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1004
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009   # If the previous option needs an argument, assign it.
1010   if test -n "$ac_prev"; then
1011     eval $ac_prev=\$ac_option
1012     ac_prev=
1013     continue
1014   fi
1015
1016   case $ac_option in
1017   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018   *)    ac_optarg=yes ;;
1019   esac
1020
1021   # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023   case $ac_dashdash$ac_option in
1024   --)
1025     ac_dashdash=yes ;;
1026
1027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028     ac_prev=bindir ;;
1029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030     bindir=$ac_optarg ;;
1031
1032   -build | --build | --buil | --bui | --bu)
1033     ac_prev=build_alias ;;
1034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035     build_alias=$ac_optarg ;;
1036
1037   -cache-file | --cache-file | --cache-fil | --cache-fi \
1038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039     ac_prev=cache_file ;;
1040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042     cache_file=$ac_optarg ;;
1043
1044   --config-cache | -C)
1045     cache_file=config.cache ;;
1046
1047   -datadir | --datadir | --datadi | --datad)
1048     ac_prev=datadir ;;
1049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050     datadir=$ac_optarg ;;
1051
1052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053   | --dataroo | --dataro | --datar)
1054     ac_prev=datarootdir ;;
1055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057     datarootdir=$ac_optarg ;;
1058
1059   -disable-* | --disable-*)
1060     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1063       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064    { (exit 1); exit 1; }; }
1065     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1066     eval enable_$ac_feature=no ;;
1067
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077
1078   -enable-* | --enable-*)
1079     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1082       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083    { (exit 1); exit 1; }; }
1084     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1085     eval enable_$ac_feature=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package| sed 's/-/_/g'`
1282     eval with_$ac_package=\$ac_optarg ;;
1283
1284   -without-* | --without-*)
1285     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288       { echo "$as_me: error: invalid package name: $ac_package" >&2
1289    { (exit 1); exit 1; }; }
1290     ac_package=`echo $ac_package | sed 's/-/_/g'`
1291     eval with_$ac_package=no ;;
1292
1293   --x)
1294     # Obsolete; use --with-x.
1295     with_x=yes ;;
1296
1297   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298   | --x-incl | --x-inc | --x-in | --x-i)
1299     ac_prev=x_includes ;;
1300   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302     x_includes=$ac_optarg ;;
1303
1304   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306     ac_prev=x_libraries ;;
1307   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309     x_libraries=$ac_optarg ;;
1310
1311   -*) { echo "$as_me: error: unrecognized option: $ac_option
1312 Try \`$0 --help' for more information." >&2
1313    { (exit 1); exit 1; }; }
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321    { (exit 1); exit 1; }; }
1322     eval $ac_envvar=\$ac_optarg
1323     export $ac_envvar ;;
1324
1325   *)
1326     # FIXME: should be removed in autoconf 3.0.
1327     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331     ;;
1332
1333   esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338   { echo "$as_me: error: missing argument to $ac_option" >&2
1339    { (exit 1); exit 1; }; }
1340 fi
1341
1342 # Be sure to have absolute directory names.
1343 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344                 datadir sysconfdir sharedstatedir localstatedir includedir \
1345                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346                 libdir localedir mandir
1347 do
1348   eval ac_val=\$$ac_var
1349   case $ac_val in
1350     [\\/$]* | ?:[\\/]* )  continue;;
1351     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352   esac
1353   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354    { (exit 1); exit 1; }; }
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366   if test "x$build_alias" = x; then
1367     cross_compiling=maybe
1368     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369     If a cross compiler is detected then cross compile mode will be used." >&2
1370   elif test "x$build_alias" != "x$host_alias"; then
1371     cross_compiling=yes
1372   fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384   { echo "$as_me: error: Working directory cannot be determined" >&2
1385    { (exit 1); exit 1; }; }
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387   { echo "$as_me: error: pwd does not report name of working directory" >&2
1388    { (exit 1); exit 1; }; }
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$0" ||
1396 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$0" : 'X\(//\)[^/]' \| \
1398          X"$0" : 'X\(//\)$' \| \
1399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1400 echo X"$0" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1428    { (exit 1); exit 1; }; }
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1433    { (exit 1); exit 1; }; }
1434         pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437   srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_env_${ac_var}_value=\$${ac_var}
1448   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456   # Omit some internal or obsolete options to make the list less imposing.
1457   # This message is too long to be a string in the A/UX 3.1 sh.
1458   cat <<_ACEOF
1459 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469   -h, --help              display this help and exit
1470       --help=short        display options specific to this package
1471       --help=recursive    display the short help of all the included packages
1472   -V, --version           display version information and exit
1473   -q, --quiet, --silent   do not print \`checking...' messages
1474       --cache-file=FILE   cache test results in FILE [disabled]
1475   -C, --config-cache      alias for \`--cache-file=config.cache'
1476   -n, --no-create         do not create output files
1477       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480   --prefix=PREFIX         install architecture-independent files in PREFIX
1481                           [$ac_default_prefix]
1482   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                           [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493   --bindir=DIR           user executables [EPREFIX/bin]
1494   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1495   --libexecdir=DIR       program executables [EPREFIX/libexec]
1496   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1497   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1498   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1499   --libdir=DIR           object code libraries [EPREFIX/lib]
1500   --includedir=DIR       C header files [PREFIX/include]
1501   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1502   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1503   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1504   --infodir=DIR          info documentation [DATAROOTDIR/info]
1505   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1506   --mandir=DIR           man documentation [DATAROOTDIR/man]
1507   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1508   --htmldir=DIR          html documentation [DOCDIR]
1509   --dvidir=DIR           dvi documentation [DOCDIR]
1510   --pdfdir=DIR           pdf documentation [DOCDIR]
1511   --psdir=DIR            ps documentation [DOCDIR]
1512 _ACEOF
1513
1514   cat <<\_ACEOF
1515
1516 System types:
1517   --build=BUILD     configure for building on BUILD [guessed]
1518   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1519   --target=TARGET   configure for building compilers for TARGET [HOST]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of llvm 2.2svn:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-optimized
1533   --enable-assertions
1534   --enable-expensive-checks
1535
1536   --enable-debug-runtime
1537   --enable-jit            Enable Just In Time Compiling (default is YES)
1538   --enable-doxygen        Build doxygen documentation (default is NO)
1539   --enable-threads        Use threads if available (default is YES)
1540   --enable-pic            Build LLVM with Position Independent Code (default
1541                           is NO)
1542   --enable-targets        Build specific host targets:
1543                           all,host-only,{target-name} (default=all)
1544   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1545                           %a (default is YES)
1546   --enable-ltdl-install   install libltdl
1547   --enable-shared[=PKGS]  build shared libraries
1548                           [default=yes]
1549   --enable-static[=PKGS]  build static libraries
1550                           [default=yes]
1551   --enable-fast-install[=PKGS]
1552                           optimize for fast installation
1553                           [default=yes]
1554   --disable-libtool-lock  avoid locking (might break parallel builds)
1555
1556 Optional Packages:
1557   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1558   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1559   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1560                           searches PATH)
1561   --with-extra-options    Specify addtional options to compile LLVM with
1562   --with-tclinclude       directory where tcl headers are
1563   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564   --with-pic              try to use only PIC/non-PIC objects [default=use
1565                           both]
1566   --with-tags[=TAGS]      include additional configurations [automatic]
1567   --with-udis86=<path>    Use udis86 external x86 disassembler library
1568
1569 Some influential environment variables:
1570   CC          C compiler command
1571   CFLAGS      C compiler flags
1572   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1573               nonstandard directory <lib dir>
1574   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575               you have headers in a nonstandard directory <include dir>
1576   CPP         C preprocessor
1577   CXX         C++ compiler command
1578   CXXFLAGS    C++ compiler flags
1579   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1580               the first program found out of: `bison -y', `byacc', `yacc'.
1581   YFLAGS      The list of arguments that will be passed by default to $YACC.
1582               This script will default YFLAGS to the empty string to avoid a
1583               default value of `-d' given by some make applications.
1584   CXXCPP      C++ preprocessor
1585   F77         Fortran 77 compiler command
1586   FFLAGS      Fortran 77 compiler flags
1587
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1590
1591 Report bugs to <llvmbugs@cs.uiuc.edu>.
1592 _ACEOF
1593 ac_status=$?
1594 fi
1595
1596 if test "$ac_init_help" = "recursive"; then
1597   # If there are subdirs, report their specific --help.
1598   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599     test -d "$ac_dir" || continue
1600     ac_builddir=.
1601
1602 case "$ac_dir" in
1603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *)
1605   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1606   # A ".." for each directory in $ac_dir_suffix.
1607   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1608   case $ac_top_builddir_sub in
1609   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611   esac ;;
1612 esac
1613 ac_abs_top_builddir=$ac_pwd
1614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615 # for backward compatibility:
1616 ac_top_builddir=$ac_top_build_prefix
1617
1618 case $srcdir in
1619   .)  # We are building in place.
1620     ac_srcdir=.
1621     ac_top_srcdir=$ac_top_builddir_sub
1622     ac_abs_top_srcdir=$ac_pwd ;;
1623   [\\/]* | ?:[\\/]* )  # Absolute name.
1624     ac_srcdir=$srcdir$ac_dir_suffix;
1625     ac_top_srcdir=$srcdir
1626     ac_abs_top_srcdir=$srcdir ;;
1627   *) # Relative name.
1628     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629     ac_top_srcdir=$ac_top_build_prefix$srcdir
1630     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631 esac
1632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633
1634     cd "$ac_dir" || { ac_status=$?; continue; }
1635     # Check for guested configure.
1636     if test -f "$ac_srcdir/configure.gnu"; then
1637       echo &&
1638       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639     elif test -f "$ac_srcdir/configure"; then
1640       echo &&
1641       $SHELL "$ac_srcdir/configure" --help=recursive
1642     else
1643       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644     fi || ac_status=$?
1645     cd "$ac_pwd" || { ac_status=$?; break; }
1646   done
1647 fi
1648
1649 test -n "$ac_init_help" && exit $ac_status
1650 if $ac_init_version; then
1651   cat <<\_ACEOF
1652 llvm configure 2.2svn
1653 generated by GNU Autoconf 2.60
1654
1655 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1656 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1659
1660 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1661 _ACEOF
1662   exit
1663 fi
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1667
1668 It was created by llvm $as_me 2.2svn, which was
1669 generated by GNU Autoconf 2.60.  Invocation command line was
1670
1671   $ $0 $@
1672
1673 _ACEOF
1674 exec 5>>config.log
1675 {
1676 cat <<_ASUNAME
1677 ## --------- ##
1678 ## Platform. ##
1679 ## --------- ##
1680
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1689
1690 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1691 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1694 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1695 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1696 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1697
1698 _ASUNAME
1699
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   echo "PATH: $as_dir"
1706 done
1707 IFS=$as_save_IFS
1708
1709 } >&5
1710
1711 cat >&5 <<_ACEOF
1712
1713
1714 ## ----------- ##
1715 ## Core tests. ##
1716 ## ----------- ##
1717
1718 _ACEOF
1719
1720
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_configure_args=
1727 ac_configure_args0=
1728 ac_configure_args1=
1729 ac_must_keep_next=false
1730 for ac_pass in 1 2
1731 do
1732   for ac_arg
1733   do
1734     case $ac_arg in
1735     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737     | -silent | --silent | --silen | --sile | --sil)
1738       continue ;;
1739     *\'*)
1740       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741     esac
1742     case $ac_pass in
1743     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744     2)
1745       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746       if test $ac_must_keep_next = true; then
1747         ac_must_keep_next=false # Got value, back to normal.
1748       else
1749         case $ac_arg in
1750           *=* | --config-cache | -C | -disable-* | --disable-* \
1751           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753           | -with-* | --with-* | -without-* | --without-* | --x)
1754             case "$ac_configure_args0 " in
1755               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756             esac
1757             ;;
1758           -* ) ac_must_keep_next=true ;;
1759         esac
1760       fi
1761       ac_configure_args="$ac_configure_args '$ac_arg'"
1762       ;;
1763     esac
1764   done
1765 done
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log.  We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775   # Save into config.log some information that might help in debugging.
1776   {
1777     echo
1778
1779     cat <<\_ASBOX
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1783 _ASBOX
1784     echo
1785     # The following way of writing the cache mishandles newlines in values,
1786 (
1787   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788     eval ac_val=\$$ac_var
1789     case $ac_val in #(
1790     *${as_nl}*)
1791       case $ac_var in #(
1792       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794       esac
1795       case $ac_var in #(
1796       _ | IFS | as_nl) ;; #(
1797       *) $as_unset $ac_var ;;
1798       esac ;;
1799     esac
1800   done
1801   (set) 2>&1 |
1802     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803     *${as_nl}ac_space=\ *)
1804       sed -n \
1805         "s/'\''/'\''\\\\'\'''\''/g;
1806           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807       ;; #(
1808     *)
1809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810       ;;
1811     esac |
1812     sort
1813 )
1814     echo
1815
1816     cat <<\_ASBOX
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1820 _ASBOX
1821     echo
1822     for ac_var in $ac_subst_vars
1823     do
1824       eval ac_val=\$$ac_var
1825       case $ac_val in
1826       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827       esac
1828       echo "$ac_var='\''$ac_val'\''"
1829     done | sort
1830     echo
1831
1832     if test -n "$ac_subst_files"; then
1833       cat <<\_ASBOX
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1837 _ASBOX
1838       echo
1839       for ac_var in $ac_subst_files
1840       do
1841         eval ac_val=\$$ac_var
1842         case $ac_val in
1843         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844         esac
1845         echo "$ac_var='\''$ac_val'\''"
1846       done | sort
1847       echo
1848     fi
1849
1850     if test -s confdefs.h; then
1851       cat <<\_ASBOX
1852 ## ----------- ##
1853 ## confdefs.h. ##
1854 ## ----------- ##
1855 _ASBOX
1856       echo
1857       cat confdefs.h
1858       echo
1859     fi
1860     test "$ac_signal" != 0 &&
1861       echo "$as_me: caught signal $ac_signal"
1862     echo "$as_me: exit $exit_status"
1863   } >&5
1864   rm -f core *.core core.conftest.* &&
1865     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866     exit $exit_status
1867 ' 0
1868 for ac_signal in 1 2 13 15; do
1869   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870 done
1871 ac_signal=0
1872
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1875
1876 # Predefined preprocessor variables.
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 _ACEOF
1901
1902
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906   set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 else
1910   set x "$ac_default_prefix/share/config.site" \
1911         "$ac_default_prefix/etc/config.site"
1912 fi
1913 shift
1914 for ac_site_file
1915 do
1916   if test -r "$ac_site_file"; then
1917     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919     sed 's/^/| /' "$ac_site_file" >&5
1920     . "$ac_site_file"
1921   fi
1922 done
1923
1924 if test -r "$cache_file"; then
1925   # Some versions of bash will fail to source /dev/null (special
1926   # files actually), so we avoid doing that.
1927   if test -f "$cache_file"; then
1928     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1930     case $cache_file in
1931       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932       *)                      . "./$cache_file";;
1933     esac
1934   fi
1935 else
1936   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1938   >$cache_file
1939 fi
1940
1941 # Check that the precious variables saved in the cache have kept the same
1942 # value.
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946   eval ac_new_set=\$ac_env_${ac_var}_set
1947   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948   eval ac_new_val=\$ac_env_${ac_var}_value
1949   case $ac_old_set,$ac_new_set in
1950     set,)
1951       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953       ac_cache_corrupted=: ;;
1954     ,set)
1955       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957       ac_cache_corrupted=: ;;
1958     ,);;
1959     *)
1960       if test "x$ac_old_val" != "x$ac_new_val"; then
1961         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1964 echo "$as_me:   former value:  $ac_old_val" >&2;}
1965         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1966 echo "$as_me:   current value: $ac_new_val" >&2;}
1967         ac_cache_corrupted=:
1968       fi;;
1969   esac
1970   # Pass precious variables to config.status.
1971   if test "$ac_new_set" = set; then
1972     case $ac_new_val in
1973     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     *) ac_arg=$ac_var=$ac_new_val ;;
1975     esac
1976     case " $ac_configure_args " in
1977       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1978       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979     esac
1980   fi
1981 done
1982 if $ac_cache_corrupted; then
1983   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021
2022 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2023
2024
2025
2026
2027
2028
2029
2030 ac_aux_dir=
2031 for ac_dir in autoconf "$srcdir"/autoconf; do
2032   if test -f "$ac_dir/install-sh"; then
2033     ac_aux_dir=$ac_dir
2034     ac_install_sh="$ac_aux_dir/install-sh -c"
2035     break
2036   elif test -f "$ac_dir/install.sh"; then
2037     ac_aux_dir=$ac_dir
2038     ac_install_sh="$ac_aux_dir/install.sh -c"
2039     break
2040   elif test -f "$ac_dir/shtool"; then
2041     ac_aux_dir=$ac_dir
2042     ac_install_sh="$ac_aux_dir/shtool install -c"
2043     break
2044   fi
2045 done
2046 if test -z "$ac_aux_dir"; then
2047   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2048 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 # These three variables are undocumented and unsupported,
2053 # and are intended to be withdrawn in a future Autoconf release.
2054 # They can cause serious problems if a builder's source tree is in a directory
2055 # whose full name contains unusual characters.
2056 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2057 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2058 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2059
2060
2061
2062 if test ${srcdir} != "." ; then
2063   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2064     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2065 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2066    { (exit 1); exit 1; }; }
2067   fi
2068 fi
2069
2070 for i in `ls ${srcdir}/projects`
2071 do
2072   if test -d ${srcdir}/projects/${i} ; then
2073     case ${i} in
2074       CVS) ;;
2075       sample)       subdirs="$subdirs projects/sample"
2076     ;;
2077       privbracket)  subdirs="$subdirs projects/privbracket"
2078  ;;
2079       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2080  ;;
2081       llvm-test)    subdirs="$subdirs projects/llvm-test"
2082  ;;
2083       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2084 ;;
2085       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2086   ;;
2087       llvm-java)    subdirs="$subdirs projects/llvm-java"
2088  ;;
2089       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2090    ;;
2091       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2092  ;;
2093       poolalloc)    subdirs="$subdirs projects/poolalloc"
2094  ;;
2095       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2096  ;;
2097       *)
2098         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2099 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2100         ;;
2101     esac
2102   fi
2103 done
2104
2105
2106 # Make sure we can run config.sub.
2107 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2108   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2109 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2110    { (exit 1); exit 1; }; }
2111
2112 { echo "$as_me:$LINENO: checking build system type" >&5
2113 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2114 if test "${ac_cv_build+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   ac_build_alias=$build_alias
2118 test "x$ac_build_alias" = x &&
2119   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2120 test "x$ac_build_alias" = x &&
2121   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2122 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2123    { (exit 1); exit 1; }; }
2124 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2125   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 fi
2130 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2131 echo "${ECHO_T}$ac_cv_build" >&6; }
2132 case $ac_cv_build in
2133 *-*-*) ;;
2134 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2135 echo "$as_me: error: invalid value of canonical build" >&2;}
2136    { (exit 1); exit 1; }; };;
2137 esac
2138 build=$ac_cv_build
2139 ac_save_IFS=$IFS; IFS='-'
2140 set x $ac_cv_build
2141 shift
2142 build_cpu=$1
2143 build_vendor=$2
2144 shift; shift
2145 # Remember, the first character of IFS is used to create $*,
2146 # except with old shells:
2147 build_os=$*
2148 IFS=$ac_save_IFS
2149 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2150
2151
2152 { echo "$as_me:$LINENO: checking host system type" >&5
2153 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2154 if test "${ac_cv_host+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test "x$host_alias" = x; then
2158   ac_cv_host=$ac_cv_build
2159 else
2160   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2161     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2163    { (exit 1); exit 1; }; }
2164 fi
2165
2166 fi
2167 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2168 echo "${ECHO_T}$ac_cv_host" >&6; }
2169 case $ac_cv_host in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2172 echo "$as_me: error: invalid value of canonical host" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 host=$ac_cv_host
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_host
2178 shift
2179 host_cpu=$1
2180 host_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 host_os=$*
2185 IFS=$ac_save_IFS
2186 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { echo "$as_me:$LINENO: checking target system type" >&5
2190 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_target+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test "x$target_alias" = x; then
2195   ac_cv_target=$ac_cv_host
2196 else
2197   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2198     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2205 echo "${ECHO_T}$ac_cv_target" >&6; }
2206 case $ac_cv_target in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2209 echo "$as_me: error: invalid value of canonical target" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 target=$ac_cv_target
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_target
2215 shift
2216 target_cpu=$1
2217 target_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 target_os=$*
2222 IFS=$ac_save_IFS
2223 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 # The aliases save the names the user supplied, while $host etc.
2227 # will get canonicalized.
2228 test -n "$target_alias" &&
2229   test "$program_prefix$program_suffix$program_transform_name" = \
2230     NONENONEs,x,x, &&
2231   program_prefix=${target_alias}-
2232
2233 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2234 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2235 if test "${llvm_cv_os_type+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   case $host in
2239   *-*-aix*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="AIX"
2243     llvm_cv_platform_type="Unix" ;;
2244   *-*-irix*)
2245     llvm_cv_link_all_option="-Wl,--whole-archive"
2246     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247     llvm_cv_os_type="IRIX"
2248     llvm_cv_platform_type="Unix" ;;
2249   *-*-cygwin*)
2250     llvm_cv_link_all_option="-Wl,--whole-archive"
2251     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252     llvm_cv_os_type="Cygwin"
2253     llvm_cv_platform_type="Unix" ;;
2254   *-*-darwin*)
2255     llvm_cv_link_all_option="-Wl,-all_load"
2256     llvm_cv_link_all_option="-Wl,-noall_load"
2257     llvm_cv_os_type="Darwin"
2258     llvm_cv_platform_type="Unix" ;;
2259   *-*-freebsd*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="FreeBSD"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-openbsd*)
2265     llvm_cv_link_all_option="-Wl,--whole-archive"
2266     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267     llvm_cv_os_type="OpenBSD"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-netbsd*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="NetBSD"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-hpux*)
2275     llvm_cv_link_all_option="-Wl,--whole-archive"
2276     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277     llvm_cv_os_type="HP-UX"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-interix*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="Interix"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-linux*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="Linux"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-solaris*)
2290     llvm_cv_link_all_option="-Wl,-z,allextract"
2291     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2292     llvm_cv_os_type="SunOS"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-win32*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="Win32"
2298     llvm_cv_platform_type="Win32" ;;
2299   *-*-mingw*)
2300     llvm_cv_link_all_option="-Wl,--whole-archive"
2301     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302     llvm_cv_os_type="MingW"
2303     llvm_cv_platform_type="Win32" ;;
2304   *)
2305     llvm_cv_link_all_option=""
2306     llvm_cv_no_link_all_option=""
2307     llvm_cv_os_type="Unknown"
2308     llvm_cv_platform_type="Unknown" ;;
2309 esac
2310 fi
2311 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2312 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2313
2314 if test "$llvm_cv_os_type" = "Unknown" ; then
2315   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2316 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2317    { (exit 1); exit 1; }; }
2318 fi
2319
2320 OS=$llvm_cv_os_type
2321
2322
2323 LINKALL=$llvm_cv_link_all_option
2324
2325 NOLINKALL=$llvm_cv_no_link_all_option
2326
2327
2328 case $llvm_cv_platform_type in
2329   Unix)
2330
2331 cat >>confdefs.h <<\_ACEOF
2332 #define LLVM_ON_UNIX 1
2333 _ACEOF
2334
2335     LLVM_ON_UNIX=1
2336
2337     LLVM_ON_WIN32=0
2338
2339     ;;
2340   Win32)
2341
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_WIN32 1
2344 _ACEOF
2345
2346     LLVM_ON_UNIX=0
2347
2348     LLVM_ON_WIN32=1
2349
2350     ;;
2351 esac
2352
2353 { echo "$as_me:$LINENO: checking target architecture" >&5
2354 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2355 if test "${llvm_cv_target_arch+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   case $target in
2359   i?86-*)                 llvm_cv_target_arch="x86" ;;
2360   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2361   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2362   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2363   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2364   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2365   arm-*)                  llvm_cv_target_arch="ARM" ;;
2366   mips-*)                 llvm_cv_target_arch="Mips" ;;
2367   *)                      llvm_cv_target_arch="Unknown" ;;
2368 esac
2369 fi
2370 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2371 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372
2373 if test "$llvm_cv_target_arch" = "Unknown" ; then
2374   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2375 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 fi
2377
2378 ARCH=$llvm_cv_target_arch
2379
2380
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 if test -n "$ac_tool_prefix"; then
2387   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_CC+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$CC"; then
2395   ac_cv_prog_CC="$CC" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416   { echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6; }
2418 else
2419   { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423
2424 fi
2425 if test -z "$ac_cv_prog_CC"; then
2426   ac_ct_CC=$CC
2427   # Extract the first word of "gcc", so it can be a program name with args.
2428 set dummy gcc; ac_word=$2
2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   if test -n "$ac_ct_CC"; then
2435   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2444     ac_cv_prog_ac_ct_CC="gcc"
2445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446     break 2
2447   fi
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453 fi
2454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2457 echo "${ECHO_T}$ac_ct_CC" >&6; }
2458 else
2459   { echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6; }
2461 fi
2462
2463   if test "x$ac_ct_CC" = x; then
2464     CC=""
2465   else
2466     case $cross_compiling:$ac_tool_warned in
2467 yes:)
2468 { echo "$as_me:$LINENO: 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." >&5
2471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2472 whose name does not start with the host triplet.  If you think this
2473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2474 ac_tool_warned=yes ;;
2475 esac
2476     CC=$ac_ct_CC
2477   fi
2478 else
2479   CC="$ac_cv_prog_CC"
2480 fi
2481
2482 if test -z "$CC"; then
2483           if test -n "$ac_tool_prefix"; then
2484     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}cc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$CC"; then
2492   ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2501     ac_cv_prog_CC="${ac_tool_prefix}cc"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 CC=$ac_cv_prog_CC
2512 if test -n "$CC"; then
2513   { echo "$as_me:$LINENO: result: $CC" >&5
2514 echo "${ECHO_T}$CC" >&6; }
2515 else
2516   { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2518 fi
2519
2520
2521   fi
2522 fi
2523 if test -z "$CC"; then
2524   # Extract the first word of "cc", so it can be a program name with args.
2525 set dummy cc; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   if test -n "$CC"; then
2532   ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534   ac_prog_rejected=no
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2543        ac_prog_rejected=yes
2544        continue
2545      fi
2546     ac_cv_prog_CC="cc"
2547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548     break 2
2549   fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 if test $ac_prog_rejected = yes; then
2555   # We found a bogon in the path, so make sure we never use it.
2556   set dummy $ac_cv_prog_CC
2557   shift
2558   if test $# != 0; then
2559     # We chose a different compiler from the bogus one.
2560     # However, it has the same basename, so the bogon will be chosen
2561     # first if we set CC to just the basename; use the full file name.
2562     shift
2563     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2564   fi
2565 fi
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570   { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2572 else
2573   { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2575 fi
2576
2577
2578 fi
2579 if test -z "$CC"; then
2580   if test -n "$ac_tool_prefix"; then
2581   for ac_prog in cl.exe
2582   do
2583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$CC"; then
2591   ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612   { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620     test -n "$CC" && break
2621   done
2622 fi
2623 if test -z "$CC"; then
2624   ac_ct_CC=$CC
2625   for ac_prog in cl.exe
2626 do
2627   # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   if test -n "$ac_ct_CC"; then
2635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642   for ac_exec_ext in '' $ac_executable_extensions; do
2643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644     ac_cv_prog_ac_ct_CC="$ac_prog"
2645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646     break 2
2647   fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657 echo "${ECHO_T}$ac_ct_CC" >&6; }
2658 else
2659   { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2661 fi
2662
2663
2664   test -n "$ac_ct_CC" && break
2665 done
2666
2667   if test "x$ac_ct_CC" = x; then
2668     CC=""
2669   else
2670     case $cross_compiling:$ac_tool_warned in
2671 yes:)
2672 { echo "$as_me:$LINENO: 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." >&5
2675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2676 whose name does not start with the host triplet.  If you think this
2677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2678 ac_tool_warned=yes ;;
2679 esac
2680     CC=$ac_ct_CC
2681   fi
2682 fi
2683
2684 fi
2685
2686
2687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: no acceptable C compiler found in \$PATH
2690 See \`config.log' for more details." >&2;}
2691    { (exit 1); exit 1; }; }
2692
2693 # Provide some information about the compiler.
2694 echo "$as_me:$LINENO: checking for C compiler version" >&5
2695 ac_compiler=`set X $ac_compile; echo $2`
2696 { (ac_try="$ac_compiler --version >&5"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compiler --version >&5") 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }
2706 { (ac_try="$ac_compiler -v >&5"
2707 case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712   (eval "$ac_compiler -v >&5") 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }
2716 { (ac_try="$ac_compiler -V >&5"
2717 case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_compiler -V >&5") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }
2726
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733
2734 int
2735 main ()
2736 {
2737
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 ac_clean_files_save=$ac_clean_files
2743 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2744 # Try to create an executable without -o first, disregard a.out.
2745 # It will help us diagnose broken compilers, and finding out an intuition
2746 # of exeext.
2747 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2748 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2749 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2750 #
2751 # List of possible output files, starting from the most likely.
2752 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2753 # only as a last resort.  b.out is created by i960 compilers.
2754 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2755 #
2756 # The IRIX 6 linker writes into existing files which may not be
2757 # executable, retaining their permissions.  Remove them first so a
2758 # subsequent execution test works.
2759 ac_rmfiles=
2760 for ac_file in $ac_files
2761 do
2762   case $ac_file in
2763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2764     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765   esac
2766 done
2767 rm -f $ac_rmfiles
2768
2769 if { (ac_try="$ac_link_default"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_link_default") 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; then
2779   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2782 # so that the user can short-circuit this test for compilers unknown to
2783 # Autoconf.
2784 for ac_file in $ac_files
2785 do
2786   test -f "$ac_file" || continue
2787   case $ac_file in
2788     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2789         ;;
2790     [ab].out )
2791         # We found the default executable, but exeext='' is most
2792         # certainly right.
2793         break;;
2794     *.* )
2795         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796         then :; else
2797            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798         fi
2799         # We set ac_cv_exeext here because the later test for it is not
2800         # safe: cross compilers may not add the suffix if given an `-o'
2801         # argument, so we may need to know it at that point already.
2802         # Even if this section looks crufty: it has the advantage of
2803         # actually working.
2804         break;;
2805     * )
2806         break;;
2807   esac
2808 done
2809 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: C compiler cannot create executables
2818 See \`config.log' for more details." >&2;}
2819    { (exit 77); exit 77; }; }
2820 fi
2821
2822 ac_exeext=$ac_cv_exeext
2823 { echo "$as_me:$LINENO: result: $ac_file" >&5
2824 echo "${ECHO_T}$ac_file" >&6; }
2825
2826 # Check that the compiler produces executables we can run.  If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2829 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2830 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2831 # If not cross compiling, check that we can run a simple program.
2832 if test "$cross_compiling" != yes; then
2833   if { ac_try='./$ac_file'
2834   { (case "(($ac_try" in
2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836   *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839   (eval "$ac_try") 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; }; then
2843     cross_compiling=no
2844   else
2845     if test "$cross_compiling" = maybe; then
2846         cross_compiling=yes
2847     else
2848         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&5
2851 echo "$as_me: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&2;}
2854    { (exit 1); exit 1; }; }
2855     fi
2856   fi
2857 fi
2858 { echo "$as_me:$LINENO: result: yes" >&5
2859 echo "${ECHO_T}yes" >&6; }
2860
2861 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run.  If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2867 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868 echo "${ECHO_T}$cross_compiling" >&6; }
2869
2870 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2872 if { (ac_try="$ac_link"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_link") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; then
2882   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2884 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 # `rm'.
2886 for ac_file in conftest.exe conftest conftest.*; do
2887   test -f "$ac_file" || continue
2888   case $ac_file in
2889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2890     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891           break;;
2892     * ) break;;
2893   esac
2894 done
2895 else
2896   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." >&2;}
2900    { (exit 1); exit 1; }; }
2901 fi
2902
2903 rm -f conftest$ac_cv_exeext
2904 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2905 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2906
2907 rm -f conftest.$ac_ext
2908 EXEEXT=$ac_cv_exeext
2909 ac_exeext=$EXEEXT
2910 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2912 if test "${ac_cv_objext+set}" = set; then
2913   echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915   cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.o conftest.obj
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compile") 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; then
2941   for ac_file in conftest.o conftest.obj conftest.*; do
2942   test -f "$ac_file" || continue;
2943   case $ac_file in
2944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2945     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2946        break;;
2947   esac
2948 done
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2956 See \`config.log' for more details." >&2;}
2957    { (exit 1); exit 1; }; }
2958 fi
2959
2960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2961 fi
2962 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2963 echo "${ECHO_T}$ac_cv_objext" >&6; }
2964 OBJEXT=$ac_cv_objext
2965 ac_objext=$OBJEXT
2966 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981 #ifndef __GNUC__
2982        choke me
2983 #endif
2984
2985   ;
2986   return 0;
2987 }
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_compile") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3004   { (case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_try") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; } &&
3013          { ac_try='test -s conftest.$ac_objext'
3014   { (case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; }; then
3023   ac_compiler_gnu=yes
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028         ac_compiler_gnu=no
3029 fi
3030
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3033
3034 fi
3035 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3036 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3037 GCC=`test $ac_compiler_gnu = yes && echo yes`
3038 ac_test_CFLAGS=${CFLAGS+set}
3039 ac_save_CFLAGS=$CFLAGS
3040 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3041 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_cc_g+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   ac_save_c_werror_flag=$ac_c_werror_flag
3046    ac_c_werror_flag=yes
3047    ac_cv_prog_cc_g=no
3048    CFLAGS="-g"
3049    cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compile") 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; }; then
3098   ac_cv_prog_cc_g=yes
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103         CFLAGS=""
3104       cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } &&
3133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_c_werror_flag=$ac_save_c_werror_flag
3159          CFLAGS="-g"
3160          cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } &&
3189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   ac_cv_prog_cc_g=yes
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214
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 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224    ac_c_werror_flag=$ac_save_c_werror_flag
3225 fi
3226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3228 if test "$ac_test_CFLAGS" = set; then
3229   CFLAGS=$ac_save_CFLAGS
3230 elif test $ac_cv_prog_cc_g = yes; then
3231   if test "$GCC" = yes; then
3232     CFLAGS="-g -O2"
3233   else
3234     CFLAGS="-g"
3235   fi
3236 else
3237   if test "$GCC" = yes; then
3238     CFLAGS="-O2"
3239   else
3240     CFLAGS=
3241   fi
3242 fi
3243 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3244 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3245 if test "${ac_cv_prog_cc_c89+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   ac_cv_prog_cc_c89=no
3249 ac_save_CC=$CC
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #include <stdarg.h>
3257 #include <stdio.h>
3258 #include <sys/types.h>
3259 #include <sys/stat.h>
3260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3261 struct buf { int x; };
3262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263 static char *e (p, i)
3264      char **p;
3265      int i;
3266 {
3267   return p[i];
3268 }
3269 static char *f (char * (*g) (char **, int), char **p, ...)
3270 {
3271   char *s;
3272   va_list v;
3273   va_start (v,p);
3274   s = g (p, va_arg (v,int));
3275   va_end (v);
3276   return s;
3277 }
3278
3279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3280    function prototypes and stuff, but not '\xHH' hex character constants.
3281    These don't provoke an error unfortunately, instead are silently treated
3282    as 'x'.  The following induces an error, until -std is added to get
3283    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3284    array size at least.  It's necessary to write '\x00'==0 to get something
3285    that's true only with -std.  */
3286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287
3288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289    inside strings and character constants.  */
3290 #define FOO(x) 'x'
3291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292
3293 int test (int i, double x);
3294 struct s1 {int (*f) (int a);};
3295 struct s2 {int (*f) (double a);};
3296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297 int argc;
3298 char **argv;
3299 int
3300 main ()
3301 {
3302 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3309 do
3310   CC="$ac_save_CC $ac_arg"
3311   rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } &&
3325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326   { (case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331   (eval "$ac_try") 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; } &&
3335          { ac_try='test -s conftest.$ac_objext'
3336   { (case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_try") 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   ac_cv_prog_cc_c89=$ac_arg
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext
3354   test "x$ac_cv_prog_cc_c89" != "xno" && break
3355 done
3356 rm -f conftest.$ac_ext
3357 CC=$ac_save_CC
3358
3359 fi
3360 # AC_CACHE_VAL
3361 case "x$ac_cv_prog_cc_c89" in
3362   x)
3363     { echo "$as_me:$LINENO: result: none needed" >&5
3364 echo "${ECHO_T}none needed" >&6; } ;;
3365   xno)
3366     { echo "$as_me:$LINENO: result: unsupported" >&5
3367 echo "${ECHO_T}unsupported" >&6; } ;;
3368   *)
3369     CC="$CC $ac_cv_prog_cc_c89"
3370     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3371 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3372 esac
3373
3374
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3388 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3389 # On Suns, sometimes $CPP names a directory.
3390 if test -n "$CPP" && test -d "$CPP"; then
3391   CPP=
3392 fi
3393 if test -z "$CPP"; then
3394   if test "${ac_cv_prog_CPP+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397       # Double quotes because CPP needs to be expanded
3398     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399     do
3400       ac_preproc_ok=false
3401 for ac_c_preproc_warn_flag in '' yes
3402 do
3403   # Use a header file that comes with gcc, so configuring glibc
3404   # with a fresh cross-compiler works.
3405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406   # <limits.h> exists even on freestanding compilers.
3407   # On the NeXT, cc -E runs the code through the compiler's parser,
3408   # not just through cpp. "Syntax error" is here to catch this case.
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #ifdef __STDC__
3416 # include <limits.h>
3417 #else
3418 # include <assert.h>
3419 #endif
3420                      Syntax error
3421 _ACEOF
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } >/dev/null; then
3435   if test -s conftest.err; then
3436     ac_cpp_err=$ac_c_preproc_warn_flag
3437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438   else
3439     ac_cpp_err=
3440   fi
3441 else
3442   ac_cpp_err=yes
3443 fi
3444 if test -z "$ac_cpp_err"; then
3445   :
3446 else
3447   echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450   # Broken: fails on valid input.
3451 continue
3452 fi
3453
3454 rm -f conftest.err conftest.$ac_ext
3455
3456   # OK, works on sane cases.  Now check whether nonexistent headers
3457   # can be detected and how.
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <ac_nonexistent.h>
3465 _ACEOF
3466 if { (ac_try="$ac_cpp conftest.$ac_ext"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } >/dev/null; then
3479   if test -s conftest.err; then
3480     ac_cpp_err=$ac_c_preproc_warn_flag
3481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482   else
3483     ac_cpp_err=
3484   fi
3485 else
3486   ac_cpp_err=yes
3487 fi
3488 if test -z "$ac_cpp_err"; then
3489   # Broken: success on invalid input.
3490 continue
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495   # Passes both tests.
3496 ac_preproc_ok=:
3497 break
3498 fi
3499
3500 rm -f conftest.err conftest.$ac_ext
3501
3502 done
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3506   break
3507 fi
3508
3509     done
3510     ac_cv_prog_CPP=$CPP
3511
3512 fi
3513   CPP=$ac_cv_prog_CPP
3514 else
3515   ac_cv_prog_CPP=$CPP
3516 fi
3517 { echo "$as_me:$LINENO: result: $CPP" >&5
3518 echo "${ECHO_T}$CPP" >&6; }
3519 ac_preproc_ok=false
3520 for ac_c_preproc_warn_flag in '' yes
3521 do
3522   # Use a header file that comes with gcc, so configuring glibc
3523   # with a fresh cross-compiler works.
3524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3525   # <limits.h> exists even on freestanding compilers.
3526   # On the NeXT, cc -E runs the code through the compiler's parser,
3527   # not just through cpp. "Syntax error" is here to catch this case.
3528   cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534 #ifdef __STDC__
3535 # include <limits.h>
3536 #else
3537 # include <assert.h>
3538 #endif
3539                      Syntax error
3540 _ACEOF
3541 if { (ac_try="$ac_cpp conftest.$ac_ext"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } >/dev/null; then
3554   if test -s conftest.err; then
3555     ac_cpp_err=$ac_c_preproc_warn_flag
3556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3557   else
3558     ac_cpp_err=
3559   fi
3560 else
3561   ac_cpp_err=yes
3562 fi
3563 if test -z "$ac_cpp_err"; then
3564   :
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569   # Broken: fails on valid input.
3570 continue
3571 fi
3572
3573 rm -f conftest.err conftest.$ac_ext
3574
3575   # OK, works on sane cases.  Now check whether nonexistent headers
3576   # can be detected and how.
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583 #include <ac_nonexistent.h>
3584 _ACEOF
3585 if { (ac_try="$ac_cpp conftest.$ac_ext"
3586 case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592   ac_status=$?
3593   grep -v '^ *+' conftest.er1 >conftest.err
3594   rm -f conftest.er1
3595   cat conftest.err >&5
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); } >/dev/null; then
3598   if test -s conftest.err; then
3599     ac_cpp_err=$ac_c_preproc_warn_flag
3600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601   else
3602     ac_cpp_err=
3603   fi
3604 else
3605   ac_cpp_err=yes
3606 fi
3607 if test -z "$ac_cpp_err"; then
3608   # Broken: success on invalid input.
3609 continue
3610 else
3611   echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614   # Passes both tests.
3615 ac_preproc_ok=:
3616 break
3617 fi
3618
3619 rm -f conftest.err conftest.$ac_ext
3620
3621 done
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then
3625   :
3626 else
3627   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3628 See \`config.log' for more details." >&5
3629 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details." >&2;}
3631    { (exit 1); exit 1; }; }
3632 fi
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
3640
3641 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3642 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3643 if test "${ac_cv_path_GREP+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   # Extract the first word of "grep ggrep" to use in msg output
3647 if test -z "$GREP"; then
3648 set dummy grep ggrep; ac_prog_name=$2
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   ac_path_GREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_prog in grep ggrep; do
3660   for ac_exec_ext in '' $ac_executable_extensions; do
3661     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3662     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3663     # Check for GNU ac_path_GREP and select it if it is found.
3664   # Check for GNU $ac_path_GREP
3665 case `"$ac_path_GREP" --version 2>&1` in
3666 *GNU*)
3667   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3668 *)
3669   ac_count=0
3670   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671   while :
3672   do
3673     cat "conftest.in" "conftest.in" >"conftest.tmp"
3674     mv "conftest.tmp" "conftest.in"
3675     cp "conftest.in" "conftest.nl"
3676     echo 'GREP' >> "conftest.nl"
3677     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679     ac_count=`expr $ac_count + 1`
3680     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3681       # Best one so far, save it but keep looking for a better one
3682       ac_cv_path_GREP="$ac_path_GREP"
3683       ac_path_GREP_max=$ac_count
3684     fi
3685     # 10*(2^10) chars as input seems more than enough
3686     test $ac_count -gt 10 && break
3687   done
3688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689 esac
3690
3691
3692     $ac_path_GREP_found && break 3
3693   done
3694 done
3695
3696 done
3697 IFS=$as_save_IFS
3698
3699
3700 fi
3701
3702 GREP="$ac_cv_path_GREP"
3703 if test -z "$GREP"; then
3704   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706    { (exit 1); exit 1; }; }
3707 fi
3708
3709 else
3710   ac_cv_path_GREP=$GREP
3711 fi
3712
3713
3714 fi
3715 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3716 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3717  GREP="$ac_cv_path_GREP"
3718
3719
3720 { echo "$as_me:$LINENO: checking for egrep" >&5
3721 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3722 if test "${ac_cv_path_EGREP+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3726    then ac_cv_path_EGREP="$GREP -E"
3727    else
3728      # Extract the first word of "egrep" to use in msg output
3729 if test -z "$EGREP"; then
3730 set dummy egrep; ac_prog_name=$2
3731 if test "${ac_cv_path_EGREP+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   ac_path_EGREP_found=false
3735 # Loop through the user's path and test for each of PROGNAME-LIST
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3738 do
3739   IFS=$as_save_IFS
3740   test -z "$as_dir" && as_dir=.
3741   for ac_prog in egrep; do
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3744     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3745     # Check for GNU ac_path_EGREP and select it if it is found.
3746   # Check for GNU $ac_path_EGREP
3747 case `"$ac_path_EGREP" --version 2>&1` in
3748 *GNU*)
3749   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3750 *)
3751   ac_count=0
3752   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3753   while :
3754   do
3755     cat "conftest.in" "conftest.in" >"conftest.tmp"
3756     mv "conftest.tmp" "conftest.in"
3757     cp "conftest.in" "conftest.nl"
3758     echo 'EGREP' >> "conftest.nl"
3759     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3760     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3761     ac_count=`expr $ac_count + 1`
3762     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3763       # Best one so far, save it but keep looking for a better one
3764       ac_cv_path_EGREP="$ac_path_EGREP"
3765       ac_path_EGREP_max=$ac_count
3766     fi
3767     # 10*(2^10) chars as input seems more than enough
3768     test $ac_count -gt 10 && break
3769   done
3770   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3771 esac
3772
3773
3774     $ac_path_EGREP_found && break 3
3775   done
3776 done
3777
3778 done
3779 IFS=$as_save_IFS
3780
3781
3782 fi
3783
3784 EGREP="$ac_cv_path_EGREP"
3785 if test -z "$EGREP"; then
3786   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3787 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3788    { (exit 1); exit 1; }; }
3789 fi
3790
3791 else
3792   ac_cv_path_EGREP=$EGREP
3793 fi
3794
3795
3796    fi
3797 fi
3798 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3799 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3800  EGREP="$ac_cv_path_EGREP"
3801
3802
3803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3805 if test "${ac_cv_header_stdc+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h.  */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h.  */
3814 #include <stdlib.h>
3815 #include <stdarg.h>
3816 #include <string.h>
3817 #include <float.h>
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (ac_try="$ac_compile"
3829 case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834   (eval "$ac_compile") 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } &&
3841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842   { (case "(($ac_try" in
3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844   *) ac_try_echo=$ac_try;;
3845 esac
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847   (eval "$ac_try") 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; } &&
3851          { ac_try='test -s conftest.$ac_objext'
3852   { (case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_try") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; }; then
3861   ac_cv_header_stdc=yes
3862 else
3863   echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866         ac_cv_header_stdc=no
3867 fi
3868
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870
3871 if test $ac_cv_header_stdc = yes; then
3872   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879 #include <string.h>
3880
3881 _ACEOF
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883   $EGREP "memchr" >/dev/null 2>&1; then
3884   :
3885 else
3886   ac_cv_header_stdc=no
3887 fi
3888 rm -f conftest*
3889
3890 fi
3891
3892 if test $ac_cv_header_stdc = yes; then
3893   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3894   cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h.  */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h.  */
3900 #include <stdlib.h>
3901
3902 _ACEOF
3903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904   $EGREP "free" >/dev/null 2>&1; then
3905   :
3906 else
3907   ac_cv_header_stdc=no
3908 fi
3909 rm -f conftest*
3910
3911 fi
3912
3913 if test $ac_cv_header_stdc = yes; then
3914   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3915   if test "$cross_compiling" = yes; then
3916   :
3917 else
3918   cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924 #include <ctype.h>
3925 #include <stdlib.h>
3926 #if ((' ' & 0x0FF) == 0x020)
3927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3929 #else
3930 # define ISLOWER(c) \
3931                    (('a' <= (c) && (c) <= 'i') \
3932                      || ('j' <= (c) && (c) <= 'r') \
3933                      || ('s' <= (c) && (c) <= 'z'))
3934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3935 #endif
3936
3937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3938 int
3939 main ()
3940 {
3941   int i;
3942   for (i = 0; i < 256; i++)
3943     if (XOR (islower (i), ISLOWER (i))
3944         || toupper (i) != TOUPPER (i))
3945       return 2;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest$ac_exeext
3950 if { (ac_try="$ac_link"
3951 case "(($ac_try" in
3952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953   *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956   (eval "$ac_link") 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3960   { (case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_try") 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }; }; then
3969   :
3970 else
3971   echo "$as_me: program exited with status $ac_status" >&5
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 ( exit $ac_status )
3976 ac_cv_header_stdc=no
3977 fi
3978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3979 fi
3980
3981
3982 fi
3983 fi
3984 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3985 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3986 if test $ac_cv_header_stdc = yes; then
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define STDC_HEADERS 1
3990 _ACEOF
3991
3992 fi
3993
3994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4005                   inttypes.h stdint.h unistd.h
4006 do
4007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019 $ac_includes_default
4020
4021 #include <$ac_header>
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030   (eval "$ac_compile") 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038   { (case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043   (eval "$ac_try") 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   eval "$as_ac_Header=yes"
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062         eval "$as_ac_Header=no"
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 fi
4067 ac_res=`eval echo '${'$as_ac_Header'}'`
4068                { echo "$as_me:$LINENO: result: $ac_res" >&5
4069 echo "${ECHO_T}$ac_res" >&6; }
4070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4071   cat >>confdefs.h <<_ACEOF
4072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4073 _ACEOF
4074
4075 fi
4076
4077 done
4078
4079
4080 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4081 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4082 if test "${ac_cv_c_bigendian+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   # See if sys/param.h defines the BYTE_ORDER macro.
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h.  */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h.  */
4092 #include <sys/types.h>
4093 #include <sys/param.h>
4094
4095 int
4096 main ()
4097 {
4098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4099  bogus endian macros
4100 #endif
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (ac_try="$ac_compile"
4108 case "(($ac_try" in
4109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110   *) ac_try_echo=$ac_try;;
4111 esac
4112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113   (eval "$ac_compile") 2>conftest.er1
4114   ac_status=$?
4115   grep -v '^ *+' conftest.er1 >conftest.err
4116   rm -f conftest.er1
4117   cat conftest.err >&5
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); } &&
4120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4121   { (case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126   (eval "$ac_try") 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; } &&
4130          { ac_try='test -s conftest.$ac_objext'
4131   { (case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136   (eval "$ac_try") 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; }; then
4140   # It does; now see whether it defined to BIG_ENDIAN or not.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4149
4150 int
4151 main ()
4152 {
4153 #if BYTE_ORDER != BIG_ENDIAN
4154  not big endian
4155 #endif
4156
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4163 case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_compile") 2>conftest.er1
4169   ac_status=$?
4170   grep -v '^ *+' conftest.er1 >conftest.err
4171   rm -f conftest.er1
4172   cat conftest.err >&5
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } &&
4175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176   { (case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181   (eval "$ac_try") 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; } &&
4185          { ac_try='test -s conftest.$ac_objext'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191   (eval "$ac_try") 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; }; then
4195   ac_cv_c_bigendian=yes
4196 else
4197   echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200         ac_cv_c_bigendian=no
4201 fi
4202
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 else
4205   echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208         # It does not; compile a test program.
4209 if test "$cross_compiling" = yes; then
4210   # try to guess the endianness by grepping values into an object file
4211   ac_cv_c_bigendian=unknown
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4219 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4220 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4221 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4222 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4223 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4224 int
4225 main ()
4226 {
4227  _ascii (); _ebcdic ();
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (ac_try="$ac_compile"
4234 case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239   (eval "$ac_compile") 2>conftest.er1
4240   ac_status=$?
4241   grep -v '^ *+' conftest.er1 >conftest.err
4242   rm -f conftest.er1
4243   cat conftest.err >&5
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } &&
4246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4247   { (case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_try") 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }; } &&
4256          { ac_try='test -s conftest.$ac_objext'
4257   { (case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_try") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; }; then
4266   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4267   ac_cv_c_bigendian=yes
4268 fi
4269 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4270   if test "$ac_cv_c_bigendian" = unknown; then
4271     ac_cv_c_bigendian=no
4272   else
4273     # finding both strings is unlikely to happen, but who knows?
4274     ac_cv_c_bigendian=unknown
4275   fi
4276 fi
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282 fi
4283
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 else
4286   cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292 $ac_includes_default
4293 int
4294 main ()
4295 {
4296
4297   /* Are we little or big endian?  From Harbison&Steele.  */
4298   union
4299   {
4300     long int l;
4301     char c[sizeof (long int)];
4302   } u;
4303   u.l = 1;
4304   return u.c[sizeof (long int) - 1] == 1;
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest$ac_exeext
4311 if { (ac_try="$ac_link"
4312 case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317   (eval "$ac_link") 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4321   { (case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326   (eval "$ac_try") 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; }; then
4330   ac_cv_c_bigendian=no
4331 else
4332   echo "$as_me: program exited with status $ac_status" >&5
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 ( exit $ac_status )
4337 ac_cv_c_bigendian=yes
4338 fi
4339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4340 fi
4341
4342
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4349 case $ac_cv_c_bigendian in
4350   yes)
4351     ENDIAN=big
4352  ;;
4353   no)
4354     ENDIAN=little
4355  ;;
4356   *)
4357     { { echo "$as_me:$LINENO: error: unknown endianness
4358 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4359 echo "$as_me: error: unknown endianness
4360 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4361    { (exit 1); exit 1; }; } ;;
4362 esac
4363
4364
4365 if test "$cross_compiling" = yes; then
4366   LLVM_CROSS_COMPILING=1
4367
4368
4369 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4370 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4371 if test "${ac_cv_build_exeext+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4375   ac_cv_build_exeext=.exe
4376 else
4377   ac_build_prefix=${build_alias}-
4378
4379   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4380 set dummy ${ac_build_prefix}gcc; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$BUILD_CC"; then
4387   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4396     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 BUILD_CC=$ac_cv_prog_BUILD_CC
4407 if test -n "$BUILD_CC"; then
4408   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4409 echo "${ECHO_T}$BUILD_CC" >&6; }
4410 else
4411   { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4413 fi
4414
4415
4416   if test -z "$BUILD_CC"; then
4417      # Extract the first word of "gcc", so it can be a program name with args.
4418 set dummy gcc; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   if test -n "$BUILD_CC"; then
4425   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432   for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     ac_cv_prog_BUILD_CC="gcc"
4435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436     break 2
4437   fi
4438 done
4439 done
4440 IFS=$as_save_IFS
4441
4442 fi
4443 fi
4444 BUILD_CC=$ac_cv_prog_BUILD_CC
4445 if test -n "$BUILD_CC"; then
4446   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4447 echo "${ECHO_T}$BUILD_CC" >&6; }
4448 else
4449   { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4451 fi
4452
4453
4454      if test -z "$BUILD_CC"; then
4455        # Extract the first word of "cc", so it can be a program name with args.
4456 set dummy cc; ac_word=$2
4457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4459 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   if test -n "$BUILD_CC"; then
4463   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4464 else
4465   ac_prog_rejected=no
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471   for ac_exec_ext in '' $ac_executable_extensions; do
4472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4473     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4474        ac_prog_rejected=yes
4475        continue
4476      fi
4477     ac_cv_prog_BUILD_CC="cc"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485 if test $ac_prog_rejected = yes; then
4486   # We found a bogon in the path, so make sure we never use it.
4487   set dummy $ac_cv_prog_BUILD_CC
4488   shift
4489   if test $# != 0; then
4490     # We chose a different compiler from the bogus one.
4491     # However, it has the same basename, so the bogon will be chosen
4492     # first if we set BUILD_CC to just the basename; use the full file name.
4493     shift
4494     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4495   fi
4496 fi
4497 fi
4498 fi
4499 BUILD_CC=$ac_cv_prog_BUILD_CC
4500 if test -n "$BUILD_CC"; then
4501   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502 echo "${ECHO_T}$BUILD_CC" >&6; }
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4507
4508
4509      fi
4510   fi
4511   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4512 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4513    { (exit 1); exit 1; }; }
4514   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4515   rm -f conftest*
4516   echo 'int main () { return 0; }' > conftest.$ac_ext
4517   ac_cv_build_exeext=
4518   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4519   (eval $ac_build_link) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; then
4523     for file in conftest.*; do
4524       case $file in
4525       *.c | *.o | *.obj) ;;
4526       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4527       esac
4528     done
4529   else
4530     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4531 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4532    { (exit 1); exit 1; }; }
4533   fi
4534   rm -f conftest*
4535   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4536 fi
4537 fi
4538
4539 BUILD_EXEEXT=""
4540 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4541 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4542 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4543 ac_build_exeext=$BUILD_EXEEXT
4544
4545 else
4546   LLVM_CROSS_COMPILING=0
4547
4548 fi
4549
4550 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4551   cvsbuild="yes"
4552   optimize="no"
4553   CVSBUILD=CVSBUILD=1
4554
4555 else
4556   cvsbuild="no"
4557   optimize="yes"
4558 fi
4559
4560
4561 # Check whether --enable-optimized was given.
4562 if test "${enable_optimized+set}" = set; then
4563   enableval=$enable_optimized;
4564 else
4565   enableval=$optimize
4566 fi
4567
4568 if test ${enableval} = "no" ; then
4569   ENABLE_OPTIMIZED=
4570
4571 else
4572   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4573
4574 fi
4575
4576 # Check whether --enable-assertions was given.
4577 if test "${enable_assertions+set}" = set; then
4578   enableval=$enable_assertions;
4579 else
4580   enableval="yes"
4581 fi
4582
4583 if test ${enableval} = "yes" ; then
4584   DISABLE_ASSERTIONS=
4585
4586 else
4587   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4588
4589 fi
4590
4591 # Check whether --enable-expensive-checks was given.
4592 if test "${enable_expensive_checks+set}" = set; then
4593   enableval=$enable_expensive_checks;
4594 else
4595   enableval="no"
4596 fi
4597
4598 if test ${enableval} = "yes" ; then
4599   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4600
4601   EXPENSIVE_CHECKS=yes
4602
4603 else
4604   ENABLE_EXPENSIVE_CHECKS=
4605
4606   EXPENSIVE_CHECKS=no
4607
4608 fi
4609
4610 # Check whether --enable-debug-runtime was given.
4611 if test "${enable_debug_runtime+set}" = set; then
4612   enableval=$enable_debug_runtime;
4613 else
4614   enableval=no
4615 fi
4616
4617 if test ${enableval} = "no" ; then
4618   DEBUG_RUNTIME=
4619
4620 else
4621   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4622
4623 fi
4624
4625 # Check whether --enable-jit was given.
4626 if test "${enable_jit+set}" = set; then
4627   enableval=$enable_jit;
4628 else
4629   enableval=default
4630 fi
4631
4632 if test ${enableval} = "no"
4633 then
4634   JIT=
4635
4636 else
4637   case "$llvm_cv_target_arch" in
4638     x86)     TARGET_HAS_JIT=1
4639  ;;
4640     Sparc)   TARGET_HAS_JIT=0
4641  ;;
4642     PowerPC) TARGET_HAS_JIT=1
4643  ;;
4644     x86_64)  TARGET_HAS_JIT=1
4645  ;;
4646     Alpha)   TARGET_HAS_JIT=1
4647  ;;
4648     IA64)    TARGET_HAS_JIT=0
4649  ;;
4650     ARM)     TARGET_HAS_JIT=0
4651  ;;
4652     Mips)    TARGET_HAS_JIT=0
4653  ;;
4654     *)       TARGET_HAS_JIT=0
4655  ;;
4656   esac
4657 fi
4658
4659 # Check whether --enable-doxygen was given.
4660 if test "${enable_doxygen+set}" = set; then
4661   enableval=$enable_doxygen;
4662 else
4663   enableval=default
4664 fi
4665
4666 case "$enableval" in
4667   yes) ENABLE_DOXYGEN=1
4668  ;;
4669   no)  ENABLE_DOXYGEN=0
4670  ;;
4671   default) ENABLE_DOXYGEN=0
4672  ;;
4673   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4674 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4675    { (exit 1); exit 1; }; } ;;
4676 esac
4677
4678 # Check whether --enable-threads was given.
4679 if test "${enable_threads+set}" = set; then
4680   enableval=$enable_threads;
4681 else
4682   enableval=default
4683 fi
4684
4685 case "$enableval" in
4686   yes) ENABLE_THREADS=1
4687  ;;
4688   no)  ENABLE_THREADS=0
4689  ;;
4690   default) ENABLE_THREADS=1
4691  ;;
4692   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4693 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4694    { (exit 1); exit 1; }; } ;;
4695 esac
4696
4697 cat >>confdefs.h <<_ACEOF
4698 #define ENABLE_THREADS $ENABLE_THREADS
4699 _ACEOF
4700
4701
4702 # Check whether --enable-pic was given.
4703 if test "${enable_pic+set}" = set; then
4704   enableval=$enable_pic;
4705 else
4706   enableval=default
4707 fi
4708
4709 case "$enableval" in
4710   yes) ENABLE_PIC=1
4711  ;;
4712   no)  ENABLE_PIC=0
4713  ;;
4714   default) ENABLE_PIC=0
4715  ;;
4716   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4717 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4718    { (exit 1); exit 1; }; } ;;
4719 esac
4720
4721 cat >>confdefs.h <<_ACEOF
4722 #define ENABLE_PIC $ENABLE_PIC
4723 _ACEOF
4724
4725
4726 TARGETS_TO_BUILD=""
4727 # Check whether --enable-targets was given.
4728 if test "${enable_targets+set}" = set; then
4729   enableval=$enable_targets;
4730 else
4731   enableval=all
4732 fi
4733
4734 case "$enableval" in
4735   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4736   host-only)
4737     case "$llvm_cv_target_arch" in
4738       x86)     TARGETS_TO_BUILD="X86" ;;
4739       x86_64)  TARGETS_TO_BUILD="X86" ;;
4740       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4741       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4742       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4743       IA64)    TARGETS_TO_BUILD="IA64" ;;
4744       ARM)     TARGETS_TO_BUILD="ARM" ;;
4745       Mips)    TARGETS_TO_BUILD="Mips" ;;
4746       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4747 echo "$as_me: error: Can not set target to build" >&2;}
4748    { (exit 1); exit 1; }; } ;;
4749     esac
4750     ;;
4751   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4752       case "$a_target" in
4753         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4755         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4756         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4757         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4758         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4759         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4760         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4761         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4762 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4763    { (exit 1); exit 1; }; } ;;
4764       esac
4765   done
4766   ;;
4767 esac
4768 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4769 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4770
4771
4772 # Check whether --enable-cbe-printf-a was given.
4773 if test "${enable_cbe_printf_a+set}" = set; then
4774   enableval=$enable_cbe_printf_a;
4775 else
4776   enableval=default
4777 fi
4778
4779 case "$enableval" in
4780   yes) ENABLE_CBE_PRINTF_A=1
4781  ;;
4782   no)  ENABLE_CBE_PRINTF_A=0
4783  ;;
4784   default)  ENABLE_CBE_PRINTF_A=1
4785  ;;
4786   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4787 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4788    { (exit 1); exit 1; }; } ;;
4789 esac
4790
4791 cat >>confdefs.h <<_ACEOF
4792 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4793 _ACEOF
4794
4795
4796
4797 # Check whether --with-llvmgccdir was given.
4798 if test "${with_llvmgccdir+set}" = set; then
4799   withval=$with_llvmgccdir;
4800 else
4801   withval=default
4802 fi
4803
4804 case "$withval" in
4805   default) WITH_LLVMGCCDIR=default ;;
4806   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4807   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4808 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4809    { (exit 1); exit 1; }; } ;;
4810 esac
4811
4812
4813 # Check whether --with-extra-options was given.
4814 if test "${with_extra_options+set}" = set; then
4815   withval=$with_extra_options;
4816 else
4817   withval=default
4818 fi
4819
4820 case "$withval" in
4821   default) EXTRA_OPTIONS= ;;
4822   *) EXTRA_OPTIONS=$withval ;;
4823 esac
4824 EXTRA_OPTIONS=$EXTRA_OPTIONS
4825
4826
4827
4828 ac_ext=c
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4834 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4835 # On Suns, sometimes $CPP names a directory.
4836 if test -n "$CPP" && test -d "$CPP"; then
4837   CPP=
4838 fi
4839 if test -z "$CPP"; then
4840   if test "${ac_cv_prog_CPP+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843       # Double quotes because CPP needs to be expanded
4844     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4845     do
4846       ac_preproc_ok=false
4847 for ac_c_preproc_warn_flag in '' yes
4848 do
4849   # Use a header file that comes with gcc, so configuring glibc
4850   # with a fresh cross-compiler works.
4851   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4852   # <limits.h> exists even on freestanding compilers.
4853   # On the NeXT, cc -E runs the code through the compiler's parser,
4854   # not just through cpp. "Syntax error" is here to catch this case.
4855   cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h.  */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h.  */
4861 #ifdef __STDC__
4862 # include <limits.h>
4863 #else
4864 # include <assert.h>
4865 #endif
4866                      Syntax error
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871   *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } >/dev/null; then
4881   if test -s conftest.err; then
4882     ac_cpp_err=$ac_c_preproc_warn_flag
4883     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4884   else
4885     ac_cpp_err=
4886   fi
4887 else
4888   ac_cpp_err=yes
4889 fi
4890 if test -z "$ac_cpp_err"; then
4891   :
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896   # Broken: fails on valid input.
4897 continue
4898 fi
4899
4900 rm -f conftest.err conftest.$ac_ext
4901
4902   # OK, works on sane cases.  Now check whether nonexistent headers
4903   # can be detected and how.
4904   cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <ac_nonexistent.h>
4911 _ACEOF
4912 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919   ac_status=$?
4920   grep -v '^ *+' conftest.er1 >conftest.err
4921   rm -f conftest.er1
4922   cat conftest.err >&5
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } >/dev/null; then
4925   if test -s conftest.err; then
4926     ac_cpp_err=$ac_c_preproc_warn_flag
4927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928   else
4929     ac_cpp_err=
4930   fi
4931 else
4932   ac_cpp_err=yes
4933 fi
4934 if test -z "$ac_cpp_err"; then
4935   # Broken: success on invalid input.
4936 continue
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941   # Passes both tests.
4942 ac_preproc_ok=:
4943 break
4944 fi
4945
4946 rm -f conftest.err conftest.$ac_ext
4947
4948 done
4949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950 rm -f conftest.err conftest.$ac_ext
4951 if $ac_preproc_ok; then
4952   break
4953 fi
4954
4955     done
4956     ac_cv_prog_CPP=$CPP
4957
4958 fi
4959   CPP=$ac_cv_prog_CPP
4960 else
4961   ac_cv_prog_CPP=$CPP
4962 fi
4963 { echo "$as_me:$LINENO: result: $CPP" >&5
4964 echo "${ECHO_T}$CPP" >&6; }
4965 ac_preproc_ok=false
4966 for ac_c_preproc_warn_flag in '' yes
4967 do
4968   # Use a header file that comes with gcc, so configuring glibc
4969   # with a fresh cross-compiler works.
4970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4971   # <limits.h> exists even on freestanding compilers.
4972   # On the NeXT, cc -E runs the code through the compiler's parser,
4973   # not just through cpp. "Syntax error" is here to catch this case.
4974   cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #ifdef __STDC__
4981 # include <limits.h>
4982 #else
4983 # include <assert.h>
4984 #endif
4985                      Syntax error
4986 _ACEOF
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 case "(($ac_try" in
4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990   *) ac_try_echo=$ac_try;;
4991 esac
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994   ac_status=$?
4995   grep -v '^ *+' conftest.er1 >conftest.err
4996   rm -f conftest.er1
4997   cat conftest.err >&5
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); } >/dev/null; then
5000   if test -s conftest.err; then
5001     ac_cpp_err=$ac_c_preproc_warn_flag
5002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5003   else
5004     ac_cpp_err=
5005   fi
5006 else
5007   ac_cpp_err=yes
5008 fi
5009 if test -z "$ac_cpp_err"; then
5010   :
5011 else
5012   echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015   # Broken: fails on valid input.
5016 continue
5017 fi
5018
5019 rm -f conftest.err conftest.$ac_ext
5020
5021   # OK, works on sane cases.  Now check whether nonexistent headers
5022   # can be detected and how.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <ac_nonexistent.h>
5030 _ACEOF
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 case "(($ac_try" in
5033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034   *) ac_try_echo=$ac_try;;
5035 esac
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038   ac_status=$?
5039   grep -v '^ *+' conftest.er1 >conftest.err
5040   rm -f conftest.er1
5041   cat conftest.err >&5
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } >/dev/null; then
5044   if test -s conftest.err; then
5045     ac_cpp_err=$ac_c_preproc_warn_flag
5046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5047   else
5048     ac_cpp_err=
5049   fi
5050 else
5051   ac_cpp_err=yes
5052 fi
5053 if test -z "$ac_cpp_err"; then
5054   # Broken: success on invalid input.
5055 continue
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060   # Passes both tests.
5061 ac_preproc_ok=:
5062 break
5063 fi
5064
5065 rm -f conftest.err conftest.$ac_ext
5066
5067 done
5068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069 rm -f conftest.err conftest.$ac_ext
5070 if $ac_preproc_ok; then
5071   :
5072 else
5073   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5074 See \`config.log' for more details." >&5
5075 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5076 See \`config.log' for more details." >&2;}
5077    { (exit 1); exit 1; }; }
5078 fi
5079
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 if test -n "$ac_tool_prefix"; then
5092   for ac_prog in gcc
5093   do
5094     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_prog_CC+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   if test -n "$CC"; then
5102   ac_cv_prog_CC="$CC" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109   for ac_exec_ext in '' $ac_executable_extensions; do
5110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5111     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 CC=$ac_cv_prog_CC
5122 if test -n "$CC"; then
5123   { echo "$as_me:$LINENO: result: $CC" >&5
5124 echo "${ECHO_T}$CC" >&6; }
5125 else
5126   { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5128 fi
5129
5130
5131     test -n "$CC" && break
5132   done
5133 fi
5134 if test -z "$CC"; then
5135   ac_ct_CC=$CC
5136   for ac_prog in gcc
5137 do
5138   # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -n "$ac_ct_CC"; then
5146   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5155     ac_cv_prog_ac_ct_CC="$ac_prog"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5166 if test -n "$ac_ct_CC"; then
5167   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5168 echo "${ECHO_T}$ac_ct_CC" >&6; }
5169 else
5170   { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5172 fi
5173
5174
5175   test -n "$ac_ct_CC" && break
5176 done
5177
5178   if test "x$ac_ct_CC" = x; then
5179     CC=""
5180   else
5181     case $cross_compiling:$ac_tool_warned in
5182 yes:)
5183 { echo "$as_me:$LINENO: 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." >&5
5186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5187 whose name does not start with the host triplet.  If you think this
5188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5189 ac_tool_warned=yes ;;
5190 esac
5191     CC=$ac_ct_CC
5192   fi
5193 fi
5194
5195
5196 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5197 See \`config.log' for more details." >&5
5198 echo "$as_me: error: no acceptable C compiler found in \$PATH
5199 See \`config.log' for more details." >&2;}
5200    { (exit 1); exit 1; }; }
5201
5202 # Provide some information about the compiler.
5203 echo "$as_me:$LINENO: checking for C compiler version" >&5
5204 ac_compiler=`set X $ac_compile; echo $2`
5205 { (ac_try="$ac_compiler --version >&5"
5206 case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_compiler --version >&5") 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }
5215 { (ac_try="$ac_compiler -v >&5"
5216 case "(($ac_try" in
5217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218   *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221   (eval "$ac_compiler -v >&5") 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }
5225 { (ac_try="$ac_compiler -V >&5"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_compiler -V >&5") 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }
5235
5236 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5237 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5238 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247
5248 int
5249 main ()
5250 {
5251 #ifndef __GNUC__
5252        choke me
5253 #endif
5254
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (ac_try="$ac_compile"
5261 case "(($ac_try" in
5262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263   *) ac_try_echo=$ac_try;;
5264 esac
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266   (eval "$ac_compile") 2>conftest.er1
5267   ac_status=$?
5268   grep -v '^ *+' conftest.er1 >conftest.err
5269   rm -f conftest.er1
5270   cat conftest.err >&5
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } &&
5273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274   { (case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_try") 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; } &&
5283          { ac_try='test -s conftest.$ac_objext'
5284   { (case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_try") 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }; }; then
5293   ac_compiler_gnu=yes
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298         ac_compiler_gnu=no
5299 fi
5300
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5303
5304 fi
5305 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5307 GCC=`test $ac_compiler_gnu = yes && echo yes`
5308 ac_test_CFLAGS=${CFLAGS+set}
5309 ac_save_CFLAGS=$CFLAGS
5310 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5312 if test "${ac_cv_prog_cc_g+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   ac_save_c_werror_flag=$ac_c_werror_flag
5316    ac_c_werror_flag=yes
5317    ac_cv_prog_cc_g=no
5318    CFLAGS="-g"
5319    cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325
5326 int
5327 main ()
5328 {
5329
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338   *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341   (eval "$ac_compile") 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5349   { (case "(($ac_try" in
5350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351   *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354   (eval "$ac_try") 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }; } &&
5358          { ac_try='test -s conftest.$ac_objext'
5359   { (case "(($ac_try" in
5360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361   *) ac_try_echo=$ac_try;;
5362 esac
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364   (eval "$ac_try") 2>&5
5365   ac_status=$?
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); }; }; then
5368   ac_cv_prog_cc_g=yes
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373         CFLAGS=""
5374       cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380
5381 int
5382 main ()
5383 {
5384
5385   ;
5386   return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5391 case "(($ac_try" in
5392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393   *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396   (eval "$ac_compile") 2>conftest.er1
5397   ac_status=$?
5398   grep -v '^ *+' conftest.er1 >conftest.err
5399   rm -f conftest.er1
5400   cat conftest.err >&5
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5404   { (case "(($ac_try" in
5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406   *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409   (eval "$ac_try") 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; } &&
5413          { ac_try='test -s conftest.$ac_objext'
5414   { (case "(($ac_try" in
5415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416   *) ac_try_echo=$ac_try;;
5417 esac
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419   (eval "$ac_try") 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   :
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428         ac_c_werror_flag=$ac_save_c_werror_flag
5429          CFLAGS="-g"
5430          cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436
5437 int
5438 main ()
5439 {
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449   *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452   (eval "$ac_compile") 2>conftest.er1
5453   ac_status=$?
5454   grep -v '^ *+' conftest.er1 >conftest.err
5455   rm -f conftest.er1
5456   cat conftest.err >&5
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } &&
5459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5460   { (case "(($ac_try" in
5461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462   *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465   (eval "$ac_try") 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; } &&
5469          { ac_try='test -s conftest.$ac_objext'
5470   { (case "(($ac_try" in
5471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472   *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475   (eval "$ac_try") 2>&5
5476   ac_status=$?
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); }; }; then
5479   ac_cv_prog_cc_g=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
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 fi
5492
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494    ac_c_werror_flag=$ac_save_c_werror_flag
5495 fi
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5498 if test "$ac_test_CFLAGS" = set; then
5499   CFLAGS=$ac_save_CFLAGS
5500 elif test $ac_cv_prog_cc_g = yes; then
5501   if test "$GCC" = yes; then
5502     CFLAGS="-g -O2"
5503   else
5504     CFLAGS="-g"
5505   fi
5506 else
5507   if test "$GCC" = yes; then
5508     CFLAGS="-O2"
5509   else
5510     CFLAGS=
5511   fi
5512 fi
5513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_cc_c89+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   ac_cv_prog_cc_c89=no
5519 ac_save_CC=$CC
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 #include <stdarg.h>
5527 #include <stdio.h>
5528 #include <sys/types.h>
5529 #include <sys/stat.h>
5530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5531 struct buf { int x; };
5532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5533 static char *e (p, i)
5534      char **p;
5535      int i;
5536 {
5537   return p[i];
5538 }
5539 static char *f (char * (*g) (char **, int), char **p, ...)
5540 {
5541   char *s;
5542   va_list v;
5543   va_start (v,p);
5544   s = g (p, va_arg (v,int));
5545   va_end (v);
5546   return s;
5547 }
5548
5549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5550    function prototypes and stuff, but not '\xHH' hex character constants.
5551    These don't provoke an error unfortunately, instead are silently treated
5552    as 'x'.  The following induces an error, until -std is added to get
5553    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5554    array size at least.  It's necessary to write '\x00'==0 to get something
5555    that's true only with -std.  */
5556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5557
5558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5559    inside strings and character constants.  */
5560 #define FOO(x) 'x'
5561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5562
5563 int test (int i, double x);
5564 struct s1 {int (*f) (int a);};
5565 struct s2 {int (*f) (double a);};
5566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5567 int argc;
5568 char **argv;
5569 int
5570 main ()
5571 {
5572 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5578         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5579 do
5580   CC="$ac_save_CC $ac_arg"
5581   rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588   (eval "$ac_compile") 2>conftest.er1
5589   ac_status=$?
5590   grep -v '^ *+' conftest.er1 >conftest.err
5591   rm -f conftest.er1
5592   cat conftest.err >&5
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596   { (case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601   (eval "$ac_try") 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; } &&
5605          { ac_try='test -s conftest.$ac_objext'
5606   { (case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611   (eval "$ac_try") 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   ac_cv_prog_cc_c89=$ac_arg
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext
5624   test "x$ac_cv_prog_cc_c89" != "xno" && break
5625 done
5626 rm -f conftest.$ac_ext
5627 CC=$ac_save_CC
5628
5629 fi
5630 # AC_CACHE_VAL
5631 case "x$ac_cv_prog_cc_c89" in
5632   x)
5633     { echo "$as_me:$LINENO: result: none needed" >&5
5634 echo "${ECHO_T}none needed" >&6; } ;;
5635   xno)
5636     { echo "$as_me:$LINENO: result: unsupported" >&5
5637 echo "${ECHO_T}unsupported" >&6; } ;;
5638   *)
5639     CC="$CC $ac_cv_prog_cc_c89"
5640     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5641 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5642 esac
5643
5644
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651 ac_ext=cpp
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5656 if test -z "$CXX"; then
5657   if test -n "$CCC"; then
5658     CXX=$CCC
5659   else
5660     if test -n "$ac_tool_prefix"; then
5661   for ac_prog in g++
5662   do
5663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667 if test "${ac_cv_prog_CXX+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   if test -n "$CXX"; then
5671   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678   for ac_exec_ext in '' $ac_executable_extensions; do
5679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5680     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685 done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 CXX=$ac_cv_prog_CXX
5691 if test -n "$CXX"; then
5692   { echo "$as_me:$LINENO: result: $CXX" >&5
5693 echo "${ECHO_T}$CXX" >&6; }
5694 else
5695   { echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6; }
5697 fi
5698
5699
5700     test -n "$CXX" && break
5701   done
5702 fi
5703 if test -z "$CXX"; then
5704   ac_ct_CXX=$CXX
5705   for ac_prog in g++
5706 do
5707   # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5711 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   if test -n "$ac_ct_CXX"; then
5715   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_prog_ac_ct_CXX="$ac_prog"
5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5735 if test -n "$ac_ct_CXX"; then
5736   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5737 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5738 else
5739   { echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6; }
5741 fi
5742
5743
5744   test -n "$ac_ct_CXX" && break
5745 done
5746
5747   if test "x$ac_ct_CXX" = x; then
5748     CXX="g++"
5749   else
5750     case $cross_compiling:$ac_tool_warned in
5751 yes:)
5752 { echo "$as_me:$LINENO: 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." >&5
5755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5756 whose name does not start with the host triplet.  If you think this
5757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760     CXX=$ac_ct_CXX
5761   fi
5762 fi
5763
5764   fi
5765 fi
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5770 case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_compiler --version >&5") 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785   (eval "$ac_compiler -v >&5") 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_compiler -V >&5") 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }
5799
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811
5812 int
5813 main ()
5814 {
5815 #ifndef __GNUC__
5816        choke me
5817 #endif
5818
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest.$ac_objext'
5848   { (case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_try") 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_compiler_gnu=yes
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         ac_compiler_gnu=no
5863 fi
5864
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5867
5868 fi
5869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5871 GXX=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CXXFLAGS=${CXXFLAGS+set}
5873 ac_save_CXXFLAGS=$CXXFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5875 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cxx_g+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5880    ac_cxx_werror_flag=yes
5881    ac_cv_prog_cxx_g=no
5882    CXXFLAGS="-g"
5883    cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h.  */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h.  */
5889
5890 int
5891 main ()
5892 {
5893
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902   *) ac_try_echo=$ac_try;;
5903 esac
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905   (eval "$ac_compile") 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
5909   cat conftest.err >&5
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5913   { (case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_try") 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; } &&
5922          { ac_try='test -s conftest.$ac_objext'
5923   { (case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928   (eval "$ac_try") 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_prog_cxx_g=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937         CXXFLAGS=""
5938       cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944
5945 int
5946 main ()
5947 {
5948
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_compile") 2>conftest.er1
5961   ac_status=$?
5962   grep -v '^ *+' conftest.er1 >conftest.err
5963   rm -f conftest.er1
5964   cat conftest.err >&5
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } &&
5967          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5968   { (case "(($ac_try" in
5969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970   *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973   (eval "$ac_try") 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }; } &&
5977          { ac_try='test -s conftest.$ac_objext'
5978   { (case "(($ac_try" in
5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980   *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983   (eval "$ac_try") 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; }; then
5987   :
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5991
5992         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5993          CXXFLAGS="-g"
5994          cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 int
6002 main ()
6003 {
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_compile") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6024   { (case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_try") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest.$ac_objext'
6034   { (case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_try") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; }; then
6043   ac_cv_prog_cxx_g=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
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 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6059 fi
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6062 if test "$ac_test_CXXFLAGS" = set; then
6063   CXXFLAGS=$ac_save_CXXFLAGS
6064 elif test $ac_cv_prog_cxx_g = yes; then
6065   if test "$GXX" = yes; then
6066     CXXFLAGS="-g -O2"
6067   else
6068     CXXFLAGS="-g"
6069   fi
6070 else
6071   if test "$GXX" = yes; then
6072     CXXFLAGS="-O2"
6073   else
6074     CXXFLAGS=
6075   fi
6076 fi
6077 ac_ext=c
6078 ac_cpp='$CPP $CPPFLAGS'
6079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082
6083 { echo "$as_me:$LINENO: checking " >&5
6084 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6085 if test "${ac_cv_has_flex+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   for ac_prog in flex lex
6089 do
6090   # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_LEX+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$LEX"; then
6098   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_LEX="$ac_prog"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 LEX=$ac_cv_prog_LEX
6118 if test -n "$LEX"; then
6119   { echo "$as_me:$LINENO: result: $LEX" >&5
6120 echo "${ECHO_T}$LEX" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6125
6126
6127   test -n "$LEX" && break
6128 done
6129 test -n "$LEX" || LEX=":"
6130
6131 if test -z "$LEXLIB"
6132 then
6133   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6134 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6135 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   ac_check_lib_save_LIBS=$LIBS
6139 LIBS="-lfl  $LIBS"
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146
6147 /* Override any GCC internal prototype to avoid an error.
6148    Use char because int might match the return type of a GCC
6149    builtin and then its argument prototype would still apply.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 char yywrap ();
6154 int
6155 main ()
6156 {
6157 return yywrap ();
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (ac_try="$ac_link"
6164 case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169   (eval "$ac_link") 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177   { (case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_try") 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; } &&
6186          { ac_try='test -s conftest$ac_exeext'
6187   { (case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_try") 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_lib_fl_yywrap=yes
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201         ac_cv_lib_fl_yywrap=no
6202 fi
6203
6204 rm -f core conftest.err conftest.$ac_objext \
6205       conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6207 fi
6208 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6209 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6210 if test $ac_cv_lib_fl_yywrap = yes; then
6211   LEXLIB="-lfl"
6212 else
6213   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6214 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   ac_check_lib_save_LIBS=$LIBS
6219 LIBS="-ll  $LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226
6227 /* Override any GCC internal prototype to avoid an error.
6228    Use char because int might match the return type of a GCC
6229    builtin and then its argument prototype would still apply.  */
6230 #ifdef __cplusplus
6231 extern "C"
6232 #endif
6233 char yywrap ();
6234 int
6235 main ()
6236 {
6237 return yywrap ();
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6244 case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_link") 2>conftest.er1
6250   ac_status=$?
6251   grep -v '^ *+' conftest.er1 >conftest.err
6252   rm -f conftest.er1
6253   cat conftest.err >&5
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } &&
6256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257   { (case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_try") 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; } &&
6266          { ac_try='test -s conftest$ac_exeext'
6267   { (case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_try") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_lib_l_yywrap=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281         ac_cv_lib_l_yywrap=no
6282 fi
6283
6284 rm -f core conftest.err conftest.$ac_objext \
6285       conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_check_lib_save_LIBS
6287 fi
6288 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6289 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6290 if test $ac_cv_lib_l_yywrap = yes; then
6291   LEXLIB="-ll"
6292 fi
6293
6294 fi
6295
6296 fi
6297
6298 if test "x$LEX" != "x:"; then
6299   { echo "$as_me:$LINENO: checking lex output file root" >&5
6300 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_lex_root+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   # The minimal lex program is just a single line: %%.  But some broken lexes
6305 # (Solaris, I think it was) want two %% lines, so accommodate them.
6306 cat >conftest.l <<_ACEOF
6307 %%
6308 %%
6309 _ACEOF
6310 { (ac_try="$LEX conftest.l"
6311 case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316   (eval "$LEX conftest.l") 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }
6320 if test -f lex.yy.c; then
6321   ac_cv_prog_lex_root=lex.yy
6322 elif test -f lexyy.c; then
6323   ac_cv_prog_lex_root=lexyy
6324 else
6325   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6326 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6327    { (exit 1); exit 1; }; }
6328 fi
6329 fi
6330 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6331 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6332 rm -f conftest.l
6333 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6334
6335 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6336 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6337 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   # POSIX says lex can declare yytext either as a pointer or an array; the
6341 # default is implementation-dependent. Figure out which it is, since
6342 # not all implementations provide the %pointer and %array declarations.
6343 ac_cv_prog_lex_yytext_pointer=no
6344 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6345 ac_save_LIBS=$LIBS
6346 LIBS="$LIBS $LEXLIB"
6347 cat >conftest.$ac_ext <<_ACEOF
6348 `cat $LEX_OUTPUT_ROOT.c`
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (ac_try="$ac_link"
6352 case "(($ac_try" in
6353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354   *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357   (eval "$ac_link") 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365   { (case "(($ac_try" in
6366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367   *) ac_try_echo=$ac_try;;
6368 esac
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370   (eval "$ac_try") 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; } &&
6374          { ac_try='test -s conftest$ac_exeext'
6375   { (case "(($ac_try" in
6376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377   *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380   (eval "$ac_try") 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; }; then
6384   ac_cv_prog_lex_yytext_pointer=yes
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389
6390 fi
6391
6392 rm -f core conftest.err conftest.$ac_objext \
6393       conftest$ac_exeext conftest.$ac_ext
6394 LIBS=$ac_save_LIBS
6395 rm -f "${LEX_OUTPUT_ROOT}.c"
6396
6397 fi
6398 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6399 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6400 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6401
6402 cat >>confdefs.h <<\_ACEOF
6403 #define YYTEXT_POINTER 1
6404 _ACEOF
6405
6406 fi
6407
6408 fi
6409
6410 fi
6411 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6412 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6413 if test "$LEX" != "flex"; then
6414   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6415 echo "$as_me: error: flex not found but required" >&2;}
6416    { (exit 1); exit 1; }; }
6417 else
6418   FLEX=flex
6419
6420 fi
6421
6422 { echo "$as_me:$LINENO: checking " >&5
6423 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6424 if test "${llvm_cv_has_bison+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   for ac_prog in 'bison -y' byacc
6428 do
6429   # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_YACC+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   if test -n "$YACC"; then
6437   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444   for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_YACC="$ac_prog"
6447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 YACC=$ac_cv_prog_YACC
6457 if test -n "$YACC"; then
6458   { echo "$as_me:$LINENO: result: $YACC" >&5
6459 echo "${ECHO_T}$YACC" >&6; }
6460 else
6461   { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6463 fi
6464
6465
6466   test -n "$YACC" && break
6467 done
6468 test -n "$YACC" || YACC="yacc"
6469
6470 fi
6471 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6472 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6473 if test "$YACC" != "bison -y"; then
6474
6475   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6476 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6477 else
6478   BISON=bison
6479
6480 fi
6481
6482 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6483 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6484 if test "${lt_cv_path_NM+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   if test -n "$NM"; then
6488   # Let the user override the test.
6489   lt_cv_path_NM="$NM"
6490 else
6491   lt_nm_to_check="${ac_tool_prefix}nm"
6492   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6493     lt_nm_to_check="$lt_nm_to_check nm"
6494   fi
6495   for lt_tmp_nm in $lt_nm_to_check; do
6496     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6497     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6498       IFS="$lt_save_ifs"
6499       test -z "$ac_dir" && ac_dir=.
6500       tmp_nm="$ac_dir/$lt_tmp_nm"
6501       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6502         # Check to see if the nm accepts a BSD-compat flag.
6503         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6504         #   nm: unknown option "B" ignored
6505         # Tru64's nm complains that /dev/null is an invalid object file
6506         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6507         */dev/null* | *'Invalid file or object type'*)
6508           lt_cv_path_NM="$tmp_nm -B"
6509           break
6510           ;;
6511         *)
6512           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6513           */dev/null*)
6514             lt_cv_path_NM="$tmp_nm -p"
6515             break
6516             ;;
6517           *)
6518             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6519             continue # so that we can try to find one that supports BSD flags
6520             ;;
6521           esac
6522           ;;
6523         esac
6524       fi
6525     done
6526     IFS="$lt_save_ifs"
6527   done
6528   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6529 fi
6530 fi
6531 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6532 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6533 NM="$lt_cv_path_NM"
6534
6535
6536
6537 { echo "$as_me:$LINENO: checking for GNU make" >&5
6538 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6539 if test "${llvm_cv_gnu_make_command+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542   llvm_cv_gnu_make_command=''
6543  for a in "$MAKE" make gmake gnumake ; do
6544   if test -z "$a" ; then continue ; fi ;
6545   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6546   then
6547    llvm_cv_gnu_make_command=$a ;
6548    break;
6549   fi
6550  done
6551 fi
6552 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6553 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6554  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6555    ifGNUmake='' ;
6556  else
6557    ifGNUmake='#' ;
6558    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6559 echo "${ECHO_T}\"Not found\"" >&6; };
6560  fi
6561
6562
6563 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6564 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6565 LN_S=$as_ln_s
6566 if test "$LN_S" = "ln -s"; then
6567   { echo "$as_me:$LINENO: result: yes" >&5
6568 echo "${ECHO_T}yes" >&6; }
6569 else
6570   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6571 echo "${ECHO_T}no, using $LN_S" >&6; }
6572 fi
6573
6574 # Extract the first word of "cmp", so it can be a program name with args.
6575 set dummy cmp; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_path_CMP+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   case $CMP in
6582   [\\/]* | ?:[\\/]*)
6583   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6584   ;;
6585   *)
6586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589   IFS=$as_save_IFS
6590   test -z "$as_dir" && as_dir=.
6591   for ac_exec_ext in '' $ac_executable_extensions; do
6592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595     break 2
6596   fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6602   ;;
6603 esac
6604 fi
6605 CMP=$ac_cv_path_CMP
6606 if test -n "$CMP"; then
6607   { echo "$as_me:$LINENO: result: $CMP" >&5
6608 echo "${ECHO_T}$CMP" >&6; }
6609 else
6610   { echo "$as_me:$LINENO: result: no" >&5
6611 echo "${ECHO_T}no" >&6; }
6612 fi
6613
6614
6615 # Extract the first word of "cp", so it can be a program name with args.
6616 set dummy cp; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_CP+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   case $CP in
6623   [\\/]* | ?:[\\/]*)
6624   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6625   ;;
6626   *)
6627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6643   ;;
6644 esac
6645 fi
6646 CP=$ac_cv_path_CP
6647 if test -n "$CP"; then
6648   { echo "$as_me:$LINENO: result: $CP" >&5
6649 echo "${ECHO_T}$CP" >&6; }
6650 else
6651   { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6653 fi
6654
6655
6656 # Extract the first word of "date", so it can be a program name with args.
6657 set dummy date; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_path_DATE+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   case $DATE in
6664   [\\/]* | ?:[\\/]*)
6665   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6666   ;;
6667   *)
6668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673   for ac_exec_ext in '' $ac_executable_extensions; do
6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6684   ;;
6685 esac
6686 fi
6687 DATE=$ac_cv_path_DATE
6688 if test -n "$DATE"; then
6689   { echo "$as_me:$LINENO: result: $DATE" >&5
6690 echo "${ECHO_T}$DATE" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696
6697 # Extract the first word of "find", so it can be a program name with args.
6698 set dummy find; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_FIND+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   case $FIND in
6705   [\\/]* | ?:[\\/]*)
6706   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6707   ;;
6708   *)
6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714   for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6725   ;;
6726 esac
6727 fi
6728 FIND=$ac_cv_path_FIND
6729 if test -n "$FIND"; then
6730   { echo "$as_me:$LINENO: result: $FIND" >&5
6731 echo "${ECHO_T}$FIND" >&6; }
6732 else
6733   { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737
6738 # Extract the first word of "grep", so it can be a program name with args.
6739 set dummy grep; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_GREP+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   case $GREP in
6746   [\\/]* | ?:[\\/]*)
6747   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6748   ;;
6749   *)
6750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755   for ac_exec_ext in '' $ac_executable_extensions; do
6756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6766   ;;
6767 esac
6768 fi
6769 GREP=$ac_cv_path_GREP
6770 if test -n "$GREP"; then
6771   { echo "$as_me:$LINENO: result: $GREP" >&5
6772 echo "${ECHO_T}$GREP" >&6; }
6773 else
6774   { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779 # Extract the first word of "mkdir", so it can be a program name with args.
6780 set dummy mkdir; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_MKDIR+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   case $MKDIR in
6787   [\\/]* | ?:[\\/]*)
6788   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6789   ;;
6790   *)
6791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796   for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6807   ;;
6808 esac
6809 fi
6810 MKDIR=$ac_cv_path_MKDIR
6811 if test -n "$MKDIR"; then
6812   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6813 echo "${ECHO_T}$MKDIR" >&6; }
6814 else
6815   { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 fi
6818
6819
6820 # Extract the first word of "mv", so it can be a program name with args.
6821 set dummy mv; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_MV+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   case $MV in
6828   [\\/]* | ?:[\\/]*)
6829   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6830   ;;
6831   *)
6832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6848   ;;
6849 esac
6850 fi
6851 MV=$ac_cv_path_MV
6852 if test -n "$MV"; then
6853   { echo "$as_me:$LINENO: result: $MV" >&5
6854 echo "${ECHO_T}$MV" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861 if test -n "$ac_tool_prefix"; then
6862   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_RANLIB+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   if test -n "$RANLIB"; then
6870   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 RANLIB=$ac_cv_prog_RANLIB
6890 if test -n "$RANLIB"; then
6891   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6892 echo "${ECHO_T}$RANLIB" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_RANLIB"; then
6901   ac_ct_RANLIB=$RANLIB
6902   # Extract the first word of "ranlib", so it can be a program name with args.
6903 set dummy ranlib; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   if test -n "$ac_ct_RANLIB"; then
6910   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_prog_ac_ct_RANLIB="ranlib"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6930 if test -n "$ac_ct_RANLIB"; then
6931   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6932 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6936 fi
6937
6938   if test "x$ac_ct_RANLIB" = x; then
6939     RANLIB=":"
6940   else
6941     case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { echo "$as_me:$LINENO: 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." >&5
6946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet.  If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951     RANLIB=$ac_ct_RANLIB
6952   fi
6953 else
6954   RANLIB="$ac_cv_prog_RANLIB"
6955 fi
6956
6957 # Extract the first word of "rm", so it can be a program name with args.
6958 set dummy rm; ac_word=$2
6959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961 if test "${ac_cv_path_RM+set}" = set; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964   case $RM in
6965   [\\/]* | ?:[\\/]*)
6966   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6967   ;;
6968   *)
6969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974   for ac_exec_ext in '' $ac_executable_extensions; do
6975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6976     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6983
6984   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6985   ;;
6986 esac
6987 fi
6988 RM=$ac_cv_path_RM
6989 if test -n "$RM"; then
6990   { echo "$as_me:$LINENO: result: $RM" >&5
6991 echo "${ECHO_T}$RM" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997
6998 # Extract the first word of "sed", so it can be a program name with args.
6999 set dummy sed; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_SED+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   case $SED in
7006   [\\/]* | ?:[\\/]*)
7007   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7008   ;;
7009   *)
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015   for ac_exec_ext in '' $ac_executable_extensions; do
7016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7026   ;;
7027 esac
7028 fi
7029 SED=$ac_cv_path_SED
7030 if test -n "$SED"; then
7031   { echo "$as_me:$LINENO: result: $SED" >&5
7032 echo "${ECHO_T}$SED" >&6; }
7033 else
7034   { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7036 fi
7037
7038
7039 # Extract the first word of "tar", so it can be a program name with args.
7040 set dummy tar; ac_word=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_path_TAR+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   case $TAR in
7047   [\\/]* | ?:[\\/]*)
7048   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7049   ;;
7050   *)
7051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056   for ac_exec_ext in '' $ac_executable_extensions; do
7057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7067   ;;
7068 esac
7069 fi
7070 TAR=$ac_cv_path_TAR
7071 if test -n "$TAR"; then
7072   { echo "$as_me:$LINENO: result: $TAR" >&5
7073 echo "${ECHO_T}$TAR" >&6; }
7074 else
7075   { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7077 fi
7078
7079
7080 # Extract the first word of "pwd", so it can be a program name with args.
7081 set dummy pwd; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_BINPWD+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   case $BINPWD in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097   for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7108   ;;
7109 esac
7110 fi
7111 BINPWD=$ac_cv_path_BINPWD
7112 if test -n "$BINPWD"; then
7113   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7114 echo "${ECHO_T}$BINPWD" >&6; }
7115 else
7116   { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120
7121
7122 # Extract the first word of "Graphviz", so it can be a program name with args.
7123 set dummy Graphviz; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $GRAPHVIZ in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7150   ;;
7151 esac
7152 fi
7153 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7154 if test -n "$GRAPHVIZ"; then
7155   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7156 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7164
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_GRAPHVIZ 1
7167 _ACEOF
7168
7169     if test "$llvm_cv_os_type" = "MingW" ; then
7170     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7171   fi
7172
7173 cat >>confdefs.h <<_ACEOF
7174 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7175 _ACEOF
7176
7177 fi
7178 # Extract the first word of "dot", so it can be a program name with args.
7179 set dummy dot; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_DOT+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   case $DOT in
7186   [\\/]* | ?:[\\/]*)
7187   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7188   ;;
7189   *)
7190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7206   ;;
7207 esac
7208 fi
7209 DOT=$ac_cv_path_DOT
7210 if test -n "$DOT"; then
7211   { echo "$as_me:$LINENO: result: $DOT" >&5
7212 echo "${ECHO_T}$DOT" >&6; }
7213 else
7214   { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7216 fi
7217
7218
7219 if test "$DOT" != "echo dot" ; then
7220
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_DOT 1
7223 _ACEOF
7224
7225     if test "$llvm_cv_os_type" = "MingW" ; then
7226     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7227   fi
7228
7229 cat >>confdefs.h <<_ACEOF
7230 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7231 _ACEOF
7232
7233 fi
7234 for ac_prog in gv gsview32
7235 do
7236   # Extract the first word of "$ac_prog", so it can be a program name with args.
7237 set dummy $ac_prog; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_GV+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   case $GV in
7244   [\\/]* | ?:[\\/]*)
7245   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7246   ;;
7247   *)
7248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253   for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263   ;;
7264 esac
7265 fi
7266 GV=$ac_cv_path_GV
7267 if test -n "$GV"; then
7268   { echo "$as_me:$LINENO: result: $GV" >&5
7269 echo "${ECHO_T}$GV" >&6; }
7270 else
7271   { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7273 fi
7274
7275
7276   test -n "$GV" && break
7277 done
7278 test -n "$GV" || GV="echo gv"
7279
7280 if test "$GV" != "echo gv" ; then
7281
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_GV 1
7284 _ACEOF
7285
7286     if test "$llvm_cv_os_type" = "MingW" ; then
7287     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7288   fi
7289
7290 cat >>confdefs.h <<_ACEOF
7291 #define LLVM_PATH_GV "$GV${EXEEXT}"
7292 _ACEOF
7293
7294 fi
7295 # Extract the first word of "dotty", so it can be a program name with args.
7296 set dummy dotty; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_DOTTY+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   case $DOTTY in
7303   [\\/]* | ?:[\\/]*)
7304   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7305   ;;
7306   *)
7307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312   for ac_exec_ext in '' $ac_executable_extensions; do
7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7323   ;;
7324 esac
7325 fi
7326 DOTTY=$ac_cv_path_DOTTY
7327 if test -n "$DOTTY"; then
7328   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7329 echo "${ECHO_T}$DOTTY" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7334
7335
7336 if test "$DOTTY" != "echo dotty" ; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_DOTTY 1
7340 _ACEOF
7341
7342     if test "$llvm_cv_os_type" = "MingW" ; then
7343     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7344   fi
7345
7346 cat >>confdefs.h <<_ACEOF
7347 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7348 _ACEOF
7349
7350 fi
7351
7352
7353 # Extract the first word of "perl", so it can be a program name with args.
7354 set dummy perl; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_PERL+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   case $PERL in
7361   [\\/]* | ?:[\\/]*)
7362   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7363   ;;
7364   *)
7365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370   for ac_exec_ext in '' $ac_executable_extensions; do
7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7381   ;;
7382 esac
7383 fi
7384 PERL=$ac_cv_path_PERL
7385 if test -n "$PERL"; then
7386   { echo "$as_me:$LINENO: result: $PERL" >&5
7387 echo "${ECHO_T}$PERL" >&6; }
7388 else
7389   { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7391 fi
7392
7393
7394 if test "$PERL" != "none"; then
7395   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7396 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7397   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7398     { echo "$as_me:$LINENO: result: yes" >&5
7399 echo "${ECHO_T}yes" >&6; }
7400   else
7401     PERL=none
7402     { echo "$as_me:$LINENO: result: not found" >&5
7403 echo "${ECHO_T}not found" >&6; }
7404   fi
7405 fi
7406
7407
7408 if test x"$PERL" = xnone; then
7409    HAVE_PERL=0
7410
7411    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7412 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7413    { (exit 1); exit 1; }; }
7414 else
7415    HAVE_PERL=1
7416
7417 fi
7418
7419 # Find a good install program.  We prefer a C program (faster),
7420 # so one script is as good as another.  But avoid the broken or
7421 # incompatible versions:
7422 # SysV /etc/install, /usr/sbin/install
7423 # SunOS /usr/etc/install
7424 # IRIX /sbin/install
7425 # AIX /bin/install
7426 # AmigaOS /C/install, which installs bootblocks on floppy discs
7427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7430 # OS/2's system install, which has a completely different semantic
7431 # ./install, which can be erroneously created by make from ./install.sh.
7432 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7434 if test -z "$INSTALL"; then
7435 if test "${ac_cv_path_install+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443   # Account for people who put trailing slashes in PATH elements.
7444 case $as_dir/ in
7445   ./ | .// | /cC/* | \
7446   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7447   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7448   /usr/ucb/* ) ;;
7449   *)
7450     # OSF1 and SCO ODT 3.0 have their own names for install.
7451     # Don't use installbsd from OSF since it installs stuff as root
7452     # by default.
7453     for ac_prog in ginstall scoinst install; do
7454       for ac_exec_ext in '' $ac_executable_extensions; do
7455         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7456           if test $ac_prog = install &&
7457             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7458             # AIX install.  It has an incompatible calling convention.
7459             :
7460           elif test $ac_prog = install &&
7461             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7462             # program-specific install script used by HP pwplus--don't use.
7463             :
7464           else
7465             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7466             break 3
7467           fi
7468         fi
7469       done
7470     done
7471     ;;
7472 esac
7473 done
7474 IFS=$as_save_IFS
7475
7476
7477 fi
7478   if test "${ac_cv_path_install+set}" = set; then
7479     INSTALL=$ac_cv_path_install
7480   else
7481     # As a last resort, use the slow shell script.  Don't cache a
7482     # value for INSTALL within a source directory, because that will
7483     # break other packages using the cache if that directory is
7484     # removed, or if the value is a relative name.
7485     INSTALL=$ac_install_sh
7486   fi
7487 fi
7488 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7489 echo "${ECHO_T}$INSTALL" >&6; }
7490
7491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7492 # It thinks the first close brace ends the variable substitution.
7493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7494
7495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7496
7497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7498
7499
7500 # Extract the first word of "bzip2", so it can be a program name with args.
7501 set dummy bzip2; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_BZIP2+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   case $BZIP2 in
7508   [\\/]* | ?:[\\/]*)
7509   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7510   ;;
7511   *)
7512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517   for ac_exec_ext in '' $ac_executable_extensions; do
7518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524 done
7525 IFS=$as_save_IFS
7526
7527   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7528   ;;
7529 esac
7530 fi
7531 BZIP2=$ac_cv_path_BZIP2
7532 if test -n "$BZIP2"; then
7533   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7534 echo "${ECHO_T}$BZIP2" >&6; }
7535 else
7536   { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7538 fi
7539
7540
7541 # Extract the first word of "doxygen", so it can be a program name with args.
7542 set dummy doxygen; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   case $DOXYGEN in
7549   [\\/]* | ?:[\\/]*)
7550   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7551   ;;
7552   *)
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7569   ;;
7570 esac
7571 fi
7572 DOXYGEN=$ac_cv_path_DOXYGEN
7573 if test -n "$DOXYGEN"; then
7574   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7575 echo "${ECHO_T}$DOXYGEN" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581
7582 # Extract the first word of "groff", so it can be a program name with args.
7583 set dummy groff; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GROFF+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $GROFF in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7610   ;;
7611 esac
7612 fi
7613 GROFF=$ac_cv_path_GROFF
7614 if test -n "$GROFF"; then
7615   { echo "$as_me:$LINENO: result: $GROFF" >&5
7616 echo "${ECHO_T}$GROFF" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623 # Extract the first word of "gzip", so it can be a program name with args.
7624 set dummy gzip; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_GZIP+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   case $GZIP in
7631   [\\/]* | ?:[\\/]*)
7632   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7633   ;;
7634   *)
7635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7651   ;;
7652 esac
7653 fi
7654 GZIP=$ac_cv_path_GZIP
7655 if test -n "$GZIP"; then
7656   { echo "$as_me:$LINENO: result: $GZIP" >&5
7657 echo "${ECHO_T}$GZIP" >&6; }
7658 else
7659   { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7661 fi
7662
7663
7664 # Extract the first word of "pod2html", so it can be a program name with args.
7665 set dummy pod2html; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_POD2HTML+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   case $POD2HTML in
7672   [\\/]* | ?:[\\/]*)
7673   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7674   ;;
7675   *)
7676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681   for ac_exec_ext in '' $ac_executable_extensions; do
7682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7692   ;;
7693 esac
7694 fi
7695 POD2HTML=$ac_cv_path_POD2HTML
7696 if test -n "$POD2HTML"; then
7697   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7698 echo "${ECHO_T}$POD2HTML" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705 # Extract the first word of "pod2man", so it can be a program name with args.
7706 set dummy pod2man; ac_word=$2
7707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7709 if test "${ac_cv_path_POD2MAN+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   case $POD2MAN in
7713   [\\/]* | ?:[\\/]*)
7714   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7715   ;;
7716   *)
7717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720   IFS=$as_save_IFS
7721   test -z "$as_dir" && as_dir=.
7722   for ac_exec_ext in '' $ac_executable_extensions; do
7723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7724     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726     break 2
7727   fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7733   ;;
7734 esac
7735 fi
7736 POD2MAN=$ac_cv_path_POD2MAN
7737 if test -n "$POD2MAN"; then
7738   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7739 echo "${ECHO_T}$POD2MAN" >&6; }
7740 else
7741   { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7743 fi
7744
7745
7746 # Extract the first word of "runtest", so it can be a program name with args.
7747 set dummy runtest; ac_word=$2
7748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750 if test "${ac_cv_path_RUNTEST+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   case $RUNTEST in
7754   [\\/]* | ?:[\\/]*)
7755   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7756   ;;
7757   *)
7758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763   for ac_exec_ext in '' $ac_executable_extensions; do
7764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7765     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770 done
7771 IFS=$as_save_IFS
7772
7773   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7774   ;;
7775 esac
7776 fi
7777 RUNTEST=$ac_cv_path_RUNTEST
7778 if test -n "$RUNTEST"; then
7779   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7780 echo "${ECHO_T}$RUNTEST" >&6; }
7781 else
7782   { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7784 fi
7785
7786
7787
7788 no_itcl=true
7789 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7790 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7791
7792 # Check whether --with-tclinclude was given.
7793 if test "${with_tclinclude+set}" = set; then
7794   withval=$with_tclinclude; with_tclinclude=${withval}
7795 else
7796   with_tclinclude=''
7797 fi
7798
7799 if test "${ac_cv_path_tclsh+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802
7803 if test x"${with_tclinclude}" != x ; then
7804   if test -f ${with_tclinclude}/tclsh ; then
7805     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7806   elif test -f ${with_tclinclude}/src/tclsh ; then
7807     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7808   else
7809     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7810 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7811    { (exit 1); exit 1; }; }
7812   fi
7813 fi
7814
7815 if test x"${ac_cv_path_tclsh}" = x ; then
7816   { echo "$as_me:$LINENO: result: none" >&5
7817 echo "${ECHO_T}none" >&6; }
7818   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
7819 do
7820   # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_path_TCLSH+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   case $TCLSH in
7828   [\\/]* | ?:[\\/]*)
7829   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7830   ;;
7831   *)
7832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   test -z "$as_dir" && as_dir=.
7837   for ac_exec_ext in '' $ac_executable_extensions; do
7838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847   ;;
7848 esac
7849 fi
7850 TCLSH=$ac_cv_path_TCLSH
7851 if test -n "$TCLSH"; then
7852   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7853 echo "${ECHO_T}$TCLSH" >&6; }
7854 else
7855   { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859
7860   test -n "$TCLSH" && break
7861 done
7862
7863   if test x"${TCLSH}" = x ; then
7864     ac_cv_path_tclsh='';
7865   else
7866     ac_cv_path_tclsh="${TCLSH}";
7867   fi
7868 else
7869   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7870 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7871   TCLSH="${ac_cv_path_tclsh}"
7872
7873 fi
7874
7875 fi
7876
7877 # Extract the first word of "zip", so it can be a program name with args.
7878 set dummy zip; ac_word=$2
7879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7881 if test "${ac_cv_path_ZIP+set}" = set; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884   case $ZIP in
7885   [\\/]* | ?:[\\/]*)
7886   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7887   ;;
7888   *)
7889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892   IFS=$as_save_IFS
7893   test -z "$as_dir" && as_dir=.
7894   for ac_exec_ext in '' $ac_executable_extensions; do
7895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7896     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898     break 2
7899   fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7905   ;;
7906 esac
7907 fi
7908 ZIP=$ac_cv_path_ZIP
7909 if test -n "$ZIP"; then
7910   { echo "$as_me:$LINENO: result: $ZIP" >&5
7911 echo "${ECHO_T}$ZIP" >&6; }
7912 else
7913   { echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6; }
7915 fi
7916
7917
7918 # Extract the first word of "ocamlc", so it can be a program name with args.
7919 set dummy ocamlc; ac_word=$2
7920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7922 if test "${ac_cv_path_OCAMLC+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   case $OCAMLC in
7926   [\\/]* | ?:[\\/]*)
7927   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7928   ;;
7929   *)
7930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933   IFS=$as_save_IFS
7934   test -z "$as_dir" && as_dir=.
7935   for ac_exec_ext in '' $ac_executable_extensions; do
7936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7937     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939     break 2
7940   fi
7941 done
7942 done
7943 IFS=$as_save_IFS
7944
7945   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7946   ;;
7947 esac
7948 fi
7949 OCAMLC=$ac_cv_path_OCAMLC
7950 if test -n "$OCAMLC"; then
7951   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7952 echo "${ECHO_T}$OCAMLC" >&6; }
7953 else
7954   { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7956 fi
7957
7958
7959 # Extract the first word of "ocamlopt", so it can be a program name with args.
7960 set dummy ocamlopt; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   case $OCAMLOPT in
7967   [\\/]* | ?:[\\/]*)
7968   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7969   ;;
7970   *)
7971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976   for ac_exec_ext in '' $ac_executable_extensions; do
7977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7978     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7987   ;;
7988 esac
7989 fi
7990 OCAMLOPT=$ac_cv_path_OCAMLOPT
7991 if test -n "$OCAMLOPT"; then
7992   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7993 echo "${ECHO_T}$OCAMLOPT" >&6; }
7994 else
7995   { echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6; }
7997 fi
7998
7999
8000 # Extract the first word of "ocamldep", so it can be a program name with args.
8001 set dummy ocamldep; ac_word=$2
8002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8004 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8005   echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007   case $OCAMLDEP in
8008   [\\/]* | ?:[\\/]*)
8009   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8010   ;;
8011   *)
8012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015   IFS=$as_save_IFS
8016   test -z "$as_dir" && as_dir=.
8017   for ac_exec_ext in '' $ac_executable_extensions; do
8018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8019     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021     break 2
8022   fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027   test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8028   ;;
8029 esac
8030 fi
8031 OCAMLDEP=$ac_cv_path_OCAMLDEP
8032 if test -n "$OCAMLDEP"; then
8033   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8034 echo "${ECHO_T}$OCAMLDEP" >&6; }
8035 else
8036   { echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6; }
8038 fi
8039
8040
8041
8042 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8043 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8044 if test "${llvm_cv_link_use_r+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047    ac_ext=c
8048 ac_cpp='$CPP $CPPFLAGS'
8049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8052
8053   oldcflags="$CFLAGS"
8054   CFLAGS="$CFLAGS -Wl,-R."
8055   cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061
8062 int
8063 main ()
8064 {
8065 int main() { return 0; }
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (ac_try="$ac_link"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_link") 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8085   { (case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090   (eval "$ac_try") 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; } &&
8094          { ac_try='test -s conftest$ac_exeext'
8095   { (case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_try") 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; }; then
8104   llvm_cv_link_use_r=yes
8105 else
8106   echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109         llvm_cv_link_use_r=no
8110 fi
8111
8112 rm -f core conftest.err conftest.$ac_objext \
8113       conftest$ac_exeext conftest.$ac_ext
8114   CFLAGS="$oldcflags"
8115   ac_ext=c
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122 fi
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8125 if test "$llvm_cv_link_use_r" = yes ; then
8126
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_LINK_R 1
8129 _ACEOF
8130
8131   fi
8132
8133
8134
8135
8136 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8137 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8138 if test "${ac_cv_c_const+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147
8148 int
8149 main ()
8150 {
8151 /* FIXME: Include the comments suggested by Paul. */
8152 #ifndef __cplusplus
8153   /* Ultrix mips cc rejects this.  */
8154   typedef int charset[2];
8155   const charset x;
8156   /* SunOS 4.1.1 cc rejects this.  */
8157   char const *const *ccp;
8158   char **p;
8159   /* NEC SVR4.0.2 mips cc rejects this.  */
8160   struct point {int x, y;};
8161   static struct point const zero = {0,0};
8162   /* AIX XL C 1.02.0.0 rejects this.
8163      It does not let you subtract one const X* pointer from another in
8164      an arm of an if-expression whose if-part is not a constant
8165      expression */
8166   const char *g = "string";
8167   ccp = &g + (g ? g-g : 0);
8168   /* HPUX 7.0 cc rejects these. */
8169   ++ccp;
8170   p = (char**) ccp;
8171   ccp = (char const *const *) p;
8172   { /* SCO 3.2v4 cc rejects this.  */
8173     char *t;
8174     char const *s = 0 ? (char *) 0 : (char const *) 0;
8175
8176     *t++ = 0;
8177     if (s) return 0;
8178   }
8179   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8180     int x[] = {25, 17};
8181     const int *foo = &x[0];
8182     ++foo;
8183   }
8184   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8185     typedef const int *iptr;
8186     iptr p = 0;
8187     ++p;
8188   }
8189   { /* AIX XL C 1.02.0.0 rejects this saying
8190        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8191     struct s { int j; const int *ap[3]; };
8192     struct s *b; b->j = 5;
8193   }
8194   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195     const int foo = 10;
8196     if (!foo) return 0;
8197   }
8198   return !x[0] && !zero.x;
8199 #endif
8200
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_compile") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } &&
8219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220   { (case "(($ac_try" in
8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222   *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225   (eval "$ac_try") 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; } &&
8229          { ac_try='test -s conftest.$ac_objext'
8230   { (case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235   (eval "$ac_try") 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; }; then
8239   ac_cv_c_const=yes
8240 else
8241   echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244         ac_cv_c_const=no
8245 fi
8246
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8250 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8251 if test $ac_cv_c_const = no; then
8252
8253 cat >>confdefs.h <<\_ACEOF
8254 #define const
8255 _ACEOF
8256
8257 fi
8258
8259
8260
8261
8262
8263
8264 ac_header_dirent=no
8265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8268 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 #include <sys/types.h>
8279 #include <$ac_hdr>
8280
8281 int
8282 main ()
8283 {
8284 if ((DIR *) 0)
8285 return 0;
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_compile") 2>conftest.er1
8298   ac_status=$?
8299   grep -v '^ *+' conftest.er1 >conftest.err
8300   rm -f conftest.er1
8301   cat conftest.err >&5
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   eval "$as_ac_Header=yes"
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329         eval "$as_ac_Header=no"
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335                { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 ac_header_dirent=$ac_hdr; break
8343 fi
8344
8345 done
8346 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8347 if test $ac_header_dirent = dirent.h; then
8348   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350 if test "${ac_cv_search_opendir+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   ac_func_search_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361 /* Override any GCC internal prototype to avoid an error.
8362    Use char because int might match the return type of a GCC
8363    builtin and then its argument prototype would still apply.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char opendir ();
8368 int
8369 main ()
8370 {
8371 return opendir ();
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 for ac_lib in '' dir; do
8377   if test -z "$ac_lib"; then
8378     ac_res="none required"
8379   else
8380     ac_res=-l$ac_lib
8381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8382   fi
8383   rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8385 case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_link") 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398   { (case "(($ac_try" in
8399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400   *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403   (eval "$ac_try") 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (case "(($ac_try" in
8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410   *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413   (eval "$ac_try") 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_cv_search_opendir=$ac_res
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422
8423 fi
8424
8425 rm -f core conftest.err conftest.$ac_objext \
8426       conftest$ac_exeext
8427   if test "${ac_cv_search_opendir+set}" = set; then
8428   break
8429 fi
8430 done
8431 if test "${ac_cv_search_opendir+set}" = set; then
8432   :
8433 else
8434   ac_cv_search_opendir=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then
8443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 fi
8446
8447 else
8448   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8450 if test "${ac_cv_search_opendir+set}" = set; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   ac_func_search_save_LIBS=$LIBS
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460
8461 /* Override any GCC internal prototype to avoid an error.
8462    Use char because int might match the return type of a GCC
8463    builtin and then its argument prototype would still apply.  */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 char opendir ();
8468 int
8469 main ()
8470 {
8471 return opendir ();
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 for ac_lib in '' x; do
8477   if test -z "$ac_lib"; then
8478     ac_res="none required"
8479   else
8480     ac_res=-l$ac_lib
8481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8482   fi
8483   rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8485 case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_link") 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498   { (case "(($ac_try" in
8499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500   *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503   (eval "$ac_try") 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; } &&
8507          { ac_try='test -s conftest$ac_exeext'
8508   { (case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513   (eval "$ac_try") 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; }; then
8517   ac_cv_search_opendir=$ac_res
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522
8523 fi
8524
8525 rm -f core conftest.err conftest.$ac_objext \
8526       conftest$ac_exeext
8527   if test "${ac_cv_search_opendir+set}" = set; then
8528   break
8529 fi
8530 done
8531 if test "${ac_cv_search_opendir+set}" = set; then
8532   :
8533 else
8534   ac_cv_search_opendir=no
8535 fi
8536 rm conftest.$ac_ext
8537 LIBS=$ac_func_search_save_LIBS
8538 fi
8539 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8540 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8541 ac_res=$ac_cv_search_opendir
8542 if test "$ac_res" != no; then
8543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544
8545 fi
8546
8547 fi
8548
8549
8550 for ac_header in dlfcn.h
8551 do
8552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 fi
8559 ac_res=`eval echo '${'$as_ac_Header'}'`
8560                { echo "$as_me:$LINENO: result: $ac_res" >&5
8561 echo "${ECHO_T}$ac_res" >&6; }
8562 else
8563   # Is the header compilable?
8564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 $ac_includes_default
8573 #include <$ac_header>
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590   { (case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_try") 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest.$ac_objext'
8600   { (case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_try") 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_header_compiler=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614         ac_header_compiler=no
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619 echo "${ECHO_T}$ac_header_compiler" >&6; }
8620
8621 # Is the header present?
8622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #include <$ac_header>
8631 _ACEOF
8632 if { (ac_try="$ac_cpp conftest.$ac_ext"
8633 case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8639   ac_status=$?
8640   grep -v '^ *+' conftest.er1 >conftest.err
8641   rm -f conftest.er1
8642   cat conftest.err >&5
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } >/dev/null; then
8645   if test -s conftest.err; then
8646     ac_cpp_err=$ac_c_preproc_warn_flag
8647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648   else
8649     ac_cpp_err=
8650   fi
8651 else
8652   ac_cpp_err=yes
8653 fi
8654 if test -z "$ac_cpp_err"; then
8655   ac_header_preproc=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660   ac_header_preproc=no
8661 fi
8662
8663 rm -f conftest.err conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665 echo "${ECHO_T}$ac_header_preproc" >&6; }
8666
8667 # So?  What about this header?
8668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8669   yes:no: )
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674     ac_header_preproc=yes
8675     ;;
8676   no:yes:* )
8677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8680 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8684 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8689     ( cat <<\_ASBOX
8690 ## ----------------------------------- ##
8691 ## Report this to llvmbugs@cs.uiuc.edu ##
8692 ## ----------------------------------- ##
8693 _ASBOX
8694      ) | sed "s/^/$as_me: WARNING:     /" >&2
8695     ;;
8696 esac
8697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   eval "$as_ac_Header=\$ac_header_preproc"
8703 fi
8704 ac_res=`eval echo '${'$as_ac_Header'}'`
8705                { echo "$as_me:$LINENO: result: $ac_res" >&5
8706 echo "${ECHO_T}$ac_res" >&6; }
8707
8708 fi
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710   cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 _ACEOF
8713
8714 fi
8715
8716 done
8717
8718 # Check whether --enable-ltdl-install was given.
8719 if test "${enable_ltdl_install+set}" = set; then
8720   enableval=$enable_ltdl_install;
8721 fi
8722
8723
8724
8725
8726 if test x"${enable_ltdl_install-no}" != xno; then
8727   INSTALL_LTDL_TRUE=
8728   INSTALL_LTDL_FALSE='#'
8729 else
8730   INSTALL_LTDL_TRUE='#'
8731   INSTALL_LTDL_FALSE=
8732 fi
8733
8734
8735
8736 if test x"${enable_ltdl_convenience-no}" != xno; then
8737   CONVENIENCE_LTDL_TRUE=
8738   CONVENIENCE_LTDL_FALSE='#'
8739 else
8740   CONVENIENCE_LTDL_TRUE='#'
8741   CONVENIENCE_LTDL_FALSE=
8742 fi
8743
8744
8745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8747 library_names_spec=
8748 libname_spec='lib$name'
8749 soname_spec=
8750 shrext_cmds=".so"
8751 postinstall_cmds=
8752 postuninstall_cmds=
8753 finish_cmds=
8754 finish_eval=
8755 shlibpath_var=
8756 shlibpath_overrides_runpath=unknown
8757 version_type=none
8758 dynamic_linker="$host_os ld.so"
8759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8760 if test "$GCC" = yes; then
8761   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8763     # if the path contains ";" then we assume it to be the separator
8764     # otherwise default to the standard path separator (i.e. ":") - it is
8765     # assumed that no part of a normal pathname contains ";" but that should
8766     # okay in the real world where ";" in dirpaths is itself problematic.
8767     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8768   else
8769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8770   fi
8771 else
8772   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8773 fi
8774 need_lib_prefix=unknown
8775 hardcode_into_libs=no
8776
8777 # when you set need_version to no, make sure it does not cause -set_version
8778 # flags to be left without arguments
8779 need_version=unknown
8780
8781 case $host_os in
8782 aix3*)
8783   version_type=linux
8784   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785   shlibpath_var=LIBPATH
8786
8787   # AIX 3 has no versioning support, so we append a major version to the name.
8788   soname_spec='${libname}${release}${shared_ext}$major'
8789   ;;
8790
8791 aix4* | aix5*)
8792   version_type=linux
8793   need_lib_prefix=no
8794   need_version=no
8795   hardcode_into_libs=yes
8796   if test "$host_cpu" = ia64; then
8797     # AIX 5 supports IA64
8798     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799     shlibpath_var=LD_LIBRARY_PATH
8800   else
8801     # With GCC up to 2.95.x, collect2 would create an import file
8802     # for dependence libraries.  The import file would start with
8803     # the line `#! .'.  This would cause the generated library to
8804     # depend on `.', always an invalid library.  This was fixed in
8805     # development snapshots of GCC prior to 3.0.
8806     case $host_os in
8807       aix4 | aix4.[01] | aix4.[01].*)
8808       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809            echo ' yes '
8810            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8811         :
8812       else
8813         can_build_shared=no
8814       fi
8815       ;;
8816     esac
8817     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818     # soname into executable. Probably we can add versioning support to
8819     # collect2, so additional links can be useful in future.
8820     if test "$aix_use_runtimelinking" = yes; then
8821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822       # instead of lib<name>.a to let people know that these are not
8823       # typical AIX shared libraries.
8824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825     else
8826       # We preserve .a as extension for shared libraries through AIX4.2
8827       # and later when we are not doing run time linking.
8828       library_names_spec='${libname}${release}.a $libname.a'
8829       soname_spec='${libname}${release}${shared_ext}$major'
8830     fi
8831     shlibpath_var=LIBPATH
8832   fi
8833   ;;
8834
8835 amigaos*)
8836   library_names_spec='$libname.ixlibrary $libname.a'
8837   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8838   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'
8839   ;;
8840
8841 beos*)
8842   library_names_spec='${libname}${shared_ext}'
8843   dynamic_linker="$host_os ld.so"
8844   shlibpath_var=LIBRARY_PATH
8845   ;;
8846
8847 bsdi[45]*)
8848   version_type=linux
8849   need_version=no
8850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851   soname_spec='${libname}${release}${shared_ext}$major'
8852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8853   shlibpath_var=LD_LIBRARY_PATH
8854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8856   # the default ld.so.conf also contains /usr/contrib/lib and
8857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8858   # libtool to hard-code these into programs
8859   ;;
8860
8861 cygwin* | mingw* | pw32*)
8862   version_type=windows
8863   shrext_cmds=".dll"
8864   need_version=no
8865   need_lib_prefix=no
8866
8867   case $GCC,$host_os in
8868   yes,cygwin* | yes,mingw* | yes,pw32*)
8869     library_names_spec='$libname.dll.a'
8870     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8871     postinstall_cmds='base_file=`basename \${file}`~
8872       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8873       dldir=$destdir/`dirname \$dlpath`~
8874       test -d \$dldir || mkdir -p \$dldir~
8875       $install_prog $dir/$dlname \$dldir/$dlname~
8876       chmod a+x \$dldir/$dlname'
8877     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8878       dlpath=$dir/\$dldll~
8879        $rm \$dlpath'
8880     shlibpath_overrides_runpath=yes
8881
8882     case $host_os in
8883     cygwin*)
8884       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8887       ;;
8888     mingw*)
8889       # MinGW DLLs use traditional 'lib' prefix
8890       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8891       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8893         # It is most probably a Windows format PATH printed by
8894         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895         # path with ; separators, and with drive letters. We can handle the
8896         # drive letters (cygwin fileutils understands them), so leave them,
8897         # especially as we might pass files found there to a mingw objdump,
8898         # which wouldn't understand a cygwinified path. Ahh.
8899         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900       else
8901         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8902       fi
8903       ;;
8904     pw32*)
8905       # pw32 DLLs use 'pw' prefix rather than 'lib'
8906       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8907       ;;
8908     esac
8909     ;;
8910
8911   *)
8912     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8913     ;;
8914   esac
8915   dynamic_linker='Win32 ld.exe'
8916   # FIXME: first we should search . and the directory the executable is in
8917   shlibpath_var=PATH
8918   ;;
8919
8920 darwin* | rhapsody*)
8921   dynamic_linker="$host_os dyld"
8922   version_type=darwin
8923   need_lib_prefix=no
8924   need_version=no
8925   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926   soname_spec='${libname}${release}${major}$shared_ext'
8927   shlibpath_overrides_runpath=yes
8928   shlibpath_var=DYLD_LIBRARY_PATH
8929   shrext_cmds='.dylib'
8930   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931   if test "$GCC" = yes; then
8932     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"`
8933   else
8934     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8935   fi
8936   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8937   ;;
8938
8939 dgux*)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   ;;
8947
8948 freebsd1*)
8949   dynamic_linker=no
8950   ;;
8951
8952 kfreebsd*-gnu)
8953   version_type=linux
8954   need_lib_prefix=no
8955   need_version=no
8956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957   soname_spec='${libname}${release}${shared_ext}$major'
8958   shlibpath_var=LD_LIBRARY_PATH
8959   shlibpath_overrides_runpath=no
8960   hardcode_into_libs=yes
8961   dynamic_linker='GNU ld.so'
8962   ;;
8963
8964 freebsd* | dragonfly*)
8965   # DragonFly does not have aout.  When/if they implement a new
8966   # versioning mechanism, adjust this.
8967   if test -x /usr/bin/objformat; then
8968     objformat=`/usr/bin/objformat`
8969   else
8970     case $host_os in
8971     freebsd[123]*) objformat=aout ;;
8972     *) objformat=elf ;;
8973     esac
8974   fi
8975   version_type=freebsd-$objformat
8976   case $version_type in
8977     freebsd-elf*)
8978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979       need_version=no
8980       need_lib_prefix=no
8981       ;;
8982     freebsd-*)
8983       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984       need_version=yes
8985       ;;
8986   esac
8987   shlibpath_var=LD_LIBRARY_PATH
8988   case $host_os in
8989   freebsd2*)
8990     shlibpath_overrides_runpath=yes
8991     ;;
8992   freebsd3.[01]* | freebsdelf3.[01]*)
8993     shlibpath_overrides_runpath=yes
8994     hardcode_into_libs=yes
8995     ;;
8996   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8997   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8998     shlibpath_overrides_runpath=no
8999     hardcode_into_libs=yes
9000     ;;
9001   freebsd*) # from 4.6 on
9002     shlibpath_overrides_runpath=yes
9003     hardcode_into_libs=yes
9004     ;;
9005   esac
9006   ;;
9007
9008 gnu*)
9009   version_type=linux
9010   need_lib_prefix=no
9011   need_version=no
9012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9013   soname_spec='${libname}${release}${shared_ext}$major'
9014   shlibpath_var=LD_LIBRARY_PATH
9015   hardcode_into_libs=yes
9016   ;;
9017
9018 hpux9* | hpux10* | hpux11*)
9019   # Give a soname corresponding to the major version so that dld.sl refuses to
9020   # link against other versions.
9021   version_type=sunos
9022   need_lib_prefix=no
9023   need_version=no
9024   case $host_cpu in
9025   ia64*)
9026     shrext_cmds='.so'
9027     hardcode_into_libs=yes
9028     dynamic_linker="$host_os dld.so"
9029     shlibpath_var=LD_LIBRARY_PATH
9030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032     soname_spec='${libname}${release}${shared_ext}$major'
9033     if test "X$HPUX_IA64_MODE" = X32; then
9034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9035     else
9036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9037     fi
9038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039     ;;
9040    hppa*64*)
9041      shrext_cmds='.sl'
9042      hardcode_into_libs=yes
9043      dynamic_linker="$host_os dld.sl"
9044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047      soname_spec='${libname}${release}${shared_ext}$major'
9048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050      ;;
9051    *)
9052     shrext_cmds='.sl'
9053     dynamic_linker="$host_os dld.sl"
9054     shlibpath_var=SHLIB_PATH
9055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057     soname_spec='${libname}${release}${shared_ext}$major'
9058     ;;
9059   esac
9060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9061   postinstall_cmds='chmod 555 $lib'
9062   ;;
9063
9064 interix3*)
9065   version_type=linux
9066   need_lib_prefix=no
9067   need_version=no
9068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069   soname_spec='${libname}${release}${shared_ext}$major'
9070   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   shlibpath_overrides_runpath=no
9073   hardcode_into_libs=yes
9074   ;;
9075
9076 irix5* | irix6* | nonstopux*)
9077   case $host_os in
9078     nonstopux*) version_type=nonstopux ;;
9079     *)
9080         if test "$lt_cv_prog_gnu_ld" = yes; then
9081                 version_type=linux
9082         else
9083                 version_type=irix
9084         fi ;;
9085   esac
9086   need_lib_prefix=no
9087   need_version=no
9088   soname_spec='${libname}${release}${shared_ext}$major'
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9090   case $host_os in
9091   irix5* | nonstopux*)
9092     libsuff= shlibsuff=
9093     ;;
9094   *)
9095     case $LD in # libtool.m4 will add one of these switches to LD
9096     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9097       libsuff= shlibsuff= libmagic=32-bit;;
9098     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9099       libsuff=32 shlibsuff=N32 libmagic=N32;;
9100     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9101       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9102     *) libsuff= shlibsuff= libmagic=never-match;;
9103     esac
9104     ;;
9105   esac
9106   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9107   shlibpath_overrides_runpath=no
9108   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9109   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9110   hardcode_into_libs=yes
9111   ;;
9112
9113 # No shared lib support for Linux oldld, aout, or coff.
9114 linux*oldld* | linux*aout* | linux*coff*)
9115   dynamic_linker=no
9116   ;;
9117
9118 # This must be Linux ELF.
9119 linux*)
9120   version_type=linux
9121   need_lib_prefix=no
9122   need_version=no
9123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124   soname_spec='${libname}${release}${shared_ext}$major'
9125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9126   shlibpath_var=LD_LIBRARY_PATH
9127   shlibpath_overrides_runpath=no
9128   # This implies no fast_install, which is unacceptable.
9129   # Some rework will be needed to allow for fast_install
9130   # before this can be enabled.
9131   hardcode_into_libs=yes
9132
9133   # Append ld.so.conf contents to the search path
9134   if test -f /etc/ld.so.conf; then
9135     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' ' '`
9136     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9137   fi
9138
9139   # We used to test for /lib/ld.so.1 and disable shared libraries on
9140   # powerpc, because MkLinux only supported shared libraries with the
9141   # GNU dynamic linker.  Since this was broken with cross compilers,
9142   # most powerpc-linux boxes support dynamic linking these days and
9143   # people can always --disable-shared, the test was removed, and we
9144   # assume the GNU/Linux dynamic linker is in use.
9145   dynamic_linker='GNU/Linux ld.so'
9146   ;;
9147
9148 knetbsd*-gnu)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   shlibpath_overrides_runpath=no
9156   hardcode_into_libs=yes
9157   dynamic_linker='GNU ld.so'
9158   ;;
9159
9160 netbsd*)
9161   version_type=sunos
9162   need_lib_prefix=no
9163   need_version=no
9164   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167     dynamic_linker='NetBSD (a.out) ld.so'
9168   else
9169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170     soname_spec='${libname}${release}${shared_ext}$major'
9171     dynamic_linker='NetBSD ld.elf_so'
9172   fi
9173   shlibpath_var=LD_LIBRARY_PATH
9174   shlibpath_overrides_runpath=yes
9175   hardcode_into_libs=yes
9176   ;;
9177
9178 newsos6)
9179   version_type=linux
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181   shlibpath_var=LD_LIBRARY_PATH
9182   shlibpath_overrides_runpath=yes
9183   ;;
9184
9185 nto-qnx*)
9186   version_type=linux
9187   need_lib_prefix=no
9188   need_version=no
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190   soname_spec='${libname}${release}${shared_ext}$major'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   shlibpath_overrides_runpath=yes
9193   ;;
9194
9195 openbsd*)
9196   version_type=sunos
9197   sys_lib_dlsearch_path_spec="/usr/lib"
9198   need_lib_prefix=no
9199   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9200   case $host_os in
9201     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9202     *)                         need_version=no  ;;
9203   esac
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208     case $host_os in
9209       openbsd2.[89] | openbsd2.[89].*)
9210         shlibpath_overrides_runpath=no
9211         ;;
9212       *)
9213         shlibpath_overrides_runpath=yes
9214         ;;
9215       esac
9216   else
9217     shlibpath_overrides_runpath=yes
9218   fi
9219   ;;
9220
9221 os2*)
9222   libname_spec='$name'
9223   shrext_cmds=".dll"
9224   need_lib_prefix=no
9225   library_names_spec='$libname${shared_ext} $libname.a'
9226   dynamic_linker='OS/2 ld.exe'
9227   shlibpath_var=LIBPATH
9228   ;;
9229
9230 osf3* | osf4* | osf5*)
9231   version_type=osf
9232   need_lib_prefix=no
9233   need_version=no
9234   soname_spec='${libname}${release}${shared_ext}$major'
9235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236   shlibpath_var=LD_LIBRARY_PATH
9237   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9239   ;;
9240
9241 solaris*)
9242   version_type=linux
9243   need_lib_prefix=no
9244   need_version=no
9245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246   soname_spec='${libname}${release}${shared_ext}$major'
9247   shlibpath_var=LD_LIBRARY_PATH
9248   shlibpath_overrides_runpath=yes
9249   hardcode_into_libs=yes
9250   # ldd complains unless libraries are executable
9251   postinstall_cmds='chmod +x $lib'
9252   ;;
9253
9254 sunos4*)
9255   version_type=sunos
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258   shlibpath_var=LD_LIBRARY_PATH
9259   shlibpath_overrides_runpath=yes
9260   if test "$with_gnu_ld" = yes; then
9261     need_lib_prefix=no
9262   fi
9263   need_version=yes
9264   ;;
9265
9266 sysv4 | sysv4.3*)
9267   version_type=linux
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   shlibpath_var=LD_LIBRARY_PATH
9271   case $host_vendor in
9272     sni)
9273       shlibpath_overrides_runpath=no
9274       need_lib_prefix=no
9275       export_dynamic_flag_spec='${wl}-Blargedynsym'
9276       runpath_var=LD_RUN_PATH
9277       ;;
9278     siemens)
9279       need_lib_prefix=no
9280       ;;
9281     motorola)
9282       need_lib_prefix=no
9283       need_version=no
9284       shlibpath_overrides_runpath=no
9285       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9286       ;;
9287   esac
9288   ;;
9289
9290 sysv4*MP*)
9291   if test -d /usr/nec ;then
9292     version_type=linux
9293     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294     soname_spec='$libname${shared_ext}.$major'
9295     shlibpath_var=LD_LIBRARY_PATH
9296   fi
9297   ;;
9298
9299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300   version_type=freebsd-elf
9301   need_lib_prefix=no
9302   need_version=no
9303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   hardcode_into_libs=yes
9307   if test "$with_gnu_ld" = yes; then
9308     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309     shlibpath_overrides_runpath=no
9310   else
9311     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312     shlibpath_overrides_runpath=yes
9313     case $host_os in
9314       sco3.2v5*)
9315         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316         ;;
9317     esac
9318   fi
9319   sys_lib_dlsearch_path_spec='/usr/lib'
9320   ;;
9321
9322 uts4*)
9323   version_type=linux
9324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325   soname_spec='${libname}${release}${shared_ext}$major'
9326   shlibpath_var=LD_LIBRARY_PATH
9327   ;;
9328
9329 *)
9330   dynamic_linker=no
9331   ;;
9332 esac
9333 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334 echo "${ECHO_T}$dynamic_linker" >&6; }
9335 test "$dynamic_linker" = no && can_build_shared=no
9336
9337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338 if test "$GCC" = yes; then
9339   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340 fi
9341
9342
9343 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9344 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9345 if test "${libltdl_cv_shlibext+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348
9349 module=yes
9350 eval libltdl_cv_shlibext=$shrext_cmds
9351
9352 fi
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9354 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9355 if test -n "$libltdl_cv_shlibext"; then
9356
9357 cat >>confdefs.h <<_ACEOF
9358 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9359 _ACEOF
9360
9361 fi
9362
9363
9364 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9365 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9366 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   libltdl_cv_shlibpath_var="$shlibpath_var"
9370 fi
9371 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9372 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9373 if test -n "$libltdl_cv_shlibpath_var"; then
9374
9375 cat >>confdefs.h <<_ACEOF
9376 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9377 _ACEOF
9378
9379 fi
9380
9381
9382 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9383 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9384 if test "${libltdl_cv_sys_search_path+set}" = set; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9388 fi
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9390 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9391 if test -n "$libltdl_cv_sys_search_path"; then
9392   sys_search_path=
9393   for dir in $libltdl_cv_sys_search_path; do
9394     if test -z "$sys_search_path"; then
9395       sys_search_path="$dir"
9396     else
9397       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398     fi
9399   done
9400
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9403 _ACEOF
9404
9405 fi
9406
9407 { echo "$as_me:$LINENO: checking for objdir" >&5
9408 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_objdir+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   libltdl_cv_objdir="$objdir"
9413   if test -n "$objdir"; then
9414     :
9415   else
9416     rm -f .libs 2>/dev/null
9417     mkdir .libs 2>/dev/null
9418     if test -d .libs; then
9419       libltdl_cv_objdir=.libs
9420     else
9421       # MS-DOS does not allow filenames that begin with a dot.
9422       libltdl_cv_objdir=_libs
9423     fi
9424   rmdir .libs 2>/dev/null
9425   fi
9426
9427 fi
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9429 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9430
9431 cat >>confdefs.h <<_ACEOF
9432 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9433 _ACEOF
9434
9435
9436
9437
9438
9439
9440 # Check for command to grab the raw symbol name followed by C symbol from nm.
9441 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446
9447 # These are sane defaults that work on at least a few old systems.
9448 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9449
9450 # Character class describing NM global symbol codes.
9451 symcode='[BCDEGRST]'
9452
9453 # Regexp to match symbols that can be accessed directly from C.
9454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9455
9456 # Transform an extracted symbol line into a proper C declaration
9457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9458
9459 # Transform an extracted symbol line into symbol name and symbol address
9460 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'"
9461
9462 # Define system-specific variables.
9463 case $host_os in
9464 aix*)
9465   symcode='[BCDT]'
9466   ;;
9467 cygwin* | mingw* | pw32*)
9468   symcode='[ABCDGISTW]'
9469   ;;
9470 hpux*) # Its linker distinguishes data from code symbols
9471   if test "$host_cpu" = ia64; then
9472     symcode='[ABCDEGRST]'
9473   fi
9474   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475   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'"
9476   ;;
9477 linux*)
9478   if test "$host_cpu" = ia64; then
9479     symcode='[ABCDGIRSTW]'
9480     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9481     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'"
9482   fi
9483   ;;
9484 irix* | nonstopux*)
9485   symcode='[BCDEGRST]'
9486   ;;
9487 osf*)
9488   symcode='[BCDEGQRST]'
9489   ;;
9490 solaris*)
9491   symcode='[BDRT]'
9492   ;;
9493 sco3.2v5*)
9494   symcode='[DT]'
9495   ;;
9496 sysv4.2uw2*)
9497   symcode='[DT]'
9498   ;;
9499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9500   symcode='[ABDT]'
9501   ;;
9502 sysv4)
9503   symcode='[DFNSTU]'
9504   ;;
9505 esac
9506
9507 # Handle CRLF in mingw tool chain
9508 opt_cr=
9509 case $build_os in
9510 mingw*)
9511   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512   ;;
9513 esac
9514
9515 # If we're using GNU nm, then use its standard symbol codes.
9516 case `$NM -V 2>&1` in
9517 *GNU* | *'with BFD'*)
9518   symcode='[ABCDGIRSTW]' ;;
9519 esac
9520
9521 # Try without a prefix undercore, then with it.
9522 for ac_symprfx in "" "_"; do
9523
9524   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9525   symxfrm="\\1 $ac_symprfx\\2 \\2"
9526
9527   # Write the raw and C identifiers.
9528   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9529
9530   # Check to see that the pipe works correctly.
9531   pipe_works=no
9532
9533   rm -f conftest*
9534   cat > conftest.$ac_ext <<EOF
9535 #ifdef __cplusplus
9536 extern "C" {
9537 #endif
9538 char nm_test_var;
9539 void nm_test_func(){}
9540 #ifdef __cplusplus
9541 }
9542 #endif
9543 int main(){nm_test_var='a';nm_test_func();return(0);}
9544 EOF
9545
9546   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547   (eval $ac_compile) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; then
9551     # Now try to grab the symbols.
9552     nlist=conftest.nm
9553     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9554   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } && test -s "$nlist"; then
9558       # Try sorting and uniquifying the output.
9559       if sort "$nlist" | uniq > "$nlist"T; then
9560         mv -f "$nlist"T "$nlist"
9561       else
9562         rm -f "$nlist"T
9563       fi
9564
9565       # Make sure that we snagged all the symbols we need.
9566       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9567         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9568           cat <<EOF > conftest.$ac_ext
9569 #ifdef __cplusplus
9570 extern "C" {
9571 #endif
9572
9573 EOF
9574           # Now generate the symbol file.
9575           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9576
9577           cat <<EOF >> conftest.$ac_ext
9578 #if defined (__STDC__) && __STDC__
9579 # define lt_ptr_t void *
9580 #else
9581 # define lt_ptr_t char *
9582 # define const
9583 #endif
9584
9585 /* The mapping between symbol names and symbols. */
9586 const struct {
9587   const char *name;
9588   lt_ptr_t address;
9589 }
9590 lt_preloaded_symbols[] =
9591 {
9592 EOF
9593           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9594           cat <<\EOF >> conftest.$ac_ext
9595   {0, (lt_ptr_t) 0}
9596 };
9597
9598 #ifdef __cplusplus
9599 }
9600 #endif
9601 EOF
9602           # Now try linking the two files.
9603           mv conftest.$ac_objext conftstm.$ac_objext
9604           lt_save_LIBS="$LIBS"
9605           lt_save_CFLAGS="$CFLAGS"
9606           LIBS="conftstm.$ac_objext"
9607           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9608           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9613             pipe_works=yes
9614           fi
9615           LIBS="$lt_save_LIBS"
9616           CFLAGS="$lt_save_CFLAGS"
9617         else
9618           echo "cannot find nm_test_func in $nlist" >&5
9619         fi
9620       else
9621         echo "cannot find nm_test_var in $nlist" >&5
9622       fi
9623     else
9624       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9625     fi
9626   else
9627     echo "$progname: failed program was:" >&5
9628     cat conftest.$ac_ext >&5
9629   fi
9630   rm -f conftest* conftst*
9631
9632   # Do not use the global_symbol_pipe unless it works.
9633   if test "$pipe_works" = yes; then
9634     break
9635   else
9636     lt_cv_sys_global_symbol_pipe=
9637   fi
9638 done
9639
9640 fi
9641
9642 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9643   lt_cv_sys_global_symbol_to_cdecl=
9644 fi
9645 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9646   { echo "$as_me:$LINENO: result: failed" >&5
9647 echo "${ECHO_T}failed" >&6; }
9648 else
9649   { echo "$as_me:$LINENO: result: ok" >&5
9650 echo "${ECHO_T}ok" >&6; }
9651 fi
9652
9653
9654 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9655 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9656 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9660     libltdl_cv_preloaded_symbols=yes
9661   else
9662     libltdl_cv_preloaded_symbols=no
9663   fi
9664
9665 fi
9666 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9667 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9668 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9669
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_PRELOADED_SYMBOLS 1
9672 _ACEOF
9673
9674 fi
9675
9676 LIBADD_DL=
9677
9678 ac_ext=c
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683
9684
9685 { echo "$as_me:$LINENO: checking for shl_load" >&5
9686 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_shl_load+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9698 #define shl_load innocuous_shl_load
9699
9700 /* System header to define __stub macros and hopefully few prototypes,
9701     which can conflict with char shl_load (); below.
9702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703     <limits.h> exists even on freestanding compilers.  */
9704
9705 #ifdef __STDC__
9706 # include <limits.h>
9707 #else
9708 # include <assert.h>
9709 #endif
9710
9711 #undef shl_load
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char shl_load ();
9720 /* The GNU C library defines this for functions which it implements
9721     to always fail with ENOSYS.  Some functions are actually named
9722     something starting with __ and the normal name is an alias.  */
9723 #if defined __stub_shl_load || defined __stub___shl_load
9724 choke me
9725 #endif
9726
9727 int
9728 main ()
9729 {
9730 return shl_load ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765   (eval "$ac_try") 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); }; }; then
9769   ac_cv_func_shl_load=yes
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774         ac_cv_func_shl_load=no
9775 fi
9776
9777 rm -f core conftest.err conftest.$ac_objext \
9778       conftest$ac_exeext conftest.$ac_ext
9779 fi
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9782 if test $ac_cv_func_shl_load = yes; then
9783
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_SHL_LOAD 1
9786 _ACEOF
9787
9788 else
9789   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-ldld  $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804    Use char because int might match the return type of a GCC
9805    builtin and then its argument prototype would still apply.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char shl_load ();
9810 int
9811 main ()
9812 {
9813 return shl_load ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_link") 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest$ac_exeext'
9843   { (case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_try") 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_lib_dld_shl_load=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_cv_lib_dld_shl_load=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext \
9861       conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866 if test $ac_cv_lib_dld_shl_load = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_SHL_LOAD 1
9870 _ACEOF
9871
9872         LIBADD_DL="$LIBADD_DL -ldld"
9873 else
9874   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldl  $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889    Use char because int might match the return type of a GCC
9890    builtin and then its argument prototype would still apply.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char dlopen ();
9895 int
9896 main ()
9897 {
9898 return dlopen ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_link") 2>conftest.er1
9911   ac_status=$?
9912   grep -v '^ *+' conftest.er1 >conftest.err
9913   rm -f conftest.er1
9914   cat conftest.err >&5
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_lib_dl_dlopen=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_cv_lib_dl_dlopen=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext \
9946       conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9948 fi
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9951 if test $ac_cv_lib_dl_dlopen = yes; then
9952
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_LIBDL 1
9955 _ACEOF
9956
9957                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9958 else
9959   cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 #if HAVE_DLFCN_H
9966 #  include <dlfcn.h>
9967 #endif
9968
9969 int
9970 main ()
9971 {
9972 dlopen(0, 0);
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_link") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest$ac_exeext'
10002   { (case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_try") 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_LIBDL 1
10014 _ACEOF
10015  libltdl_cv_func_dlopen="yes"
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lsvld  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any GCC internal prototype to avoid an error.
10035    Use char because int might match the return type of a GCC
10036    builtin and then its argument prototype would still apply.  */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dlopen ();
10041 int
10042 main ()
10043 {
10044 return dlopen ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_link") 2>conftest.er1
10057   ac_status=$?
10058   grep -v '^ *+' conftest.er1 >conftest.err
10059   rm -f conftest.er1
10060   cat conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); } &&
10063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; } &&
10073          { ac_try='test -s conftest$ac_exeext'
10074   { (case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_try") 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_lib_svld_dlopen=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088         ac_cv_lib_svld_dlopen=no
10089 fi
10090
10091 rm -f core conftest.err conftest.$ac_objext \
10092       conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10094 fi
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10097 if test $ac_cv_lib_svld_dlopen = yes; then
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_LIBDL 1
10101 _ACEOF
10102
10103                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10104 else
10105   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-ldld  $LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118
10119 /* Override any GCC internal prototype to avoid an error.
10120    Use char because int might match the return type of a GCC
10121    builtin and then its argument prototype would still apply.  */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 char dld_link ();
10126 int
10127 main ()
10128 {
10129 return dld_link ();
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138   *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141   (eval "$ac_link") 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } &&
10148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149   { (case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154   (eval "$ac_try") 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; } &&
10158          { ac_try='test -s conftest$ac_exeext'
10159   { (case "(($ac_try" in
10160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161   *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164   (eval "$ac_try") 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; }; then
10168   ac_cv_lib_dld_dld_link=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173         ac_cv_lib_dld_dld_link=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext \
10177       conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10182 if test $ac_cv_lib_dld_dld_link = yes; then
10183
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_DLD 1
10186 _ACEOF
10187
10188                 LIBADD_DL="$LIBADD_DL -ldld"
10189 else
10190   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10191 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10192 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10203 #define _dyld_func_lookup innocuous__dyld_func_lookup
10204
10205 /* System header to define __stub macros and hopefully few prototypes,
10206     which can conflict with char _dyld_func_lookup (); below.
10207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208     <limits.h> exists even on freestanding compilers.  */
10209
10210 #ifdef __STDC__
10211 # include <limits.h>
10212 #else
10213 # include <assert.h>
10214 #endif
10215
10216 #undef _dyld_func_lookup
10217
10218 /* Override any GCC internal prototype to avoid an error.
10219    Use char because int might match the return type of a GCC
10220    builtin and then its argument prototype would still apply.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char _dyld_func_lookup ();
10225 /* The GNU C library defines this for functions which it implements
10226     to always fail with ENOSYS.  Some functions are actually named
10227     something starting with __ and the normal name is an alias.  */
10228 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10229 choke me
10230 #endif
10231
10232 int
10233 main ()
10234 {
10235 return _dyld_func_lookup ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_link") 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_try") 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; }; then
10274   ac_cv_func__dyld_func_lookup=yes
10275 else
10276   echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279         ac_cv_func__dyld_func_lookup=no
10280 fi
10281
10282 rm -f core conftest.err conftest.$ac_objext \
10283       conftest$ac_exeext conftest.$ac_ext
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10286 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10287 if test $ac_cv_func__dyld_func_lookup = yes; then
10288
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_DYLD 1
10291 _ACEOF
10292
10293 fi
10294
10295
10296 fi
10297
10298
10299 fi
10300
10301
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext \
10305       conftest$ac_exeext conftest.$ac_ext
10306
10307 fi
10308
10309
10310 fi
10311
10312
10313 fi
10314
10315
10316 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10317 then
10318   lt_save_LIBS="$LIBS"
10319   LIBS="$LIBS $LIBADD_DL"
10320
10321 for ac_func in dlerror
10322 do
10323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10337 #define $ac_func innocuous_$ac_func
10338
10339 /* System header to define __stub macros and hopefully few prototypes,
10340     which can conflict with char $ac_func (); below.
10341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342     <limits.h> exists even on freestanding compilers.  */
10343
10344 #ifdef __STDC__
10345 # include <limits.h>
10346 #else
10347 # include <assert.h>
10348 #endif
10349
10350 #undef $ac_func
10351
10352 /* Override any GCC internal prototype to avoid an error.
10353    Use char because int might match the return type of a GCC
10354    builtin and then its argument prototype would still apply.  */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char $ac_func ();
10359 /* The GNU C library defines this for functions which it implements
10360     to always fail with ENOSYS.  Some functions are actually named
10361     something starting with __ and the normal name is an alias.  */
10362 #if defined __stub_$ac_func || defined __stub___$ac_func
10363 choke me
10364 #endif
10365
10366 int
10367 main ()
10368 {
10369 return $ac_func ();
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_link") 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389   { (case "(($ac_try" in
10390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391   *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394   (eval "$ac_try") 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; } &&
10398          { ac_try='test -s conftest$ac_exeext'
10399   { (case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404   (eval "$ac_try") 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; }; then
10408   eval "$as_ac_var=yes"
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413         eval "$as_ac_var=no"
10414 fi
10415
10416 rm -f core conftest.err conftest.$ac_objext \
10417       conftest$ac_exeext conftest.$ac_ext
10418 fi
10419 ac_res=`eval echo '${'$as_ac_var'}'`
10420                { echo "$as_me:$LINENO: result: $ac_res" >&5
10421 echo "${ECHO_T}$ac_res" >&6; }
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423   cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428 done
10429
10430   LIBS="$lt_save_LIBS"
10431 fi
10432 ac_ext=c
10433 ac_cpp='$CPP $CPPFLAGS'
10434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437
10438
10439
10440 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10441 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10442 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   ac_cv_sys_symbol_underscore=no
10446   cat > conftest.$ac_ext <<EOF
10447 void nm_test_func(){}
10448 int main(){nm_test_func;return 0;}
10449 EOF
10450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451   (eval $ac_compile) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; then
10455     # Now try to grab the symbols.
10456     ac_nlist=conftest.nm
10457     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10458   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && test -s "$ac_nlist"; then
10462       # See whether the symbols have a leading underscore.
10463       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10464         ac_cv_sys_symbol_underscore=yes
10465       else
10466         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10467           :
10468         else
10469           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470         fi
10471       fi
10472     else
10473       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10474     fi
10475   else
10476     echo "configure: failed program was:" >&5
10477     cat conftest.c >&5
10478   fi
10479   rm -rf conftest*
10480
10481 fi
10482 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10483 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10484
10485
10486 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10487   if test x"$libltdl_cv_func_dlopen" = xyes ||
10488      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10489         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10490 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10491 if test "${libltdl_cv_need_uscore+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   libltdl_cv_need_uscore=unknown
10495           save_LIBS="$LIBS"
10496           LIBS="$LIBS $LIBADD_DL"
10497           if test "$cross_compiling" = yes; then :
10498   libltdl_cv_need_uscore=cross
10499 else
10500   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501   lt_status=$lt_dlunknown
10502   cat > conftest.$ac_ext <<EOF
10503 #line 10503 "configure"
10504 #include "confdefs.h"
10505
10506 #if HAVE_DLFCN_H
10507 #include <dlfcn.h>
10508 #endif
10509
10510 #include <stdio.h>
10511
10512 #ifdef RTLD_GLOBAL
10513 #  define LT_DLGLOBAL           RTLD_GLOBAL
10514 #else
10515 #  ifdef DL_GLOBAL
10516 #    define LT_DLGLOBAL         DL_GLOBAL
10517 #  else
10518 #    define LT_DLGLOBAL         0
10519 #  endif
10520 #endif
10521
10522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523    find out it does not work in some platform. */
10524 #ifndef LT_DLLAZY_OR_NOW
10525 #  ifdef RTLD_LAZY
10526 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10527 #  else
10528 #    ifdef DL_LAZY
10529 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10530 #    else
10531 #      ifdef RTLD_NOW
10532 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10533 #      else
10534 #        ifdef DL_NOW
10535 #          define LT_DLLAZY_OR_NOW      DL_NOW
10536 #        else
10537 #          define LT_DLLAZY_OR_NOW      0
10538 #        endif
10539 #      endif
10540 #    endif
10541 #  endif
10542 #endif
10543
10544 #ifdef __cplusplus
10545 extern "C" void exit (int);
10546 #endif
10547
10548 void fnord() { int i=42;}
10549 int main ()
10550 {
10551   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552   int status = $lt_dlunknown;
10553
10554   if (self)
10555     {
10556       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10557       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558       /* dlclose (self); */
10559     }
10560   else
10561     puts (dlerror ());
10562
10563     exit (status);
10564 }
10565 EOF
10566   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567   (eval $ac_link) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10571     (./conftest; exit; ) >&5 2>/dev/null
10572     lt_status=$?
10573     case x$lt_status in
10574       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10575       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10576       x$lt_dlunknown|x*)  ;;
10577     esac
10578   else :
10579     # compilation failed
10580
10581   fi
10582 fi
10583 rm -fr conftest*
10584
10585           LIBS="$save_LIBS"
10586
10587 fi
10588 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10589 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10590   fi
10591 fi
10592
10593 if test x"$libltdl_cv_need_uscore" = xyes; then
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define NEED_USCORE 1
10597 _ACEOF
10598
10599 fi
10600
10601
10602 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10603 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10604 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   # PORTME does your system automatically load deplibs for dlopen?
10608   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10609   # For now, we just catch OSes we know something about -- in the
10610   # future, we'll try test this programmatically.
10611   libltdl_cv_sys_dlopen_deplibs=unknown
10612   case "$host_os" in
10613   aix3*|aix4.1.*|aix4.2.*)
10614     # Unknown whether this is true for these versions of AIX, but
10615     # we want this `case' here to explicitly catch those versions.
10616     libltdl_cv_sys_dlopen_deplibs=unknown
10617     ;;
10618   aix[45]*)
10619     libltdl_cv_sys_dlopen_deplibs=yes
10620     ;;
10621   darwin*)
10622     # Assuming the user has installed a libdl from somewhere, this is true
10623     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10624     libltdl_cv_sys_dlopen_deplibs=yes
10625     ;;
10626   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10627     # GNU and its variants, using gnu ld.so (Glibc)
10628     libltdl_cv_sys_dlopen_deplibs=yes
10629     ;;
10630   hpux10*|hpux11*)
10631     libltdl_cv_sys_dlopen_deplibs=yes
10632     ;;
10633   interix*)
10634     libltdl_cv_sys_dlopen_deplibs=yes
10635     ;;
10636   irix[12345]*|irix6.[01]*)
10637     # Catch all versions of IRIX before 6.2, and indicate that we don't
10638     # know how it worked for any of those versions.
10639     libltdl_cv_sys_dlopen_deplibs=unknown
10640     ;;
10641   irix*)
10642     # The case above catches anything before 6.2, and it's known that
10643     # at 6.2 and later dlopen does load deplibs.
10644     libltdl_cv_sys_dlopen_deplibs=yes
10645     ;;
10646   netbsd*)
10647     libltdl_cv_sys_dlopen_deplibs=yes
10648     ;;
10649   openbsd*)
10650     libltdl_cv_sys_dlopen_deplibs=yes
10651     ;;
10652   osf[1234]*)
10653     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10654     # it did *not* use an RPATH in a shared library to find objects the
10655     # library depends on, so we explictly say `no'.
10656     libltdl_cv_sys_dlopen_deplibs=no
10657     ;;
10658   osf5.0|osf5.0a|osf5.1)
10659     # dlopen *does* load deplibs and with the right loader patch applied
10660     # it even uses RPATH in a shared library to search for shared objects
10661     # that the library depends on, but there's no easy way to know if that
10662     # patch is installed.  Since this is the case, all we can really
10663     # say is unknown -- it depends on the patch being installed.  If
10664     # it is, this changes to `yes'.  Without it, it would be `no'.
10665     libltdl_cv_sys_dlopen_deplibs=unknown
10666     ;;
10667   osf*)
10668     # the two cases above should catch all versions of osf <= 5.1.  Read
10669     # the comments above for what we know about them.
10670     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10671     # is used to find them so we can finally say `yes'.
10672     libltdl_cv_sys_dlopen_deplibs=yes
10673     ;;
10674   solaris*)
10675     libltdl_cv_sys_dlopen_deplibs=yes
10676     ;;
10677   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678     libltdl_cv_sys_dlopen_deplibs=yes
10679     ;;
10680   esac
10681
10682 fi
10683 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10684 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10685 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define LTDL_DLOPEN_DEPLIBS 1
10689 _ACEOF
10690
10691 fi
10692
10693
10694 for ac_header in argz.h
10695 do
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 fi
10703 ac_res=`eval echo '${'$as_ac_Header'}'`
10704                { echo "$as_me:$LINENO: result: $ac_res" >&5
10705 echo "${ECHO_T}$ac_res" >&6; }
10706 else
10707   # Is the header compilable?
10708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716 $ac_includes_default
10717 #include <$ac_header>
10718 _ACEOF
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723   *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726   (eval "$ac_compile") 2>conftest.er1
10727   ac_status=$?
10728   grep -v '^ *+' conftest.er1 >conftest.err
10729   rm -f conftest.er1
10730   cat conftest.err >&5
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); } &&
10733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734   { (case "(($ac_try" in
10735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736   *) ac_try_echo=$ac_try;;
10737 esac
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739   (eval "$ac_try") 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; } &&
10743          { ac_try='test -s conftest.$ac_objext'
10744   { (case "(($ac_try" in
10745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746   *) ac_try_echo=$ac_try;;
10747 esac
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749   (eval "$ac_try") 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; }; then
10753   ac_header_compiler=yes
10754 else
10755   echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10757
10758         ac_header_compiler=no
10759 fi
10760
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6; }
10764
10765 # Is the header present?
10766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h.  */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h.  */
10774 #include <$ac_header>
10775 _ACEOF
10776 if { (ac_try="$ac_cpp conftest.$ac_ext"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } >/dev/null; then
10789   if test -s conftest.err; then
10790     ac_cpp_err=$ac_c_preproc_warn_flag
10791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10792   else
10793     ac_cpp_err=
10794   fi
10795 else
10796   ac_cpp_err=yes
10797 fi
10798 if test -z "$ac_cpp_err"; then
10799   ac_header_preproc=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804   ac_header_preproc=no
10805 fi
10806
10807 rm -f conftest.err conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809 echo "${ECHO_T}$ac_header_preproc" >&6; }
10810
10811 # So?  What about this header?
10812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813   yes:no: )
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818     ac_header_preproc=yes
10819     ;;
10820   no:yes:* )
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10824 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10828 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10833     ( cat <<\_ASBOX
10834 ## ----------------------------------- ##
10835 ## Report this to llvmbugs@cs.uiuc.edu ##
10836 ## ----------------------------------- ##
10837 _ASBOX
10838      ) | sed "s/^/$as_me: WARNING:     /" >&2
10839     ;;
10840 esac
10841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   eval "$as_ac_Header=\$ac_header_preproc"
10847 fi
10848 ac_res=`eval echo '${'$as_ac_Header'}'`
10849                { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10851
10852 fi
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854   cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856 _ACEOF
10857
10858 fi
10859
10860 done
10861
10862
10863 { echo "$as_me:$LINENO: checking for error_t" >&5
10864 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10865 if test "${ac_cv_type_error_t+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 #if HAVE_ARGZ_H
10875 #  include <argz.h>
10876 #endif
10877
10878 typedef error_t ac__type_new_;
10879 int
10880 main ()
10881 {
10882 if ((ac__type_new_ *) 0)
10883   return 0;
10884 if (sizeof (ac__type_new_))
10885   return 0;
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894   *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897   (eval "$ac_compile") 2>conftest.er1
10898   ac_status=$?
10899   grep -v '^ *+' conftest.er1 >conftest.err
10900   rm -f conftest.er1
10901   cat conftest.err >&5
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } &&
10904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905   { (case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_try") 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; } &&
10914          { ac_try='test -s conftest.$ac_objext'
10915   { (case "(($ac_try" in
10916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917   *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920   (eval "$ac_try") 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_cv_type_error_t=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929         ac_cv_type_error_t=no
10930 fi
10931
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10935 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10936 if test $ac_cv_type_error_t = yes; then
10937
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_ERROR_T 1
10940 _ACEOF
10941
10942
10943 else
10944
10945 cat >>confdefs.h <<\_ACEOF
10946 #define error_t int
10947 _ACEOF
10948
10949 fi
10950
10951
10952
10953
10954
10955
10956
10957 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10958 do
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10973 #define $ac_func innocuous_$ac_func
10974
10975 /* System header to define __stub macros and hopefully few prototypes,
10976     which can conflict with char $ac_func (); below.
10977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978     <limits.h> exists even on freestanding compilers.  */
10979
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10985
10986 #undef $ac_func
10987
10988 /* Override any GCC internal prototype to avoid an error.
10989    Use char because int might match the return type of a GCC
10990    builtin and then its argument prototype would still apply.  */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char $ac_func ();
10995 /* The GNU C library defines this for functions which it implements
10996     to always fail with ENOSYS.  Some functions are actually named
10997     something starting with __ and the normal name is an alias.  */
10998 #if defined __stub_$ac_func || defined __stub___$ac_func
10999 choke me
11000 #endif
11001
11002 int
11003 main ()
11004 {
11005 return $ac_func ();
11006   ;
11007   return 0;
11008 }
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_link") 2>conftest.er1
11018   ac_status=$?
11019   grep -v '^ *+' conftest.er1 >conftest.err
11020   rm -f conftest.er1
11021   cat conftest.err >&5
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } &&
11024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025   { (case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_try") 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; } &&
11034          { ac_try='test -s conftest$ac_exeext'
11035   { (case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_try") 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; }; then
11044   eval "$as_ac_var=yes"
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         eval "$as_ac_var=no"
11050 fi
11051
11052 rm -f core conftest.err conftest.$ac_objext \
11053       conftest$ac_exeext conftest.$ac_ext
11054 fi
11055 ac_res=`eval echo '${'$as_ac_var'}'`
11056                { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059   cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11062
11063 fi
11064 done
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11094                   stdio.h unistd.h
11095 do
11096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 fi
11103 ac_res=`eval echo '${'$as_ac_Header'}'`
11104                { echo "$as_me:$LINENO: result: $ac_res" >&5
11105 echo "${ECHO_T}$ac_res" >&6; }
11106 else
11107   # Is the header compilable?
11108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 $ac_includes_default
11117 #include <$ac_header>
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_compile") 2>conftest.er1
11127   ac_status=$?
11128   grep -v '^ *+' conftest.er1 >conftest.err
11129   rm -f conftest.er1
11130   cat conftest.err >&5
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } &&
11133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134   { (case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_try") 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; } &&
11143          { ac_try='test -s conftest.$ac_objext'
11144   { (case "(($ac_try" in
11145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146   *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149   (eval "$ac_try") 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   ac_header_compiler=yes
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158         ac_header_compiler=no
11159 fi
11160
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163 echo "${ECHO_T}$ac_header_compiler" >&6; }
11164
11165 # Is the header present?
11166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 #include <$ac_header>
11175 _ACEOF
11176 if { (ac_try="$ac_cpp conftest.$ac_ext"
11177 case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } >/dev/null; then
11189   if test -s conftest.err; then
11190     ac_cpp_err=$ac_c_preproc_warn_flag
11191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192   else
11193     ac_cpp_err=
11194   fi
11195 else
11196   ac_cpp_err=yes
11197 fi
11198 if test -z "$ac_cpp_err"; then
11199   ac_header_preproc=yes
11200 else
11201   echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204   ac_header_preproc=no
11205 fi
11206
11207 rm -f conftest.err conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6; }
11210
11211 # So?  What about this header?
11212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213   yes:no: )
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11218     ac_header_preproc=yes
11219     ;;
11220   no:yes:* )
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233     ( cat <<\_ASBOX
11234 ## ----------------------------------- ##
11235 ## Report this to llvmbugs@cs.uiuc.edu ##
11236 ## ----------------------------------- ##
11237 _ASBOX
11238      ) | sed "s/^/$as_me: WARNING:     /" >&2
11239     ;;
11240 esac
11241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244   echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246   eval "$as_ac_Header=\$ac_header_preproc"
11247 fi
11248 ac_res=`eval echo '${'$as_ac_Header'}'`
11249                { echo "$as_me:$LINENO: result: $ac_res" >&5
11250 echo "${ECHO_T}$ac_res" >&6; }
11251
11252 fi
11253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254   cat >>confdefs.h <<_ACEOF
11255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11256 _ACEOF
11257
11258 fi
11259
11260 done
11261
11262
11263
11264
11265
11266 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11267 do
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 fi
11275 ac_res=`eval echo '${'$as_ac_Header'}'`
11276                { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11278 else
11279   # Is the header compilable?
11280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288 $ac_includes_default
11289 #include <$ac_header>
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_compile") 2>conftest.er1
11299   ac_status=$?
11300   grep -v '^ *+' conftest.er1 >conftest.err
11301   rm -f conftest.er1
11302   cat conftest.err >&5
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306   { (case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_try") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; } &&
11315          { ac_try='test -s conftest.$ac_objext'
11316   { (case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_try") 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); }; }; then
11325   ac_header_compiler=yes
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330         ac_header_compiler=no
11331 fi
11332
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335 echo "${ECHO_T}$ac_header_compiler" >&6; }
11336
11337 # Is the header present?
11338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h.  */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h.  */
11346 #include <$ac_header>
11347 _ACEOF
11348 if { (ac_try="$ac_cpp conftest.$ac_ext"
11349 case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } >/dev/null; then
11361   if test -s conftest.err; then
11362     ac_cpp_err=$ac_c_preproc_warn_flag
11363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364   else
11365     ac_cpp_err=
11366   fi
11367 else
11368   ac_cpp_err=yes
11369 fi
11370 if test -z "$ac_cpp_err"; then
11371   ac_header_preproc=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376   ac_header_preproc=no
11377 fi
11378
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11382
11383 # So?  What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385   yes:no: )
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390     ac_header_preproc=yes
11391     ;;
11392   no:yes:* )
11393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405     ( cat <<\_ASBOX
11406 ## ----------------------------------- ##
11407 ## Report this to llvmbugs@cs.uiuc.edu ##
11408 ## ----------------------------------- ##
11409 _ASBOX
11410      ) | sed "s/^/$as_me: WARNING:     /" >&2
11411     ;;
11412 esac
11413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   eval "$as_ac_Header=\$ac_header_preproc"
11419 fi
11420 ac_res=`eval echo '${'$as_ac_Header'}'`
11421                { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423
11424 fi
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426   cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430 fi
11431
11432 done
11433
11434
11435
11436 for ac_header in string.h strings.h
11437 do
11438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 fi
11445 ac_res=`eval echo '${'$as_ac_Header'}'`
11446                { echo "$as_me:$LINENO: result: $ac_res" >&5
11447 echo "${ECHO_T}$ac_res" >&6; }
11448 else
11449   # Is the header compilable?
11450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458 $ac_includes_default
11459 #include <$ac_header>
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (ac_try="$ac_compile"
11463 case "(($ac_try" in
11464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465   *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468   (eval "$ac_compile") 2>conftest.er1
11469   ac_status=$?
11470   grep -v '^ *+' conftest.er1 >conftest.err
11471   rm -f conftest.er1
11472   cat conftest.err >&5
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476   { (case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_try") 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; } &&
11485          { ac_try='test -s conftest.$ac_objext'
11486   { (case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_try") 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   ac_header_compiler=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500         ac_header_compiler=no
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505 echo "${ECHO_T}$ac_header_compiler" >&6; }
11506
11507 # Is the header present?
11508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516 #include <$ac_header>
11517 _ACEOF
11518 if { (ac_try="$ac_cpp conftest.$ac_ext"
11519 case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525   ac_status=$?
11526   grep -v '^ *+' conftest.er1 >conftest.err
11527   rm -f conftest.er1
11528   cat conftest.err >&5
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); } >/dev/null; then
11531   if test -s conftest.err; then
11532     ac_cpp_err=$ac_c_preproc_warn_flag
11533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11534   else
11535     ac_cpp_err=
11536   fi
11537 else
11538   ac_cpp_err=yes
11539 fi
11540 if test -z "$ac_cpp_err"; then
11541   ac_header_preproc=yes
11542 else
11543   echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546   ac_header_preproc=no
11547 fi
11548
11549 rm -f conftest.err conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11551 echo "${ECHO_T}$ac_header_preproc" >&6; }
11552
11553 # So?  What about this header?
11554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555   yes:no: )
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11560     ac_header_preproc=yes
11561     ;;
11562   no:yes:* )
11563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11575     ( cat <<\_ASBOX
11576 ## ----------------------------------- ##
11577 ## Report this to llvmbugs@cs.uiuc.edu ##
11578 ## ----------------------------------- ##
11579 _ASBOX
11580      ) | sed "s/^/$as_me: WARNING:     /" >&2
11581     ;;
11582 esac
11583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   eval "$as_ac_Header=\$ac_header_preproc"
11589 fi
11590 ac_res=`eval echo '${'$as_ac_Header'}'`
11591                { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11593
11594 fi
11595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11596   cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11598 _ACEOF
11599  break
11600 fi
11601
11602 done
11603
11604
11605
11606
11607 for ac_func in strchr index
11608 do
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11623 #define $ac_func innocuous_$ac_func
11624
11625 /* System header to define __stub macros and hopefully few prototypes,
11626     which can conflict with char $ac_func (); below.
11627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628     <limits.h> exists even on freestanding compilers.  */
11629
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635
11636 #undef $ac_func
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639    Use char because int might match the return type of a GCC
11640    builtin and then its argument prototype would still apply.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char $ac_func ();
11645 /* The GNU C library defines this for functions which it implements
11646     to always fail with ENOSYS.  Some functions are actually named
11647     something starting with __ and the normal name is an alias.  */
11648 #if defined __stub_$ac_func || defined __stub___$ac_func
11649 choke me
11650 #endif
11651
11652 int
11653 main ()
11654 {
11655 return $ac_func ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_link") 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest$ac_exeext'
11685   { (case "(($ac_try" in
11686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687   *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690   (eval "$ac_try") 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); }; }; then
11694   eval "$as_ac_var=yes"
11695 else
11696   echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699         eval "$as_ac_var=no"
11700 fi
11701
11702 rm -f core conftest.err conftest.$ac_objext \
11703       conftest$ac_exeext conftest.$ac_ext
11704 fi
11705 ac_res=`eval echo '${'$as_ac_var'}'`
11706                { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709   cat >>confdefs.h <<_ACEOF
11710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 _ACEOF
11712  break
11713 fi
11714 done
11715
11716
11717
11718 for ac_func in strrchr rindex
11719 do
11720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726   cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11734 #define $ac_func innocuous_$ac_func
11735
11736 /* System header to define __stub macros and hopefully few prototypes,
11737     which can conflict with char $ac_func (); below.
11738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739     <limits.h> exists even on freestanding compilers.  */
11740
11741 #ifdef __STDC__
11742 # include <limits.h>
11743 #else
11744 # include <assert.h>
11745 #endif
11746
11747 #undef $ac_func
11748
11749 /* Override any GCC internal prototype to avoid an error.
11750    Use char because int might match the return type of a GCC
11751    builtin and then its argument prototype would still apply.  */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char $ac_func ();
11756 /* The GNU C library defines this for functions which it implements
11757     to always fail with ENOSYS.  Some functions are actually named
11758     something starting with __ and the normal name is an alias.  */
11759 #if defined __stub_$ac_func || defined __stub___$ac_func
11760 choke me
11761 #endif
11762
11763 int
11764 main ()
11765 {
11766 return $ac_func ();
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_link") 2>conftest.er1
11779   ac_status=$?
11780   grep -v '^ *+' conftest.er1 >conftest.err
11781   rm -f conftest.er1
11782   cat conftest.err >&5
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } &&
11785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786   { (case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; } &&
11795          { ac_try='test -s conftest$ac_exeext'
11796   { (case "(($ac_try" in
11797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798   *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801   (eval "$ac_try") 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   eval "$as_ac_var=yes"
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810         eval "$as_ac_var=no"
11811 fi
11812
11813 rm -f core conftest.err conftest.$ac_objext \
11814       conftest$ac_exeext conftest.$ac_ext
11815 fi
11816 ac_res=`eval echo '${'$as_ac_var'}'`
11817                { echo "$as_me:$LINENO: result: $ac_res" >&5
11818 echo "${ECHO_T}$ac_res" >&6; }
11819 if test `eval echo '${'$as_ac_var'}'` = yes; then
11820   cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11822 _ACEOF
11823  break
11824 fi
11825 done
11826
11827
11828
11829 for ac_func in memcpy bcopy
11830 do
11831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837   cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11845 #define $ac_func innocuous_$ac_func
11846
11847 /* System header to define __stub macros and hopefully few prototypes,
11848     which can conflict with char $ac_func (); below.
11849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850     <limits.h> exists even on freestanding compilers.  */
11851
11852 #ifdef __STDC__
11853 # include <limits.h>
11854 #else
11855 # include <assert.h>
11856 #endif
11857
11858 #undef $ac_func
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char $ac_func ();
11867 /* The GNU C library defines this for functions which it implements
11868     to always fail with ENOSYS.  Some functions are actually named
11869     something starting with __ and the normal name is an alias.  */
11870 #if defined __stub_$ac_func || defined __stub___$ac_func
11871 choke me
11872 #endif
11873
11874 int
11875 main ()
11876 {
11877 return $ac_func ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (ac_try="$ac_link"
11884 case "(($ac_try" in
11885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886   *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889   (eval "$ac_link") 2>conftest.er1
11890   ac_status=$?
11891   grep -v '^ *+' conftest.er1 >conftest.err
11892   rm -f conftest.er1
11893   cat conftest.err >&5
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); } &&
11896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11897   { (case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_try") 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; } &&
11906          { ac_try='test -s conftest$ac_exeext'
11907   { (case "(($ac_try" in
11908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909   *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912   (eval "$ac_try") 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   eval "$as_ac_var=yes"
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921         eval "$as_ac_var=no"
11922 fi
11923
11924 rm -f core conftest.err conftest.$ac_objext \
11925       conftest$ac_exeext conftest.$ac_ext
11926 fi
11927 ac_res=`eval echo '${'$as_ac_var'}'`
11928                { echo "$as_me:$LINENO: result: $ac_res" >&5
11929 echo "${ECHO_T}$ac_res" >&6; }
11930 if test `eval echo '${'$as_ac_var'}'` = yes; then
11931   cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933 _ACEOF
11934  break
11935 fi
11936 done
11937
11938
11939
11940 for ac_func in memmove strcmp
11941 do
11942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11956 #define $ac_func innocuous_$ac_func
11957
11958 /* System header to define __stub macros and hopefully few prototypes,
11959     which can conflict with char $ac_func (); below.
11960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961     <limits.h> exists even on freestanding compilers.  */
11962
11963 #ifdef __STDC__
11964 # include <limits.h>
11965 #else
11966 # include <assert.h>
11967 #endif
11968
11969 #undef $ac_func
11970
11971 /* Override any GCC internal prototype to avoid an error.
11972    Use char because int might match the return type of a GCC
11973    builtin and then its argument prototype would still apply.  */
11974 #ifdef __cplusplus
11975 extern "C"
11976 #endif
11977 char $ac_func ();
11978 /* The GNU C library defines this for functions which it implements
11979     to always fail with ENOSYS.  Some functions are actually named
11980     something starting with __ and the normal name is an alias.  */
11981 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 choke me
11983 #endif
11984
11985 int
11986 main ()
11987 {
11988 return $ac_func ();
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_link") 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } &&
12007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008   { (case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_try") 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; } &&
12017          { ac_try='test -s conftest$ac_exeext'
12018   { (case "(($ac_try" in
12019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020   *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023   (eval "$ac_try") 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   eval "$as_ac_var=yes"
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032         eval "$as_ac_var=no"
12033 fi
12034
12035 rm -f core conftest.err conftest.$ac_objext \
12036       conftest$ac_exeext conftest.$ac_ext
12037 fi
12038 ac_res=`eval echo '${'$as_ac_var'}'`
12039                { echo "$as_me:$LINENO: result: $ac_res" >&5
12040 echo "${ECHO_T}$ac_res" >&6; }
12041 if test `eval echo '${'$as_ac_var'}'` = yes; then
12042   cat >>confdefs.h <<_ACEOF
12043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12044 _ACEOF
12045
12046 fi
12047 done
12048
12049
12050
12051
12052 for ac_func in closedir opendir readdir
12053 do
12054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12058   echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060   cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12068 #define $ac_func innocuous_$ac_func
12069
12070 /* System header to define __stub macros and hopefully few prototypes,
12071     which can conflict with char $ac_func (); below.
12072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073     <limits.h> exists even on freestanding compilers.  */
12074
12075 #ifdef __STDC__
12076 # include <limits.h>
12077 #else
12078 # include <assert.h>
12079 #endif
12080
12081 #undef $ac_func
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084    Use char because int might match the return type of a GCC
12085    builtin and then its argument prototype would still apply.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char $ac_func ();
12090 /* The GNU C library defines this for functions which it implements
12091     to always fail with ENOSYS.  Some functions are actually named
12092     something starting with __ and the normal name is an alias.  */
12093 #if defined __stub_$ac_func || defined __stub___$ac_func
12094 choke me
12095 #endif
12096
12097 int
12098 main ()
12099 {
12100 return $ac_func ();
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_link") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest$ac_exeext'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   eval "$as_ac_var=yes"
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144         eval "$as_ac_var=no"
12145 fi
12146
12147 rm -f core conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext conftest.$ac_ext
12149 fi
12150 ac_res=`eval echo '${'$as_ac_var'}'`
12151                { echo "$as_me:$LINENO: result: $ac_res" >&5
12152 echo "${ECHO_T}$ac_res" >&6; }
12153 if test `eval echo '${'$as_ac_var'}'` = yes; then
12154   cat >>confdefs.h <<_ACEOF
12155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 _ACEOF
12157
12158 fi
12159 done
12160
12161
12162 # Check whether --enable-shared was given.
12163 if test "${enable_shared+set}" = set; then
12164   enableval=$enable_shared; p=${PACKAGE-default}
12165     case $enableval in
12166     yes) enable_shared=yes ;;
12167     no) enable_shared=no ;;
12168     *)
12169       enable_shared=no
12170       # Look at the argument we got.  We use all the common list separators.
12171       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12172       for pkg in $enableval; do
12173         IFS="$lt_save_ifs"
12174         if test "X$pkg" = "X$p"; then
12175           enable_shared=yes
12176         fi
12177       done
12178       IFS="$lt_save_ifs"
12179       ;;
12180     esac
12181 else
12182   enable_shared=yes
12183 fi
12184
12185
12186 # Check whether --enable-static was given.
12187 if test "${enable_static+set}" = set; then
12188   enableval=$enable_static; p=${PACKAGE-default}
12189     case $enableval in
12190     yes) enable_static=yes ;;
12191     no) enable_static=no ;;
12192     *)
12193      enable_static=no
12194       # Look at the argument we got.  We use all the common list separators.
12195       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12196       for pkg in $enableval; do
12197         IFS="$lt_save_ifs"
12198         if test "X$pkg" = "X$p"; then
12199           enable_static=yes
12200         fi
12201       done
12202       IFS="$lt_save_ifs"
12203       ;;
12204     esac
12205 else
12206   enable_static=yes
12207 fi
12208
12209
12210 # Check whether --enable-fast-install was given.
12211 if test "${enable_fast_install+set}" = set; then
12212   enableval=$enable_fast_install; p=${PACKAGE-default}
12213     case $enableval in
12214     yes) enable_fast_install=yes ;;
12215     no) enable_fast_install=no ;;
12216     *)
12217       enable_fast_install=no
12218       # Look at the argument we got.  We use all the common list separators.
12219       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12220       for pkg in $enableval; do
12221         IFS="$lt_save_ifs"
12222         if test "X$pkg" = "X$p"; then
12223           enable_fast_install=yes
12224         fi
12225       done
12226       IFS="$lt_save_ifs"
12227       ;;
12228     esac
12229 else
12230   enable_fast_install=yes
12231 fi
12232
12233
12234 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12235 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12236 if test "${lt_cv_path_SED+set}" = set; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   # Loop through the user's path and test for sed and gsed.
12240 # Then use that list of sed's as ones to test for truncation.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246   for lt_ac_prog in sed gsed; do
12247     for ac_exec_ext in '' $ac_executable_extensions; do
12248       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12249         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12250       fi
12251     done
12252   done
12253 done
12254 lt_ac_max=0
12255 lt_ac_count=0
12256 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12257 # along with /bin/sed that truncates output.
12258 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12259   test ! -f $lt_ac_sed && continue
12260   cat /dev/null > conftest.in
12261   lt_ac_count=0
12262   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12263   # Check for GNU sed and select it if it is found.
12264   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12265     lt_cv_path_SED=$lt_ac_sed
12266     break
12267   fi
12268   while true; do
12269     cat conftest.in conftest.in >conftest.tmp
12270     mv conftest.tmp conftest.in
12271     cp conftest.in conftest.nl
12272     echo >>conftest.nl
12273     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12274     cmp -s conftest.out conftest.nl || break
12275     # 10000 chars as input seems more than enough
12276     test $lt_ac_count -gt 10 && break
12277     lt_ac_count=`expr $lt_ac_count + 1`
12278     if test $lt_ac_count -gt $lt_ac_max; then
12279       lt_ac_max=$lt_ac_count
12280       lt_cv_path_SED=$lt_ac_sed
12281     fi
12282   done
12283 done
12284
12285 fi
12286
12287 SED=$lt_cv_path_SED
12288 { echo "$as_me:$LINENO: result: $SED" >&5
12289 echo "${ECHO_T}$SED" >&6; }
12290
12291
12292 # Check whether --with-gnu-ld was given.
12293 if test "${with_gnu_ld+set}" = set; then
12294   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12295 else
12296   with_gnu_ld=no
12297 fi
12298
12299 ac_prog=ld
12300 if test "$GCC" = yes; then
12301   # Check if gcc -print-prog-name=ld gives a path.
12302   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12303 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12304   case $host in
12305   *-*-mingw*)
12306     # gcc leaves a trailing carriage return which upsets mingw
12307     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12308   *)
12309     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12310   esac
12311   case $ac_prog in
12312     # Accept absolute paths.
12313     [\\/]* | ?:[\\/]*)
12314       re_direlt='/[^/][^/]*/\.\./'
12315       # Canonicalize the pathname of ld
12316       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12317       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12318         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12319       done
12320       test -z "$LD" && LD="$ac_prog"
12321       ;;
12322   "")
12323     # If it fails, then pretend we aren't using GCC.
12324     ac_prog=ld
12325     ;;
12326   *)
12327     # If it is relative, then search for the first ld in PATH.
12328     with_gnu_ld=unknown
12329     ;;
12330   esac
12331 elif test "$with_gnu_ld" = yes; then
12332   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12333 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12334 else
12335   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12336 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12337 fi
12338 if test "${lt_cv_path_LD+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   if test -z "$LD"; then
12342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12343   for ac_dir in $PATH; do
12344     IFS="$lt_save_ifs"
12345     test -z "$ac_dir" && ac_dir=.
12346     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12347       lt_cv_path_LD="$ac_dir/$ac_prog"
12348       # Check to see if the program is GNU ld.  I'd rather use --version,
12349       # but apparently some variants of GNU ld only accept -v.
12350       # Break only if it was the GNU/non-GNU ld that we prefer.
12351       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12352       *GNU* | *'with BFD'*)
12353         test "$with_gnu_ld" != no && break
12354         ;;
12355       *)
12356         test "$with_gnu_ld" != yes && break
12357         ;;
12358       esac
12359     fi
12360   done
12361   IFS="$lt_save_ifs"
12362 else
12363   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12364 fi
12365 fi
12366
12367 LD="$lt_cv_path_LD"
12368 if test -n "$LD"; then
12369   { echo "$as_me:$LINENO: result: $LD" >&5
12370 echo "${ECHO_T}$LD" >&6; }
12371 else
12372   { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12374 fi
12375 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12376 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12377    { (exit 1); exit 1; }; }
12378 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12379 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12380 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12384 case `$LD -v 2>&1 </dev/null` in
12385 *GNU* | *'with BFD'*)
12386   lt_cv_prog_gnu_ld=yes
12387   ;;
12388 *)
12389   lt_cv_prog_gnu_ld=no
12390   ;;
12391 esac
12392 fi
12393 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12395 with_gnu_ld=$lt_cv_prog_gnu_ld
12396
12397
12398 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12399 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12400 if test "${lt_cv_ld_reload_flag+set}" = set; then
12401   echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403   lt_cv_ld_reload_flag='-r'
12404 fi
12405 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12406 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12407 reload_flag=$lt_cv_ld_reload_flag
12408 case $reload_flag in
12409 "" | " "*) ;;
12410 *) reload_flag=" $reload_flag" ;;
12411 esac
12412 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12413 case $host_os in
12414   darwin*)
12415     if test "$GCC" = yes; then
12416       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12417     else
12418       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12419     fi
12420     ;;
12421 esac
12422
12423 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12424 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12425 if test "${lt_cv_deplibs_check_method+set}" = set; then
12426   echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428   lt_cv_file_magic_cmd='$MAGIC_CMD'
12429 lt_cv_file_magic_test_file=
12430 lt_cv_deplibs_check_method='unknown'
12431 # Need to set the preceding variable on all platforms that support
12432 # interlibrary dependencies.
12433 # 'none' -- dependencies not supported.
12434 # `unknown' -- same as none, but documents that we really don't know.
12435 # 'pass_all' -- all dependencies passed with no checks.
12436 # 'test_compile' -- check by making test program.
12437 # 'file_magic [[regex]]' -- check by looking for files in library path
12438 # which responds to the $file_magic_cmd with a given extended regex.
12439 # If you have `file' or equivalent on your system and you're not sure
12440 # whether `pass_all' will *always* work, you probably want this one.
12441
12442 case $host_os in
12443 aix4* | aix5*)
12444   lt_cv_deplibs_check_method=pass_all
12445   ;;
12446
12447 beos*)
12448   lt_cv_deplibs_check_method=pass_all
12449   ;;
12450
12451 bsdi[45]*)
12452   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12453   lt_cv_file_magic_cmd='/usr/bin/file -L'
12454   lt_cv_file_magic_test_file=/shlib/libc.so
12455   ;;
12456
12457 cygwin*)
12458   # func_win32_libid is a shell function defined in ltmain.sh
12459   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12460   lt_cv_file_magic_cmd='func_win32_libid'
12461   ;;
12462
12463 mingw* | pw32*)
12464   # Base MSYS/MinGW do not provide the 'file' command needed by
12465   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12466   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12467   lt_cv_file_magic_cmd='$OBJDUMP -f'
12468   ;;
12469
12470 darwin* | rhapsody*)
12471   lt_cv_deplibs_check_method=pass_all
12472   ;;
12473
12474 freebsd* | kfreebsd*-gnu | dragonfly*)
12475   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12476     case $host_cpu in
12477     i*86 )
12478       # Not sure whether the presence of OpenBSD here was a mistake.
12479       # Let's accept both of them until this is cleared up.
12480       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12481       lt_cv_file_magic_cmd=/usr/bin/file
12482       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12483       ;;
12484     esac
12485   else
12486     lt_cv_deplibs_check_method=pass_all
12487   fi
12488   ;;
12489
12490 gnu*)
12491   lt_cv_deplibs_check_method=pass_all
12492   ;;
12493
12494 hpux10.20* | hpux11*)
12495   lt_cv_file_magic_cmd=/usr/bin/file
12496   case $host_cpu in
12497   ia64*)
12498     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12499     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12500     ;;
12501   hppa*64*)
12502     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]'
12503     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12504     ;;
12505   *)
12506     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12507     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12508     ;;
12509   esac
12510   ;;
12511
12512 interix3*)
12513   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12514   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12515   ;;
12516
12517 irix5* | irix6* | nonstopux*)
12518   case $LD in
12519   *-32|*"-32 ") libmagic=32-bit;;
12520   *-n32|*"-n32 ") libmagic=N32;;
12521   *-64|*"-64 ") libmagic=64-bit;;
12522   *) libmagic=never-match;;
12523   esac
12524   lt_cv_deplibs_check_method=pass_all
12525   ;;
12526
12527 # This must be Linux ELF.
12528 linux*)
12529   lt_cv_deplibs_check_method=pass_all
12530   ;;
12531
12532 netbsd*)
12533   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12534     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12535   else
12536     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12537   fi
12538   ;;
12539
12540 newos6*)
12541   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12542   lt_cv_file_magic_cmd=/usr/bin/file
12543   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12544   ;;
12545
12546 nto-qnx*)
12547   lt_cv_deplibs_check_method=unknown
12548   ;;
12549
12550 openbsd*)
12551   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12553   else
12554     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12555   fi
12556   ;;
12557
12558 osf3* | osf4* | osf5*)
12559   lt_cv_deplibs_check_method=pass_all
12560   ;;
12561
12562 solaris*)
12563   lt_cv_deplibs_check_method=pass_all
12564   ;;
12565
12566 sysv4 | sysv4.3*)
12567   case $host_vendor in
12568   motorola)
12569     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]'
12570     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12571     ;;
12572   ncr)
12573     lt_cv_deplibs_check_method=pass_all
12574     ;;
12575   sequent)
12576     lt_cv_file_magic_cmd='/bin/file'
12577     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12578     ;;
12579   sni)
12580     lt_cv_file_magic_cmd='/bin/file'
12581     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12582     lt_cv_file_magic_test_file=/lib/libc.so
12583     ;;
12584   siemens)
12585     lt_cv_deplibs_check_method=pass_all
12586     ;;
12587   pc)
12588     lt_cv_deplibs_check_method=pass_all
12589     ;;
12590   esac
12591   ;;
12592
12593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12594   lt_cv_deplibs_check_method=pass_all
12595   ;;
12596 esac
12597
12598 fi
12599 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12600 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12601 file_magic_cmd=$lt_cv_file_magic_cmd
12602 deplibs_check_method=$lt_cv_deplibs_check_method
12603 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12604
12605
12606
12607 # If no C compiler was specified, use CC.
12608 LTCC=${LTCC-"$CC"}
12609
12610 # If no C compiler flags were specified, use CFLAGS.
12611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12612
12613 # Allow CC to be a program name with arguments.
12614 compiler=$CC
12615
12616 # Check whether --enable-libtool-lock was given.
12617 if test "${enable_libtool_lock+set}" = set; then
12618   enableval=$enable_libtool_lock;
12619 fi
12620
12621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12622
12623 # Some flags need to be propagated to the compiler or linker for good
12624 # libtool support.
12625 case $host in
12626 ia64-*-hpux*)
12627   # Find out which ABI we are using.
12628   echo 'int i;' > conftest.$ac_ext
12629   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630   (eval $ac_compile) 2>&5
12631   ac_status=$?
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); }; then
12634     case `/usr/bin/file conftest.$ac_objext` in
12635     *ELF-32*)
12636       HPUX_IA64_MODE="32"
12637       ;;
12638     *ELF-64*)
12639       HPUX_IA64_MODE="64"
12640       ;;
12641     esac
12642   fi
12643   rm -rf conftest*
12644   ;;
12645 *-*-irix6*)
12646   # Find out which ABI we are using.
12647   echo '#line 12647 "configure"' > conftest.$ac_ext
12648   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649   (eval $ac_compile) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; then
12653    if test "$lt_cv_prog_gnu_ld" = yes; then
12654     case `/usr/bin/file conftest.$ac_objext` in
12655     *32-bit*)
12656       LD="${LD-ld} -melf32bsmip"
12657       ;;
12658     *N32*)
12659       LD="${LD-ld} -melf32bmipn32"
12660       ;;
12661     *64-bit*)
12662       LD="${LD-ld} -melf64bmip"
12663       ;;
12664     esac
12665    else
12666     case `/usr/bin/file conftest.$ac_objext` in
12667     *32-bit*)
12668       LD="${LD-ld} -32"
12669       ;;
12670     *N32*)
12671       LD="${LD-ld} -n32"
12672       ;;
12673     *64-bit*)
12674       LD="${LD-ld} -64"
12675       ;;
12676     esac
12677    fi
12678   fi
12679   rm -rf conftest*
12680   ;;
12681
12682 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12683   # Find out which ABI we are using.
12684   echo 'int i;' > conftest.$ac_ext
12685   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686   (eval $ac_compile) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; then
12690     case `/usr/bin/file conftest.o` in
12691     *32-bit*)
12692       case $host in
12693         x86_64-*linux*)
12694           LD="${LD-ld} -m elf_i386"
12695           ;;
12696         ppc64-*linux*|powerpc64-*linux*)
12697           LD="${LD-ld} -m elf32ppclinux"
12698           ;;
12699         s390x-*linux*)
12700           LD="${LD-ld} -m elf_s390"
12701           ;;
12702         sparc64-*linux*)
12703           LD="${LD-ld} -m elf32_sparc"
12704           ;;
12705       esac
12706       ;;
12707     *64-bit*)
12708       case $host in
12709         x86_64-*linux*)
12710           LD="${LD-ld} -m elf_x86_64"
12711           ;;
12712         ppc*-*linux*|powerpc*-*linux*)
12713           LD="${LD-ld} -m elf64ppc"
12714           ;;
12715         s390*-*linux*)
12716           LD="${LD-ld} -m elf64_s390"
12717           ;;
12718         sparc*-*linux*)
12719           LD="${LD-ld} -m elf64_sparc"
12720           ;;
12721       esac
12722       ;;
12723     esac
12724   fi
12725   rm -rf conftest*
12726   ;;
12727
12728 *-*-sco3.2v5*)
12729   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12730   SAVE_CFLAGS="$CFLAGS"
12731   CFLAGS="$CFLAGS -belf"
12732   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12733 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12734 if test "${lt_cv_cc_needs_belf+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   ac_ext=c
12738 ac_cpp='$CPP $CPPFLAGS'
12739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742
12743      cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h.  */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h.  */
12749
12750 int
12751 main ()
12752 {
12753
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_link") 2>conftest.er1
12766   ac_status=$?
12767   grep -v '^ *+' conftest.er1 >conftest.err
12768   rm -f conftest.er1
12769   cat conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773   { (case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_try") 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; } &&
12782          { ac_try='test -s conftest$ac_exeext'
12783   { (case "(($ac_try" in
12784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785   *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788   (eval "$ac_try") 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; }; then
12792   lt_cv_cc_needs_belf=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         lt_cv_cc_needs_belf=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext \
12801       conftest$ac_exeext conftest.$ac_ext
12802      ac_ext=c
12803 ac_cpp='$CPP $CPPFLAGS'
12804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12807
12808 fi
12809 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12810 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12811   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12812     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12813     CFLAGS="$SAVE_CFLAGS"
12814   fi
12815   ;;
12816 sparc*-*solaris*)
12817   # Find out which ABI we are using.
12818   echo 'int i;' > conftest.$ac_ext
12819   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820   (eval $ac_compile) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; then
12824     case `/usr/bin/file conftest.o` in
12825     *64-bit*)
12826       case $lt_cv_prog_gnu_ld in
12827       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12828       *)    LD="${LD-ld} -64" ;;
12829       esac
12830       ;;
12831     esac
12832   fi
12833   rm -rf conftest*
12834   ;;
12835
12836
12837 esac
12838
12839 need_locks="$enable_libtool_lock"
12840
12841
12842
12843
12844 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12845     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12846     (test "X$CXX" != "Xg++"))) ; then
12847   ac_ext=cpp
12848 ac_cpp='$CXXCPP $CPPFLAGS'
12849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12852 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12853 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12854 if test -z "$CXXCPP"; then
12855   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12856   echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858       # Double quotes because CXXCPP needs to be expanded
12859     for CXXCPP in "$CXX -E" "/lib/cpp"
12860     do
12861       ac_preproc_ok=false
12862 for ac_cxx_preproc_warn_flag in '' yes
12863 do
12864   # Use a header file that comes with gcc, so configuring glibc
12865   # with a fresh cross-compiler works.
12866   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867   # <limits.h> exists even on freestanding compilers.
12868   # On the NeXT, cc -E runs the code through the compiler's parser,
12869   # not just through cpp. "Syntax error" is here to catch this case.
12870   cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h.  */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h.  */
12876 #ifdef __STDC__
12877 # include <limits.h>
12878 #else
12879 # include <assert.h>
12880 #endif
12881                      Syntax error
12882 _ACEOF
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } >/dev/null; then
12896   if test -s conftest.err; then
12897     ac_cpp_err=$ac_cxx_preproc_warn_flag
12898     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12899   else
12900     ac_cpp_err=
12901   fi
12902 else
12903   ac_cpp_err=yes
12904 fi
12905 if test -z "$ac_cpp_err"; then
12906   :
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911   # Broken: fails on valid input.
12912 continue
12913 fi
12914
12915 rm -f conftest.err conftest.$ac_ext
12916
12917   # OK, works on sane cases.  Now check whether nonexistent headers
12918   # can be detected and how.
12919   cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 #include <ac_nonexistent.h>
12926 _ACEOF
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } >/dev/null; then
12940   if test -s conftest.err; then
12941     ac_cpp_err=$ac_cxx_preproc_warn_flag
12942     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12943   else
12944     ac_cpp_err=
12945   fi
12946 else
12947   ac_cpp_err=yes
12948 fi
12949 if test -z "$ac_cpp_err"; then
12950   # Broken: success on invalid input.
12951 continue
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956   # Passes both tests.
12957 ac_preproc_ok=:
12958 break
12959 fi
12960
12961 rm -f conftest.err conftest.$ac_ext
12962
12963 done
12964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12965 rm -f conftest.err conftest.$ac_ext
12966 if $ac_preproc_ok; then
12967   break
12968 fi
12969
12970     done
12971     ac_cv_prog_CXXCPP=$CXXCPP
12972
12973 fi
12974   CXXCPP=$ac_cv_prog_CXXCPP
12975 else
12976   ac_cv_prog_CXXCPP=$CXXCPP
12977 fi
12978 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12979 echo "${ECHO_T}$CXXCPP" >&6; }
12980 ac_preproc_ok=false
12981 for ac_cxx_preproc_warn_flag in '' yes
12982 do
12983   # Use a header file that comes with gcc, so configuring glibc
12984   # with a fresh cross-compiler works.
12985   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12986   # <limits.h> exists even on freestanding compilers.
12987   # On the NeXT, cc -E runs the code through the compiler's parser,
12988   # not just through cpp. "Syntax error" is here to catch this case.
12989   cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995 #ifdef __STDC__
12996 # include <limits.h>
12997 #else
12998 # include <assert.h>
12999 #endif
13000                      Syntax error
13001 _ACEOF
13002 if { (ac_try="$ac_cpp conftest.$ac_ext"
13003 case "(($ac_try" in
13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005   *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13009   ac_status=$?
13010   grep -v '^ *+' conftest.er1 >conftest.err
13011   rm -f conftest.er1
13012   cat conftest.err >&5
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } >/dev/null; then
13015   if test -s conftest.err; then
13016     ac_cpp_err=$ac_cxx_preproc_warn_flag
13017     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13018   else
13019     ac_cpp_err=
13020   fi
13021 else
13022   ac_cpp_err=yes
13023 fi
13024 if test -z "$ac_cpp_err"; then
13025   :
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030   # Broken: fails on valid input.
13031 continue
13032 fi
13033
13034 rm -f conftest.err conftest.$ac_ext
13035
13036   # OK, works on sane cases.  Now check whether nonexistent headers
13037   # can be detected and how.
13038   cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h.  */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h.  */
13044 #include <ac_nonexistent.h>
13045 _ACEOF
13046 if { (ac_try="$ac_cpp conftest.$ac_ext"
13047 case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } >/dev/null; then
13059   if test -s conftest.err; then
13060     ac_cpp_err=$ac_cxx_preproc_warn_flag
13061     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13062   else
13063     ac_cpp_err=
13064   fi
13065 else
13066   ac_cpp_err=yes
13067 fi
13068 if test -z "$ac_cpp_err"; then
13069   # Broken: success on invalid input.
13070 continue
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075   # Passes both tests.
13076 ac_preproc_ok=:
13077 break
13078 fi
13079
13080 rm -f conftest.err conftest.$ac_ext
13081
13082 done
13083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13084 rm -f conftest.err conftest.$ac_ext
13085 if $ac_preproc_ok; then
13086   :
13087 else
13088   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13089 See \`config.log' for more details." >&5
13090 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13091 See \`config.log' for more details." >&2;}
13092    { (exit 1); exit 1; }; }
13093 fi
13094
13095 ac_ext=cpp
13096 ac_cpp='$CXXCPP $CPPFLAGS'
13097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13100
13101 fi
13102
13103
13104 ac_ext=f
13105 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13106 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13107 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13108 if test -n "$ac_tool_prefix"; then
13109   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
13110   do
13111     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13115 if test "${ac_cv_prog_F77+set}" = set; then
13116   echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118   if test -n "$F77"; then
13119   ac_cv_prog_F77="$F77" # Let the user override the test.
13120 else
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13123 do
13124   IFS=$as_save_IFS
13125   test -z "$as_dir" && as_dir=.
13126   for ac_exec_ext in '' $ac_executable_extensions; do
13127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13128     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13130     break 2
13131   fi
13132 done
13133 done
13134 IFS=$as_save_IFS
13135
13136 fi
13137 fi
13138 F77=$ac_cv_prog_F77
13139 if test -n "$F77"; then
13140   { echo "$as_me:$LINENO: result: $F77" >&5
13141 echo "${ECHO_T}$F77" >&6; }
13142 else
13143   { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13145 fi
13146
13147
13148     test -n "$F77" && break
13149   done
13150 fi
13151 if test -z "$F77"; then
13152   ac_ct_F77=$F77
13153   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
13154 do
13155   # Extract the first word of "$ac_prog", so it can be a program name with args.
13156 set dummy $ac_prog; ac_word=$2
13157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13159 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   if test -n "$ac_ct_F77"; then
13163   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13167 do
13168   IFS=$as_save_IFS
13169   test -z "$as_dir" && as_dir=.
13170   for ac_exec_ext in '' $ac_executable_extensions; do
13171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13172     ac_cv_prog_ac_ct_F77="$ac_prog"
13173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174     break 2
13175   fi
13176 done
13177 done
13178 IFS=$as_save_IFS
13179
13180 fi
13181 fi
13182 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13183 if test -n "$ac_ct_F77"; then
13184   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13185 echo "${ECHO_T}$ac_ct_F77" >&6; }
13186 else
13187   { echo "$as_me:$LINENO: result: no" >&5
13188 echo "${ECHO_T}no" >&6; }
13189 fi
13190
13191
13192   test -n "$ac_ct_F77" && break
13193 done
13194
13195   if test "x$ac_ct_F77" = x; then
13196     F77=""
13197   else
13198     case $cross_compiling:$ac_tool_warned in
13199 yes:)
13200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13201 whose name does not start with the host triplet.  If you think this
13202 configuration is useful to you, please write to autoconf@gnu.org." >&5
13203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13204 whose name does not start with the host triplet.  If you think this
13205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13206 ac_tool_warned=yes ;;
13207 esac
13208     F77=$ac_ct_F77
13209   fi
13210 fi
13211
13212
13213 # Provide some information about the compiler.
13214 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13215 ac_compiler=`set X $ac_compile; echo $2`
13216 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }
13226 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }
13236 { (ac_try="$ac_compiler -V >&5"
13237 case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_compiler -V >&5") 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }
13246 rm -f a.out
13247
13248 # If we don't use `.F' as extension, the preprocessor is not run on the
13249 # input file.  (Note that this only needs to work for GNU compilers.)
13250 ac_save_ext=$ac_ext
13251 ac_ext=F
13252 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13255   echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257   cat >conftest.$ac_ext <<_ACEOF
13258       program main
13259 #ifndef __GNUC__
13260        choke me
13261 #endif
13262
13263       end
13264 _ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (ac_try="$ac_compile"
13267 case "(($ac_try" in
13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269   *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272   (eval "$ac_compile") 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } &&
13279          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13280   { (case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_try") 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; } &&
13289          { ac_try='test -s conftest.$ac_objext'
13290   { (case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295   (eval "$ac_try") 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; }; then
13299   ac_compiler_gnu=yes
13300 else
13301   echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13303
13304         ac_compiler_gnu=no
13305 fi
13306
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13309
13310 fi
13311 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13312 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13313 ac_ext=$ac_save_ext
13314 ac_test_FFLAGS=${FFLAGS+set}
13315 ac_save_FFLAGS=$FFLAGS
13316 FFLAGS=
13317 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13318 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13319 if test "${ac_cv_prog_f77_g+set}" = set; then
13320   echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322   FFLAGS=-g
13323 cat >conftest.$ac_ext <<_ACEOF
13324       program main
13325
13326       end
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_compile") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } &&
13342          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13343   { (case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348   (eval "$ac_try") 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; } &&
13352          { ac_try='test -s conftest.$ac_objext'
13353   { (case "(($ac_try" in
13354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355   *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358   (eval "$ac_try") 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; }; then
13362   ac_cv_prog_f77_g=yes
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367         ac_cv_prog_f77_g=no
13368 fi
13369
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371
13372 fi
13373 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13374 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13375 if test "$ac_test_FFLAGS" = set; then
13376   FFLAGS=$ac_save_FFLAGS
13377 elif test $ac_cv_prog_f77_g = yes; then
13378   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13379     FFLAGS="-g -O2"
13380   else
13381     FFLAGS="-g"
13382   fi
13383 else
13384   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13385     FFLAGS="-O2"
13386   else
13387     FFLAGS=
13388   fi
13389 fi
13390
13391 G77=`test $ac_compiler_gnu = yes && echo yes`
13392 ac_ext=c
13393 ac_cpp='$CPP $CPPFLAGS'
13394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13397
13398
13399
13400 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13401
13402 # find the maximum length of command line arguments
13403 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408     i=0
13409   teststring="ABCD"
13410
13411   case $build_os in
13412   msdosdjgpp*)
13413     # On DJGPP, this test can blow up pretty badly due to problems in libc
13414     # (any single argument exceeding 2000 bytes causes a buffer overrun
13415     # during glob expansion).  Even if it were fixed, the result of this
13416     # check would be larger than it should be.
13417     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13418     ;;
13419
13420   gnu*)
13421     # Under GNU Hurd, this test is not required because there is
13422     # no limit to the length of command line arguments.
13423     # Libtool will interpret -1 as no limit whatsoever
13424     lt_cv_sys_max_cmd_len=-1;
13425     ;;
13426
13427   cygwin* | mingw*)
13428     # On Win9x/ME, this test blows up -- it succeeds, but takes
13429     # about 5 minutes as the teststring grows exponentially.
13430     # Worse, since 9x/ME are not pre-emptively multitasking,
13431     # you end up with a "frozen" computer, even though with patience
13432     # the test eventually succeeds (with a max line length of 256k).
13433     # Instead, let's just punt: use the minimum linelength reported by
13434     # all of the supported platforms: 8192 (on NT/2K/XP).
13435     lt_cv_sys_max_cmd_len=8192;
13436     ;;
13437
13438   amigaos*)
13439     # On AmigaOS with pdksh, this test takes hours, literally.
13440     # So we just punt and use a minimum line length of 8192.
13441     lt_cv_sys_max_cmd_len=8192;
13442     ;;
13443
13444   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13445     # This has been around since 386BSD, at least.  Likely further.
13446     if test -x /sbin/sysctl; then
13447       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13448     elif test -x /usr/sbin/sysctl; then
13449       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13450     else
13451       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13452     fi
13453     # And add a safety zone
13454     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13455     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13456     ;;
13457
13458   interix*)
13459     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13460     lt_cv_sys_max_cmd_len=196608
13461     ;;
13462
13463   osf*)
13464     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13465     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13466     # nice to cause kernel panics so lets avoid the loop below.
13467     # First set a reasonable default.
13468     lt_cv_sys_max_cmd_len=16384
13469     #
13470     if test -x /sbin/sysconfig; then
13471       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13472         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13473       esac
13474     fi
13475     ;;
13476   sco3.2v5*)
13477     lt_cv_sys_max_cmd_len=102400
13478     ;;
13479   sysv5* | sco5v6* | sysv4.2uw2*)
13480     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13481     if test -n "$kargmax"; then
13482       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13483     else
13484       lt_cv_sys_max_cmd_len=32768
13485     fi
13486     ;;
13487   *)
13488     # If test is not a shell built-in, we'll probably end up computing a
13489     # maximum length that is only half of the actual maximum length, but
13490     # we can't tell.
13491     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13492     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13493                = "XX$teststring") >/dev/null 2>&1 &&
13494             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13495             lt_cv_sys_max_cmd_len=$new_result &&
13496             test $i != 17 # 1/2 MB should be enough
13497     do
13498       i=`expr $i + 1`
13499       teststring=$teststring$teststring
13500     done
13501     teststring=
13502     # Add a significant safety factor because C++ compilers can tack on massive
13503     # amounts of additional arguments before passing them to the linker.
13504     # It appears as though 1/2 is a usable value.
13505     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13506     ;;
13507   esac
13508
13509 fi
13510
13511 if test -n $lt_cv_sys_max_cmd_len ; then
13512   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13513 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13514 else
13515   { echo "$as_me:$LINENO: result: none" >&5
13516 echo "${ECHO_T}none" >&6; }
13517 fi
13518
13519
13520
13521
13522 # Check for command to grab the raw symbol name followed by C symbol from nm.
13523 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13524 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13525 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528
13529 # These are sane defaults that work on at least a few old systems.
13530 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13531
13532 # Character class describing NM global symbol codes.
13533 symcode='[BCDEGRST]'
13534
13535 # Regexp to match symbols that can be accessed directly from C.
13536 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13537
13538 # Transform an extracted symbol line into a proper C declaration
13539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13540
13541 # Transform an extracted symbol line into symbol name and symbol address
13542 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'"
13543
13544 # Define system-specific variables.
13545 case $host_os in
13546 aix*)
13547   symcode='[BCDT]'
13548   ;;
13549 cygwin* | mingw* | pw32*)
13550   symcode='[ABCDGISTW]'
13551   ;;
13552 hpux*) # Its linker distinguishes data from code symbols
13553   if test "$host_cpu" = ia64; then
13554     symcode='[ABCDEGRST]'
13555   fi
13556   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13557   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'"
13558   ;;
13559 linux*)
13560   if test "$host_cpu" = ia64; then
13561     symcode='[ABCDGIRSTW]'
13562     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13563     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'"
13564   fi
13565   ;;
13566 irix* | nonstopux*)
13567   symcode='[BCDEGRST]'
13568   ;;
13569 osf*)
13570   symcode='[BCDEGQRST]'
13571   ;;
13572 solaris*)
13573   symcode='[BDRT]'
13574   ;;
13575 sco3.2v5*)
13576   symcode='[DT]'
13577   ;;
13578 sysv4.2uw2*)
13579   symcode='[DT]'
13580   ;;
13581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13582   symcode='[ABDT]'
13583   ;;
13584 sysv4)
13585   symcode='[DFNSTU]'
13586   ;;
13587 esac
13588
13589 # Handle CRLF in mingw tool chain
13590 opt_cr=
13591 case $build_os in
13592 mingw*)
13593   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13594   ;;
13595 esac
13596
13597 # If we're using GNU nm, then use its standard symbol codes.
13598 case `$NM -V 2>&1` in
13599 *GNU* | *'with BFD'*)
13600   symcode='[ABCDGIRSTW]' ;;
13601 esac
13602
13603 # Try without a prefix undercore, then with it.
13604 for ac_symprfx in "" "_"; do
13605
13606   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13607   symxfrm="\\1 $ac_symprfx\\2 \\2"
13608
13609   # Write the raw and C identifiers.
13610   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13611
13612   # Check to see that the pipe works correctly.
13613   pipe_works=no
13614
13615   rm -f conftest*
13616   cat > conftest.$ac_ext <<EOF
13617 #ifdef __cplusplus
13618 extern "C" {
13619 #endif
13620 char nm_test_var;
13621 void nm_test_func(){}
13622 #ifdef __cplusplus
13623 }
13624 #endif
13625 int main(){nm_test_var='a';nm_test_func();return(0);}
13626 EOF
13627
13628   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629   (eval $ac_compile) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; then
13633     # Now try to grab the symbols.
13634     nlist=conftest.nm
13635     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13636   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } && test -s "$nlist"; then
13640       # Try sorting and uniquifying the output.
13641       if sort "$nlist" | uniq > "$nlist"T; then
13642         mv -f "$nlist"T "$nlist"
13643       else
13644         rm -f "$nlist"T
13645       fi
13646
13647       # Make sure that we snagged all the symbols we need.
13648       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13649         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13650           cat <<EOF > conftest.$ac_ext
13651 #ifdef __cplusplus
13652 extern "C" {
13653 #endif
13654
13655 EOF
13656           # Now generate the symbol file.
13657           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13658
13659           cat <<EOF >> conftest.$ac_ext
13660 #if defined (__STDC__) && __STDC__
13661 # define lt_ptr_t void *
13662 #else
13663 # define lt_ptr_t char *
13664 # define const
13665 #endif
13666
13667 /* The mapping between symbol names and symbols. */
13668 const struct {
13669   const char *name;
13670   lt_ptr_t address;
13671 }
13672 lt_preloaded_symbols[] =
13673 {
13674 EOF
13675           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13676           cat <<\EOF >> conftest.$ac_ext
13677   {0, (lt_ptr_t) 0}
13678 };
13679
13680 #ifdef __cplusplus
13681 }
13682 #endif
13683 EOF
13684           # Now try linking the two files.
13685           mv conftest.$ac_objext conftstm.$ac_objext
13686           lt_save_LIBS="$LIBS"
13687           lt_save_CFLAGS="$CFLAGS"
13688           LIBS="conftstm.$ac_objext"
13689           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13690           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691   (eval $ac_link) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13695             pipe_works=yes
13696           fi
13697           LIBS="$lt_save_LIBS"
13698           CFLAGS="$lt_save_CFLAGS"
13699         else
13700           echo "cannot find nm_test_func in $nlist" >&5
13701         fi
13702       else
13703         echo "cannot find nm_test_var in $nlist" >&5
13704       fi
13705     else
13706       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13707     fi
13708   else
13709     echo "$progname: failed program was:" >&5
13710     cat conftest.$ac_ext >&5
13711   fi
13712   rm -f conftest* conftst*
13713
13714   # Do not use the global_symbol_pipe unless it works.
13715   if test "$pipe_works" = yes; then
13716     break
13717   else
13718     lt_cv_sys_global_symbol_pipe=
13719   fi
13720 done
13721
13722 fi
13723
13724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13725   lt_cv_sys_global_symbol_to_cdecl=
13726 fi
13727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13728   { echo "$as_me:$LINENO: result: failed" >&5
13729 echo "${ECHO_T}failed" >&6; }
13730 else
13731   { echo "$as_me:$LINENO: result: ok" >&5
13732 echo "${ECHO_T}ok" >&6; }
13733 fi
13734
13735 { echo "$as_me:$LINENO: checking for objdir" >&5
13736 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13737 if test "${lt_cv_objdir+set}" = set; then
13738   echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740   rm -f .libs 2>/dev/null
13741 mkdir .libs 2>/dev/null
13742 if test -d .libs; then
13743   lt_cv_objdir=.libs
13744 else
13745   # MS-DOS does not allow filenames that begin with a dot.
13746   lt_cv_objdir=_libs
13747 fi
13748 rmdir .libs 2>/dev/null
13749 fi
13750 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13751 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13752 objdir=$lt_cv_objdir
13753
13754
13755
13756
13757
13758 case $host_os in
13759 aix3*)
13760   # AIX sometimes has problems with the GCC collect2 program.  For some
13761   # reason, if we set the COLLECT_NAMES environment variable, the problems
13762   # vanish in a puff of smoke.
13763   if test "X${COLLECT_NAMES+set}" != Xset; then
13764     COLLECT_NAMES=
13765     export COLLECT_NAMES
13766   fi
13767   ;;
13768 esac
13769
13770 # Sed substitution that helps us do robust quoting.  It backslashifies
13771 # metacharacters that are still active within double-quoted strings.
13772 Xsed='sed -e 1s/^X//'
13773 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13774
13775 # Same as above, but do not quote variable references.
13776 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13777
13778 # Sed substitution to delay expansion of an escaped shell variable in a
13779 # double_quote_subst'ed string.
13780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13781
13782 # Sed substitution to avoid accidental globbing in evaled expressions
13783 no_glob_subst='s/\*/\\\*/g'
13784
13785 # Constants:
13786 rm="rm -f"
13787
13788 # Global variables:
13789 default_ofile=mklib
13790 can_build_shared=yes
13791
13792 # All known linkers require a `.a' archive for static linking (except MSVC,
13793 # which needs '.lib').
13794 libext=a
13795 ltmain="$ac_aux_dir/ltmain.sh"
13796 ofile="$default_ofile"
13797 with_gnu_ld="$lt_cv_prog_gnu_ld"
13798
13799 if test -n "$ac_tool_prefix"; then
13800   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13801 set dummy ${ac_tool_prefix}ar; ac_word=$2
13802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13804 if test "${ac_cv_prog_AR+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   if test -n "$AR"; then
13808   ac_cv_prog_AR="$AR" # Let the user override the test.
13809 else
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13812 do
13813   IFS=$as_save_IFS
13814   test -z "$as_dir" && as_dir=.
13815   for ac_exec_ext in '' $ac_executable_extensions; do
13816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13817     ac_cv_prog_AR="${ac_tool_prefix}ar"
13818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13819     break 2
13820   fi
13821 done
13822 done
13823 IFS=$as_save_IFS
13824
13825 fi
13826 fi
13827 AR=$ac_cv_prog_AR
13828 if test -n "$AR"; then
13829   { echo "$as_me:$LINENO: result: $AR" >&5
13830 echo "${ECHO_T}$AR" >&6; }
13831 else
13832   { echo "$as_me:$LINENO: result: no" >&5
13833 echo "${ECHO_T}no" >&6; }
13834 fi
13835
13836
13837 fi
13838 if test -z "$ac_cv_prog_AR"; then
13839   ac_ct_AR=$AR
13840   # Extract the first word of "ar", so it can be a program name with args.
13841 set dummy ar; ac_word=$2
13842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   if test -n "$ac_ct_AR"; then
13848   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13849 else
13850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851 for as_dir in $PATH
13852 do
13853   IFS=$as_save_IFS
13854   test -z "$as_dir" && as_dir=.
13855   for ac_exec_ext in '' $ac_executable_extensions; do
13856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13857     ac_cv_prog_ac_ct_AR="ar"
13858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13859     break 2
13860   fi
13861 done
13862 done
13863 IFS=$as_save_IFS
13864
13865 fi
13866 fi
13867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13868 if test -n "$ac_ct_AR"; then
13869   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13870 echo "${ECHO_T}$ac_ct_AR" >&6; }
13871 else
13872   { echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6; }
13874 fi
13875
13876   if test "x$ac_ct_AR" = x; then
13877     AR="false"
13878   else
13879     case $cross_compiling:$ac_tool_warned in
13880 yes:)
13881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13882 whose name does not start with the host triplet.  If you think this
13883 configuration is useful to you, please write to autoconf@gnu.org." >&5
13884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13885 whose name does not start with the host triplet.  If you think this
13886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13887 ac_tool_warned=yes ;;
13888 esac
13889     AR=$ac_ct_AR
13890   fi
13891 else
13892   AR="$ac_cv_prog_AR"
13893 fi
13894
13895 if test -n "$ac_tool_prefix"; then
13896   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13900 if test "${ac_cv_prog_RANLIB+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903   if test -n "$RANLIB"; then
13904   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909   IFS=$as_save_IFS
13910   test -z "$as_dir" && as_dir=.
13911   for ac_exec_ext in '' $ac_executable_extensions; do
13912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13913     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13915     break 2
13916   fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 fi
13922 fi
13923 RANLIB=$ac_cv_prog_RANLIB
13924 if test -n "$RANLIB"; then
13925   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13926 echo "${ECHO_T}$RANLIB" >&6; }
13927 else
13928   { echo "$as_me:$LINENO: result: no" >&5
13929 echo "${ECHO_T}no" >&6; }
13930 fi
13931
13932
13933 fi
13934 if test -z "$ac_cv_prog_RANLIB"; then
13935   ac_ct_RANLIB=$RANLIB
13936   # Extract the first word of "ranlib", so it can be a program name with args.
13937 set dummy ranlib; ac_word=$2
13938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   if test -n "$ac_ct_RANLIB"; then
13944   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949   IFS=$as_save_IFS
13950   test -z "$as_dir" && as_dir=.
13951   for ac_exec_ext in '' $ac_executable_extensions; do
13952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13953     ac_cv_prog_ac_ct_RANLIB="ranlib"
13954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13955     break 2
13956   fi
13957 done
13958 done
13959 IFS=$as_save_IFS
13960
13961 fi
13962 fi
13963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13964 if test -n "$ac_ct_RANLIB"; then
13965   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13966 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13967 else
13968   { echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6; }
13970 fi
13971
13972   if test "x$ac_ct_RANLIB" = x; then
13973     RANLIB=":"
13974   else
13975     case $cross_compiling:$ac_tool_warned in
13976 yes:)
13977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13978 whose name does not start with the host triplet.  If you think this
13979 configuration is useful to you, please write to autoconf@gnu.org." >&5
13980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13981 whose name does not start with the host triplet.  If you think this
13982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13983 ac_tool_warned=yes ;;
13984 esac
13985     RANLIB=$ac_ct_RANLIB
13986   fi
13987 else
13988   RANLIB="$ac_cv_prog_RANLIB"
13989 fi
13990
13991 if test -n "$ac_tool_prefix"; then
13992   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13993 set dummy ${ac_tool_prefix}strip; ac_word=$2
13994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13996 if test "${ac_cv_prog_STRIP+set}" = set; then
13997   echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999   if test -n "$STRIP"; then
14000   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14001 else
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14004 do
14005   IFS=$as_save_IFS
14006   test -z "$as_dir" && as_dir=.
14007   for ac_exec_ext in '' $ac_executable_extensions; do
14008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14009     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14011     break 2
14012   fi
14013 done
14014 done
14015 IFS=$as_save_IFS
14016
14017 fi
14018 fi
14019 STRIP=$ac_cv_prog_STRIP
14020 if test -n "$STRIP"; then
14021   { echo "$as_me:$LINENO: result: $STRIP" >&5
14022 echo "${ECHO_T}$STRIP" >&6; }
14023 else
14024   { echo "$as_me:$LINENO: result: no" >&5
14025 echo "${ECHO_T}no" >&6; }
14026 fi
14027
14028
14029 fi
14030 if test -z "$ac_cv_prog_STRIP"; then
14031   ac_ct_STRIP=$STRIP
14032   # Extract the first word of "strip", so it can be a program name with args.
14033 set dummy strip; ac_word=$2
14034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   if test -n "$ac_ct_STRIP"; then
14040   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14041 else
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045   IFS=$as_save_IFS
14046   test -z "$as_dir" && as_dir=.
14047   for ac_exec_ext in '' $ac_executable_extensions; do
14048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14049     ac_cv_prog_ac_ct_STRIP="strip"
14050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051     break 2
14052   fi
14053 done
14054 done
14055 IFS=$as_save_IFS
14056
14057 fi
14058 fi
14059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14060 if test -n "$ac_ct_STRIP"; then
14061   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14062 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14063 else
14064   { echo "$as_me:$LINENO: result: no" >&5
14065 echo "${ECHO_T}no" >&6; }
14066 fi
14067
14068   if test "x$ac_ct_STRIP" = x; then
14069     STRIP=":"
14070   else
14071     case $cross_compiling:$ac_tool_warned in
14072 yes:)
14073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14074 whose name does not start with the host triplet.  If you think this
14075 configuration is useful to you, please write to autoconf@gnu.org." >&5
14076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14077 whose name does not start with the host triplet.  If you think this
14078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14079 ac_tool_warned=yes ;;
14080 esac
14081     STRIP=$ac_ct_STRIP
14082   fi
14083 else
14084   STRIP="$ac_cv_prog_STRIP"
14085 fi
14086
14087
14088 old_CC="$CC"
14089 old_CFLAGS="$CFLAGS"
14090
14091 # Set sane defaults for various variables
14092 test -z "$AR" && AR=ar
14093 test -z "$AR_FLAGS" && AR_FLAGS=cru
14094 test -z "$AS" && AS=as
14095 test -z "$CC" && CC=cc
14096 test -z "$LTCC" && LTCC=$CC
14097 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14098 test -z "$DLLTOOL" && DLLTOOL=dlltool
14099 test -z "$LD" && LD=ld
14100 test -z "$LN_S" && LN_S="ln -s"
14101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14102 test -z "$NM" && NM=nm
14103 test -z "$SED" && SED=sed
14104 test -z "$OBJDUMP" && OBJDUMP=objdump
14105 test -z "$RANLIB" && RANLIB=:
14106 test -z "$STRIP" && STRIP=:
14107 test -z "$ac_objext" && ac_objext=o
14108
14109 # Determine commands to create old-style static archives.
14110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14111 old_postinstall_cmds='chmod 644 $oldlib'
14112 old_postuninstall_cmds=
14113
14114 if test -n "$RANLIB"; then
14115   case $host_os in
14116   openbsd*)
14117     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14118     ;;
14119   *)
14120     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14121     ;;
14122   esac
14123   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14124 fi
14125
14126 for cc_temp in $compiler""; do
14127   case $cc_temp in
14128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14130     \-*) ;;
14131     *) break;;
14132   esac
14133 done
14134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14135
14136
14137 # Only perform the check for file, if the check method requires it
14138 case $deplibs_check_method in
14139 file_magic*)
14140   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14141     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14144   echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146   case $MAGIC_CMD in
14147 [\\/*] |  ?:[\\/]*)
14148   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14149   ;;
14150 *)
14151   lt_save_MAGIC_CMD="$MAGIC_CMD"
14152   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14153   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14154   for ac_dir in $ac_dummy; do
14155     IFS="$lt_save_ifs"
14156     test -z "$ac_dir" && ac_dir=.
14157     if test -f $ac_dir/${ac_tool_prefix}file; then
14158       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14159       if test -n "$file_magic_test_file"; then
14160         case $deplibs_check_method in
14161         "file_magic "*)
14162           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14163           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14164           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14165             $EGREP "$file_magic_regex" > /dev/null; then
14166             :
14167           else
14168             cat <<EOF 1>&2
14169
14170 *** Warning: the command libtool uses to detect shared libraries,
14171 *** $file_magic_cmd, produces output that libtool cannot recognize.
14172 *** The result is that libtool may fail to recognize shared libraries
14173 *** as such.  This will affect the creation of libtool libraries that
14174 *** depend on shared libraries, but programs linked with such libtool
14175 *** libraries will work regardless of this problem.  Nevertheless, you
14176 *** may want to report the problem to your system manager and/or to
14177 *** bug-libtool@gnu.org
14178
14179 EOF
14180           fi ;;
14181         esac
14182       fi
14183       break
14184     fi
14185   done
14186   IFS="$lt_save_ifs"
14187   MAGIC_CMD="$lt_save_MAGIC_CMD"
14188   ;;
14189 esac
14190 fi
14191
14192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14193 if test -n "$MAGIC_CMD"; then
14194   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14195 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14196 else
14197   { echo "$as_me:$LINENO: result: no" >&5
14198 echo "${ECHO_T}no" >&6; }
14199 fi
14200
14201 if test -z "$lt_cv_path_MAGIC_CMD"; then
14202   if test -n "$ac_tool_prefix"; then
14203     { echo "$as_me:$LINENO: checking for file" >&5
14204 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   case $MAGIC_CMD in
14209 [\\/*] |  ?:[\\/]*)
14210   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14211   ;;
14212 *)
14213   lt_save_MAGIC_CMD="$MAGIC_CMD"
14214   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14215   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14216   for ac_dir in $ac_dummy; do
14217     IFS="$lt_save_ifs"
14218     test -z "$ac_dir" && ac_dir=.
14219     if test -f $ac_dir/file; then
14220       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14221       if test -n "$file_magic_test_file"; then
14222         case $deplibs_check_method in
14223         "file_magic "*)
14224           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14225           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14226           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14227             $EGREP "$file_magic_regex" > /dev/null; then
14228             :
14229           else
14230             cat <<EOF 1>&2
14231
14232 *** Warning: the command libtool uses to detect shared libraries,
14233 *** $file_magic_cmd, produces output that libtool cannot recognize.
14234 *** The result is that libtool may fail to recognize shared libraries
14235 *** as such.  This will affect the creation of libtool libraries that
14236 *** depend on shared libraries, but programs linked with such libtool
14237 *** libraries will work regardless of this problem.  Nevertheless, you
14238 *** may want to report the problem to your system manager and/or to
14239 *** bug-libtool@gnu.org
14240
14241 EOF
14242           fi ;;
14243         esac
14244       fi
14245       break
14246     fi
14247   done
14248   IFS="$lt_save_ifs"
14249   MAGIC_CMD="$lt_save_MAGIC_CMD"
14250   ;;
14251 esac
14252 fi
14253
14254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14255 if test -n "$MAGIC_CMD"; then
14256   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14257 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14258 else
14259   { echo "$as_me:$LINENO: result: no" >&5
14260 echo "${ECHO_T}no" >&6; }
14261 fi
14262
14263   else
14264     MAGIC_CMD=:
14265   fi
14266 fi
14267
14268   fi
14269   ;;
14270 esac
14271
14272 enable_dlopen=yes
14273 enable_win32_dll=no
14274
14275 # Check whether --enable-libtool-lock was given.
14276 if test "${enable_libtool_lock+set}" = set; then
14277   enableval=$enable_libtool_lock;
14278 fi
14279
14280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14281
14282
14283 # Check whether --with-pic was given.
14284 if test "${with_pic+set}" = set; then
14285   withval=$with_pic; pic_mode="$withval"
14286 else
14287   pic_mode=default
14288 fi
14289
14290 test -z "$pic_mode" && pic_mode=default
14291
14292 # Use C for the default configuration in the libtool script
14293 tagname=
14294 lt_save_CC="$CC"
14295 ac_ext=c
14296 ac_cpp='$CPP $CPPFLAGS'
14297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300
14301
14302 # Source file extension for C test sources.
14303 ac_ext=c
14304
14305 # Object file extension for compiled C test sources.
14306 objext=o
14307 objext=$objext
14308
14309 # Code to be used in simple compile tests
14310 lt_simple_compile_test_code="int some_variable = 0;\n"
14311
14312 # Code to be used in simple link tests
14313 lt_simple_link_test_code='int main(){return(0);}\n'
14314
14315
14316 # If no C compiler was specified, use CC.
14317 LTCC=${LTCC-"$CC"}
14318
14319 # If no C compiler flags were specified, use CFLAGS.
14320 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14321
14322 # Allow CC to be a program name with arguments.
14323 compiler=$CC
14324
14325
14326 # save warnings/boilerplate of simple test code
14327 ac_outfile=conftest.$ac_objext
14328 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330 _lt_compiler_boilerplate=`cat conftest.err`
14331 $rm conftest*
14332
14333 ac_outfile=conftest.$ac_objext
14334 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14336 _lt_linker_boilerplate=`cat conftest.err`
14337 $rm conftest*
14338
14339
14340
14341 lt_prog_compiler_no_builtin_flag=
14342
14343 if test "$GCC" = yes; then
14344   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14345
14346
14347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   lt_cv_prog_compiler_rtti_exceptions=no
14353   ac_outfile=conftest.$ac_objext
14354    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14355    lt_compiler_flag="-fno-rtti -fno-exceptions"
14356    # Insert the option either (1) after the last *FLAGS variable, or
14357    # (2) before a word containing "conftest.", or (3) at the end.
14358    # Note that $ac_compile itself does not contain backslashes and begins
14359    # with a dollar sign (not a hyphen), so the echo should work correctly.
14360    # The option is referenced via a variable to avoid confusing sed.
14361    lt_compile=`echo "$ac_compile" | $SED \
14362    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14364    -e 's:$: $lt_compiler_flag:'`
14365    (eval echo "\"\$as_me:14365: $lt_compile\"" >&5)
14366    (eval "$lt_compile" 2>conftest.err)
14367    ac_status=$?
14368    cat conftest.err >&5
14369    echo "$as_me:14369: \$? = $ac_status" >&5
14370    if (exit $ac_status) && test -s "$ac_outfile"; then
14371      # The compiler can only warn and ignore the option if not recognized
14372      # So say no if there are warnings other than the usual output.
14373      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14374      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14375      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14376        lt_cv_prog_compiler_rtti_exceptions=yes
14377      fi
14378    fi
14379    $rm conftest*
14380
14381 fi
14382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14384
14385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14386     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14387 else
14388     :
14389 fi
14390
14391 fi
14392
14393 lt_prog_compiler_wl=
14394 lt_prog_compiler_pic=
14395 lt_prog_compiler_static=
14396
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14399
14400   if test "$GCC" = yes; then
14401     lt_prog_compiler_wl='-Wl,'
14402     lt_prog_compiler_static='-static'
14403
14404     case $host_os in
14405       aix*)
14406       # All AIX code is PIC.
14407       if test "$host_cpu" = ia64; then
14408         # AIX 5 now supports IA64 processor
14409         lt_prog_compiler_static='-Bstatic'
14410       fi
14411       ;;
14412
14413     amigaos*)
14414       # FIXME: we need at least 68020 code to build shared libraries, but
14415       # adding the `-m68020' flag to GCC prevents building anything better,
14416       # like `-m68040'.
14417       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14418       ;;
14419
14420     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14421       # PIC is the default for these OSes.
14422       ;;
14423
14424     mingw* | pw32* | os2*)
14425       # This hack is so that the source file can tell whether it is being
14426       # built for inclusion in a dll (and should export symbols for example).
14427       lt_prog_compiler_pic='-DDLL_EXPORT'
14428       ;;
14429
14430     darwin* | rhapsody*)
14431       # PIC is the default on this platform
14432       # Common symbols not allowed in MH_DYLIB files
14433       lt_prog_compiler_pic='-fno-common'
14434       ;;
14435
14436     interix3*)
14437       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14438       # Instead, we relocate shared libraries at runtime.
14439       ;;
14440
14441     msdosdjgpp*)
14442       # Just because we use GCC doesn't mean we suddenly get shared libraries
14443       # on systems that don't support them.
14444       lt_prog_compiler_can_build_shared=no
14445       enable_shared=no
14446       ;;
14447
14448     sysv4*MP*)
14449       if test -d /usr/nec; then
14450         lt_prog_compiler_pic=-Kconform_pic
14451       fi
14452       ;;
14453
14454     hpux*)
14455       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14456       # not for PA HP-UX.
14457       case $host_cpu in
14458       hppa*64*|ia64*)
14459         # +Z the default
14460         ;;
14461       *)
14462         lt_prog_compiler_pic='-fPIC'
14463         ;;
14464       esac
14465       ;;
14466
14467     *)
14468       lt_prog_compiler_pic='-fPIC'
14469       ;;
14470     esac
14471   else
14472     # PORTME Check for flag to pass linker flags through the system compiler.
14473     case $host_os in
14474     aix*)
14475       lt_prog_compiler_wl='-Wl,'
14476       if test "$host_cpu" = ia64; then
14477         # AIX 5 now supports IA64 processor
14478         lt_prog_compiler_static='-Bstatic'
14479       else
14480         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14481       fi
14482       ;;
14483       darwin*)
14484         # PIC is the default on this platform
14485         # Common symbols not allowed in MH_DYLIB files
14486        case $cc_basename in
14487          xlc*)
14488          lt_prog_compiler_pic='-qnocommon'
14489          lt_prog_compiler_wl='-Wl,'
14490          ;;
14491        esac
14492        ;;
14493
14494     mingw* | pw32* | os2*)
14495       # This hack is so that the source file can tell whether it is being
14496       # built for inclusion in a dll (and should export symbols for example).
14497       lt_prog_compiler_pic='-DDLL_EXPORT'
14498       ;;
14499
14500     hpux9* | hpux10* | hpux11*)
14501       lt_prog_compiler_wl='-Wl,'
14502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14503       # not for PA HP-UX.
14504       case $host_cpu in
14505       hppa*64*|ia64*)
14506         # +Z the default
14507         ;;
14508       *)
14509         lt_prog_compiler_pic='+Z'
14510         ;;
14511       esac
14512       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14513       lt_prog_compiler_static='${wl}-a ${wl}archive'
14514       ;;
14515
14516     irix5* | irix6* | nonstopux*)
14517       lt_prog_compiler_wl='-Wl,'
14518       # PIC (with -KPIC) is the default.
14519       lt_prog_compiler_static='-non_shared'
14520       ;;
14521
14522     newsos6)
14523       lt_prog_compiler_pic='-KPIC'
14524       lt_prog_compiler_static='-Bstatic'
14525       ;;
14526
14527     linux*)
14528       case $cc_basename in
14529       icc* | ecc*)
14530         lt_prog_compiler_wl='-Wl,'
14531         lt_prog_compiler_pic='-KPIC'
14532         lt_prog_compiler_static='-static'
14533         ;;
14534       pgcc* | pgf77* | pgf90* | pgf95*)
14535         # Portland Group compilers (*not* the Pentium gcc compiler,
14536         # which looks to be a dead project)
14537         lt_prog_compiler_wl='-Wl,'
14538         lt_prog_compiler_pic='-fpic'
14539         lt_prog_compiler_static='-Bstatic'
14540         ;;
14541       ccc*)
14542         lt_prog_compiler_wl='-Wl,'
14543         # All Alpha code is PIC.
14544         lt_prog_compiler_static='-non_shared'
14545         ;;
14546       esac
14547       ;;
14548
14549     osf3* | osf4* | osf5*)
14550       lt_prog_compiler_wl='-Wl,'
14551       # All OSF/1 code is PIC.
14552       lt_prog_compiler_static='-non_shared'
14553       ;;
14554
14555     solaris*)
14556       lt_prog_compiler_pic='-KPIC'
14557       lt_prog_compiler_static='-Bstatic'
14558       case $cc_basename in
14559       f77* | f90* | f95*)
14560         lt_prog_compiler_wl='-Qoption ld ';;
14561       *)
14562         lt_prog_compiler_wl='-Wl,';;
14563       esac
14564       ;;
14565
14566     sunos4*)
14567       lt_prog_compiler_wl='-Qoption ld '
14568       lt_prog_compiler_pic='-PIC'
14569       lt_prog_compiler_static='-Bstatic'
14570       ;;
14571
14572     sysv4 | sysv4.2uw2* | sysv4.3*)
14573       lt_prog_compiler_wl='-Wl,'
14574       lt_prog_compiler_pic='-KPIC'
14575       lt_prog_compiler_static='-Bstatic'
14576       ;;
14577
14578     sysv4*MP*)
14579       if test -d /usr/nec ;then
14580         lt_prog_compiler_pic='-Kconform_pic'
14581         lt_prog_compiler_static='-Bstatic'
14582       fi
14583       ;;
14584
14585     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14586       lt_prog_compiler_wl='-Wl,'
14587       lt_prog_compiler_pic='-KPIC'
14588       lt_prog_compiler_static='-Bstatic'
14589       ;;
14590
14591     unicos*)
14592       lt_prog_compiler_wl='-Wl,'
14593       lt_prog_compiler_can_build_shared=no
14594       ;;
14595
14596     uts4*)
14597       lt_prog_compiler_pic='-pic'
14598       lt_prog_compiler_static='-Bstatic'
14599       ;;
14600
14601     *)
14602       lt_prog_compiler_can_build_shared=no
14603       ;;
14604     esac
14605   fi
14606
14607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14609
14610 #
14611 # Check to make sure the PIC flag actually works.
14612 #
14613 if test -n "$lt_prog_compiler_pic"; then
14614
14615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14617 if test "${lt_prog_compiler_pic_works+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   lt_prog_compiler_pic_works=no
14621   ac_outfile=conftest.$ac_objext
14622    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14623    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14624    # Insert the option either (1) after the last *FLAGS variable, or
14625    # (2) before a word containing "conftest.", or (3) at the end.
14626    # Note that $ac_compile itself does not contain backslashes and begins
14627    # with a dollar sign (not a hyphen), so the echo should work correctly.
14628    # The option is referenced via a variable to avoid confusing sed.
14629    lt_compile=`echo "$ac_compile" | $SED \
14630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632    -e 's:$: $lt_compiler_flag:'`
14633    (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14634    (eval "$lt_compile" 2>conftest.err)
14635    ac_status=$?
14636    cat conftest.err >&5
14637    echo "$as_me:14637: \$? = $ac_status" >&5
14638    if (exit $ac_status) && test -s "$ac_outfile"; then
14639      # The compiler can only warn and ignore the option if not recognized
14640      # So say no if there are warnings other than the usual output.
14641      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14642      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14644        lt_prog_compiler_pic_works=yes
14645      fi
14646    fi
14647    $rm conftest*
14648
14649 fi
14650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14651 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14652
14653 if test x"$lt_prog_compiler_pic_works" = xyes; then
14654     case $lt_prog_compiler_pic in
14655      "" | " "*) ;;
14656      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14657      esac
14658 else
14659     lt_prog_compiler_pic=
14660      lt_prog_compiler_can_build_shared=no
14661 fi
14662
14663 fi
14664 case $host_os in
14665   # For platforms which do not support PIC, -DPIC is meaningless:
14666   *djgpp*)
14667     lt_prog_compiler_pic=
14668     ;;
14669   *)
14670     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14671     ;;
14672 esac
14673
14674 #
14675 # Check to make sure the static flag actually works.
14676 #
14677 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14680 if test "${lt_prog_compiler_static_works+set}" = set; then
14681   echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683   lt_prog_compiler_static_works=no
14684    save_LDFLAGS="$LDFLAGS"
14685    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14686    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14687    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14688      # The linker can only warn and ignore the option if not recognized
14689      # So say no if there are warnings
14690      if test -s conftest.err; then
14691        # Append any errors to the config.log.
14692        cat conftest.err 1>&5
14693        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14694        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14695        if diff conftest.exp conftest.er2 >/dev/null; then
14696          lt_prog_compiler_static_works=yes
14697        fi
14698      else
14699        lt_prog_compiler_static_works=yes
14700      fi
14701    fi
14702    $rm conftest*
14703    LDFLAGS="$save_LDFLAGS"
14704
14705 fi
14706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14707 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14708
14709 if test x"$lt_prog_compiler_static_works" = xyes; then
14710     :
14711 else
14712     lt_prog_compiler_static=
14713 fi
14714
14715
14716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14719   echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721   lt_cv_prog_compiler_c_o=no
14722    $rm -r conftest 2>/dev/null
14723    mkdir conftest
14724    cd conftest
14725    mkdir out
14726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14727
14728    lt_compiler_flag="-o out/conftest2.$ac_objext"
14729    # Insert the option either (1) after the last *FLAGS variable, or
14730    # (2) before a word containing "conftest.", or (3) at the end.
14731    # Note that $ac_compile itself does not contain backslashes and begins
14732    # with a dollar sign (not a hyphen), so the echo should work correctly.
14733    lt_compile=`echo "$ac_compile" | $SED \
14734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736    -e 's:$: $lt_compiler_flag:'`
14737    (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
14738    (eval "$lt_compile" 2>out/conftest.err)
14739    ac_status=$?
14740    cat out/conftest.err >&5
14741    echo "$as_me:14741: \$? = $ac_status" >&5
14742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14743    then
14744      # The compiler can only warn and ignore the option if not recognized
14745      # So say no if there are warnings
14746      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14747      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14748      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14749        lt_cv_prog_compiler_c_o=yes
14750      fi
14751    fi
14752    chmod u+w . 2>&5
14753    $rm conftest*
14754    # SGI C++ compiler will create directory out/ii_files/ for
14755    # template instantiation
14756    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14757    $rm out/* && rmdir out
14758    cd ..
14759    rmdir conftest
14760    $rm conftest*
14761
14762 fi
14763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14765
14766
14767 hard_links="nottested"
14768 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14769   # do not overwrite the value of need_locks provided by the user
14770   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14772   hard_links=yes
14773   $rm conftest*
14774   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14775   touch conftest.a
14776   ln conftest.a conftest.b 2>&5 || hard_links=no
14777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14778   { echo "$as_me:$LINENO: result: $hard_links" >&5
14779 echo "${ECHO_T}$hard_links" >&6; }
14780   if test "$hard_links" = no; then
14781     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14783     need_locks=warn
14784   fi
14785 else
14786   need_locks=no
14787 fi
14788
14789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14791
14792   runpath_var=
14793   allow_undefined_flag=
14794   enable_shared_with_static_runtimes=no
14795   archive_cmds=
14796   archive_expsym_cmds=
14797   old_archive_From_new_cmds=
14798   old_archive_from_expsyms_cmds=
14799   export_dynamic_flag_spec=
14800   whole_archive_flag_spec=
14801   thread_safe_flag_spec=
14802   hardcode_libdir_flag_spec=
14803   hardcode_libdir_flag_spec_ld=
14804   hardcode_libdir_separator=
14805   hardcode_direct=no
14806   hardcode_minus_L=no
14807   hardcode_shlibpath_var=unsupported
14808   link_all_deplibs=unknown
14809   hardcode_automatic=no
14810   module_cmds=
14811   module_expsym_cmds=
14812   always_export_symbols=no
14813   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14814   # include_expsyms should be a list of space-separated symbols to be *always*
14815   # included in the symbol list
14816   include_expsyms=
14817   # exclude_expsyms can be an extended regexp of symbols to exclude
14818   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14819   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14820   # as well as any symbol that contains `d'.
14821   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14822   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14823   # platforms (ab)use it in PIC code, but their linkers get confused if
14824   # the symbol is explicitly referenced.  Since portable code cannot
14825   # rely on this symbol name, it's probably fine to never include it in
14826   # preloaded symbol tables.
14827   extract_expsyms_cmds=
14828   # Just being paranoid about ensuring that cc_basename is set.
14829   for cc_temp in $compiler""; do
14830   case $cc_temp in
14831     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14832     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14833     \-*) ;;
14834     *) break;;
14835   esac
14836 done
14837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14838
14839   case $host_os in
14840   cygwin* | mingw* | pw32*)
14841     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14842     # When not using gcc, we currently assume that we are using
14843     # Microsoft Visual C++.
14844     if test "$GCC" != yes; then
14845       with_gnu_ld=no
14846     fi
14847     ;;
14848   interix*)
14849     # we just hope/assume this is gcc and not c89 (= MSVC++)
14850     with_gnu_ld=yes
14851     ;;
14852   openbsd*)
14853     with_gnu_ld=no
14854     ;;
14855   esac
14856
14857   ld_shlibs=yes
14858   if test "$with_gnu_ld" = yes; then
14859     # If archive_cmds runs LD, not CC, wlarc should be empty
14860     wlarc='${wl}'
14861
14862     # Set some defaults for GNU ld with shared library support. These
14863     # are reset later if shared libraries are not supported. Putting them
14864     # here allows them to be overridden if necessary.
14865     runpath_var=LD_RUN_PATH
14866     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14867     export_dynamic_flag_spec='${wl}--export-dynamic'
14868     # ancient GNU ld didn't support --whole-archive et. al.
14869     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14870         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14871       else
14872         whole_archive_flag_spec=
14873     fi
14874     supports_anon_versioning=no
14875     case `$LD -v 2>/dev/null` in
14876       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14877       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14878       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14879       *\ 2.11.*) ;; # other 2.11 versions
14880       *) supports_anon_versioning=yes ;;
14881     esac
14882
14883     # See if GNU ld supports shared libraries.
14884     case $host_os in
14885     aix3* | aix4* | aix5*)
14886       # On AIX/PPC, the GNU linker is very broken
14887       if test "$host_cpu" != ia64; then
14888         ld_shlibs=no
14889         cat <<EOF 1>&2
14890
14891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14892 *** to be unable to reliably create shared libraries on AIX.
14893 *** Therefore, libtool is disabling shared libraries support.  If you
14894 *** really care for shared libraries, you may want to modify your PATH
14895 *** so that a non-GNU linker is found, and then restart.
14896
14897 EOF
14898       fi
14899       ;;
14900
14901     amigaos*)
14902       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)'
14903       hardcode_libdir_flag_spec='-L$libdir'
14904       hardcode_minus_L=yes
14905
14906       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14907       # that the semantics of dynamic libraries on AmigaOS, at least up
14908       # to version 4, is to share data among multiple programs linked
14909       # with the same dynamic library.  Since this doesn't match the
14910       # behavior of shared libraries on other platforms, we can't use
14911       # them.
14912       ld_shlibs=no
14913       ;;
14914
14915     beos*)
14916       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14917         allow_undefined_flag=unsupported
14918         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14919         # support --undefined.  This deserves some investigation.  FIXME
14920         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14921       else
14922         ld_shlibs=no
14923       fi
14924       ;;
14925
14926     cygwin* | mingw* | pw32*)
14927       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14928       # as there is no search path for DLLs.
14929       hardcode_libdir_flag_spec='-L$libdir'
14930       allow_undefined_flag=unsupported
14931       always_export_symbols=no
14932       enable_shared_with_static_runtimes=yes
14933       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14934
14935       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14936         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14937         # If the export-symbols file already is a .def file (1st line
14938         # is EXPORTS), use it as is; otherwise, prepend...
14939         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14940           cp $export_symbols $output_objdir/$soname.def;
14941         else
14942           echo EXPORTS > $output_objdir/$soname.def;
14943           cat $export_symbols >> $output_objdir/$soname.def;
14944         fi~
14945         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14946       else
14947         ld_shlibs=no
14948       fi
14949       ;;
14950
14951     interix3*)
14952       hardcode_direct=no
14953       hardcode_shlibpath_var=no
14954       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14955       export_dynamic_flag_spec='${wl}-E'
14956       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14957       # Instead, shared libraries are loaded at an image base (0x10000000 by
14958       # default) and relocated if they conflict, which is a slow very memory
14959       # consuming and fragmenting process.  To avoid this, we pick a random,
14960       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14961       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14962       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14963       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'
14964       ;;
14965
14966     linux*)
14967       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14968         tmp_addflag=
14969         case $cc_basename,$host_cpu in
14970         pgcc*)                          # Portland Group C compiler
14971           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'
14972           tmp_addflag=' $pic_flag'
14973           ;;
14974         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14975           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'
14976           tmp_addflag=' $pic_flag -Mnomain' ;;
14977         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14978           tmp_addflag=' -i_dynamic' ;;
14979         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14980           tmp_addflag=' -i_dynamic -nofor_main' ;;
14981         ifc* | ifort*)                  # Intel Fortran compiler
14982           tmp_addflag=' -nofor_main' ;;
14983         esac
14984         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14985
14986         if test $supports_anon_versioning = yes; then
14987           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14988   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14989   $echo "local: *; };" >> $output_objdir/$libname.ver~
14990           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14991         fi
14992       else
14993         ld_shlibs=no
14994       fi
14995       ;;
14996
14997     netbsd*)
14998       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15000         wlarc=
15001       else
15002         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15004       fi
15005       ;;
15006
15007     solaris*)
15008       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15009         ld_shlibs=no
15010         cat <<EOF 1>&2
15011
15012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15013 *** create shared libraries on Solaris systems.  Therefore, libtool
15014 *** is disabling shared libraries support.  We urge you to upgrade GNU
15015 *** binutils to release 2.9.1 or newer.  Another option is to modify
15016 *** your PATH or compiler configuration so that the native linker is
15017 *** used, and then restart.
15018
15019 EOF
15020       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023       else
15024         ld_shlibs=no
15025       fi
15026       ;;
15027
15028     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15029       case `$LD -v 2>&1` in
15030         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15031         ld_shlibs=no
15032         cat <<_LT_EOF 1>&2
15033
15034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15035 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15036 *** is disabling shared libraries support.  We urge you to upgrade GNU
15037 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15038 *** your PATH or compiler configuration so that the native linker is
15039 *** used, and then restart.
15040
15041 _LT_EOF
15042         ;;
15043         *)
15044           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15046             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15047             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15048           else
15049             ld_shlibs=no
15050           fi
15051         ;;
15052       esac
15053       ;;
15054
15055     sunos4*)
15056       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15057       wlarc=
15058       hardcode_direct=yes
15059       hardcode_shlibpath_var=no
15060       ;;
15061
15062     *)
15063       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066       else
15067         ld_shlibs=no
15068       fi
15069       ;;
15070     esac
15071
15072     if test "$ld_shlibs" = no; then
15073       runpath_var=
15074       hardcode_libdir_flag_spec=
15075       export_dynamic_flag_spec=
15076       whole_archive_flag_spec=
15077     fi
15078   else
15079     # PORTME fill in a description of your system's linker (not GNU ld)
15080     case $host_os in
15081     aix3*)
15082       allow_undefined_flag=unsupported
15083       always_export_symbols=yes
15084       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'
15085       # Note: this linker hardcodes the directories in LIBPATH if there
15086       # are no directories specified by -L.
15087       hardcode_minus_L=yes
15088       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15089         # Neither direct hardcoding nor static linking is supported with a
15090         # broken collect2.
15091         hardcode_direct=unsupported
15092       fi
15093       ;;
15094
15095     aix4* | aix5*)
15096       if test "$host_cpu" = ia64; then
15097         # On IA64, the linker does run time linking by default, so we don't
15098         # have to do anything special.
15099         aix_use_runtimelinking=no
15100         exp_sym_flag='-Bexport'
15101         no_entry_flag=""
15102       else
15103         # If we're using GNU nm, then we don't want the "-C" option.
15104         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15105         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15106           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'
15107         else
15108           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'
15109         fi
15110         aix_use_runtimelinking=no
15111
15112         # Test if we are trying to use run time linking or normal
15113         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15114         # need to do runtime linking.
15115         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15116           for ld_flag in $LDFLAGS; do
15117           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15118             aix_use_runtimelinking=yes
15119             break
15120           fi
15121           done
15122           ;;
15123         esac
15124
15125         exp_sym_flag='-bexport'
15126         no_entry_flag='-bnoentry'
15127       fi
15128
15129       # When large executables or shared objects are built, AIX ld can
15130       # have problems creating the table of contents.  If linking a library
15131       # or program results in "error TOC overflow" add -mminimal-toc to
15132       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15133       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15134
15135       archive_cmds=''
15136       hardcode_direct=yes
15137       hardcode_libdir_separator=':'
15138       link_all_deplibs=yes
15139
15140       if test "$GCC" = yes; then
15141         case $host_os in aix4.[012]|aix4.[012].*)
15142         # We only want to do this on AIX 4.2 and lower, the check
15143         # below for broken collect2 doesn't work under 4.3+
15144           collect2name=`${CC} -print-prog-name=collect2`
15145           if test -f "$collect2name" && \
15146            strings "$collect2name" | grep resolve_lib_name >/dev/null
15147           then
15148           # We have reworked collect2
15149           hardcode_direct=yes
15150           else
15151           # We have old collect2
15152           hardcode_direct=unsupported
15153           # It fails to find uninstalled libraries when the uninstalled
15154           # path is not listed in the libpath.  Setting hardcode_minus_L
15155           # to unsupported forces relinking
15156           hardcode_minus_L=yes
15157           hardcode_libdir_flag_spec='-L$libdir'
15158           hardcode_libdir_separator=
15159           fi
15160           ;;
15161         esac
15162         shared_flag='-shared'
15163         if test "$aix_use_runtimelinking" = yes; then
15164           shared_flag="$shared_flag "'${wl}-G'
15165         fi
15166       else
15167         # not using gcc
15168         if test "$host_cpu" = ia64; then
15169         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170         # chokes on -Wl,-G. The following line is correct:
15171           shared_flag='-G'
15172         else
15173           if test "$aix_use_runtimelinking" = yes; then
15174             shared_flag='${wl}-G'
15175           else
15176             shared_flag='${wl}-bM:SRE'
15177           fi
15178         fi
15179       fi
15180
15181       # It seems that -bexpall does not export symbols beginning with
15182       # underscore (_), so it is better to generate a list of symbols to export.
15183       always_export_symbols=yes
15184       if test "$aix_use_runtimelinking" = yes; then
15185         # Warning - without using the other runtime loading flags (-brtl),
15186         # -berok will link without error, but may produce a broken library.
15187         allow_undefined_flag='-berok'
15188        # Determine the default libpath from the value encoded in an empty executable.
15189        cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195
15196 int
15197 main ()
15198 {
15199
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (ac_try="$ac_link"
15206 case "(($ac_try" in
15207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208   *) ac_try_echo=$ac_try;;
15209 esac
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211   (eval "$ac_link") 2>conftest.er1
15212   ac_status=$?
15213   grep -v '^ *+' conftest.er1 >conftest.err
15214   rm -f conftest.er1
15215   cat conftest.err >&5
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); } &&
15218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219   { (case "(($ac_try" in
15220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221   *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224   (eval "$ac_try") 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; } &&
15228          { ac_try='test -s conftest$ac_exeext'
15229   { (case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_try") 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; }; then
15238
15239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15240 }'`
15241 # Check for a 64-bit object if we didn't find anything.
15242 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; }
15243 }'`; fi
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248
15249 fi
15250
15251 rm -f core conftest.err conftest.$ac_objext \
15252       conftest$ac_exeext conftest.$ac_ext
15253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254
15255        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15256         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"
15257        else
15258         if test "$host_cpu" = ia64; then
15259           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15260           allow_undefined_flag="-z nodefs"
15261           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"
15262         else
15263          # Determine the default libpath from the value encoded in an empty executable.
15264          cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270
15271 int
15272 main ()
15273 {
15274
15275   ;
15276   return 0;
15277 }
15278 _ACEOF
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_link") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294   { (case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299   (eval "$ac_try") 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; } &&
15303          { ac_try='test -s conftest$ac_exeext'
15304   { (case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_try") 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313
15314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15315 }'`
15316 # Check for a 64-bit object if we didn't find anything.
15317 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; }
15318 }'`; fi
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext \
15327       conftest$ac_exeext conftest.$ac_ext
15328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15329
15330          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15331           # Warning - without using the other run time loading flags,
15332           # -berok will link without error, but may produce a broken library.
15333           no_undefined_flag=' ${wl}-bernotok'
15334           allow_undefined_flag=' ${wl}-berok'
15335           # Exported symbols can be pulled into shared objects from archives
15336           whole_archive_flag_spec='$convenience'
15337           archive_cmds_need_lc=yes
15338           # This is similar to how AIX traditionally builds its shared libraries.
15339           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'
15340         fi
15341       fi
15342       ;;
15343
15344     amigaos*)
15345       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)'
15346       hardcode_libdir_flag_spec='-L$libdir'
15347       hardcode_minus_L=yes
15348       # see comment about different semantics on the GNU ld section
15349       ld_shlibs=no
15350       ;;
15351
15352     bsdi[45]*)
15353       export_dynamic_flag_spec=-rdynamic
15354       ;;
15355
15356     cygwin* | mingw* | pw32*)
15357       # When not using gcc, we currently assume that we are using
15358       # Microsoft Visual C++.
15359       # hardcode_libdir_flag_spec is actually meaningless, as there is
15360       # no search path for DLLs.
15361       hardcode_libdir_flag_spec=' '
15362       allow_undefined_flag=unsupported
15363       # Tell ltmain to make .lib files, not .a files.
15364       libext=lib
15365       # Tell ltmain to make .dll files, not .so files.
15366       shrext_cmds=".dll"
15367       # FIXME: Setting linknames here is a bad hack.
15368       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15369       # The linker will automatically build a .lib file if we build a DLL.
15370       old_archive_From_new_cmds='true'
15371       # FIXME: Should let the user specify the lib program.
15372       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15373       fix_srcfile_path='`cygpath -w "$srcfile"`'
15374       enable_shared_with_static_runtimes=yes
15375       ;;
15376
15377     darwin* | rhapsody*)
15378       case $host_os in
15379         rhapsody* | darwin1.[012])
15380          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15381          ;;
15382        *) # Darwin 1.3 on
15383          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15384            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15385          else
15386            case ${MACOSX_DEPLOYMENT_TARGET} in
15387              10.[012])
15388                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15389                ;;
15390              10.*)
15391                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15392                ;;
15393            esac
15394          fi
15395          ;;
15396       esac
15397       archive_cmds_need_lc=no
15398       hardcode_direct=no
15399       hardcode_automatic=yes
15400       hardcode_shlibpath_var=unsupported
15401       whole_archive_flag_spec=''
15402       link_all_deplibs=yes
15403     if test "$GCC" = yes ; then
15404         output_verbose_link_cmd='echo'
15405         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15406       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15407       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15408       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}'
15409       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}'
15410     else
15411       case $cc_basename in
15412         xlc*)
15413          output_verbose_link_cmd='echo'
15414          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15415          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15416           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15417          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}'
15418           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}'
15419           ;;
15420        *)
15421          ld_shlibs=no
15422           ;;
15423       esac
15424     fi
15425       ;;
15426
15427     dgux*)
15428       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15429       hardcode_libdir_flag_spec='-L$libdir'
15430       hardcode_shlibpath_var=no
15431       ;;
15432
15433     freebsd1*)
15434       ld_shlibs=no
15435       ;;
15436
15437     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15438     # support.  Future versions do this automatically, but an explicit c++rt0.o
15439     # does not break anything, and helps significantly (at the cost of a little
15440     # extra space).
15441     freebsd2.2*)
15442       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15443       hardcode_libdir_flag_spec='-R$libdir'
15444       hardcode_direct=yes
15445       hardcode_shlibpath_var=no
15446       ;;
15447
15448     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15449     freebsd2*)
15450       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15451       hardcode_direct=yes
15452       hardcode_minus_L=yes
15453       hardcode_shlibpath_var=no
15454       ;;
15455
15456     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15457     freebsd* | kfreebsd*-gnu | dragonfly*)
15458       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15459       hardcode_libdir_flag_spec='-R$libdir'
15460       hardcode_direct=yes
15461       hardcode_shlibpath_var=no
15462       ;;
15463
15464     hpux9*)
15465       if test "$GCC" = yes; then
15466         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'
15467       else
15468         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'
15469       fi
15470       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15471       hardcode_libdir_separator=:
15472       hardcode_direct=yes
15473
15474       # hardcode_minus_L: Not really in the search PATH,
15475       # but as the default location of the library.
15476       hardcode_minus_L=yes
15477       export_dynamic_flag_spec='${wl}-E'
15478       ;;
15479
15480     hpux10*)
15481       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15482         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15483       else
15484         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15485       fi
15486       if test "$with_gnu_ld" = no; then
15487         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15488         hardcode_libdir_separator=:
15489
15490         hardcode_direct=yes
15491         export_dynamic_flag_spec='${wl}-E'
15492
15493         # hardcode_minus_L: Not really in the search PATH,
15494         # but as the default location of the library.
15495         hardcode_minus_L=yes
15496       fi
15497       ;;
15498
15499     hpux11*)
15500       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15501         case $host_cpu in
15502         hppa*64*)
15503           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504           ;;
15505         ia64*)
15506           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15507           ;;
15508         *)
15509           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15510           ;;
15511         esac
15512       else
15513         case $host_cpu in
15514         hppa*64*)
15515           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516           ;;
15517         ia64*)
15518           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15519           ;;
15520         *)
15521           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15522           ;;
15523         esac
15524       fi
15525       if test "$with_gnu_ld" = no; then
15526         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15527         hardcode_libdir_separator=:
15528
15529         case $host_cpu in
15530         hppa*64*|ia64*)
15531           hardcode_libdir_flag_spec_ld='+b $libdir'
15532           hardcode_direct=no
15533           hardcode_shlibpath_var=no
15534           ;;
15535         *)
15536           hardcode_direct=yes
15537           export_dynamic_flag_spec='${wl}-E'
15538
15539           # hardcode_minus_L: Not really in the search PATH,
15540           # but as the default location of the library.
15541           hardcode_minus_L=yes
15542           ;;
15543         esac
15544       fi
15545       ;;
15546
15547     irix5* | irix6* | nonstopux*)
15548       if test "$GCC" = yes; then
15549         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'
15550       else
15551         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'
15552         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15553       fi
15554       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15555       hardcode_libdir_separator=:
15556       link_all_deplibs=yes
15557       ;;
15558
15559     netbsd*)
15560       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15561         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15562       else
15563         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15564       fi
15565       hardcode_libdir_flag_spec='-R$libdir'
15566       hardcode_direct=yes
15567       hardcode_shlibpath_var=no
15568       ;;
15569
15570     newsos6)
15571       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572       hardcode_direct=yes
15573       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15574       hardcode_libdir_separator=:
15575       hardcode_shlibpath_var=no
15576       ;;
15577
15578     openbsd*)
15579       hardcode_direct=yes
15580       hardcode_shlibpath_var=no
15581       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15582         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15583         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15584         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15585         export_dynamic_flag_spec='${wl}-E'
15586       else
15587        case $host_os in
15588          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15589            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590            hardcode_libdir_flag_spec='-R$libdir'
15591            ;;
15592          *)
15593            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15594            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15595            ;;
15596        esac
15597       fi
15598       ;;
15599
15600     os2*)
15601       hardcode_libdir_flag_spec='-L$libdir'
15602       hardcode_minus_L=yes
15603       allow_undefined_flag=unsupported
15604       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'
15605       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15606       ;;
15607
15608     osf3*)
15609       if test "$GCC" = yes; then
15610         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15611         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'
15612       else
15613         allow_undefined_flag=' -expect_unresolved \*'
15614         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'
15615       fi
15616       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15617       hardcode_libdir_separator=:
15618       ;;
15619
15620     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15621       if test "$GCC" = yes; then
15622         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15623         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'
15624         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625       else
15626         allow_undefined_flag=' -expect_unresolved \*'
15627         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'
15628         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15629         $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'
15630
15631         # Both c and cxx compiler support -rpath directly
15632         hardcode_libdir_flag_spec='-rpath $libdir'
15633       fi
15634       hardcode_libdir_separator=:
15635       ;;
15636
15637     solaris*)
15638       no_undefined_flag=' -z text'
15639       if test "$GCC" = yes; then
15640         wlarc='${wl}'
15641         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15644       else
15645         wlarc=''
15646         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15649       fi
15650       hardcode_libdir_flag_spec='-R$libdir'
15651       hardcode_shlibpath_var=no
15652       case $host_os in
15653       solaris2.[0-5] | solaris2.[0-5].*) ;;
15654       *)
15655         # The compiler driver will combine linker options so we
15656         # cannot just pass the convience library names through
15657         # without $wl, iff we do not link with $LD.
15658         # Luckily, gcc supports the same syntax we need for Sun Studio.
15659         # Supported since Solaris 2.6 (maybe 2.5.1?)
15660         case $wlarc in
15661         '')
15662           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15663         *)
15664           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' ;;
15665         esac ;;
15666       esac
15667       link_all_deplibs=yes
15668       ;;
15669
15670     sunos4*)
15671       if test "x$host_vendor" = xsequent; then
15672         # Use $CC to link under sequent, because it throws in some extra .o
15673         # files that make .init and .fini sections work.
15674         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15675       else
15676         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15677       fi
15678       hardcode_libdir_flag_spec='-L$libdir'
15679       hardcode_direct=yes
15680       hardcode_minus_L=yes
15681       hardcode_shlibpath_var=no
15682       ;;
15683
15684     sysv4)
15685       case $host_vendor in
15686         sni)
15687           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688           hardcode_direct=yes # is this really true???
15689         ;;
15690         siemens)
15691           ## LD is ld it makes a PLAMLIB
15692           ## CC just makes a GrossModule.
15693           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15694           reload_cmds='$CC -r -o $output$reload_objs'
15695           hardcode_direct=no
15696         ;;
15697         motorola)
15698           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15700         ;;
15701       esac
15702       runpath_var='LD_RUN_PATH'
15703       hardcode_shlibpath_var=no
15704       ;;
15705
15706     sysv4.3*)
15707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708       hardcode_shlibpath_var=no
15709       export_dynamic_flag_spec='-Bexport'
15710       ;;
15711
15712     sysv4*MP*)
15713       if test -d /usr/nec; then
15714         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715         hardcode_shlibpath_var=no
15716         runpath_var=LD_RUN_PATH
15717         hardcode_runpath_var=yes
15718         ld_shlibs=yes
15719       fi
15720       ;;
15721
15722     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15723       no_undefined_flag='${wl}-z,text'
15724       archive_cmds_need_lc=no
15725       hardcode_shlibpath_var=no
15726       runpath_var='LD_RUN_PATH'
15727
15728       if test "$GCC" = yes; then
15729         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731       else
15732         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15734       fi
15735       ;;
15736
15737     sysv5* | sco3.2v5* | sco5v6*)
15738       # Note: We can NOT use -z defs as we might desire, because we do not
15739       # link with -lc, and that would cause any symbols used from libc to
15740       # always be unresolved, which means just about no library would
15741       # ever link correctly.  If we're not using GNU ld we use -z text
15742       # though, which does catch some bad symbols but isn't as heavy-handed
15743       # as -z defs.
15744       no_undefined_flag='${wl}-z,text'
15745       allow_undefined_flag='${wl}-z,nodefs'
15746       archive_cmds_need_lc=no
15747       hardcode_shlibpath_var=no
15748       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15749       hardcode_libdir_separator=':'
15750       link_all_deplibs=yes
15751       export_dynamic_flag_spec='${wl}-Bexport'
15752       runpath_var='LD_RUN_PATH'
15753
15754       if test "$GCC" = yes; then
15755         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757       else
15758         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15760       fi
15761       ;;
15762
15763     uts4*)
15764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765       hardcode_libdir_flag_spec='-L$libdir'
15766       hardcode_shlibpath_var=no
15767       ;;
15768
15769     *)
15770       ld_shlibs=no
15771       ;;
15772     esac
15773   fi
15774
15775 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15776 echo "${ECHO_T}$ld_shlibs" >&6; }
15777 test "$ld_shlibs" = no && can_build_shared=no
15778
15779 #
15780 # Do we need to explicitly link libc?
15781 #
15782 case "x$archive_cmds_need_lc" in
15783 x|xyes)
15784   # Assume -lc should be added
15785   archive_cmds_need_lc=yes
15786
15787   if test "$enable_shared" = yes && test "$GCC" = yes; then
15788     case $archive_cmds in
15789     *'~'*)
15790       # FIXME: we may have to deal with multi-command sequences.
15791       ;;
15792     '$CC '*)
15793       # Test whether the compiler implicitly links with -lc since on some
15794       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15795       # to ld, don't add -lc before -lgcc.
15796       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15797 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15798       $rm conftest*
15799       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15800
15801       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802   (eval $ac_compile) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } 2>conftest.err; then
15806         soname=conftest
15807         lib=conftest
15808         libobjs=conftest.$ac_objext
15809         deplibs=
15810         wl=$lt_prog_compiler_wl
15811         pic_flag=$lt_prog_compiler_pic
15812         compiler_flags=-v
15813         linker_flags=-v
15814         verstring=
15815         output_objdir=.
15816         libname=conftest
15817         lt_save_allow_undefined_flag=$allow_undefined_flag
15818         allow_undefined_flag=
15819         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15820   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }
15824         then
15825           archive_cmds_need_lc=no
15826         else
15827           archive_cmds_need_lc=yes
15828         fi
15829         allow_undefined_flag=$lt_save_allow_undefined_flag
15830       else
15831         cat conftest.err 1>&5
15832       fi
15833       $rm conftest*
15834       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15835 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15836       ;;
15837     esac
15838   fi
15839   ;;
15840 esac
15841
15842 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15843 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15844 library_names_spec=
15845 libname_spec='lib$name'
15846 soname_spec=
15847 shrext_cmds=".so"
15848 postinstall_cmds=
15849 postuninstall_cmds=
15850 finish_cmds=
15851 finish_eval=
15852 shlibpath_var=
15853 shlibpath_overrides_runpath=unknown
15854 version_type=none
15855 dynamic_linker="$host_os ld.so"
15856 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15857 if test "$GCC" = yes; then
15858   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15859   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15860     # if the path contains ";" then we assume it to be the separator
15861     # otherwise default to the standard path separator (i.e. ":") - it is
15862     # assumed that no part of a normal pathname contains ";" but that should
15863     # okay in the real world where ";" in dirpaths is itself problematic.
15864     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15865   else
15866     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15867   fi
15868 else
15869   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15870 fi
15871 need_lib_prefix=unknown
15872 hardcode_into_libs=no
15873
15874 # when you set need_version to no, make sure it does not cause -set_version
15875 # flags to be left without arguments
15876 need_version=unknown
15877
15878 case $host_os in
15879 aix3*)
15880   version_type=linux
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15882   shlibpath_var=LIBPATH
15883
15884   # AIX 3 has no versioning support, so we append a major version to the name.
15885   soname_spec='${libname}${release}${shared_ext}$major'
15886   ;;
15887
15888 aix4* | aix5*)
15889   version_type=linux
15890   need_lib_prefix=no
15891   need_version=no
15892   hardcode_into_libs=yes
15893   if test "$host_cpu" = ia64; then
15894     # AIX 5 supports IA64
15895     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15896     shlibpath_var=LD_LIBRARY_PATH
15897   else
15898     # With GCC up to 2.95.x, collect2 would create an import file
15899     # for dependence libraries.  The import file would start with
15900     # the line `#! .'.  This would cause the generated library to
15901     # depend on `.', always an invalid library.  This was fixed in
15902     # development snapshots of GCC prior to 3.0.
15903     case $host_os in
15904       aix4 | aix4.[01] | aix4.[01].*)
15905       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15906            echo ' yes '
15907            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15908         :
15909       else
15910         can_build_shared=no
15911       fi
15912       ;;
15913     esac
15914     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15915     # soname into executable. Probably we can add versioning support to
15916     # collect2, so additional links can be useful in future.
15917     if test "$aix_use_runtimelinking" = yes; then
15918       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15919       # instead of lib<name>.a to let people know that these are not
15920       # typical AIX shared libraries.
15921       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922     else
15923       # We preserve .a as extension for shared libraries through AIX4.2
15924       # and later when we are not doing run time linking.
15925       library_names_spec='${libname}${release}.a $libname.a'
15926       soname_spec='${libname}${release}${shared_ext}$major'
15927     fi
15928     shlibpath_var=LIBPATH
15929   fi
15930   ;;
15931
15932 amigaos*)
15933   library_names_spec='$libname.ixlibrary $libname.a'
15934   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15935   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'
15936   ;;
15937
15938 beos*)
15939   library_names_spec='${libname}${shared_ext}'
15940   dynamic_linker="$host_os ld.so"
15941   shlibpath_var=LIBRARY_PATH
15942   ;;
15943
15944 bsdi[45]*)
15945   version_type=linux
15946   need_version=no
15947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948   soname_spec='${libname}${release}${shared_ext}$major'
15949   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15950   shlibpath_var=LD_LIBRARY_PATH
15951   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15952   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15953   # the default ld.so.conf also contains /usr/contrib/lib and
15954   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15955   # libtool to hard-code these into programs
15956   ;;
15957
15958 cygwin* | mingw* | pw32*)
15959   version_type=windows
15960   shrext_cmds=".dll"
15961   need_version=no
15962   need_lib_prefix=no
15963
15964   case $GCC,$host_os in
15965   yes,cygwin* | yes,mingw* | yes,pw32*)
15966     library_names_spec='$libname.dll.a'
15967     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15968     postinstall_cmds='base_file=`basename \${file}`~
15969       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15970       dldir=$destdir/`dirname \$dlpath`~
15971       test -d \$dldir || mkdir -p \$dldir~
15972       $install_prog $dir/$dlname \$dldir/$dlname~
15973       chmod a+x \$dldir/$dlname'
15974     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15975       dlpath=$dir/\$dldll~
15976        $rm \$dlpath'
15977     shlibpath_overrides_runpath=yes
15978
15979     case $host_os in
15980     cygwin*)
15981       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15982       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15983       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15984       ;;
15985     mingw*)
15986       # MinGW DLLs use traditional 'lib' prefix
15987       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15990         # It is most probably a Windows format PATH printed by
15991         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15992         # path with ; separators, and with drive letters. We can handle the
15993         # drive letters (cygwin fileutils understands them), so leave them,
15994         # especially as we might pass files found there to a mingw objdump,
15995         # which wouldn't understand a cygwinified path. Ahh.
15996         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15997       else
15998         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15999       fi
16000       ;;
16001     pw32*)
16002       # pw32 DLLs use 'pw' prefix rather than 'lib'
16003       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16004       ;;
16005     esac
16006     ;;
16007
16008   *)
16009     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16010     ;;
16011   esac
16012   dynamic_linker='Win32 ld.exe'
16013   # FIXME: first we should search . and the directory the executable is in
16014   shlibpath_var=PATH
16015   ;;
16016
16017 darwin* | rhapsody*)
16018   dynamic_linker="$host_os dyld"
16019   version_type=darwin
16020   need_lib_prefix=no
16021   need_version=no
16022   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16023   soname_spec='${libname}${release}${major}$shared_ext'
16024   shlibpath_overrides_runpath=yes
16025   shlibpath_var=DYLD_LIBRARY_PATH
16026   shrext_cmds='.dylib'
16027   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16028   if test "$GCC" = yes; then
16029     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"`
16030   else
16031     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16032   fi
16033   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16034   ;;
16035
16036 dgux*)
16037   version_type=linux
16038   need_lib_prefix=no
16039   need_version=no
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16041   soname_spec='${libname}${release}${shared_ext}$major'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   ;;
16044
16045 freebsd1*)
16046   dynamic_linker=no
16047   ;;
16048
16049 kfreebsd*-gnu)
16050   version_type=linux
16051   need_lib_prefix=no
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   shlibpath_overrides_runpath=no
16057   hardcode_into_libs=yes
16058   dynamic_linker='GNU ld.so'
16059   ;;
16060
16061 freebsd* | dragonfly*)
16062   # DragonFly does not have aout.  When/if they implement a new
16063   # versioning mechanism, adjust this.
16064   if test -x /usr/bin/objformat; then
16065     objformat=`/usr/bin/objformat`
16066   else
16067     case $host_os in
16068     freebsd[123]*) objformat=aout ;;
16069     *) objformat=elf ;;
16070     esac
16071   fi
16072   version_type=freebsd-$objformat
16073   case $version_type in
16074     freebsd-elf*)
16075       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16076       need_version=no
16077       need_lib_prefix=no
16078       ;;
16079     freebsd-*)
16080       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16081       need_version=yes
16082       ;;
16083   esac
16084   shlibpath_var=LD_LIBRARY_PATH
16085   case $host_os in
16086   freebsd2*)
16087     shlibpath_overrides_runpath=yes
16088     ;;
16089   freebsd3.[01]* | freebsdelf3.[01]*)
16090     shlibpath_overrides_runpath=yes
16091     hardcode_into_libs=yes
16092     ;;
16093   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16094   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16095     shlibpath_overrides_runpath=no
16096     hardcode_into_libs=yes
16097     ;;
16098   freebsd*) # from 4.6 on
16099     shlibpath_overrides_runpath=yes
16100     hardcode_into_libs=yes
16101     ;;
16102   esac
16103   ;;
16104
16105 gnu*)
16106   version_type=linux
16107   need_lib_prefix=no
16108   need_version=no
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16110   soname_spec='${libname}${release}${shared_ext}$major'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   hardcode_into_libs=yes
16113   ;;
16114
16115 hpux9* | hpux10* | hpux11*)
16116   # Give a soname corresponding to the major version so that dld.sl refuses to
16117   # link against other versions.
16118   version_type=sunos
16119   need_lib_prefix=no
16120   need_version=no
16121   case $host_cpu in
16122   ia64*)
16123     shrext_cmds='.so'
16124     hardcode_into_libs=yes
16125     dynamic_linker="$host_os dld.so"
16126     shlibpath_var=LD_LIBRARY_PATH
16127     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129     soname_spec='${libname}${release}${shared_ext}$major'
16130     if test "X$HPUX_IA64_MODE" = X32; then
16131       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16132     else
16133       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16134     fi
16135     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16136     ;;
16137    hppa*64*)
16138      shrext_cmds='.sl'
16139      hardcode_into_libs=yes
16140      dynamic_linker="$host_os dld.sl"
16141      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16142      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16143      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144      soname_spec='${libname}${release}${shared_ext}$major'
16145      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16146      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16147      ;;
16148    *)
16149     shrext_cmds='.sl'
16150     dynamic_linker="$host_os dld.sl"
16151     shlibpath_var=SHLIB_PATH
16152     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154     soname_spec='${libname}${release}${shared_ext}$major'
16155     ;;
16156   esac
16157   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16158   postinstall_cmds='chmod 555 $lib'
16159   ;;
16160
16161 interix3*)
16162   version_type=linux
16163   need_lib_prefix=no
16164   need_version=no
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16166   soname_spec='${libname}${release}${shared_ext}$major'
16167   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16168   shlibpath_var=LD_LIBRARY_PATH
16169   shlibpath_overrides_runpath=no
16170   hardcode_into_libs=yes
16171   ;;
16172
16173 irix5* | irix6* | nonstopux*)
16174   case $host_os in
16175     nonstopux*) version_type=nonstopux ;;
16176     *)
16177         if test "$lt_cv_prog_gnu_ld" = yes; then
16178                 version_type=linux
16179         else
16180                 version_type=irix
16181         fi ;;
16182   esac
16183   need_lib_prefix=no
16184   need_version=no
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16187   case $host_os in
16188   irix5* | nonstopux*)
16189     libsuff= shlibsuff=
16190     ;;
16191   *)
16192     case $LD in # libtool.m4 will add one of these switches to LD
16193     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16194       libsuff= shlibsuff= libmagic=32-bit;;
16195     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16196       libsuff=32 shlibsuff=N32 libmagic=N32;;
16197     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16198       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16199     *) libsuff= shlibsuff= libmagic=never-match;;
16200     esac
16201     ;;
16202   esac
16203   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16204   shlibpath_overrides_runpath=no
16205   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16206   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16207   hardcode_into_libs=yes
16208   ;;
16209
16210 # No shared lib support for Linux oldld, aout, or coff.
16211 linux*oldld* | linux*aout* | linux*coff*)
16212   dynamic_linker=no
16213   ;;
16214
16215 # This must be Linux ELF.
16216 linux*)
16217   version_type=linux
16218   need_lib_prefix=no
16219   need_version=no
16220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221   soname_spec='${libname}${release}${shared_ext}$major'
16222   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16223   shlibpath_var=LD_LIBRARY_PATH
16224   shlibpath_overrides_runpath=no
16225   # This implies no fast_install, which is unacceptable.
16226   # Some rework will be needed to allow for fast_install
16227   # before this can be enabled.
16228   hardcode_into_libs=yes
16229
16230   # Append ld.so.conf contents to the search path
16231   if test -f /etc/ld.so.conf; then
16232     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' ' '`
16233     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16234   fi
16235
16236   # We used to test for /lib/ld.so.1 and disable shared libraries on
16237   # powerpc, because MkLinux only supported shared libraries with the
16238   # GNU dynamic linker.  Since this was broken with cross compilers,
16239   # most powerpc-linux boxes support dynamic linking these days and
16240   # people can always --disable-shared, the test was removed, and we
16241   # assume the GNU/Linux dynamic linker is in use.
16242   dynamic_linker='GNU/Linux ld.so'
16243   ;;
16244
16245 knetbsd*-gnu)
16246   version_type=linux
16247   need_lib_prefix=no
16248   need_version=no
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250   soname_spec='${libname}${release}${shared_ext}$major'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   shlibpath_overrides_runpath=no
16253   hardcode_into_libs=yes
16254   dynamic_linker='GNU ld.so'
16255   ;;
16256
16257 netbsd*)
16258   version_type=sunos
16259   need_lib_prefix=no
16260   need_version=no
16261   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16264     dynamic_linker='NetBSD (a.out) ld.so'
16265   else
16266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16267     soname_spec='${libname}${release}${shared_ext}$major'
16268     dynamic_linker='NetBSD ld.elf_so'
16269   fi
16270   shlibpath_var=LD_LIBRARY_PATH
16271   shlibpath_overrides_runpath=yes
16272   hardcode_into_libs=yes
16273   ;;
16274
16275 newsos6)
16276   version_type=linux
16277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278   shlibpath_var=LD_LIBRARY_PATH
16279   shlibpath_overrides_runpath=yes
16280   ;;
16281
16282 nto-qnx*)
16283   version_type=linux
16284   need_lib_prefix=no
16285   need_version=no
16286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   shlibpath_var=LD_LIBRARY_PATH
16289   shlibpath_overrides_runpath=yes
16290   ;;
16291
16292 openbsd*)
16293   version_type=sunos
16294   sys_lib_dlsearch_path_spec="/usr/lib"
16295   need_lib_prefix=no
16296   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16297   case $host_os in
16298     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16299     *)                         need_version=no  ;;
16300   esac
16301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16303   shlibpath_var=LD_LIBRARY_PATH
16304   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16305     case $host_os in
16306       openbsd2.[89] | openbsd2.[89].*)
16307         shlibpath_overrides_runpath=no
16308         ;;
16309       *)
16310         shlibpath_overrides_runpath=yes
16311         ;;
16312       esac
16313   else
16314     shlibpath_overrides_runpath=yes
16315   fi
16316   ;;
16317
16318 os2*)
16319   libname_spec='$name'
16320   shrext_cmds=".dll"
16321   need_lib_prefix=no
16322   library_names_spec='$libname${shared_ext} $libname.a'
16323   dynamic_linker='OS/2 ld.exe'
16324   shlibpath_var=LIBPATH
16325   ;;
16326
16327 osf3* | osf4* | osf5*)
16328   version_type=osf
16329   need_lib_prefix=no
16330   need_version=no
16331   soname_spec='${libname}${release}${shared_ext}$major'
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333   shlibpath_var=LD_LIBRARY_PATH
16334   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16335   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16336   ;;
16337
16338 solaris*)
16339   version_type=linux
16340   need_lib_prefix=no
16341   need_version=no
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343   soname_spec='${libname}${release}${shared_ext}$major'
16344   shlibpath_var=LD_LIBRARY_PATH
16345   shlibpath_overrides_runpath=yes
16346   hardcode_into_libs=yes
16347   # ldd complains unless libraries are executable
16348   postinstall_cmds='chmod +x $lib'
16349   ;;
16350
16351 sunos4*)
16352   version_type=sunos
16353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16354   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16355   shlibpath_var=LD_LIBRARY_PATH
16356   shlibpath_overrides_runpath=yes
16357   if test "$with_gnu_ld" = yes; then
16358     need_lib_prefix=no
16359   fi
16360   need_version=yes
16361   ;;
16362
16363 sysv4 | sysv4.3*)
16364   version_type=linux
16365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   shlibpath_var=LD_LIBRARY_PATH
16368   case $host_vendor in
16369     sni)
16370       shlibpath_overrides_runpath=no
16371       need_lib_prefix=no
16372       export_dynamic_flag_spec='${wl}-Blargedynsym'
16373       runpath_var=LD_RUN_PATH
16374       ;;
16375     siemens)
16376       need_lib_prefix=no
16377       ;;
16378     motorola)
16379       need_lib_prefix=no
16380       need_version=no
16381       shlibpath_overrides_runpath=no
16382       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16383       ;;
16384   esac
16385   ;;
16386
16387 sysv4*MP*)
16388   if test -d /usr/nec ;then
16389     version_type=linux
16390     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16391     soname_spec='$libname${shared_ext}.$major'
16392     shlibpath_var=LD_LIBRARY_PATH
16393   fi
16394   ;;
16395
16396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16397   version_type=freebsd-elf
16398   need_lib_prefix=no
16399   need_version=no
16400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16401   soname_spec='${libname}${release}${shared_ext}$major'
16402   shlibpath_var=LD_LIBRARY_PATH
16403   hardcode_into_libs=yes
16404   if test "$with_gnu_ld" = yes; then
16405     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16406     shlibpath_overrides_runpath=no
16407   else
16408     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16409     shlibpath_overrides_runpath=yes
16410     case $host_os in
16411       sco3.2v5*)
16412         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16413         ;;
16414     esac
16415   fi
16416   sys_lib_dlsearch_path_spec='/usr/lib'
16417   ;;
16418
16419 uts4*)
16420   version_type=linux
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422   soname_spec='${libname}${release}${shared_ext}$major'
16423   shlibpath_var=LD_LIBRARY_PATH
16424   ;;
16425
16426 *)
16427   dynamic_linker=no
16428   ;;
16429 esac
16430 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16431 echo "${ECHO_T}$dynamic_linker" >&6; }
16432 test "$dynamic_linker" = no && can_build_shared=no
16433
16434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16435 if test "$GCC" = yes; then
16436   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16437 fi
16438
16439 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16441 hardcode_action=
16442 if test -n "$hardcode_libdir_flag_spec" || \
16443    test -n "$runpath_var" || \
16444    test "X$hardcode_automatic" = "Xyes" ; then
16445
16446   # We can hardcode non-existant directories.
16447   if test "$hardcode_direct" != no &&
16448      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16449      # have to relink, otherwise we might link with an installed library
16450      # when we should be linking with a yet-to-be-installed one
16451      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16452      test "$hardcode_minus_L" != no; then
16453     # Linking always hardcodes the temporary library directory.
16454     hardcode_action=relink
16455   else
16456     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16457     hardcode_action=immediate
16458   fi
16459 else
16460   # We cannot hardcode anything, or else we can only hardcode existing
16461   # directories.
16462   hardcode_action=unsupported
16463 fi
16464 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16465 echo "${ECHO_T}$hardcode_action" >&6; }
16466
16467 if test "$hardcode_action" = relink; then
16468   # Fast installation is not supported
16469   enable_fast_install=no
16470 elif test "$shlibpath_overrides_runpath" = yes ||
16471      test "$enable_shared" = no; then
16472   # Fast installation is not necessary
16473   enable_fast_install=needless
16474 fi
16475
16476 striplib=
16477 old_striplib=
16478 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16479 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16480 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16481   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16482   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16483   { echo "$as_me:$LINENO: result: yes" >&5
16484 echo "${ECHO_T}yes" >&6; }
16485 else
16486 # FIXME - insert some real tests, host_os isn't really good enough
16487   case $host_os in
16488    darwin*)
16489        if test -n "$STRIP" ; then
16490          striplib="$STRIP -x"
16491          { echo "$as_me:$LINENO: result: yes" >&5
16492 echo "${ECHO_T}yes" >&6; }
16493        else
16494   { echo "$as_me:$LINENO: result: no" >&5
16495 echo "${ECHO_T}no" >&6; }
16496 fi
16497        ;;
16498    *)
16499   { echo "$as_me:$LINENO: result: no" >&5
16500 echo "${ECHO_T}no" >&6; }
16501     ;;
16502   esac
16503 fi
16504
16505 if test "x$enable_dlopen" != xyes; then
16506   enable_dlopen=unknown
16507   enable_dlopen_self=unknown
16508   enable_dlopen_self_static=unknown
16509 else
16510   lt_cv_dlopen=no
16511   lt_cv_dlopen_libs=
16512
16513   case $host_os in
16514   beos*)
16515     lt_cv_dlopen="load_add_on"
16516     lt_cv_dlopen_libs=
16517     lt_cv_dlopen_self=yes
16518     ;;
16519
16520   mingw* | pw32*)
16521     lt_cv_dlopen="LoadLibrary"
16522     lt_cv_dlopen_libs=
16523    ;;
16524
16525   cygwin*)
16526     lt_cv_dlopen="dlopen"
16527     lt_cv_dlopen_libs=
16528    ;;
16529
16530   darwin*)
16531   # if libdl is installed we need to link against it
16532     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16535   echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537   ac_check_lib_save_LIBS=$LIBS
16538 LIBS="-ldl  $LIBS"
16539 cat >conftest.$ac_ext <<_ACEOF
16540 /* confdefs.h.  */
16541 _ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h.  */
16545
16546 /* Override any GCC internal prototype to avoid an error.
16547    Use char because int might match the return type of a GCC
16548    builtin and then its argument prototype would still apply.  */
16549 #ifdef __cplusplus
16550 extern "C"
16551 #endif
16552 char dlopen ();
16553 int
16554 main ()
16555 {
16556 return dlopen ();
16557   ;
16558   return 0;
16559 }
16560 _ACEOF
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_link") 2>conftest.er1
16569   ac_status=$?
16570   grep -v '^ *+' conftest.er1 >conftest.err
16571   rm -f conftest.er1
16572   cat conftest.err >&5
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); } &&
16575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576   { (case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_try") 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; } &&
16585          { ac_try='test -s conftest$ac_exeext'
16586   { (case "(($ac_try" in
16587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588   *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591   (eval "$ac_try") 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; }; then
16595   ac_cv_lib_dl_dlopen=yes
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600         ac_cv_lib_dl_dlopen=no
16601 fi
16602
16603 rm -f core conftest.err conftest.$ac_objext \
16604       conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16609 if test $ac_cv_lib_dl_dlopen = yes; then
16610   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16611 else
16612
16613     lt_cv_dlopen="dyld"
16614     lt_cv_dlopen_libs=
16615     lt_cv_dlopen_self=yes
16616
16617 fi
16618
16619    ;;
16620
16621   *)
16622     { echo "$as_me:$LINENO: checking for shl_load" >&5
16623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16624 if test "${ac_cv_func_shl_load+set}" = set; then
16625   echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627   cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16635 #define shl_load innocuous_shl_load
16636
16637 /* System header to define __stub macros and hopefully few prototypes,
16638     which can conflict with char shl_load (); below.
16639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640     <limits.h> exists even on freestanding compilers.  */
16641
16642 #ifdef __STDC__
16643 # include <limits.h>
16644 #else
16645 # include <assert.h>
16646 #endif
16647
16648 #undef shl_load
16649
16650 /* Override any GCC internal prototype to avoid an error.
16651    Use char because int might match the return type of a GCC
16652    builtin and then its argument prototype would still apply.  */
16653 #ifdef __cplusplus
16654 extern "C"
16655 #endif
16656 char shl_load ();
16657 /* The GNU C library defines this for functions which it implements
16658     to always fail with ENOSYS.  Some functions are actually named
16659     something starting with __ and the normal name is an alias.  */
16660 #if defined __stub_shl_load || defined __stub___shl_load
16661 choke me
16662 #endif
16663
16664 int
16665 main ()
16666 {
16667 return shl_load ();
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_link") 2>conftest.er1
16680   ac_status=$?
16681   grep -v '^ *+' conftest.er1 >conftest.err
16682   rm -f conftest.er1
16683   cat conftest.err >&5
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); } &&
16686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16687   { (case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_try") 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; } &&
16696          { ac_try='test -s conftest$ac_exeext'
16697   { (case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_try") 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; }; then
16706   ac_cv_func_shl_load=yes
16707 else
16708   echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711         ac_cv_func_shl_load=no
16712 fi
16713
16714 rm -f core conftest.err conftest.$ac_objext \
16715       conftest$ac_exeext conftest.$ac_ext
16716 fi
16717 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16718 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16719 if test $ac_cv_func_shl_load = yes; then
16720   lt_cv_dlopen="shl_load"
16721 else
16722   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727   ac_check_lib_save_LIBS=$LIBS
16728 LIBS="-ldld  $LIBS"
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735
16736 /* Override any GCC internal prototype to avoid an error.
16737    Use char because int might match the return type of a GCC
16738    builtin and then its argument prototype would still apply.  */
16739 #ifdef __cplusplus
16740 extern "C"
16741 #endif
16742 char shl_load ();
16743 int
16744 main ()
16745 {
16746 return shl_load ();
16747   ;
16748   return 0;
16749 }
16750 _ACEOF
16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_link") 2>conftest.er1
16759   ac_status=$?
16760   grep -v '^ *+' conftest.er1 >conftest.err
16761   rm -f conftest.er1
16762   cat conftest.err >&5
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } &&
16765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16766   { (case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_try") 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; } &&
16775          { ac_try='test -s conftest$ac_exeext'
16776   { (case "(($ac_try" in
16777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778   *) ac_try_echo=$ac_try;;
16779 esac
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781   (eval "$ac_try") 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   ac_cv_lib_dld_shl_load=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790         ac_cv_lib_dld_shl_load=no
16791 fi
16792
16793 rm -f core conftest.err conftest.$ac_objext \
16794       conftest$ac_exeext conftest.$ac_ext
16795 LIBS=$ac_check_lib_save_LIBS
16796 fi
16797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16799 if test $ac_cv_lib_dld_shl_load = yes; then
16800   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16801 else
16802   { echo "$as_me:$LINENO: checking for dlopen" >&5
16803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16804 if test "${ac_cv_func_dlopen+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16815 #define dlopen innocuous_dlopen
16816
16817 /* System header to define __stub macros and hopefully few prototypes,
16818     which can conflict with char dlopen (); below.
16819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16820     <limits.h> exists even on freestanding compilers.  */
16821
16822 #ifdef __STDC__
16823 # include <limits.h>
16824 #else
16825 # include <assert.h>
16826 #endif
16827
16828 #undef dlopen
16829
16830 /* Override any GCC internal prototype to avoid an error.
16831    Use char because int might match the return type of a GCC
16832    builtin and then its argument prototype would still apply.  */
16833 #ifdef __cplusplus
16834 extern "C"
16835 #endif
16836 char dlopen ();
16837 /* The GNU C library defines this for functions which it implements
16838     to always fail with ENOSYS.  Some functions are actually named
16839     something starting with __ and the normal name is an alias.  */
16840 #if defined __stub_dlopen || defined __stub___dlopen
16841 choke me
16842 #endif
16843
16844 int
16845 main ()
16846 {
16847 return dlopen ();
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (ac_try="$ac_link"
16854 case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_link") 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; } &&
16876          { ac_try='test -s conftest$ac_exeext'
16877   { (case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_try") 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   ac_cv_func_dlopen=yes
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891         ac_cv_func_dlopen=no
16892 fi
16893
16894 rm -f core conftest.err conftest.$ac_objext \
16895       conftest$ac_exeext conftest.$ac_ext
16896 fi
16897 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16898 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16899 if test $ac_cv_func_dlopen = yes; then
16900   lt_cv_dlopen="dlopen"
16901 else
16902   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907   ac_check_lib_save_LIBS=$LIBS
16908 LIBS="-ldl  $LIBS"
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915
16916 /* Override any GCC internal prototype to avoid an error.
16917    Use char because int might match the return type of a GCC
16918    builtin and then its argument prototype would still apply.  */
16919 #ifdef __cplusplus
16920 extern "C"
16921 #endif
16922 char dlopen ();
16923 int
16924 main ()
16925 {
16926 return dlopen ();
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_link") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_try") 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest$ac_exeext'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   ac_cv_lib_dl_dlopen=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         ac_cv_lib_dl_dlopen=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext \
16974       conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16976 fi
16977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16979 if test $ac_cv_lib_dl_dlopen = yes; then
16980   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16981 else
16982   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16983 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16985   echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987   ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lsvld  $LIBS"
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995
16996 /* Override any GCC internal prototype to avoid an error.
16997    Use char because int might match the return type of a GCC
16998    builtin and then its argument prototype would still apply.  */
16999 #ifdef __cplusplus
17000 extern "C"
17001 #endif
17002 char dlopen ();
17003 int
17004 main ()
17005 {
17006 return dlopen ();
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_link") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; } &&
17035          { ac_try='test -s conftest$ac_exeext'
17036   { (case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_try") 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_cv_lib_svld_dlopen=yes
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050         ac_cv_lib_svld_dlopen=no
17051 fi
17052
17053 rm -f core conftest.err conftest.$ac_objext \
17054       conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17056 fi
17057 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17058 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17059 if test $ac_cv_lib_svld_dlopen = yes; then
17060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17061 else
17062   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067   ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-ldld  $LIBS"
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075
17076 /* Override any GCC internal prototype to avoid an error.
17077    Use char because int might match the return type of a GCC
17078    builtin and then its argument prototype would still apply.  */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char dld_link ();
17083 int
17084 main ()
17085 {
17086 return dld_link ();
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_link") 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106   { (case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_try") 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; } &&
17115          { ac_try='test -s conftest$ac_exeext'
17116   { (case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_try") 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   ac_cv_lib_dld_dld_link=yes
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130         ac_cv_lib_dld_dld_link=no
17131 fi
17132
17133 rm -f core conftest.err conftest.$ac_objext \
17134       conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17136 fi
17137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17139 if test $ac_cv_lib_dld_dld_link = yes; then
17140   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17141 fi
17142
17143
17144 fi
17145
17146
17147 fi
17148
17149
17150 fi
17151
17152
17153 fi
17154
17155
17156 fi
17157
17158     ;;
17159   esac
17160
17161   if test "x$lt_cv_dlopen" != xno; then
17162     enable_dlopen=yes
17163   else
17164     enable_dlopen=no
17165   fi
17166
17167   case $lt_cv_dlopen in
17168   dlopen)
17169     save_CPPFLAGS="$CPPFLAGS"
17170     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17171
17172     save_LDFLAGS="$LDFLAGS"
17173     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17174
17175     save_LIBS="$LIBS"
17176     LIBS="$lt_cv_dlopen_libs $LIBS"
17177
17178     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17180 if test "${lt_cv_dlopen_self+set}" = set; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183           if test "$cross_compiling" = yes; then :
17184   lt_cv_dlopen_self=cross
17185 else
17186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17187   lt_status=$lt_dlunknown
17188   cat > conftest.$ac_ext <<EOF
17189 #line 17189 "configure"
17190 #include "confdefs.h"
17191
17192 #if HAVE_DLFCN_H
17193 #include <dlfcn.h>
17194 #endif
17195
17196 #include <stdio.h>
17197
17198 #ifdef RTLD_GLOBAL
17199 #  define LT_DLGLOBAL           RTLD_GLOBAL
17200 #else
17201 #  ifdef DL_GLOBAL
17202 #    define LT_DLGLOBAL         DL_GLOBAL
17203 #  else
17204 #    define LT_DLGLOBAL         0
17205 #  endif
17206 #endif
17207
17208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17209    find out it does not work in some platform. */
17210 #ifndef LT_DLLAZY_OR_NOW
17211 #  ifdef RTLD_LAZY
17212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17213 #  else
17214 #    ifdef DL_LAZY
17215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17216 #    else
17217 #      ifdef RTLD_NOW
17218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17219 #      else
17220 #        ifdef DL_NOW
17221 #          define LT_DLLAZY_OR_NOW      DL_NOW
17222 #        else
17223 #          define LT_DLLAZY_OR_NOW      0
17224 #        endif
17225 #      endif
17226 #    endif
17227 #  endif
17228 #endif
17229
17230 #ifdef __cplusplus
17231 extern "C" void exit (int);
17232 #endif
17233
17234 void fnord() { int i=42;}
17235 int main ()
17236 {
17237   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17238   int status = $lt_dlunknown;
17239
17240   if (self)
17241     {
17242       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17243       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17244       /* dlclose (self); */
17245     }
17246   else
17247     puts (dlerror ());
17248
17249     exit (status);
17250 }
17251 EOF
17252   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253   (eval $ac_link) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17257     (./conftest; exit; ) >&5 2>/dev/null
17258     lt_status=$?
17259     case x$lt_status in
17260       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17261       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17262       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17263     esac
17264   else :
17265     # compilation failed
17266     lt_cv_dlopen_self=no
17267   fi
17268 fi
17269 rm -fr conftest*
17270
17271
17272 fi
17273 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17274 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17275
17276     if test "x$lt_cv_dlopen_self" = xyes; then
17277       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17278       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17279 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17280 if test "${lt_cv_dlopen_self_static+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283           if test "$cross_compiling" = yes; then :
17284   lt_cv_dlopen_self_static=cross
17285 else
17286   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17287   lt_status=$lt_dlunknown
17288   cat > conftest.$ac_ext <<EOF
17289 #line 17289 "configure"
17290 #include "confdefs.h"
17291
17292 #if HAVE_DLFCN_H
17293 #include <dlfcn.h>
17294 #endif
17295
17296 #include <stdio.h>
17297
17298 #ifdef RTLD_GLOBAL
17299 #  define LT_DLGLOBAL           RTLD_GLOBAL
17300 #else
17301 #  ifdef DL_GLOBAL
17302 #    define LT_DLGLOBAL         DL_GLOBAL
17303 #  else
17304 #    define LT_DLGLOBAL         0
17305 #  endif
17306 #endif
17307
17308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17309    find out it does not work in some platform. */
17310 #ifndef LT_DLLAZY_OR_NOW
17311 #  ifdef RTLD_LAZY
17312 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17313 #  else
17314 #    ifdef DL_LAZY
17315 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17316 #    else
17317 #      ifdef RTLD_NOW
17318 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17319 #      else
17320 #        ifdef DL_NOW
17321 #          define LT_DLLAZY_OR_NOW      DL_NOW
17322 #        else
17323 #          define LT_DLLAZY_OR_NOW      0
17324 #        endif
17325 #      endif
17326 #    endif
17327 #  endif
17328 #endif
17329
17330 #ifdef __cplusplus
17331 extern "C" void exit (int);
17332 #endif
17333
17334 void fnord() { int i=42;}
17335 int main ()
17336 {
17337   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17338   int status = $lt_dlunknown;
17339
17340   if (self)
17341     {
17342       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17343       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17344       /* dlclose (self); */
17345     }
17346   else
17347     puts (dlerror ());
17348
17349     exit (status);
17350 }
17351 EOF
17352   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17353   (eval $ac_link) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17357     (./conftest; exit; ) >&5 2>/dev/null
17358     lt_status=$?
17359     case x$lt_status in
17360       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17361       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17362       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17363     esac
17364   else :
17365     # compilation failed
17366     lt_cv_dlopen_self_static=no
17367   fi
17368 fi
17369 rm -fr conftest*
17370
17371
17372 fi
17373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17374 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17375     fi
17376
17377     CPPFLAGS="$save_CPPFLAGS"
17378     LDFLAGS="$save_LDFLAGS"
17379     LIBS="$save_LIBS"
17380     ;;
17381   esac
17382
17383   case $lt_cv_dlopen_self in
17384   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17385   *) enable_dlopen_self=unknown ;;
17386   esac
17387
17388   case $lt_cv_dlopen_self_static in
17389   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17390   *) enable_dlopen_self_static=unknown ;;
17391   esac
17392 fi
17393
17394
17395 # Report which library types will actually be built
17396 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17397 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17398 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17399 echo "${ECHO_T}$can_build_shared" >&6; }
17400
17401 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17402 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17403 test "$can_build_shared" = "no" && enable_shared=no
17404
17405 # On AIX, shared libraries and static libraries use the same namespace, and
17406 # are all built from PIC.
17407 case $host_os in
17408 aix3*)
17409   test "$enable_shared" = yes && enable_static=no
17410   if test -n "$RANLIB"; then
17411     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17412     postinstall_cmds='$RANLIB $lib'
17413   fi
17414   ;;
17415
17416 aix4* | aix5*)
17417   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17418     test "$enable_shared" = yes && enable_static=no
17419   fi
17420     ;;
17421 esac
17422 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17423 echo "${ECHO_T}$enable_shared" >&6; }
17424
17425 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17426 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17427 # Make sure either enable_shared or enable_static is yes.
17428 test "$enable_shared" = yes || enable_static=yes
17429 { echo "$as_me:$LINENO: result: $enable_static" >&5
17430 echo "${ECHO_T}$enable_static" >&6; }
17431
17432 # The else clause should only fire when bootstrapping the
17433 # libtool distribution, otherwise you forgot to ship ltmain.sh
17434 # with your package, and you will get complaints that there are
17435 # no rules to generate ltmain.sh.
17436 if test -f "$ltmain"; then
17437   # See if we are running on zsh, and set the options which allow our commands through
17438   # without removal of \ escapes.
17439   if test -n "${ZSH_VERSION+set}" ; then
17440     setopt NO_GLOB_SUBST
17441   fi
17442   # Now quote all the things that may contain metacharacters while being
17443   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17444   # variables and quote the copies for generation of the libtool script.
17445   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17446     SED SHELL STRIP \
17447     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17448     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17449     deplibs_check_method reload_flag reload_cmds need_locks \
17450     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17451     lt_cv_sys_global_symbol_to_c_name_address \
17452     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17453     old_postinstall_cmds old_postuninstall_cmds \
17454     compiler \
17455     CC \
17456     LD \
17457     lt_prog_compiler_wl \
17458     lt_prog_compiler_pic \
17459     lt_prog_compiler_static \
17460     lt_prog_compiler_no_builtin_flag \
17461     export_dynamic_flag_spec \
17462     thread_safe_flag_spec \
17463     whole_archive_flag_spec \
17464     enable_shared_with_static_runtimes \
17465     old_archive_cmds \
17466     old_archive_from_new_cmds \
17467     predep_objects \
17468     postdep_objects \
17469     predeps \
17470     postdeps \
17471     compiler_lib_search_path \
17472     archive_cmds \
17473     archive_expsym_cmds \
17474     postinstall_cmds \
17475     postuninstall_cmds \
17476     old_archive_from_expsyms_cmds \
17477     allow_undefined_flag \
17478     no_undefined_flag \
17479     export_symbols_cmds \
17480     hardcode_libdir_flag_spec \
17481     hardcode_libdir_flag_spec_ld \
17482     hardcode_libdir_separator \
17483     hardcode_automatic \
17484     module_cmds \
17485     module_expsym_cmds \
17486     lt_cv_prog_compiler_c_o \
17487     exclude_expsyms \
17488     include_expsyms; do
17489
17490     case $var in
17491     old_archive_cmds | \
17492     old_archive_from_new_cmds | \
17493     archive_cmds | \
17494     archive_expsym_cmds | \
17495     module_cmds | \
17496     module_expsym_cmds | \
17497     old_archive_from_expsyms_cmds | \
17498     export_symbols_cmds | \
17499     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17500     postinstall_cmds | postuninstall_cmds | \
17501     old_postinstall_cmds | old_postuninstall_cmds | \
17502     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17503       # Double-quote double-evaled strings.
17504       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17505       ;;
17506     *)
17507       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17508       ;;
17509     esac
17510   done
17511
17512   case $lt_echo in
17513   *'\$0 --fallback-echo"')
17514     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17515     ;;
17516   esac
17517
17518 cfgfile="${ofile}T"
17519   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17520   $rm -f "$cfgfile"
17521   { echo "$as_me:$LINENO: creating $ofile" >&5
17522 echo "$as_me: creating $ofile" >&6;}
17523
17524   cat <<__EOF__ >> "$cfgfile"
17525 #! $SHELL
17526
17527 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17528 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17530 #
17531 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17532 # Free Software Foundation, Inc.
17533 #
17534 # This file is part of GNU Libtool:
17535 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17536 #
17537 # This program is free software; you can redistribute it and/or modify
17538 # it under the terms of the GNU General Public License as published by
17539 # the Free Software Foundation; either version 2 of the License, or
17540 # (at your option) any later version.
17541 #
17542 # This program is distributed in the hope that it will be useful, but
17543 # WITHOUT ANY WARRANTY; without even the implied warranty of
17544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17545 # General Public License for more details.
17546 #
17547 # You should have received a copy of the GNU General Public License
17548 # along with this program; if not, write to the Free Software
17549 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17550 #
17551 # As a special exception to the GNU General Public License, if you
17552 # distribute this file as part of a program that contains a
17553 # configuration script generated by Autoconf, you may include it under
17554 # the same distribution terms that you use for the rest of that program.
17555
17556 # A sed program that does not truncate output.
17557 SED=$lt_SED
17558
17559 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17560 Xsed="$SED -e 1s/^X//"
17561
17562 # The HP-UX ksh and POSIX shell print the target directory to stdout
17563 # if CDPATH is set.
17564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17565
17566 # The names of the tagged configurations supported by this script.
17567 available_tags=
17568
17569 # ### BEGIN LIBTOOL CONFIG
17570
17571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17572
17573 # Shell to use when invoking shell scripts.
17574 SHELL=$lt_SHELL
17575
17576 # Whether or not to build shared libraries.
17577 build_libtool_libs=$enable_shared
17578
17579 # Whether or not to build static libraries.
17580 build_old_libs=$enable_static
17581
17582 # Whether or not to add -lc for building shared libraries.
17583 build_libtool_need_lc=$archive_cmds_need_lc
17584
17585 # Whether or not to disallow shared libs when runtime libs are static
17586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17587
17588 # Whether or not to optimize for fast installation.
17589 fast_install=$enable_fast_install
17590
17591 # The host system.
17592 host_alias=$host_alias
17593 host=$host
17594 host_os=$host_os
17595
17596 # The build system.
17597 build_alias=$build_alias
17598 build=$build
17599 build_os=$build_os
17600
17601 # An echo program that does not interpret backslashes.
17602 echo=$lt_echo
17603
17604 # The archiver.
17605 AR=$lt_AR
17606 AR_FLAGS=$lt_AR_FLAGS
17607
17608 # A C compiler.
17609 LTCC=$lt_LTCC
17610
17611 # LTCC compiler flags.
17612 LTCFLAGS=$lt_LTCFLAGS
17613
17614 # A language-specific compiler.
17615 CC=$lt_compiler
17616
17617 # Is the compiler the GNU C compiler?
17618 with_gcc=$GCC
17619
17620 # An ERE matcher.
17621 EGREP=$lt_EGREP
17622
17623 # The linker used to build libraries.
17624 LD=$lt_LD
17625
17626 # Whether we need hard or soft links.
17627 LN_S=$lt_LN_S
17628
17629 # A BSD-compatible nm program.
17630 NM=$lt_NM
17631
17632 # A symbol stripping program
17633 STRIP=$lt_STRIP
17634
17635 # Used to examine libraries when file_magic_cmd begins "file"
17636 MAGIC_CMD=$MAGIC_CMD
17637
17638 # Used on cygwin: DLL creation program.
17639 DLLTOOL="$DLLTOOL"
17640
17641 # Used on cygwin: object dumper.
17642 OBJDUMP="$OBJDUMP"
17643
17644 # Used on cygwin: assembler.
17645 AS="$AS"
17646
17647 # The name of the directory that contains temporary libtool files.
17648 objdir=$objdir
17649
17650 # How to create reloadable object files.
17651 reload_flag=$lt_reload_flag
17652 reload_cmds=$lt_reload_cmds
17653
17654 # How to pass a linker flag through the compiler.
17655 wl=$lt_lt_prog_compiler_wl
17656
17657 # Object file suffix (normally "o").
17658 objext="$ac_objext"
17659
17660 # Old archive suffix (normally "a").
17661 libext="$libext"
17662
17663 # Shared library suffix (normally ".so").
17664 shrext_cmds='$shrext_cmds'
17665
17666 # Executable file suffix (normally "").
17667 exeext="$exeext"
17668
17669 # Additional compiler flags for building library objects.
17670 pic_flag=$lt_lt_prog_compiler_pic
17671 pic_mode=$pic_mode
17672
17673 # What is the maximum length of a command?
17674 max_cmd_len=$lt_cv_sys_max_cmd_len
17675
17676 # Does compiler simultaneously support -c and -o options?
17677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17678
17679 # Must we lock files when doing compilation?
17680 need_locks=$lt_need_locks
17681
17682 # Do we need the lib prefix for modules?
17683 need_lib_prefix=$need_lib_prefix
17684
17685 # Do we need a version for libraries?
17686 need_version=$need_version
17687
17688 # Whether dlopen is supported.
17689 dlopen_support=$enable_dlopen
17690
17691 # Whether dlopen of programs is supported.
17692 dlopen_self=$enable_dlopen_self
17693
17694 # Whether dlopen of statically linked programs is supported.
17695 dlopen_self_static=$enable_dlopen_self_static
17696
17697 # Compiler flag to prevent dynamic linking.
17698 link_static_flag=$lt_lt_prog_compiler_static
17699
17700 # Compiler flag to turn off builtin functions.
17701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17702
17703 # Compiler flag to allow reflexive dlopens.
17704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17705
17706 # Compiler flag to generate shared objects directly from archives.
17707 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17708
17709 # Compiler flag to generate thread-safe objects.
17710 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17711
17712 # Library versioning type.
17713 version_type=$version_type
17714
17715 # Format of library name prefix.
17716 libname_spec=$lt_libname_spec
17717
17718 # List of archive names.  First name is the real one, the rest are links.
17719 # The last name is the one that the linker finds with -lNAME.
17720 library_names_spec=$lt_library_names_spec
17721
17722 # The coded name of the library, if different from the real name.
17723 soname_spec=$lt_soname_spec
17724
17725 # Commands used to build and install an old-style archive.
17726 RANLIB=$lt_RANLIB
17727 old_archive_cmds=$lt_old_archive_cmds
17728 old_postinstall_cmds=$lt_old_postinstall_cmds
17729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17730
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17733
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17736
17737 # Commands used to build and install a shared archive.
17738 archive_cmds=$lt_archive_cmds
17739 archive_expsym_cmds=$lt_archive_expsym_cmds
17740 postinstall_cmds=$lt_postinstall_cmds
17741 postuninstall_cmds=$lt_postuninstall_cmds
17742
17743 # Commands used to build a loadable module (assumed same as above if empty)
17744 module_cmds=$lt_module_cmds
17745 module_expsym_cmds=$lt_module_expsym_cmds
17746
17747 # Commands to strip libraries.
17748 old_striplib=$lt_old_striplib
17749 striplib=$lt_striplib
17750
17751 # Dependencies to place before the objects being linked to create a
17752 # shared library.
17753 predep_objects=$lt_predep_objects
17754
17755 # Dependencies to place after the objects being linked to create a
17756 # shared library.
17757 postdep_objects=$lt_postdep_objects
17758
17759 # Dependencies to place before the objects being linked to create a
17760 # shared library.
17761 predeps=$lt_predeps
17762
17763 # Dependencies to place after the objects being linked to create a
17764 # shared library.
17765 postdeps=$lt_postdeps
17766
17767 # The library search path used internally by the compiler when linking
17768 # a shared library.
17769 compiler_lib_search_path=$lt_compiler_lib_search_path
17770
17771 # Method to check whether dependent libraries are shared objects.
17772 deplibs_check_method=$lt_deplibs_check_method
17773
17774 # Command to use when deplibs_check_method == file_magic.
17775 file_magic_cmd=$lt_file_magic_cmd
17776
17777 # Flag that allows shared libraries with undefined symbols to be built.
17778 allow_undefined_flag=$lt_allow_undefined_flag
17779
17780 # Flag that forces no undefined symbols.
17781 no_undefined_flag=$lt_no_undefined_flag
17782
17783 # Commands used to finish a libtool library installation in a directory.
17784 finish_cmds=$lt_finish_cmds
17785
17786 # Same as above, but a single script fragment to be evaled but not shown.
17787 finish_eval=$lt_finish_eval
17788
17789 # Take the output of nm and produce a listing of raw symbols and C names.
17790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17791
17792 # Transform the output of nm in a proper C declaration
17793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17794
17795 # Transform the output of nm in a C name address pair
17796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17797
17798 # This is the shared library runtime path variable.
17799 runpath_var=$runpath_var
17800
17801 # This is the shared library path variable.
17802 shlibpath_var=$shlibpath_var
17803
17804 # Is shlibpath searched before the hard-coded library search path?
17805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17806
17807 # How to hardcode a shared library path into an executable.
17808 hardcode_action=$hardcode_action
17809
17810 # Whether we should hardcode library paths into libraries.
17811 hardcode_into_libs=$hardcode_into_libs
17812
17813 # Flag to hardcode \$libdir into a binary during linking.
17814 # This must work even if \$libdir does not exist.
17815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17816
17817 # If ld is used when linking, flag to hardcode \$libdir into
17818 # a binary during linking. This must work even if \$libdir does
17819 # not exist.
17820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17821
17822 # Whether we need a single -rpath flag with a separated argument.
17823 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17824
17825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17826 # resulting binary.
17827 hardcode_direct=$hardcode_direct
17828
17829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17830 # resulting binary.
17831 hardcode_minus_L=$hardcode_minus_L
17832
17833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17834 # the resulting binary.
17835 hardcode_shlibpath_var=$hardcode_shlibpath_var
17836
17837 # Set to yes if building a shared library automatically hardcodes DIR into the library
17838 # and all subsequent libraries and executables linked against it.
17839 hardcode_automatic=$hardcode_automatic
17840
17841 # Variables whose values should be saved in libtool wrapper scripts and
17842 # restored at relink time.
17843 variables_saved_for_relink="$variables_saved_for_relink"
17844
17845 # Whether libtool must link a program against all its dependency libraries.
17846 link_all_deplibs=$link_all_deplibs
17847
17848 # Compile-time system search path for libraries
17849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17850
17851 # Run-time system search path for libraries
17852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17853
17854 # Fix the shell variable \$srcfile for the compiler.
17855 fix_srcfile_path="$fix_srcfile_path"
17856
17857 # Set to yes if exported symbols are required.
17858 always_export_symbols=$always_export_symbols
17859
17860 # The commands to list exported symbols.
17861 export_symbols_cmds=$lt_export_symbols_cmds
17862
17863 # The commands to extract the exported symbol list from a shared archive.
17864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17865
17866 # Symbols that should not be listed in the preloaded symbols.
17867 exclude_expsyms=$lt_exclude_expsyms
17868
17869 # Symbols that must always be exported.
17870 include_expsyms=$lt_include_expsyms
17871
17872 # ### END LIBTOOL CONFIG
17873
17874 __EOF__
17875
17876
17877   case $host_os in
17878   aix3*)
17879     cat <<\EOF >> "$cfgfile"
17880
17881 # AIX sometimes has problems with the GCC collect2 program.  For some
17882 # reason, if we set the COLLECT_NAMES environment variable, the problems
17883 # vanish in a puff of smoke.
17884 if test "X${COLLECT_NAMES+set}" != Xset; then
17885   COLLECT_NAMES=
17886   export COLLECT_NAMES
17887 fi
17888 EOF
17889     ;;
17890   esac
17891
17892   # We use sed instead of cat because bash on DJGPP gets confused if
17893   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17894   # text mode, it properly converts lines to CR/LF.  This bash problem
17895   # is reportedly fixed, but why not run on old versions too?
17896   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17897
17898   mv -f "$cfgfile" "$ofile" || \
17899     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17900   chmod +x "$ofile"
17901
17902 else
17903   # If there is no Makefile yet, we rely on a make rule to execute
17904   # `config.status --recheck' to rerun these tests and create the
17905   # libtool script then.
17906   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17907   if test -f "$ltmain_in"; then
17908     test -f Makefile && make "$ltmain"
17909   fi
17910 fi
17911
17912
17913 ac_ext=c
17914 ac_cpp='$CPP $CPPFLAGS'
17915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17918
17919 CC="$lt_save_CC"
17920
17921
17922 # Check whether --with-tags was given.
17923 if test "${with_tags+set}" = set; then
17924   withval=$with_tags; tagnames="$withval"
17925 fi
17926
17927
17928 if test -f "$ltmain" && test -n "$tagnames"; then
17929   if test ! -f "${ofile}"; then
17930     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17931 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17932   fi
17933
17934   if test -z "$LTCC"; then
17935     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17936     if test -z "$LTCC"; then
17937       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17938 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17939     else
17940       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17941 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17942     fi
17943   fi
17944   if test -z "$LTCFLAGS"; then
17945     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17946   fi
17947
17948   # Extract list of available tagged configurations in $ofile.
17949   # Note that this assumes the entire list is on one line.
17950   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17951
17952   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17953   for tagname in $tagnames; do
17954     IFS="$lt_save_ifs"
17955     # Check whether tagname contains only valid characters
17956     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17957     "") ;;
17958     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17959 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17960    { (exit 1); exit 1; }; }
17961         ;;
17962     esac
17963
17964     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17965     then
17966       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17967 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17968    { (exit 1); exit 1; }; }
17969     fi
17970
17971     # Update the list of available tags.
17972     if test -n "$tagname"; then
17973       echo appending configuration tag \"$tagname\" to $ofile
17974
17975       case $tagname in
17976       CXX)
17977         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17978             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17979             (test "X$CXX" != "Xg++"))) ; then
17980           ac_ext=cpp
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17985
17986
17987
17988
17989 archive_cmds_need_lc_CXX=no
17990 allow_undefined_flag_CXX=
17991 always_export_symbols_CXX=no
17992 archive_expsym_cmds_CXX=
17993 export_dynamic_flag_spec_CXX=
17994 hardcode_direct_CXX=no
17995 hardcode_libdir_flag_spec_CXX=
17996 hardcode_libdir_flag_spec_ld_CXX=
17997 hardcode_libdir_separator_CXX=
17998 hardcode_minus_L_CXX=no
17999 hardcode_shlibpath_var_CXX=unsupported
18000 hardcode_automatic_CXX=no
18001 module_cmds_CXX=
18002 module_expsym_cmds_CXX=
18003 link_all_deplibs_CXX=unknown
18004 old_archive_cmds_CXX=$old_archive_cmds
18005 no_undefined_flag_CXX=
18006 whole_archive_flag_spec_CXX=
18007 enable_shared_with_static_runtimes_CXX=no
18008
18009 # Dependencies to place before and after the object being linked:
18010 predep_objects_CXX=
18011 postdep_objects_CXX=
18012 predeps_CXX=
18013 postdeps_CXX=
18014 compiler_lib_search_path_CXX=
18015
18016 # Source file extension for C++ test sources.
18017 ac_ext=cpp
18018
18019 # Object file extension for compiled C++ test sources.
18020 objext=o
18021 objext_CXX=$objext
18022
18023 # Code to be used in simple compile tests
18024 lt_simple_compile_test_code="int some_variable = 0;\n"
18025
18026 # Code to be used in simple link tests
18027 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18028
18029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030
18031 # If no C compiler was specified, use CC.
18032 LTCC=${LTCC-"$CC"}
18033
18034 # If no C compiler flags were specified, use CFLAGS.
18035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18036
18037 # Allow CC to be a program name with arguments.
18038 compiler=$CC
18039
18040
18041 # save warnings/boilerplate of simple test code
18042 ac_outfile=conftest.$ac_objext
18043 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18045 _lt_compiler_boilerplate=`cat conftest.err`
18046 $rm conftest*
18047
18048 ac_outfile=conftest.$ac_objext
18049 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18051 _lt_linker_boilerplate=`cat conftest.err`
18052 $rm conftest*
18053
18054
18055 # Allow CC to be a program name with arguments.
18056 lt_save_CC=$CC
18057 lt_save_LD=$LD
18058 lt_save_GCC=$GCC
18059 GCC=$GXX
18060 lt_save_with_gnu_ld=$with_gnu_ld
18061 lt_save_path_LD=$lt_cv_path_LD
18062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18063   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18064 else
18065   $as_unset lt_cv_prog_gnu_ld
18066 fi
18067 if test -n "${lt_cv_path_LDCXX+set}"; then
18068   lt_cv_path_LD=$lt_cv_path_LDCXX
18069 else
18070   $as_unset lt_cv_path_LD
18071 fi
18072 test -z "${LDCXX+set}" || LD=$LDCXX
18073 CC=${CXX-"c++"}
18074 compiler=$CC
18075 compiler_CXX=$CC
18076 for cc_temp in $compiler""; do
18077   case $cc_temp in
18078     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18079     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18080     \-*) ;;
18081     *) break;;
18082   esac
18083 done
18084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18085
18086
18087 # We don't want -fno-exception wen compiling C++ code, so set the
18088 # no_builtin_flag separately
18089 if test "$GXX" = yes; then
18090   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18091 else
18092   lt_prog_compiler_no_builtin_flag_CXX=
18093 fi
18094
18095 if test "$GXX" = yes; then
18096   # Set up default GNU C++ configuration
18097
18098
18099 # Check whether --with-gnu-ld was given.
18100 if test "${with_gnu_ld+set}" = set; then
18101   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18102 else
18103   with_gnu_ld=no
18104 fi
18105
18106 ac_prog=ld
18107 if test "$GCC" = yes; then
18108   # Check if gcc -print-prog-name=ld gives a path.
18109   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18110 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18111   case $host in
18112   *-*-mingw*)
18113     # gcc leaves a trailing carriage return which upsets mingw
18114     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18115   *)
18116     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18117   esac
18118   case $ac_prog in
18119     # Accept absolute paths.
18120     [\\/]* | ?:[\\/]*)
18121       re_direlt='/[^/][^/]*/\.\./'
18122       # Canonicalize the pathname of ld
18123       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18124       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18125         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18126       done
18127       test -z "$LD" && LD="$ac_prog"
18128       ;;
18129   "")
18130     # If it fails, then pretend we aren't using GCC.
18131     ac_prog=ld
18132     ;;
18133   *)
18134     # If it is relative, then search for the first ld in PATH.
18135     with_gnu_ld=unknown
18136     ;;
18137   esac
18138 elif test "$with_gnu_ld" = yes; then
18139   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18140 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18141 else
18142   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18143 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18144 fi
18145 if test "${lt_cv_path_LD+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   if test -z "$LD"; then
18149   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18150   for ac_dir in $PATH; do
18151     IFS="$lt_save_ifs"
18152     test -z "$ac_dir" && ac_dir=.
18153     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18154       lt_cv_path_LD="$ac_dir/$ac_prog"
18155       # Check to see if the program is GNU ld.  I'd rather use --version,
18156       # but apparently some variants of GNU ld only accept -v.
18157       # Break only if it was the GNU/non-GNU ld that we prefer.
18158       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18159       *GNU* | *'with BFD'*)
18160         test "$with_gnu_ld" != no && break
18161         ;;
18162       *)
18163         test "$with_gnu_ld" != yes && break
18164         ;;
18165       esac
18166     fi
18167   done
18168   IFS="$lt_save_ifs"
18169 else
18170   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18171 fi
18172 fi
18173
18174 LD="$lt_cv_path_LD"
18175 if test -n "$LD"; then
18176   { echo "$as_me:$LINENO: result: $LD" >&5
18177 echo "${ECHO_T}$LD" >&6; }
18178 else
18179   { echo "$as_me:$LINENO: result: no" >&5
18180 echo "${ECHO_T}no" >&6; }
18181 fi
18182 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18183 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18184    { (exit 1); exit 1; }; }
18185 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18186 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18187 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18191 case `$LD -v 2>&1 </dev/null` in
18192 *GNU* | *'with BFD'*)
18193   lt_cv_prog_gnu_ld=yes
18194   ;;
18195 *)
18196   lt_cv_prog_gnu_ld=no
18197   ;;
18198 esac
18199 fi
18200 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18201 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18202 with_gnu_ld=$lt_cv_prog_gnu_ld
18203
18204
18205
18206   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18207   # archiving commands below assume that GNU ld is being used.
18208   if test "$with_gnu_ld" = yes; then
18209     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210     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'
18211
18212     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18213     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18214
18215     # If archive_cmds runs LD, not CC, wlarc should be empty
18216     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18217     #     investigate it a little bit more. (MM)
18218     wlarc='${wl}'
18219
18220     # ancient GNU ld didn't support --whole-archive et. al.
18221     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18222         grep 'no-whole-archive' > /dev/null; then
18223       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18224     else
18225       whole_archive_flag_spec_CXX=
18226     fi
18227   else
18228     with_gnu_ld=no
18229     wlarc=
18230
18231     # A generic and very simple default shared library creation
18232     # command for GNU C++ for the case where it uses the native
18233     # linker, instead of GNU ld.  If possible, this setting should
18234     # overridden to take advantage of the native linker features on
18235     # the platform it is being used on.
18236     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18237   fi
18238
18239   # Commands to make compiler produce verbose output that lists
18240   # what "hidden" libraries, object files and flags are used when
18241   # linking a shared library.
18242   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18243
18244 else
18245   GXX=no
18246   with_gnu_ld=no
18247   wlarc=
18248 fi
18249
18250 # PORTME: fill in a description of your system's C++ link characteristics
18251 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18253 ld_shlibs_CXX=yes
18254 case $host_os in
18255   aix3*)
18256     # FIXME: insert proper C++ library support
18257     ld_shlibs_CXX=no
18258     ;;
18259   aix4* | aix5*)
18260     if test "$host_cpu" = ia64; then
18261       # On IA64, the linker does run time linking by default, so we don't
18262       # have to do anything special.
18263       aix_use_runtimelinking=no
18264       exp_sym_flag='-Bexport'
18265       no_entry_flag=""
18266     else
18267       aix_use_runtimelinking=no
18268
18269       # Test if we are trying to use run time linking or normal
18270       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18271       # need to do runtime linking.
18272       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18273         for ld_flag in $LDFLAGS; do
18274           case $ld_flag in
18275           *-brtl*)
18276             aix_use_runtimelinking=yes
18277             break
18278             ;;
18279           esac
18280         done
18281         ;;
18282       esac
18283
18284       exp_sym_flag='-bexport'
18285       no_entry_flag='-bnoentry'
18286     fi
18287
18288     # When large executables or shared objects are built, AIX ld can
18289     # have problems creating the table of contents.  If linking a library
18290     # or program results in "error TOC overflow" add -mminimal-toc to
18291     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18292     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18293
18294     archive_cmds_CXX=''
18295     hardcode_direct_CXX=yes
18296     hardcode_libdir_separator_CXX=':'
18297     link_all_deplibs_CXX=yes
18298
18299     if test "$GXX" = yes; then
18300       case $host_os in aix4.[012]|aix4.[012].*)
18301       # We only want to do this on AIX 4.2 and lower, the check
18302       # below for broken collect2 doesn't work under 4.3+
18303         collect2name=`${CC} -print-prog-name=collect2`
18304         if test -f "$collect2name" && \
18305            strings "$collect2name" | grep resolve_lib_name >/dev/null
18306         then
18307           # We have reworked collect2
18308           hardcode_direct_CXX=yes
18309         else
18310           # We have old collect2
18311           hardcode_direct_CXX=unsupported
18312           # It fails to find uninstalled libraries when the uninstalled
18313           # path is not listed in the libpath.  Setting hardcode_minus_L
18314           # to unsupported forces relinking
18315           hardcode_minus_L_CXX=yes
18316           hardcode_libdir_flag_spec_CXX='-L$libdir'
18317           hardcode_libdir_separator_CXX=
18318         fi
18319         ;;
18320       esac
18321       shared_flag='-shared'
18322       if test "$aix_use_runtimelinking" = yes; then
18323         shared_flag="$shared_flag "'${wl}-G'
18324       fi
18325     else
18326       # not using gcc
18327       if test "$host_cpu" = ia64; then
18328         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18329         # chokes on -Wl,-G. The following line is correct:
18330         shared_flag='-G'
18331       else
18332         if test "$aix_use_runtimelinking" = yes; then
18333           shared_flag='${wl}-G'
18334         else
18335           shared_flag='${wl}-bM:SRE'
18336         fi
18337       fi
18338     fi
18339
18340     # It seems that -bexpall does not export symbols beginning with
18341     # underscore (_), so it is better to generate a list of symbols to export.
18342     always_export_symbols_CXX=yes
18343     if test "$aix_use_runtimelinking" = yes; then
18344       # Warning - without using the other runtime loading flags (-brtl),
18345       # -berok will link without error, but may produce a broken library.
18346       allow_undefined_flag_CXX='-berok'
18347       # Determine the default libpath from the value encoded in an empty executable.
18348       cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h.  */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h.  */
18354
18355 int
18356 main ()
18357 {
18358
18359   ;
18360   return 0;
18361 }
18362 _ACEOF
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (ac_try="$ac_link"
18365 case "(($ac_try" in
18366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367   *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370   (eval "$ac_link") 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18378   { (case "(($ac_try" in
18379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380   *) ac_try_echo=$ac_try;;
18381 esac
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383   (eval "$ac_try") 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; } &&
18387          { ac_try='test -s conftest$ac_exeext'
18388   { (case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393   (eval "$ac_try") 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; }; then
18397
18398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18399 }'`
18400 # Check for a 64-bit object if we didn't find anything.
18401 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; }
18402 }'`; fi
18403 else
18404   echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407
18408 fi
18409
18410 rm -f core conftest.err conftest.$ac_objext \
18411       conftest$ac_exeext conftest.$ac_ext
18412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18413
18414       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18415
18416       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"
18417      else
18418       if test "$host_cpu" = ia64; then
18419         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18420         allow_undefined_flag_CXX="-z nodefs"
18421         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"
18422       else
18423         # Determine the default libpath from the value encoded in an empty executable.
18424         cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430
18431 int
18432 main ()
18433 {
18434
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_link") 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18454   { (case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_try") 2>&5
18460   ac_status=$?
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); }; } &&
18463          { ac_try='test -s conftest$ac_exeext'
18464   { (case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_try") 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473
18474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18475 }'`
18476 # Check for a 64-bit object if we didn't find anything.
18477 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; }
18478 }'`; fi
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483
18484 fi
18485
18486 rm -f core conftest.err conftest.$ac_objext \
18487       conftest$ac_exeext conftest.$ac_ext
18488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18489
18490         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18491         # Warning - without using the other run time loading flags,
18492         # -berok will link without error, but may produce a broken library.
18493         no_undefined_flag_CXX=' ${wl}-bernotok'
18494         allow_undefined_flag_CXX=' ${wl}-berok'
18495         # Exported symbols can be pulled into shared objects from archives
18496         whole_archive_flag_spec_CXX='$convenience'
18497         archive_cmds_need_lc_CXX=yes
18498         # This is similar to how AIX traditionally builds its shared libraries.
18499         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'
18500       fi
18501     fi
18502     ;;
18503
18504   beos*)
18505     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18506       allow_undefined_flag_CXX=unsupported
18507       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18508       # support --undefined.  This deserves some investigation.  FIXME
18509       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18510     else
18511       ld_shlibs_CXX=no
18512     fi
18513     ;;
18514
18515   chorus*)
18516     case $cc_basename in
18517       *)
18518         # FIXME: insert proper C++ library support
18519         ld_shlibs_CXX=no
18520         ;;
18521     esac
18522     ;;
18523
18524   cygwin* | mingw* | pw32*)
18525     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18526     # as there is no search path for DLLs.
18527     hardcode_libdir_flag_spec_CXX='-L$libdir'
18528     allow_undefined_flag_CXX=unsupported
18529     always_export_symbols_CXX=no
18530     enable_shared_with_static_runtimes_CXX=yes
18531
18532     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18533       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'
18534       # If the export-symbols file already is a .def file (1st line
18535       # is EXPORTS), use it as is; otherwise, prepend...
18536       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18537         cp $export_symbols $output_objdir/$soname.def;
18538       else
18539         echo EXPORTS > $output_objdir/$soname.def;
18540         cat $export_symbols >> $output_objdir/$soname.def;
18541       fi~
18542       $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'
18543     else
18544       ld_shlibs_CXX=no
18545     fi
18546   ;;
18547       darwin* | rhapsody*)
18548         case $host_os in
18549         rhapsody* | darwin1.[012])
18550          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18551          ;;
18552        *) # Darwin 1.3 on
18553          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18554            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18555          else
18556            case ${MACOSX_DEPLOYMENT_TARGET} in
18557              10.[012])
18558                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18559                ;;
18560              10.*)
18561                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18562                ;;
18563            esac
18564          fi
18565          ;;
18566         esac
18567       archive_cmds_need_lc_CXX=no
18568       hardcode_direct_CXX=no
18569       hardcode_automatic_CXX=yes
18570       hardcode_shlibpath_var_CXX=unsupported
18571       whole_archive_flag_spec_CXX=''
18572       link_all_deplibs_CXX=yes
18573
18574     if test "$GXX" = yes ; then
18575       lt_int_apple_cc_single_mod=no
18576       output_verbose_link_cmd='echo'
18577       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18578        lt_int_apple_cc_single_mod=yes
18579       fi
18580       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18581        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18582       else
18583           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'
18584         fi
18585         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18586         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18587           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18588             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}'
18589           else
18590             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}'
18591           fi
18592             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}'
18593       else
18594       case $cc_basename in
18595         xlc*)
18596          output_verbose_link_cmd='echo'
18597           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'
18598           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18599           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18600           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}'
18601           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}'
18602           ;;
18603        *)
18604          ld_shlibs_CXX=no
18605           ;;
18606       esac
18607       fi
18608         ;;
18609
18610   dgux*)
18611     case $cc_basename in
18612       ec++*)
18613         # FIXME: insert proper C++ library support
18614         ld_shlibs_CXX=no
18615         ;;
18616       ghcx*)
18617         # Green Hills C++ Compiler
18618         # FIXME: insert proper C++ library support
18619         ld_shlibs_CXX=no
18620         ;;
18621       *)
18622         # FIXME: insert proper C++ library support
18623         ld_shlibs_CXX=no
18624         ;;
18625     esac
18626     ;;
18627   freebsd[12]*)
18628     # C++ shared libraries reported to be fairly broken before switch to ELF
18629     ld_shlibs_CXX=no
18630     ;;
18631   freebsd-elf*)
18632     archive_cmds_need_lc_CXX=no
18633     ;;
18634   freebsd* | kfreebsd*-gnu | dragonfly*)
18635     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18636     # conventions
18637     ld_shlibs_CXX=yes
18638     ;;
18639   gnu*)
18640     ;;
18641   hpux9*)
18642     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18643     hardcode_libdir_separator_CXX=:
18644     export_dynamic_flag_spec_CXX='${wl}-E'
18645     hardcode_direct_CXX=yes
18646     hardcode_minus_L_CXX=yes # Not in the search PATH,
18647                                 # but as the default
18648                                 # location of the library.
18649
18650     case $cc_basename in
18651     CC*)
18652       # FIXME: insert proper C++ library support
18653       ld_shlibs_CXX=no
18654       ;;
18655     aCC*)
18656       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'
18657       # Commands to make compiler produce verbose output that lists
18658       # what "hidden" libraries, object files and flags are used when
18659       # linking a shared library.
18660       #
18661       # There doesn't appear to be a way to prevent this compiler from
18662       # explicitly linking system object files so we need to strip them
18663       # from the output so that they don't get included in the library
18664       # dependencies.
18665       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'
18666       ;;
18667     *)
18668       if test "$GXX" = yes; then
18669         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'
18670       else
18671         # FIXME: insert proper C++ library support
18672         ld_shlibs_CXX=no
18673       fi
18674       ;;
18675     esac
18676     ;;
18677   hpux10*|hpux11*)
18678     if test $with_gnu_ld = no; then
18679       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18680       hardcode_libdir_separator_CXX=:
18681
18682       case $host_cpu in
18683       hppa*64*|ia64*)
18684         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18685         ;;
18686       *)
18687         export_dynamic_flag_spec_CXX='${wl}-E'
18688         ;;
18689       esac
18690     fi
18691     case $host_cpu in
18692     hppa*64*|ia64*)
18693       hardcode_direct_CXX=no
18694       hardcode_shlibpath_var_CXX=no
18695       ;;
18696     *)
18697       hardcode_direct_CXX=yes
18698       hardcode_minus_L_CXX=yes # Not in the search PATH,
18699                                               # but as the default
18700                                               # location of the library.
18701       ;;
18702     esac
18703
18704     case $cc_basename in
18705       CC*)
18706         # FIXME: insert proper C++ library support
18707         ld_shlibs_CXX=no
18708         ;;
18709       aCC*)
18710         case $host_cpu in
18711         hppa*64*)
18712           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18713           ;;
18714         ia64*)
18715           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18716           ;;
18717         *)
18718           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18719           ;;
18720         esac
18721         # Commands to make compiler produce verbose output that lists
18722         # what "hidden" libraries, object files and flags are used when
18723         # linking a shared library.
18724         #
18725         # There doesn't appear to be a way to prevent this compiler from
18726         # explicitly linking system object files so we need to strip them
18727         # from the output so that they don't get included in the library
18728         # dependencies.
18729         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'
18730         ;;
18731       *)
18732         if test "$GXX" = yes; then
18733           if test $with_gnu_ld = no; then
18734             case $host_cpu in
18735             hppa*64*)
18736               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18737               ;;
18738             ia64*)
18739               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18740               ;;
18741             *)
18742               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'
18743               ;;
18744             esac
18745           fi
18746         else
18747           # FIXME: insert proper C++ library support
18748           ld_shlibs_CXX=no
18749         fi
18750         ;;
18751     esac
18752     ;;
18753   interix3*)
18754     hardcode_direct_CXX=no
18755     hardcode_shlibpath_var_CXX=no
18756     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18757     export_dynamic_flag_spec_CXX='${wl}-E'
18758     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18759     # Instead, shared libraries are loaded at an image base (0x10000000 by
18760     # default) and relocated if they conflict, which is a slow very memory
18761     # consuming and fragmenting process.  To avoid this, we pick a random,
18762     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18763     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18764     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'
18765     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'
18766     ;;
18767   irix5* | irix6*)
18768     case $cc_basename in
18769       CC*)
18770         # SGI C++
18771         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'
18772
18773         # Archives containing C++ object files must be created using
18774         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18775         # necessary to make sure instantiated templates are included
18776         # in the archive.
18777         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18778         ;;
18779       *)
18780         if test "$GXX" = yes; then
18781           if test "$with_gnu_ld" = no; then
18782             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'
18783           else
18784             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'
18785           fi
18786         fi
18787         link_all_deplibs_CXX=yes
18788         ;;
18789     esac
18790     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18791     hardcode_libdir_separator_CXX=:
18792     ;;
18793   linux*)
18794     case $cc_basename in
18795       KCC*)
18796         # Kuck and Associates, Inc. (KAI) C++ Compiler
18797
18798         # KCC will only create a shared library if the output file
18799         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18800         # to its proper name (with version) after linking.
18801         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'
18802         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'
18803         # Commands to make compiler produce verbose output that lists
18804         # what "hidden" libraries, object files and flags are used when
18805         # linking a shared library.
18806         #
18807         # There doesn't appear to be a way to prevent this compiler from
18808         # explicitly linking system object files so we need to strip them
18809         # from the output so that they don't get included in the library
18810         # dependencies.
18811         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'
18812
18813         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18815
18816         # Archives containing C++ object files must be created using
18817         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18818         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18819         ;;
18820       icpc*)
18821         # Intel C++
18822         with_gnu_ld=yes
18823         # version 8.0 and above of icpc choke on multiply defined symbols
18824         # if we add $predep_objects and $postdep_objects, however 7.1 and
18825         # earlier do not add the objects themselves.
18826         case `$CC -V 2>&1` in
18827         *"Version 7."*)
18828           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18829           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'
18830           ;;
18831         *)  # Version 8.0 or newer
18832           tmp_idyn=
18833           case $host_cpu in
18834             ia64*) tmp_idyn=' -i_dynamic';;
18835           esac
18836           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837           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'
18838           ;;
18839         esac
18840         archive_cmds_need_lc_CXX=no
18841         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18842         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18843         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18844         ;;
18845       pgCC*)
18846         # Portland Group C++ compiler
18847         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18848         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'
18849
18850         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18851         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18852         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'
18853         ;;
18854       cxx*)
18855         # Compaq C++
18856         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18857         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'
18858
18859         runpath_var=LD_RUN_PATH
18860         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18861         hardcode_libdir_separator_CXX=:
18862
18863         # Commands to make compiler produce verbose output that lists
18864         # what "hidden" libraries, object files and flags are used when
18865         # linking a shared library.
18866         #
18867         # There doesn't appear to be a way to prevent this compiler from
18868         # explicitly linking system object files so we need to strip them
18869         # from the output so that they don't get included in the library
18870         # dependencies.
18871         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'
18872         ;;
18873     esac
18874     ;;
18875   lynxos*)
18876     # FIXME: insert proper C++ library support
18877     ld_shlibs_CXX=no
18878     ;;
18879   m88k*)
18880     # FIXME: insert proper C++ library support
18881     ld_shlibs_CXX=no
18882     ;;
18883   mvs*)
18884     case $cc_basename in
18885       cxx*)
18886         # FIXME: insert proper C++ library support
18887         ld_shlibs_CXX=no
18888         ;;
18889       *)
18890         # FIXME: insert proper C++ library support
18891         ld_shlibs_CXX=no
18892         ;;
18893     esac
18894     ;;
18895   netbsd*)
18896     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18897       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18898       wlarc=
18899       hardcode_libdir_flag_spec_CXX='-R$libdir'
18900       hardcode_direct_CXX=yes
18901       hardcode_shlibpath_var_CXX=no
18902     fi
18903     # Workaround some broken pre-1.5 toolchains
18904     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18905     ;;
18906   openbsd2*)
18907     # C++ shared libraries are fairly broken
18908     ld_shlibs_CXX=no
18909     ;;
18910   openbsd*)
18911     hardcode_direct_CXX=yes
18912     hardcode_shlibpath_var_CXX=no
18913     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18914     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18915     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18916       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18917       export_dynamic_flag_spec_CXX='${wl}-E'
18918       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18919     fi
18920     output_verbose_link_cmd='echo'
18921     ;;
18922   osf3*)
18923     case $cc_basename in
18924       KCC*)
18925         # Kuck and Associates, Inc. (KAI) C++ Compiler
18926
18927         # KCC will only create a shared library if the output file
18928         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18929         # to its proper name (with version) after linking.
18930         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'
18931
18932         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18933         hardcode_libdir_separator_CXX=:
18934
18935         # Archives containing C++ object files must be created using
18936         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18937         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18938
18939         ;;
18940       RCC*)
18941         # Rational C++ 2.4.1
18942         # FIXME: insert proper C++ library support
18943         ld_shlibs_CXX=no
18944         ;;
18945       cxx*)
18946         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18947         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'
18948
18949         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18950         hardcode_libdir_separator_CXX=:
18951
18952         # Commands to make compiler produce verbose output that lists
18953         # what "hidden" libraries, object files and flags are used when
18954         # linking a shared library.
18955         #
18956         # There doesn't appear to be a way to prevent this compiler from
18957         # explicitly linking system object files so we need to strip them
18958         # from the output so that they don't get included in the library
18959         # dependencies.
18960         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'
18961         ;;
18962       *)
18963         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18964           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18965           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'
18966
18967           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18968           hardcode_libdir_separator_CXX=:
18969
18970           # Commands to make compiler produce verbose output that lists
18971           # what "hidden" libraries, object files and flags are used when
18972           # linking a shared library.
18973           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18974
18975         else
18976           # FIXME: insert proper C++ library support
18977           ld_shlibs_CXX=no
18978         fi
18979         ;;
18980     esac
18981     ;;
18982   osf4* | osf5*)
18983     case $cc_basename in
18984       KCC*)
18985         # Kuck and Associates, Inc. (KAI) C++ Compiler
18986
18987         # KCC will only create a shared library if the output file
18988         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18989         # to its proper name (with version) after linking.
18990         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'
18991
18992         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18993         hardcode_libdir_separator_CXX=:
18994
18995         # Archives containing C++ object files must be created using
18996         # the KAI C++ compiler.
18997         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18998         ;;
18999       RCC*)
19000         # Rational C++ 2.4.1
19001         # FIXME: insert proper C++ library support
19002         ld_shlibs_CXX=no
19003         ;;
19004       cxx*)
19005         allow_undefined_flag_CXX=' -expect_unresolved \*'
19006         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'
19007         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19008           echo "-hidden">> $lib.exp~
19009           $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~
19010           $rm $lib.exp'
19011
19012         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19013         hardcode_libdir_separator_CXX=:
19014
19015         # Commands to make compiler produce verbose output that lists
19016         # what "hidden" libraries, object files and flags are used when
19017         # linking a shared library.
19018         #
19019         # There doesn't appear to be a way to prevent this compiler from
19020         # explicitly linking system object files so we need to strip them
19021         # from the output so that they don't get included in the library
19022         # dependencies.
19023         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'
19024         ;;
19025       *)
19026         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19027           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19028          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'
19029
19030           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19031           hardcode_libdir_separator_CXX=:
19032
19033           # Commands to make compiler produce verbose output that lists
19034           # what "hidden" libraries, object files and flags are used when
19035           # linking a shared library.
19036           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19037
19038         else
19039           # FIXME: insert proper C++ library support
19040           ld_shlibs_CXX=no
19041         fi
19042         ;;
19043     esac
19044     ;;
19045   psos*)
19046     # FIXME: insert proper C++ library support
19047     ld_shlibs_CXX=no
19048     ;;
19049   sunos4*)
19050     case $cc_basename in
19051       CC*)
19052         # Sun C++ 4.x
19053         # FIXME: insert proper C++ library support
19054         ld_shlibs_CXX=no
19055         ;;
19056       lcc*)
19057         # Lucid
19058         # FIXME: insert proper C++ library support
19059         ld_shlibs_CXX=no
19060         ;;
19061       *)
19062         # FIXME: insert proper C++ library support
19063         ld_shlibs_CXX=no
19064         ;;
19065     esac
19066     ;;
19067   solaris*)
19068     case $cc_basename in
19069       CC*)
19070         # Sun C++ 4.2, 5.x and Centerline C++
19071         archive_cmds_need_lc_CXX=yes
19072         no_undefined_flag_CXX=' -zdefs'
19073         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19075         $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'
19076
19077         hardcode_libdir_flag_spec_CXX='-R$libdir'
19078         hardcode_shlibpath_var_CXX=no
19079         case $host_os in
19080           solaris2.[0-5] | solaris2.[0-5].*) ;;
19081           *)
19082             # The C++ compiler is used as linker so we must use $wl
19083             # flag to pass the commands to the underlying system
19084             # linker. We must also pass each convience library through
19085             # to the system linker between allextract/defaultextract.
19086             # The C++ compiler will combine linker options so we
19087             # cannot just pass the convience library names through
19088             # without $wl.
19089             # Supported since Solaris 2.6 (maybe 2.5.1?)
19090             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'
19091             ;;
19092         esac
19093         link_all_deplibs_CXX=yes
19094
19095         output_verbose_link_cmd='echo'
19096
19097         # Archives containing C++ object files must be created using
19098         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19099         # necessary to make sure instantiated templates are included
19100         # in the archive.
19101         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19102         ;;
19103       gcx*)
19104         # Green Hills C++ Compiler
19105         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19106
19107         # The C++ compiler must be used to create the archive.
19108         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19109         ;;
19110       *)
19111         # GNU C++ compiler with Solaris linker
19112         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19113           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19114           if $CC --version | grep -v '^2\.7' > /dev/null; then
19115             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19116             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19117                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19118
19119             # Commands to make compiler produce verbose output that lists
19120             # what "hidden" libraries, object files and flags are used when
19121             # linking a shared library.
19122             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19123           else
19124             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19125             # platform.
19126             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19127             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19128                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19129
19130             # Commands to make compiler produce verbose output that lists
19131             # what "hidden" libraries, object files and flags are used when
19132             # linking a shared library.
19133             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19134           fi
19135
19136           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19137         fi
19138         ;;
19139     esac
19140     ;;
19141   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19142     no_undefined_flag_CXX='${wl}-z,text'
19143     archive_cmds_need_lc_CXX=no
19144     hardcode_shlibpath_var_CXX=no
19145     runpath_var='LD_RUN_PATH'
19146
19147     case $cc_basename in
19148       CC*)
19149         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19151         ;;
19152       *)
19153         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19155         ;;
19156     esac
19157     ;;
19158   sysv5* | sco3.2v5* | sco5v6*)
19159     # Note: We can NOT use -z defs as we might desire, because we do not
19160     # link with -lc, and that would cause any symbols used from libc to
19161     # always be unresolved, which means just about no library would
19162     # ever link correctly.  If we're not using GNU ld we use -z text
19163     # though, which does catch some bad symbols but isn't as heavy-handed
19164     # as -z defs.
19165     # For security reasons, it is highly recommended that you always
19166     # use absolute paths for naming shared libraries, and exclude the
19167     # DT_RUNPATH tag from executables and libraries.  But doing so
19168     # requires that you compile everything twice, which is a pain.
19169     # So that behaviour is only enabled if SCOABSPATH is set to a
19170     # non-empty value in the environment.  Most likely only useful for
19171     # creating official distributions of packages.
19172     # This is a hack until libtool officially supports absolute path
19173     # names for shared libraries.
19174     no_undefined_flag_CXX='${wl}-z,text'
19175     allow_undefined_flag_CXX='${wl}-z,nodefs'
19176     archive_cmds_need_lc_CXX=no
19177     hardcode_shlibpath_var_CXX=no
19178     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19179     hardcode_libdir_separator_CXX=':'
19180     link_all_deplibs_CXX=yes
19181     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19182     runpath_var='LD_RUN_PATH'
19183
19184     case $cc_basename in
19185       CC*)
19186         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19187         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19188         ;;
19189       *)
19190         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19191         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19192         ;;
19193     esac
19194     ;;
19195   tandem*)
19196     case $cc_basename in
19197       NCC*)
19198         # NonStop-UX NCC 3.20
19199         # FIXME: insert proper C++ library support
19200         ld_shlibs_CXX=no
19201         ;;
19202       *)
19203         # FIXME: insert proper C++ library support
19204         ld_shlibs_CXX=no
19205         ;;
19206     esac
19207     ;;
19208   vxworks*)
19209     # FIXME: insert proper C++ library support
19210     ld_shlibs_CXX=no
19211     ;;
19212   *)
19213     # FIXME: insert proper C++ library support
19214     ld_shlibs_CXX=no
19215     ;;
19216 esac
19217 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19218 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19219 test "$ld_shlibs_CXX" = no && can_build_shared=no
19220
19221 GCC_CXX="$GXX"
19222 LD_CXX="$LD"
19223
19224
19225 cat > conftest.$ac_ext <<EOF
19226 class Foo
19227 {
19228 public:
19229   Foo (void) { a = 0; }
19230 private:
19231   int a;
19232 };
19233 EOF
19234
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236   (eval $ac_compile) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; then
19240   # Parse the compiler output and extract the necessary
19241   # objects, libraries and library flags.
19242
19243   # Sentinel used to keep track of whether or not we are before
19244   # the conftest object file.
19245   pre_test_object_deps_done=no
19246
19247   # The `*' in the case matches for architectures that use `case' in
19248   # $output_verbose_cmd can trigger glob expansion during the loop
19249   # eval without this substitution.
19250   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19251
19252   for p in `eval $output_verbose_link_cmd`; do
19253     case $p in
19254
19255     -L* | -R* | -l*)
19256        # Some compilers place space between "-{L,R}" and the path.
19257        # Remove the space.
19258        if test $p = "-L" \
19259           || test $p = "-R"; then
19260          prev=$p
19261          continue
19262        else
19263          prev=
19264        fi
19265
19266        if test "$pre_test_object_deps_done" = no; then
19267          case $p in
19268          -L* | -R*)
19269            # Internal compiler library paths should come after those
19270            # provided the user.  The postdeps already come after the
19271            # user supplied libs so there is no need to process them.
19272            if test -z "$compiler_lib_search_path_CXX"; then
19273              compiler_lib_search_path_CXX="${prev}${p}"
19274            else
19275              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19276            fi
19277            ;;
19278          # The "-l" case would never come before the object being
19279          # linked, so don't bother handling this case.
19280          esac
19281        else
19282          if test -z "$postdeps_CXX"; then
19283            postdeps_CXX="${prev}${p}"
19284          else
19285            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19286          fi
19287        fi
19288        ;;
19289
19290     *.$objext)
19291        # This assumes that the test object file only shows up
19292        # once in the compiler output.
19293        if test "$p" = "conftest.$objext"; then
19294          pre_test_object_deps_done=yes
19295          continue
19296        fi
19297
19298        if test "$pre_test_object_deps_done" = no; then
19299          if test -z "$predep_objects_CXX"; then
19300            predep_objects_CXX="$p"
19301          else
19302            predep_objects_CXX="$predep_objects_CXX $p"
19303          fi
19304        else
19305          if test -z "$postdep_objects_CXX"; then
19306            postdep_objects_CXX="$p"
19307          else
19308            postdep_objects_CXX="$postdep_objects_CXX $p"
19309          fi
19310        fi
19311        ;;
19312
19313     *) ;; # Ignore the rest.
19314
19315     esac
19316   done
19317
19318   # Clean up.
19319   rm -f a.out a.exe
19320 else
19321   echo "libtool.m4: error: problem compiling CXX test program"
19322 fi
19323
19324 $rm -f confest.$objext
19325
19326 # PORTME: override above test on systems where it is broken
19327 case $host_os in
19328 interix3*)
19329   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19330   # hack all around it, let's just trust "g++" to DTRT.
19331   predep_objects_CXX=
19332   postdep_objects_CXX=
19333   postdeps_CXX=
19334   ;;
19335
19336 solaris*)
19337   case $cc_basename in
19338   CC*)
19339     # Adding this requires a known-good setup of shared libraries for
19340     # Sun compiler versions before 5.6, else PIC objects from an old
19341     # archive will be linked into the output, leading to subtle bugs.
19342     postdeps_CXX='-lCstd -lCrun'
19343     ;;
19344   esac
19345   ;;
19346 esac
19347
19348
19349 case " $postdeps_CXX " in
19350 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19351 esac
19352
19353 lt_prog_compiler_wl_CXX=
19354 lt_prog_compiler_pic_CXX=
19355 lt_prog_compiler_static_CXX=
19356
19357 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19358 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19359
19360   # C++ specific cases for pic, static, wl, etc.
19361   if test "$GXX" = yes; then
19362     lt_prog_compiler_wl_CXX='-Wl,'
19363     lt_prog_compiler_static_CXX='-static'
19364
19365     case $host_os in
19366     aix*)
19367       # All AIX code is PIC.
19368       if test "$host_cpu" = ia64; then
19369         # AIX 5 now supports IA64 processor
19370         lt_prog_compiler_static_CXX='-Bstatic'
19371       fi
19372       ;;
19373     amigaos*)
19374       # FIXME: we need at least 68020 code to build shared libraries, but
19375       # adding the `-m68020' flag to GCC prevents building anything better,
19376       # like `-m68040'.
19377       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19378       ;;
19379     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19380       # PIC is the default for these OSes.
19381       ;;
19382     mingw* | os2* | pw32*)
19383       # This hack is so that the source file can tell whether it is being
19384       # built for inclusion in a dll (and should export symbols for example).
19385       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19386       ;;
19387     darwin* | rhapsody*)
19388       # PIC is the default on this platform
19389       # Common symbols not allowed in MH_DYLIB files
19390       lt_prog_compiler_pic_CXX='-fno-common'
19391       ;;
19392     *djgpp*)
19393       # DJGPP does not support shared libraries at all
19394       lt_prog_compiler_pic_CXX=
19395       ;;
19396     interix3*)
19397       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19398       # Instead, we relocate shared libraries at runtime.
19399       ;;
19400     sysv4*MP*)
19401       if test -d /usr/nec; then
19402         lt_prog_compiler_pic_CXX=-Kconform_pic
19403       fi
19404       ;;
19405     hpux*)
19406       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19407       # not for PA HP-UX.
19408       case $host_cpu in
19409       hppa*64*|ia64*)
19410         ;;
19411       *)
19412         lt_prog_compiler_pic_CXX='-fPIC'
19413         ;;
19414       esac
19415       ;;
19416     *)
19417       lt_prog_compiler_pic_CXX='-fPIC'
19418       ;;
19419     esac
19420   else
19421     case $host_os in
19422       aix4* | aix5*)
19423         # All AIX code is PIC.
19424         if test "$host_cpu" = ia64; then
19425           # AIX 5 now supports IA64 processor
19426           lt_prog_compiler_static_CXX='-Bstatic'
19427         else
19428           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19429         fi
19430         ;;
19431       chorus*)
19432         case $cc_basename in
19433         cxch68*)
19434           # Green Hills C++ Compiler
19435           # _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"
19436           ;;
19437         esac
19438         ;;
19439        darwin*)
19440          # PIC is the default on this platform
19441          # Common symbols not allowed in MH_DYLIB files
19442          case $cc_basename in
19443            xlc*)
19444            lt_prog_compiler_pic_CXX='-qnocommon'
19445            lt_prog_compiler_wl_CXX='-Wl,'
19446            ;;
19447          esac
19448        ;;
19449       dgux*)
19450         case $cc_basename in
19451           ec++*)
19452             lt_prog_compiler_pic_CXX='-KPIC'
19453             ;;
19454           ghcx*)
19455             # Green Hills C++ Compiler
19456             lt_prog_compiler_pic_CXX='-pic'
19457             ;;
19458           *)
19459             ;;
19460         esac
19461         ;;
19462       freebsd* | kfreebsd*-gnu | dragonfly*)
19463         # FreeBSD uses GNU C++
19464         ;;
19465       hpux9* | hpux10* | hpux11*)
19466         case $cc_basename in
19467           CC*)
19468             lt_prog_compiler_wl_CXX='-Wl,'
19469             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19470             if test "$host_cpu" != ia64; then
19471               lt_prog_compiler_pic_CXX='+Z'
19472             fi
19473             ;;
19474           aCC*)
19475             lt_prog_compiler_wl_CXX='-Wl,'
19476             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19477             case $host_cpu in
19478             hppa*64*|ia64*)
19479               # +Z the default
19480               ;;
19481             *)
19482               lt_prog_compiler_pic_CXX='+Z'
19483               ;;
19484             esac
19485             ;;
19486           *)
19487             ;;
19488         esac
19489         ;;
19490       interix*)
19491         # This is c89, which is MS Visual C++ (no shared libs)
19492         # Anyone wants to do a port?
19493         ;;
19494       irix5* | irix6* | nonstopux*)
19495         case $cc_basename in
19496           CC*)
19497             lt_prog_compiler_wl_CXX='-Wl,'
19498             lt_prog_compiler_static_CXX='-non_shared'
19499             # CC pic flag -KPIC is the default.
19500             ;;
19501           *)
19502             ;;
19503         esac
19504         ;;
19505       linux*)
19506         case $cc_basename in
19507           KCC*)
19508             # KAI C++ Compiler
19509             lt_prog_compiler_wl_CXX='--backend -Wl,'
19510             lt_prog_compiler_pic_CXX='-fPIC'
19511             ;;
19512           icpc* | ecpc*)
19513             # Intel C++
19514             lt_prog_compiler_wl_CXX='-Wl,'
19515             lt_prog_compiler_pic_CXX='-KPIC'
19516             lt_prog_compiler_static_CXX='-static'
19517             ;;
19518           pgCC*)
19519             # Portland Group C++ compiler.
19520             lt_prog_compiler_wl_CXX='-Wl,'
19521             lt_prog_compiler_pic_CXX='-fpic'
19522             lt_prog_compiler_static_CXX='-Bstatic'
19523             ;;
19524           cxx*)
19525             # Compaq C++
19526             # Make sure the PIC flag is empty.  It appears that all Alpha
19527             # Linux and Compaq Tru64 Unix objects are PIC.
19528             lt_prog_compiler_pic_CXX=
19529             lt_prog_compiler_static_CXX='-non_shared'
19530             ;;
19531           *)
19532             ;;
19533         esac
19534         ;;
19535       lynxos*)
19536         ;;
19537       m88k*)
19538         ;;
19539       mvs*)
19540         case $cc_basename in
19541           cxx*)
19542             lt_prog_compiler_pic_CXX='-W c,exportall'
19543             ;;
19544           *)
19545             ;;
19546         esac
19547         ;;
19548       netbsd*)
19549         ;;
19550       osf3* | osf4* | osf5*)
19551         case $cc_basename in
19552           KCC*)
19553             lt_prog_compiler_wl_CXX='--backend -Wl,'
19554             ;;
19555           RCC*)
19556             # Rational C++ 2.4.1
19557             lt_prog_compiler_pic_CXX='-pic'
19558             ;;
19559           cxx*)
19560             # Digital/Compaq C++
19561             lt_prog_compiler_wl_CXX='-Wl,'
19562             # Make sure the PIC flag is empty.  It appears that all Alpha
19563             # Linux and Compaq Tru64 Unix objects are PIC.
19564             lt_prog_compiler_pic_CXX=
19565             lt_prog_compiler_static_CXX='-non_shared'
19566             ;;
19567           *)
19568             ;;
19569         esac
19570         ;;
19571       psos*)
19572         ;;
19573       solaris*)
19574         case $cc_basename in
19575           CC*)
19576             # Sun C++ 4.2, 5.x and Centerline C++
19577             lt_prog_compiler_pic_CXX='-KPIC'
19578             lt_prog_compiler_static_CXX='-Bstatic'
19579             lt_prog_compiler_wl_CXX='-Qoption ld '
19580             ;;
19581           gcx*)
19582             # Green Hills C++ Compiler
19583             lt_prog_compiler_pic_CXX='-PIC'
19584             ;;
19585           *)
19586             ;;
19587         esac
19588         ;;
19589       sunos4*)
19590         case $cc_basename in
19591           CC*)
19592             # Sun C++ 4.x
19593             lt_prog_compiler_pic_CXX='-pic'
19594             lt_prog_compiler_static_CXX='-Bstatic'
19595             ;;
19596           lcc*)
19597             # Lucid
19598             lt_prog_compiler_pic_CXX='-pic'
19599             ;;
19600           *)
19601             ;;
19602         esac
19603         ;;
19604       tandem*)
19605         case $cc_basename in
19606           NCC*)
19607             # NonStop-UX NCC 3.20
19608             lt_prog_compiler_pic_CXX='-KPIC'
19609             ;;
19610           *)
19611             ;;
19612         esac
19613         ;;
19614       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19615         case $cc_basename in
19616           CC*)
19617             lt_prog_compiler_wl_CXX='-Wl,'
19618             lt_prog_compiler_pic_CXX='-KPIC'
19619             lt_prog_compiler_static_CXX='-Bstatic'
19620             ;;
19621         esac
19622         ;;
19623       vxworks*)
19624         ;;
19625       *)
19626         lt_prog_compiler_can_build_shared_CXX=no
19627         ;;
19628     esac
19629   fi
19630
19631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19632 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19633
19634 #
19635 # Check to make sure the PIC flag actually works.
19636 #
19637 if test -n "$lt_prog_compiler_pic_CXX"; then
19638
19639 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19640 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19641 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19642   echo $ECHO_N "(cached) $ECHO_C" >&6
19643 else
19644   lt_prog_compiler_pic_works_CXX=no
19645   ac_outfile=conftest.$ac_objext
19646    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19647    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19648    # Insert the option either (1) after the last *FLAGS variable, or
19649    # (2) before a word containing "conftest.", or (3) at the end.
19650    # Note that $ac_compile itself does not contain backslashes and begins
19651    # with a dollar sign (not a hyphen), so the echo should work correctly.
19652    # The option is referenced via a variable to avoid confusing sed.
19653    lt_compile=`echo "$ac_compile" | $SED \
19654    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19656    -e 's:$: $lt_compiler_flag:'`
19657    (eval echo "\"\$as_me:19657: $lt_compile\"" >&5)
19658    (eval "$lt_compile" 2>conftest.err)
19659    ac_status=$?
19660    cat conftest.err >&5
19661    echo "$as_me:19661: \$? = $ac_status" >&5
19662    if (exit $ac_status) && test -s "$ac_outfile"; then
19663      # The compiler can only warn and ignore the option if not recognized
19664      # So say no if there are warnings other than the usual output.
19665      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19666      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19667      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19668        lt_prog_compiler_pic_works_CXX=yes
19669      fi
19670    fi
19671    $rm conftest*
19672
19673 fi
19674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19675 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19676
19677 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19678     case $lt_prog_compiler_pic_CXX in
19679      "" | " "*) ;;
19680      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19681      esac
19682 else
19683     lt_prog_compiler_pic_CXX=
19684      lt_prog_compiler_can_build_shared_CXX=no
19685 fi
19686
19687 fi
19688 case $host_os in
19689   # For platforms which do not support PIC, -DPIC is meaningless:
19690   *djgpp*)
19691     lt_prog_compiler_pic_CXX=
19692     ;;
19693   *)
19694     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19695     ;;
19696 esac
19697
19698 #
19699 # Check to make sure the static flag actually works.
19700 #
19701 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19702 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19703 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19704 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   lt_prog_compiler_static_works_CXX=no
19708    save_LDFLAGS="$LDFLAGS"
19709    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19710    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19711    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19712      # The linker can only warn and ignore the option if not recognized
19713      # So say no if there are warnings
19714      if test -s conftest.err; then
19715        # Append any errors to the config.log.
19716        cat conftest.err 1>&5
19717        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19718        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19719        if diff conftest.exp conftest.er2 >/dev/null; then
19720          lt_prog_compiler_static_works_CXX=yes
19721        fi
19722      else
19723        lt_prog_compiler_static_works_CXX=yes
19724      fi
19725    fi
19726    $rm conftest*
19727    LDFLAGS="$save_LDFLAGS"
19728
19729 fi
19730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19731 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19732
19733 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19734     :
19735 else
19736     lt_prog_compiler_static_CXX=
19737 fi
19738
19739
19740 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19741 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19742 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745   lt_cv_prog_compiler_c_o_CXX=no
19746    $rm -r conftest 2>/dev/null
19747    mkdir conftest
19748    cd conftest
19749    mkdir out
19750    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19751
19752    lt_compiler_flag="-o out/conftest2.$ac_objext"
19753    # Insert the option either (1) after the last *FLAGS variable, or
19754    # (2) before a word containing "conftest.", or (3) at the end.
19755    # Note that $ac_compile itself does not contain backslashes and begins
19756    # with a dollar sign (not a hyphen), so the echo should work correctly.
19757    lt_compile=`echo "$ac_compile" | $SED \
19758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19760    -e 's:$: $lt_compiler_flag:'`
19761    (eval echo "\"\$as_me:19761: $lt_compile\"" >&5)
19762    (eval "$lt_compile" 2>out/conftest.err)
19763    ac_status=$?
19764    cat out/conftest.err >&5
19765    echo "$as_me:19765: \$? = $ac_status" >&5
19766    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19767    then
19768      # The compiler can only warn and ignore the option if not recognized
19769      # So say no if there are warnings
19770      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19771      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19772      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19773        lt_cv_prog_compiler_c_o_CXX=yes
19774      fi
19775    fi
19776    chmod u+w . 2>&5
19777    $rm conftest*
19778    # SGI C++ compiler will create directory out/ii_files/ for
19779    # template instantiation
19780    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19781    $rm out/* && rmdir out
19782    cd ..
19783    rmdir conftest
19784    $rm conftest*
19785
19786 fi
19787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19788 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19789
19790
19791 hard_links="nottested"
19792 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19793   # do not overwrite the value of need_locks provided by the user
19794   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19795 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19796   hard_links=yes
19797   $rm conftest*
19798   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19799   touch conftest.a
19800   ln conftest.a conftest.b 2>&5 || hard_links=no
19801   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19802   { echo "$as_me:$LINENO: result: $hard_links" >&5
19803 echo "${ECHO_T}$hard_links" >&6; }
19804   if test "$hard_links" = no; then
19805     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19806 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19807     need_locks=warn
19808   fi
19809 else
19810   need_locks=no
19811 fi
19812
19813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19815
19816   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19817   case $host_os in
19818   aix4* | aix5*)
19819     # If we're using GNU nm, then we don't want the "-C" option.
19820     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19821     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19822       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'
19823     else
19824       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'
19825     fi
19826     ;;
19827   pw32*)
19828     export_symbols_cmds_CXX="$ltdll_cmds"
19829   ;;
19830   cygwin* | mingw*)
19831     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'
19832   ;;
19833   *)
19834     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19835   ;;
19836   esac
19837
19838 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19839 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19840 test "$ld_shlibs_CXX" = no && can_build_shared=no
19841
19842 #
19843 # Do we need to explicitly link libc?
19844 #
19845 case "x$archive_cmds_need_lc_CXX" in
19846 x|xyes)
19847   # Assume -lc should be added
19848   archive_cmds_need_lc_CXX=yes
19849
19850   if test "$enable_shared" = yes && test "$GCC" = yes; then
19851     case $archive_cmds_CXX in
19852     *'~'*)
19853       # FIXME: we may have to deal with multi-command sequences.
19854       ;;
19855     '$CC '*)
19856       # Test whether the compiler implicitly links with -lc since on some
19857       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19858       # to ld, don't add -lc before -lgcc.
19859       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19860 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19861       $rm conftest*
19862       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19863
19864       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865   (eval $ac_compile) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } 2>conftest.err; then
19869         soname=conftest
19870         lib=conftest
19871         libobjs=conftest.$ac_objext
19872         deplibs=
19873         wl=$lt_prog_compiler_wl_CXX
19874         pic_flag=$lt_prog_compiler_pic_CXX
19875         compiler_flags=-v
19876         linker_flags=-v
19877         verstring=
19878         output_objdir=.
19879         libname=conftest
19880         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19881         allow_undefined_flag_CXX=
19882         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19883   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }
19887         then
19888           archive_cmds_need_lc_CXX=no
19889         else
19890           archive_cmds_need_lc_CXX=yes
19891         fi
19892         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19893       else
19894         cat conftest.err 1>&5
19895       fi
19896       $rm conftest*
19897       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19898 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19899       ;;
19900     esac
19901   fi
19902   ;;
19903 esac
19904
19905 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19906 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19907 library_names_spec=
19908 libname_spec='lib$name'
19909 soname_spec=
19910 shrext_cmds=".so"
19911 postinstall_cmds=
19912 postuninstall_cmds=
19913 finish_cmds=
19914 finish_eval=
19915 shlibpath_var=
19916 shlibpath_overrides_runpath=unknown
19917 version_type=none
19918 dynamic_linker="$host_os ld.so"
19919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19920 if test "$GCC" = yes; then
19921   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19922   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19923     # if the path contains ";" then we assume it to be the separator
19924     # otherwise default to the standard path separator (i.e. ":") - it is
19925     # assumed that no part of a normal pathname contains ";" but that should
19926     # okay in the real world where ";" in dirpaths is itself problematic.
19927     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19928   else
19929     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19930   fi
19931 else
19932   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19933 fi
19934 need_lib_prefix=unknown
19935 hardcode_into_libs=no
19936
19937 # when you set need_version to no, make sure it does not cause -set_version
19938 # flags to be left without arguments
19939 need_version=unknown
19940
19941 case $host_os in
19942 aix3*)
19943   version_type=linux
19944   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19945   shlibpath_var=LIBPATH
19946
19947   # AIX 3 has no versioning support, so we append a major version to the name.
19948   soname_spec='${libname}${release}${shared_ext}$major'
19949   ;;
19950
19951 aix4* | aix5*)
19952   version_type=linux
19953   need_lib_prefix=no
19954   need_version=no
19955   hardcode_into_libs=yes
19956   if test "$host_cpu" = ia64; then
19957     # AIX 5 supports IA64
19958     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19959     shlibpath_var=LD_LIBRARY_PATH
19960   else
19961     # With GCC up to 2.95.x, collect2 would create an import file
19962     # for dependence libraries.  The import file would start with
19963     # the line `#! .'.  This would cause the generated library to
19964     # depend on `.', always an invalid library.  This was fixed in
19965     # development snapshots of GCC prior to 3.0.
19966     case $host_os in
19967       aix4 | aix4.[01] | aix4.[01].*)
19968       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19969            echo ' yes '
19970            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19971         :
19972       else
19973         can_build_shared=no
19974       fi
19975       ;;
19976     esac
19977     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19978     # soname into executable. Probably we can add versioning support to
19979     # collect2, so additional links can be useful in future.
19980     if test "$aix_use_runtimelinking" = yes; then
19981       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19982       # instead of lib<name>.a to let people know that these are not
19983       # typical AIX shared libraries.
19984       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985     else
19986       # We preserve .a as extension for shared libraries through AIX4.2
19987       # and later when we are not doing run time linking.
19988       library_names_spec='${libname}${release}.a $libname.a'
19989       soname_spec='${libname}${release}${shared_ext}$major'
19990     fi
19991     shlibpath_var=LIBPATH
19992   fi
19993   ;;
19994
19995 amigaos*)
19996   library_names_spec='$libname.ixlibrary $libname.a'
19997   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19998   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'
19999   ;;
20000
20001 beos*)
20002   library_names_spec='${libname}${shared_ext}'
20003   dynamic_linker="$host_os ld.so"
20004   shlibpath_var=LIBRARY_PATH
20005   ;;
20006
20007 bsdi[45]*)
20008   version_type=linux
20009   need_version=no
20010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011   soname_spec='${libname}${release}${shared_ext}$major'
20012   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20013   shlibpath_var=LD_LIBRARY_PATH
20014   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20015   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20016   # the default ld.so.conf also contains /usr/contrib/lib and
20017   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20018   # libtool to hard-code these into programs
20019   ;;
20020
20021 cygwin* | mingw* | pw32*)
20022   version_type=windows
20023   shrext_cmds=".dll"
20024   need_version=no
20025   need_lib_prefix=no
20026
20027   case $GCC,$host_os in
20028   yes,cygwin* | yes,mingw* | yes,pw32*)
20029     library_names_spec='$libname.dll.a'
20030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20031     postinstall_cmds='base_file=`basename \${file}`~
20032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20033       dldir=$destdir/`dirname \$dlpath`~
20034       test -d \$dldir || mkdir -p \$dldir~
20035       $install_prog $dir/$dlname \$dldir/$dlname~
20036       chmod a+x \$dldir/$dlname'
20037     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20038       dlpath=$dir/\$dldll~
20039        $rm \$dlpath'
20040     shlibpath_overrides_runpath=yes
20041
20042     case $host_os in
20043     cygwin*)
20044       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20045       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20047       ;;
20048     mingw*)
20049       # MinGW DLLs use traditional 'lib' prefix
20050       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20051       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20053         # It is most probably a Windows format PATH printed by
20054         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20055         # path with ; separators, and with drive letters. We can handle the
20056         # drive letters (cygwin fileutils understands them), so leave them,
20057         # especially as we might pass files found there to a mingw objdump,
20058         # which wouldn't understand a cygwinified path. Ahh.
20059         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060       else
20061         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20062       fi
20063       ;;
20064     pw32*)
20065       # pw32 DLLs use 'pw' prefix rather than 'lib'
20066       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20067       ;;
20068     esac
20069     ;;
20070
20071   *)
20072     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20073     ;;
20074   esac
20075   dynamic_linker='Win32 ld.exe'
20076   # FIXME: first we should search . and the directory the executable is in
20077   shlibpath_var=PATH
20078   ;;
20079
20080 darwin* | rhapsody*)
20081   dynamic_linker="$host_os dyld"
20082   version_type=darwin
20083   need_lib_prefix=no
20084   need_version=no
20085   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20086   soname_spec='${libname}${release}${major}$shared_ext'
20087   shlibpath_overrides_runpath=yes
20088   shlibpath_var=DYLD_LIBRARY_PATH
20089   shrext_cmds='.dylib'
20090   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20091   if test "$GCC" = yes; then
20092     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"`
20093   else
20094     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20095   fi
20096   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20097   ;;
20098
20099 dgux*)
20100   version_type=linux
20101   need_lib_prefix=no
20102   need_version=no
20103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20104   soname_spec='${libname}${release}${shared_ext}$major'
20105   shlibpath_var=LD_LIBRARY_PATH
20106   ;;
20107
20108 freebsd1*)
20109   dynamic_linker=no
20110   ;;
20111
20112 kfreebsd*-gnu)
20113   version_type=linux
20114   need_lib_prefix=no
20115   need_version=no
20116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20117   soname_spec='${libname}${release}${shared_ext}$major'
20118   shlibpath_var=LD_LIBRARY_PATH
20119   shlibpath_overrides_runpath=no
20120   hardcode_into_libs=yes
20121   dynamic_linker='GNU ld.so'
20122   ;;
20123
20124 freebsd* | dragonfly*)
20125   # DragonFly does not have aout.  When/if they implement a new
20126   # versioning mechanism, adjust this.
20127   if test -x /usr/bin/objformat; then
20128     objformat=`/usr/bin/objformat`
20129   else
20130     case $host_os in
20131     freebsd[123]*) objformat=aout ;;
20132     *) objformat=elf ;;
20133     esac
20134   fi
20135   version_type=freebsd-$objformat
20136   case $version_type in
20137     freebsd-elf*)
20138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20139       need_version=no
20140       need_lib_prefix=no
20141       ;;
20142     freebsd-*)
20143       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20144       need_version=yes
20145       ;;
20146   esac
20147   shlibpath_var=LD_LIBRARY_PATH
20148   case $host_os in
20149   freebsd2*)
20150     shlibpath_overrides_runpath=yes
20151     ;;
20152   freebsd3.[01]* | freebsdelf3.[01]*)
20153     shlibpath_overrides_runpath=yes
20154     hardcode_into_libs=yes
20155     ;;
20156   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20157   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20158     shlibpath_overrides_runpath=no
20159     hardcode_into_libs=yes
20160     ;;
20161   freebsd*) # from 4.6 on
20162     shlibpath_overrides_runpath=yes
20163     hardcode_into_libs=yes
20164     ;;
20165   esac
20166   ;;
20167
20168 gnu*)
20169   version_type=linux
20170   need_lib_prefix=no
20171   need_version=no
20172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20173   soname_spec='${libname}${release}${shared_ext}$major'
20174   shlibpath_var=LD_LIBRARY_PATH
20175   hardcode_into_libs=yes
20176   ;;
20177
20178 hpux9* | hpux10* | hpux11*)
20179   # Give a soname corresponding to the major version so that dld.sl refuses to
20180   # link against other versions.
20181   version_type=sunos
20182   need_lib_prefix=no
20183   need_version=no
20184   case $host_cpu in
20185   ia64*)
20186     shrext_cmds='.so'
20187     hardcode_into_libs=yes
20188     dynamic_linker="$host_os dld.so"
20189     shlibpath_var=LD_LIBRARY_PATH
20190     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192     soname_spec='${libname}${release}${shared_ext}$major'
20193     if test "X$HPUX_IA64_MODE" = X32; then
20194       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20195     else
20196       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20197     fi
20198     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20199     ;;
20200    hppa*64*)
20201      shrext_cmds='.sl'
20202      hardcode_into_libs=yes
20203      dynamic_linker="$host_os dld.sl"
20204      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20205      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20206      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207      soname_spec='${libname}${release}${shared_ext}$major'
20208      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20209      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20210      ;;
20211    *)
20212     shrext_cmds='.sl'
20213     dynamic_linker="$host_os dld.sl"
20214     shlibpath_var=SHLIB_PATH
20215     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217     soname_spec='${libname}${release}${shared_ext}$major'
20218     ;;
20219   esac
20220   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20221   postinstall_cmds='chmod 555 $lib'
20222   ;;
20223
20224 interix3*)
20225   version_type=linux
20226   need_lib_prefix=no
20227   need_version=no
20228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20229   soname_spec='${libname}${release}${shared_ext}$major'
20230   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20231   shlibpath_var=LD_LIBRARY_PATH
20232   shlibpath_overrides_runpath=no
20233   hardcode_into_libs=yes
20234   ;;
20235
20236 irix5* | irix6* | nonstopux*)
20237   case $host_os in
20238     nonstopux*) version_type=nonstopux ;;
20239     *)
20240         if test "$lt_cv_prog_gnu_ld" = yes; then
20241                 version_type=linux
20242         else
20243                 version_type=irix
20244         fi ;;
20245   esac
20246   need_lib_prefix=no
20247   need_version=no
20248   soname_spec='${libname}${release}${shared_ext}$major'
20249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20250   case $host_os in
20251   irix5* | nonstopux*)
20252     libsuff= shlibsuff=
20253     ;;
20254   *)
20255     case $LD in # libtool.m4 will add one of these switches to LD
20256     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20257       libsuff= shlibsuff= libmagic=32-bit;;
20258     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20259       libsuff=32 shlibsuff=N32 libmagic=N32;;
20260     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20261       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20262     *) libsuff= shlibsuff= libmagic=never-match;;
20263     esac
20264     ;;
20265   esac
20266   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20267   shlibpath_overrides_runpath=no
20268   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20269   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20270   hardcode_into_libs=yes
20271   ;;
20272
20273 # No shared lib support for Linux oldld, aout, or coff.
20274 linux*oldld* | linux*aout* | linux*coff*)
20275   dynamic_linker=no
20276   ;;
20277
20278 # This must be Linux ELF.
20279 linux*)
20280   version_type=linux
20281   need_lib_prefix=no
20282   need_version=no
20283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284   soname_spec='${libname}${release}${shared_ext}$major'
20285   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20286   shlibpath_var=LD_LIBRARY_PATH
20287   shlibpath_overrides_runpath=no
20288   # This implies no fast_install, which is unacceptable.
20289   # Some rework will be needed to allow for fast_install
20290   # before this can be enabled.
20291   hardcode_into_libs=yes
20292
20293   # Append ld.so.conf contents to the search path
20294   if test -f /etc/ld.so.conf; then
20295     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' ' '`
20296     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20297   fi
20298
20299   # We used to test for /lib/ld.so.1 and disable shared libraries on
20300   # powerpc, because MkLinux only supported shared libraries with the
20301   # GNU dynamic linker.  Since this was broken with cross compilers,
20302   # most powerpc-linux boxes support dynamic linking these days and
20303   # people can always --disable-shared, the test was removed, and we
20304   # assume the GNU/Linux dynamic linker is in use.
20305   dynamic_linker='GNU/Linux ld.so'
20306   ;;
20307
20308 knetbsd*-gnu)
20309   version_type=linux
20310   need_lib_prefix=no
20311   need_version=no
20312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20313   soname_spec='${libname}${release}${shared_ext}$major'
20314   shlibpath_var=LD_LIBRARY_PATH
20315   shlibpath_overrides_runpath=no
20316   hardcode_into_libs=yes
20317   dynamic_linker='GNU ld.so'
20318   ;;
20319
20320 netbsd*)
20321   version_type=sunos
20322   need_lib_prefix=no
20323   need_version=no
20324   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327     dynamic_linker='NetBSD (a.out) ld.so'
20328   else
20329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20330     soname_spec='${libname}${release}${shared_ext}$major'
20331     dynamic_linker='NetBSD ld.elf_so'
20332   fi
20333   shlibpath_var=LD_LIBRARY_PATH
20334   shlibpath_overrides_runpath=yes
20335   hardcode_into_libs=yes
20336   ;;
20337
20338 newsos6)
20339   version_type=linux
20340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341   shlibpath_var=LD_LIBRARY_PATH
20342   shlibpath_overrides_runpath=yes
20343   ;;
20344
20345 nto-qnx*)
20346   version_type=linux
20347   need_lib_prefix=no
20348   need_version=no
20349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350   soname_spec='${libname}${release}${shared_ext}$major'
20351   shlibpath_var=LD_LIBRARY_PATH
20352   shlibpath_overrides_runpath=yes
20353   ;;
20354
20355 openbsd*)
20356   version_type=sunos
20357   sys_lib_dlsearch_path_spec="/usr/lib"
20358   need_lib_prefix=no
20359   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20360   case $host_os in
20361     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20362     *)                         need_version=no  ;;
20363   esac
20364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20365   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20366   shlibpath_var=LD_LIBRARY_PATH
20367   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20368     case $host_os in
20369       openbsd2.[89] | openbsd2.[89].*)
20370         shlibpath_overrides_runpath=no
20371         ;;
20372       *)
20373         shlibpath_overrides_runpath=yes
20374         ;;
20375       esac
20376   else
20377     shlibpath_overrides_runpath=yes
20378   fi
20379   ;;
20380
20381 os2*)
20382   libname_spec='$name'
20383   shrext_cmds=".dll"
20384   need_lib_prefix=no
20385   library_names_spec='$libname${shared_ext} $libname.a'
20386   dynamic_linker='OS/2 ld.exe'
20387   shlibpath_var=LIBPATH
20388   ;;
20389
20390 osf3* | osf4* | osf5*)
20391   version_type=osf
20392   need_lib_prefix=no
20393   need_version=no
20394   soname_spec='${libname}${release}${shared_ext}$major'
20395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396   shlibpath_var=LD_LIBRARY_PATH
20397   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20398   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20399   ;;
20400
20401 solaris*)
20402   version_type=linux
20403   need_lib_prefix=no
20404   need_version=no
20405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406   soname_spec='${libname}${release}${shared_ext}$major'
20407   shlibpath_var=LD_LIBRARY_PATH
20408   shlibpath_overrides_runpath=yes
20409   hardcode_into_libs=yes
20410   # ldd complains unless libraries are executable
20411   postinstall_cmds='chmod +x $lib'
20412   ;;
20413
20414 sunos4*)
20415   version_type=sunos
20416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20418   shlibpath_var=LD_LIBRARY_PATH
20419   shlibpath_overrides_runpath=yes
20420   if test "$with_gnu_ld" = yes; then
20421     need_lib_prefix=no
20422   fi
20423   need_version=yes
20424   ;;
20425
20426 sysv4 | sysv4.3*)
20427   version_type=linux
20428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429   soname_spec='${libname}${release}${shared_ext}$major'
20430   shlibpath_var=LD_LIBRARY_PATH
20431   case $host_vendor in
20432     sni)
20433       shlibpath_overrides_runpath=no
20434       need_lib_prefix=no
20435       export_dynamic_flag_spec='${wl}-Blargedynsym'
20436       runpath_var=LD_RUN_PATH
20437       ;;
20438     siemens)
20439       need_lib_prefix=no
20440       ;;
20441     motorola)
20442       need_lib_prefix=no
20443       need_version=no
20444       shlibpath_overrides_runpath=no
20445       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20446       ;;
20447   esac
20448   ;;
20449
20450 sysv4*MP*)
20451   if test -d /usr/nec ;then
20452     version_type=linux
20453     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20454     soname_spec='$libname${shared_ext}.$major'
20455     shlibpath_var=LD_LIBRARY_PATH
20456   fi
20457   ;;
20458
20459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20460   version_type=freebsd-elf
20461   need_lib_prefix=no
20462   need_version=no
20463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20464   soname_spec='${libname}${release}${shared_ext}$major'
20465   shlibpath_var=LD_LIBRARY_PATH
20466   hardcode_into_libs=yes
20467   if test "$with_gnu_ld" = yes; then
20468     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20469     shlibpath_overrides_runpath=no
20470   else
20471     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20472     shlibpath_overrides_runpath=yes
20473     case $host_os in
20474       sco3.2v5*)
20475         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20476         ;;
20477     esac
20478   fi
20479   sys_lib_dlsearch_path_spec='/usr/lib'
20480   ;;
20481
20482 uts4*)
20483   version_type=linux
20484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20485   soname_spec='${libname}${release}${shared_ext}$major'
20486   shlibpath_var=LD_LIBRARY_PATH
20487   ;;
20488
20489 *)
20490   dynamic_linker=no
20491   ;;
20492 esac
20493 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20494 echo "${ECHO_T}$dynamic_linker" >&6; }
20495 test "$dynamic_linker" = no && can_build_shared=no
20496
20497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20498 if test "$GCC" = yes; then
20499   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20500 fi
20501
20502 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20503 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20504 hardcode_action_CXX=
20505 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20506    test -n "$runpath_var_CXX" || \
20507    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20508
20509   # We can hardcode non-existant directories.
20510   if test "$hardcode_direct_CXX" != no &&
20511      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20512      # have to relink, otherwise we might link with an installed library
20513      # when we should be linking with a yet-to-be-installed one
20514      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20515      test "$hardcode_minus_L_CXX" != no; then
20516     # Linking always hardcodes the temporary library directory.
20517     hardcode_action_CXX=relink
20518   else
20519     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20520     hardcode_action_CXX=immediate
20521   fi
20522 else
20523   # We cannot hardcode anything, or else we can only hardcode existing
20524   # directories.
20525   hardcode_action_CXX=unsupported
20526 fi
20527 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20528 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20529
20530 if test "$hardcode_action_CXX" = relink; then
20531   # Fast installation is not supported
20532   enable_fast_install=no
20533 elif test "$shlibpath_overrides_runpath" = yes ||
20534      test "$enable_shared" = no; then
20535   # Fast installation is not necessary
20536   enable_fast_install=needless
20537 fi
20538
20539
20540 # The else clause should only fire when bootstrapping the
20541 # libtool distribution, otherwise you forgot to ship ltmain.sh
20542 # with your package, and you will get complaints that there are
20543 # no rules to generate ltmain.sh.
20544 if test -f "$ltmain"; then
20545   # See if we are running on zsh, and set the options which allow our commands through
20546   # without removal of \ escapes.
20547   if test -n "${ZSH_VERSION+set}" ; then
20548     setopt NO_GLOB_SUBST
20549   fi
20550   # Now quote all the things that may contain metacharacters while being
20551   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20552   # variables and quote the copies for generation of the libtool script.
20553   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20554     SED SHELL STRIP \
20555     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20556     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20557     deplibs_check_method reload_flag reload_cmds need_locks \
20558     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20559     lt_cv_sys_global_symbol_to_c_name_address \
20560     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20561     old_postinstall_cmds old_postuninstall_cmds \
20562     compiler_CXX \
20563     CC_CXX \
20564     LD_CXX \
20565     lt_prog_compiler_wl_CXX \
20566     lt_prog_compiler_pic_CXX \
20567     lt_prog_compiler_static_CXX \
20568     lt_prog_compiler_no_builtin_flag_CXX \
20569     export_dynamic_flag_spec_CXX \
20570     thread_safe_flag_spec_CXX \
20571     whole_archive_flag_spec_CXX \
20572     enable_shared_with_static_runtimes_CXX \
20573     old_archive_cmds_CXX \
20574     old_archive_from_new_cmds_CXX \
20575     predep_objects_CXX \
20576     postdep_objects_CXX \
20577     predeps_CXX \
20578     postdeps_CXX \
20579     compiler_lib_search_path_CXX \
20580     archive_cmds_CXX \
20581     archive_expsym_cmds_CXX \
20582     postinstall_cmds_CXX \
20583     postuninstall_cmds_CXX \
20584     old_archive_from_expsyms_cmds_CXX \
20585     allow_undefined_flag_CXX \
20586     no_undefined_flag_CXX \
20587     export_symbols_cmds_CXX \
20588     hardcode_libdir_flag_spec_CXX \
20589     hardcode_libdir_flag_spec_ld_CXX \
20590     hardcode_libdir_separator_CXX \
20591     hardcode_automatic_CXX \
20592     module_cmds_CXX \
20593     module_expsym_cmds_CXX \
20594     lt_cv_prog_compiler_c_o_CXX \
20595     exclude_expsyms_CXX \
20596     include_expsyms_CXX; do
20597
20598     case $var in
20599     old_archive_cmds_CXX | \
20600     old_archive_from_new_cmds_CXX | \
20601     archive_cmds_CXX | \
20602     archive_expsym_cmds_CXX | \
20603     module_cmds_CXX | \
20604     module_expsym_cmds_CXX | \
20605     old_archive_from_expsyms_cmds_CXX | \
20606     export_symbols_cmds_CXX | \
20607     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20608     postinstall_cmds | postuninstall_cmds | \
20609     old_postinstall_cmds | old_postuninstall_cmds | \
20610     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20611       # Double-quote double-evaled strings.
20612       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20613       ;;
20614     *)
20615       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20616       ;;
20617     esac
20618   done
20619
20620   case $lt_echo in
20621   *'\$0 --fallback-echo"')
20622     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20623     ;;
20624   esac
20625
20626 cfgfile="$ofile"
20627
20628   cat <<__EOF__ >> "$cfgfile"
20629 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20630
20631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20632
20633 # Shell to use when invoking shell scripts.
20634 SHELL=$lt_SHELL
20635
20636 # Whether or not to build shared libraries.
20637 build_libtool_libs=$enable_shared
20638
20639 # Whether or not to build static libraries.
20640 build_old_libs=$enable_static
20641
20642 # Whether or not to add -lc for building shared libraries.
20643 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20644
20645 # Whether or not to disallow shared libs when runtime libs are static
20646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20647
20648 # Whether or not to optimize for fast installation.
20649 fast_install=$enable_fast_install
20650
20651 # The host system.
20652 host_alias=$host_alias
20653 host=$host
20654 host_os=$host_os
20655
20656 # The build system.
20657 build_alias=$build_alias
20658 build=$build
20659 build_os=$build_os
20660
20661 # An echo program that does not interpret backslashes.
20662 echo=$lt_echo
20663
20664 # The archiver.
20665 AR=$lt_AR
20666 AR_FLAGS=$lt_AR_FLAGS
20667
20668 # A C compiler.
20669 LTCC=$lt_LTCC
20670
20671 # LTCC compiler flags.
20672 LTCFLAGS=$lt_LTCFLAGS
20673
20674 # A language-specific compiler.
20675 CC=$lt_compiler_CXX
20676
20677 # Is the compiler the GNU C compiler?
20678 with_gcc=$GCC_CXX
20679
20680 # An ERE matcher.
20681 EGREP=$lt_EGREP
20682
20683 # The linker used to build libraries.
20684 LD=$lt_LD_CXX
20685
20686 # Whether we need hard or soft links.
20687 LN_S=$lt_LN_S
20688
20689 # A BSD-compatible nm program.
20690 NM=$lt_NM
20691
20692 # A symbol stripping program
20693 STRIP=$lt_STRIP
20694
20695 # Used to examine libraries when file_magic_cmd begins "file"
20696 MAGIC_CMD=$MAGIC_CMD
20697
20698 # Used on cygwin: DLL creation program.
20699 DLLTOOL="$DLLTOOL"
20700
20701 # Used on cygwin: object dumper.
20702 OBJDUMP="$OBJDUMP"
20703
20704 # Used on cygwin: assembler.
20705 AS="$AS"
20706
20707 # The name of the directory that contains temporary libtool files.
20708 objdir=$objdir
20709
20710 # How to create reloadable object files.
20711 reload_flag=$lt_reload_flag
20712 reload_cmds=$lt_reload_cmds
20713
20714 # How to pass a linker flag through the compiler.
20715 wl=$lt_lt_prog_compiler_wl_CXX
20716
20717 # Object file suffix (normally "o").
20718 objext="$ac_objext"
20719
20720 # Old archive suffix (normally "a").
20721 libext="$libext"
20722
20723 # Shared library suffix (normally ".so").
20724 shrext_cmds='$shrext_cmds'
20725
20726 # Executable file suffix (normally "").
20727 exeext="$exeext"
20728
20729 # Additional compiler flags for building library objects.
20730 pic_flag=$lt_lt_prog_compiler_pic_CXX
20731 pic_mode=$pic_mode
20732
20733 # What is the maximum length of a command?
20734 max_cmd_len=$lt_cv_sys_max_cmd_len
20735
20736 # Does compiler simultaneously support -c and -o options?
20737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20738
20739 # Must we lock files when doing compilation?
20740 need_locks=$lt_need_locks
20741
20742 # Do we need the lib prefix for modules?
20743 need_lib_prefix=$need_lib_prefix
20744
20745 # Do we need a version for libraries?
20746 need_version=$need_version
20747
20748 # Whether dlopen is supported.
20749 dlopen_support=$enable_dlopen
20750
20751 # Whether dlopen of programs is supported.
20752 dlopen_self=$enable_dlopen_self
20753
20754 # Whether dlopen of statically linked programs is supported.
20755 dlopen_self_static=$enable_dlopen_self_static
20756
20757 # Compiler flag to prevent dynamic linking.
20758 link_static_flag=$lt_lt_prog_compiler_static_CXX
20759
20760 # Compiler flag to turn off builtin functions.
20761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20762
20763 # Compiler flag to allow reflexive dlopens.
20764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20765
20766 # Compiler flag to generate shared objects directly from archives.
20767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20768
20769 # Compiler flag to generate thread-safe objects.
20770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20771
20772 # Library versioning type.
20773 version_type=$version_type
20774
20775 # Format of library name prefix.
20776 libname_spec=$lt_libname_spec
20777
20778 # List of archive names.  First name is the real one, the rest are links.
20779 # The last name is the one that the linker finds with -lNAME.
20780 library_names_spec=$lt_library_names_spec
20781
20782 # The coded name of the library, if different from the real name.
20783 soname_spec=$lt_soname_spec
20784
20785 # Commands used to build and install an old-style archive.
20786 RANLIB=$lt_RANLIB
20787 old_archive_cmds=$lt_old_archive_cmds_CXX
20788 old_postinstall_cmds=$lt_old_postinstall_cmds
20789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20790
20791 # Create an old-style archive from a shared archive.
20792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20793
20794 # Create a temporary old-style archive to link instead of a shared archive.
20795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20796
20797 # Commands used to build and install a shared archive.
20798 archive_cmds=$lt_archive_cmds_CXX
20799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20800 postinstall_cmds=$lt_postinstall_cmds
20801 postuninstall_cmds=$lt_postuninstall_cmds
20802
20803 # Commands used to build a loadable module (assumed same as above if empty)
20804 module_cmds=$lt_module_cmds_CXX
20805 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20806
20807 # Commands to strip libraries.
20808 old_striplib=$lt_old_striplib
20809 striplib=$lt_striplib
20810
20811 # Dependencies to place before the objects being linked to create a
20812 # shared library.
20813 predep_objects=$lt_predep_objects_CXX
20814
20815 # Dependencies to place after the objects being linked to create a
20816 # shared library.
20817 postdep_objects=$lt_postdep_objects_CXX
20818
20819 # Dependencies to place before the objects being linked to create a
20820 # shared library.
20821 predeps=$lt_predeps_CXX
20822
20823 # Dependencies to place after the objects being linked to create a
20824 # shared library.
20825 postdeps=$lt_postdeps_CXX
20826
20827 # The library search path used internally by the compiler when linking
20828 # a shared library.
20829 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20830
20831 # Method to check whether dependent libraries are shared objects.
20832 deplibs_check_method=$lt_deplibs_check_method
20833
20834 # Command to use when deplibs_check_method == file_magic.
20835 file_magic_cmd=$lt_file_magic_cmd
20836
20837 # Flag that allows shared libraries with undefined symbols to be built.
20838 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20839
20840 # Flag that forces no undefined symbols.
20841 no_undefined_flag=$lt_no_undefined_flag_CXX
20842
20843 # Commands used to finish a libtool library installation in a directory.
20844 finish_cmds=$lt_finish_cmds
20845
20846 # Same as above, but a single script fragment to be evaled but not shown.
20847 finish_eval=$lt_finish_eval
20848
20849 # Take the output of nm and produce a listing of raw symbols and C names.
20850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20851
20852 # Transform the output of nm in a proper C declaration
20853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20854
20855 # Transform the output of nm in a C name address pair
20856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20857
20858 # This is the shared library runtime path variable.
20859 runpath_var=$runpath_var
20860
20861 # This is the shared library path variable.
20862 shlibpath_var=$shlibpath_var
20863
20864 # Is shlibpath searched before the hard-coded library search path?
20865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20866
20867 # How to hardcode a shared library path into an executable.
20868 hardcode_action=$hardcode_action_CXX
20869
20870 # Whether we should hardcode library paths into libraries.
20871 hardcode_into_libs=$hardcode_into_libs
20872
20873 # Flag to hardcode \$libdir into a binary during linking.
20874 # This must work even if \$libdir does not exist.
20875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20876
20877 # If ld is used when linking, flag to hardcode \$libdir into
20878 # a binary during linking. This must work even if \$libdir does
20879 # not exist.
20880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20881
20882 # Whether we need a single -rpath flag with a separated argument.
20883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20884
20885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_direct=$hardcode_direct_CXX
20888
20889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20890 # resulting binary.
20891 hardcode_minus_L=$hardcode_minus_L_CXX
20892
20893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20894 # the resulting binary.
20895 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20896
20897 # Set to yes if building a shared library automatically hardcodes DIR into the library
20898 # and all subsequent libraries and executables linked against it.
20899 hardcode_automatic=$hardcode_automatic_CXX
20900
20901 # Variables whose values should be saved in libtool wrapper scripts and
20902 # restored at relink time.
20903 variables_saved_for_relink="$variables_saved_for_relink"
20904
20905 # Whether libtool must link a program against all its dependency libraries.
20906 link_all_deplibs=$link_all_deplibs_CXX
20907
20908 # Compile-time system search path for libraries
20909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20910
20911 # Run-time system search path for libraries
20912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20913
20914 # Fix the shell variable \$srcfile for the compiler.
20915 fix_srcfile_path="$fix_srcfile_path_CXX"
20916
20917 # Set to yes if exported symbols are required.
20918 always_export_symbols=$always_export_symbols_CXX
20919
20920 # The commands to list exported symbols.
20921 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20922
20923 # The commands to extract the exported symbol list from a shared archive.
20924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20925
20926 # Symbols that should not be listed in the preloaded symbols.
20927 exclude_expsyms=$lt_exclude_expsyms_CXX
20928
20929 # Symbols that must always be exported.
20930 include_expsyms=$lt_include_expsyms_CXX
20931
20932 # ### END LIBTOOL TAG CONFIG: $tagname
20933
20934 __EOF__
20935
20936
20937 else
20938   # If there is no Makefile yet, we rely on a make rule to execute
20939   # `config.status --recheck' to rerun these tests and create the
20940   # libtool script then.
20941   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20942   if test -f "$ltmain_in"; then
20943     test -f Makefile && make "$ltmain"
20944   fi
20945 fi
20946
20947
20948 ac_ext=c
20949 ac_cpp='$CPP $CPPFLAGS'
20950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953
20954 CC=$lt_save_CC
20955 LDCXX=$LD
20956 LD=$lt_save_LD
20957 GCC=$lt_save_GCC
20958 with_gnu_ldcxx=$with_gnu_ld
20959 with_gnu_ld=$lt_save_with_gnu_ld
20960 lt_cv_path_LDCXX=$lt_cv_path_LD
20961 lt_cv_path_LD=$lt_save_path_LD
20962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20964
20965         else
20966           tagname=""
20967         fi
20968         ;;
20969
20970       F77)
20971         if test -n "$F77" && test "X$F77" != "Xno"; then
20972
20973 ac_ext=f
20974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20977
20978
20979 archive_cmds_need_lc_F77=no
20980 allow_undefined_flag_F77=
20981 always_export_symbols_F77=no
20982 archive_expsym_cmds_F77=
20983 export_dynamic_flag_spec_F77=
20984 hardcode_direct_F77=no
20985 hardcode_libdir_flag_spec_F77=
20986 hardcode_libdir_flag_spec_ld_F77=
20987 hardcode_libdir_separator_F77=
20988 hardcode_minus_L_F77=no
20989 hardcode_automatic_F77=no
20990 module_cmds_F77=
20991 module_expsym_cmds_F77=
20992 link_all_deplibs_F77=unknown
20993 old_archive_cmds_F77=$old_archive_cmds
20994 no_undefined_flag_F77=
20995 whole_archive_flag_spec_F77=
20996 enable_shared_with_static_runtimes_F77=no
20997
20998 # Source file extension for f77 test sources.
20999 ac_ext=f
21000
21001 # Object file extension for compiled f77 test sources.
21002 objext=o
21003 objext_F77=$objext
21004
21005 # Code to be used in simple compile tests
21006 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21007
21008 # Code to be used in simple link tests
21009 lt_simple_link_test_code="      program t\n      end\n"
21010
21011 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21012
21013 # If no C compiler was specified, use CC.
21014 LTCC=${LTCC-"$CC"}
21015
21016 # If no C compiler flags were specified, use CFLAGS.
21017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21018
21019 # Allow CC to be a program name with arguments.
21020 compiler=$CC
21021
21022
21023 # save warnings/boilerplate of simple test code
21024 ac_outfile=conftest.$ac_objext
21025 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21027 _lt_compiler_boilerplate=`cat conftest.err`
21028 $rm conftest*
21029
21030 ac_outfile=conftest.$ac_objext
21031 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21033 _lt_linker_boilerplate=`cat conftest.err`
21034 $rm conftest*
21035
21036
21037 # Allow CC to be a program name with arguments.
21038 lt_save_CC="$CC"
21039 CC=${F77-"f77"}
21040 compiler=$CC
21041 compiler_F77=$CC
21042 for cc_temp in $compiler""; do
21043   case $cc_temp in
21044     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21045     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21046     \-*) ;;
21047     *) break;;
21048   esac
21049 done
21050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21051
21052
21053 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21054 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21055 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21056 echo "${ECHO_T}$can_build_shared" >&6; }
21057
21058 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21059 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21060 test "$can_build_shared" = "no" && enable_shared=no
21061
21062 # On AIX, shared libraries and static libraries use the same namespace, and
21063 # are all built from PIC.
21064 case $host_os in
21065 aix3*)
21066   test "$enable_shared" = yes && enable_static=no
21067   if test -n "$RANLIB"; then
21068     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21069     postinstall_cmds='$RANLIB $lib'
21070   fi
21071   ;;
21072 aix4* | aix5*)
21073   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21074     test "$enable_shared" = yes && enable_static=no
21075   fi
21076   ;;
21077 esac
21078 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21079 echo "${ECHO_T}$enable_shared" >&6; }
21080
21081 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21082 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21083 # Make sure either enable_shared or enable_static is yes.
21084 test "$enable_shared" = yes || enable_static=yes
21085 { echo "$as_me:$LINENO: result: $enable_static" >&5
21086 echo "${ECHO_T}$enable_static" >&6; }
21087
21088 GCC_F77="$G77"
21089 LD_F77="$LD"
21090
21091 lt_prog_compiler_wl_F77=
21092 lt_prog_compiler_pic_F77=
21093 lt_prog_compiler_static_F77=
21094
21095 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21096 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21097
21098   if test "$GCC" = yes; then
21099     lt_prog_compiler_wl_F77='-Wl,'
21100     lt_prog_compiler_static_F77='-static'
21101
21102     case $host_os in
21103       aix*)
21104       # All AIX code is PIC.
21105       if test "$host_cpu" = ia64; then
21106         # AIX 5 now supports IA64 processor
21107         lt_prog_compiler_static_F77='-Bstatic'
21108       fi
21109       ;;
21110
21111     amigaos*)
21112       # FIXME: we need at least 68020 code to build shared libraries, but
21113       # adding the `-m68020' flag to GCC prevents building anything better,
21114       # like `-m68040'.
21115       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21116       ;;
21117
21118     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21119       # PIC is the default for these OSes.
21120       ;;
21121
21122     mingw* | pw32* | os2*)
21123       # This hack is so that the source file can tell whether it is being
21124       # built for inclusion in a dll (and should export symbols for example).
21125       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21126       ;;
21127
21128     darwin* | rhapsody*)
21129       # PIC is the default on this platform
21130       # Common symbols not allowed in MH_DYLIB files
21131       lt_prog_compiler_pic_F77='-fno-common'
21132       ;;
21133
21134     interix3*)
21135       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21136       # Instead, we relocate shared libraries at runtime.
21137       ;;
21138
21139     msdosdjgpp*)
21140       # Just because we use GCC doesn't mean we suddenly get shared libraries
21141       # on systems that don't support them.
21142       lt_prog_compiler_can_build_shared_F77=no
21143       enable_shared=no
21144       ;;
21145
21146     sysv4*MP*)
21147       if test -d /usr/nec; then
21148         lt_prog_compiler_pic_F77=-Kconform_pic
21149       fi
21150       ;;
21151
21152     hpux*)
21153       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21154       # not for PA HP-UX.
21155       case $host_cpu in
21156       hppa*64*|ia64*)
21157         # +Z the default
21158         ;;
21159       *)
21160         lt_prog_compiler_pic_F77='-fPIC'
21161         ;;
21162       esac
21163       ;;
21164
21165     *)
21166       lt_prog_compiler_pic_F77='-fPIC'
21167       ;;
21168     esac
21169   else
21170     # PORTME Check for flag to pass linker flags through the system compiler.
21171     case $host_os in
21172     aix*)
21173       lt_prog_compiler_wl_F77='-Wl,'
21174       if test "$host_cpu" = ia64; then
21175         # AIX 5 now supports IA64 processor
21176         lt_prog_compiler_static_F77='-Bstatic'
21177       else
21178         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21179       fi
21180       ;;
21181       darwin*)
21182         # PIC is the default on this platform
21183         # Common symbols not allowed in MH_DYLIB files
21184        case $cc_basename in
21185          xlc*)
21186          lt_prog_compiler_pic_F77='-qnocommon'
21187          lt_prog_compiler_wl_F77='-Wl,'
21188          ;;
21189        esac
21190        ;;
21191
21192     mingw* | pw32* | os2*)
21193       # This hack is so that the source file can tell whether it is being
21194       # built for inclusion in a dll (and should export symbols for example).
21195       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21196       ;;
21197
21198     hpux9* | hpux10* | hpux11*)
21199       lt_prog_compiler_wl_F77='-Wl,'
21200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21201       # not for PA HP-UX.
21202       case $host_cpu in
21203       hppa*64*|ia64*)
21204         # +Z the default
21205         ;;
21206       *)
21207         lt_prog_compiler_pic_F77='+Z'
21208         ;;
21209       esac
21210       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21211       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21212       ;;
21213
21214     irix5* | irix6* | nonstopux*)
21215       lt_prog_compiler_wl_F77='-Wl,'
21216       # PIC (with -KPIC) is the default.
21217       lt_prog_compiler_static_F77='-non_shared'
21218       ;;
21219
21220     newsos6)
21221       lt_prog_compiler_pic_F77='-KPIC'
21222       lt_prog_compiler_static_F77='-Bstatic'
21223       ;;
21224
21225     linux*)
21226       case $cc_basename in
21227       icc* | ecc*)
21228         lt_prog_compiler_wl_F77='-Wl,'
21229         lt_prog_compiler_pic_F77='-KPIC'
21230         lt_prog_compiler_static_F77='-static'
21231         ;;
21232       pgcc* | pgf77* | pgf90* | pgf95*)
21233         # Portland Group compilers (*not* the Pentium gcc compiler,
21234         # which looks to be a dead project)
21235         lt_prog_compiler_wl_F77='-Wl,'
21236         lt_prog_compiler_pic_F77='-fpic'
21237         lt_prog_compiler_static_F77='-Bstatic'
21238         ;;
21239       ccc*)
21240         lt_prog_compiler_wl_F77='-Wl,'
21241         # All Alpha code is PIC.
21242         lt_prog_compiler_static_F77='-non_shared'
21243         ;;
21244       esac
21245       ;;
21246
21247     osf3* | osf4* | osf5*)
21248       lt_prog_compiler_wl_F77='-Wl,'
21249       # All OSF/1 code is PIC.
21250       lt_prog_compiler_static_F77='-non_shared'
21251       ;;
21252
21253     solaris*)
21254       lt_prog_compiler_pic_F77='-KPIC'
21255       lt_prog_compiler_static_F77='-Bstatic'
21256       case $cc_basename in
21257       f77* | f90* | f95*)
21258         lt_prog_compiler_wl_F77='-Qoption ld ';;
21259       *)
21260         lt_prog_compiler_wl_F77='-Wl,';;
21261       esac
21262       ;;
21263
21264     sunos4*)
21265       lt_prog_compiler_wl_F77='-Qoption ld '
21266       lt_prog_compiler_pic_F77='-PIC'
21267       lt_prog_compiler_static_F77='-Bstatic'
21268       ;;
21269
21270     sysv4 | sysv4.2uw2* | sysv4.3*)
21271       lt_prog_compiler_wl_F77='-Wl,'
21272       lt_prog_compiler_pic_F77='-KPIC'
21273       lt_prog_compiler_static_F77='-Bstatic'
21274       ;;
21275
21276     sysv4*MP*)
21277       if test -d /usr/nec ;then
21278         lt_prog_compiler_pic_F77='-Kconform_pic'
21279         lt_prog_compiler_static_F77='-Bstatic'
21280       fi
21281       ;;
21282
21283     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21284       lt_prog_compiler_wl_F77='-Wl,'
21285       lt_prog_compiler_pic_F77='-KPIC'
21286       lt_prog_compiler_static_F77='-Bstatic'
21287       ;;
21288
21289     unicos*)
21290       lt_prog_compiler_wl_F77='-Wl,'
21291       lt_prog_compiler_can_build_shared_F77=no
21292       ;;
21293
21294     uts4*)
21295       lt_prog_compiler_pic_F77='-pic'
21296       lt_prog_compiler_static_F77='-Bstatic'
21297       ;;
21298
21299     *)
21300       lt_prog_compiler_can_build_shared_F77=no
21301       ;;
21302     esac
21303   fi
21304
21305 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21306 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21307
21308 #
21309 # Check to make sure the PIC flag actually works.
21310 #
21311 if test -n "$lt_prog_compiler_pic_F77"; then
21312
21313 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21314 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21315 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   lt_prog_compiler_pic_works_F77=no
21319   ac_outfile=conftest.$ac_objext
21320    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21321    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21322    # Insert the option either (1) after the last *FLAGS variable, or
21323    # (2) before a word containing "conftest.", or (3) at the end.
21324    # Note that $ac_compile itself does not contain backslashes and begins
21325    # with a dollar sign (not a hyphen), so the echo should work correctly.
21326    # The option is referenced via a variable to avoid confusing sed.
21327    lt_compile=`echo "$ac_compile" | $SED \
21328    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21330    -e 's:$: $lt_compiler_flag:'`
21331    (eval echo "\"\$as_me:21331: $lt_compile\"" >&5)
21332    (eval "$lt_compile" 2>conftest.err)
21333    ac_status=$?
21334    cat conftest.err >&5
21335    echo "$as_me:21335: \$? = $ac_status" >&5
21336    if (exit $ac_status) && test -s "$ac_outfile"; then
21337      # The compiler can only warn and ignore the option if not recognized
21338      # So say no if there are warnings other than the usual output.
21339      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21340      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21341      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21342        lt_prog_compiler_pic_works_F77=yes
21343      fi
21344    fi
21345    $rm conftest*
21346
21347 fi
21348 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21349 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21350
21351 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21352     case $lt_prog_compiler_pic_F77 in
21353      "" | " "*) ;;
21354      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21355      esac
21356 else
21357     lt_prog_compiler_pic_F77=
21358      lt_prog_compiler_can_build_shared_F77=no
21359 fi
21360
21361 fi
21362 case $host_os in
21363   # For platforms which do not support PIC, -DPIC is meaningless:
21364   *djgpp*)
21365     lt_prog_compiler_pic_F77=
21366     ;;
21367   *)
21368     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21369     ;;
21370 esac
21371
21372 #
21373 # Check to make sure the static flag actually works.
21374 #
21375 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21376 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21377 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21378 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381   lt_prog_compiler_static_works_F77=no
21382    save_LDFLAGS="$LDFLAGS"
21383    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21384    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21385    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21386      # The linker can only warn and ignore the option if not recognized
21387      # So say no if there are warnings
21388      if test -s conftest.err; then
21389        # Append any errors to the config.log.
21390        cat conftest.err 1>&5
21391        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21392        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21393        if diff conftest.exp conftest.er2 >/dev/null; then
21394          lt_prog_compiler_static_works_F77=yes
21395        fi
21396      else
21397        lt_prog_compiler_static_works_F77=yes
21398      fi
21399    fi
21400    $rm conftest*
21401    LDFLAGS="$save_LDFLAGS"
21402
21403 fi
21404 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21405 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21406
21407 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21408     :
21409 else
21410     lt_prog_compiler_static_F77=
21411 fi
21412
21413
21414 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21415 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21416 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21417   echo $ECHO_N "(cached) $ECHO_C" >&6
21418 else
21419   lt_cv_prog_compiler_c_o_F77=no
21420    $rm -r conftest 2>/dev/null
21421    mkdir conftest
21422    cd conftest
21423    mkdir out
21424    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21425
21426    lt_compiler_flag="-o out/conftest2.$ac_objext"
21427    # Insert the option either (1) after the last *FLAGS variable, or
21428    # (2) before a word containing "conftest.", or (3) at the end.
21429    # Note that $ac_compile itself does not contain backslashes and begins
21430    # with a dollar sign (not a hyphen), so the echo should work correctly.
21431    lt_compile=`echo "$ac_compile" | $SED \
21432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21434    -e 's:$: $lt_compiler_flag:'`
21435    (eval echo "\"\$as_me:21435: $lt_compile\"" >&5)
21436    (eval "$lt_compile" 2>out/conftest.err)
21437    ac_status=$?
21438    cat out/conftest.err >&5
21439    echo "$as_me:21439: \$? = $ac_status" >&5
21440    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21441    then
21442      # The compiler can only warn and ignore the option if not recognized
21443      # So say no if there are warnings
21444      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21445      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21446      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21447        lt_cv_prog_compiler_c_o_F77=yes
21448      fi
21449    fi
21450    chmod u+w . 2>&5
21451    $rm conftest*
21452    # SGI C++ compiler will create directory out/ii_files/ for
21453    # template instantiation
21454    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21455    $rm out/* && rmdir out
21456    cd ..
21457    rmdir conftest
21458    $rm conftest*
21459
21460 fi
21461 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21462 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21463
21464
21465 hard_links="nottested"
21466 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21467   # do not overwrite the value of need_locks provided by the user
21468   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21469 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21470   hard_links=yes
21471   $rm conftest*
21472   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21473   touch conftest.a
21474   ln conftest.a conftest.b 2>&5 || hard_links=no
21475   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21476   { echo "$as_me:$LINENO: result: $hard_links" >&5
21477 echo "${ECHO_T}$hard_links" >&6; }
21478   if test "$hard_links" = no; then
21479     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21480 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21481     need_locks=warn
21482   fi
21483 else
21484   need_locks=no
21485 fi
21486
21487 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21488 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21489
21490   runpath_var=
21491   allow_undefined_flag_F77=
21492   enable_shared_with_static_runtimes_F77=no
21493   archive_cmds_F77=
21494   archive_expsym_cmds_F77=
21495   old_archive_From_new_cmds_F77=
21496   old_archive_from_expsyms_cmds_F77=
21497   export_dynamic_flag_spec_F77=
21498   whole_archive_flag_spec_F77=
21499   thread_safe_flag_spec_F77=
21500   hardcode_libdir_flag_spec_F77=
21501   hardcode_libdir_flag_spec_ld_F77=
21502   hardcode_libdir_separator_F77=
21503   hardcode_direct_F77=no
21504   hardcode_minus_L_F77=no
21505   hardcode_shlibpath_var_F77=unsupported
21506   link_all_deplibs_F77=unknown
21507   hardcode_automatic_F77=no
21508   module_cmds_F77=
21509   module_expsym_cmds_F77=
21510   always_export_symbols_F77=no
21511   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21512   # include_expsyms should be a list of space-separated symbols to be *always*
21513   # included in the symbol list
21514   include_expsyms_F77=
21515   # exclude_expsyms can be an extended regexp of symbols to exclude
21516   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21517   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21518   # as well as any symbol that contains `d'.
21519   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21520   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21521   # platforms (ab)use it in PIC code, but their linkers get confused if
21522   # the symbol is explicitly referenced.  Since portable code cannot
21523   # rely on this symbol name, it's probably fine to never include it in
21524   # preloaded symbol tables.
21525   extract_expsyms_cmds=
21526   # Just being paranoid about ensuring that cc_basename is set.
21527   for cc_temp in $compiler""; do
21528   case $cc_temp in
21529     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21530     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21531     \-*) ;;
21532     *) break;;
21533   esac
21534 done
21535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21536
21537   case $host_os in
21538   cygwin* | mingw* | pw32*)
21539     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21540     # When not using gcc, we currently assume that we are using
21541     # Microsoft Visual C++.
21542     if test "$GCC" != yes; then
21543       with_gnu_ld=no
21544     fi
21545     ;;
21546   interix*)
21547     # we just hope/assume this is gcc and not c89 (= MSVC++)
21548     with_gnu_ld=yes
21549     ;;
21550   openbsd*)
21551     with_gnu_ld=no
21552     ;;
21553   esac
21554
21555   ld_shlibs_F77=yes
21556   if test "$with_gnu_ld" = yes; then
21557     # If archive_cmds runs LD, not CC, wlarc should be empty
21558     wlarc='${wl}'
21559
21560     # Set some defaults for GNU ld with shared library support. These
21561     # are reset later if shared libraries are not supported. Putting them
21562     # here allows them to be overridden if necessary.
21563     runpath_var=LD_RUN_PATH
21564     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21565     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21566     # ancient GNU ld didn't support --whole-archive et. al.
21567     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21568         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21569       else
21570         whole_archive_flag_spec_F77=
21571     fi
21572     supports_anon_versioning=no
21573     case `$LD -v 2>/dev/null` in
21574       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21575       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21576       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21577       *\ 2.11.*) ;; # other 2.11 versions
21578       *) supports_anon_versioning=yes ;;
21579     esac
21580
21581     # See if GNU ld supports shared libraries.
21582     case $host_os in
21583     aix3* | aix4* | aix5*)
21584       # On AIX/PPC, the GNU linker is very broken
21585       if test "$host_cpu" != ia64; then
21586         ld_shlibs_F77=no
21587         cat <<EOF 1>&2
21588
21589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21590 *** to be unable to reliably create shared libraries on AIX.
21591 *** Therefore, libtool is disabling shared libraries support.  If you
21592 *** really care for shared libraries, you may want to modify your PATH
21593 *** so that a non-GNU linker is found, and then restart.
21594
21595 EOF
21596       fi
21597       ;;
21598
21599     amigaos*)
21600       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)'
21601       hardcode_libdir_flag_spec_F77='-L$libdir'
21602       hardcode_minus_L_F77=yes
21603
21604       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21605       # that the semantics of dynamic libraries on AmigaOS, at least up
21606       # to version 4, is to share data among multiple programs linked
21607       # with the same dynamic library.  Since this doesn't match the
21608       # behavior of shared libraries on other platforms, we can't use
21609       # them.
21610       ld_shlibs_F77=no
21611       ;;
21612
21613     beos*)
21614       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21615         allow_undefined_flag_F77=unsupported
21616         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21617         # support --undefined.  This deserves some investigation.  FIXME
21618         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21619       else
21620         ld_shlibs_F77=no
21621       fi
21622       ;;
21623
21624     cygwin* | mingw* | pw32*)
21625       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21626       # as there is no search path for DLLs.
21627       hardcode_libdir_flag_spec_F77='-L$libdir'
21628       allow_undefined_flag_F77=unsupported
21629       always_export_symbols_F77=no
21630       enable_shared_with_static_runtimes_F77=yes
21631       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21632
21633       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21634         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21635         # If the export-symbols file already is a .def file (1st line
21636         # is EXPORTS), use it as is; otherwise, prepend...
21637         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21638           cp $export_symbols $output_objdir/$soname.def;
21639         else
21640           echo EXPORTS > $output_objdir/$soname.def;
21641           cat $export_symbols >> $output_objdir/$soname.def;
21642         fi~
21643         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21644       else
21645         ld_shlibs_F77=no
21646       fi
21647       ;;
21648
21649     interix3*)
21650       hardcode_direct_F77=no
21651       hardcode_shlibpath_var_F77=no
21652       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21653       export_dynamic_flag_spec_F77='${wl}-E'
21654       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21655       # Instead, shared libraries are loaded at an image base (0x10000000 by
21656       # default) and relocated if they conflict, which is a slow very memory
21657       # consuming and fragmenting process.  To avoid this, we pick a random,
21658       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21659       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21660       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'
21661       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'
21662       ;;
21663
21664     linux*)
21665       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21666         tmp_addflag=
21667         case $cc_basename,$host_cpu in
21668         pgcc*)                          # Portland Group C compiler
21669           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'
21670           tmp_addflag=' $pic_flag'
21671           ;;
21672         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21673           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'
21674           tmp_addflag=' $pic_flag -Mnomain' ;;
21675         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21676           tmp_addflag=' -i_dynamic' ;;
21677         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21678           tmp_addflag=' -i_dynamic -nofor_main' ;;
21679         ifc* | ifort*)                  # Intel Fortran compiler
21680           tmp_addflag=' -nofor_main' ;;
21681         esac
21682         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21683
21684         if test $supports_anon_versioning = yes; then
21685           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21686   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21687   $echo "local: *; };" >> $output_objdir/$libname.ver~
21688           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21689         fi
21690       else
21691         ld_shlibs_F77=no
21692       fi
21693       ;;
21694
21695     netbsd*)
21696       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21697         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21698         wlarc=
21699       else
21700         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21701         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21702       fi
21703       ;;
21704
21705     solaris*)
21706       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21707         ld_shlibs_F77=no
21708         cat <<EOF 1>&2
21709
21710 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21711 *** create shared libraries on Solaris systems.  Therefore, libtool
21712 *** is disabling shared libraries support.  We urge you to upgrade GNU
21713 *** binutils to release 2.9.1 or newer.  Another option is to modify
21714 *** your PATH or compiler configuration so that the native linker is
21715 *** used, and then restart.
21716
21717 EOF
21718       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21719         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21720         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21721       else
21722         ld_shlibs_F77=no
21723       fi
21724       ;;
21725
21726     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21727       case `$LD -v 2>&1` in
21728         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21729         ld_shlibs_F77=no
21730         cat <<_LT_EOF 1>&2
21731
21732 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21733 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21734 *** is disabling shared libraries support.  We urge you to upgrade GNU
21735 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21736 *** your PATH or compiler configuration so that the native linker is
21737 *** used, and then restart.
21738
21739 _LT_EOF
21740         ;;
21741         *)
21742           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21744             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21745             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21746           else
21747             ld_shlibs_F77=no
21748           fi
21749         ;;
21750       esac
21751       ;;
21752
21753     sunos4*)
21754       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21755       wlarc=
21756       hardcode_direct_F77=yes
21757       hardcode_shlibpath_var_F77=no
21758       ;;
21759
21760     *)
21761       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21764       else
21765         ld_shlibs_F77=no
21766       fi
21767       ;;
21768     esac
21769
21770     if test "$ld_shlibs_F77" = no; then
21771       runpath_var=
21772       hardcode_libdir_flag_spec_F77=
21773       export_dynamic_flag_spec_F77=
21774       whole_archive_flag_spec_F77=
21775     fi
21776   else
21777     # PORTME fill in a description of your system's linker (not GNU ld)
21778     case $host_os in
21779     aix3*)
21780       allow_undefined_flag_F77=unsupported
21781       always_export_symbols_F77=yes
21782       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'
21783       # Note: this linker hardcodes the directories in LIBPATH if there
21784       # are no directories specified by -L.
21785       hardcode_minus_L_F77=yes
21786       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21787         # Neither direct hardcoding nor static linking is supported with a
21788         # broken collect2.
21789         hardcode_direct_F77=unsupported
21790       fi
21791       ;;
21792
21793     aix4* | aix5*)
21794       if test "$host_cpu" = ia64; then
21795         # On IA64, the linker does run time linking by default, so we don't
21796         # have to do anything special.
21797         aix_use_runtimelinking=no
21798         exp_sym_flag='-Bexport'
21799         no_entry_flag=""
21800       else
21801         # If we're using GNU nm, then we don't want the "-C" option.
21802         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21803         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21804           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'
21805         else
21806           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'
21807         fi
21808         aix_use_runtimelinking=no
21809
21810         # Test if we are trying to use run time linking or normal
21811         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21812         # need to do runtime linking.
21813         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21814           for ld_flag in $LDFLAGS; do
21815           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21816             aix_use_runtimelinking=yes
21817             break
21818           fi
21819           done
21820           ;;
21821         esac
21822
21823         exp_sym_flag='-bexport'
21824         no_entry_flag='-bnoentry'
21825       fi
21826
21827       # When large executables or shared objects are built, AIX ld can
21828       # have problems creating the table of contents.  If linking a library
21829       # or program results in "error TOC overflow" add -mminimal-toc to
21830       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21831       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21832
21833       archive_cmds_F77=''
21834       hardcode_direct_F77=yes
21835       hardcode_libdir_separator_F77=':'
21836       link_all_deplibs_F77=yes
21837
21838       if test "$GCC" = yes; then
21839         case $host_os in aix4.[012]|aix4.[012].*)
21840         # We only want to do this on AIX 4.2 and lower, the check
21841         # below for broken collect2 doesn't work under 4.3+
21842           collect2name=`${CC} -print-prog-name=collect2`
21843           if test -f "$collect2name" && \
21844            strings "$collect2name" | grep resolve_lib_name >/dev/null
21845           then
21846           # We have reworked collect2
21847           hardcode_direct_F77=yes
21848           else
21849           # We have old collect2
21850           hardcode_direct_F77=unsupported
21851           # It fails to find uninstalled libraries when the uninstalled
21852           # path is not listed in the libpath.  Setting hardcode_minus_L
21853           # to unsupported forces relinking
21854           hardcode_minus_L_F77=yes
21855           hardcode_libdir_flag_spec_F77='-L$libdir'
21856           hardcode_libdir_separator_F77=
21857           fi
21858           ;;
21859         esac
21860         shared_flag='-shared'
21861         if test "$aix_use_runtimelinking" = yes; then
21862           shared_flag="$shared_flag "'${wl}-G'
21863         fi
21864       else
21865         # not using gcc
21866         if test "$host_cpu" = ia64; then
21867         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21868         # chokes on -Wl,-G. The following line is correct:
21869           shared_flag='-G'
21870         else
21871           if test "$aix_use_runtimelinking" = yes; then
21872             shared_flag='${wl}-G'
21873           else
21874             shared_flag='${wl}-bM:SRE'
21875           fi
21876         fi
21877       fi
21878
21879       # It seems that -bexpall does not export symbols beginning with
21880       # underscore (_), so it is better to generate a list of symbols to export.
21881       always_export_symbols_F77=yes
21882       if test "$aix_use_runtimelinking" = yes; then
21883         # Warning - without using the other runtime loading flags (-brtl),
21884         # -berok will link without error, but may produce a broken library.
21885         allow_undefined_flag_F77='-berok'
21886        # Determine the default libpath from the value encoded in an empty executable.
21887        cat >conftest.$ac_ext <<_ACEOF
21888       program main
21889
21890       end
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896   *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899   (eval "$ac_link") 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } &&
21906          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21907   { (case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_try") 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); }; } &&
21916          { ac_try='test -s conftest$ac_exeext'
21917   { (case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_try") 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; }; then
21926
21927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21928 }'`
21929 # Check for a 64-bit object if we didn't find anything.
21930 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; }
21931 }'`; fi
21932 else
21933   echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21935
21936
21937 fi
21938
21939 rm -f core conftest.err conftest.$ac_objext \
21940       conftest$ac_exeext conftest.$ac_ext
21941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21942
21943        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21944         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"
21945        else
21946         if test "$host_cpu" = ia64; then
21947           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21948           allow_undefined_flag_F77="-z nodefs"
21949           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"
21950         else
21951          # Determine the default libpath from the value encoded in an empty executable.
21952          cat >conftest.$ac_ext <<_ACEOF
21953       program main
21954
21955       end
21956 _ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_link") 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } &&
21971          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21972   { (case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_try") 2>&5
21978   ac_status=$?
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); }; } &&
21981          { ac_try='test -s conftest$ac_exeext'
21982   { (case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_try") 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; }; then
21991
21992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21993 }'`
21994 # Check for a 64-bit object if we didn't find anything.
21995 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; }
21996 }'`; fi
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001
22002 fi
22003
22004 rm -f core conftest.err conftest.$ac_objext \
22005       conftest$ac_exeext conftest.$ac_ext
22006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22007
22008          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22009           # Warning - without using the other run time loading flags,
22010           # -berok will link without error, but may produce a broken library.
22011           no_undefined_flag_F77=' ${wl}-bernotok'
22012           allow_undefined_flag_F77=' ${wl}-berok'
22013           # Exported symbols can be pulled into shared objects from archives
22014           whole_archive_flag_spec_F77='$convenience'
22015           archive_cmds_need_lc_F77=yes
22016           # This is similar to how AIX traditionally builds its shared libraries.
22017           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'
22018         fi
22019       fi
22020       ;;
22021
22022     amigaos*)
22023       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)'
22024       hardcode_libdir_flag_spec_F77='-L$libdir'
22025       hardcode_minus_L_F77=yes
22026       # see comment about different semantics on the GNU ld section
22027       ld_shlibs_F77=no
22028       ;;
22029
22030     bsdi[45]*)
22031       export_dynamic_flag_spec_F77=-rdynamic
22032       ;;
22033
22034     cygwin* | mingw* | pw32*)
22035       # When not using gcc, we currently assume that we are using
22036       # Microsoft Visual C++.
22037       # hardcode_libdir_flag_spec is actually meaningless, as there is
22038       # no search path for DLLs.
22039       hardcode_libdir_flag_spec_F77=' '
22040       allow_undefined_flag_F77=unsupported
22041       # Tell ltmain to make .lib files, not .a files.
22042       libext=lib
22043       # Tell ltmain to make .dll files, not .so files.
22044       shrext_cmds=".dll"
22045       # FIXME: Setting linknames here is a bad hack.
22046       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22047       # The linker will automatically build a .lib file if we build a DLL.
22048       old_archive_From_new_cmds_F77='true'
22049       # FIXME: Should let the user specify the lib program.
22050       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22051       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22052       enable_shared_with_static_runtimes_F77=yes
22053       ;;
22054
22055     darwin* | rhapsody*)
22056       case $host_os in
22057         rhapsody* | darwin1.[012])
22058          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22059          ;;
22060        *) # Darwin 1.3 on
22061          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22062            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22063          else
22064            case ${MACOSX_DEPLOYMENT_TARGET} in
22065              10.[012])
22066                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22067                ;;
22068              10.*)
22069                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22070                ;;
22071            esac
22072          fi
22073          ;;
22074       esac
22075       archive_cmds_need_lc_F77=no
22076       hardcode_direct_F77=no
22077       hardcode_automatic_F77=yes
22078       hardcode_shlibpath_var_F77=unsupported
22079       whole_archive_flag_spec_F77=''
22080       link_all_deplibs_F77=yes
22081     if test "$GCC" = yes ; then
22082         output_verbose_link_cmd='echo'
22083         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22084       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22085       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22086       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}'
22087       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}'
22088     else
22089       case $cc_basename in
22090         xlc*)
22091          output_verbose_link_cmd='echo'
22092          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22093          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22094           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22095          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}'
22096           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}'
22097           ;;
22098        *)
22099          ld_shlibs_F77=no
22100           ;;
22101       esac
22102     fi
22103       ;;
22104
22105     dgux*)
22106       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22107       hardcode_libdir_flag_spec_F77='-L$libdir'
22108       hardcode_shlibpath_var_F77=no
22109       ;;
22110
22111     freebsd1*)
22112       ld_shlibs_F77=no
22113       ;;
22114
22115     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22116     # support.  Future versions do this automatically, but an explicit c++rt0.o
22117     # does not break anything, and helps significantly (at the cost of a little
22118     # extra space).
22119     freebsd2.2*)
22120       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22121       hardcode_libdir_flag_spec_F77='-R$libdir'
22122       hardcode_direct_F77=yes
22123       hardcode_shlibpath_var_F77=no
22124       ;;
22125
22126     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22127     freebsd2*)
22128       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22129       hardcode_direct_F77=yes
22130       hardcode_minus_L_F77=yes
22131       hardcode_shlibpath_var_F77=no
22132       ;;
22133
22134     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22135     freebsd* | kfreebsd*-gnu | dragonfly*)
22136       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22137       hardcode_libdir_flag_spec_F77='-R$libdir'
22138       hardcode_direct_F77=yes
22139       hardcode_shlibpath_var_F77=no
22140       ;;
22141
22142     hpux9*)
22143       if test "$GCC" = yes; then
22144         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'
22145       else
22146         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'
22147       fi
22148       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22149       hardcode_libdir_separator_F77=:
22150       hardcode_direct_F77=yes
22151
22152       # hardcode_minus_L: Not really in the search PATH,
22153       # but as the default location of the library.
22154       hardcode_minus_L_F77=yes
22155       export_dynamic_flag_spec_F77='${wl}-E'
22156       ;;
22157
22158     hpux10*)
22159       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22160         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22161       else
22162         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22163       fi
22164       if test "$with_gnu_ld" = no; then
22165         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22166         hardcode_libdir_separator_F77=:
22167
22168         hardcode_direct_F77=yes
22169         export_dynamic_flag_spec_F77='${wl}-E'
22170
22171         # hardcode_minus_L: Not really in the search PATH,
22172         # but as the default location of the library.
22173         hardcode_minus_L_F77=yes
22174       fi
22175       ;;
22176
22177     hpux11*)
22178       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22179         case $host_cpu in
22180         hppa*64*)
22181           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22182           ;;
22183         ia64*)
22184           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22185           ;;
22186         *)
22187           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22188           ;;
22189         esac
22190       else
22191         case $host_cpu in
22192         hppa*64*)
22193           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22194           ;;
22195         ia64*)
22196           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22197           ;;
22198         *)
22199           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22200           ;;
22201         esac
22202       fi
22203       if test "$with_gnu_ld" = no; then
22204         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22205         hardcode_libdir_separator_F77=:
22206
22207         case $host_cpu in
22208         hppa*64*|ia64*)
22209           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22210           hardcode_direct_F77=no
22211           hardcode_shlibpath_var_F77=no
22212           ;;
22213         *)
22214           hardcode_direct_F77=yes
22215           export_dynamic_flag_spec_F77='${wl}-E'
22216
22217           # hardcode_minus_L: Not really in the search PATH,
22218           # but as the default location of the library.
22219           hardcode_minus_L_F77=yes
22220           ;;
22221         esac
22222       fi
22223       ;;
22224
22225     irix5* | irix6* | nonstopux*)
22226       if test "$GCC" = yes; then
22227         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'
22228       else
22229         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'
22230         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22231       fi
22232       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22233       hardcode_libdir_separator_F77=:
22234       link_all_deplibs_F77=yes
22235       ;;
22236
22237     netbsd*)
22238       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22240       else
22241         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22242       fi
22243       hardcode_libdir_flag_spec_F77='-R$libdir'
22244       hardcode_direct_F77=yes
22245       hardcode_shlibpath_var_F77=no
22246       ;;
22247
22248     newsos6)
22249       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250       hardcode_direct_F77=yes
22251       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22252       hardcode_libdir_separator_F77=:
22253       hardcode_shlibpath_var_F77=no
22254       ;;
22255
22256     openbsd*)
22257       hardcode_direct_F77=yes
22258       hardcode_shlibpath_var_F77=no
22259       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22261         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22262         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22263         export_dynamic_flag_spec_F77='${wl}-E'
22264       else
22265        case $host_os in
22266          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268            hardcode_libdir_flag_spec_F77='-R$libdir'
22269            ;;
22270          *)
22271            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22273            ;;
22274        esac
22275       fi
22276       ;;
22277
22278     os2*)
22279       hardcode_libdir_flag_spec_F77='-L$libdir'
22280       hardcode_minus_L_F77=yes
22281       allow_undefined_flag_F77=unsupported
22282       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'
22283       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22284       ;;
22285
22286     osf3*)
22287       if test "$GCC" = yes; then
22288         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22289         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'
22290       else
22291         allow_undefined_flag_F77=' -expect_unresolved \*'
22292         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'
22293       fi
22294       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22295       hardcode_libdir_separator_F77=:
22296       ;;
22297
22298     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22299       if test "$GCC" = yes; then
22300         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22301         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'
22302         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303       else
22304         allow_undefined_flag_F77=' -expect_unresolved \*'
22305         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'
22306         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~
22307         $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'
22308
22309         # Both c and cxx compiler support -rpath directly
22310         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22311       fi
22312       hardcode_libdir_separator_F77=:
22313       ;;
22314
22315     solaris*)
22316       no_undefined_flag_F77=' -z text'
22317       if test "$GCC" = yes; then
22318         wlarc='${wl}'
22319         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22321           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22322       else
22323         wlarc=''
22324         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22325         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22326         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22327       fi
22328       hardcode_libdir_flag_spec_F77='-R$libdir'
22329       hardcode_shlibpath_var_F77=no
22330       case $host_os in
22331       solaris2.[0-5] | solaris2.[0-5].*) ;;
22332       *)
22333         # The compiler driver will combine linker options so we
22334         # cannot just pass the convience library names through
22335         # without $wl, iff we do not link with $LD.
22336         # Luckily, gcc supports the same syntax we need for Sun Studio.
22337         # Supported since Solaris 2.6 (maybe 2.5.1?)
22338         case $wlarc in
22339         '')
22340           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22341         *)
22342           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' ;;
22343         esac ;;
22344       esac
22345       link_all_deplibs_F77=yes
22346       ;;
22347
22348     sunos4*)
22349       if test "x$host_vendor" = xsequent; then
22350         # Use $CC to link under sequent, because it throws in some extra .o
22351         # files that make .init and .fini sections work.
22352         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22353       else
22354         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22355       fi
22356       hardcode_libdir_flag_spec_F77='-L$libdir'
22357       hardcode_direct_F77=yes
22358       hardcode_minus_L_F77=yes
22359       hardcode_shlibpath_var_F77=no
22360       ;;
22361
22362     sysv4)
22363       case $host_vendor in
22364         sni)
22365           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22366           hardcode_direct_F77=yes # is this really true???
22367         ;;
22368         siemens)
22369           ## LD is ld it makes a PLAMLIB
22370           ## CC just makes a GrossModule.
22371           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22372           reload_cmds_F77='$CC -r -o $output$reload_objs'
22373           hardcode_direct_F77=no
22374         ;;
22375         motorola)
22376           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22377           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22378         ;;
22379       esac
22380       runpath_var='LD_RUN_PATH'
22381       hardcode_shlibpath_var_F77=no
22382       ;;
22383
22384     sysv4.3*)
22385       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386       hardcode_shlibpath_var_F77=no
22387       export_dynamic_flag_spec_F77='-Bexport'
22388       ;;
22389
22390     sysv4*MP*)
22391       if test -d /usr/nec; then
22392         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22393         hardcode_shlibpath_var_F77=no
22394         runpath_var=LD_RUN_PATH
22395         hardcode_runpath_var=yes
22396         ld_shlibs_F77=yes
22397       fi
22398       ;;
22399
22400     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22401       no_undefined_flag_F77='${wl}-z,text'
22402       archive_cmds_need_lc_F77=no
22403       hardcode_shlibpath_var_F77=no
22404       runpath_var='LD_RUN_PATH'
22405
22406       if test "$GCC" = yes; then
22407         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22408         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22409       else
22410         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22411         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22412       fi
22413       ;;
22414
22415     sysv5* | sco3.2v5* | sco5v6*)
22416       # Note: We can NOT use -z defs as we might desire, because we do not
22417       # link with -lc, and that would cause any symbols used from libc to
22418       # always be unresolved, which means just about no library would
22419       # ever link correctly.  If we're not using GNU ld we use -z text
22420       # though, which does catch some bad symbols but isn't as heavy-handed
22421       # as -z defs.
22422       no_undefined_flag_F77='${wl}-z,text'
22423       allow_undefined_flag_F77='${wl}-z,nodefs'
22424       archive_cmds_need_lc_F77=no
22425       hardcode_shlibpath_var_F77=no
22426       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22427       hardcode_libdir_separator_F77=':'
22428       link_all_deplibs_F77=yes
22429       export_dynamic_flag_spec_F77='${wl}-Bexport'
22430       runpath_var='LD_RUN_PATH'
22431
22432       if test "$GCC" = yes; then
22433         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22434         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22435       else
22436         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22437         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22438       fi
22439       ;;
22440
22441     uts4*)
22442       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22443       hardcode_libdir_flag_spec_F77='-L$libdir'
22444       hardcode_shlibpath_var_F77=no
22445       ;;
22446
22447     *)
22448       ld_shlibs_F77=no
22449       ;;
22450     esac
22451   fi
22452
22453 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22454 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22455 test "$ld_shlibs_F77" = no && can_build_shared=no
22456
22457 #
22458 # Do we need to explicitly link libc?
22459 #
22460 case "x$archive_cmds_need_lc_F77" in
22461 x|xyes)
22462   # Assume -lc should be added
22463   archive_cmds_need_lc_F77=yes
22464
22465   if test "$enable_shared" = yes && test "$GCC" = yes; then
22466     case $archive_cmds_F77 in
22467     *'~'*)
22468       # FIXME: we may have to deal with multi-command sequences.
22469       ;;
22470     '$CC '*)
22471       # Test whether the compiler implicitly links with -lc since on some
22472       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22473       # to ld, don't add -lc before -lgcc.
22474       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22475 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22476       $rm conftest*
22477       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22478
22479       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22480   (eval $ac_compile) 2>&5
22481   ac_status=$?
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } 2>conftest.err; then
22484         soname=conftest
22485         lib=conftest
22486         libobjs=conftest.$ac_objext
22487         deplibs=
22488         wl=$lt_prog_compiler_wl_F77
22489         pic_flag=$lt_prog_compiler_pic_F77
22490         compiler_flags=-v
22491         linker_flags=-v
22492         verstring=
22493         output_objdir=.
22494         libname=conftest
22495         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22496         allow_undefined_flag_F77=
22497         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22498   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); }
22502         then
22503           archive_cmds_need_lc_F77=no
22504         else
22505           archive_cmds_need_lc_F77=yes
22506         fi
22507         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22508       else
22509         cat conftest.err 1>&5
22510       fi
22511       $rm conftest*
22512       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22513 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22514       ;;
22515     esac
22516   fi
22517   ;;
22518 esac
22519
22520 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22522 library_names_spec=
22523 libname_spec='lib$name'
22524 soname_spec=
22525 shrext_cmds=".so"
22526 postinstall_cmds=
22527 postuninstall_cmds=
22528 finish_cmds=
22529 finish_eval=
22530 shlibpath_var=
22531 shlibpath_overrides_runpath=unknown
22532 version_type=none
22533 dynamic_linker="$host_os ld.so"
22534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22535 if test "$GCC" = yes; then
22536   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22537   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22538     # if the path contains ";" then we assume it to be the separator
22539     # otherwise default to the standard path separator (i.e. ":") - it is
22540     # assumed that no part of a normal pathname contains ";" but that should
22541     # okay in the real world where ";" in dirpaths is itself problematic.
22542     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22543   else
22544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22545   fi
22546 else
22547   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22548 fi
22549 need_lib_prefix=unknown
22550 hardcode_into_libs=no
22551
22552 # when you set need_version to no, make sure it does not cause -set_version
22553 # flags to be left without arguments
22554 need_version=unknown
22555
22556 case $host_os in
22557 aix3*)
22558   version_type=linux
22559   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22560   shlibpath_var=LIBPATH
22561
22562   # AIX 3 has no versioning support, so we append a major version to the name.
22563   soname_spec='${libname}${release}${shared_ext}$major'
22564   ;;
22565
22566 aix4* | aix5*)
22567   version_type=linux
22568   need_lib_prefix=no
22569   need_version=no
22570   hardcode_into_libs=yes
22571   if test "$host_cpu" = ia64; then
22572     # AIX 5 supports IA64
22573     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22574     shlibpath_var=LD_LIBRARY_PATH
22575   else
22576     # With GCC up to 2.95.x, collect2 would create an import file
22577     # for dependence libraries.  The import file would start with
22578     # the line `#! .'.  This would cause the generated library to
22579     # depend on `.', always an invalid library.  This was fixed in
22580     # development snapshots of GCC prior to 3.0.
22581     case $host_os in
22582       aix4 | aix4.[01] | aix4.[01].*)
22583       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22584            echo ' yes '
22585            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22586         :
22587       else
22588         can_build_shared=no
22589       fi
22590       ;;
22591     esac
22592     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22593     # soname into executable. Probably we can add versioning support to
22594     # collect2, so additional links can be useful in future.
22595     if test "$aix_use_runtimelinking" = yes; then
22596       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22597       # instead of lib<name>.a to let people know that these are not
22598       # typical AIX shared libraries.
22599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22600     else
22601       # We preserve .a as extension for shared libraries through AIX4.2
22602       # and later when we are not doing run time linking.
22603       library_names_spec='${libname}${release}.a $libname.a'
22604       soname_spec='${libname}${release}${shared_ext}$major'
22605     fi
22606     shlibpath_var=LIBPATH
22607   fi
22608   ;;
22609
22610 amigaos*)
22611   library_names_spec='$libname.ixlibrary $libname.a'
22612   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22613   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'
22614   ;;
22615
22616 beos*)
22617   library_names_spec='${libname}${shared_ext}'
22618   dynamic_linker="$host_os ld.so"
22619   shlibpath_var=LIBRARY_PATH
22620   ;;
22621
22622 bsdi[45]*)
22623   version_type=linux
22624   need_version=no
22625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22626   soname_spec='${libname}${release}${shared_ext}$major'
22627   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22628   shlibpath_var=LD_LIBRARY_PATH
22629   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22630   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22631   # the default ld.so.conf also contains /usr/contrib/lib and
22632   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22633   # libtool to hard-code these into programs
22634   ;;
22635
22636 cygwin* | mingw* | pw32*)
22637   version_type=windows
22638   shrext_cmds=".dll"
22639   need_version=no
22640   need_lib_prefix=no
22641
22642   case $GCC,$host_os in
22643   yes,cygwin* | yes,mingw* | yes,pw32*)
22644     library_names_spec='$libname.dll.a'
22645     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22646     postinstall_cmds='base_file=`basename \${file}`~
22647       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22648       dldir=$destdir/`dirname \$dlpath`~
22649       test -d \$dldir || mkdir -p \$dldir~
22650       $install_prog $dir/$dlname \$dldir/$dlname~
22651       chmod a+x \$dldir/$dlname'
22652     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22653       dlpath=$dir/\$dldll~
22654        $rm \$dlpath'
22655     shlibpath_overrides_runpath=yes
22656
22657     case $host_os in
22658     cygwin*)
22659       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22660       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22661       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22662       ;;
22663     mingw*)
22664       # MinGW DLLs use traditional 'lib' prefix
22665       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22666       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22667       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22668         # It is most probably a Windows format PATH printed by
22669         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22670         # path with ; separators, and with drive letters. We can handle the
22671         # drive letters (cygwin fileutils understands them), so leave them,
22672         # especially as we might pass files found there to a mingw objdump,
22673         # which wouldn't understand a cygwinified path. Ahh.
22674         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22675       else
22676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22677       fi
22678       ;;
22679     pw32*)
22680       # pw32 DLLs use 'pw' prefix rather than 'lib'
22681       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22682       ;;
22683     esac
22684     ;;
22685
22686   *)
22687     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22688     ;;
22689   esac
22690   dynamic_linker='Win32 ld.exe'
22691   # FIXME: first we should search . and the directory the executable is in
22692   shlibpath_var=PATH
22693   ;;
22694
22695 darwin* | rhapsody*)
22696   dynamic_linker="$host_os dyld"
22697   version_type=darwin
22698   need_lib_prefix=no
22699   need_version=no
22700   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22701   soname_spec='${libname}${release}${major}$shared_ext'
22702   shlibpath_overrides_runpath=yes
22703   shlibpath_var=DYLD_LIBRARY_PATH
22704   shrext_cmds='.dylib'
22705   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22706   if test "$GCC" = yes; then
22707     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"`
22708   else
22709     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22710   fi
22711   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22712   ;;
22713
22714 dgux*)
22715   version_type=linux
22716   need_lib_prefix=no
22717   need_version=no
22718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22719   soname_spec='${libname}${release}${shared_ext}$major'
22720   shlibpath_var=LD_LIBRARY_PATH
22721   ;;
22722
22723 freebsd1*)
22724   dynamic_linker=no
22725   ;;
22726
22727 kfreebsd*-gnu)
22728   version_type=linux
22729   need_lib_prefix=no
22730   need_version=no
22731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22732   soname_spec='${libname}${release}${shared_ext}$major'
22733   shlibpath_var=LD_LIBRARY_PATH
22734   shlibpath_overrides_runpath=no
22735   hardcode_into_libs=yes
22736   dynamic_linker='GNU ld.so'
22737   ;;
22738
22739 freebsd* | dragonfly*)
22740   # DragonFly does not have aout.  When/if they implement a new
22741   # versioning mechanism, adjust this.
22742   if test -x /usr/bin/objformat; then
22743     objformat=`/usr/bin/objformat`
22744   else
22745     case $host_os in
22746     freebsd[123]*) objformat=aout ;;
22747     *) objformat=elf ;;
22748     esac
22749   fi
22750   version_type=freebsd-$objformat
22751   case $version_type in
22752     freebsd-elf*)
22753       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22754       need_version=no
22755       need_lib_prefix=no
22756       ;;
22757     freebsd-*)
22758       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22759       need_version=yes
22760       ;;
22761   esac
22762   shlibpath_var=LD_LIBRARY_PATH
22763   case $host_os in
22764   freebsd2*)
22765     shlibpath_overrides_runpath=yes
22766     ;;
22767   freebsd3.[01]* | freebsdelf3.[01]*)
22768     shlibpath_overrides_runpath=yes
22769     hardcode_into_libs=yes
22770     ;;
22771   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22772   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22773     shlibpath_overrides_runpath=no
22774     hardcode_into_libs=yes
22775     ;;
22776   freebsd*) # from 4.6 on
22777     shlibpath_overrides_runpath=yes
22778     hardcode_into_libs=yes
22779     ;;
22780   esac
22781   ;;
22782
22783 gnu*)
22784   version_type=linux
22785   need_lib_prefix=no
22786   need_version=no
22787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22788   soname_spec='${libname}${release}${shared_ext}$major'
22789   shlibpath_var=LD_LIBRARY_PATH
22790   hardcode_into_libs=yes
22791   ;;
22792
22793 hpux9* | hpux10* | hpux11*)
22794   # Give a soname corresponding to the major version so that dld.sl refuses to
22795   # link against other versions.
22796   version_type=sunos
22797   need_lib_prefix=no
22798   need_version=no
22799   case $host_cpu in
22800   ia64*)
22801     shrext_cmds='.so'
22802     hardcode_into_libs=yes
22803     dynamic_linker="$host_os dld.so"
22804     shlibpath_var=LD_LIBRARY_PATH
22805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807     soname_spec='${libname}${release}${shared_ext}$major'
22808     if test "X$HPUX_IA64_MODE" = X32; then
22809       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22810     else
22811       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22812     fi
22813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22814     ;;
22815    hppa*64*)
22816      shrext_cmds='.sl'
22817      hardcode_into_libs=yes
22818      dynamic_linker="$host_os dld.sl"
22819      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22820      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22821      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822      soname_spec='${libname}${release}${shared_ext}$major'
22823      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22824      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22825      ;;
22826    *)
22827     shrext_cmds='.sl'
22828     dynamic_linker="$host_os dld.sl"
22829     shlibpath_var=SHLIB_PATH
22830     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22832     soname_spec='${libname}${release}${shared_ext}$major'
22833     ;;
22834   esac
22835   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22836   postinstall_cmds='chmod 555 $lib'
22837   ;;
22838
22839 interix3*)
22840   version_type=linux
22841   need_lib_prefix=no
22842   need_version=no
22843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22844   soname_spec='${libname}${release}${shared_ext}$major'
22845   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22846   shlibpath_var=LD_LIBRARY_PATH
22847   shlibpath_overrides_runpath=no
22848   hardcode_into_libs=yes
22849   ;;
22850
22851 irix5* | irix6* | nonstopux*)
22852   case $host_os in
22853     nonstopux*) version_type=nonstopux ;;
22854     *)
22855         if test "$lt_cv_prog_gnu_ld" = yes; then
22856                 version_type=linux
22857         else
22858                 version_type=irix
22859         fi ;;
22860   esac
22861   need_lib_prefix=no
22862   need_version=no
22863   soname_spec='${libname}${release}${shared_ext}$major'
22864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22865   case $host_os in
22866   irix5* | nonstopux*)
22867     libsuff= shlibsuff=
22868     ;;
22869   *)
22870     case $LD in # libtool.m4 will add one of these switches to LD
22871     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22872       libsuff= shlibsuff= libmagic=32-bit;;
22873     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22874       libsuff=32 shlibsuff=N32 libmagic=N32;;
22875     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22876       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22877     *) libsuff= shlibsuff= libmagic=never-match;;
22878     esac
22879     ;;
22880   esac
22881   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22882   shlibpath_overrides_runpath=no
22883   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22884   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22885   hardcode_into_libs=yes
22886   ;;
22887
22888 # No shared lib support for Linux oldld, aout, or coff.
22889 linux*oldld* | linux*aout* | linux*coff*)
22890   dynamic_linker=no
22891   ;;
22892
22893 # This must be Linux ELF.
22894 linux*)
22895   version_type=linux
22896   need_lib_prefix=no
22897   need_version=no
22898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899   soname_spec='${libname}${release}${shared_ext}$major'
22900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22901   shlibpath_var=LD_LIBRARY_PATH
22902   shlibpath_overrides_runpath=no
22903   # This implies no fast_install, which is unacceptable.
22904   # Some rework will be needed to allow for fast_install
22905   # before this can be enabled.
22906   hardcode_into_libs=yes
22907
22908   # Append ld.so.conf contents to the search path
22909   if test -f /etc/ld.so.conf; then
22910     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' ' '`
22911     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22912   fi
22913
22914   # We used to test for /lib/ld.so.1 and disable shared libraries on
22915   # powerpc, because MkLinux only supported shared libraries with the
22916   # GNU dynamic linker.  Since this was broken with cross compilers,
22917   # most powerpc-linux boxes support dynamic linking these days and
22918   # people can always --disable-shared, the test was removed, and we
22919   # assume the GNU/Linux dynamic linker is in use.
22920   dynamic_linker='GNU/Linux ld.so'
22921   ;;
22922
22923 knetbsd*-gnu)
22924   version_type=linux
22925   need_lib_prefix=no
22926   need_version=no
22927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22928   soname_spec='${libname}${release}${shared_ext}$major'
22929   shlibpath_var=LD_LIBRARY_PATH
22930   shlibpath_overrides_runpath=no
22931   hardcode_into_libs=yes
22932   dynamic_linker='GNU ld.so'
22933   ;;
22934
22935 netbsd*)
22936   version_type=sunos
22937   need_lib_prefix=no
22938   need_version=no
22939   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22941     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22942     dynamic_linker='NetBSD (a.out) ld.so'
22943   else
22944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22945     soname_spec='${libname}${release}${shared_ext}$major'
22946     dynamic_linker='NetBSD ld.elf_so'
22947   fi
22948   shlibpath_var=LD_LIBRARY_PATH
22949   shlibpath_overrides_runpath=yes
22950   hardcode_into_libs=yes
22951   ;;
22952
22953 newsos6)
22954   version_type=linux
22955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22956   shlibpath_var=LD_LIBRARY_PATH
22957   shlibpath_overrides_runpath=yes
22958   ;;
22959
22960 nto-qnx*)
22961   version_type=linux
22962   need_lib_prefix=no
22963   need_version=no
22964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965   soname_spec='${libname}${release}${shared_ext}$major'
22966   shlibpath_var=LD_LIBRARY_PATH
22967   shlibpath_overrides_runpath=yes
22968   ;;
22969
22970 openbsd*)
22971   version_type=sunos
22972   sys_lib_dlsearch_path_spec="/usr/lib"
22973   need_lib_prefix=no
22974   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22975   case $host_os in
22976     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22977     *)                         need_version=no  ;;
22978   esac
22979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22980   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22981   shlibpath_var=LD_LIBRARY_PATH
22982   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22983     case $host_os in
22984       openbsd2.[89] | openbsd2.[89].*)
22985         shlibpath_overrides_runpath=no
22986         ;;
22987       *)
22988         shlibpath_overrides_runpath=yes
22989         ;;
22990       esac
22991   else
22992     shlibpath_overrides_runpath=yes
22993   fi
22994   ;;
22995
22996 os2*)
22997   libname_spec='$name'
22998   shrext_cmds=".dll"
22999   need_lib_prefix=no
23000   library_names_spec='$libname${shared_ext} $libname.a'
23001   dynamic_linker='OS/2 ld.exe'
23002   shlibpath_var=LIBPATH
23003   ;;
23004
23005 osf3* | osf4* | osf5*)
23006   version_type=osf
23007   need_lib_prefix=no
23008   need_version=no
23009   soname_spec='${libname}${release}${shared_ext}$major'
23010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011   shlibpath_var=LD_LIBRARY_PATH
23012   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23013   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23014   ;;
23015
23016 solaris*)
23017   version_type=linux
23018   need_lib_prefix=no
23019   need_version=no
23020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23021   soname_spec='${libname}${release}${shared_ext}$major'
23022   shlibpath_var=LD_LIBRARY_PATH
23023   shlibpath_overrides_runpath=yes
23024   hardcode_into_libs=yes
23025   # ldd complains unless libraries are executable
23026   postinstall_cmds='chmod +x $lib'
23027   ;;
23028
23029 sunos4*)
23030   version_type=sunos
23031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23032   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23033   shlibpath_var=LD_LIBRARY_PATH
23034   shlibpath_overrides_runpath=yes
23035   if test "$with_gnu_ld" = yes; then
23036     need_lib_prefix=no
23037   fi
23038   need_version=yes
23039   ;;
23040
23041 sysv4 | sysv4.3*)
23042   version_type=linux
23043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23044   soname_spec='${libname}${release}${shared_ext}$major'
23045   shlibpath_var=LD_LIBRARY_PATH
23046   case $host_vendor in
23047     sni)
23048       shlibpath_overrides_runpath=no
23049       need_lib_prefix=no
23050       export_dynamic_flag_spec='${wl}-Blargedynsym'
23051       runpath_var=LD_RUN_PATH
23052       ;;
23053     siemens)
23054       need_lib_prefix=no
23055       ;;
23056     motorola)
23057       need_lib_prefix=no
23058       need_version=no
23059       shlibpath_overrides_runpath=no
23060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23061       ;;
23062   esac
23063   ;;
23064
23065 sysv4*MP*)
23066   if test -d /usr/nec ;then
23067     version_type=linux
23068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23069     soname_spec='$libname${shared_ext}.$major'
23070     shlibpath_var=LD_LIBRARY_PATH
23071   fi
23072   ;;
23073
23074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23075   version_type=freebsd-elf
23076   need_lib_prefix=no
23077   need_version=no
23078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23079   soname_spec='${libname}${release}${shared_ext}$major'
23080   shlibpath_var=LD_LIBRARY_PATH
23081   hardcode_into_libs=yes
23082   if test "$with_gnu_ld" = yes; then
23083     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23084     shlibpath_overrides_runpath=no
23085   else
23086     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23087     shlibpath_overrides_runpath=yes
23088     case $host_os in
23089       sco3.2v5*)
23090         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23091         ;;
23092     esac
23093   fi
23094   sys_lib_dlsearch_path_spec='/usr/lib'
23095   ;;
23096
23097 uts4*)
23098   version_type=linux
23099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23100   soname_spec='${libname}${release}${shared_ext}$major'
23101   shlibpath_var=LD_LIBRARY_PATH
23102   ;;
23103
23104 *)
23105   dynamic_linker=no
23106   ;;
23107 esac
23108 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23109 echo "${ECHO_T}$dynamic_linker" >&6; }
23110 test "$dynamic_linker" = no && can_build_shared=no
23111
23112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23113 if test "$GCC" = yes; then
23114   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23115 fi
23116
23117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23119 hardcode_action_F77=
23120 if test -n "$hardcode_libdir_flag_spec_F77" || \
23121    test -n "$runpath_var_F77" || \
23122    test "X$hardcode_automatic_F77" = "Xyes" ; then
23123
23124   # We can hardcode non-existant directories.
23125   if test "$hardcode_direct_F77" != no &&
23126      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23127      # have to relink, otherwise we might link with an installed library
23128      # when we should be linking with a yet-to-be-installed one
23129      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23130      test "$hardcode_minus_L_F77" != no; then
23131     # Linking always hardcodes the temporary library directory.
23132     hardcode_action_F77=relink
23133   else
23134     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23135     hardcode_action_F77=immediate
23136   fi
23137 else
23138   # We cannot hardcode anything, or else we can only hardcode existing
23139   # directories.
23140   hardcode_action_F77=unsupported
23141 fi
23142 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23143 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23144
23145 if test "$hardcode_action_F77" = relink; then
23146   # Fast installation is not supported
23147   enable_fast_install=no
23148 elif test "$shlibpath_overrides_runpath" = yes ||
23149      test "$enable_shared" = no; then
23150   # Fast installation is not necessary
23151   enable_fast_install=needless
23152 fi
23153
23154
23155 # The else clause should only fire when bootstrapping the
23156 # libtool distribution, otherwise you forgot to ship ltmain.sh
23157 # with your package, and you will get complaints that there are
23158 # no rules to generate ltmain.sh.
23159 if test -f "$ltmain"; then
23160   # See if we are running on zsh, and set the options which allow our commands through
23161   # without removal of \ escapes.
23162   if test -n "${ZSH_VERSION+set}" ; then
23163     setopt NO_GLOB_SUBST
23164   fi
23165   # Now quote all the things that may contain metacharacters while being
23166   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23167   # variables and quote the copies for generation of the libtool script.
23168   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23169     SED SHELL STRIP \
23170     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23171     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23172     deplibs_check_method reload_flag reload_cmds need_locks \
23173     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23174     lt_cv_sys_global_symbol_to_c_name_address \
23175     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23176     old_postinstall_cmds old_postuninstall_cmds \
23177     compiler_F77 \
23178     CC_F77 \
23179     LD_F77 \
23180     lt_prog_compiler_wl_F77 \
23181     lt_prog_compiler_pic_F77 \
23182     lt_prog_compiler_static_F77 \
23183     lt_prog_compiler_no_builtin_flag_F77 \
23184     export_dynamic_flag_spec_F77 \
23185     thread_safe_flag_spec_F77 \
23186     whole_archive_flag_spec_F77 \
23187     enable_shared_with_static_runtimes_F77 \
23188     old_archive_cmds_F77 \
23189     old_archive_from_new_cmds_F77 \
23190     predep_objects_F77 \
23191     postdep_objects_F77 \
23192     predeps_F77 \
23193     postdeps_F77 \
23194     compiler_lib_search_path_F77 \
23195     archive_cmds_F77 \
23196     archive_expsym_cmds_F77 \
23197     postinstall_cmds_F77 \
23198     postuninstall_cmds_F77 \
23199     old_archive_from_expsyms_cmds_F77 \
23200     allow_undefined_flag_F77 \
23201     no_undefined_flag_F77 \
23202     export_symbols_cmds_F77 \
23203     hardcode_libdir_flag_spec_F77 \
23204     hardcode_libdir_flag_spec_ld_F77 \
23205     hardcode_libdir_separator_F77 \
23206     hardcode_automatic_F77 \
23207     module_cmds_F77 \
23208     module_expsym_cmds_F77 \
23209     lt_cv_prog_compiler_c_o_F77 \
23210     exclude_expsyms_F77 \
23211     include_expsyms_F77; do
23212
23213     case $var in
23214     old_archive_cmds_F77 | \
23215     old_archive_from_new_cmds_F77 | \
23216     archive_cmds_F77 | \
23217     archive_expsym_cmds_F77 | \
23218     module_cmds_F77 | \
23219     module_expsym_cmds_F77 | \
23220     old_archive_from_expsyms_cmds_F77 | \
23221     export_symbols_cmds_F77 | \
23222     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23223     postinstall_cmds | postuninstall_cmds | \
23224     old_postinstall_cmds | old_postuninstall_cmds | \
23225     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23226       # Double-quote double-evaled strings.
23227       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23228       ;;
23229     *)
23230       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23231       ;;
23232     esac
23233   done
23234
23235   case $lt_echo in
23236   *'\$0 --fallback-echo"')
23237     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23238     ;;
23239   esac
23240
23241 cfgfile="$ofile"
23242
23243   cat <<__EOF__ >> "$cfgfile"
23244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23245
23246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23247
23248 # Shell to use when invoking shell scripts.
23249 SHELL=$lt_SHELL
23250
23251 # Whether or not to build shared libraries.
23252 build_libtool_libs=$enable_shared
23253
23254 # Whether or not to build static libraries.
23255 build_old_libs=$enable_static
23256
23257 # Whether or not to add -lc for building shared libraries.
23258 build_libtool_need_lc=$archive_cmds_need_lc_F77
23259
23260 # Whether or not to disallow shared libs when runtime libs are static
23261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23262
23263 # Whether or not to optimize for fast installation.
23264 fast_install=$enable_fast_install
23265
23266 # The host system.
23267 host_alias=$host_alias
23268 host=$host
23269 host_os=$host_os
23270
23271 # The build system.
23272 build_alias=$build_alias
23273 build=$build
23274 build_os=$build_os
23275
23276 # An echo program that does not interpret backslashes.
23277 echo=$lt_echo
23278
23279 # The archiver.
23280 AR=$lt_AR
23281 AR_FLAGS=$lt_AR_FLAGS
23282
23283 # A C compiler.
23284 LTCC=$lt_LTCC
23285
23286 # LTCC compiler flags.
23287 LTCFLAGS=$lt_LTCFLAGS
23288
23289 # A language-specific compiler.
23290 CC=$lt_compiler_F77
23291
23292 # Is the compiler the GNU C compiler?
23293 with_gcc=$GCC_F77
23294
23295 # An ERE matcher.
23296 EGREP=$lt_EGREP
23297
23298 # The linker used to build libraries.
23299 LD=$lt_LD_F77
23300
23301 # Whether we need hard or soft links.
23302 LN_S=$lt_LN_S
23303
23304 # A BSD-compatible nm program.
23305 NM=$lt_NM
23306
23307 # A symbol stripping program
23308 STRIP=$lt_STRIP
23309
23310 # Used to examine libraries when file_magic_cmd begins "file"
23311 MAGIC_CMD=$MAGIC_CMD
23312
23313 # Used on cygwin: DLL creation program.
23314 DLLTOOL="$DLLTOOL"
23315
23316 # Used on cygwin: object dumper.
23317 OBJDUMP="$OBJDUMP"
23318
23319 # Used on cygwin: assembler.
23320 AS="$AS"
23321
23322 # The name of the directory that contains temporary libtool files.
23323 objdir=$objdir
23324
23325 # How to create reloadable object files.
23326 reload_flag=$lt_reload_flag
23327 reload_cmds=$lt_reload_cmds
23328
23329 # How to pass a linker flag through the compiler.
23330 wl=$lt_lt_prog_compiler_wl_F77
23331
23332 # Object file suffix (normally "o").
23333 objext="$ac_objext"
23334
23335 # Old archive suffix (normally "a").
23336 libext="$libext"
23337
23338 # Shared library suffix (normally ".so").
23339 shrext_cmds='$shrext_cmds'
23340
23341 # Executable file suffix (normally "").
23342 exeext="$exeext"
23343
23344 # Additional compiler flags for building library objects.
23345 pic_flag=$lt_lt_prog_compiler_pic_F77
23346 pic_mode=$pic_mode
23347
23348 # What is the maximum length of a command?
23349 max_cmd_len=$lt_cv_sys_max_cmd_len
23350
23351 # Does compiler simultaneously support -c and -o options?
23352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23353
23354 # Must we lock files when doing compilation?
23355 need_locks=$lt_need_locks
23356
23357 # Do we need the lib prefix for modules?
23358 need_lib_prefix=$need_lib_prefix
23359
23360 # Do we need a version for libraries?
23361 need_version=$need_version
23362
23363 # Whether dlopen is supported.
23364 dlopen_support=$enable_dlopen
23365
23366 # Whether dlopen of programs is supported.
23367 dlopen_self=$enable_dlopen_self
23368
23369 # Whether dlopen of statically linked programs is supported.
23370 dlopen_self_static=$enable_dlopen_self_static
23371
23372 # Compiler flag to prevent dynamic linking.
23373 link_static_flag=$lt_lt_prog_compiler_static_F77
23374
23375 # Compiler flag to turn off builtin functions.
23376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23377
23378 # Compiler flag to allow reflexive dlopens.
23379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23380
23381 # Compiler flag to generate shared objects directly from archives.
23382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23383
23384 # Compiler flag to generate thread-safe objects.
23385 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23386
23387 # Library versioning type.
23388 version_type=$version_type
23389
23390 # Format of library name prefix.
23391 libname_spec=$lt_libname_spec
23392
23393 # List of archive names.  First name is the real one, the rest are links.
23394 # The last name is the one that the linker finds with -lNAME.
23395 library_names_spec=$lt_library_names_spec
23396
23397 # The coded name of the library, if different from the real name.
23398 soname_spec=$lt_soname_spec
23399
23400 # Commands used to build and install an old-style archive.
23401 RANLIB=$lt_RANLIB
23402 old_archive_cmds=$lt_old_archive_cmds_F77
23403 old_postinstall_cmds=$lt_old_postinstall_cmds
23404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23405
23406 # Create an old-style archive from a shared archive.
23407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23408
23409 # Create a temporary old-style archive to link instead of a shared archive.
23410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23411
23412 # Commands used to build and install a shared archive.
23413 archive_cmds=$lt_archive_cmds_F77
23414 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23415 postinstall_cmds=$lt_postinstall_cmds
23416 postuninstall_cmds=$lt_postuninstall_cmds
23417
23418 # Commands used to build a loadable module (assumed same as above if empty)
23419 module_cmds=$lt_module_cmds_F77
23420 module_expsym_cmds=$lt_module_expsym_cmds_F77
23421
23422 # Commands to strip libraries.
23423 old_striplib=$lt_old_striplib
23424 striplib=$lt_striplib
23425
23426 # Dependencies to place before the objects being linked to create a
23427 # shared library.
23428 predep_objects=$lt_predep_objects_F77
23429
23430 # Dependencies to place after the objects being linked to create a
23431 # shared library.
23432 postdep_objects=$lt_postdep_objects_F77
23433
23434 # Dependencies to place before the objects being linked to create a
23435 # shared library.
23436 predeps=$lt_predeps_F77
23437
23438 # Dependencies to place after the objects being linked to create a
23439 # shared library.
23440 postdeps=$lt_postdeps_F77
23441
23442 # The library search path used internally by the compiler when linking
23443 # a shared library.
23444 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23445
23446 # Method to check whether dependent libraries are shared objects.
23447 deplibs_check_method=$lt_deplibs_check_method
23448
23449 # Command to use when deplibs_check_method == file_magic.
23450 file_magic_cmd=$lt_file_magic_cmd
23451
23452 # Flag that allows shared libraries with undefined symbols to be built.
23453 allow_undefined_flag=$lt_allow_undefined_flag_F77
23454
23455 # Flag that forces no undefined symbols.
23456 no_undefined_flag=$lt_no_undefined_flag_F77
23457
23458 # Commands used to finish a libtool library installation in a directory.
23459 finish_cmds=$lt_finish_cmds
23460
23461 # Same as above, but a single script fragment to be evaled but not shown.
23462 finish_eval=$lt_finish_eval
23463
23464 # Take the output of nm and produce a listing of raw symbols and C names.
23465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23466
23467 # Transform the output of nm in a proper C declaration
23468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23469
23470 # Transform the output of nm in a C name address pair
23471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23472
23473 # This is the shared library runtime path variable.
23474 runpath_var=$runpath_var
23475
23476 # This is the shared library path variable.
23477 shlibpath_var=$shlibpath_var
23478
23479 # Is shlibpath searched before the hard-coded library search path?
23480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23481
23482 # How to hardcode a shared library path into an executable.
23483 hardcode_action=$hardcode_action_F77
23484
23485 # Whether we should hardcode library paths into libraries.
23486 hardcode_into_libs=$hardcode_into_libs
23487
23488 # Flag to hardcode \$libdir into a binary during linking.
23489 # This must work even if \$libdir does not exist.
23490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23491
23492 # If ld is used when linking, flag to hardcode \$libdir into
23493 # a binary during linking. This must work even if \$libdir does
23494 # not exist.
23495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23496
23497 # Whether we need a single -rpath flag with a separated argument.
23498 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23499
23500 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23501 # resulting binary.
23502 hardcode_direct=$hardcode_direct_F77
23503
23504 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23505 # resulting binary.
23506 hardcode_minus_L=$hardcode_minus_L_F77
23507
23508 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23509 # the resulting binary.
23510 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23511
23512 # Set to yes if building a shared library automatically hardcodes DIR into the library
23513 # and all subsequent libraries and executables linked against it.
23514 hardcode_automatic=$hardcode_automatic_F77
23515
23516 # Variables whose values should be saved in libtool wrapper scripts and
23517 # restored at relink time.
23518 variables_saved_for_relink="$variables_saved_for_relink"
23519
23520 # Whether libtool must link a program against all its dependency libraries.
23521 link_all_deplibs=$link_all_deplibs_F77
23522
23523 # Compile-time system search path for libraries
23524 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23525
23526 # Run-time system search path for libraries
23527 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23528
23529 # Fix the shell variable \$srcfile for the compiler.
23530 fix_srcfile_path="$fix_srcfile_path_F77"
23531
23532 # Set to yes if exported symbols are required.
23533 always_export_symbols=$always_export_symbols_F77
23534
23535 # The commands to list exported symbols.
23536 export_symbols_cmds=$lt_export_symbols_cmds_F77
23537
23538 # The commands to extract the exported symbol list from a shared archive.
23539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23540
23541 # Symbols that should not be listed in the preloaded symbols.
23542 exclude_expsyms=$lt_exclude_expsyms_F77
23543
23544 # Symbols that must always be exported.
23545 include_expsyms=$lt_include_expsyms_F77
23546
23547 # ### END LIBTOOL TAG CONFIG: $tagname
23548
23549 __EOF__
23550
23551
23552 else
23553   # If there is no Makefile yet, we rely on a make rule to execute
23554   # `config.status --recheck' to rerun these tests and create the
23555   # libtool script then.
23556   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23557   if test -f "$ltmain_in"; then
23558     test -f Makefile && make "$ltmain"
23559   fi
23560 fi
23561
23562
23563 ac_ext=c
23564 ac_cpp='$CPP $CPPFLAGS'
23565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23568
23569 CC="$lt_save_CC"
23570
23571         else
23572           tagname=""
23573         fi
23574         ;;
23575
23576       GCJ)
23577         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23578           ac_ext=c
23579 ac_cpp='$CPP $CPPFLAGS'
23580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23583
23584
23585 # Source file extension for Java test sources.
23586 ac_ext=java
23587
23588 # Object file extension for compiled Java test sources.
23589 objext=o
23590 objext_GCJ=$objext
23591
23592 # Code to be used in simple compile tests
23593 lt_simple_compile_test_code="class foo {}\n"
23594
23595 # Code to be used in simple link tests
23596 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23597
23598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23599
23600 # If no C compiler was specified, use CC.
23601 LTCC=${LTCC-"$CC"}
23602
23603 # If no C compiler flags were specified, use CFLAGS.
23604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23605
23606 # Allow CC to be a program name with arguments.
23607 compiler=$CC
23608
23609
23610 # save warnings/boilerplate of simple test code
23611 ac_outfile=conftest.$ac_objext
23612 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23614 _lt_compiler_boilerplate=`cat conftest.err`
23615 $rm conftest*
23616
23617 ac_outfile=conftest.$ac_objext
23618 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23620 _lt_linker_boilerplate=`cat conftest.err`
23621 $rm conftest*
23622
23623
23624 # Allow CC to be a program name with arguments.
23625 lt_save_CC="$CC"
23626 CC=${GCJ-"gcj"}
23627 compiler=$CC
23628 compiler_GCJ=$CC
23629 for cc_temp in $compiler""; do
23630   case $cc_temp in
23631     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23632     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23633     \-*) ;;
23634     *) break;;
23635   esac
23636 done
23637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23638
23639
23640 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23641 archive_cmds_need_lc_GCJ=no
23642
23643 old_archive_cmds_GCJ=$old_archive_cmds
23644
23645
23646 lt_prog_compiler_no_builtin_flag_GCJ=
23647
23648 if test "$GCC" = yes; then
23649   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23650
23651
23652 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23655   echo $ECHO_N "(cached) $ECHO_C" >&6
23656 else
23657   lt_cv_prog_compiler_rtti_exceptions=no
23658   ac_outfile=conftest.$ac_objext
23659    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23660    lt_compiler_flag="-fno-rtti -fno-exceptions"
23661    # Insert the option either (1) after the last *FLAGS variable, or
23662    # (2) before a word containing "conftest.", or (3) at the end.
23663    # Note that $ac_compile itself does not contain backslashes and begins
23664    # with a dollar sign (not a hyphen), so the echo should work correctly.
23665    # The option is referenced via a variable to avoid confusing sed.
23666    lt_compile=`echo "$ac_compile" | $SED \
23667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23669    -e 's:$: $lt_compiler_flag:'`
23670    (eval echo "\"\$as_me:23670: $lt_compile\"" >&5)
23671    (eval "$lt_compile" 2>conftest.err)
23672    ac_status=$?
23673    cat conftest.err >&5
23674    echo "$as_me:23674: \$? = $ac_status" >&5
23675    if (exit $ac_status) && test -s "$ac_outfile"; then
23676      # The compiler can only warn and ignore the option if not recognized
23677      # So say no if there are warnings other than the usual output.
23678      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23679      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23680      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23681        lt_cv_prog_compiler_rtti_exceptions=yes
23682      fi
23683    fi
23684    $rm conftest*
23685
23686 fi
23687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23689
23690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23691     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23692 else
23693     :
23694 fi
23695
23696 fi
23697
23698 lt_prog_compiler_wl_GCJ=
23699 lt_prog_compiler_pic_GCJ=
23700 lt_prog_compiler_static_GCJ=
23701
23702 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23704
23705   if test "$GCC" = yes; then
23706     lt_prog_compiler_wl_GCJ='-Wl,'
23707     lt_prog_compiler_static_GCJ='-static'
23708
23709     case $host_os in
23710       aix*)
23711       # All AIX code is PIC.
23712       if test "$host_cpu" = ia64; then
23713         # AIX 5 now supports IA64 processor
23714         lt_prog_compiler_static_GCJ='-Bstatic'
23715       fi
23716       ;;
23717
23718     amigaos*)
23719       # FIXME: we need at least 68020 code to build shared libraries, but
23720       # adding the `-m68020' flag to GCC prevents building anything better,
23721       # like `-m68040'.
23722       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23723       ;;
23724
23725     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23726       # PIC is the default for these OSes.
23727       ;;
23728
23729     mingw* | pw32* | os2*)
23730       # This hack is so that the source file can tell whether it is being
23731       # built for inclusion in a dll (and should export symbols for example).
23732       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23733       ;;
23734
23735     darwin* | rhapsody*)
23736       # PIC is the default on this platform
23737       # Common symbols not allowed in MH_DYLIB files
23738       lt_prog_compiler_pic_GCJ='-fno-common'
23739       ;;
23740
23741     interix3*)
23742       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23743       # Instead, we relocate shared libraries at runtime.
23744       ;;
23745
23746     msdosdjgpp*)
23747       # Just because we use GCC doesn't mean we suddenly get shared libraries
23748       # on systems that don't support them.
23749       lt_prog_compiler_can_build_shared_GCJ=no
23750       enable_shared=no
23751       ;;
23752
23753     sysv4*MP*)
23754       if test -d /usr/nec; then
23755         lt_prog_compiler_pic_GCJ=-Kconform_pic
23756       fi
23757       ;;
23758
23759     hpux*)
23760       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23761       # not for PA HP-UX.
23762       case $host_cpu in
23763       hppa*64*|ia64*)
23764         # +Z the default
23765         ;;
23766       *)
23767         lt_prog_compiler_pic_GCJ='-fPIC'
23768         ;;
23769       esac
23770       ;;
23771
23772     *)
23773       lt_prog_compiler_pic_GCJ='-fPIC'
23774       ;;
23775     esac
23776   else
23777     # PORTME Check for flag to pass linker flags through the system compiler.
23778     case $host_os in
23779     aix*)
23780       lt_prog_compiler_wl_GCJ='-Wl,'
23781       if test "$host_cpu" = ia64; then
23782         # AIX 5 now supports IA64 processor
23783         lt_prog_compiler_static_GCJ='-Bstatic'
23784       else
23785         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23786       fi
23787       ;;
23788       darwin*)
23789         # PIC is the default on this platform
23790         # Common symbols not allowed in MH_DYLIB files
23791        case $cc_basename in
23792          xlc*)
23793          lt_prog_compiler_pic_GCJ='-qnocommon'
23794          lt_prog_compiler_wl_GCJ='-Wl,'
23795          ;;
23796        esac
23797        ;;
23798
23799     mingw* | pw32* | os2*)
23800       # This hack is so that the source file can tell whether it is being
23801       # built for inclusion in a dll (and should export symbols for example).
23802       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23803       ;;
23804
23805     hpux9* | hpux10* | hpux11*)
23806       lt_prog_compiler_wl_GCJ='-Wl,'
23807       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23808       # not for PA HP-UX.
23809       case $host_cpu in
23810       hppa*64*|ia64*)
23811         # +Z the default
23812         ;;
23813       *)
23814         lt_prog_compiler_pic_GCJ='+Z'
23815         ;;
23816       esac
23817       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23818       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23819       ;;
23820
23821     irix5* | irix6* | nonstopux*)
23822       lt_prog_compiler_wl_GCJ='-Wl,'
23823       # PIC (with -KPIC) is the default.
23824       lt_prog_compiler_static_GCJ='-non_shared'
23825       ;;
23826
23827     newsos6)
23828       lt_prog_compiler_pic_GCJ='-KPIC'
23829       lt_prog_compiler_static_GCJ='-Bstatic'
23830       ;;
23831
23832     linux*)
23833       case $cc_basename in
23834       icc* | ecc*)
23835         lt_prog_compiler_wl_GCJ='-Wl,'
23836         lt_prog_compiler_pic_GCJ='-KPIC'
23837         lt_prog_compiler_static_GCJ='-static'
23838         ;;
23839       pgcc* | pgf77* | pgf90* | pgf95*)
23840         # Portland Group compilers (*not* the Pentium gcc compiler,
23841         # which looks to be a dead project)
23842         lt_prog_compiler_wl_GCJ='-Wl,'
23843         lt_prog_compiler_pic_GCJ='-fpic'
23844         lt_prog_compiler_static_GCJ='-Bstatic'
23845         ;;
23846       ccc*)
23847         lt_prog_compiler_wl_GCJ='-Wl,'
23848         # All Alpha code is PIC.
23849         lt_prog_compiler_static_GCJ='-non_shared'
23850         ;;
23851       esac
23852       ;;
23853
23854     osf3* | osf4* | osf5*)
23855       lt_prog_compiler_wl_GCJ='-Wl,'
23856       # All OSF/1 code is PIC.
23857       lt_prog_compiler_static_GCJ='-non_shared'
23858       ;;
23859
23860     solaris*)
23861       lt_prog_compiler_pic_GCJ='-KPIC'
23862       lt_prog_compiler_static_GCJ='-Bstatic'
23863       case $cc_basename in
23864       f77* | f90* | f95*)
23865         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23866       *)
23867         lt_prog_compiler_wl_GCJ='-Wl,';;
23868       esac
23869       ;;
23870
23871     sunos4*)
23872       lt_prog_compiler_wl_GCJ='-Qoption ld '
23873       lt_prog_compiler_pic_GCJ='-PIC'
23874       lt_prog_compiler_static_GCJ='-Bstatic'
23875       ;;
23876
23877     sysv4 | sysv4.2uw2* | sysv4.3*)
23878       lt_prog_compiler_wl_GCJ='-Wl,'
23879       lt_prog_compiler_pic_GCJ='-KPIC'
23880       lt_prog_compiler_static_GCJ='-Bstatic'
23881       ;;
23882
23883     sysv4*MP*)
23884       if test -d /usr/nec ;then
23885         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23886         lt_prog_compiler_static_GCJ='-Bstatic'
23887       fi
23888       ;;
23889
23890     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23891       lt_prog_compiler_wl_GCJ='-Wl,'
23892       lt_prog_compiler_pic_GCJ='-KPIC'
23893       lt_prog_compiler_static_GCJ='-Bstatic'
23894       ;;
23895
23896     unicos*)
23897       lt_prog_compiler_wl_GCJ='-Wl,'
23898       lt_prog_compiler_can_build_shared_GCJ=no
23899       ;;
23900
23901     uts4*)
23902       lt_prog_compiler_pic_GCJ='-pic'
23903       lt_prog_compiler_static_GCJ='-Bstatic'
23904       ;;
23905
23906     *)
23907       lt_prog_compiler_can_build_shared_GCJ=no
23908       ;;
23909     esac
23910   fi
23911
23912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23913 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23914
23915 #
23916 # Check to make sure the PIC flag actually works.
23917 #
23918 if test -n "$lt_prog_compiler_pic_GCJ"; then
23919
23920 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23922 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23923   echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925   lt_prog_compiler_pic_works_GCJ=no
23926   ac_outfile=conftest.$ac_objext
23927    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23928    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23929    # Insert the option either (1) after the last *FLAGS variable, or
23930    # (2) before a word containing "conftest.", or (3) at the end.
23931    # Note that $ac_compile itself does not contain backslashes and begins
23932    # with a dollar sign (not a hyphen), so the echo should work correctly.
23933    # The option is referenced via a variable to avoid confusing sed.
23934    lt_compile=`echo "$ac_compile" | $SED \
23935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23937    -e 's:$: $lt_compiler_flag:'`
23938    (eval echo "\"\$as_me:23938: $lt_compile\"" >&5)
23939    (eval "$lt_compile" 2>conftest.err)
23940    ac_status=$?
23941    cat conftest.err >&5
23942    echo "$as_me:23942: \$? = $ac_status" >&5
23943    if (exit $ac_status) && test -s "$ac_outfile"; then
23944      # The compiler can only warn and ignore the option if not recognized
23945      # So say no if there are warnings other than the usual output.
23946      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23947      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23948      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23949        lt_prog_compiler_pic_works_GCJ=yes
23950      fi
23951    fi
23952    $rm conftest*
23953
23954 fi
23955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23956 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23957
23958 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23959     case $lt_prog_compiler_pic_GCJ in
23960      "" | " "*) ;;
23961      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23962      esac
23963 else
23964     lt_prog_compiler_pic_GCJ=
23965      lt_prog_compiler_can_build_shared_GCJ=no
23966 fi
23967
23968 fi
23969 case $host_os in
23970   # For platforms which do not support PIC, -DPIC is meaningless:
23971   *djgpp*)
23972     lt_prog_compiler_pic_GCJ=
23973     ;;
23974   *)
23975     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23976     ;;
23977 esac
23978
23979 #
23980 # Check to make sure the static flag actually works.
23981 #
23982 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23983 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23984 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23985 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988   lt_prog_compiler_static_works_GCJ=no
23989    save_LDFLAGS="$LDFLAGS"
23990    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23991    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23992    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23993      # The linker can only warn and ignore the option if not recognized
23994      # So say no if there are warnings
23995      if test -s conftest.err; then
23996        # Append any errors to the config.log.
23997        cat conftest.err 1>&5
23998        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23999        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24000        if diff conftest.exp conftest.er2 >/dev/null; then
24001          lt_prog_compiler_static_works_GCJ=yes
24002        fi
24003      else
24004        lt_prog_compiler_static_works_GCJ=yes
24005      fi
24006    fi
24007    $rm conftest*
24008    LDFLAGS="$save_LDFLAGS"
24009
24010 fi
24011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24012 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24013
24014 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24015     :
24016 else
24017     lt_prog_compiler_static_GCJ=
24018 fi
24019
24020
24021 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24023 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24024   echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026   lt_cv_prog_compiler_c_o_GCJ=no
24027    $rm -r conftest 2>/dev/null
24028    mkdir conftest
24029    cd conftest
24030    mkdir out
24031    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24032
24033    lt_compiler_flag="-o out/conftest2.$ac_objext"
24034    # Insert the option either (1) after the last *FLAGS variable, or
24035    # (2) before a word containing "conftest.", or (3) at the end.
24036    # Note that $ac_compile itself does not contain backslashes and begins
24037    # with a dollar sign (not a hyphen), so the echo should work correctly.
24038    lt_compile=`echo "$ac_compile" | $SED \
24039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24041    -e 's:$: $lt_compiler_flag:'`
24042    (eval echo "\"\$as_me:24042: $lt_compile\"" >&5)
24043    (eval "$lt_compile" 2>out/conftest.err)
24044    ac_status=$?
24045    cat out/conftest.err >&5
24046    echo "$as_me:24046: \$? = $ac_status" >&5
24047    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24048    then
24049      # The compiler can only warn and ignore the option if not recognized
24050      # So say no if there are warnings
24051      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24052      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24053      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24054        lt_cv_prog_compiler_c_o_GCJ=yes
24055      fi
24056    fi
24057    chmod u+w . 2>&5
24058    $rm conftest*
24059    # SGI C++ compiler will create directory out/ii_files/ for
24060    # template instantiation
24061    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24062    $rm out/* && rmdir out
24063    cd ..
24064    rmdir conftest
24065    $rm conftest*
24066
24067 fi
24068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24069 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24070
24071
24072 hard_links="nottested"
24073 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24074   # do not overwrite the value of need_locks provided by the user
24075   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24077   hard_links=yes
24078   $rm conftest*
24079   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24080   touch conftest.a
24081   ln conftest.a conftest.b 2>&5 || hard_links=no
24082   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24083   { echo "$as_me:$LINENO: result: $hard_links" >&5
24084 echo "${ECHO_T}$hard_links" >&6; }
24085   if test "$hard_links" = no; then
24086     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24088     need_locks=warn
24089   fi
24090 else
24091   need_locks=no
24092 fi
24093
24094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24096
24097   runpath_var=
24098   allow_undefined_flag_GCJ=
24099   enable_shared_with_static_runtimes_GCJ=no
24100   archive_cmds_GCJ=
24101   archive_expsym_cmds_GCJ=
24102   old_archive_From_new_cmds_GCJ=
24103   old_archive_from_expsyms_cmds_GCJ=
24104   export_dynamic_flag_spec_GCJ=
24105   whole_archive_flag_spec_GCJ=
24106   thread_safe_flag_spec_GCJ=
24107   hardcode_libdir_flag_spec_GCJ=
24108   hardcode_libdir_flag_spec_ld_GCJ=
24109   hardcode_libdir_separator_GCJ=
24110   hardcode_direct_GCJ=no
24111   hardcode_minus_L_GCJ=no
24112   hardcode_shlibpath_var_GCJ=unsupported
24113   link_all_deplibs_GCJ=unknown
24114   hardcode_automatic_GCJ=no
24115   module_cmds_GCJ=
24116   module_expsym_cmds_GCJ=
24117   always_export_symbols_GCJ=no
24118   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24119   # include_expsyms should be a list of space-separated symbols to be *always*
24120   # included in the symbol list
24121   include_expsyms_GCJ=
24122   # exclude_expsyms can be an extended regexp of symbols to exclude
24123   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24124   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24125   # as well as any symbol that contains `d'.
24126   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24127   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24128   # platforms (ab)use it in PIC code, but their linkers get confused if
24129   # the symbol is explicitly referenced.  Since portable code cannot
24130   # rely on this symbol name, it's probably fine to never include it in
24131   # preloaded symbol tables.
24132   extract_expsyms_cmds=
24133   # Just being paranoid about ensuring that cc_basename is set.
24134   for cc_temp in $compiler""; do
24135   case $cc_temp in
24136     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24137     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24138     \-*) ;;
24139     *) break;;
24140   esac
24141 done
24142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24143
24144   case $host_os in
24145   cygwin* | mingw* | pw32*)
24146     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24147     # When not using gcc, we currently assume that we are using
24148     # Microsoft Visual C++.
24149     if test "$GCC" != yes; then
24150       with_gnu_ld=no
24151     fi
24152     ;;
24153   interix*)
24154     # we just hope/assume this is gcc and not c89 (= MSVC++)
24155     with_gnu_ld=yes
24156     ;;
24157   openbsd*)
24158     with_gnu_ld=no
24159     ;;
24160   esac
24161
24162   ld_shlibs_GCJ=yes
24163   if test "$with_gnu_ld" = yes; then
24164     # If archive_cmds runs LD, not CC, wlarc should be empty
24165     wlarc='${wl}'
24166
24167     # Set some defaults for GNU ld with shared library support. These
24168     # are reset later if shared libraries are not supported. Putting them
24169     # here allows them to be overridden if necessary.
24170     runpath_var=LD_RUN_PATH
24171     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24172     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24173     # ancient GNU ld didn't support --whole-archive et. al.
24174     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24175         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24176       else
24177         whole_archive_flag_spec_GCJ=
24178     fi
24179     supports_anon_versioning=no
24180     case `$LD -v 2>/dev/null` in
24181       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24182       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24183       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24184       *\ 2.11.*) ;; # other 2.11 versions
24185       *) supports_anon_versioning=yes ;;
24186     esac
24187
24188     # See if GNU ld supports shared libraries.
24189     case $host_os in
24190     aix3* | aix4* | aix5*)
24191       # On AIX/PPC, the GNU linker is very broken
24192       if test "$host_cpu" != ia64; then
24193         ld_shlibs_GCJ=no
24194         cat <<EOF 1>&2
24195
24196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24197 *** to be unable to reliably create shared libraries on AIX.
24198 *** Therefore, libtool is disabling shared libraries support.  If you
24199 *** really care for shared libraries, you may want to modify your PATH
24200 *** so that a non-GNU linker is found, and then restart.
24201
24202 EOF
24203       fi
24204       ;;
24205
24206     amigaos*)
24207       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)'
24208       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24209       hardcode_minus_L_GCJ=yes
24210
24211       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24212       # that the semantics of dynamic libraries on AmigaOS, at least up
24213       # to version 4, is to share data among multiple programs linked
24214       # with the same dynamic library.  Since this doesn't match the
24215       # behavior of shared libraries on other platforms, we can't use
24216       # them.
24217       ld_shlibs_GCJ=no
24218       ;;
24219
24220     beos*)
24221       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24222         allow_undefined_flag_GCJ=unsupported
24223         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24224         # support --undefined.  This deserves some investigation.  FIXME
24225         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24226       else
24227         ld_shlibs_GCJ=no
24228       fi
24229       ;;
24230
24231     cygwin* | mingw* | pw32*)
24232       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24233       # as there is no search path for DLLs.
24234       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24235       allow_undefined_flag_GCJ=unsupported
24236       always_export_symbols_GCJ=no
24237       enable_shared_with_static_runtimes_GCJ=yes
24238       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24239
24240       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24241         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24242         # If the export-symbols file already is a .def file (1st line
24243         # is EXPORTS), use it as is; otherwise, prepend...
24244         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24245           cp $export_symbols $output_objdir/$soname.def;
24246         else
24247           echo EXPORTS > $output_objdir/$soname.def;
24248           cat $export_symbols >> $output_objdir/$soname.def;
24249         fi~
24250         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24251       else
24252         ld_shlibs_GCJ=no
24253       fi
24254       ;;
24255
24256     interix3*)
24257       hardcode_direct_GCJ=no
24258       hardcode_shlibpath_var_GCJ=no
24259       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24260       export_dynamic_flag_spec_GCJ='${wl}-E'
24261       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24262       # Instead, shared libraries are loaded at an image base (0x10000000 by
24263       # default) and relocated if they conflict, which is a slow very memory
24264       # consuming and fragmenting process.  To avoid this, we pick a random,
24265       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24266       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24267       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'
24268       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'
24269       ;;
24270
24271     linux*)
24272       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24273         tmp_addflag=
24274         case $cc_basename,$host_cpu in
24275         pgcc*)                          # Portland Group C compiler
24276           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'
24277           tmp_addflag=' $pic_flag'
24278           ;;
24279         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24280           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'
24281           tmp_addflag=' $pic_flag -Mnomain' ;;
24282         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24283           tmp_addflag=' -i_dynamic' ;;
24284         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24285           tmp_addflag=' -i_dynamic -nofor_main' ;;
24286         ifc* | ifort*)                  # Intel Fortran compiler
24287           tmp_addflag=' -nofor_main' ;;
24288         esac
24289         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24290
24291         if test $supports_anon_versioning = yes; then
24292           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24293   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24294   $echo "local: *; };" >> $output_objdir/$libname.ver~
24295           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24296         fi
24297       else
24298         ld_shlibs_GCJ=no
24299       fi
24300       ;;
24301
24302     netbsd*)
24303       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24304         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24305         wlarc=
24306       else
24307         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24308         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24309       fi
24310       ;;
24311
24312     solaris*)
24313       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24314         ld_shlibs_GCJ=no
24315         cat <<EOF 1>&2
24316
24317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24318 *** create shared libraries on Solaris systems.  Therefore, libtool
24319 *** is disabling shared libraries support.  We urge you to upgrade GNU
24320 *** binutils to release 2.9.1 or newer.  Another option is to modify
24321 *** your PATH or compiler configuration so that the native linker is
24322 *** used, and then restart.
24323
24324 EOF
24325       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24326         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24327         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24328       else
24329         ld_shlibs_GCJ=no
24330       fi
24331       ;;
24332
24333     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24334       case `$LD -v 2>&1` in
24335         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24336         ld_shlibs_GCJ=no
24337         cat <<_LT_EOF 1>&2
24338
24339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24340 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24341 *** is disabling shared libraries support.  We urge you to upgrade GNU
24342 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24343 *** your PATH or compiler configuration so that the native linker is
24344 *** used, and then restart.
24345
24346 _LT_EOF
24347         ;;
24348         *)
24349           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24351             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24352             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24353           else
24354             ld_shlibs_GCJ=no
24355           fi
24356         ;;
24357       esac
24358       ;;
24359
24360     sunos4*)
24361       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24362       wlarc=
24363       hardcode_direct_GCJ=yes
24364       hardcode_shlibpath_var_GCJ=no
24365       ;;
24366
24367     *)
24368       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24371       else
24372         ld_shlibs_GCJ=no
24373       fi
24374       ;;
24375     esac
24376
24377     if test "$ld_shlibs_GCJ" = no; then
24378       runpath_var=
24379       hardcode_libdir_flag_spec_GCJ=
24380       export_dynamic_flag_spec_GCJ=
24381       whole_archive_flag_spec_GCJ=
24382     fi
24383   else
24384     # PORTME fill in a description of your system's linker (not GNU ld)
24385     case $host_os in
24386     aix3*)
24387       allow_undefined_flag_GCJ=unsupported
24388       always_export_symbols_GCJ=yes
24389       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'
24390       # Note: this linker hardcodes the directories in LIBPATH if there
24391       # are no directories specified by -L.
24392       hardcode_minus_L_GCJ=yes
24393       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24394         # Neither direct hardcoding nor static linking is supported with a
24395         # broken collect2.
24396         hardcode_direct_GCJ=unsupported
24397       fi
24398       ;;
24399
24400     aix4* | aix5*)
24401       if test "$host_cpu" = ia64; then
24402         # On IA64, the linker does run time linking by default, so we don't
24403         # have to do anything special.
24404         aix_use_runtimelinking=no
24405         exp_sym_flag='-Bexport'
24406         no_entry_flag=""
24407       else
24408         # If we're using GNU nm, then we don't want the "-C" option.
24409         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24410         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24411           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'
24412         else
24413           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'
24414         fi
24415         aix_use_runtimelinking=no
24416
24417         # Test if we are trying to use run time linking or normal
24418         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24419         # need to do runtime linking.
24420         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24421           for ld_flag in $LDFLAGS; do
24422           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24423             aix_use_runtimelinking=yes
24424             break
24425           fi
24426           done
24427           ;;
24428         esac
24429
24430         exp_sym_flag='-bexport'
24431         no_entry_flag='-bnoentry'
24432       fi
24433
24434       # When large executables or shared objects are built, AIX ld can
24435       # have problems creating the table of contents.  If linking a library
24436       # or program results in "error TOC overflow" add -mminimal-toc to
24437       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24438       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24439
24440       archive_cmds_GCJ=''
24441       hardcode_direct_GCJ=yes
24442       hardcode_libdir_separator_GCJ=':'
24443       link_all_deplibs_GCJ=yes
24444
24445       if test "$GCC" = yes; then
24446         case $host_os in aix4.[012]|aix4.[012].*)
24447         # We only want to do this on AIX 4.2 and lower, the check
24448         # below for broken collect2 doesn't work under 4.3+
24449           collect2name=`${CC} -print-prog-name=collect2`
24450           if test -f "$collect2name" && \
24451            strings "$collect2name" | grep resolve_lib_name >/dev/null
24452           then
24453           # We have reworked collect2
24454           hardcode_direct_GCJ=yes
24455           else
24456           # We have old collect2
24457           hardcode_direct_GCJ=unsupported
24458           # It fails to find uninstalled libraries when the uninstalled
24459           # path is not listed in the libpath.  Setting hardcode_minus_L
24460           # to unsupported forces relinking
24461           hardcode_minus_L_GCJ=yes
24462           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24463           hardcode_libdir_separator_GCJ=
24464           fi
24465           ;;
24466         esac
24467         shared_flag='-shared'
24468         if test "$aix_use_runtimelinking" = yes; then
24469           shared_flag="$shared_flag "'${wl}-G'
24470         fi
24471       else
24472         # not using gcc
24473         if test "$host_cpu" = ia64; then
24474         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24475         # chokes on -Wl,-G. The following line is correct:
24476           shared_flag='-G'
24477         else
24478           if test "$aix_use_runtimelinking" = yes; then
24479             shared_flag='${wl}-G'
24480           else
24481             shared_flag='${wl}-bM:SRE'
24482           fi
24483         fi
24484       fi
24485
24486       # It seems that -bexpall does not export symbols beginning with
24487       # underscore (_), so it is better to generate a list of symbols to export.
24488       always_export_symbols_GCJ=yes
24489       if test "$aix_use_runtimelinking" = yes; then
24490         # Warning - without using the other runtime loading flags (-brtl),
24491         # -berok will link without error, but may produce a broken library.
24492         allow_undefined_flag_GCJ='-berok'
24493        # Determine the default libpath from the value encoded in an empty executable.
24494        cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500
24501 int
24502 main ()
24503 {
24504
24505   ;
24506   return 0;
24507 }
24508 _ACEOF
24509 rm -f conftest.$ac_objext conftest$ac_exeext
24510 if { (ac_try="$ac_link"
24511 case "(($ac_try" in
24512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513   *) ac_try_echo=$ac_try;;
24514 esac
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516   (eval "$ac_link") 2>conftest.er1
24517   ac_status=$?
24518   grep -v '^ *+' conftest.er1 >conftest.err
24519   rm -f conftest.er1
24520   cat conftest.err >&5
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } &&
24523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24524   { (case "(($ac_try" in
24525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526   *) ac_try_echo=$ac_try;;
24527 esac
24528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529   (eval "$ac_try") 2>&5
24530   ac_status=$?
24531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532   (exit $ac_status); }; } &&
24533          { ac_try='test -s conftest$ac_exeext'
24534   { (case "(($ac_try" in
24535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536   *) ac_try_echo=$ac_try;;
24537 esac
24538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24539   (eval "$ac_try") 2>&5
24540   ac_status=$?
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; }; then
24543
24544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24545 }'`
24546 # Check for a 64-bit object if we didn't find anything.
24547 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; }
24548 }'`; fi
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553
24554 fi
24555
24556 rm -f core conftest.err conftest.$ac_objext \
24557       conftest$ac_exeext conftest.$ac_ext
24558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24559
24560        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24561         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"
24562        else
24563         if test "$host_cpu" = ia64; then
24564           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24565           allow_undefined_flag_GCJ="-z nodefs"
24566           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"
24567         else
24568          # Determine the default libpath from the value encoded in an empty executable.
24569          cat >conftest.$ac_ext <<_ACEOF
24570 /* confdefs.h.  */
24571 _ACEOF
24572 cat confdefs.h >>conftest.$ac_ext
24573 cat >>conftest.$ac_ext <<_ACEOF
24574 /* end confdefs.h.  */
24575
24576 int
24577 main ()
24578 {
24579
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588   *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591   (eval "$ac_link") 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } &&
24598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24599   { (case "(($ac_try" in
24600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601   *) ac_try_echo=$ac_try;;
24602 esac
24603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604   (eval "$ac_try") 2>&5
24605   ac_status=$?
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); }; } &&
24608          { ac_try='test -s conftest$ac_exeext'
24609   { (case "(($ac_try" in
24610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611   *) ac_try_echo=$ac_try;;
24612 esac
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614   (eval "$ac_try") 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618
24619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24620 }'`
24621 # Check for a 64-bit object if we didn't find anything.
24622 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; }
24623 }'`; fi
24624 else
24625   echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628
24629 fi
24630
24631 rm -f core conftest.err conftest.$ac_objext \
24632       conftest$ac_exeext conftest.$ac_ext
24633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24634
24635          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24636           # Warning - without using the other run time loading flags,
24637           # -berok will link without error, but may produce a broken library.
24638           no_undefined_flag_GCJ=' ${wl}-bernotok'
24639           allow_undefined_flag_GCJ=' ${wl}-berok'
24640           # Exported symbols can be pulled into shared objects from archives
24641           whole_archive_flag_spec_GCJ='$convenience'
24642           archive_cmds_need_lc_GCJ=yes
24643           # This is similar to how AIX traditionally builds its shared libraries.
24644           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'
24645         fi
24646       fi
24647       ;;
24648
24649     amigaos*)
24650       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)'
24651       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24652       hardcode_minus_L_GCJ=yes
24653       # see comment about different semantics on the GNU ld section
24654       ld_shlibs_GCJ=no
24655       ;;
24656
24657     bsdi[45]*)
24658       export_dynamic_flag_spec_GCJ=-rdynamic
24659       ;;
24660
24661     cygwin* | mingw* | pw32*)
24662       # When not using gcc, we currently assume that we are using
24663       # Microsoft Visual C++.
24664       # hardcode_libdir_flag_spec is actually meaningless, as there is
24665       # no search path for DLLs.
24666       hardcode_libdir_flag_spec_GCJ=' '
24667       allow_undefined_flag_GCJ=unsupported
24668       # Tell ltmain to make .lib files, not .a files.
24669       libext=lib
24670       # Tell ltmain to make .dll files, not .so files.
24671       shrext_cmds=".dll"
24672       # FIXME: Setting linknames here is a bad hack.
24673       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24674       # The linker will automatically build a .lib file if we build a DLL.
24675       old_archive_From_new_cmds_GCJ='true'
24676       # FIXME: Should let the user specify the lib program.
24677       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24678       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24679       enable_shared_with_static_runtimes_GCJ=yes
24680       ;;
24681
24682     darwin* | rhapsody*)
24683       case $host_os in
24684         rhapsody* | darwin1.[012])
24685          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24686          ;;
24687        *) # Darwin 1.3 on
24688          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24689            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24690          else
24691            case ${MACOSX_DEPLOYMENT_TARGET} in
24692              10.[012])
24693                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24694                ;;
24695              10.*)
24696                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24697                ;;
24698            esac
24699          fi
24700          ;;
24701       esac
24702       archive_cmds_need_lc_GCJ=no
24703       hardcode_direct_GCJ=no
24704       hardcode_automatic_GCJ=yes
24705       hardcode_shlibpath_var_GCJ=unsupported
24706       whole_archive_flag_spec_GCJ=''
24707       link_all_deplibs_GCJ=yes
24708     if test "$GCC" = yes ; then
24709         output_verbose_link_cmd='echo'
24710         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24711       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24712       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24713       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}'
24714       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}'
24715     else
24716       case $cc_basename in
24717         xlc*)
24718          output_verbose_link_cmd='echo'
24719          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24720          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24721           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24722          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}'
24723           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}'
24724           ;;
24725        *)
24726          ld_shlibs_GCJ=no
24727           ;;
24728       esac
24729     fi
24730       ;;
24731
24732     dgux*)
24733       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24734       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24735       hardcode_shlibpath_var_GCJ=no
24736       ;;
24737
24738     freebsd1*)
24739       ld_shlibs_GCJ=no
24740       ;;
24741
24742     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24743     # support.  Future versions do this automatically, but an explicit c++rt0.o
24744     # does not break anything, and helps significantly (at the cost of a little
24745     # extra space).
24746     freebsd2.2*)
24747       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24748       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24749       hardcode_direct_GCJ=yes
24750       hardcode_shlibpath_var_GCJ=no
24751       ;;
24752
24753     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24754     freebsd2*)
24755       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24756       hardcode_direct_GCJ=yes
24757       hardcode_minus_L_GCJ=yes
24758       hardcode_shlibpath_var_GCJ=no
24759       ;;
24760
24761     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24762     freebsd* | kfreebsd*-gnu | dragonfly*)
24763       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24764       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24765       hardcode_direct_GCJ=yes
24766       hardcode_shlibpath_var_GCJ=no
24767       ;;
24768
24769     hpux9*)
24770       if test "$GCC" = yes; then
24771         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'
24772       else
24773         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'
24774       fi
24775       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24776       hardcode_libdir_separator_GCJ=:
24777       hardcode_direct_GCJ=yes
24778
24779       # hardcode_minus_L: Not really in the search PATH,
24780       # but as the default location of the library.
24781       hardcode_minus_L_GCJ=yes
24782       export_dynamic_flag_spec_GCJ='${wl}-E'
24783       ;;
24784
24785     hpux10*)
24786       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24787         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24788       else
24789         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24790       fi
24791       if test "$with_gnu_ld" = no; then
24792         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24793         hardcode_libdir_separator_GCJ=:
24794
24795         hardcode_direct_GCJ=yes
24796         export_dynamic_flag_spec_GCJ='${wl}-E'
24797
24798         # hardcode_minus_L: Not really in the search PATH,
24799         # but as the default location of the library.
24800         hardcode_minus_L_GCJ=yes
24801       fi
24802       ;;
24803
24804     hpux11*)
24805       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24806         case $host_cpu in
24807         hppa*64*)
24808           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24809           ;;
24810         ia64*)
24811           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24812           ;;
24813         *)
24814           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24815           ;;
24816         esac
24817       else
24818         case $host_cpu in
24819         hppa*64*)
24820           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24821           ;;
24822         ia64*)
24823           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24824           ;;
24825         *)
24826           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24827           ;;
24828         esac
24829       fi
24830       if test "$with_gnu_ld" = no; then
24831         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24832         hardcode_libdir_separator_GCJ=:
24833
24834         case $host_cpu in
24835         hppa*64*|ia64*)
24836           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24837           hardcode_direct_GCJ=no
24838           hardcode_shlibpath_var_GCJ=no
24839           ;;
24840         *)
24841           hardcode_direct_GCJ=yes
24842           export_dynamic_flag_spec_GCJ='${wl}-E'
24843
24844           # hardcode_minus_L: Not really in the search PATH,
24845           # but as the default location of the library.
24846           hardcode_minus_L_GCJ=yes
24847           ;;
24848         esac
24849       fi
24850       ;;
24851
24852     irix5* | irix6* | nonstopux*)
24853       if test "$GCC" = yes; then
24854         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'
24855       else
24856         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'
24857         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24858       fi
24859       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24860       hardcode_libdir_separator_GCJ=:
24861       link_all_deplibs_GCJ=yes
24862       ;;
24863
24864     netbsd*)
24865       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24866         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24867       else
24868         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24869       fi
24870       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24871       hardcode_direct_GCJ=yes
24872       hardcode_shlibpath_var_GCJ=no
24873       ;;
24874
24875     newsos6)
24876       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24877       hardcode_direct_GCJ=yes
24878       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24879       hardcode_libdir_separator_GCJ=:
24880       hardcode_shlibpath_var_GCJ=no
24881       ;;
24882
24883     openbsd*)
24884       hardcode_direct_GCJ=yes
24885       hardcode_shlibpath_var_GCJ=no
24886       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24887         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24888         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24889         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24890         export_dynamic_flag_spec_GCJ='${wl}-E'
24891       else
24892        case $host_os in
24893          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24894            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24895            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896            ;;
24897          *)
24898            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24899            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24900            ;;
24901        esac
24902       fi
24903       ;;
24904
24905     os2*)
24906       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24907       hardcode_minus_L_GCJ=yes
24908       allow_undefined_flag_GCJ=unsupported
24909       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'
24910       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24911       ;;
24912
24913     osf3*)
24914       if test "$GCC" = yes; then
24915         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24916         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'
24917       else
24918         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24919         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'
24920       fi
24921       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24922       hardcode_libdir_separator_GCJ=:
24923       ;;
24924
24925     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24926       if test "$GCC" = yes; then
24927         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24928         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'
24929         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930       else
24931         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24932         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'
24933         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~
24934         $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'
24935
24936         # Both c and cxx compiler support -rpath directly
24937         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24938       fi
24939       hardcode_libdir_separator_GCJ=:
24940       ;;
24941
24942     solaris*)
24943       no_undefined_flag_GCJ=' -z text'
24944       if test "$GCC" = yes; then
24945         wlarc='${wl}'
24946         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24947         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24948           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24949       else
24950         wlarc=''
24951         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24952         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24953         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24954       fi
24955       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24956       hardcode_shlibpath_var_GCJ=no
24957       case $host_os in
24958       solaris2.[0-5] | solaris2.[0-5].*) ;;
24959       *)
24960         # The compiler driver will combine linker options so we
24961         # cannot just pass the convience library names through
24962         # without $wl, iff we do not link with $LD.
24963         # Luckily, gcc supports the same syntax we need for Sun Studio.
24964         # Supported since Solaris 2.6 (maybe 2.5.1?)
24965         case $wlarc in
24966         '')
24967           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24968         *)
24969           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' ;;
24970         esac ;;
24971       esac
24972       link_all_deplibs_GCJ=yes
24973       ;;
24974
24975     sunos4*)
24976       if test "x$host_vendor" = xsequent; then
24977         # Use $CC to link under sequent, because it throws in some extra .o
24978         # files that make .init and .fini sections work.
24979         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24980       else
24981         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24982       fi
24983       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984       hardcode_direct_GCJ=yes
24985       hardcode_minus_L_GCJ=yes
24986       hardcode_shlibpath_var_GCJ=no
24987       ;;
24988
24989     sysv4)
24990       case $host_vendor in
24991         sni)
24992           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24993           hardcode_direct_GCJ=yes # is this really true???
24994         ;;
24995         siemens)
24996           ## LD is ld it makes a PLAMLIB
24997           ## CC just makes a GrossModule.
24998           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24999           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25000           hardcode_direct_GCJ=no
25001         ;;
25002         motorola)
25003           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25004           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25005         ;;
25006       esac
25007       runpath_var='LD_RUN_PATH'
25008       hardcode_shlibpath_var_GCJ=no
25009       ;;
25010
25011     sysv4.3*)
25012       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013       hardcode_shlibpath_var_GCJ=no
25014       export_dynamic_flag_spec_GCJ='-Bexport'
25015       ;;
25016
25017     sysv4*MP*)
25018       if test -d /usr/nec; then
25019         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020         hardcode_shlibpath_var_GCJ=no
25021         runpath_var=LD_RUN_PATH
25022         hardcode_runpath_var=yes
25023         ld_shlibs_GCJ=yes
25024       fi
25025       ;;
25026
25027     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25028       no_undefined_flag_GCJ='${wl}-z,text'
25029       archive_cmds_need_lc_GCJ=no
25030       hardcode_shlibpath_var_GCJ=no
25031       runpath_var='LD_RUN_PATH'
25032
25033       if test "$GCC" = yes; then
25034         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25035         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25036       else
25037         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25038         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25039       fi
25040       ;;
25041
25042     sysv5* | sco3.2v5* | sco5v6*)
25043       # Note: We can NOT use -z defs as we might desire, because we do not
25044       # link with -lc, and that would cause any symbols used from libc to
25045       # always be unresolved, which means just about no library would
25046       # ever link correctly.  If we're not using GNU ld we use -z text
25047       # though, which does catch some bad symbols but isn't as heavy-handed
25048       # as -z defs.
25049       no_undefined_flag_GCJ='${wl}-z,text'
25050       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25051       archive_cmds_need_lc_GCJ=no
25052       hardcode_shlibpath_var_GCJ=no
25053       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25054       hardcode_libdir_separator_GCJ=':'
25055       link_all_deplibs_GCJ=yes
25056       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25057       runpath_var='LD_RUN_PATH'
25058
25059       if test "$GCC" = yes; then
25060         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25062       else
25063         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25064         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25065       fi
25066       ;;
25067
25068     uts4*)
25069       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25071       hardcode_shlibpath_var_GCJ=no
25072       ;;
25073
25074     *)
25075       ld_shlibs_GCJ=no
25076       ;;
25077     esac
25078   fi
25079
25080 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25081 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25082 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25083
25084 #
25085 # Do we need to explicitly link libc?
25086 #
25087 case "x$archive_cmds_need_lc_GCJ" in
25088 x|xyes)
25089   # Assume -lc should be added
25090   archive_cmds_need_lc_GCJ=yes
25091
25092   if test "$enable_shared" = yes && test "$GCC" = yes; then
25093     case $archive_cmds_GCJ in
25094     *'~'*)
25095       # FIXME: we may have to deal with multi-command sequences.
25096       ;;
25097     '$CC '*)
25098       # Test whether the compiler implicitly links with -lc since on some
25099       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25100       # to ld, don't add -lc before -lgcc.
25101       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25103       $rm conftest*
25104       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25105
25106       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107   (eval $ac_compile) 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } 2>conftest.err; then
25111         soname=conftest
25112         lib=conftest
25113         libobjs=conftest.$ac_objext
25114         deplibs=
25115         wl=$lt_prog_compiler_wl_GCJ
25116         pic_flag=$lt_prog_compiler_pic_GCJ
25117         compiler_flags=-v
25118         linker_flags=-v
25119         verstring=
25120         output_objdir=.
25121         libname=conftest
25122         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25123         allow_undefined_flag_GCJ=
25124         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25125   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }
25129         then
25130           archive_cmds_need_lc_GCJ=no
25131         else
25132           archive_cmds_need_lc_GCJ=yes
25133         fi
25134         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25135       else
25136         cat conftest.err 1>&5
25137       fi
25138       $rm conftest*
25139       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25140 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25141       ;;
25142     esac
25143   fi
25144   ;;
25145 esac
25146
25147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25149 library_names_spec=
25150 libname_spec='lib$name'
25151 soname_spec=
25152 shrext_cmds=".so"
25153 postinstall_cmds=
25154 postuninstall_cmds=
25155 finish_cmds=
25156 finish_eval=
25157 shlibpath_var=
25158 shlibpath_overrides_runpath=unknown
25159 version_type=none
25160 dynamic_linker="$host_os ld.so"
25161 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25162 if test "$GCC" = yes; then
25163   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25164   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25165     # if the path contains ";" then we assume it to be the separator
25166     # otherwise default to the standard path separator (i.e. ":") - it is
25167     # assumed that no part of a normal pathname contains ";" but that should
25168     # okay in the real world where ";" in dirpaths is itself problematic.
25169     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25170   else
25171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25172   fi
25173 else
25174   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25175 fi
25176 need_lib_prefix=unknown
25177 hardcode_into_libs=no
25178
25179 # when you set need_version to no, make sure it does not cause -set_version
25180 # flags to be left without arguments
25181 need_version=unknown
25182
25183 case $host_os in
25184 aix3*)
25185   version_type=linux
25186   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25187   shlibpath_var=LIBPATH
25188
25189   # AIX 3 has no versioning support, so we append a major version to the name.
25190   soname_spec='${libname}${release}${shared_ext}$major'
25191   ;;
25192
25193 aix4* | aix5*)
25194   version_type=linux
25195   need_lib_prefix=no
25196   need_version=no
25197   hardcode_into_libs=yes
25198   if test "$host_cpu" = ia64; then
25199     # AIX 5 supports IA64
25200     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25201     shlibpath_var=LD_LIBRARY_PATH
25202   else
25203     # With GCC up to 2.95.x, collect2 would create an import file
25204     # for dependence libraries.  The import file would start with
25205     # the line `#! .'.  This would cause the generated library to
25206     # depend on `.', always an invalid library.  This was fixed in
25207     # development snapshots of GCC prior to 3.0.
25208     case $host_os in
25209       aix4 | aix4.[01] | aix4.[01].*)
25210       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25211            echo ' yes '
25212            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25213         :
25214       else
25215         can_build_shared=no
25216       fi
25217       ;;
25218     esac
25219     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25220     # soname into executable. Probably we can add versioning support to
25221     # collect2, so additional links can be useful in future.
25222     if test "$aix_use_runtimelinking" = yes; then
25223       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25224       # instead of lib<name>.a to let people know that these are not
25225       # typical AIX shared libraries.
25226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25227     else
25228       # We preserve .a as extension for shared libraries through AIX4.2
25229       # and later when we are not doing run time linking.
25230       library_names_spec='${libname}${release}.a $libname.a'
25231       soname_spec='${libname}${release}${shared_ext}$major'
25232     fi
25233     shlibpath_var=LIBPATH
25234   fi
25235   ;;
25236
25237 amigaos*)
25238   library_names_spec='$libname.ixlibrary $libname.a'
25239   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25240   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'
25241   ;;
25242
25243 beos*)
25244   library_names_spec='${libname}${shared_ext}'
25245   dynamic_linker="$host_os ld.so"
25246   shlibpath_var=LIBRARY_PATH
25247   ;;
25248
25249 bsdi[45]*)
25250   version_type=linux
25251   need_version=no
25252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25253   soname_spec='${libname}${release}${shared_ext}$major'
25254   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25255   shlibpath_var=LD_LIBRARY_PATH
25256   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25257   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25258   # the default ld.so.conf also contains /usr/contrib/lib and
25259   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25260   # libtool to hard-code these into programs
25261   ;;
25262
25263 cygwin* | mingw* | pw32*)
25264   version_type=windows
25265   shrext_cmds=".dll"
25266   need_version=no
25267   need_lib_prefix=no
25268
25269   case $GCC,$host_os in
25270   yes,cygwin* | yes,mingw* | yes,pw32*)
25271     library_names_spec='$libname.dll.a'
25272     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25273     postinstall_cmds='base_file=`basename \${file}`~
25274       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25275       dldir=$destdir/`dirname \$dlpath`~
25276       test -d \$dldir || mkdir -p \$dldir~
25277       $install_prog $dir/$dlname \$dldir/$dlname~
25278       chmod a+x \$dldir/$dlname'
25279     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25280       dlpath=$dir/\$dldll~
25281        $rm \$dlpath'
25282     shlibpath_overrides_runpath=yes
25283
25284     case $host_os in
25285     cygwin*)
25286       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25287       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25288       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25289       ;;
25290     mingw*)
25291       # MinGW DLLs use traditional 'lib' prefix
25292       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25293       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25294       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25295         # It is most probably a Windows format PATH printed by
25296         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25297         # path with ; separators, and with drive letters. We can handle the
25298         # drive letters (cygwin fileutils understands them), so leave them,
25299         # especially as we might pass files found there to a mingw objdump,
25300         # which wouldn't understand a cygwinified path. Ahh.
25301         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25302       else
25303         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25304       fi
25305       ;;
25306     pw32*)
25307       # pw32 DLLs use 'pw' prefix rather than 'lib'
25308       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25309       ;;
25310     esac
25311     ;;
25312
25313   *)
25314     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25315     ;;
25316   esac
25317   dynamic_linker='Win32 ld.exe'
25318   # FIXME: first we should search . and the directory the executable is in
25319   shlibpath_var=PATH
25320   ;;
25321
25322 darwin* | rhapsody*)
25323   dynamic_linker="$host_os dyld"
25324   version_type=darwin
25325   need_lib_prefix=no
25326   need_version=no
25327   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25328   soname_spec='${libname}${release}${major}$shared_ext'
25329   shlibpath_overrides_runpath=yes
25330   shlibpath_var=DYLD_LIBRARY_PATH
25331   shrext_cmds='.dylib'
25332   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25333   if test "$GCC" = yes; then
25334     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"`
25335   else
25336     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25337   fi
25338   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25339   ;;
25340
25341 dgux*)
25342   version_type=linux
25343   need_lib_prefix=no
25344   need_version=no
25345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25346   soname_spec='${libname}${release}${shared_ext}$major'
25347   shlibpath_var=LD_LIBRARY_PATH
25348   ;;
25349
25350 freebsd1*)
25351   dynamic_linker=no
25352   ;;
25353
25354 kfreebsd*-gnu)
25355   version_type=linux
25356   need_lib_prefix=no
25357   need_version=no
25358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25359   soname_spec='${libname}${release}${shared_ext}$major'
25360   shlibpath_var=LD_LIBRARY_PATH
25361   shlibpath_overrides_runpath=no
25362   hardcode_into_libs=yes
25363   dynamic_linker='GNU ld.so'
25364   ;;
25365
25366 freebsd* | dragonfly*)
25367   # DragonFly does not have aout.  When/if they implement a new
25368   # versioning mechanism, adjust this.
25369   if test -x /usr/bin/objformat; then
25370     objformat=`/usr/bin/objformat`
25371   else
25372     case $host_os in
25373     freebsd[123]*) objformat=aout ;;
25374     *) objformat=elf ;;
25375     esac
25376   fi
25377   version_type=freebsd-$objformat
25378   case $version_type in
25379     freebsd-elf*)
25380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25381       need_version=no
25382       need_lib_prefix=no
25383       ;;
25384     freebsd-*)
25385       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25386       need_version=yes
25387       ;;
25388   esac
25389   shlibpath_var=LD_LIBRARY_PATH
25390   case $host_os in
25391   freebsd2*)
25392     shlibpath_overrides_runpath=yes
25393     ;;
25394   freebsd3.[01]* | freebsdelf3.[01]*)
25395     shlibpath_overrides_runpath=yes
25396     hardcode_into_libs=yes
25397     ;;
25398   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25399   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25400     shlibpath_overrides_runpath=no
25401     hardcode_into_libs=yes
25402     ;;
25403   freebsd*) # from 4.6 on
25404     shlibpath_overrides_runpath=yes
25405     hardcode_into_libs=yes
25406     ;;
25407   esac
25408   ;;
25409
25410 gnu*)
25411   version_type=linux
25412   need_lib_prefix=no
25413   need_version=no
25414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25415   soname_spec='${libname}${release}${shared_ext}$major'
25416   shlibpath_var=LD_LIBRARY_PATH
25417   hardcode_into_libs=yes
25418   ;;
25419
25420 hpux9* | hpux10* | hpux11*)
25421   # Give a soname corresponding to the major version so that dld.sl refuses to
25422   # link against other versions.
25423   version_type=sunos
25424   need_lib_prefix=no
25425   need_version=no
25426   case $host_cpu in
25427   ia64*)
25428     shrext_cmds='.so'
25429     hardcode_into_libs=yes
25430     dynamic_linker="$host_os dld.so"
25431     shlibpath_var=LD_LIBRARY_PATH
25432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25434     soname_spec='${libname}${release}${shared_ext}$major'
25435     if test "X$HPUX_IA64_MODE" = X32; then
25436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25437     else
25438       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25439     fi
25440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25441     ;;
25442    hppa*64*)
25443      shrext_cmds='.sl'
25444      hardcode_into_libs=yes
25445      dynamic_linker="$host_os dld.sl"
25446      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25447      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25449      soname_spec='${libname}${release}${shared_ext}$major'
25450      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25451      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25452      ;;
25453    *)
25454     shrext_cmds='.sl'
25455     dynamic_linker="$host_os dld.sl"
25456     shlibpath_var=SHLIB_PATH
25457     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25459     soname_spec='${libname}${release}${shared_ext}$major'
25460     ;;
25461   esac
25462   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25463   postinstall_cmds='chmod 555 $lib'
25464   ;;
25465
25466 interix3*)
25467   version_type=linux
25468   need_lib_prefix=no
25469   need_version=no
25470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25471   soname_spec='${libname}${release}${shared_ext}$major'
25472   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25473   shlibpath_var=LD_LIBRARY_PATH
25474   shlibpath_overrides_runpath=no
25475   hardcode_into_libs=yes
25476   ;;
25477
25478 irix5* | irix6* | nonstopux*)
25479   case $host_os in
25480     nonstopux*) version_type=nonstopux ;;
25481     *)
25482         if test "$lt_cv_prog_gnu_ld" = yes; then
25483                 version_type=linux
25484         else
25485                 version_type=irix
25486         fi ;;
25487   esac
25488   need_lib_prefix=no
25489   need_version=no
25490   soname_spec='${libname}${release}${shared_ext}$major'
25491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25492   case $host_os in
25493   irix5* | nonstopux*)
25494     libsuff= shlibsuff=
25495     ;;
25496   *)
25497     case $LD in # libtool.m4 will add one of these switches to LD
25498     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25499       libsuff= shlibsuff= libmagic=32-bit;;
25500     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25501       libsuff=32 shlibsuff=N32 libmagic=N32;;
25502     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25503       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25504     *) libsuff= shlibsuff= libmagic=never-match;;
25505     esac
25506     ;;
25507   esac
25508   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25509   shlibpath_overrides_runpath=no
25510   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25511   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25512   hardcode_into_libs=yes
25513   ;;
25514
25515 # No shared lib support for Linux oldld, aout, or coff.
25516 linux*oldld* | linux*aout* | linux*coff*)
25517   dynamic_linker=no
25518   ;;
25519
25520 # This must be Linux ELF.
25521 linux*)
25522   version_type=linux
25523   need_lib_prefix=no
25524   need_version=no
25525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526   soname_spec='${libname}${release}${shared_ext}$major'
25527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25528   shlibpath_var=LD_LIBRARY_PATH
25529   shlibpath_overrides_runpath=no
25530   # This implies no fast_install, which is unacceptable.
25531   # Some rework will be needed to allow for fast_install
25532   # before this can be enabled.
25533   hardcode_into_libs=yes
25534
25535   # Append ld.so.conf contents to the search path
25536   if test -f /etc/ld.so.conf; then
25537     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' ' '`
25538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25539   fi
25540
25541   # We used to test for /lib/ld.so.1 and disable shared libraries on
25542   # powerpc, because MkLinux only supported shared libraries with the
25543   # GNU dynamic linker.  Since this was broken with cross compilers,
25544   # most powerpc-linux boxes support dynamic linking these days and
25545   # people can always --disable-shared, the test was removed, and we
25546   # assume the GNU/Linux dynamic linker is in use.
25547   dynamic_linker='GNU/Linux ld.so'
25548   ;;
25549
25550 knetbsd*-gnu)
25551   version_type=linux
25552   need_lib_prefix=no
25553   need_version=no
25554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25555   soname_spec='${libname}${release}${shared_ext}$major'
25556   shlibpath_var=LD_LIBRARY_PATH
25557   shlibpath_overrides_runpath=no
25558   hardcode_into_libs=yes
25559   dynamic_linker='GNU ld.so'
25560   ;;
25561
25562 netbsd*)
25563   version_type=sunos
25564   need_lib_prefix=no
25565   need_version=no
25566   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25568     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25569     dynamic_linker='NetBSD (a.out) ld.so'
25570   else
25571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25572     soname_spec='${libname}${release}${shared_ext}$major'
25573     dynamic_linker='NetBSD ld.elf_so'
25574   fi
25575   shlibpath_var=LD_LIBRARY_PATH
25576   shlibpath_overrides_runpath=yes
25577   hardcode_into_libs=yes
25578   ;;
25579
25580 newsos6)
25581   version_type=linux
25582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25583   shlibpath_var=LD_LIBRARY_PATH
25584   shlibpath_overrides_runpath=yes
25585   ;;
25586
25587 nto-qnx*)
25588   version_type=linux
25589   need_lib_prefix=no
25590   need_version=no
25591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592   soname_spec='${libname}${release}${shared_ext}$major'
25593   shlibpath_var=LD_LIBRARY_PATH
25594   shlibpath_overrides_runpath=yes
25595   ;;
25596
25597 openbsd*)
25598   version_type=sunos
25599   sys_lib_dlsearch_path_spec="/usr/lib"
25600   need_lib_prefix=no
25601   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25602   case $host_os in
25603     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25604     *)                         need_version=no  ;;
25605   esac
25606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25608   shlibpath_var=LD_LIBRARY_PATH
25609   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25610     case $host_os in
25611       openbsd2.[89] | openbsd2.[89].*)
25612         shlibpath_overrides_runpath=no
25613         ;;
25614       *)
25615         shlibpath_overrides_runpath=yes
25616         ;;
25617       esac
25618   else
25619     shlibpath_overrides_runpath=yes
25620   fi
25621   ;;
25622
25623 os2*)
25624   libname_spec='$name'
25625   shrext_cmds=".dll"
25626   need_lib_prefix=no
25627   library_names_spec='$libname${shared_ext} $libname.a'
25628   dynamic_linker='OS/2 ld.exe'
25629   shlibpath_var=LIBPATH
25630   ;;
25631
25632 osf3* | osf4* | osf5*)
25633   version_type=osf
25634   need_lib_prefix=no
25635   need_version=no
25636   soname_spec='${libname}${release}${shared_ext}$major'
25637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25638   shlibpath_var=LD_LIBRARY_PATH
25639   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25640   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25641   ;;
25642
25643 solaris*)
25644   version_type=linux
25645   need_lib_prefix=no
25646   need_version=no
25647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25648   soname_spec='${libname}${release}${shared_ext}$major'
25649   shlibpath_var=LD_LIBRARY_PATH
25650   shlibpath_overrides_runpath=yes
25651   hardcode_into_libs=yes
25652   # ldd complains unless libraries are executable
25653   postinstall_cmds='chmod +x $lib'
25654   ;;
25655
25656 sunos4*)
25657   version_type=sunos
25658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25659   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25660   shlibpath_var=LD_LIBRARY_PATH
25661   shlibpath_overrides_runpath=yes
25662   if test "$with_gnu_ld" = yes; then
25663     need_lib_prefix=no
25664   fi
25665   need_version=yes
25666   ;;
25667
25668 sysv4 | sysv4.3*)
25669   version_type=linux
25670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25671   soname_spec='${libname}${release}${shared_ext}$major'
25672   shlibpath_var=LD_LIBRARY_PATH
25673   case $host_vendor in
25674     sni)
25675       shlibpath_overrides_runpath=no
25676       need_lib_prefix=no
25677       export_dynamic_flag_spec='${wl}-Blargedynsym'
25678       runpath_var=LD_RUN_PATH
25679       ;;
25680     siemens)
25681       need_lib_prefix=no
25682       ;;
25683     motorola)
25684       need_lib_prefix=no
25685       need_version=no
25686       shlibpath_overrides_runpath=no
25687       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25688       ;;
25689   esac
25690   ;;
25691
25692 sysv4*MP*)
25693   if test -d /usr/nec ;then
25694     version_type=linux
25695     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25696     soname_spec='$libname${shared_ext}.$major'
25697     shlibpath_var=LD_LIBRARY_PATH
25698   fi
25699   ;;
25700
25701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25702   version_type=freebsd-elf
25703   need_lib_prefix=no
25704   need_version=no
25705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25706   soname_spec='${libname}${release}${shared_ext}$major'
25707   shlibpath_var=LD_LIBRARY_PATH
25708   hardcode_into_libs=yes
25709   if test "$with_gnu_ld" = yes; then
25710     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25711     shlibpath_overrides_runpath=no
25712   else
25713     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25714     shlibpath_overrides_runpath=yes
25715     case $host_os in
25716       sco3.2v5*)
25717         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25718         ;;
25719     esac
25720   fi
25721   sys_lib_dlsearch_path_spec='/usr/lib'
25722   ;;
25723
25724 uts4*)
25725   version_type=linux
25726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25727   soname_spec='${libname}${release}${shared_ext}$major'
25728   shlibpath_var=LD_LIBRARY_PATH
25729   ;;
25730
25731 *)
25732   dynamic_linker=no
25733   ;;
25734 esac
25735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25736 echo "${ECHO_T}$dynamic_linker" >&6; }
25737 test "$dynamic_linker" = no && can_build_shared=no
25738
25739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25740 if test "$GCC" = yes; then
25741   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25742 fi
25743
25744 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25746 hardcode_action_GCJ=
25747 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25748    test -n "$runpath_var_GCJ" || \
25749    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25750
25751   # We can hardcode non-existant directories.
25752   if test "$hardcode_direct_GCJ" != no &&
25753      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25754      # have to relink, otherwise we might link with an installed library
25755      # when we should be linking with a yet-to-be-installed one
25756      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25757      test "$hardcode_minus_L_GCJ" != no; then
25758     # Linking always hardcodes the temporary library directory.
25759     hardcode_action_GCJ=relink
25760   else
25761     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25762     hardcode_action_GCJ=immediate
25763   fi
25764 else
25765   # We cannot hardcode anything, or else we can only hardcode existing
25766   # directories.
25767   hardcode_action_GCJ=unsupported
25768 fi
25769 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25770 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25771
25772 if test "$hardcode_action_GCJ" = relink; then
25773   # Fast installation is not supported
25774   enable_fast_install=no
25775 elif test "$shlibpath_overrides_runpath" = yes ||
25776      test "$enable_shared" = no; then
25777   # Fast installation is not necessary
25778   enable_fast_install=needless
25779 fi
25780
25781
25782 # The else clause should only fire when bootstrapping the
25783 # libtool distribution, otherwise you forgot to ship ltmain.sh
25784 # with your package, and you will get complaints that there are
25785 # no rules to generate ltmain.sh.
25786 if test -f "$ltmain"; then
25787   # See if we are running on zsh, and set the options which allow our commands through
25788   # without removal of \ escapes.
25789   if test -n "${ZSH_VERSION+set}" ; then
25790     setopt NO_GLOB_SUBST
25791   fi
25792   # Now quote all the things that may contain metacharacters while being
25793   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25794   # variables and quote the copies for generation of the libtool script.
25795   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25796     SED SHELL STRIP \
25797     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25798     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25799     deplibs_check_method reload_flag reload_cmds need_locks \
25800     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25801     lt_cv_sys_global_symbol_to_c_name_address \
25802     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25803     old_postinstall_cmds old_postuninstall_cmds \
25804     compiler_GCJ \
25805     CC_GCJ \
25806     LD_GCJ \
25807     lt_prog_compiler_wl_GCJ \
25808     lt_prog_compiler_pic_GCJ \
25809     lt_prog_compiler_static_GCJ \
25810     lt_prog_compiler_no_builtin_flag_GCJ \
25811     export_dynamic_flag_spec_GCJ \
25812     thread_safe_flag_spec_GCJ \
25813     whole_archive_flag_spec_GCJ \
25814     enable_shared_with_static_runtimes_GCJ \
25815     old_archive_cmds_GCJ \
25816     old_archive_from_new_cmds_GCJ \
25817     predep_objects_GCJ \
25818     postdep_objects_GCJ \
25819     predeps_GCJ \
25820     postdeps_GCJ \
25821     compiler_lib_search_path_GCJ \
25822     archive_cmds_GCJ \
25823     archive_expsym_cmds_GCJ \
25824     postinstall_cmds_GCJ \
25825     postuninstall_cmds_GCJ \
25826     old_archive_from_expsyms_cmds_GCJ \
25827     allow_undefined_flag_GCJ \
25828     no_undefined_flag_GCJ \
25829     export_symbols_cmds_GCJ \
25830     hardcode_libdir_flag_spec_GCJ \
25831     hardcode_libdir_flag_spec_ld_GCJ \
25832     hardcode_libdir_separator_GCJ \
25833     hardcode_automatic_GCJ \
25834     module_cmds_GCJ \
25835     module_expsym_cmds_GCJ \
25836     lt_cv_prog_compiler_c_o_GCJ \
25837     exclude_expsyms_GCJ \
25838     include_expsyms_GCJ; do
25839
25840     case $var in
25841     old_archive_cmds_GCJ | \
25842     old_archive_from_new_cmds_GCJ | \
25843     archive_cmds_GCJ | \
25844     archive_expsym_cmds_GCJ | \
25845     module_cmds_GCJ | \
25846     module_expsym_cmds_GCJ | \
25847     old_archive_from_expsyms_cmds_GCJ | \
25848     export_symbols_cmds_GCJ | \
25849     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25850     postinstall_cmds | postuninstall_cmds | \
25851     old_postinstall_cmds | old_postuninstall_cmds | \
25852     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25853       # Double-quote double-evaled strings.
25854       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25855       ;;
25856     *)
25857       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25858       ;;
25859     esac
25860   done
25861
25862   case $lt_echo in
25863   *'\$0 --fallback-echo"')
25864     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25865     ;;
25866   esac
25867
25868 cfgfile="$ofile"
25869
25870   cat <<__EOF__ >> "$cfgfile"
25871 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25872
25873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25874
25875 # Shell to use when invoking shell scripts.
25876 SHELL=$lt_SHELL
25877
25878 # Whether or not to build shared libraries.
25879 build_libtool_libs=$enable_shared
25880
25881 # Whether or not to build static libraries.
25882 build_old_libs=$enable_static
25883
25884 # Whether or not to add -lc for building shared libraries.
25885 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25886
25887 # Whether or not to disallow shared libs when runtime libs are static
25888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25889
25890 # Whether or not to optimize for fast installation.
25891 fast_install=$enable_fast_install
25892
25893 # The host system.
25894 host_alias=$host_alias
25895 host=$host
25896 host_os=$host_os
25897
25898 # The build system.
25899 build_alias=$build_alias
25900 build=$build
25901 build_os=$build_os
25902
25903 # An echo program that does not interpret backslashes.
25904 echo=$lt_echo
25905
25906 # The archiver.
25907 AR=$lt_AR
25908 AR_FLAGS=$lt_AR_FLAGS
25909
25910 # A C compiler.
25911 LTCC=$lt_LTCC
25912
25913 # LTCC compiler flags.
25914 LTCFLAGS=$lt_LTCFLAGS
25915
25916 # A language-specific compiler.
25917 CC=$lt_compiler_GCJ
25918
25919 # Is the compiler the GNU C compiler?
25920 with_gcc=$GCC_GCJ
25921
25922 # An ERE matcher.
25923 EGREP=$lt_EGREP
25924
25925 # The linker used to build libraries.
25926 LD=$lt_LD_GCJ
25927
25928 # Whether we need hard or soft links.
25929 LN_S=$lt_LN_S
25930
25931 # A BSD-compatible nm program.
25932 NM=$lt_NM
25933
25934 # A symbol stripping program
25935 STRIP=$lt_STRIP
25936
25937 # Used to examine libraries when file_magic_cmd begins "file"
25938 MAGIC_CMD=$MAGIC_CMD
25939
25940 # Used on cygwin: DLL creation program.
25941 DLLTOOL="$DLLTOOL"
25942
25943 # Used on cygwin: object dumper.
25944 OBJDUMP="$OBJDUMP"
25945
25946 # Used on cygwin: assembler.
25947 AS="$AS"
25948
25949 # The name of the directory that contains temporary libtool files.
25950 objdir=$objdir
25951
25952 # How to create reloadable object files.
25953 reload_flag=$lt_reload_flag
25954 reload_cmds=$lt_reload_cmds
25955
25956 # How to pass a linker flag through the compiler.
25957 wl=$lt_lt_prog_compiler_wl_GCJ
25958
25959 # Object file suffix (normally "o").
25960 objext="$ac_objext"
25961
25962 # Old archive suffix (normally "a").
25963 libext="$libext"
25964
25965 # Shared library suffix (normally ".so").
25966 shrext_cmds='$shrext_cmds'
25967
25968 # Executable file suffix (normally "").
25969 exeext="$exeext"
25970
25971 # Additional compiler flags for building library objects.
25972 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25973 pic_mode=$pic_mode
25974
25975 # What is the maximum length of a command?
25976 max_cmd_len=$lt_cv_sys_max_cmd_len
25977
25978 # Does compiler simultaneously support -c and -o options?
25979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25980
25981 # Must we lock files when doing compilation?
25982 need_locks=$lt_need_locks
25983
25984 # Do we need the lib prefix for modules?
25985 need_lib_prefix=$need_lib_prefix
25986
25987 # Do we need a version for libraries?
25988 need_version=$need_version
25989
25990 # Whether dlopen is supported.
25991 dlopen_support=$enable_dlopen
25992
25993 # Whether dlopen of programs is supported.
25994 dlopen_self=$enable_dlopen_self
25995
25996 # Whether dlopen of statically linked programs is supported.
25997 dlopen_self_static=$enable_dlopen_self_static
25998
25999 # Compiler flag to prevent dynamic linking.
26000 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26001
26002 # Compiler flag to turn off builtin functions.
26003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26004
26005 # Compiler flag to allow reflexive dlopens.
26006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26007
26008 # Compiler flag to generate shared objects directly from archives.
26009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26010
26011 # Compiler flag to generate thread-safe objects.
26012 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26013
26014 # Library versioning type.
26015 version_type=$version_type
26016
26017 # Format of library name prefix.
26018 libname_spec=$lt_libname_spec
26019
26020 # List of archive names.  First name is the real one, the rest are links.
26021 # The last name is the one that the linker finds with -lNAME.
26022 library_names_spec=$lt_library_names_spec
26023
26024 # The coded name of the library, if different from the real name.
26025 soname_spec=$lt_soname_spec
26026
26027 # Commands used to build and install an old-style archive.
26028 RANLIB=$lt_RANLIB
26029 old_archive_cmds=$lt_old_archive_cmds_GCJ
26030 old_postinstall_cmds=$lt_old_postinstall_cmds
26031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26032
26033 # Create an old-style archive from a shared archive.
26034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26035
26036 # Create a temporary old-style archive to link instead of a shared archive.
26037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26038
26039 # Commands used to build and install a shared archive.
26040 archive_cmds=$lt_archive_cmds_GCJ
26041 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26042 postinstall_cmds=$lt_postinstall_cmds
26043 postuninstall_cmds=$lt_postuninstall_cmds
26044
26045 # Commands used to build a loadable module (assumed same as above if empty)
26046 module_cmds=$lt_module_cmds_GCJ
26047 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26048
26049 # Commands to strip libraries.
26050 old_striplib=$lt_old_striplib
26051 striplib=$lt_striplib
26052
26053 # Dependencies to place before the objects being linked to create a
26054 # shared library.
26055 predep_objects=$lt_predep_objects_GCJ
26056
26057 # Dependencies to place after the objects being linked to create a
26058 # shared library.
26059 postdep_objects=$lt_postdep_objects_GCJ
26060
26061 # Dependencies to place before the objects being linked to create a
26062 # shared library.
26063 predeps=$lt_predeps_GCJ
26064
26065 # Dependencies to place after the objects being linked to create a
26066 # shared library.
26067 postdeps=$lt_postdeps_GCJ
26068
26069 # The library search path used internally by the compiler when linking
26070 # a shared library.
26071 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26072
26073 # Method to check whether dependent libraries are shared objects.
26074 deplibs_check_method=$lt_deplibs_check_method
26075
26076 # Command to use when deplibs_check_method == file_magic.
26077 file_magic_cmd=$lt_file_magic_cmd
26078
26079 # Flag that allows shared libraries with undefined symbols to be built.
26080 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26081
26082 # Flag that forces no undefined symbols.
26083 no_undefined_flag=$lt_no_undefined_flag_GCJ
26084
26085 # Commands used to finish a libtool library installation in a directory.
26086 finish_cmds=$lt_finish_cmds
26087
26088 # Same as above, but a single script fragment to be evaled but not shown.
26089 finish_eval=$lt_finish_eval
26090
26091 # Take the output of nm and produce a listing of raw symbols and C names.
26092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26093
26094 # Transform the output of nm in a proper C declaration
26095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26096
26097 # Transform the output of nm in a C name address pair
26098 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26099
26100 # This is the shared library runtime path variable.
26101 runpath_var=$runpath_var
26102
26103 # This is the shared library path variable.
26104 shlibpath_var=$shlibpath_var
26105
26106 # Is shlibpath searched before the hard-coded library search path?
26107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26108
26109 # How to hardcode a shared library path into an executable.
26110 hardcode_action=$hardcode_action_GCJ
26111
26112 # Whether we should hardcode library paths into libraries.
26113 hardcode_into_libs=$hardcode_into_libs
26114
26115 # Flag to hardcode \$libdir into a binary during linking.
26116 # This must work even if \$libdir does not exist.
26117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26118
26119 # If ld is used when linking, flag to hardcode \$libdir into
26120 # a binary during linking. This must work even if \$libdir does
26121 # not exist.
26122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26123
26124 # Whether we need a single -rpath flag with a separated argument.
26125 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26126
26127 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26128 # resulting binary.
26129 hardcode_direct=$hardcode_direct_GCJ
26130
26131 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26132 # resulting binary.
26133 hardcode_minus_L=$hardcode_minus_L_GCJ
26134
26135 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26136 # the resulting binary.
26137 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26138
26139 # Set to yes if building a shared library automatically hardcodes DIR into the library
26140 # and all subsequent libraries and executables linked against it.
26141 hardcode_automatic=$hardcode_automatic_GCJ
26142
26143 # Variables whose values should be saved in libtool wrapper scripts and
26144 # restored at relink time.
26145 variables_saved_for_relink="$variables_saved_for_relink"
26146
26147 # Whether libtool must link a program against all its dependency libraries.
26148 link_all_deplibs=$link_all_deplibs_GCJ
26149
26150 # Compile-time system search path for libraries
26151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26152
26153 # Run-time system search path for libraries
26154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26155
26156 # Fix the shell variable \$srcfile for the compiler.
26157 fix_srcfile_path="$fix_srcfile_path_GCJ"
26158
26159 # Set to yes if exported symbols are required.
26160 always_export_symbols=$always_export_symbols_GCJ
26161
26162 # The commands to list exported symbols.
26163 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26164
26165 # The commands to extract the exported symbol list from a shared archive.
26166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26167
26168 # Symbols that should not be listed in the preloaded symbols.
26169 exclude_expsyms=$lt_exclude_expsyms_GCJ
26170
26171 # Symbols that must always be exported.
26172 include_expsyms=$lt_include_expsyms_GCJ
26173
26174 # ### END LIBTOOL TAG CONFIG: $tagname
26175
26176 __EOF__
26177
26178
26179 else
26180   # If there is no Makefile yet, we rely on a make rule to execute
26181   # `config.status --recheck' to rerun these tests and create the
26182   # libtool script then.
26183   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26184   if test -f "$ltmain_in"; then
26185     test -f Makefile && make "$ltmain"
26186   fi
26187 fi
26188
26189
26190 ac_ext=c
26191 ac_cpp='$CPP $CPPFLAGS'
26192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26195
26196 CC="$lt_save_CC"
26197
26198         else
26199           tagname=""
26200         fi
26201         ;;
26202
26203       RC)
26204         ac_ext=c
26205 ac_cpp='$CPP $CPPFLAGS'
26206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26209
26210
26211 # Source file extension for RC test sources.
26212 ac_ext=rc
26213
26214 # Object file extension for compiled RC test sources.
26215 objext=o
26216 objext_RC=$objext
26217
26218 # Code to be used in simple compile tests
26219 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26220
26221 # Code to be used in simple link tests
26222 lt_simple_link_test_code="$lt_simple_compile_test_code"
26223
26224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26225
26226 # If no C compiler was specified, use CC.
26227 LTCC=${LTCC-"$CC"}
26228
26229 # If no C compiler flags were specified, use CFLAGS.
26230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26231
26232 # Allow CC to be a program name with arguments.
26233 compiler=$CC
26234
26235
26236 # save warnings/boilerplate of simple test code
26237 ac_outfile=conftest.$ac_objext
26238 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26240 _lt_compiler_boilerplate=`cat conftest.err`
26241 $rm conftest*
26242
26243 ac_outfile=conftest.$ac_objext
26244 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26246 _lt_linker_boilerplate=`cat conftest.err`
26247 $rm conftest*
26248
26249
26250 # Allow CC to be a program name with arguments.
26251 lt_save_CC="$CC"
26252 CC=${RC-"windres"}
26253 compiler=$CC
26254 compiler_RC=$CC
26255 for cc_temp in $compiler""; do
26256   case $cc_temp in
26257     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26258     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26259     \-*) ;;
26260     *) break;;
26261   esac
26262 done
26263 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26264
26265 lt_cv_prog_compiler_c_o_RC=yes
26266
26267 # The else clause should only fire when bootstrapping the
26268 # libtool distribution, otherwise you forgot to ship ltmain.sh
26269 # with your package, and you will get complaints that there are
26270 # no rules to generate ltmain.sh.
26271 if test -f "$ltmain"; then
26272   # See if we are running on zsh, and set the options which allow our commands through
26273   # without removal of \ escapes.
26274   if test -n "${ZSH_VERSION+set}" ; then
26275     setopt NO_GLOB_SUBST
26276   fi
26277   # Now quote all the things that may contain metacharacters while being
26278   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26279   # variables and quote the copies for generation of the libtool script.
26280   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26281     SED SHELL STRIP \
26282     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26283     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26284     deplibs_check_method reload_flag reload_cmds need_locks \
26285     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26286     lt_cv_sys_global_symbol_to_c_name_address \
26287     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26288     old_postinstall_cmds old_postuninstall_cmds \
26289     compiler_RC \
26290     CC_RC \
26291     LD_RC \
26292     lt_prog_compiler_wl_RC \
26293     lt_prog_compiler_pic_RC \
26294     lt_prog_compiler_static_RC \
26295     lt_prog_compiler_no_builtin_flag_RC \
26296     export_dynamic_flag_spec_RC \
26297     thread_safe_flag_spec_RC \
26298     whole_archive_flag_spec_RC \
26299     enable_shared_with_static_runtimes_RC \
26300     old_archive_cmds_RC \
26301     old_archive_from_new_cmds_RC \
26302     predep_objects_RC \
26303     postdep_objects_RC \
26304     predeps_RC \
26305     postdeps_RC \
26306     compiler_lib_search_path_RC \
26307     archive_cmds_RC \
26308     archive_expsym_cmds_RC \
26309     postinstall_cmds_RC \
26310     postuninstall_cmds_RC \
26311     old_archive_from_expsyms_cmds_RC \
26312     allow_undefined_flag_RC \
26313     no_undefined_flag_RC \
26314     export_symbols_cmds_RC \
26315     hardcode_libdir_flag_spec_RC \
26316     hardcode_libdir_flag_spec_ld_RC \
26317     hardcode_libdir_separator_RC \
26318     hardcode_automatic_RC \
26319     module_cmds_RC \
26320     module_expsym_cmds_RC \
26321     lt_cv_prog_compiler_c_o_RC \
26322     exclude_expsyms_RC \
26323     include_expsyms_RC; do
26324
26325     case $var in
26326     old_archive_cmds_RC | \
26327     old_archive_from_new_cmds_RC | \
26328     archive_cmds_RC | \
26329     archive_expsym_cmds_RC | \
26330     module_cmds_RC | \
26331     module_expsym_cmds_RC | \
26332     old_archive_from_expsyms_cmds_RC | \
26333     export_symbols_cmds_RC | \
26334     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26335     postinstall_cmds | postuninstall_cmds | \
26336     old_postinstall_cmds | old_postuninstall_cmds | \
26337     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26338       # Double-quote double-evaled strings.
26339       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26340       ;;
26341     *)
26342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26343       ;;
26344     esac
26345   done
26346
26347   case $lt_echo in
26348   *'\$0 --fallback-echo"')
26349     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26350     ;;
26351   esac
26352
26353 cfgfile="$ofile"
26354
26355   cat <<__EOF__ >> "$cfgfile"
26356 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26357
26358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26359
26360 # Shell to use when invoking shell scripts.
26361 SHELL=$lt_SHELL
26362
26363 # Whether or not to build shared libraries.
26364 build_libtool_libs=$enable_shared
26365
26366 # Whether or not to build static libraries.
26367 build_old_libs=$enable_static
26368
26369 # Whether or not to add -lc for building shared libraries.
26370 build_libtool_need_lc=$archive_cmds_need_lc_RC
26371
26372 # Whether or not to disallow shared libs when runtime libs are static
26373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26374
26375 # Whether or not to optimize for fast installation.
26376 fast_install=$enable_fast_install
26377
26378 # The host system.
26379 host_alias=$host_alias
26380 host=$host
26381 host_os=$host_os
26382
26383 # The build system.
26384 build_alias=$build_alias
26385 build=$build
26386 build_os=$build_os
26387
26388 # An echo program that does not interpret backslashes.
26389 echo=$lt_echo
26390
26391 # The archiver.
26392 AR=$lt_AR
26393 AR_FLAGS=$lt_AR_FLAGS
26394
26395 # A C compiler.
26396 LTCC=$lt_LTCC
26397
26398 # LTCC compiler flags.
26399 LTCFLAGS=$lt_LTCFLAGS
26400
26401 # A language-specific compiler.
26402 CC=$lt_compiler_RC
26403
26404 # Is the compiler the GNU C compiler?
26405 with_gcc=$GCC_RC
26406
26407 # An ERE matcher.
26408 EGREP=$lt_EGREP
26409
26410 # The linker used to build libraries.
26411 LD=$lt_LD_RC
26412
26413 # Whether we need hard or soft links.
26414 LN_S=$lt_LN_S
26415
26416 # A BSD-compatible nm program.
26417 NM=$lt_NM
26418
26419 # A symbol stripping program
26420 STRIP=$lt_STRIP
26421
26422 # Used to examine libraries when file_magic_cmd begins "file"
26423 MAGIC_CMD=$MAGIC_CMD
26424
26425 # Used on cygwin: DLL creation program.
26426 DLLTOOL="$DLLTOOL"
26427
26428 # Used on cygwin: object dumper.
26429 OBJDUMP="$OBJDUMP"
26430
26431 # Used on cygwin: assembler.
26432 AS="$AS"
26433
26434 # The name of the directory that contains temporary libtool files.
26435 objdir=$objdir
26436
26437 # How to create reloadable object files.
26438 reload_flag=$lt_reload_flag
26439 reload_cmds=$lt_reload_cmds
26440
26441 # How to pass a linker flag through the compiler.
26442 wl=$lt_lt_prog_compiler_wl_RC
26443
26444 # Object file suffix (normally "o").
26445 objext="$ac_objext"
26446
26447 # Old archive suffix (normally "a").
26448 libext="$libext"
26449
26450 # Shared library suffix (normally ".so").
26451 shrext_cmds='$shrext_cmds'
26452
26453 # Executable file suffix (normally "").
26454 exeext="$exeext"
26455
26456 # Additional compiler flags for building library objects.
26457 pic_flag=$lt_lt_prog_compiler_pic_RC
26458 pic_mode=$pic_mode
26459
26460 # What is the maximum length of a command?
26461 max_cmd_len=$lt_cv_sys_max_cmd_len
26462
26463 # Does compiler simultaneously support -c and -o options?
26464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26465
26466 # Must we lock files when doing compilation?
26467 need_locks=$lt_need_locks
26468
26469 # Do we need the lib prefix for modules?
26470 need_lib_prefix=$need_lib_prefix
26471
26472 # Do we need a version for libraries?
26473 need_version=$need_version
26474
26475 # Whether dlopen is supported.
26476 dlopen_support=$enable_dlopen
26477
26478 # Whether dlopen of programs is supported.
26479 dlopen_self=$enable_dlopen_self
26480
26481 # Whether dlopen of statically linked programs is supported.
26482 dlopen_self_static=$enable_dlopen_self_static
26483
26484 # Compiler flag to prevent dynamic linking.
26485 link_static_flag=$lt_lt_prog_compiler_static_RC
26486
26487 # Compiler flag to turn off builtin functions.
26488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26489
26490 # Compiler flag to allow reflexive dlopens.
26491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26492
26493 # Compiler flag to generate shared objects directly from archives.
26494 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26495
26496 # Compiler flag to generate thread-safe objects.
26497 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26498
26499 # Library versioning type.
26500 version_type=$version_type
26501
26502 # Format of library name prefix.
26503 libname_spec=$lt_libname_spec
26504
26505 # List of archive names.  First name is the real one, the rest are links.
26506 # The last name is the one that the linker finds with -lNAME.
26507 library_names_spec=$lt_library_names_spec
26508
26509 # The coded name of the library, if different from the real name.
26510 soname_spec=$lt_soname_spec
26511
26512 # Commands used to build and install an old-style archive.
26513 RANLIB=$lt_RANLIB
26514 old_archive_cmds=$lt_old_archive_cmds_RC
26515 old_postinstall_cmds=$lt_old_postinstall_cmds
26516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26517
26518 # Create an old-style archive from a shared archive.
26519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26520
26521 # Create a temporary old-style archive to link instead of a shared archive.
26522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26523
26524 # Commands used to build and install a shared archive.
26525 archive_cmds=$lt_archive_cmds_RC
26526 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26527 postinstall_cmds=$lt_postinstall_cmds
26528 postuninstall_cmds=$lt_postuninstall_cmds
26529
26530 # Commands used to build a loadable module (assumed same as above if empty)
26531 module_cmds=$lt_module_cmds_RC
26532 module_expsym_cmds=$lt_module_expsym_cmds_RC
26533
26534 # Commands to strip libraries.
26535 old_striplib=$lt_old_striplib
26536 striplib=$lt_striplib
26537
26538 # Dependencies to place before the objects being linked to create a
26539 # shared library.
26540 predep_objects=$lt_predep_objects_RC
26541
26542 # Dependencies to place after the objects being linked to create a
26543 # shared library.
26544 postdep_objects=$lt_postdep_objects_RC
26545
26546 # Dependencies to place before the objects being linked to create a
26547 # shared library.
26548 predeps=$lt_predeps_RC
26549
26550 # Dependencies to place after the objects being linked to create a
26551 # shared library.
26552 postdeps=$lt_postdeps_RC
26553
26554 # The library search path used internally by the compiler when linking
26555 # a shared library.
26556 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26557
26558 # Method to check whether dependent libraries are shared objects.
26559 deplibs_check_method=$lt_deplibs_check_method
26560
26561 # Command to use when deplibs_check_method == file_magic.
26562 file_magic_cmd=$lt_file_magic_cmd
26563
26564 # Flag that allows shared libraries with undefined symbols to be built.
26565 allow_undefined_flag=$lt_allow_undefined_flag_RC
26566
26567 # Flag that forces no undefined symbols.
26568 no_undefined_flag=$lt_no_undefined_flag_RC
26569
26570 # Commands used to finish a libtool library installation in a directory.
26571 finish_cmds=$lt_finish_cmds
26572
26573 # Same as above, but a single script fragment to be evaled but not shown.
26574 finish_eval=$lt_finish_eval
26575
26576 # Take the output of nm and produce a listing of raw symbols and C names.
26577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26578
26579 # Transform the output of nm in a proper C declaration
26580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26581
26582 # Transform the output of nm in a C name address pair
26583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26584
26585 # This is the shared library runtime path variable.
26586 runpath_var=$runpath_var
26587
26588 # This is the shared library path variable.
26589 shlibpath_var=$shlibpath_var
26590
26591 # Is shlibpath searched before the hard-coded library search path?
26592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26593
26594 # How to hardcode a shared library path into an executable.
26595 hardcode_action=$hardcode_action_RC
26596
26597 # Whether we should hardcode library paths into libraries.
26598 hardcode_into_libs=$hardcode_into_libs
26599
26600 # Flag to hardcode \$libdir into a binary during linking.
26601 # This must work even if \$libdir does not exist.
26602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26603
26604 # If ld is used when linking, flag to hardcode \$libdir into
26605 # a binary during linking. This must work even if \$libdir does
26606 # not exist.
26607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26608
26609 # Whether we need a single -rpath flag with a separated argument.
26610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26611
26612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26613 # resulting binary.
26614 hardcode_direct=$hardcode_direct_RC
26615
26616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26617 # resulting binary.
26618 hardcode_minus_L=$hardcode_minus_L_RC
26619
26620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26621 # the resulting binary.
26622 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26623
26624 # Set to yes if building a shared library automatically hardcodes DIR into the library
26625 # and all subsequent libraries and executables linked against it.
26626 hardcode_automatic=$hardcode_automatic_RC
26627
26628 # Variables whose values should be saved in libtool wrapper scripts and
26629 # restored at relink time.
26630 variables_saved_for_relink="$variables_saved_for_relink"
26631
26632 # Whether libtool must link a program against all its dependency libraries.
26633 link_all_deplibs=$link_all_deplibs_RC
26634
26635 # Compile-time system search path for libraries
26636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26637
26638 # Run-time system search path for libraries
26639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26640
26641 # Fix the shell variable \$srcfile for the compiler.
26642 fix_srcfile_path="$fix_srcfile_path_RC"
26643
26644 # Set to yes if exported symbols are required.
26645 always_export_symbols=$always_export_symbols_RC
26646
26647 # The commands to list exported symbols.
26648 export_symbols_cmds=$lt_export_symbols_cmds_RC
26649
26650 # The commands to extract the exported symbol list from a shared archive.
26651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26652
26653 # Symbols that should not be listed in the preloaded symbols.
26654 exclude_expsyms=$lt_exclude_expsyms_RC
26655
26656 # Symbols that must always be exported.
26657 include_expsyms=$lt_include_expsyms_RC
26658
26659 # ### END LIBTOOL TAG CONFIG: $tagname
26660
26661 __EOF__
26662
26663
26664 else
26665   # If there is no Makefile yet, we rely on a make rule to execute
26666   # `config.status --recheck' to rerun these tests and create the
26667   # libtool script then.
26668   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26669   if test -f "$ltmain_in"; then
26670     test -f Makefile && make "$ltmain"
26671   fi
26672 fi
26673
26674
26675 ac_ext=c
26676 ac_cpp='$CPP $CPPFLAGS'
26677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26680
26681 CC="$lt_save_CC"
26682
26683         ;;
26684
26685       *)
26686         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26687 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26688    { (exit 1); exit 1; }; }
26689         ;;
26690       esac
26691
26692       # Append the new tag name to the list of available tags.
26693       if test -n "$tagname" ; then
26694       available_tags="$available_tags $tagname"
26695     fi
26696     fi
26697   done
26698   IFS="$lt_save_ifs"
26699
26700   # Now substitute the updated list of available tags.
26701   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26702     mv "${ofile}T" "$ofile"
26703     chmod +x "$ofile"
26704   else
26705     rm -f "${ofile}T"
26706     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26707 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26708    { (exit 1); exit 1; }; }
26709   fi
26710 fi
26711
26712
26713
26714 # This can be used to rebuild libtool when needed
26715 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26716
26717 # Always use our own libtool.
26718 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26719
26720 # Prevent multiple expansion
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742 if test "$lt_cv_dlopen_self" = "yes" ; then
26743
26744 cat >>confdefs.h <<\_ACEOF
26745 #define CAN_DLOPEN_SELF 1
26746 _ACEOF
26747
26748 fi
26749
26750 etags_version=`$ETAGS --version 2>&1`
26751 case "$etags_version" in
26752         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26753         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26754         *) ETAGSFLAGS="" ;;
26755 esac
26756 ETAGSFLAGS=$ETAGSFLAGS
26757
26758
26759 if test "$WITH_LLVMGCCDIR" = "default" ; then
26760   LLVMGCC="llvm-gcc${EXEEXT}"
26761   LLVMGXX="llvm-g++${EXEEXT}"
26762   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26763 set dummy $LLVMGCC; ac_word=$2
26764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26766 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26767   echo $ECHO_N "(cached) $ECHO_C" >&6
26768 else
26769   case $LLVMGCC in
26770   [\\/]* | ?:[\\/]*)
26771   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26772   ;;
26773   *)
26774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26775 for as_dir in $PATH
26776 do
26777   IFS=$as_save_IFS
26778   test -z "$as_dir" && as_dir=.
26779   for ac_exec_ext in '' $ac_executable_extensions; do
26780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26781     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26783     break 2
26784   fi
26785 done
26786 done
26787 IFS=$as_save_IFS
26788
26789   ;;
26790 esac
26791 fi
26792 LLVMGCC=$ac_cv_path_LLVMGCC
26793 if test -n "$LLVMGCC"; then
26794   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26795 echo "${ECHO_T}$LLVMGCC" >&6; }
26796 else
26797   { echo "$as_me:$LINENO: result: no" >&5
26798 echo "${ECHO_T}no" >&6; }
26799 fi
26800
26801
26802   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26803 set dummy $LLVMGXX; ac_word=$2
26804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26806 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   case $LLVMGXX in
26810   [\\/]* | ?:[\\/]*)
26811   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26812   ;;
26813   *)
26814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26815 for as_dir in $PATH
26816 do
26817   IFS=$as_save_IFS
26818   test -z "$as_dir" && as_dir=.
26819   for ac_exec_ext in '' $ac_executable_extensions; do
26820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26821     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26823     break 2
26824   fi
26825 done
26826 done
26827 IFS=$as_save_IFS
26828
26829   ;;
26830 esac
26831 fi
26832 LLVMGXX=$ac_cv_path_LLVMGXX
26833 if test -n "$LLVMGXX"; then
26834   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26835 echo "${ECHO_T}$LLVMGXX" >&6; }
26836 else
26837   { echo "$as_me:$LINENO: result: no" >&5
26838 echo "${ECHO_T}no" >&6; }
26839 fi
26840
26841
26842 else
26843   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26844   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26845   LLVMGCC=$LLVMGCC
26846
26847   LLVMGXX=$LLVMGXX
26848
26849 fi
26850
26851 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26852 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26853
26854 ICC=no
26855 IXX=no
26856 case $CC in
26857   icc*|icpc*)
26858     ICC=yes
26859     IXX=yes
26860     ;;
26861    *)
26862     ;;
26863 esac
26864
26865 if test "$GCC" != "yes" && test "$ICC" != "yes"
26866 then
26867   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26868 echo "$as_me: error: gcc|icc required but not found" >&2;}
26869    { (exit 1); exit 1; }; }
26870 fi
26871
26872 if test "$GXX" != "yes" && test "$IXX" != "yes"
26873 then
26874   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26875 echo "$as_me: error: g++|icc required but not found" >&2;}
26876    { (exit 1); exit 1; }; }
26877 fi
26878
26879 if test "$GCC" = "yes"
26880 then
26881   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26882   if test "$gccmajor" -lt "3"
26883   then
26884     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26885 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26886    { (exit 1); exit 1; }; }
26887   fi
26888 fi
26889
26890 if test -z "$llvm_cv_gnu_make_command"
26891 then
26892   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26893 echo "$as_me: error: GNU Make required but not found" >&2;}
26894    { (exit 1); exit 1; }; }
26895 fi
26896
26897 { echo "$as_me:$LINENO: result: ok" >&5
26898 echo "${ECHO_T}ok" >&6; }
26899
26900
26901
26902 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26903 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26904 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26905   echo $ECHO_N "(cached) $ECHO_C" >&6
26906 else
26907   ac_check_lib_save_LIBS=$LIBS
26908 LIBS="-lelf  $LIBS"
26909 cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h.  */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h.  */
26915
26916 /* Override any GCC internal prototype to avoid an error.
26917    Use char because int might match the return type of a GCC
26918    builtin and then its argument prototype would still apply.  */
26919 #ifdef __cplusplus
26920 extern "C"
26921 #endif
26922 char elf_begin ();
26923 int
26924 main ()
26925 {
26926 return elf_begin ();
26927   ;
26928   return 0;
26929 }
26930 _ACEOF
26931 rm -f conftest.$ac_objext conftest$ac_exeext
26932 if { (ac_try="$ac_link"
26933 case "(($ac_try" in
26934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935   *) ac_try_echo=$ac_try;;
26936 esac
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938   (eval "$ac_link") 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } &&
26945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26946   { (case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_try") 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; } &&
26955          { ac_try='test -s conftest$ac_exeext'
26956   { (case "(($ac_try" in
26957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26958   *) ac_try_echo=$ac_try;;
26959 esac
26960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26961   (eval "$ac_try") 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; }; then
26965   ac_cv_lib_elf_elf_begin=yes
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970         ac_cv_lib_elf_elf_begin=no
26971 fi
26972
26973 rm -f core conftest.err conftest.$ac_objext \
26974       conftest$ac_exeext conftest.$ac_ext
26975 LIBS=$ac_check_lib_save_LIBS
26976 fi
26977 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26978 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26979 if test $ac_cv_lib_elf_elf_begin = yes; then
26980   cat >>confdefs.h <<_ACEOF
26981 #define HAVE_LIBELF 1
26982 _ACEOF
26983
26984   LIBS="-lelf $LIBS"
26985
26986 fi
26987
26988
26989 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26990 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26991 if test "${ac_cv_lib_m_sin+set}" = set; then
26992   echo $ECHO_N "(cached) $ECHO_C" >&6
26993 else
26994   ac_check_lib_save_LIBS=$LIBS
26995 LIBS="-lm  $LIBS"
26996 cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002
27003 /* Override any GCC internal prototype to avoid an error.
27004    Use char because int might match the return type of a GCC
27005    builtin and then its argument prototype would still apply.  */
27006 #ifdef __cplusplus
27007 extern "C"
27008 #endif
27009 char sin ();
27010 int
27011 main ()
27012 {
27013 return sin ();
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_link") 2>conftest.er1
27026   ac_status=$?
27027   grep -v '^ *+' conftest.er1 >conftest.err
27028   rm -f conftest.er1
27029   cat conftest.err >&5
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } &&
27032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033   { (case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; } &&
27042          { ac_try='test -s conftest$ac_exeext'
27043   { (case "(($ac_try" in
27044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045   *) ac_try_echo=$ac_try;;
27046 esac
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048   (eval "$ac_try") 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; }; then
27052   ac_cv_lib_m_sin=yes
27053 else
27054   echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27056
27057         ac_cv_lib_m_sin=no
27058 fi
27059
27060 rm -f core conftest.err conftest.$ac_objext \
27061       conftest$ac_exeext conftest.$ac_ext
27062 LIBS=$ac_check_lib_save_LIBS
27063 fi
27064 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27065 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27066 if test $ac_cv_lib_m_sin = yes; then
27067   cat >>confdefs.h <<_ACEOF
27068 #define HAVE_LIBM 1
27069 _ACEOF
27070
27071   LIBS="-lm $LIBS"
27072
27073 fi
27074
27075 if test "$llvm_cv_os_type" = "MingW" ; then
27076
27077 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27078 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27079 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27080   echo $ECHO_N "(cached) $ECHO_C" >&6
27081 else
27082   ac_check_lib_save_LIBS=$LIBS
27083 LIBS="-limagehlp  $LIBS"
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090
27091
27092 int
27093 main ()
27094 {
27095 return main ();
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 rm -f conftest.$ac_objext conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104   *) ac_try_echo=$ac_try;;
27105 esac
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107   (eval "$ac_link") 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } &&
27114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; } &&
27124          { ac_try='test -s conftest$ac_exeext'
27125   { (case "(($ac_try" in
27126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127   *) ac_try_echo=$ac_try;;
27128 esac
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130   (eval "$ac_try") 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; }; then
27134   ac_cv_lib_imagehlp_main=yes
27135 else
27136   echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139         ac_cv_lib_imagehlp_main=no
27140 fi
27141
27142 rm -f core conftest.err conftest.$ac_objext \
27143       conftest$ac_exeext conftest.$ac_ext
27144 LIBS=$ac_check_lib_save_LIBS
27145 fi
27146 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27147 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27148 if test $ac_cv_lib_imagehlp_main = yes; then
27149   cat >>confdefs.h <<_ACEOF
27150 #define HAVE_LIBIMAGEHLP 1
27151 _ACEOF
27152
27153   LIBS="-limagehlp $LIBS"
27154
27155 fi
27156
27157
27158 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27159 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27160 if test "${ac_cv_lib_psapi_main+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   ac_check_lib_save_LIBS=$LIBS
27164 LIBS="-lpsapi  $LIBS"
27165 cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171
27172
27173 int
27174 main ()
27175 {
27176 return main ();
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 rm -f conftest.$ac_objext conftest$ac_exeext
27182 if { (ac_try="$ac_link"
27183 case "(($ac_try" in
27184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185   *) ac_try_echo=$ac_try;;
27186 esac
27187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188   (eval "$ac_link") 2>conftest.er1
27189   ac_status=$?
27190   grep -v '^ *+' conftest.er1 >conftest.err
27191   rm -f conftest.er1
27192   cat conftest.err >&5
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); } &&
27195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27196   { (case "(($ac_try" in
27197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198   *) ac_try_echo=$ac_try;;
27199 esac
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201   (eval "$ac_try") 2>&5
27202   ac_status=$?
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); }; } &&
27205          { ac_try='test -s conftest$ac_exeext'
27206   { (case "(($ac_try" in
27207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208   *) ac_try_echo=$ac_try;;
27209 esac
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211   (eval "$ac_try") 2>&5
27212   ac_status=$?
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); }; }; then
27215   ac_cv_lib_psapi_main=yes
27216 else
27217   echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27219
27220         ac_cv_lib_psapi_main=no
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext \
27224       conftest$ac_exeext conftest.$ac_ext
27225 LIBS=$ac_check_lib_save_LIBS
27226 fi
27227 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27228 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27229 if test $ac_cv_lib_psapi_main = yes; then
27230   cat >>confdefs.h <<_ACEOF
27231 #define HAVE_LIBPSAPI 1
27232 _ACEOF
27233
27234   LIBS="-lpsapi $LIBS"
27235
27236 fi
27237
27238 fi
27239
27240 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27241 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27242 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245   ac_func_search_save_LIBS=$LIBS
27246 cat >conftest.$ac_ext <<_ACEOF
27247 /* confdefs.h.  */
27248 _ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h.  */
27252
27253 /* Override any GCC internal prototype to avoid an error.
27254    Use char because int might match the return type of a GCC
27255    builtin and then its argument prototype would still apply.  */
27256 #ifdef __cplusplus
27257 extern "C"
27258 #endif
27259 char lt_dlopen ();
27260 int
27261 main ()
27262 {
27263 return lt_dlopen ();
27264   ;
27265   return 0;
27266 }
27267 _ACEOF
27268 for ac_lib in '' ltdl; do
27269   if test -z "$ac_lib"; then
27270     ac_res="none required"
27271   else
27272     ac_res=-l$ac_lib
27273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27274   fi
27275   rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (ac_try="$ac_link"
27277 case "(($ac_try" in
27278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279   *) ac_try_echo=$ac_try;;
27280 esac
27281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282   (eval "$ac_link") 2>conftest.er1
27283   ac_status=$?
27284   grep -v '^ *+' conftest.er1 >conftest.err
27285   rm -f conftest.er1
27286   cat conftest.err >&5
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); } &&
27289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27290   { (case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295   (eval "$ac_try") 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; } &&
27299          { ac_try='test -s conftest$ac_exeext'
27300   { (case "(($ac_try" in
27301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302   *) ac_try_echo=$ac_try;;
27303 esac
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305   (eval "$ac_try") 2>&5
27306   ac_status=$?
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); }; }; then
27309   ac_cv_search_lt_dlopen=$ac_res
27310 else
27311   echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27313
27314
27315 fi
27316
27317 rm -f core conftest.err conftest.$ac_objext \
27318       conftest$ac_exeext
27319   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27320   break
27321 fi
27322 done
27323 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27324   :
27325 else
27326   ac_cv_search_lt_dlopen=no
27327 fi
27328 rm conftest.$ac_ext
27329 LIBS=$ac_func_search_save_LIBS
27330 fi
27331 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27332 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27333 ac_res=$ac_cv_search_lt_dlopen
27334 if test "$ac_res" != no; then
27335   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27336
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_LT_DLOPEN 1
27339 _ACEOF
27340
27341 else
27342   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27343                            not be available" >&5
27344 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27345                            not be available" >&2;}
27346 fi
27347
27348
27349 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27350 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27351 if test "${ac_cv_search_dlopen+set}" = set; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354   ac_func_search_save_LIBS=$LIBS
27355 cat >conftest.$ac_ext <<_ACEOF
27356 /* confdefs.h.  */
27357 _ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h.  */
27361
27362 /* Override any GCC internal prototype to avoid an error.
27363    Use char because int might match the return type of a GCC
27364    builtin and then its argument prototype would still apply.  */
27365 #ifdef __cplusplus
27366 extern "C"
27367 #endif
27368 char dlopen ();
27369 int
27370 main ()
27371 {
27372 return dlopen ();
27373   ;
27374   return 0;
27375 }
27376 _ACEOF
27377 for ac_lib in '' dl; do
27378   if test -z "$ac_lib"; then
27379     ac_res="none required"
27380   else
27381     ac_res=-l$ac_lib
27382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27383   fi
27384   rm -f conftest.$ac_objext conftest$ac_exeext
27385 if { (ac_try="$ac_link"
27386 case "(($ac_try" in
27387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388   *) ac_try_echo=$ac_try;;
27389 esac
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391   (eval "$ac_link") 2>conftest.er1
27392   ac_status=$?
27393   grep -v '^ *+' conftest.er1 >conftest.err
27394   rm -f conftest.er1
27395   cat conftest.err >&5
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); } &&
27398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399   { (case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404   (eval "$ac_try") 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; } &&
27408          { ac_try='test -s conftest$ac_exeext'
27409   { (case "(($ac_try" in
27410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411   *) ac_try_echo=$ac_try;;
27412 esac
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414   (eval "$ac_try") 2>&5
27415   ac_status=$?
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); }; }; then
27418   ac_cv_search_dlopen=$ac_res
27419 else
27420   echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27422
27423
27424 fi
27425
27426 rm -f core conftest.err conftest.$ac_objext \
27427       conftest$ac_exeext
27428   if test "${ac_cv_search_dlopen+set}" = set; then
27429   break
27430 fi
27431 done
27432 if test "${ac_cv_search_dlopen+set}" = set; then
27433   :
27434 else
27435   ac_cv_search_dlopen=no
27436 fi
27437 rm conftest.$ac_ext
27438 LIBS=$ac_func_search_save_LIBS
27439 fi
27440 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27441 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27442 ac_res=$ac_cv_search_dlopen
27443 if test "$ac_res" != no; then
27444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27445
27446 cat >>confdefs.h <<\_ACEOF
27447 #define HAVE_DLOPEN 1
27448 _ACEOF
27449
27450 else
27451   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27452 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27453 fi
27454
27455
27456 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27457 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27458 if test "${ac_cv_search_mallinfo+set}" = set; then
27459   echo $ECHO_N "(cached) $ECHO_C" >&6
27460 else
27461   ac_func_search_save_LIBS=$LIBS
27462 cat >conftest.$ac_ext <<_ACEOF
27463 /* confdefs.h.  */
27464 _ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h.  */
27468
27469 /* Override any GCC internal prototype to avoid an error.
27470    Use char because int might match the return type of a GCC
27471    builtin and then its argument prototype would still apply.  */
27472 #ifdef __cplusplus
27473 extern "C"
27474 #endif
27475 char mallinfo ();
27476 int
27477 main ()
27478 {
27479 return mallinfo ();
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 for ac_lib in '' malloc; do
27485   if test -z "$ac_lib"; then
27486     ac_res="none required"
27487   else
27488     ac_res=-l$ac_lib
27489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27490   fi
27491   rm -f conftest.$ac_objext conftest$ac_exeext
27492 if { (ac_try="$ac_link"
27493 case "(($ac_try" in
27494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495   *) ac_try_echo=$ac_try;;
27496 esac
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498   (eval "$ac_link") 2>conftest.er1
27499   ac_status=$?
27500   grep -v '^ *+' conftest.er1 >conftest.err
27501   rm -f conftest.er1
27502   cat conftest.err >&5
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); } &&
27505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27506   { (case "(($ac_try" in
27507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508   *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511   (eval "$ac_try") 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; } &&
27515          { ac_try='test -s conftest$ac_exeext'
27516   { (case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521   (eval "$ac_try") 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; }; then
27525   ac_cv_search_mallinfo=$ac_res
27526 else
27527   echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27529
27530
27531 fi
27532
27533 rm -f core conftest.err conftest.$ac_objext \
27534       conftest$ac_exeext
27535   if test "${ac_cv_search_mallinfo+set}" = set; then
27536   break
27537 fi
27538 done
27539 if test "${ac_cv_search_mallinfo+set}" = set; then
27540   :
27541 else
27542   ac_cv_search_mallinfo=no
27543 fi
27544 rm conftest.$ac_ext
27545 LIBS=$ac_func_search_save_LIBS
27546 fi
27547 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27548 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27549 ac_res=$ac_cv_search_mallinfo
27550 if test "$ac_res" != no; then
27551   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27552
27553 cat >>confdefs.h <<\_ACEOF
27554 #define HAVE_MALLINFO 1
27555 _ACEOF
27556
27557 fi
27558
27559
27560 if test "$ENABLE_THREADS" -eq 1 ; then
27561
27562 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27563 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27564 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27565   echo $ECHO_N "(cached) $ECHO_C" >&6
27566 else
27567   ac_check_lib_save_LIBS=$LIBS
27568 LIBS="-lpthread  $LIBS"
27569 cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575
27576 /* Override any GCC internal prototype to avoid an error.
27577    Use char because int might match the return type of a GCC
27578    builtin and then its argument prototype would still apply.  */
27579 #ifdef __cplusplus
27580 extern "C"
27581 #endif
27582 char pthread_mutex_init ();
27583 int
27584 main ()
27585 {
27586 return pthread_mutex_init ();
27587   ;
27588   return 0;
27589 }
27590 _ACEOF
27591 rm -f conftest.$ac_objext conftest$ac_exeext
27592 if { (ac_try="$ac_link"
27593 case "(($ac_try" in
27594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595   *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598   (eval "$ac_link") 2>conftest.er1
27599   ac_status=$?
27600   grep -v '^ *+' conftest.er1 >conftest.err
27601   rm -f conftest.er1
27602   cat conftest.err >&5
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); } &&
27605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27606   { (case "(($ac_try" in
27607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608   *) ac_try_echo=$ac_try;;
27609 esac
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611   (eval "$ac_try") 2>&5
27612   ac_status=$?
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); }; } &&
27615          { ac_try='test -s conftest$ac_exeext'
27616   { (case "(($ac_try" in
27617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618   *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621   (eval "$ac_try") 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; }; then
27625   ac_cv_lib_pthread_pthread_mutex_init=yes
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630         ac_cv_lib_pthread_pthread_mutex_init=no
27631 fi
27632
27633 rm -f core conftest.err conftest.$ac_objext \
27634       conftest$ac_exeext conftest.$ac_ext
27635 LIBS=$ac_check_lib_save_LIBS
27636 fi
27637 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27638 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27639 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27640   cat >>confdefs.h <<_ACEOF
27641 #define HAVE_LIBPTHREAD 1
27642 _ACEOF
27643
27644   LIBS="-lpthread $LIBS"
27645
27646 fi
27647
27648   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27649 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27650 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27651   echo $ECHO_N "(cached) $ECHO_C" >&6
27652 else
27653   ac_func_search_save_LIBS=$LIBS
27654 cat >conftest.$ac_ext <<_ACEOF
27655 /* confdefs.h.  */
27656 _ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h.  */
27660
27661 /* Override any GCC internal prototype to avoid an error.
27662    Use char because int might match the return type of a GCC
27663    builtin and then its argument prototype would still apply.  */
27664 #ifdef __cplusplus
27665 extern "C"
27666 #endif
27667 char pthread_mutex_lock ();
27668 int
27669 main ()
27670 {
27671 return pthread_mutex_lock ();
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 for ac_lib in '' pthread; do
27677   if test -z "$ac_lib"; then
27678     ac_res="none required"
27679   else
27680     ac_res=-l$ac_lib
27681     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27682   fi
27683   rm -f conftest.$ac_objext conftest$ac_exeext
27684 if { (ac_try="$ac_link"
27685 case "(($ac_try" in
27686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687   *) ac_try_echo=$ac_try;;
27688 esac
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690   (eval "$ac_link") 2>conftest.er1
27691   ac_status=$?
27692   grep -v '^ *+' conftest.er1 >conftest.err
27693   rm -f conftest.er1
27694   cat conftest.err >&5
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); } &&
27697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27698   { (case "(($ac_try" in
27699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700   *) ac_try_echo=$ac_try;;
27701 esac
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703   (eval "$ac_try") 2>&5
27704   ac_status=$?
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); }; } &&
27707          { ac_try='test -s conftest$ac_exeext'
27708   { (case "(($ac_try" in
27709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710   *) ac_try_echo=$ac_try;;
27711 esac
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713   (eval "$ac_try") 2>&5
27714   ac_status=$?
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); }; }; then
27717   ac_cv_search_pthread_mutex_lock=$ac_res
27718 else
27719   echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27721
27722
27723 fi
27724
27725 rm -f core conftest.err conftest.$ac_objext \
27726       conftest$ac_exeext
27727   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27728   break
27729 fi
27730 done
27731 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27732   :
27733 else
27734   ac_cv_search_pthread_mutex_lock=no
27735 fi
27736 rm conftest.$ac_ext
27737 LIBS=$ac_func_search_save_LIBS
27738 fi
27739 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27740 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27741 ac_res=$ac_cv_search_pthread_mutex_lock
27742 if test "$ac_res" != no; then
27743   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27744
27745 cat >>confdefs.h <<\_ACEOF
27746 #define HAVE_PTHREAD_MUTEX_LOCK 1
27747 _ACEOF
27748
27749 fi
27750
27751 fi
27752
27753
27754 # Check whether --with-udis86 was given.
27755 if test "${with_udis86+set}" = set; then
27756   withval=$with_udis86;
27757       USE_UDIS86=1
27758
27759       case "$withval" in
27760         /usr/lib|yes) ;;
27761         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27762       esac
27763
27764 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27765 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27766 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27767   echo $ECHO_N "(cached) $ECHO_C" >&6
27768 else
27769   ac_check_lib_save_LIBS=$LIBS
27770 LIBS="-ludis86  $LIBS"
27771 cat >conftest.$ac_ext <<_ACEOF
27772 /* confdefs.h.  */
27773 _ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h.  */
27777
27778 /* Override any GCC internal prototype to avoid an error.
27779    Use char because int might match the return type of a GCC
27780    builtin and then its argument prototype would still apply.  */
27781 #ifdef __cplusplus
27782 extern "C"
27783 #endif
27784 char ud_init ();
27785 int
27786 main ()
27787 {
27788 return ud_init ();
27789   ;
27790   return 0;
27791 }
27792 _ACEOF
27793 rm -f conftest.$ac_objext conftest$ac_exeext
27794 if { (ac_try="$ac_link"
27795 case "(($ac_try" in
27796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797   *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800   (eval "$ac_link") 2>conftest.er1
27801   ac_status=$?
27802   grep -v '^ *+' conftest.er1 >conftest.err
27803   rm -f conftest.er1
27804   cat conftest.err >&5
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); } &&
27807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27808   { (case "(($ac_try" in
27809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810   *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813   (eval "$ac_try") 2>&5
27814   ac_status=$?
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); }; } &&
27817          { ac_try='test -s conftest$ac_exeext'
27818   { (case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_try") 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; }; then
27827   ac_cv_lib_udis86_ud_init=yes
27828 else
27829   echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832         ac_cv_lib_udis86_ud_init=no
27833 fi
27834
27835 rm -f core conftest.err conftest.$ac_objext \
27836       conftest$ac_exeext conftest.$ac_ext
27837 LIBS=$ac_check_lib_save_LIBS
27838 fi
27839 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27840 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27841 if test $ac_cv_lib_udis86_ud_init = yes; then
27842   cat >>confdefs.h <<_ACEOF
27843 #define HAVE_LIBUDIS86 1
27844 _ACEOF
27845
27846   LIBS="-ludis86 $LIBS"
27847
27848 else
27849
27850         echo "Error! You need to have libudis86 around."
27851         exit -1
27852
27853 fi
27854
27855
27856 else
27857   USE_UDIS86=0
27858
27859 fi
27860
27861
27862 cat >>confdefs.h <<_ACEOF
27863 #define USE_UDIS86 $USE_UDIS86
27864 _ACEOF
27865
27866
27867
27868
27869
27870
27871
27872
27873 ac_header_dirent=no
27874 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27875   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27876 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27877 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881   cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h.  */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h.  */
27887 #include <sys/types.h>
27888 #include <$ac_hdr>
27889
27890 int
27891 main ()
27892 {
27893 if ((DIR *) 0)
27894 return 0;
27895   ;
27896   return 0;
27897 }
27898 _ACEOF
27899 rm -f conftest.$ac_objext
27900 if { (ac_try="$ac_compile"
27901 case "(($ac_try" in
27902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903   *) ac_try_echo=$ac_try;;
27904 esac
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906   (eval "$ac_compile") 2>conftest.er1
27907   ac_status=$?
27908   grep -v '^ *+' conftest.er1 >conftest.err
27909   rm -f conftest.er1
27910   cat conftest.err >&5
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); } &&
27913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27914   { (case "(($ac_try" in
27915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916   *) ac_try_echo=$ac_try;;
27917 esac
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919   (eval "$ac_try") 2>&5
27920   ac_status=$?
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); }; } &&
27923          { ac_try='test -s conftest.$ac_objext'
27924   { (case "(($ac_try" in
27925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926   *) ac_try_echo=$ac_try;;
27927 esac
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929   (eval "$ac_try") 2>&5
27930   ac_status=$?
27931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932   (exit $ac_status); }; }; then
27933   eval "$as_ac_Header=yes"
27934 else
27935   echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27937
27938         eval "$as_ac_Header=no"
27939 fi
27940
27941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27942 fi
27943 ac_res=`eval echo '${'$as_ac_Header'}'`
27944                { echo "$as_me:$LINENO: result: $ac_res" >&5
27945 echo "${ECHO_T}$ac_res" >&6; }
27946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27947   cat >>confdefs.h <<_ACEOF
27948 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27949 _ACEOF
27950
27951 ac_header_dirent=$ac_hdr; break
27952 fi
27953
27954 done
27955 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27956 if test $ac_header_dirent = dirent.h; then
27957   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27959 if test "${ac_cv_search_opendir+set}" = set; then
27960   echo $ECHO_N "(cached) $ECHO_C" >&6
27961 else
27962   ac_func_search_save_LIBS=$LIBS
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969
27970 /* Override any GCC internal prototype to avoid an error.
27971    Use char because int might match the return type of a GCC
27972    builtin and then its argument prototype would still apply.  */
27973 #ifdef __cplusplus
27974 extern "C"
27975 #endif
27976 char opendir ();
27977 int
27978 main ()
27979 {
27980 return opendir ();
27981   ;
27982   return 0;
27983 }
27984 _ACEOF
27985 for ac_lib in '' dir; do
27986   if test -z "$ac_lib"; then
27987     ac_res="none required"
27988   else
27989     ac_res=-l$ac_lib
27990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27991   fi
27992   rm -f conftest.$ac_objext conftest$ac_exeext
27993 if { (ac_try="$ac_link"
27994 case "(($ac_try" in
27995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996   *) ac_try_echo=$ac_try;;
27997 esac
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999   (eval "$ac_link") 2>conftest.er1
28000   ac_status=$?
28001   grep -v '^ *+' conftest.er1 >conftest.err
28002   rm -f conftest.er1
28003   cat conftest.err >&5
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); } &&
28006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28007   { (case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_try") 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; } &&
28016          { ac_try='test -s conftest$ac_exeext'
28017   { (case "(($ac_try" in
28018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019   *) ac_try_echo=$ac_try;;
28020 esac
28021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022   (eval "$ac_try") 2>&5
28023   ac_status=$?
28024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025   (exit $ac_status); }; }; then
28026   ac_cv_search_opendir=$ac_res
28027 else
28028   echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031
28032 fi
28033
28034 rm -f core conftest.err conftest.$ac_objext \
28035       conftest$ac_exeext
28036   if test "${ac_cv_search_opendir+set}" = set; then
28037   break
28038 fi
28039 done
28040 if test "${ac_cv_search_opendir+set}" = set; then
28041   :
28042 else
28043   ac_cv_search_opendir=no
28044 fi
28045 rm conftest.$ac_ext
28046 LIBS=$ac_func_search_save_LIBS
28047 fi
28048 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28049 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28050 ac_res=$ac_cv_search_opendir
28051 if test "$ac_res" != no; then
28052   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28053
28054 fi
28055
28056 else
28057   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28058 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28059 if test "${ac_cv_search_opendir+set}" = set; then
28060   echo $ECHO_N "(cached) $ECHO_C" >&6
28061 else
28062   ac_func_search_save_LIBS=$LIBS
28063 cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069
28070 /* Override any GCC internal prototype to avoid an error.
28071    Use char because int might match the return type of a GCC
28072    builtin and then its argument prototype would still apply.  */
28073 #ifdef __cplusplus
28074 extern "C"
28075 #endif
28076 char opendir ();
28077 int
28078 main ()
28079 {
28080 return opendir ();
28081   ;
28082   return 0;
28083 }
28084 _ACEOF
28085 for ac_lib in '' x; do
28086   if test -z "$ac_lib"; then
28087     ac_res="none required"
28088   else
28089     ac_res=-l$ac_lib
28090     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28091   fi
28092   rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (ac_try="$ac_link"
28094 case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099   (eval "$ac_link") 2>conftest.er1
28100   ac_status=$?
28101   grep -v '^ *+' conftest.er1 >conftest.err
28102   rm -f conftest.er1
28103   cat conftest.err >&5
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); } &&
28106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28107   { (case "(($ac_try" in
28108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109   *) ac_try_echo=$ac_try;;
28110 esac
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112   (eval "$ac_try") 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); }; } &&
28116          { ac_try='test -s conftest$ac_exeext'
28117   { (case "(($ac_try" in
28118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119   *) ac_try_echo=$ac_try;;
28120 esac
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122   (eval "$ac_try") 2>&5
28123   ac_status=$?
28124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125   (exit $ac_status); }; }; then
28126   ac_cv_search_opendir=$ac_res
28127 else
28128   echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131
28132 fi
28133
28134 rm -f core conftest.err conftest.$ac_objext \
28135       conftest$ac_exeext
28136   if test "${ac_cv_search_opendir+set}" = set; then
28137   break
28138 fi
28139 done
28140 if test "${ac_cv_search_opendir+set}" = set; then
28141   :
28142 else
28143   ac_cv_search_opendir=no
28144 fi
28145 rm conftest.$ac_ext
28146 LIBS=$ac_func_search_save_LIBS
28147 fi
28148 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28149 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28150 ac_res=$ac_cv_search_opendir
28151 if test "$ac_res" != no; then
28152   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28153
28154 fi
28155
28156 fi
28157
28158 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28159 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28160 if test "${ac_cv_header_mmap_anon+set}" = set; then
28161   echo $ECHO_N "(cached) $ECHO_C" >&6
28162 else
28163    ac_ext=c
28164 ac_cpp='$CPP $CPPFLAGS'
28165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28168
28169   cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175 #include <sys/mman.h>
28176 #include <unistd.h>
28177 #include <fcntl.h>
28178 int
28179 main ()
28180 {
28181 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28182   ;
28183   return 0;
28184 }
28185 _ACEOF
28186 rm -f conftest.$ac_objext
28187 if { (ac_try="$ac_compile"
28188 case "(($ac_try" in
28189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190   *) ac_try_echo=$ac_try;;
28191 esac
28192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193   (eval "$ac_compile") 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } &&
28200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28201   { (case "(($ac_try" in
28202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203   *) ac_try_echo=$ac_try;;
28204 esac
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206   (eval "$ac_try") 2>&5
28207   ac_status=$?
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); }; } &&
28210          { ac_try='test -s conftest.$ac_objext'
28211   { (case "(($ac_try" in
28212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213   *) ac_try_echo=$ac_try;;
28214 esac
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216   (eval "$ac_try") 2>&5
28217   ac_status=$?
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); }; }; then
28220   ac_cv_header_mmap_anon=yes
28221 else
28222   echo "$as_me: failed program was:" >&5
28223 sed 's/^/| /' conftest.$ac_ext >&5
28224
28225         ac_cv_header_mmap_anon=no
28226 fi
28227
28228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28229   ac_ext=c
28230 ac_cpp='$CPP $CPPFLAGS'
28231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28234
28235
28236 fi
28237 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28238 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28239 if test "$ac_cv_header_mmap_anon" = yes; then
28240
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_MMAP_ANONYMOUS 1
28243 _ACEOF
28244
28245 fi
28246
28247 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28248 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28249 if test "${ac_cv_header_stat_broken+set}" = set; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   cat >conftest.$ac_ext <<_ACEOF
28253 /* confdefs.h.  */
28254 _ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h.  */
28258 #include <sys/types.h>
28259 #include <sys/stat.h>
28260
28261 #if defined S_ISBLK && defined S_IFDIR
28262 # if S_ISBLK (S_IFDIR)
28263 You lose.
28264 # endif
28265 #endif
28266
28267 #if defined S_ISBLK && defined S_IFCHR
28268 # if S_ISBLK (S_IFCHR)
28269 You lose.
28270 # endif
28271 #endif
28272
28273 #if defined S_ISLNK && defined S_IFREG
28274 # if S_ISLNK (S_IFREG)
28275 You lose.
28276 # endif
28277 #endif
28278
28279 #if defined S_ISSOCK && defined S_IFREG
28280 # if S_ISSOCK (S_IFREG)
28281 You lose.
28282 # endif
28283 #endif
28284
28285 _ACEOF
28286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28287   $EGREP "You lose" >/dev/null 2>&1; then
28288   ac_cv_header_stat_broken=yes
28289 else
28290   ac_cv_header_stat_broken=no
28291 fi
28292 rm -f conftest*
28293
28294 fi
28295 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28296 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28297 if test $ac_cv_header_stat_broken = yes; then
28298
28299 cat >>confdefs.h <<\_ACEOF
28300 #define STAT_MACROS_BROKEN 1
28301 _ACEOF
28302
28303 fi
28304
28305 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28307 if test "${ac_cv_header_stdc+set}" = set; then
28308   echo $ECHO_N "(cached) $ECHO_C" >&6
28309 else
28310   cat >conftest.$ac_ext <<_ACEOF
28311 /* confdefs.h.  */
28312 _ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h.  */
28316 #include <stdlib.h>
28317 #include <stdarg.h>
28318 #include <string.h>
28319 #include <float.h>
28320
28321 int
28322 main ()
28323 {
28324
28325   ;
28326   return 0;
28327 }
28328 _ACEOF
28329 rm -f conftest.$ac_objext
28330 if { (ac_try="$ac_compile"
28331 case "(($ac_try" in
28332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333   *) ac_try_echo=$ac_try;;
28334 esac
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336   (eval "$ac_compile") 2>conftest.er1
28337   ac_status=$?
28338   grep -v '^ *+' conftest.er1 >conftest.err
28339   rm -f conftest.er1
28340   cat conftest.err >&5
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); } &&
28343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28344   { (case "(($ac_try" in
28345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346   *) ac_try_echo=$ac_try;;
28347 esac
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349   (eval "$ac_try") 2>&5
28350   ac_status=$?
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); }; } &&
28353          { ac_try='test -s conftest.$ac_objext'
28354   { (case "(($ac_try" in
28355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356   *) ac_try_echo=$ac_try;;
28357 esac
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359   (eval "$ac_try") 2>&5
28360   ac_status=$?
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); }; }; then
28363   ac_cv_header_stdc=yes
28364 else
28365   echo "$as_me: failed program was:" >&5
28366 sed 's/^/| /' conftest.$ac_ext >&5
28367
28368         ac_cv_header_stdc=no
28369 fi
28370
28371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28372
28373 if test $ac_cv_header_stdc = yes; then
28374   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
28382
28383 _ACEOF
28384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28385   $EGREP "memchr" >/dev/null 2>&1; then
28386   :
28387 else
28388   ac_cv_header_stdc=no
28389 fi
28390 rm -f conftest*
28391
28392 fi
28393
28394 if test $ac_cv_header_stdc = yes; then
28395   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28396   cat >conftest.$ac_ext <<_ACEOF
28397 /* confdefs.h.  */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h.  */
28402 #include <stdlib.h>
28403
28404 _ACEOF
28405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28406   $EGREP "free" >/dev/null 2>&1; then
28407   :
28408 else
28409   ac_cv_header_stdc=no
28410 fi
28411 rm -f conftest*
28412
28413 fi
28414
28415 if test $ac_cv_header_stdc = yes; then
28416   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28417   if test "$cross_compiling" = yes; then
28418   :
28419 else
28420   cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426 #include <ctype.h>
28427 #include <stdlib.h>
28428 #if ((' ' & 0x0FF) == 0x020)
28429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28431 #else
28432 # define ISLOWER(c) \
28433                    (('a' <= (c) && (c) <= 'i') \
28434                      || ('j' <= (c) && (c) <= 'r') \
28435                      || ('s' <= (c) && (c) <= 'z'))
28436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28437 #endif
28438
28439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28440 int
28441 main ()
28442 {
28443   int i;
28444   for (i = 0; i < 256; i++)
28445     if (XOR (islower (i), ISLOWER (i))
28446         || toupper (i) != TOUPPER (i))
28447       return 2;
28448   return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest$ac_exeext
28452 if { (ac_try="$ac_link"
28453 case "(($ac_try" in
28454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455   *) ac_try_echo=$ac_try;;
28456 esac
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458   (eval "$ac_link") 2>&5
28459   ac_status=$?
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28462   { (case "(($ac_try" in
28463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464   *) ac_try_echo=$ac_try;;
28465 esac
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467   (eval "$ac_try") 2>&5
28468   ac_status=$?
28469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470   (exit $ac_status); }; }; then
28471   :
28472 else
28473   echo "$as_me: program exited with status $ac_status" >&5
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 ( exit $ac_status )
28478 ac_cv_header_stdc=no
28479 fi
28480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28481 fi
28482
28483
28484 fi
28485 fi
28486 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28487 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28488 if test $ac_cv_header_stdc = yes; then
28489
28490 cat >>confdefs.h <<\_ACEOF
28491 #define STDC_HEADERS 1
28492 _ACEOF
28493
28494 fi
28495
28496 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28497 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28498 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28499   echo $ECHO_N "(cached) $ECHO_C" >&6
28500 else
28501   cat >conftest.$ac_ext <<_ACEOF
28502 /* confdefs.h.  */
28503 _ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h.  */
28507 #include <sys/types.h>
28508 #include <sys/wait.h>
28509 #ifndef WEXITSTATUS
28510 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28511 #endif
28512 #ifndef WIFEXITED
28513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28514 #endif
28515
28516 int
28517 main ()
28518 {
28519   int s;
28520   wait (&s);
28521   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28522   ;
28523   return 0;
28524 }
28525 _ACEOF
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530   *) ac_try_echo=$ac_try;;
28531 esac
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533   (eval "$ac_compile") 2>conftest.er1
28534   ac_status=$?
28535   grep -v '^ *+' conftest.er1 >conftest.err
28536   rm -f conftest.er1
28537   cat conftest.err >&5
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); } &&
28540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28541   { (case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_try") 2>&5
28547   ac_status=$?
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); }; } &&
28550          { ac_try='test -s conftest.$ac_objext'
28551   { (case "(($ac_try" in
28552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553   *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556   (eval "$ac_try") 2>&5
28557   ac_status=$?
28558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559   (exit $ac_status); }; }; then
28560   ac_cv_header_sys_wait_h=yes
28561 else
28562   echo "$as_me: failed program was:" >&5
28563 sed 's/^/| /' conftest.$ac_ext >&5
28564
28565         ac_cv_header_sys_wait_h=no
28566 fi
28567
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 fi
28570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28572 if test $ac_cv_header_sys_wait_h = yes; then
28573
28574 cat >>confdefs.h <<\_ACEOF
28575 #define HAVE_SYS_WAIT_H 1
28576 _ACEOF
28577
28578 fi
28579
28580 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28581 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28582 if test "${ac_cv_header_time+set}" = set; then
28583   echo $ECHO_N "(cached) $ECHO_C" >&6
28584 else
28585   cat >conftest.$ac_ext <<_ACEOF
28586 /* confdefs.h.  */
28587 _ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h.  */
28591 #include <sys/types.h>
28592 #include <sys/time.h>
28593 #include <time.h>
28594
28595 int
28596 main ()
28597 {
28598 if ((struct tm *) 0)
28599 return 0;
28600   ;
28601   return 0;
28602 }
28603 _ACEOF
28604 rm -f conftest.$ac_objext
28605 if { (ac_try="$ac_compile"
28606 case "(($ac_try" in
28607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608   *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611   (eval "$ac_compile") 2>conftest.er1
28612   ac_status=$?
28613   grep -v '^ *+' conftest.er1 >conftest.err
28614   rm -f conftest.er1
28615   cat conftest.err >&5
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); } &&
28618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28619   { (case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_try") 2>&5
28625   ac_status=$?
28626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627   (exit $ac_status); }; } &&
28628          { ac_try='test -s conftest.$ac_objext'
28629   { (case "(($ac_try" in
28630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631   *) ac_try_echo=$ac_try;;
28632 esac
28633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634   (eval "$ac_try") 2>&5
28635   ac_status=$?
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); }; }; then
28638   ac_cv_header_time=yes
28639 else
28640   echo "$as_me: failed program was:" >&5
28641 sed 's/^/| /' conftest.$ac_ext >&5
28642
28643         ac_cv_header_time=no
28644 fi
28645
28646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28647 fi
28648 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28649 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28650 if test $ac_cv_header_time = yes; then
28651
28652 cat >>confdefs.h <<\_ACEOF
28653 #define TIME_WITH_SYS_TIME 1
28654 _ACEOF
28655
28656 fi
28657
28658
28659
28660
28661
28662
28663
28664
28665 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28666 do
28667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28672   echo $ECHO_N "(cached) $ECHO_C" >&6
28673 fi
28674 ac_res=`eval echo '${'$as_ac_Header'}'`
28675                { echo "$as_me:$LINENO: result: $ac_res" >&5
28676 echo "${ECHO_T}$ac_res" >&6; }
28677 else
28678   # Is the header compilable?
28679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28681 cat >conftest.$ac_ext <<_ACEOF
28682 /* confdefs.h.  */
28683 _ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h.  */
28687 $ac_includes_default
28688 #include <$ac_header>
28689 _ACEOF
28690 rm -f conftest.$ac_objext
28691 if { (ac_try="$ac_compile"
28692 case "(($ac_try" in
28693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694   *) ac_try_echo=$ac_try;;
28695 esac
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697   (eval "$ac_compile") 2>conftest.er1
28698   ac_status=$?
28699   grep -v '^ *+' conftest.er1 >conftest.err
28700   rm -f conftest.er1
28701   cat conftest.err >&5
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); } &&
28704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28705   { (case "(($ac_try" in
28706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707   *) ac_try_echo=$ac_try;;
28708 esac
28709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710   (eval "$ac_try") 2>&5
28711   ac_status=$?
28712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713   (exit $ac_status); }; } &&
28714          { ac_try='test -s conftest.$ac_objext'
28715   { (case "(($ac_try" in
28716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717   *) ac_try_echo=$ac_try;;
28718 esac
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720   (eval "$ac_try") 2>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); }; }; then
28724   ac_header_compiler=yes
28725 else
28726   echo "$as_me: failed program was:" >&5
28727 sed 's/^/| /' conftest.$ac_ext >&5
28728
28729         ac_header_compiler=no
28730 fi
28731
28732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28734 echo "${ECHO_T}$ac_header_compiler" >&6; }
28735
28736 # Is the header present?
28737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28739 cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745 #include <$ac_header>
28746 _ACEOF
28747 if { (ac_try="$ac_cpp conftest.$ac_ext"
28748 case "(($ac_try" in
28749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750   *) ac_try_echo=$ac_try;;
28751 esac
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28754   ac_status=$?
28755   grep -v '^ *+' conftest.er1 >conftest.err
28756   rm -f conftest.er1
28757   cat conftest.err >&5
28758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759   (exit $ac_status); } >/dev/null; then
28760   if test -s conftest.err; then
28761     ac_cpp_err=$ac_c_preproc_warn_flag
28762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28763   else
28764     ac_cpp_err=
28765   fi
28766 else
28767   ac_cpp_err=yes
28768 fi
28769 if test -z "$ac_cpp_err"; then
28770   ac_header_preproc=yes
28771 else
28772   echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28774
28775   ac_header_preproc=no
28776 fi
28777
28778 rm -f conftest.err conftest.$ac_ext
28779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28780 echo "${ECHO_T}$ac_header_preproc" >&6; }
28781
28782 # So?  What about this header?
28783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28784   yes:no: )
28785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28789     ac_header_preproc=yes
28790     ;;
28791   no:yes:* )
28792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28804     ( cat <<\_ASBOX
28805 ## ----------------------------------- ##
28806 ## Report this to llvmbugs@cs.uiuc.edu ##
28807 ## ----------------------------------- ##
28808 _ASBOX
28809      ) | sed "s/^/$as_me: WARNING:     /" >&2
28810     ;;
28811 esac
28812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28815   echo $ECHO_N "(cached) $ECHO_C" >&6
28816 else
28817   eval "$as_ac_Header=\$ac_header_preproc"
28818 fi
28819 ac_res=`eval echo '${'$as_ac_Header'}'`
28820                { echo "$as_me:$LINENO: result: $ac_res" >&5
28821 echo "${ECHO_T}$ac_res" >&6; }
28822
28823 fi
28824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28825   cat >>confdefs.h <<_ACEOF
28826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28827 _ACEOF
28828
28829 fi
28830
28831 done
28832
28833
28834
28835
28836
28837
28838
28839 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28840 do
28841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28846   echo $ECHO_N "(cached) $ECHO_C" >&6
28847 fi
28848 ac_res=`eval echo '${'$as_ac_Header'}'`
28849                { echo "$as_me:$LINENO: result: $ac_res" >&5
28850 echo "${ECHO_T}$ac_res" >&6; }
28851 else
28852   # Is the header compilable?
28853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28855 cat >conftest.$ac_ext <<_ACEOF
28856 /* confdefs.h.  */
28857 _ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h.  */
28861 $ac_includes_default
28862 #include <$ac_header>
28863 _ACEOF
28864 rm -f conftest.$ac_objext
28865 if { (ac_try="$ac_compile"
28866 case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871   (eval "$ac_compile") 2>conftest.er1
28872   ac_status=$?
28873   grep -v '^ *+' conftest.er1 >conftest.err
28874   rm -f conftest.er1
28875   cat conftest.err >&5
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); } &&
28878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28879   { (case "(($ac_try" in
28880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881   *) ac_try_echo=$ac_try;;
28882 esac
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884   (eval "$ac_try") 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; } &&
28888          { ac_try='test -s conftest.$ac_objext'
28889   { (case "(($ac_try" in
28890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891   *) ac_try_echo=$ac_try;;
28892 esac
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894   (eval "$ac_try") 2>&5
28895   ac_status=$?
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); }; }; then
28898   ac_header_compiler=yes
28899 else
28900   echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28902
28903         ac_header_compiler=no
28904 fi
28905
28906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28908 echo "${ECHO_T}$ac_header_compiler" >&6; }
28909
28910 # Is the header present?
28911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28913 cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h.  */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h.  */
28919 #include <$ac_header>
28920 _ACEOF
28921 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28928   ac_status=$?
28929   grep -v '^ *+' conftest.er1 >conftest.err
28930   rm -f conftest.er1
28931   cat conftest.err >&5
28932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933   (exit $ac_status); } >/dev/null; then
28934   if test -s conftest.err; then
28935     ac_cpp_err=$ac_c_preproc_warn_flag
28936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28937   else
28938     ac_cpp_err=
28939   fi
28940 else
28941   ac_cpp_err=yes
28942 fi
28943 if test -z "$ac_cpp_err"; then
28944   ac_header_preproc=yes
28945 else
28946   echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28948
28949   ac_header_preproc=no
28950 fi
28951
28952 rm -f conftest.err conftest.$ac_ext
28953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28954 echo "${ECHO_T}$ac_header_preproc" >&6; }
28955
28956 # So?  What about this header?
28957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28958   yes:no: )
28959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28963     ac_header_preproc=yes
28964     ;;
28965   no:yes:* )
28966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28978     ( cat <<\_ASBOX
28979 ## ----------------------------------- ##
28980 ## Report this to llvmbugs@cs.uiuc.edu ##
28981 ## ----------------------------------- ##
28982 _ASBOX
28983      ) | sed "s/^/$as_me: WARNING:     /" >&2
28984     ;;
28985 esac
28986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28989   echo $ECHO_N "(cached) $ECHO_C" >&6
28990 else
28991   eval "$as_ac_Header=\$ac_header_preproc"
28992 fi
28993 ac_res=`eval echo '${'$as_ac_Header'}'`
28994                { echo "$as_me:$LINENO: result: $ac_res" >&5
28995 echo "${ECHO_T}$ac_res" >&6; }
28996
28997 fi
28998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28999   cat >>confdefs.h <<_ACEOF
29000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29001 _ACEOF
29002
29003 fi
29004
29005 done
29006
29007
29008 for ac_header in windows.h
29009 do
29010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015   echo $ECHO_N "(cached) $ECHO_C" >&6
29016 fi
29017 ac_res=`eval echo '${'$as_ac_Header'}'`
29018                { echo "$as_me:$LINENO: result: $ac_res" >&5
29019 echo "${ECHO_T}$ac_res" >&6; }
29020 else
29021   # Is the header compilable?
29022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29025 /* confdefs.h.  */
29026 _ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h.  */
29030 $ac_includes_default
29031 #include <$ac_header>
29032 _ACEOF
29033 rm -f conftest.$ac_objext
29034 if { (ac_try="$ac_compile"
29035 case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_compile") 2>conftest.er1
29041   ac_status=$?
29042   grep -v '^ *+' conftest.er1 >conftest.err
29043   rm -f conftest.er1
29044   cat conftest.err >&5
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); } &&
29047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048   { (case "(($ac_try" in
29049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050   *) ac_try_echo=$ac_try;;
29051 esac
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053   (eval "$ac_try") 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; } &&
29057          { ac_try='test -s conftest.$ac_objext'
29058   { (case "(($ac_try" in
29059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060   *) ac_try_echo=$ac_try;;
29061 esac
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063   (eval "$ac_try") 2>&5
29064   ac_status=$?
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); }; }; then
29067   ac_header_compiler=yes
29068 else
29069   echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29071
29072         ac_header_compiler=no
29073 fi
29074
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077 echo "${ECHO_T}$ac_header_compiler" >&6; }
29078
29079 # Is the header present?
29080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29082 cat >conftest.$ac_ext <<_ACEOF
29083 /* confdefs.h.  */
29084 _ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h.  */
29088 #include <$ac_header>
29089 _ACEOF
29090 if { (ac_try="$ac_cpp conftest.$ac_ext"
29091 case "(($ac_try" in
29092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093   *) ac_try_echo=$ac_try;;
29094 esac
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } >/dev/null; then
29103   if test -s conftest.err; then
29104     ac_cpp_err=$ac_c_preproc_warn_flag
29105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29106   else
29107     ac_cpp_err=
29108   fi
29109 else
29110   ac_cpp_err=yes
29111 fi
29112 if test -z "$ac_cpp_err"; then
29113   ac_header_preproc=yes
29114 else
29115   echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118   ac_header_preproc=no
29119 fi
29120
29121 rm -f conftest.err conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123 echo "${ECHO_T}$ac_header_preproc" >&6; }
29124
29125 # So?  What about this header?
29126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29127   yes:no: )
29128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29132     ac_header_preproc=yes
29133     ;;
29134   no:yes:* )
29135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29147     ( cat <<\_ASBOX
29148 ## ----------------------------------- ##
29149 ## Report this to llvmbugs@cs.uiuc.edu ##
29150 ## ----------------------------------- ##
29151 _ASBOX
29152      ) | sed "s/^/$as_me: WARNING:     /" >&2
29153     ;;
29154 esac
29155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 else
29160   eval "$as_ac_Header=\$ac_header_preproc"
29161 fi
29162 ac_res=`eval echo '${'$as_ac_Header'}'`
29163                { echo "$as_me:$LINENO: result: $ac_res" >&5
29164 echo "${ECHO_T}$ac_res" >&6; }
29165
29166 fi
29167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29168   cat >>confdefs.h <<_ACEOF
29169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29170 _ACEOF
29171
29172 fi
29173
29174 done
29175
29176
29177
29178
29179
29180 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29181 do
29182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29187   echo $ECHO_N "(cached) $ECHO_C" >&6
29188 fi
29189 ac_res=`eval echo '${'$as_ac_Header'}'`
29190                { echo "$as_me:$LINENO: result: $ac_res" >&5
29191 echo "${ECHO_T}$ac_res" >&6; }
29192 else
29193   # Is the header compilable?
29194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29196 cat >conftest.$ac_ext <<_ACEOF
29197 /* confdefs.h.  */
29198 _ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h.  */
29202 $ac_includes_default
29203 #include <$ac_header>
29204 _ACEOF
29205 rm -f conftest.$ac_objext
29206 if { (ac_try="$ac_compile"
29207 case "(($ac_try" in
29208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209   *) ac_try_echo=$ac_try;;
29210 esac
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212   (eval "$ac_compile") 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } &&
29219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29220   { (case "(($ac_try" in
29221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222   *) ac_try_echo=$ac_try;;
29223 esac
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225   (eval "$ac_try") 2>&5
29226   ac_status=$?
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); }; } &&
29229          { ac_try='test -s conftest.$ac_objext'
29230   { (case "(($ac_try" in
29231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232   *) ac_try_echo=$ac_try;;
29233 esac
29234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235   (eval "$ac_try") 2>&5
29236   ac_status=$?
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); }; }; then
29239   ac_header_compiler=yes
29240 else
29241   echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244         ac_header_compiler=no
29245 fi
29246
29247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29249 echo "${ECHO_T}$ac_header_compiler" >&6; }
29250
29251 # Is the header present?
29252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29254 cat >conftest.$ac_ext <<_ACEOF
29255 /* confdefs.h.  */
29256 _ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h.  */
29260 #include <$ac_header>
29261 _ACEOF
29262 if { (ac_try="$ac_cpp conftest.$ac_ext"
29263 case "(($ac_try" in
29264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265   *) ac_try_echo=$ac_try;;
29266 esac
29267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29269   ac_status=$?
29270   grep -v '^ *+' conftest.er1 >conftest.err
29271   rm -f conftest.er1
29272   cat conftest.err >&5
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); } >/dev/null; then
29275   if test -s conftest.err; then
29276     ac_cpp_err=$ac_c_preproc_warn_flag
29277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29278   else
29279     ac_cpp_err=
29280   fi
29281 else
29282   ac_cpp_err=yes
29283 fi
29284 if test -z "$ac_cpp_err"; then
29285   ac_header_preproc=yes
29286 else
29287   echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29289
29290   ac_header_preproc=no
29291 fi
29292
29293 rm -f conftest.err conftest.$ac_ext
29294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29295 echo "${ECHO_T}$ac_header_preproc" >&6; }
29296
29297 # So?  What about this header?
29298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29299   yes:no: )
29300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29304     ac_header_preproc=yes
29305     ;;
29306   no:yes:* )
29307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29309     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29310 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29311     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29313     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29314 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29317     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29319     ( cat <<\_ASBOX
29320 ## ----------------------------------- ##
29321 ## Report this to llvmbugs@cs.uiuc.edu ##
29322 ## ----------------------------------- ##
29323 _ASBOX
29324      ) | sed "s/^/$as_me: WARNING:     /" >&2
29325     ;;
29326 esac
29327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332   eval "$as_ac_Header=\$ac_header_preproc"
29333 fi
29334 ac_res=`eval echo '${'$as_ac_Header'}'`
29335                { echo "$as_me:$LINENO: result: $ac_res" >&5
29336 echo "${ECHO_T}$ac_res" >&6; }
29337
29338 fi
29339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29340   cat >>confdefs.h <<_ACEOF
29341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29342 _ACEOF
29343
29344 fi
29345
29346 done
29347
29348
29349
29350
29351 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29352 do
29353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29358   echo $ECHO_N "(cached) $ECHO_C" >&6
29359 fi
29360 ac_res=`eval echo '${'$as_ac_Header'}'`
29361                { echo "$as_me:$LINENO: result: $ac_res" >&5
29362 echo "${ECHO_T}$ac_res" >&6; }
29363 else
29364   # Is the header compilable?
29365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29367 cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373 $ac_includes_default
29374 #include <$ac_header>
29375 _ACEOF
29376 rm -f conftest.$ac_objext
29377 if { (ac_try="$ac_compile"
29378 case "(($ac_try" in
29379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380   *) ac_try_echo=$ac_try;;
29381 esac
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383   (eval "$ac_compile") 2>conftest.er1
29384   ac_status=$?
29385   grep -v '^ *+' conftest.er1 >conftest.err
29386   rm -f conftest.er1
29387   cat conftest.err >&5
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); } &&
29390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29391   { (case "(($ac_try" in
29392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393   *) ac_try_echo=$ac_try;;
29394 esac
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396   (eval "$ac_try") 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); }; } &&
29400          { ac_try='test -s conftest.$ac_objext'
29401   { (case "(($ac_try" in
29402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403   *) ac_try_echo=$ac_try;;
29404 esac
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406   (eval "$ac_try") 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   ac_header_compiler=yes
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415         ac_header_compiler=no
29416 fi
29417
29418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29420 echo "${ECHO_T}$ac_header_compiler" >&6; }
29421
29422 # Is the header present?
29423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29425 cat >conftest.$ac_ext <<_ACEOF
29426 /* confdefs.h.  */
29427 _ACEOF
29428 cat confdefs.h >>conftest.$ac_ext
29429 cat >>conftest.$ac_ext <<_ACEOF
29430 /* end confdefs.h.  */
29431 #include <$ac_header>
29432 _ACEOF
29433 if { (ac_try="$ac_cpp conftest.$ac_ext"
29434 case "(($ac_try" in
29435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436   *) ac_try_echo=$ac_try;;
29437 esac
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29440   ac_status=$?
29441   grep -v '^ *+' conftest.er1 >conftest.err
29442   rm -f conftest.er1
29443   cat conftest.err >&5
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); } >/dev/null; then
29446   if test -s conftest.err; then
29447     ac_cpp_err=$ac_c_preproc_warn_flag
29448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29449   else
29450     ac_cpp_err=
29451   fi
29452 else
29453   ac_cpp_err=yes
29454 fi
29455 if test -z "$ac_cpp_err"; then
29456   ac_header_preproc=yes
29457 else
29458   echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29460
29461   ac_header_preproc=no
29462 fi
29463
29464 rm -f conftest.err conftest.$ac_ext
29465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29466 echo "${ECHO_T}$ac_header_preproc" >&6; }
29467
29468 # So?  What about this header?
29469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29470   yes:no: )
29471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29475     ac_header_preproc=yes
29476     ;;
29477   no:yes:* )
29478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29490     ( cat <<\_ASBOX
29491 ## ----------------------------------- ##
29492 ## Report this to llvmbugs@cs.uiuc.edu ##
29493 ## ----------------------------------- ##
29494 _ASBOX
29495      ) | sed "s/^/$as_me: WARNING:     /" >&2
29496     ;;
29497 esac
29498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29501   echo $ECHO_N "(cached) $ECHO_C" >&6
29502 else
29503   eval "$as_ac_Header=\$ac_header_preproc"
29504 fi
29505 ac_res=`eval echo '${'$as_ac_Header'}'`
29506                { echo "$as_me:$LINENO: result: $ac_res" >&5
29507 echo "${ECHO_T}$ac_res" >&6; }
29508
29509 fi
29510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29511   cat >>confdefs.h <<_ACEOF
29512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29513 _ACEOF
29514
29515 fi
29516
29517 done
29518
29519 if test "$ENABLE_THREADS" -eq 1 ; then
29520
29521 for ac_header in pthread.h
29522 do
29523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29525   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29528   echo $ECHO_N "(cached) $ECHO_C" >&6
29529 fi
29530 ac_res=`eval echo '${'$as_ac_Header'}'`
29531                { echo "$as_me:$LINENO: result: $ac_res" >&5
29532 echo "${ECHO_T}$ac_res" >&6; }
29533 else
29534   # Is the header compilable?
29535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29537 cat >conftest.$ac_ext <<_ACEOF
29538 /* confdefs.h.  */
29539 _ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h.  */
29543 $ac_includes_default
29544 #include <$ac_header>
29545 _ACEOF
29546 rm -f conftest.$ac_objext
29547 if { (ac_try="$ac_compile"
29548 case "(($ac_try" in
29549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550   *) ac_try_echo=$ac_try;;
29551 esac
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553   (eval "$ac_compile") 2>conftest.er1
29554   ac_status=$?
29555   grep -v '^ *+' conftest.er1 >conftest.err
29556   rm -f conftest.er1
29557   cat conftest.err >&5
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } &&
29560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29561   { (case "(($ac_try" in
29562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563   *) ac_try_echo=$ac_try;;
29564 esac
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566   (eval "$ac_try") 2>&5
29567   ac_status=$?
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); }; } &&
29570          { ac_try='test -s conftest.$ac_objext'
29571   { (case "(($ac_try" in
29572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573   *) ac_try_echo=$ac_try;;
29574 esac
29575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576   (eval "$ac_try") 2>&5
29577   ac_status=$?
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); }; }; then
29580   ac_header_compiler=yes
29581 else
29582   echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29584
29585         ac_header_compiler=no
29586 fi
29587
29588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29590 echo "${ECHO_T}$ac_header_compiler" >&6; }
29591
29592 # Is the header present?
29593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29595 cat >conftest.$ac_ext <<_ACEOF
29596 /* confdefs.h.  */
29597 _ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h.  */
29601 #include <$ac_header>
29602 _ACEOF
29603 if { (ac_try="$ac_cpp conftest.$ac_ext"
29604 case "(($ac_try" in
29605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606   *) ac_try_echo=$ac_try;;
29607 esac
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29610   ac_status=$?
29611   grep -v '^ *+' conftest.er1 >conftest.err
29612   rm -f conftest.er1
29613   cat conftest.err >&5
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); } >/dev/null; then
29616   if test -s conftest.err; then
29617     ac_cpp_err=$ac_c_preproc_warn_flag
29618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29619   else
29620     ac_cpp_err=
29621   fi
29622 else
29623   ac_cpp_err=yes
29624 fi
29625 if test -z "$ac_cpp_err"; then
29626   ac_header_preproc=yes
29627 else
29628   echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631   ac_header_preproc=no
29632 fi
29633
29634 rm -f conftest.err conftest.$ac_ext
29635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29636 echo "${ECHO_T}$ac_header_preproc" >&6; }
29637
29638 # So?  What about this header?
29639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29640   yes:no: )
29641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29645     ac_header_preproc=yes
29646     ;;
29647   no:yes:* )
29648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29660     ( cat <<\_ASBOX
29661 ## ----------------------------------- ##
29662 ## Report this to llvmbugs@cs.uiuc.edu ##
29663 ## ----------------------------------- ##
29664 _ASBOX
29665      ) | sed "s/^/$as_me: WARNING:     /" >&2
29666     ;;
29667 esac
29668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29671   echo $ECHO_N "(cached) $ECHO_C" >&6
29672 else
29673   eval "$as_ac_Header=\$ac_header_preproc"
29674 fi
29675 ac_res=`eval echo '${'$as_ac_Header'}'`
29676                { echo "$as_me:$LINENO: result: $ac_res" >&5
29677 echo "${ECHO_T}$ac_res" >&6; }
29678
29679 fi
29680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29681   cat >>confdefs.h <<_ACEOF
29682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29683 _ACEOF
29684  HAVE_PTHREAD=1
29685
29686 else
29687   HAVE_PTHREAD=0
29688
29689 fi
29690
29691 done
29692
29693 else
29694   HAVE_PTHREAD=0
29695
29696 fi
29697
29698
29699
29700   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29701 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29702 if test "${ac_cv_huge_val_sanity+set}" = set; then
29703   echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705
29706     ac_ext=cpp
29707 ac_cpp='$CXXCPP $CPPFLAGS'
29708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29711
29712     CXXFLAGS=-pedantic
29713     if test "$cross_compiling" = yes; then
29714   ac_cv_huge_val_sanity=yes
29715 else
29716   cat >conftest.$ac_ext <<_ACEOF
29717 /* confdefs.h.  */
29718 _ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h.  */
29722 #include <math.h>
29723 int
29724 main ()
29725 {
29726 double x = HUGE_VAL; return x != x;
29727   ;
29728   return 0;
29729 }
29730 _ACEOF
29731 rm -f conftest$ac_exeext
29732 if { (ac_try="$ac_link"
29733 case "(($ac_try" in
29734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735   *) ac_try_echo=$ac_try;;
29736 esac
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738   (eval "$ac_link") 2>&5
29739   ac_status=$?
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29742   { (case "(($ac_try" in
29743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744   *) ac_try_echo=$ac_try;;
29745 esac
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747   (eval "$ac_try") 2>&5
29748   ac_status=$?
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); }; }; then
29751   ac_cv_huge_val_sanity=yes
29752 else
29753   echo "$as_me: program exited with status $ac_status" >&5
29754 echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29756
29757 ( exit $ac_status )
29758 ac_cv_huge_val_sanity=no
29759 fi
29760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29761 fi
29762
29763
29764     ac_ext=c
29765 ac_cpp='$CPP $CPPFLAGS'
29766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29769
29770
29771 fi
29772 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29773 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29774   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29775
29776
29777 { echo "$as_me:$LINENO: checking for pid_t" >&5
29778 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29779 if test "${ac_cv_type_pid_t+set}" = set; then
29780   echo $ECHO_N "(cached) $ECHO_C" >&6
29781 else
29782   cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788 $ac_includes_default
29789 typedef pid_t ac__type_new_;
29790 int
29791 main ()
29792 {
29793 if ((ac__type_new_ *) 0)
29794   return 0;
29795 if (sizeof (ac__type_new_))
29796   return 0;
29797   ;
29798   return 0;
29799 }
29800 _ACEOF
29801 rm -f conftest.$ac_objext
29802 if { (ac_try="$ac_compile"
29803 case "(($ac_try" in
29804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805   *) ac_try_echo=$ac_try;;
29806 esac
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808   (eval "$ac_compile") 2>conftest.er1
29809   ac_status=$?
29810   grep -v '^ *+' conftest.er1 >conftest.err
29811   rm -f conftest.er1
29812   cat conftest.err >&5
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); } &&
29815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29816   { (case "(($ac_try" in
29817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818   *) ac_try_echo=$ac_try;;
29819 esac
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821   (eval "$ac_try") 2>&5
29822   ac_status=$?
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); }; } &&
29825          { ac_try='test -s conftest.$ac_objext'
29826   { (case "(($ac_try" in
29827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828   *) ac_try_echo=$ac_try;;
29829 esac
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831   (eval "$ac_try") 2>&5
29832   ac_status=$?
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); }; }; then
29835   ac_cv_type_pid_t=yes
29836 else
29837   echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29839
29840         ac_cv_type_pid_t=no
29841 fi
29842
29843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29844 fi
29845 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29846 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29847 if test $ac_cv_type_pid_t = yes; then
29848   :
29849 else
29850
29851 cat >>confdefs.h <<_ACEOF
29852 #define pid_t int
29853 _ACEOF
29854
29855 fi
29856
29857 { echo "$as_me:$LINENO: checking for size_t" >&5
29858 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29859 if test "${ac_cv_type_size_t+set}" = set; then
29860   echo $ECHO_N "(cached) $ECHO_C" >&6
29861 else
29862   cat >conftest.$ac_ext <<_ACEOF
29863 /* confdefs.h.  */
29864 _ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h.  */
29868 $ac_includes_default
29869 typedef size_t ac__type_new_;
29870 int
29871 main ()
29872 {
29873 if ((ac__type_new_ *) 0)
29874   return 0;
29875 if (sizeof (ac__type_new_))
29876   return 0;
29877   ;
29878   return 0;
29879 }
29880 _ACEOF
29881 rm -f conftest.$ac_objext
29882 if { (ac_try="$ac_compile"
29883 case "(($ac_try" in
29884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885   *) ac_try_echo=$ac_try;;
29886 esac
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888   (eval "$ac_compile") 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } &&
29895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29896   { (case "(($ac_try" in
29897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898   *) ac_try_echo=$ac_try;;
29899 esac
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901   (eval "$ac_try") 2>&5
29902   ac_status=$?
29903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); }; } &&
29905          { ac_try='test -s conftest.$ac_objext'
29906   { (case "(($ac_try" in
29907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908   *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911   (eval "$ac_try") 2>&5
29912   ac_status=$?
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); }; }; then
29915   ac_cv_type_size_t=yes
29916 else
29917   echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29919
29920         ac_cv_type_size_t=no
29921 fi
29922
29923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29924 fi
29925 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29926 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29927 if test $ac_cv_type_size_t = yes; then
29928   :
29929 else
29930
29931 cat >>confdefs.h <<_ACEOF
29932 #define size_t unsigned int
29933 _ACEOF
29934
29935 fi
29936
29937 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29938 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29939 if test "${ac_cv_type_signal+set}" = set; then
29940   echo $ECHO_N "(cached) $ECHO_C" >&6
29941 else
29942   cat >conftest.$ac_ext <<_ACEOF
29943 /* confdefs.h.  */
29944 _ACEOF
29945 cat confdefs.h >>conftest.$ac_ext
29946 cat >>conftest.$ac_ext <<_ACEOF
29947 /* end confdefs.h.  */
29948 #include <sys/types.h>
29949 #include <signal.h>
29950
29951 int
29952 main ()
29953 {
29954 return *(signal (0, 0)) (0) == 1;
29955   ;
29956   return 0;
29957 }
29958 _ACEOF
29959 rm -f conftest.$ac_objext
29960 if { (ac_try="$ac_compile"
29961 case "(($ac_try" in
29962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963   *) ac_try_echo=$ac_try;;
29964 esac
29965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966   (eval "$ac_compile") 2>conftest.er1
29967   ac_status=$?
29968   grep -v '^ *+' conftest.er1 >conftest.err
29969   rm -f conftest.er1
29970   cat conftest.err >&5
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } &&
29973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29974   { (case "(($ac_try" in
29975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976   *) ac_try_echo=$ac_try;;
29977 esac
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979   (eval "$ac_try") 2>&5
29980   ac_status=$?
29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); }; } &&
29983          { ac_try='test -s conftest.$ac_objext'
29984   { (case "(($ac_try" in
29985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986   *) ac_try_echo=$ac_try;;
29987 esac
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989   (eval "$ac_try") 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); }; }; then
29993   ac_cv_type_signal=int
29994 else
29995   echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29997
29998         ac_cv_type_signal=void
29999 fi
30000
30001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002 fi
30003 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30004 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30005
30006 cat >>confdefs.h <<_ACEOF
30007 #define RETSIGTYPE $ac_cv_type_signal
30008 _ACEOF
30009
30010
30011 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30012 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30013 if test "${ac_cv_struct_tm+set}" = set; then
30014   echo $ECHO_N "(cached) $ECHO_C" >&6
30015 else
30016   cat >conftest.$ac_ext <<_ACEOF
30017 /* confdefs.h.  */
30018 _ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h.  */
30022 #include <sys/types.h>
30023 #include <time.h>
30024
30025 int
30026 main ()
30027 {
30028 struct tm *tp; tp->tm_sec;
30029   ;
30030   return 0;
30031 }
30032 _ACEOF
30033 rm -f conftest.$ac_objext
30034 if { (ac_try="$ac_compile"
30035 case "(($ac_try" in
30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037   *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040   (eval "$ac_compile") 2>conftest.er1
30041   ac_status=$?
30042   grep -v '^ *+' conftest.er1 >conftest.err
30043   rm -f conftest.er1
30044   cat conftest.err >&5
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); } &&
30047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30048   { (case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053   (eval "$ac_try") 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; } &&
30057          { ac_try='test -s conftest.$ac_objext'
30058   { (case "(($ac_try" in
30059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060   *) ac_try_echo=$ac_try;;
30061 esac
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063   (eval "$ac_try") 2>&5
30064   ac_status=$?
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); }; }; then
30067   ac_cv_struct_tm=time.h
30068 else
30069   echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30071
30072         ac_cv_struct_tm=sys/time.h
30073 fi
30074
30075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30076 fi
30077 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30078 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30079 if test $ac_cv_struct_tm = sys/time.h; then
30080
30081 cat >>confdefs.h <<\_ACEOF
30082 #define TM_IN_SYS_TIME 1
30083 _ACEOF
30084
30085 fi
30086
30087 { echo "$as_me:$LINENO: checking for int64_t" >&5
30088 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30089 if test "${ac_cv_type_int64_t+set}" = set; then
30090   echo $ECHO_N "(cached) $ECHO_C" >&6
30091 else
30092   cat >conftest.$ac_ext <<_ACEOF
30093 /* confdefs.h.  */
30094 _ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h.  */
30098 $ac_includes_default
30099 typedef int64_t ac__type_new_;
30100 int
30101 main ()
30102 {
30103 if ((ac__type_new_ *) 0)
30104   return 0;
30105 if (sizeof (ac__type_new_))
30106   return 0;
30107   ;
30108   return 0;
30109 }
30110 _ACEOF
30111 rm -f conftest.$ac_objext
30112 if { (ac_try="$ac_compile"
30113 case "(($ac_try" in
30114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115   *) ac_try_echo=$ac_try;;
30116 esac
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118   (eval "$ac_compile") 2>conftest.er1
30119   ac_status=$?
30120   grep -v '^ *+' conftest.er1 >conftest.err
30121   rm -f conftest.er1
30122   cat conftest.err >&5
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); } &&
30125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30126   { (case "(($ac_try" in
30127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128   *) ac_try_echo=$ac_try;;
30129 esac
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131   (eval "$ac_try") 2>&5
30132   ac_status=$?
30133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134   (exit $ac_status); }; } &&
30135          { ac_try='test -s conftest.$ac_objext'
30136   { (case "(($ac_try" in
30137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138   *) ac_try_echo=$ac_try;;
30139 esac
30140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141   (eval "$ac_try") 2>&5
30142   ac_status=$?
30143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144   (exit $ac_status); }; }; then
30145   ac_cv_type_int64_t=yes
30146 else
30147   echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.$ac_ext >&5
30149
30150         ac_cv_type_int64_t=no
30151 fi
30152
30153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30154 fi
30155 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30156 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30157 if test $ac_cv_type_int64_t = yes; then
30158
30159 cat >>confdefs.h <<_ACEOF
30160 #define HAVE_INT64_T 1
30161 _ACEOF
30162
30163
30164 else
30165   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30166 echo "$as_me: error: Type int64_t required but not found" >&2;}
30167    { (exit 1); exit 1; }; }
30168 fi
30169
30170 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30171 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30172 if test "${ac_cv_type_uint64_t+set}" = set; then
30173   echo $ECHO_N "(cached) $ECHO_C" >&6
30174 else
30175   cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181 $ac_includes_default
30182 typedef uint64_t ac__type_new_;
30183 int
30184 main ()
30185 {
30186 if ((ac__type_new_ *) 0)
30187   return 0;
30188 if (sizeof (ac__type_new_))
30189   return 0;
30190   ;
30191   return 0;
30192 }
30193 _ACEOF
30194 rm -f conftest.$ac_objext
30195 if { (ac_try="$ac_compile"
30196 case "(($ac_try" in
30197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198   *) ac_try_echo=$ac_try;;
30199 esac
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201   (eval "$ac_compile") 2>conftest.er1
30202   ac_status=$?
30203   grep -v '^ *+' conftest.er1 >conftest.err
30204   rm -f conftest.er1
30205   cat conftest.err >&5
30206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207   (exit $ac_status); } &&
30208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30209   { (case "(($ac_try" in
30210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211   *) ac_try_echo=$ac_try;;
30212 esac
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214   (eval "$ac_try") 2>&5
30215   ac_status=$?
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); }; } &&
30218          { ac_try='test -s conftest.$ac_objext'
30219   { (case "(($ac_try" in
30220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30221   *) ac_try_echo=$ac_try;;
30222 esac
30223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30224   (eval "$ac_try") 2>&5
30225   ac_status=$?
30226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227   (exit $ac_status); }; }; then
30228   ac_cv_type_uint64_t=yes
30229 else
30230   echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.$ac_ext >&5
30232
30233         ac_cv_type_uint64_t=no
30234 fi
30235
30236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30237 fi
30238 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30239 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30240 if test $ac_cv_type_uint64_t = yes; then
30241
30242 cat >>confdefs.h <<_ACEOF
30243 #define HAVE_UINT64_T 1
30244 _ACEOF
30245
30246
30247 else
30248   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30249 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30250 if test "${ac_cv_type_u_int64_t+set}" = set; then
30251   echo $ECHO_N "(cached) $ECHO_C" >&6
30252 else
30253   cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h.  */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h.  */
30259 $ac_includes_default
30260 typedef u_int64_t ac__type_new_;
30261 int
30262 main ()
30263 {
30264 if ((ac__type_new_ *) 0)
30265   return 0;
30266 if (sizeof (ac__type_new_))
30267   return 0;
30268   ;
30269   return 0;
30270 }
30271 _ACEOF
30272 rm -f conftest.$ac_objext
30273 if { (ac_try="$ac_compile"
30274 case "(($ac_try" in
30275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276   *) ac_try_echo=$ac_try;;
30277 esac
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279   (eval "$ac_compile") 2>conftest.er1
30280   ac_status=$?
30281   grep -v '^ *+' conftest.er1 >conftest.err
30282   rm -f conftest.er1
30283   cat conftest.err >&5
30284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); } &&
30286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30287   { (case "(($ac_try" in
30288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289   *) ac_try_echo=$ac_try;;
30290 esac
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292   (eval "$ac_try") 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; } &&
30296          { ac_try='test -s conftest.$ac_objext'
30297   { (case "(($ac_try" in
30298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299   *) ac_try_echo=$ac_try;;
30300 esac
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302   (eval "$ac_try") 2>&5
30303   ac_status=$?
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); }; }; then
30306   ac_cv_type_u_int64_t=yes
30307 else
30308   echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30310
30311         ac_cv_type_u_int64_t=no
30312 fi
30313
30314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 fi
30316 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30317 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30318 if test $ac_cv_type_u_int64_t = yes; then
30319
30320 cat >>confdefs.h <<_ACEOF
30321 #define HAVE_U_INT64_T 1
30322 _ACEOF
30323
30324
30325 else
30326   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30327 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30328    { (exit 1); exit 1; }; }
30329 fi
30330
30331 fi
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30343 do
30344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30348   echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350   cat >conftest.$ac_ext <<_ACEOF
30351 /* confdefs.h.  */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h.  */
30356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30358 #define $ac_func innocuous_$ac_func
30359
30360 /* System header to define __stub macros and hopefully few prototypes,
30361     which can conflict with char $ac_func (); below.
30362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30363     <limits.h> exists even on freestanding compilers.  */
30364
30365 #ifdef __STDC__
30366 # include <limits.h>
30367 #else
30368 # include <assert.h>
30369 #endif
30370
30371 #undef $ac_func
30372
30373 /* Override any GCC internal prototype to avoid an error.
30374    Use char because int might match the return type of a GCC
30375    builtin and then its argument prototype would still apply.  */
30376 #ifdef __cplusplus
30377 extern "C"
30378 #endif
30379 char $ac_func ();
30380 /* The GNU C library defines this for functions which it implements
30381     to always fail with ENOSYS.  Some functions are actually named
30382     something starting with __ and the normal name is an alias.  */
30383 #if defined __stub_$ac_func || defined __stub___$ac_func
30384 choke me
30385 #endif
30386
30387 int
30388 main ()
30389 {
30390 return $ac_func ();
30391   ;
30392   return 0;
30393 }
30394 _ACEOF
30395 rm -f conftest.$ac_objext conftest$ac_exeext
30396 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30403   ac_status=$?
30404   grep -v '^ *+' conftest.er1 >conftest.err
30405   rm -f conftest.er1
30406   cat conftest.err >&5
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); } &&
30409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30410   { (case "(($ac_try" in
30411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412   *) ac_try_echo=$ac_try;;
30413 esac
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415   (eval "$ac_try") 2>&5
30416   ac_status=$?
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); }; } &&
30419          { ac_try='test -s conftest$ac_exeext'
30420   { (case "(($ac_try" in
30421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422   *) ac_try_echo=$ac_try;;
30423 esac
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425   (eval "$ac_try") 2>&5
30426   ac_status=$?
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); }; }; then
30429   eval "$as_ac_var=yes"
30430 else
30431   echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30433
30434         eval "$as_ac_var=no"
30435 fi
30436
30437 rm -f core conftest.err conftest.$ac_objext \
30438       conftest$ac_exeext conftest.$ac_ext
30439 fi
30440 ac_res=`eval echo '${'$as_ac_var'}'`
30441                { echo "$as_me:$LINENO: result: $ac_res" >&5
30442 echo "${ECHO_T}$ac_res" >&6; }
30443 if test `eval echo '${'$as_ac_var'}'` = yes; then
30444   cat >>confdefs.h <<_ACEOF
30445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30446 _ACEOF
30447
30448 fi
30449 done
30450
30451
30452
30453
30454
30455 for ac_func in powf fmodf strtof round
30456 do
30457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463   cat >conftest.$ac_ext <<_ACEOF
30464 /* confdefs.h.  */
30465 _ACEOF
30466 cat confdefs.h >>conftest.$ac_ext
30467 cat >>conftest.$ac_ext <<_ACEOF
30468 /* end confdefs.h.  */
30469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30471 #define $ac_func innocuous_$ac_func
30472
30473 /* System header to define __stub macros and hopefully few prototypes,
30474     which can conflict with char $ac_func (); below.
30475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30476     <limits.h> exists even on freestanding compilers.  */
30477
30478 #ifdef __STDC__
30479 # include <limits.h>
30480 #else
30481 # include <assert.h>
30482 #endif
30483
30484 #undef $ac_func
30485
30486 /* Override any GCC internal prototype to avoid an error.
30487    Use char because int might match the return type of a GCC
30488    builtin and then its argument prototype would still apply.  */
30489 #ifdef __cplusplus
30490 extern "C"
30491 #endif
30492 char $ac_func ();
30493 /* The GNU C library defines this for functions which it implements
30494     to always fail with ENOSYS.  Some functions are actually named
30495     something starting with __ and the normal name is an alias.  */
30496 #if defined __stub_$ac_func || defined __stub___$ac_func
30497 choke me
30498 #endif
30499
30500 int
30501 main ()
30502 {
30503 return $ac_func ();
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_link") 2>conftest.er1
30516   ac_status=$?
30517   grep -v '^ *+' conftest.er1 >conftest.err
30518   rm -f conftest.er1
30519   cat conftest.err >&5
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); } &&
30522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30523   { (case "(($ac_try" in
30524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525   *) ac_try_echo=$ac_try;;
30526 esac
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528   (eval "$ac_try") 2>&5
30529   ac_status=$?
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); }; } &&
30532          { ac_try='test -s conftest$ac_exeext'
30533   { (case "(($ac_try" in
30534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535   *) ac_try_echo=$ac_try;;
30536 esac
30537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538   (eval "$ac_try") 2>&5
30539   ac_status=$?
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); }; }; then
30542   eval "$as_ac_var=yes"
30543 else
30544   echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30546
30547         eval "$as_ac_var=no"
30548 fi
30549
30550 rm -f core conftest.err conftest.$ac_objext \
30551       conftest$ac_exeext conftest.$ac_ext
30552 fi
30553 ac_res=`eval echo '${'$as_ac_var'}'`
30554                { echo "$as_me:$LINENO: result: $ac_res" >&5
30555 echo "${ECHO_T}$ac_res" >&6; }
30556 if test `eval echo '${'$as_ac_var'}'` = yes; then
30557   cat >>confdefs.h <<_ACEOF
30558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30559 _ACEOF
30560
30561 fi
30562 done
30563
30564
30565
30566
30567
30568
30569 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30570 do
30571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30575   echo $ECHO_N "(cached) $ECHO_C" >&6
30576 else
30577   cat >conftest.$ac_ext <<_ACEOF
30578 /* confdefs.h.  */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h.  */
30583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30585 #define $ac_func innocuous_$ac_func
30586
30587 /* System header to define __stub macros and hopefully few prototypes,
30588     which can conflict with char $ac_func (); below.
30589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30590     <limits.h> exists even on freestanding compilers.  */
30591
30592 #ifdef __STDC__
30593 # include <limits.h>
30594 #else
30595 # include <assert.h>
30596 #endif
30597
30598 #undef $ac_func
30599
30600 /* Override any GCC internal prototype to avoid an error.
30601    Use char because int might match the return type of a GCC
30602    builtin and then its argument prototype would still apply.  */
30603 #ifdef __cplusplus
30604 extern "C"
30605 #endif
30606 char $ac_func ();
30607 /* The GNU C library defines this for functions which it implements
30608     to always fail with ENOSYS.  Some functions are actually named
30609     something starting with __ and the normal name is an alias.  */
30610 #if defined __stub_$ac_func || defined __stub___$ac_func
30611 choke me
30612 #endif
30613
30614 int
30615 main ()
30616 {
30617 return $ac_func ();
30618   ;
30619   return 0;
30620 }
30621 _ACEOF
30622 rm -f conftest.$ac_objext conftest$ac_exeext
30623 if { (ac_try="$ac_link"
30624 case "(($ac_try" in
30625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30626   *) ac_try_echo=$ac_try;;
30627 esac
30628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30629   (eval "$ac_link") 2>conftest.er1
30630   ac_status=$?
30631   grep -v '^ *+' conftest.er1 >conftest.err
30632   rm -f conftest.er1
30633   cat conftest.err >&5
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); } &&
30636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30637   { (case "(($ac_try" in
30638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639   *) ac_try_echo=$ac_try;;
30640 esac
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642   (eval "$ac_try") 2>&5
30643   ac_status=$?
30644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645   (exit $ac_status); }; } &&
30646          { ac_try='test -s conftest$ac_exeext'
30647   { (case "(($ac_try" in
30648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649   *) ac_try_echo=$ac_try;;
30650 esac
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652   (eval "$ac_try") 2>&5
30653   ac_status=$?
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); }; }; then
30656   eval "$as_ac_var=yes"
30657 else
30658   echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30660
30661         eval "$as_ac_var=no"
30662 fi
30663
30664 rm -f core conftest.err conftest.$ac_objext \
30665       conftest$ac_exeext conftest.$ac_ext
30666 fi
30667 ac_res=`eval echo '${'$as_ac_var'}'`
30668                { echo "$as_me:$LINENO: result: $ac_res" >&5
30669 echo "${ECHO_T}$ac_res" >&6; }
30670 if test `eval echo '${'$as_ac_var'}'` = yes; then
30671   cat >>confdefs.h <<_ACEOF
30672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30673 _ACEOF
30674
30675 fi
30676 done
30677
30678
30679
30680
30681 for ac_func in isatty mkdtemp mkstemp
30682 do
30683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30687   echo $ECHO_N "(cached) $ECHO_C" >&6
30688 else
30689   cat >conftest.$ac_ext <<_ACEOF
30690 /* confdefs.h.  */
30691 _ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h.  */
30695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30697 #define $ac_func innocuous_$ac_func
30698
30699 /* System header to define __stub macros and hopefully few prototypes,
30700     which can conflict with char $ac_func (); below.
30701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30702     <limits.h> exists even on freestanding compilers.  */
30703
30704 #ifdef __STDC__
30705 # include <limits.h>
30706 #else
30707 # include <assert.h>
30708 #endif
30709
30710 #undef $ac_func
30711
30712 /* Override any GCC internal prototype to avoid an error.
30713    Use char because int might match the return type of a GCC
30714    builtin and then its argument prototype would still apply.  */
30715 #ifdef __cplusplus
30716 extern "C"
30717 #endif
30718 char $ac_func ();
30719 /* The GNU C library defines this for functions which it implements
30720     to always fail with ENOSYS.  Some functions are actually named
30721     something starting with __ and the normal name is an alias.  */
30722 #if defined __stub_$ac_func || defined __stub___$ac_func
30723 choke me
30724 #endif
30725
30726 int
30727 main ()
30728 {
30729 return $ac_func ();
30730   ;
30731   return 0;
30732 }
30733 _ACEOF
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (ac_try="$ac_link"
30736 case "(($ac_try" in
30737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738   *) ac_try_echo=$ac_try;;
30739 esac
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741   (eval "$ac_link") 2>conftest.er1
30742   ac_status=$?
30743   grep -v '^ *+' conftest.er1 >conftest.err
30744   rm -f conftest.er1
30745   cat conftest.err >&5
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } &&
30748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30758          { ac_try='test -s conftest$ac_exeext'
30759   { (case "(($ac_try" in
30760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761   *) ac_try_echo=$ac_try;;
30762 esac
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764   (eval "$ac_try") 2>&5
30765   ac_status=$?
30766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767   (exit $ac_status); }; }; then
30768   eval "$as_ac_var=yes"
30769 else
30770   echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30772
30773         eval "$as_ac_var=no"
30774 fi
30775
30776 rm -f core conftest.err conftest.$ac_objext \
30777       conftest$ac_exeext conftest.$ac_ext
30778 fi
30779 ac_res=`eval echo '${'$as_ac_var'}'`
30780                { echo "$as_me:$LINENO: result: $ac_res" >&5
30781 echo "${ECHO_T}$ac_res" >&6; }
30782 if test `eval echo '${'$as_ac_var'}'` = yes; then
30783   cat >>confdefs.h <<_ACEOF
30784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30785 _ACEOF
30786
30787 fi
30788 done
30789
30790
30791
30792
30793
30794
30795
30796
30797 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30798 do
30799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30803   echo $ECHO_N "(cached) $ECHO_C" >&6
30804 else
30805   cat >conftest.$ac_ext <<_ACEOF
30806 /* confdefs.h.  */
30807 _ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h.  */
30811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30813 #define $ac_func innocuous_$ac_func
30814
30815 /* System header to define __stub macros and hopefully few prototypes,
30816     which can conflict with char $ac_func (); below.
30817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30818     <limits.h> exists even on freestanding compilers.  */
30819
30820 #ifdef __STDC__
30821 # include <limits.h>
30822 #else
30823 # include <assert.h>
30824 #endif
30825
30826 #undef $ac_func
30827
30828 /* Override any GCC internal prototype to avoid an error.
30829    Use char because int might match the return type of a GCC
30830    builtin and then its argument prototype would still apply.  */
30831 #ifdef __cplusplus
30832 extern "C"
30833 #endif
30834 char $ac_func ();
30835 /* The GNU C library defines this for functions which it implements
30836     to always fail with ENOSYS.  Some functions are actually named
30837     something starting with __ and the normal name is an alias.  */
30838 #if defined __stub_$ac_func || defined __stub___$ac_func
30839 choke me
30840 #endif
30841
30842 int
30843 main ()
30844 {
30845 return $ac_func ();
30846   ;
30847   return 0;
30848 }
30849 _ACEOF
30850 rm -f conftest.$ac_objext conftest$ac_exeext
30851 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30858   ac_status=$?
30859   grep -v '^ *+' conftest.er1 >conftest.err
30860   rm -f conftest.er1
30861   cat conftest.err >&5
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); } &&
30864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30865   { (case "(($ac_try" in
30866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867   *) ac_try_echo=$ac_try;;
30868 esac
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870   (eval "$ac_try") 2>&5
30871   ac_status=$?
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); }; } &&
30874          { ac_try='test -s conftest$ac_exeext'
30875   { (case "(($ac_try" in
30876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877   *) ac_try_echo=$ac_try;;
30878 esac
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880   (eval "$ac_try") 2>&5
30881   ac_status=$?
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); }; }; then
30884   eval "$as_ac_var=yes"
30885 else
30886   echo "$as_me: failed program was:" >&5
30887 sed 's/^/| /' conftest.$ac_ext >&5
30888
30889         eval "$as_ac_var=no"
30890 fi
30891
30892 rm -f core conftest.err conftest.$ac_objext \
30893       conftest$ac_exeext conftest.$ac_ext
30894 fi
30895 ac_res=`eval echo '${'$as_ac_var'}'`
30896                { echo "$as_me:$LINENO: result: $ac_res" >&5
30897 echo "${ECHO_T}$ac_res" >&6; }
30898 if test `eval echo '${'$as_ac_var'}'` = yes; then
30899   cat >>confdefs.h <<_ACEOF
30900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30901 _ACEOF
30902
30903 fi
30904 done
30905
30906
30907
30908
30909
30910 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30911 do
30912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30916   echo $ECHO_N "(cached) $ECHO_C" >&6
30917 else
30918   cat >conftest.$ac_ext <<_ACEOF
30919 /* confdefs.h.  */
30920 _ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h.  */
30924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30926 #define $ac_func innocuous_$ac_func
30927
30928 /* System header to define __stub macros and hopefully few prototypes,
30929     which can conflict with char $ac_func (); below.
30930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30931     <limits.h> exists even on freestanding compilers.  */
30932
30933 #ifdef __STDC__
30934 # include <limits.h>
30935 #else
30936 # include <assert.h>
30937 #endif
30938
30939 #undef $ac_func
30940
30941 /* Override any GCC internal prototype to avoid an error.
30942    Use char because int might match the return type of a GCC
30943    builtin and then its argument prototype would still apply.  */
30944 #ifdef __cplusplus
30945 extern "C"
30946 #endif
30947 char $ac_func ();
30948 /* The GNU C library defines this for functions which it implements
30949     to always fail with ENOSYS.  Some functions are actually named
30950     something starting with __ and the normal name is an alias.  */
30951 #if defined __stub_$ac_func || defined __stub___$ac_func
30952 choke me
30953 #endif
30954
30955 int
30956 main ()
30957 {
30958 return $ac_func ();
30959   ;
30960   return 0;
30961 }
30962 _ACEOF
30963 rm -f conftest.$ac_objext conftest$ac_exeext
30964 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30971   ac_status=$?
30972   grep -v '^ *+' conftest.er1 >conftest.err
30973   rm -f conftest.er1
30974   cat conftest.err >&5
30975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); } &&
30977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30978   { (case "(($ac_try" in
30979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980   *) ac_try_echo=$ac_try;;
30981 esac
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983   (eval "$ac_try") 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); }; } &&
30987          { ac_try='test -s conftest$ac_exeext'
30988   { (case "(($ac_try" in
30989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990   *) ac_try_echo=$ac_try;;
30991 esac
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993   (eval "$ac_try") 2>&5
30994   ac_status=$?
30995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); }; }; then
30997   eval "$as_ac_var=yes"
30998 else
30999   echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31001
31002         eval "$as_ac_var=no"
31003 fi
31004
31005 rm -f core conftest.err conftest.$ac_objext \
31006       conftest$ac_exeext conftest.$ac_ext
31007 fi
31008 ac_res=`eval echo '${'$as_ac_var'}'`
31009                { echo "$as_me:$LINENO: result: $ac_res" >&5
31010 echo "${ECHO_T}$ac_res" >&6; }
31011 if test `eval echo '${'$as_ac_var'}'` = yes; then
31012   cat >>confdefs.h <<_ACEOF
31013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31014 _ACEOF
31015
31016 fi
31017 done
31018
31019
31020
31021
31022
31023 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31024 do
31025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31029   echo $ECHO_N "(cached) $ECHO_C" >&6
31030 else
31031   cat >conftest.$ac_ext <<_ACEOF
31032 /* confdefs.h.  */
31033 _ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h.  */
31037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31039 #define $ac_func innocuous_$ac_func
31040
31041 /* System header to define __stub macros and hopefully few prototypes,
31042     which can conflict with char $ac_func (); below.
31043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31044     <limits.h> exists even on freestanding compilers.  */
31045
31046 #ifdef __STDC__
31047 # include <limits.h>
31048 #else
31049 # include <assert.h>
31050 #endif
31051
31052 #undef $ac_func
31053
31054 /* Override any GCC internal prototype to avoid an error.
31055    Use char because int might match the return type of a GCC
31056    builtin and then its argument prototype would still apply.  */
31057 #ifdef __cplusplus
31058 extern "C"
31059 #endif
31060 char $ac_func ();
31061 /* The GNU C library defines this for functions which it implements
31062     to always fail with ENOSYS.  Some functions are actually named
31063     something starting with __ and the normal name is an alias.  */
31064 #if defined __stub_$ac_func || defined __stub___$ac_func
31065 choke me
31066 #endif
31067
31068 int
31069 main ()
31070 {
31071 return $ac_func ();
31072   ;
31073   return 0;
31074 }
31075 _ACEOF
31076 rm -f conftest.$ac_objext conftest$ac_exeext
31077 if { (ac_try="$ac_link"
31078 case "(($ac_try" in
31079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080   *) ac_try_echo=$ac_try;;
31081 esac
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083   (eval "$ac_link") 2>conftest.er1
31084   ac_status=$?
31085   grep -v '^ *+' conftest.er1 >conftest.err
31086   rm -f conftest.er1
31087   cat conftest.err >&5
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); } &&
31090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31091   { (case "(($ac_try" in
31092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093   *) ac_try_echo=$ac_try;;
31094 esac
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096   (eval "$ac_try") 2>&5
31097   ac_status=$?
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); }; } &&
31100          { ac_try='test -s conftest$ac_exeext'
31101   { (case "(($ac_try" in
31102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103   *) ac_try_echo=$ac_try;;
31104 esac
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106   (eval "$ac_try") 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); }; }; then
31110   eval "$as_ac_var=yes"
31111 else
31112   echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31114
31115         eval "$as_ac_var=no"
31116 fi
31117
31118 rm -f core conftest.err conftest.$ac_objext \
31119       conftest$ac_exeext conftest.$ac_ext
31120 fi
31121 ac_res=`eval echo '${'$as_ac_var'}'`
31122                { echo "$as_me:$LINENO: result: $ac_res" >&5
31123 echo "${ECHO_T}$ac_res" >&6; }
31124 if test `eval echo '${'$as_ac_var'}'` = yes; then
31125   cat >>confdefs.h <<_ACEOF
31126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31127 _ACEOF
31128
31129 fi
31130 done
31131
31132 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31133 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31134 if test "${llvm_cv_c_printf_a+set}" = set; then
31135   echo $ECHO_N "(cached) $ECHO_C" >&6
31136 else
31137   ac_ext=c
31138 ac_cpp='$CPP $CPPFLAGS'
31139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31142
31143  if test "$cross_compiling" = yes; then
31144   llvmac_cv_c_printf_a=no
31145 else
31146   cat >conftest.$ac_ext <<_ACEOF
31147
31148   /* confdefs.h.  */
31149 _ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h.  */
31153
31154 #include <stdio.h>
31155 #include <stdlib.h>
31156
31157 int
31158 main ()
31159 {
31160
31161 volatile double A, B;
31162 char Buffer[100];
31163 A = 1;
31164 A /= 10.0;
31165 sprintf(Buffer, "%a", A);
31166 B = atof(Buffer);
31167 if (A != B)
31168   return (1);
31169 if (A != 0x1.999999999999ap-4)
31170   return (1);
31171 return (0);
31172   ;
31173   return 0;
31174 }
31175 _ACEOF
31176 rm -f conftest$ac_exeext
31177 if { (ac_try="$ac_link"
31178 case "(($ac_try" in
31179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180   *) ac_try_echo=$ac_try;;
31181 esac
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183   (eval "$ac_link") 2>&5
31184   ac_status=$?
31185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31187   { (case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_try") 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; }; then
31196   llvm_cv_c_printf_a=yes
31197 else
31198   echo "$as_me: program exited with status $ac_status" >&5
31199 echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31201
31202 ( exit $ac_status )
31203 llvmac_cv_c_printf_a=no
31204 fi
31205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31206 fi
31207
31208
31209  ac_ext=c
31210 ac_cpp='$CPP $CPPFLAGS'
31211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31214
31215 fi
31216 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31217 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31218  if test "$llvm_cv_c_printf_a" = "yes"; then
31219
31220 cat >>confdefs.h <<\_ACEOF
31221 #define HAVE_PRINTF_A 1
31222 _ACEOF
31223
31224  fi
31225
31226 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31227 # for constant arguments.  Useless!
31228 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31229 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31230 if test "${ac_cv_working_alloca_h+set}" = set; then
31231   echo $ECHO_N "(cached) $ECHO_C" >&6
31232 else
31233   cat >conftest.$ac_ext <<_ACEOF
31234 /* confdefs.h.  */
31235 _ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h.  */
31239 #include <alloca.h>
31240 int
31241 main ()
31242 {
31243 char *p = (char *) alloca (2 * sizeof (int));
31244                           if (p) return 0;
31245   ;
31246   return 0;
31247 }
31248 _ACEOF
31249 rm -f conftest.$ac_objext conftest$ac_exeext
31250 if { (ac_try="$ac_link"
31251 case "(($ac_try" in
31252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253   *) ac_try_echo=$ac_try;;
31254 esac
31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256   (eval "$ac_link") 2>conftest.er1
31257   ac_status=$?
31258   grep -v '^ *+' conftest.er1 >conftest.err
31259   rm -f conftest.er1
31260   cat conftest.err >&5
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); } &&
31263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31264   { (case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269   (eval "$ac_try") 2>&5
31270   ac_status=$?
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); }; } &&
31273          { ac_try='test -s conftest$ac_exeext'
31274   { (case "(($ac_try" in
31275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276   *) ac_try_echo=$ac_try;;
31277 esac
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279   (eval "$ac_try") 2>&5
31280   ac_status=$?
31281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282   (exit $ac_status); }; }; then
31283   ac_cv_working_alloca_h=yes
31284 else
31285   echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31287
31288         ac_cv_working_alloca_h=no
31289 fi
31290
31291 rm -f core conftest.err conftest.$ac_objext \
31292       conftest$ac_exeext conftest.$ac_ext
31293 fi
31294 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31295 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31296 if test $ac_cv_working_alloca_h = yes; then
31297
31298 cat >>confdefs.h <<\_ACEOF
31299 #define HAVE_ALLOCA_H 1
31300 _ACEOF
31301
31302 fi
31303
31304 { echo "$as_me:$LINENO: checking for alloca" >&5
31305 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31306 if test "${ac_cv_func_alloca_works+set}" = set; then
31307   echo $ECHO_N "(cached) $ECHO_C" >&6
31308 else
31309   cat >conftest.$ac_ext <<_ACEOF
31310 /* confdefs.h.  */
31311 _ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h.  */
31315 #ifdef __GNUC__
31316 # define alloca __builtin_alloca
31317 #else
31318 # ifdef _MSC_VER
31319 #  include <malloc.h>
31320 #  define alloca _alloca
31321 # else
31322 #  if HAVE_ALLOCA_H
31323 #   include <alloca.h>
31324 #  else
31325 #   ifdef _AIX
31326  #pragma alloca
31327 #   else
31328 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31329 char *alloca ();
31330 #    endif
31331 #   endif
31332 #  endif
31333 # endif
31334 #endif
31335
31336 int
31337 main ()
31338 {
31339 char *p = (char *) alloca (1);
31340                                     if (p) return 0;
31341   ;
31342   return 0;
31343 }
31344 _ACEOF
31345 rm -f conftest.$ac_objext conftest$ac_exeext
31346 if { (ac_try="$ac_link"
31347 case "(($ac_try" in
31348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31349   *) ac_try_echo=$ac_try;;
31350 esac
31351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31352   (eval "$ac_link") 2>conftest.er1
31353   ac_status=$?
31354   grep -v '^ *+' conftest.er1 >conftest.err
31355   rm -f conftest.er1
31356   cat conftest.err >&5
31357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358   (exit $ac_status); } &&
31359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31360   { (case "(($ac_try" in
31361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362   *) ac_try_echo=$ac_try;;
31363 esac
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365   (eval "$ac_try") 2>&5
31366   ac_status=$?
31367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368   (exit $ac_status); }; } &&
31369          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31376   ac_status=$?
31377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378   (exit $ac_status); }; }; then
31379   ac_cv_func_alloca_works=yes
31380 else
31381   echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31383
31384         ac_cv_func_alloca_works=no
31385 fi
31386
31387 rm -f core conftest.err conftest.$ac_objext \
31388       conftest$ac_exeext conftest.$ac_ext
31389 fi
31390 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31391 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31392
31393 if test $ac_cv_func_alloca_works = yes; then
31394
31395 cat >>confdefs.h <<\_ACEOF
31396 #define HAVE_ALLOCA 1
31397 _ACEOF
31398
31399 else
31400   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31401 # that cause trouble.  Some versions do not even contain alloca or
31402 # contain a buggy version.  If you still want to use their alloca,
31403 # use ar to extract alloca.o from them instead of compiling alloca.c.
31404
31405 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31406
31407 cat >>confdefs.h <<\_ACEOF
31408 #define C_ALLOCA 1
31409 _ACEOF
31410
31411
31412 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31413 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31414 if test "${ac_cv_os_cray+set}" = set; then
31415   echo $ECHO_N "(cached) $ECHO_C" >&6
31416 else
31417   cat >conftest.$ac_ext <<_ACEOF
31418 /* confdefs.h.  */
31419 _ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h.  */
31423 #if defined CRAY && ! defined CRAY2
31424 webecray
31425 #else
31426 wenotbecray
31427 #endif
31428
31429 _ACEOF
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431   $EGREP "webecray" >/dev/null 2>&1; then
31432   ac_cv_os_cray=yes
31433 else
31434   ac_cv_os_cray=no
31435 fi
31436 rm -f conftest*
31437
31438 fi
31439 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31440 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31441 if test $ac_cv_os_cray = yes; then
31442   for ac_func in _getb67 GETB67 getb67; do
31443     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31447   echo $ECHO_N "(cached) $ECHO_C" >&6
31448 else
31449   cat >conftest.$ac_ext <<_ACEOF
31450 /* confdefs.h.  */
31451 _ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h.  */
31455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31457 #define $ac_func innocuous_$ac_func
31458
31459 /* System header to define __stub macros and hopefully few prototypes,
31460     which can conflict with char $ac_func (); below.
31461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31462     <limits.h> exists even on freestanding compilers.  */
31463
31464 #ifdef __STDC__
31465 # include <limits.h>
31466 #else
31467 # include <assert.h>
31468 #endif
31469
31470 #undef $ac_func
31471
31472 /* Override any GCC internal prototype to avoid an error.
31473    Use char because int might match the return type of a GCC
31474    builtin and then its argument prototype would still apply.  */
31475 #ifdef __cplusplus
31476 extern "C"
31477 #endif
31478 char $ac_func ();
31479 /* The GNU C library defines this for functions which it implements
31480     to always fail with ENOSYS.  Some functions are actually named
31481     something starting with __ and the normal name is an alias.  */
31482 #if defined __stub_$ac_func || defined __stub___$ac_func
31483 choke me
31484 #endif
31485
31486 int
31487 main ()
31488 {
31489 return $ac_func ();
31490   ;
31491   return 0;
31492 }
31493 _ACEOF
31494 rm -f conftest.$ac_objext conftest$ac_exeext
31495 if { (ac_try="$ac_link"
31496 case "(($ac_try" in
31497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498   *) ac_try_echo=$ac_try;;
31499 esac
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501   (eval "$ac_link") 2>conftest.er1
31502   ac_status=$?
31503   grep -v '^ *+' conftest.er1 >conftest.err
31504   rm -f conftest.er1
31505   cat conftest.err >&5
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } &&
31508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509   { (case "(($ac_try" in
31510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511   *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514   (eval "$ac_try") 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; } &&
31518          { ac_try='test -s conftest$ac_exeext'
31519   { (case "(($ac_try" in
31520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521   *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524   (eval "$ac_try") 2>&5
31525   ac_status=$?
31526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527   (exit $ac_status); }; }; then
31528   eval "$as_ac_var=yes"
31529 else
31530   echo "$as_me: failed program was:" >&5
31531 sed 's/^/| /' conftest.$ac_ext >&5
31532
31533         eval "$as_ac_var=no"
31534 fi
31535
31536 rm -f core conftest.err conftest.$ac_objext \
31537       conftest$ac_exeext conftest.$ac_ext
31538 fi
31539 ac_res=`eval echo '${'$as_ac_var'}'`
31540                { echo "$as_me:$LINENO: result: $ac_res" >&5
31541 echo "${ECHO_T}$ac_res" >&6; }
31542 if test `eval echo '${'$as_ac_var'}'` = yes; then
31543
31544 cat >>confdefs.h <<_ACEOF
31545 #define CRAY_STACKSEG_END $ac_func
31546 _ACEOF
31547
31548     break
31549 fi
31550
31551   done
31552 fi
31553
31554 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31555 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31556 if test "${ac_cv_c_stack_direction+set}" = set; then
31557   echo $ECHO_N "(cached) $ECHO_C" >&6
31558 else
31559   if test "$cross_compiling" = yes; then
31560   ac_cv_c_stack_direction=0
31561 else
31562   cat >conftest.$ac_ext <<_ACEOF
31563 /* confdefs.h.  */
31564 _ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h.  */
31568 $ac_includes_default
31569 int
31570 find_stack_direction ()
31571 {
31572   static char *addr = 0;
31573   auto char dummy;
31574   if (addr == 0)
31575     {
31576       addr = &dummy;
31577       return find_stack_direction ();
31578     }
31579   else
31580     return (&dummy > addr) ? 1 : -1;
31581 }
31582
31583 int
31584 main ()
31585 {
31586   return find_stack_direction () < 0;
31587 }
31588 _ACEOF
31589 rm -f conftest$ac_exeext
31590 if { (ac_try="$ac_link"
31591 case "(($ac_try" in
31592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593   *) ac_try_echo=$ac_try;;
31594 esac
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596   (eval "$ac_link") 2>&5
31597   ac_status=$?
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31600   { (case "(($ac_try" in
31601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31602   *) ac_try_echo=$ac_try;;
31603 esac
31604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31605   (eval "$ac_try") 2>&5
31606   ac_status=$?
31607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608   (exit $ac_status); }; }; then
31609   ac_cv_c_stack_direction=1
31610 else
31611   echo "$as_me: program exited with status $ac_status" >&5
31612 echo "$as_me: failed program was:" >&5
31613 sed 's/^/| /' conftest.$ac_ext >&5
31614
31615 ( exit $ac_status )
31616 ac_cv_c_stack_direction=-1
31617 fi
31618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31619 fi
31620
31621
31622 fi
31623 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31624 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31625
31626 cat >>confdefs.h <<_ACEOF
31627 #define STACK_DIRECTION $ac_cv_c_stack_direction
31628 _ACEOF
31629
31630
31631 fi
31632
31633
31634 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31635 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31636 if test "${ac_cv_func_rand48+set}" = set; then
31637   echo $ECHO_N "(cached) $ECHO_C" >&6
31638 else
31639   ac_ext=cpp
31640 ac_cpp='$CXXCPP $CPPFLAGS'
31641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31644
31645    cat >conftest.$ac_ext <<_ACEOF
31646 /* confdefs.h.  */
31647 _ACEOF
31648 cat confdefs.h >>conftest.$ac_ext
31649 cat >>conftest.$ac_ext <<_ACEOF
31650 /* end confdefs.h.  */
31651 #include <stdlib.h>
31652 int
31653 main ()
31654 {
31655 srand48(0);lrand48();drand48();
31656   ;
31657   return 0;
31658 }
31659 _ACEOF
31660 rm -f conftest.$ac_objext
31661 if { (ac_try="$ac_compile"
31662 case "(($ac_try" in
31663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664   *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667   (eval "$ac_compile") 2>conftest.er1
31668   ac_status=$?
31669   grep -v '^ *+' conftest.er1 >conftest.err
31670   rm -f conftest.er1
31671   cat conftest.err >&5
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); } &&
31674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31675   { (case "(($ac_try" in
31676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677   *) ac_try_echo=$ac_try;;
31678 esac
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680   (eval "$ac_try") 2>&5
31681   ac_status=$?
31682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683   (exit $ac_status); }; } &&
31684          { ac_try='test -s conftest.$ac_objext'
31685   { (case "(($ac_try" in
31686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687   *) ac_try_echo=$ac_try;;
31688 esac
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690   (eval "$ac_try") 2>&5
31691   ac_status=$?
31692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693   (exit $ac_status); }; }; then
31694   ac_cv_func_rand48=yes
31695 else
31696   echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31698
31699         ac_cv_func_rand48=no
31700 fi
31701
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703   ac_ext=c
31704 ac_cpp='$CPP $CPPFLAGS'
31705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31708
31709 fi
31710 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31711 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31712
31713 if test "$ac_cv_func_rand48" = "yes" ; then
31714
31715 cat >>confdefs.h <<\_ACEOF
31716 #define HAVE_RAND48 1
31717 _ACEOF
31718
31719 fi
31720
31721
31722 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31723 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31724 if test "${ac_cv_cxx_namespaces+set}" = set; then
31725   echo $ECHO_N "(cached) $ECHO_C" >&6
31726 else
31727   ac_ext=cpp
31728 ac_cpp='$CXXCPP $CPPFLAGS'
31729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31732
31733  cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h.  */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h.  */
31739 namespace Outer { namespace Inner { int i = 0; }}
31740 int
31741 main ()
31742 {
31743 using namespace Outer::Inner; return i;
31744   ;
31745   return 0;
31746 }
31747 _ACEOF
31748 rm -f conftest.$ac_objext
31749 if { (ac_try="$ac_compile"
31750 case "(($ac_try" in
31751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752   *) ac_try_echo=$ac_try;;
31753 esac
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755   (eval "$ac_compile") 2>conftest.er1
31756   ac_status=$?
31757   grep -v '^ *+' conftest.er1 >conftest.err
31758   rm -f conftest.er1
31759   cat conftest.err >&5
31760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761   (exit $ac_status); } &&
31762          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31763   { (case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_try") 2>&5
31769   ac_status=$?
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); }; } &&
31772          { ac_try='test -s conftest.$ac_objext'
31773   { (case "(($ac_try" in
31774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775   *) ac_try_echo=$ac_try;;
31776 esac
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778   (eval "$ac_try") 2>&5
31779   ac_status=$?
31780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781   (exit $ac_status); }; }; then
31782   ac_cv_cxx_namespaces=yes
31783 else
31784   echo "$as_me: failed program was:" >&5
31785 sed 's/^/| /' conftest.$ac_ext >&5
31786
31787         ac_cv_cxx_namespaces=no
31788 fi
31789
31790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31791  ac_ext=c
31792 ac_cpp='$CPP $CPPFLAGS'
31793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31796
31797
31798 fi
31799 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31800 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31801 if test "$ac_cv_cxx_namespaces" = yes; then
31802
31803 cat >>confdefs.h <<\_ACEOF
31804 #define HAVE_NAMESPACES
31805 _ACEOF
31806
31807 fi
31808
31809 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31810 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31811 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31812   echo $ECHO_N "(cached) $ECHO_C" >&6
31813 else
31814
31815   ac_ext=cpp
31816 ac_cpp='$CXXCPP $CPPFLAGS'
31817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31820
31821   cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h.  */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h.  */
31827 #include <ext/hash_map>
31828 #ifdef HAVE_NAMESPACES
31829 using namespace std;
31830 #endif
31831 int
31832 main ()
31833 {
31834 hash_map<int, int> t;
31835   ;
31836   return 0;
31837 }
31838 _ACEOF
31839 rm -f conftest.$ac_objext
31840 if { (ac_try="$ac_compile"
31841 case "(($ac_try" in
31842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843   *) ac_try_echo=$ac_try;;
31844 esac
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846   (eval "$ac_compile") 2>conftest.er1
31847   ac_status=$?
31848   grep -v '^ *+' conftest.er1 >conftest.err
31849   rm -f conftest.er1
31850   cat conftest.err >&5
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); } &&
31853          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31854   { (case "(($ac_try" in
31855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856   *) ac_try_echo=$ac_try;;
31857 esac
31858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859   (eval "$ac_try") 2>&5
31860   ac_status=$?
31861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862   (exit $ac_status); }; } &&
31863          { ac_try='test -s conftest.$ac_objext'
31864   { (case "(($ac_try" in
31865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866   *) ac_try_echo=$ac_try;;
31867 esac
31868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869   (eval "$ac_try") 2>&5
31870   ac_status=$?
31871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872   (exit $ac_status); }; }; then
31873   ac_cv_cxx_have_std_ext_hash_map=yes
31874 else
31875   echo "$as_me: failed program was:" >&5
31876 sed 's/^/| /' conftest.$ac_ext >&5
31877
31878         ac_cv_cxx_have_std_ext_hash_map=no
31879 fi
31880
31881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31882   ac_ext=c
31883 ac_cpp='$CPP $CPPFLAGS'
31884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31887
31888 fi
31889 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31890 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31891  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31892  then
31893
31894 cat >>confdefs.h <<\_ACEOF
31895 #define HAVE_STD_EXT_HASH_MAP 1
31896 _ACEOF
31897
31898  else
31899
31900 cat >>confdefs.h <<\_ACEOF
31901 #define HAVE_STD_EXT_HASH_MAP 0
31902 _ACEOF
31903
31904  fi
31905
31906  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31907 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31908 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31909   echo $ECHO_N "(cached) $ECHO_C" >&6
31910 else
31911
31912   ac_ext=cpp
31913 ac_cpp='$CXXCPP $CPPFLAGS'
31914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31917
31918   cat >conftest.$ac_ext <<_ACEOF
31919 /* confdefs.h.  */
31920 _ACEOF
31921 cat confdefs.h >>conftest.$ac_ext
31922 cat >>conftest.$ac_ext <<_ACEOF
31923 /* end confdefs.h.  */
31924 #include <ext/hash_map>
31925 #ifdef HAVE_NAMESPACES
31926 using namespace __gnu_cxx;
31927 #endif
31928 int
31929 main ()
31930 {
31931 hash_map<int,int> t;
31932   ;
31933   return 0;
31934 }
31935 _ACEOF
31936 rm -f conftest.$ac_objext
31937 if { (ac_try="$ac_compile"
31938 case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_compile") 2>conftest.er1
31944   ac_status=$?
31945   grep -v '^ *+' conftest.er1 >conftest.err
31946   rm -f conftest.er1
31947   cat conftest.err >&5
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); } &&
31950          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31951   { (case "(($ac_try" in
31952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953   *) ac_try_echo=$ac_try;;
31954 esac
31955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956   (eval "$ac_try") 2>&5
31957   ac_status=$?
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); }; } &&
31960          { ac_try='test -s conftest.$ac_objext'
31961   { (case "(($ac_try" in
31962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963   *) ac_try_echo=$ac_try;;
31964 esac
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966   (eval "$ac_try") 2>&5
31967   ac_status=$?
31968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969   (exit $ac_status); }; }; then
31970   ac_cv_cxx_have_gnu_ext_hash_map=yes
31971 else
31972   echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31974
31975         ac_cv_cxx_have_gnu_ext_hash_map=no
31976 fi
31977
31978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31979   ac_ext=c
31980 ac_cpp='$CPP $CPPFLAGS'
31981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31984
31985 fi
31986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31987 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31988  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31989  then
31990
31991 cat >>confdefs.h <<\_ACEOF
31992 #define HAVE_GNU_EXT_HASH_MAP 1
31993 _ACEOF
31994
31995  else
31996
31997 cat >>confdefs.h <<\_ACEOF
31998 #define HAVE_GNU_EXT_HASH_MAP 0
31999 _ACEOF
32000
32001  fi
32002
32003  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32004 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32005 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32006   echo $ECHO_N "(cached) $ECHO_C" >&6
32007 else
32008
32009   ac_ext=cpp
32010 ac_cpp='$CXXCPP $CPPFLAGS'
32011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32014
32015   cat >conftest.$ac_ext <<_ACEOF
32016 /* confdefs.h.  */
32017 _ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h.  */
32021 #include <hash_map>
32022 int
32023 main ()
32024 {
32025 hash_map<int,int> t;
32026   ;
32027   return 0;
32028 }
32029 _ACEOF
32030 rm -f conftest.$ac_objext
32031 if { (ac_try="$ac_compile"
32032 case "(($ac_try" in
32033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034   *) ac_try_echo=$ac_try;;
32035 esac
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037   (eval "$ac_compile") 2>conftest.er1
32038   ac_status=$?
32039   grep -v '^ *+' conftest.er1 >conftest.err
32040   rm -f conftest.er1
32041   cat conftest.err >&5
32042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043   (exit $ac_status); } &&
32044          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32045   { (case "(($ac_try" in
32046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047   *) ac_try_echo=$ac_try;;
32048 esac
32049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050   (eval "$ac_try") 2>&5
32051   ac_status=$?
32052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053   (exit $ac_status); }; } &&
32054          { ac_try='test -s conftest.$ac_objext'
32055   { (case "(($ac_try" in
32056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057   *) ac_try_echo=$ac_try;;
32058 esac
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060   (eval "$ac_try") 2>&5
32061   ac_status=$?
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); }; }; then
32064   ac_cv_cxx_have_global_hash_map=yes
32065 else
32066   echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32068
32069         ac_cv_cxx_have_global_hash_map=no
32070 fi
32071
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32073   ac_ext=c
32074 ac_cpp='$CPP $CPPFLAGS'
32075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32078
32079 fi
32080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32081 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32082  if test "$ac_cv_cxx_have_global_hash_map" = yes
32083  then
32084
32085 cat >>confdefs.h <<\_ACEOF
32086 #define HAVE_GLOBAL_HASH_MAP 1
32087 _ACEOF
32088
32089  else
32090
32091 cat >>confdefs.h <<\_ACEOF
32092 #define HAVE_GLOBAL_HASH_MAP 0
32093 _ACEOF
32094
32095  fi
32096
32097 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32098 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32099 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102
32103   ac_ext=cpp
32104 ac_cpp='$CXXCPP $CPPFLAGS'
32105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32108
32109   cat >conftest.$ac_ext <<_ACEOF
32110 /* confdefs.h.  */
32111 _ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h.  */
32115 #include <ext/hash_set>
32116 #ifdef HAVE_NAMESPACES
32117 using namespace std;
32118 #endif
32119 int
32120 main ()
32121 {
32122 hash_set<int> t;
32123   ;
32124   return 0;
32125 }
32126 _ACEOF
32127 rm -f conftest.$ac_objext
32128 if { (ac_try="$ac_compile"
32129 case "(($ac_try" in
32130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131   *) ac_try_echo=$ac_try;;
32132 esac
32133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134   (eval "$ac_compile") 2>conftest.er1
32135   ac_status=$?
32136   grep -v '^ *+' conftest.er1 >conftest.err
32137   rm -f conftest.er1
32138   cat conftest.err >&5
32139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140   (exit $ac_status); } &&
32141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32142   { (case "(($ac_try" in
32143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144   *) ac_try_echo=$ac_try;;
32145 esac
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147   (eval "$ac_try") 2>&5
32148   ac_status=$?
32149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150   (exit $ac_status); }; } &&
32151          { ac_try='test -s conftest.$ac_objext'
32152   { (case "(($ac_try" in
32153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32154   *) ac_try_echo=$ac_try;;
32155 esac
32156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32157   (eval "$ac_try") 2>&5
32158   ac_status=$?
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); }; }; then
32161   ac_cv_cxx_have_std_ext_hash_set=yes
32162 else
32163   echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166         ac_cv_cxx_have_std_ext_hash_set=no
32167 fi
32168
32169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32170   ac_ext=c
32171 ac_cpp='$CPP $CPPFLAGS'
32172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32175
32176 fi
32177 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32178 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32179  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32180  then
32181
32182 cat >>confdefs.h <<\_ACEOF
32183 #define HAVE_STD_EXT_HASH_SET 1
32184 _ACEOF
32185
32186  else
32187
32188 cat >>confdefs.h <<\_ACEOF
32189 #define HAVE_STD_EXT_HASH_SET 0
32190 _ACEOF
32191
32192  fi
32193
32194  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32195 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32196 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32197   echo $ECHO_N "(cached) $ECHO_C" >&6
32198 else
32199
32200   ac_ext=cpp
32201 ac_cpp='$CXXCPP $CPPFLAGS'
32202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32205
32206   cat >conftest.$ac_ext <<_ACEOF
32207 /* confdefs.h.  */
32208 _ACEOF
32209 cat confdefs.h >>conftest.$ac_ext
32210 cat >>conftest.$ac_ext <<_ACEOF
32211 /* end confdefs.h.  */
32212 #include <ext/hash_set>
32213 #ifdef HAVE_NAMESPACES
32214 using namespace __gnu_cxx;
32215 #endif
32216 int
32217 main ()
32218 {
32219 hash_set<int> t;
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext
32225 if { (ac_try="$ac_compile"
32226 case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231   (eval "$ac_compile") 2>conftest.er1
32232   ac_status=$?
32233   grep -v '^ *+' conftest.er1 >conftest.err
32234   rm -f conftest.er1
32235   cat conftest.err >&5
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); } &&
32238          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32239   { (case "(($ac_try" in
32240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241   *) ac_try_echo=$ac_try;;
32242 esac
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244   (eval "$ac_try") 2>&5
32245   ac_status=$?
32246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247   (exit $ac_status); }; } &&
32248          { ac_try='test -s conftest.$ac_objext'
32249   { (case "(($ac_try" in
32250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251   *) ac_try_echo=$ac_try;;
32252 esac
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254   (eval "$ac_try") 2>&5
32255   ac_status=$?
32256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257   (exit $ac_status); }; }; then
32258   ac_cv_cxx_have_gnu_ext_hash_set=yes
32259 else
32260   echo "$as_me: failed program was:" >&5
32261 sed 's/^/| /' conftest.$ac_ext >&5
32262
32263         ac_cv_cxx_have_gnu_ext_hash_set=no
32264 fi
32265
32266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32267   ac_ext=c
32268 ac_cpp='$CPP $CPPFLAGS'
32269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32272
32273 fi
32274 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32275 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32276  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32277  then
32278
32279 cat >>confdefs.h <<\_ACEOF
32280 #define HAVE_GNU_EXT_HASH_SET 1
32281 _ACEOF
32282
32283  else
32284
32285 cat >>confdefs.h <<\_ACEOF
32286 #define HAVE_GNU_EXT_HASH_SET 0
32287 _ACEOF
32288
32289  fi
32290
32291  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32292 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32293 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32294   echo $ECHO_N "(cached) $ECHO_C" >&6
32295 else
32296
32297   ac_ext=cpp
32298 ac_cpp='$CXXCPP $CPPFLAGS'
32299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32302
32303   cat >conftest.$ac_ext <<_ACEOF
32304 /* confdefs.h.  */
32305 _ACEOF
32306 cat confdefs.h >>conftest.$ac_ext
32307 cat >>conftest.$ac_ext <<_ACEOF
32308 /* end confdefs.h.  */
32309 #include <hash_set>
32310 int
32311 main ()
32312 {
32313 hash_set<int> t; return 0;
32314   ;
32315   return 0;
32316 }
32317 _ACEOF
32318 rm -f conftest.$ac_objext
32319 if { (ac_try="$ac_compile"
32320 case "(($ac_try" in
32321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322   *) ac_try_echo=$ac_try;;
32323 esac
32324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325   (eval "$ac_compile") 2>conftest.er1
32326   ac_status=$?
32327   grep -v '^ *+' conftest.er1 >conftest.err
32328   rm -f conftest.er1
32329   cat conftest.err >&5
32330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331   (exit $ac_status); } &&
32332          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32333   { (case "(($ac_try" in
32334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335   *) ac_try_echo=$ac_try;;
32336 esac
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338   (eval "$ac_try") 2>&5
32339   ac_status=$?
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); }; } &&
32342          { ac_try='test -s conftest.$ac_objext'
32343   { (case "(($ac_try" in
32344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345   *) ac_try_echo=$ac_try;;
32346 esac
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348   (eval "$ac_try") 2>&5
32349   ac_status=$?
32350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351   (exit $ac_status); }; }; then
32352   ac_cv_cxx_have_global_hash_set=yes
32353 else
32354   echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32356
32357         ac_cv_cxx_have_global_hash_set=no
32358 fi
32359
32360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32361   ac_ext=c
32362 ac_cpp='$CPP $CPPFLAGS'
32363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32366
32367 fi
32368 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32369 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32370  if test "$ac_cv_cxx_have_global_hash_set" = yes
32371  then
32372
32373 cat >>confdefs.h <<\_ACEOF
32374 #define HAVE_GLOBAL_HASH_SET 1
32375 _ACEOF
32376
32377  else
32378
32379 cat >>confdefs.h <<\_ACEOF
32380 #define HAVE_GLOBAL_HASH_SET 0
32381 _ACEOF
32382
32383  fi
32384
32385 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32386 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32387 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32388   echo $ECHO_N "(cached) $ECHO_C" >&6
32389 else
32390
32391   ac_ext=cpp
32392 ac_cpp='$CXXCPP $CPPFLAGS'
32393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32396
32397   cat >conftest.$ac_ext <<_ACEOF
32398 /* confdefs.h.  */
32399 _ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h.  */
32403 #include <iterator>
32404 #ifdef HAVE_NAMESPACES
32405 using namespace std;
32406 #endif
32407 int
32408 main ()
32409 {
32410 iterator<int,int,int> t; return 0;
32411   ;
32412   return 0;
32413 }
32414 _ACEOF
32415 rm -f conftest.$ac_objext
32416 if { (ac_try="$ac_compile"
32417 case "(($ac_try" in
32418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419   *) ac_try_echo=$ac_try;;
32420 esac
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422   (eval "$ac_compile") 2>conftest.er1
32423   ac_status=$?
32424   grep -v '^ *+' conftest.er1 >conftest.err
32425   rm -f conftest.er1
32426   cat conftest.err >&5
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); } &&
32429          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32430   { (case "(($ac_try" in
32431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432   *) ac_try_echo=$ac_try;;
32433 esac
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435   (eval "$ac_try") 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); }; } &&
32439          { ac_try='test -s conftest.$ac_objext'
32440   { (case "(($ac_try" in
32441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442   *) ac_try_echo=$ac_try;;
32443 esac
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445   (eval "$ac_try") 2>&5
32446   ac_status=$?
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); }; }; then
32449   ac_cv_cxx_have_std_iterator=yes
32450 else
32451   echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32453
32454         ac_cv_cxx_have_std_iterator=no
32455 fi
32456
32457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32458   ac_ext=c
32459 ac_cpp='$CPP $CPPFLAGS'
32460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32463
32464
32465 fi
32466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32467 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32468 if test "$ac_cv_cxx_have_std_iterator" = yes
32469 then
32470
32471 cat >>confdefs.h <<\_ACEOF
32472 #define HAVE_STD_ITERATOR 1
32473 _ACEOF
32474
32475 else
32476
32477 cat >>confdefs.h <<\_ACEOF
32478 #define HAVE_STD_ITERATOR 0
32479 _ACEOF
32480
32481 fi
32482
32483 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32484 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32485 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32486   echo $ECHO_N "(cached) $ECHO_C" >&6
32487 else
32488
32489   ac_ext=cpp
32490 ac_cpp='$CXXCPP $CPPFLAGS'
32491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32494
32495   cat >conftest.$ac_ext <<_ACEOF
32496 /* confdefs.h.  */
32497 _ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h.  */
32501 #include <iterator>
32502 #ifdef HAVE_NAMESPACES
32503 using namespace std;
32504 #endif
32505 int
32506 main ()
32507 {
32508 bidirectional_iterator<int,int> t; return 0;
32509   ;
32510   return 0;
32511 }
32512 _ACEOF
32513 rm -f conftest.$ac_objext
32514 if { (ac_try="$ac_compile"
32515 case "(($ac_try" in
32516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517   *) ac_try_echo=$ac_try;;
32518 esac
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520   (eval "$ac_compile") 2>conftest.er1
32521   ac_status=$?
32522   grep -v '^ *+' conftest.er1 >conftest.err
32523   rm -f conftest.er1
32524   cat conftest.err >&5
32525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526   (exit $ac_status); } &&
32527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528   { (case "(($ac_try" in
32529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530   *) ac_try_echo=$ac_try;;
32531 esac
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533   (eval "$ac_try") 2>&5
32534   ac_status=$?
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); }; } &&
32537          { ac_try='test -s conftest.$ac_objext'
32538   { (case "(($ac_try" in
32539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540   *) ac_try_echo=$ac_try;;
32541 esac
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543   (eval "$ac_try") 2>&5
32544   ac_status=$?
32545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546   (exit $ac_status); }; }; then
32547   ac_cv_cxx_have_bi_iterator=yes
32548 else
32549   echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32551
32552         ac_cv_cxx_have_bi_iterator=no
32553 fi
32554
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32556   ac_ext=c
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562
32563 fi
32564 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32565 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32566 if test "$ac_cv_cxx_have_bi_iterator" = yes
32567 then
32568
32569 cat >>confdefs.h <<\_ACEOF
32570 #define HAVE_BI_ITERATOR 1
32571 _ACEOF
32572
32573 else
32574
32575 cat >>confdefs.h <<\_ACEOF
32576 #define HAVE_BI_ITERATOR 0
32577 _ACEOF
32578
32579 fi
32580
32581 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32582 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32583 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32584   echo $ECHO_N "(cached) $ECHO_C" >&6
32585 else
32586
32587   ac_ext=cpp
32588 ac_cpp='$CXXCPP $CPPFLAGS'
32589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592
32593   cat >conftest.$ac_ext <<_ACEOF
32594 /* confdefs.h.  */
32595 _ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h.  */
32599 #include <iterator>
32600 #ifdef HAVE_NAMESPACES
32601 using namespace std;
32602 #endif
32603 int
32604 main ()
32605 {
32606 forward_iterator<int,int> t; return 0;
32607   ;
32608   return 0;
32609 }
32610 _ACEOF
32611 rm -f conftest.$ac_objext
32612 if { (ac_try="$ac_compile"
32613 case "(($ac_try" in
32614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615   *) ac_try_echo=$ac_try;;
32616 esac
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618   (eval "$ac_compile") 2>conftest.er1
32619   ac_status=$?
32620   grep -v '^ *+' conftest.er1 >conftest.err
32621   rm -f conftest.er1
32622   cat conftest.err >&5
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); } &&
32625          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32626   { (case "(($ac_try" in
32627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628   *) ac_try_echo=$ac_try;;
32629 esac
32630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631   (eval "$ac_try") 2>&5
32632   ac_status=$?
32633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634   (exit $ac_status); }; } &&
32635          { ac_try='test -s conftest.$ac_objext'
32636   { (case "(($ac_try" in
32637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638   *) ac_try_echo=$ac_try;;
32639 esac
32640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641   (eval "$ac_try") 2>&5
32642   ac_status=$?
32643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644   (exit $ac_status); }; }; then
32645   ac_cv_cxx_have_fwd_iterator=yes
32646 else
32647   echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32649
32650         ac_cv_cxx_have_fwd_iterator=no
32651 fi
32652
32653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32654   ac_ext=c
32655 ac_cpp='$CPP $CPPFLAGS'
32656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32659
32660
32661 fi
32662 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32663 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32664 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32665 then
32666
32667 cat >>confdefs.h <<\_ACEOF
32668 #define HAVE_FWD_ITERATOR 1
32669 _ACEOF
32670
32671 else
32672
32673 cat >>confdefs.h <<\_ACEOF
32674 #define HAVE_FWD_ITERATOR 0
32675 _ACEOF
32676
32677 fi
32678
32679
32680 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32681 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32682 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32683   echo $ECHO_N "(cached) $ECHO_C" >&6
32684 else
32685   ac_ext=cpp
32686 ac_cpp='$CXXCPP $CPPFLAGS'
32687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32690
32691    cat >conftest.$ac_ext <<_ACEOF
32692 /* confdefs.h.  */
32693 _ACEOF
32694 cat confdefs.h >>conftest.$ac_ext
32695 cat >>conftest.$ac_ext <<_ACEOF
32696 /* end confdefs.h.  */
32697 #include <math.h>
32698 int
32699 main ()
32700 {
32701 float f; isnan(f);
32702   ;
32703   return 0;
32704 }
32705 _ACEOF
32706 rm -f conftest.$ac_objext
32707 if { (ac_try="$ac_compile"
32708 case "(($ac_try" in
32709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710   *) ac_try_echo=$ac_try;;
32711 esac
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713   (eval "$ac_compile") 2>conftest.er1
32714   ac_status=$?
32715   grep -v '^ *+' conftest.er1 >conftest.err
32716   rm -f conftest.er1
32717   cat conftest.err >&5
32718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719   (exit $ac_status); } &&
32720          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32721   { (case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_try") 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); }; } &&
32730          { ac_try='test -s conftest.$ac_objext'
32731   { (case "(($ac_try" in
32732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733   *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736   (eval "$ac_try") 2>&5
32737   ac_status=$?
32738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739   (exit $ac_status); }; }; then
32740   ac_cv_func_isnan_in_math_h=yes
32741 else
32742   echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32744
32745         ac_cv_func_isnan_in_math_h=no
32746 fi
32747
32748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32749   ac_ext=c
32750 ac_cpp='$CPP $CPPFLAGS'
32751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32754
32755 fi
32756 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32757 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32758
32759
32760 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32761
32762 cat >>confdefs.h <<\_ACEOF
32763 #define HAVE_ISNAN_IN_MATH_H 1
32764 _ACEOF
32765
32766 fi
32767
32768 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32769 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32770 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32771   echo $ECHO_N "(cached) $ECHO_C" >&6
32772 else
32773   ac_ext=cpp
32774 ac_cpp='$CXXCPP $CPPFLAGS'
32775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32778
32779    cat >conftest.$ac_ext <<_ACEOF
32780 /* confdefs.h.  */
32781 _ACEOF
32782 cat confdefs.h >>conftest.$ac_ext
32783 cat >>conftest.$ac_ext <<_ACEOF
32784 /* end confdefs.h.  */
32785 #include <cmath>
32786 int
32787 main ()
32788 {
32789 float f; isnan(f);
32790   ;
32791   return 0;
32792 }
32793 _ACEOF
32794 rm -f conftest.$ac_objext
32795 if { (ac_try="$ac_compile"
32796 case "(($ac_try" in
32797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798   *) ac_try_echo=$ac_try;;
32799 esac
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801   (eval "$ac_compile") 2>conftest.er1
32802   ac_status=$?
32803   grep -v '^ *+' conftest.er1 >conftest.err
32804   rm -f conftest.er1
32805   cat conftest.err >&5
32806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807   (exit $ac_status); } &&
32808          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32809   { (case "(($ac_try" in
32810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811   *) ac_try_echo=$ac_try;;
32812 esac
32813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814   (eval "$ac_try") 2>&5
32815   ac_status=$?
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); }; } &&
32818          { ac_try='test -s conftest.$ac_objext'
32819   { (case "(($ac_try" in
32820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821   *) ac_try_echo=$ac_try;;
32822 esac
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824   (eval "$ac_try") 2>&5
32825   ac_status=$?
32826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827   (exit $ac_status); }; }; then
32828   ac_cv_func_isnan_in_cmath=yes
32829 else
32830   echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32832
32833         ac_cv_func_isnan_in_cmath=no
32834 fi
32835
32836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32837   ac_ext=c
32838 ac_cpp='$CPP $CPPFLAGS'
32839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32842
32843 fi
32844 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32845 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32846
32847 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32848
32849 cat >>confdefs.h <<\_ACEOF
32850 #define HAVE_ISNAN_IN_CMATH 1
32851 _ACEOF
32852
32853 fi
32854
32855 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32856 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32857 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32858   echo $ECHO_N "(cached) $ECHO_C" >&6
32859 else
32860   ac_ext=cpp
32861 ac_cpp='$CXXCPP $CPPFLAGS'
32862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32865
32866    cat >conftest.$ac_ext <<_ACEOF
32867 /* confdefs.h.  */
32868 _ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h.  */
32872 #include <cmath>
32873 int
32874 main ()
32875 {
32876 float f; std::isnan(f);
32877   ;
32878   return 0;
32879 }
32880 _ACEOF
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885   *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888   (eval "$ac_compile") 2>conftest.er1
32889   ac_status=$?
32890   grep -v '^ *+' conftest.er1 >conftest.err
32891   rm -f conftest.er1
32892   cat conftest.err >&5
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); } &&
32895          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32896   { (case "(($ac_try" in
32897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898   *) ac_try_echo=$ac_try;;
32899 esac
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901   (eval "$ac_try") 2>&5
32902   ac_status=$?
32903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904   (exit $ac_status); }; } &&
32905          { ac_try='test -s conftest.$ac_objext'
32906   { (case "(($ac_try" in
32907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908   *) ac_try_echo=$ac_try;;
32909 esac
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911   (eval "$ac_try") 2>&5
32912   ac_status=$?
32913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914   (exit $ac_status); }; }; then
32915   ac_cv_func_std_isnan_in_cmath=yes
32916 else
32917   echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32919
32920         ac_cv_func_std_isnan_in_cmath=no
32921 fi
32922
32923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32924   ac_ext=c
32925 ac_cpp='$CPP $CPPFLAGS'
32926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32929
32930 fi
32931 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32932 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32933
32934 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32935
32936 cat >>confdefs.h <<\_ACEOF
32937 #define HAVE_STD_ISNAN_IN_CMATH 1
32938 _ACEOF
32939
32940 fi
32941
32942
32943 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32944 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32945 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32946   echo $ECHO_N "(cached) $ECHO_C" >&6
32947 else
32948   ac_ext=cpp
32949 ac_cpp='$CXXCPP $CPPFLAGS'
32950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32953
32954    cat >conftest.$ac_ext <<_ACEOF
32955 /* confdefs.h.  */
32956 _ACEOF
32957 cat confdefs.h >>conftest.$ac_ext
32958 cat >>conftest.$ac_ext <<_ACEOF
32959 /* end confdefs.h.  */
32960 #include <math.h>
32961 int
32962 main ()
32963 {
32964 float f; isinf(f);
32965   ;
32966   return 0;
32967 }
32968 _ACEOF
32969 rm -f conftest.$ac_objext
32970 if { (ac_try="$ac_compile"
32971 case "(($ac_try" in
32972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973   *) ac_try_echo=$ac_try;;
32974 esac
32975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32976   (eval "$ac_compile") 2>conftest.er1
32977   ac_status=$?
32978   grep -v '^ *+' conftest.er1 >conftest.err
32979   rm -f conftest.er1
32980   cat conftest.err >&5
32981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982   (exit $ac_status); } &&
32983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32984   { (case "(($ac_try" in
32985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986   *) ac_try_echo=$ac_try;;
32987 esac
32988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989   (eval "$ac_try") 2>&5
32990   ac_status=$?
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); }; } &&
32993          { ac_try='test -s conftest.$ac_objext'
32994   { (case "(($ac_try" in
32995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996   *) ac_try_echo=$ac_try;;
32997 esac
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999   (eval "$ac_try") 2>&5
33000   ac_status=$?
33001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002   (exit $ac_status); }; }; then
33003   ac_cv_func_isinf_in_math_h=yes
33004 else
33005   echo "$as_me: failed program was:" >&5
33006 sed 's/^/| /' conftest.$ac_ext >&5
33007
33008         ac_cv_func_isinf_in_math_h=no
33009 fi
33010
33011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33012   ac_ext=c
33013 ac_cpp='$CPP $CPPFLAGS'
33014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33017
33018 fi
33019 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33020 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33021
33022 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33023
33024 cat >>confdefs.h <<\_ACEOF
33025 #define HAVE_ISINF_IN_MATH_H 1
33026 _ACEOF
33027
33028 fi
33029
33030 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33031 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33032 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33033   echo $ECHO_N "(cached) $ECHO_C" >&6
33034 else
33035   ac_ext=cpp
33036 ac_cpp='$CXXCPP $CPPFLAGS'
33037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33040
33041    cat >conftest.$ac_ext <<_ACEOF
33042 /* confdefs.h.  */
33043 _ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h.  */
33047 #include <cmath>
33048 int
33049 main ()
33050 {
33051 float f; isinf(f);
33052   ;
33053   return 0;
33054 }
33055 _ACEOF
33056 rm -f conftest.$ac_objext
33057 if { (ac_try="$ac_compile"
33058 case "(($ac_try" in
33059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060   *) ac_try_echo=$ac_try;;
33061 esac
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063   (eval "$ac_compile") 2>conftest.er1
33064   ac_status=$?
33065   grep -v '^ *+' conftest.er1 >conftest.err
33066   rm -f conftest.er1
33067   cat conftest.err >&5
33068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069   (exit $ac_status); } &&
33070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33071   { (case "(($ac_try" in
33072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073   *) ac_try_echo=$ac_try;;
33074 esac
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076   (eval "$ac_try") 2>&5
33077   ac_status=$?
33078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079   (exit $ac_status); }; } &&
33080          { ac_try='test -s conftest.$ac_objext'
33081   { (case "(($ac_try" in
33082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083   *) ac_try_echo=$ac_try;;
33084 esac
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086   (eval "$ac_try") 2>&5
33087   ac_status=$?
33088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089   (exit $ac_status); }; }; then
33090   ac_cv_func_isinf_in_cmath=yes
33091 else
33092   echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33094
33095         ac_cv_func_isinf_in_cmath=no
33096 fi
33097
33098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33099   ac_ext=c
33100 ac_cpp='$CPP $CPPFLAGS'
33101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33104
33105 fi
33106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33107 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33108
33109 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33110
33111 cat >>confdefs.h <<\_ACEOF
33112 #define HAVE_ISINF_IN_CMATH 1
33113 _ACEOF
33114
33115 fi
33116
33117 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33118 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33119 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33120   echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122   ac_ext=cpp
33123 ac_cpp='$CXXCPP $CPPFLAGS'
33124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33127
33128    cat >conftest.$ac_ext <<_ACEOF
33129 /* confdefs.h.  */
33130 _ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h.  */
33134 #include <cmath>
33135 int
33136 main ()
33137 {
33138 float f; std::isinf(f)}
33139   ;
33140   return 0;
33141 }
33142 _ACEOF
33143 rm -f conftest.$ac_objext
33144 if { (ac_try="$ac_compile"
33145 case "(($ac_try" in
33146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147   *) ac_try_echo=$ac_try;;
33148 esac
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150   (eval "$ac_compile") 2>conftest.er1
33151   ac_status=$?
33152   grep -v '^ *+' conftest.er1 >conftest.err
33153   rm -f conftest.er1
33154   cat conftest.err >&5
33155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156   (exit $ac_status); } &&
33157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33158   { (case "(($ac_try" in
33159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160   *) ac_try_echo=$ac_try;;
33161 esac
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163   (eval "$ac_try") 2>&5
33164   ac_status=$?
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); }; } &&
33167          { ac_try='test -s conftest.$ac_objext'
33168   { (case "(($ac_try" in
33169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170   *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173   (eval "$ac_try") 2>&5
33174   ac_status=$?
33175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176   (exit $ac_status); }; }; then
33177   ac_cv_func_std_isinf_in_cmath=yes
33178 else
33179   echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33181
33182         ac_cv_func_std_isinf_in_cmath=no
33183 fi
33184
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33186   ac_ext=c
33187 ac_cpp='$CPP $CPPFLAGS'
33188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33191
33192 fi
33193 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33194 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33195
33196 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33197
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_STD_ISINF_IN_CMATH 1
33200 _ACEOF
33201
33202 fi
33203
33204 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33205 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33206 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33207   echo $ECHO_N "(cached) $ECHO_C" >&6
33208 else
33209   ac_ext=cpp
33210 ac_cpp='$CXXCPP $CPPFLAGS'
33211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33214
33215    cat >conftest.$ac_ext <<_ACEOF
33216 /* confdefs.h.  */
33217 _ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h.  */
33221 #include <ieeefp.h>
33222 int
33223 main ()
33224 {
33225 float f; finite(f);
33226   ;
33227   return 0;
33228 }
33229 _ACEOF
33230 rm -f conftest.$ac_objext
33231 if { (ac_try="$ac_compile"
33232 case "(($ac_try" in
33233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234   *) ac_try_echo=$ac_try;;
33235 esac
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237   (eval "$ac_compile") 2>conftest.er1
33238   ac_status=$?
33239   grep -v '^ *+' conftest.er1 >conftest.err
33240   rm -f conftest.er1
33241   cat conftest.err >&5
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); } &&
33244          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33245   { (case "(($ac_try" in
33246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247   *) ac_try_echo=$ac_try;;
33248 esac
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250   (eval "$ac_try") 2>&5
33251   ac_status=$?
33252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253   (exit $ac_status); }; } &&
33254          { ac_try='test -s conftest.$ac_objext'
33255   { (case "(($ac_try" in
33256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33257   *) ac_try_echo=$ac_try;;
33258 esac
33259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260   (eval "$ac_try") 2>&5
33261   ac_status=$?
33262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263   (exit $ac_status); }; }; then
33264   ac_cv_func_finite_in_ieeefp_h=yes
33265 else
33266   echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.$ac_ext >&5
33268
33269         ac_cv_func_finite_in_ieeefp_h=no
33270 fi
33271
33272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33273   ac_ext=c
33274 ac_cpp='$CPP $CPPFLAGS'
33275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33278
33279 fi
33280 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33281 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33282
33283 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33284
33285 cat >>confdefs.h <<\_ACEOF
33286 #define HAVE_FINITE_IN_IEEEFP_H 1
33287 _ACEOF
33288
33289 fi
33290
33291
33292
33293 if test "$llvm_cv_platform_type" = "Unix" ; then
33294
33295
33296 for ac_header in stdlib.h unistd.h
33297 do
33298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33300   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33303   echo $ECHO_N "(cached) $ECHO_C" >&6
33304 fi
33305 ac_res=`eval echo '${'$as_ac_Header'}'`
33306                { echo "$as_me:$LINENO: result: $ac_res" >&5
33307 echo "${ECHO_T}$ac_res" >&6; }
33308 else
33309   # Is the header compilable?
33310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33312 cat >conftest.$ac_ext <<_ACEOF
33313 /* confdefs.h.  */
33314 _ACEOF
33315 cat confdefs.h >>conftest.$ac_ext
33316 cat >>conftest.$ac_ext <<_ACEOF
33317 /* end confdefs.h.  */
33318 $ac_includes_default
33319 #include <$ac_header>
33320 _ACEOF
33321 rm -f conftest.$ac_objext
33322 if { (ac_try="$ac_compile"
33323 case "(($ac_try" in
33324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33325   *) ac_try_echo=$ac_try;;
33326 esac
33327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33328   (eval "$ac_compile") 2>conftest.er1
33329   ac_status=$?
33330   grep -v '^ *+' conftest.er1 >conftest.err
33331   rm -f conftest.er1
33332   cat conftest.err >&5
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); } &&
33335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33336   { (case "(($ac_try" in
33337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338   *) ac_try_echo=$ac_try;;
33339 esac
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341   (eval "$ac_try") 2>&5
33342   ac_status=$?
33343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344   (exit $ac_status); }; } &&
33345          { ac_try='test -s conftest.$ac_objext'
33346   { (case "(($ac_try" in
33347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348   *) ac_try_echo=$ac_try;;
33349 esac
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351   (eval "$ac_try") 2>&5
33352   ac_status=$?
33353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354   (exit $ac_status); }; }; then
33355   ac_header_compiler=yes
33356 else
33357   echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33359
33360         ac_header_compiler=no
33361 fi
33362
33363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33365 echo "${ECHO_T}$ac_header_compiler" >&6; }
33366
33367 # Is the header present?
33368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33370 cat >conftest.$ac_ext <<_ACEOF
33371 /* confdefs.h.  */
33372 _ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h.  */
33376 #include <$ac_header>
33377 _ACEOF
33378 if { (ac_try="$ac_cpp conftest.$ac_ext"
33379 case "(($ac_try" in
33380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381   *) ac_try_echo=$ac_try;;
33382 esac
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33385   ac_status=$?
33386   grep -v '^ *+' conftest.er1 >conftest.err
33387   rm -f conftest.er1
33388   cat conftest.err >&5
33389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390   (exit $ac_status); } >/dev/null; then
33391   if test -s conftest.err; then
33392     ac_cpp_err=$ac_c_preproc_warn_flag
33393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33394   else
33395     ac_cpp_err=
33396   fi
33397 else
33398   ac_cpp_err=yes
33399 fi
33400 if test -z "$ac_cpp_err"; then
33401   ac_header_preproc=yes
33402 else
33403   echo "$as_me: failed program was:" >&5
33404 sed 's/^/| /' conftest.$ac_ext >&5
33405
33406   ac_header_preproc=no
33407 fi
33408
33409 rm -f conftest.err conftest.$ac_ext
33410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33411 echo "${ECHO_T}$ac_header_preproc" >&6; }
33412
33413 # So?  What about this header?
33414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33415   yes:no: )
33416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33420     ac_header_preproc=yes
33421     ;;
33422   no:yes:* )
33423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33435     ( cat <<\_ASBOX
33436 ## ----------------------------------- ##
33437 ## Report this to llvmbugs@cs.uiuc.edu ##
33438 ## ----------------------------------- ##
33439 _ASBOX
33440      ) | sed "s/^/$as_me: WARNING:     /" >&2
33441     ;;
33442 esac
33443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33446   echo $ECHO_N "(cached) $ECHO_C" >&6
33447 else
33448   eval "$as_ac_Header=\$ac_header_preproc"
33449 fi
33450 ac_res=`eval echo '${'$as_ac_Header'}'`
33451                { echo "$as_me:$LINENO: result: $ac_res" >&5
33452 echo "${ECHO_T}$ac_res" >&6; }
33453
33454 fi
33455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33456   cat >>confdefs.h <<_ACEOF
33457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33458 _ACEOF
33459
33460 fi
33461
33462 done
33463
33464
33465 for ac_func in getpagesize
33466 do
33467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33471   echo $ECHO_N "(cached) $ECHO_C" >&6
33472 else
33473   cat >conftest.$ac_ext <<_ACEOF
33474 /* confdefs.h.  */
33475 _ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h.  */
33479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33481 #define $ac_func innocuous_$ac_func
33482
33483 /* System header to define __stub macros and hopefully few prototypes,
33484     which can conflict with char $ac_func (); below.
33485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486     <limits.h> exists even on freestanding compilers.  */
33487
33488 #ifdef __STDC__
33489 # include <limits.h>
33490 #else
33491 # include <assert.h>
33492 #endif
33493
33494 #undef $ac_func
33495
33496 /* Override any GCC internal prototype to avoid an error.
33497    Use char because int might match the return type of a GCC
33498    builtin and then its argument prototype would still apply.  */
33499 #ifdef __cplusplus
33500 extern "C"
33501 #endif
33502 char $ac_func ();
33503 /* The GNU C library defines this for functions which it implements
33504     to always fail with ENOSYS.  Some functions are actually named
33505     something starting with __ and the normal name is an alias.  */
33506 #if defined __stub_$ac_func || defined __stub___$ac_func
33507 choke me
33508 #endif
33509
33510 int
33511 main ()
33512 {
33513 return $ac_func ();
33514   ;
33515   return 0;
33516 }
33517 _ACEOF
33518 rm -f conftest.$ac_objext conftest$ac_exeext
33519 if { (ac_try="$ac_link"
33520 case "(($ac_try" in
33521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522   *) ac_try_echo=$ac_try;;
33523 esac
33524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525   (eval "$ac_link") 2>conftest.er1
33526   ac_status=$?
33527   grep -v '^ *+' conftest.er1 >conftest.err
33528   rm -f conftest.er1
33529   cat conftest.err >&5
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); } &&
33532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33533   { (case "(($ac_try" in
33534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535   *) ac_try_echo=$ac_try;;
33536 esac
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538   (eval "$ac_try") 2>&5
33539   ac_status=$?
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); }; } &&
33542          { ac_try='test -s conftest$ac_exeext'
33543   { (case "(($ac_try" in
33544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545   *) ac_try_echo=$ac_try;;
33546 esac
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548   (eval "$ac_try") 2>&5
33549   ac_status=$?
33550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551   (exit $ac_status); }; }; then
33552   eval "$as_ac_var=yes"
33553 else
33554   echo "$as_me: failed program was:" >&5
33555 sed 's/^/| /' conftest.$ac_ext >&5
33556
33557         eval "$as_ac_var=no"
33558 fi
33559
33560 rm -f core conftest.err conftest.$ac_objext \
33561       conftest$ac_exeext conftest.$ac_ext
33562 fi
33563 ac_res=`eval echo '${'$as_ac_var'}'`
33564                { echo "$as_me:$LINENO: result: $ac_res" >&5
33565 echo "${ECHO_T}$ac_res" >&6; }
33566 if test `eval echo '${'$as_ac_var'}'` = yes; then
33567   cat >>confdefs.h <<_ACEOF
33568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33569 _ACEOF
33570
33571 fi
33572 done
33573
33574 { echo "$as_me:$LINENO: checking for working mmap" >&5
33575 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33576 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33577   echo $ECHO_N "(cached) $ECHO_C" >&6
33578 else
33579   if test "$cross_compiling" = yes; then
33580   ac_cv_func_mmap_fixed_mapped=no
33581 else
33582   cat >conftest.$ac_ext <<_ACEOF
33583 /* confdefs.h.  */
33584 _ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h.  */
33588 $ac_includes_default
33589 /* malloc might have been renamed as rpl_malloc. */
33590 #undef malloc
33591
33592 /* Thanks to Mike Haertel and Jim Avera for this test.
33593    Here is a matrix of mmap possibilities:
33594         mmap private not fixed
33595         mmap private fixed at somewhere currently unmapped
33596         mmap private fixed at somewhere already mapped
33597         mmap shared not fixed
33598         mmap shared fixed at somewhere currently unmapped
33599         mmap shared fixed at somewhere already mapped
33600    For private mappings, we should verify that changes cannot be read()
33601    back from the file, nor mmap's back from the file at a different
33602    address.  (There have been systems where private was not correctly
33603    implemented like the infamous i386 svr4.0, and systems where the
33604    VM page cache was not coherent with the file system buffer cache
33605    like early versions of FreeBSD and possibly contemporary NetBSD.)
33606    For shared mappings, we should conversely verify that changes get
33607    propagated back to all the places they're supposed to be.
33608
33609    Grep wants private fixed already mapped.
33610    The main things grep needs to know about mmap are:
33611    * does it exist and is it safe to write into the mmap'd area
33612    * how to use it (BSD variants)  */
33613
33614 #include <fcntl.h>
33615 #include <sys/mman.h>
33616
33617 #if !STDC_HEADERS && !HAVE_STDLIB_H
33618 char *malloc ();
33619 #endif
33620
33621 /* This mess was copied from the GNU getpagesize.h.  */
33622 #if !HAVE_GETPAGESIZE
33623 /* Assume that all systems that can run configure have sys/param.h.  */
33624 # if !HAVE_SYS_PARAM_H
33625 #  define HAVE_SYS_PARAM_H 1
33626 # endif
33627
33628 # ifdef _SC_PAGESIZE
33629 #  define getpagesize() sysconf(_SC_PAGESIZE)
33630 # else /* no _SC_PAGESIZE */
33631 #  if HAVE_SYS_PARAM_H
33632 #   include <sys/param.h>
33633 #   ifdef EXEC_PAGESIZE
33634 #    define getpagesize() EXEC_PAGESIZE
33635 #   else /* no EXEC_PAGESIZE */
33636 #    ifdef NBPG
33637 #     define getpagesize() NBPG * CLSIZE
33638 #     ifndef CLSIZE
33639 #      define CLSIZE 1
33640 #     endif /* no CLSIZE */
33641 #    else /* no NBPG */
33642 #     ifdef NBPC
33643 #      define getpagesize() NBPC
33644 #     else /* no NBPC */
33645 #      ifdef PAGESIZE
33646 #       define getpagesize() PAGESIZE
33647 #      endif /* PAGESIZE */
33648 #     endif /* no NBPC */
33649 #    endif /* no NBPG */
33650 #   endif /* no EXEC_PAGESIZE */
33651 #  else /* no HAVE_SYS_PARAM_H */
33652 #   define getpagesize() 8192   /* punt totally */
33653 #  endif /* no HAVE_SYS_PARAM_H */
33654 # endif /* no _SC_PAGESIZE */
33655
33656 #endif /* no HAVE_GETPAGESIZE */
33657
33658 int
33659 main ()
33660 {
33661   char *data, *data2, *data3;
33662   int i, pagesize;
33663   int fd;
33664
33665   pagesize = getpagesize ();
33666
33667   /* First, make a file with some known garbage in it. */
33668   data = (char *) malloc (pagesize);
33669   if (!data)
33670     return 1;
33671   for (i = 0; i < pagesize; ++i)
33672     *(data + i) = rand ();
33673   umask (0);
33674   fd = creat ("conftest.mmap", 0600);
33675   if (fd < 0)
33676     return 1;
33677   if (write (fd, data, pagesize) != pagesize)
33678     return 1;
33679   close (fd);
33680
33681   /* Next, try to mmap the file at a fixed address which already has
33682      something else allocated at it.  If we can, also make sure that
33683      we see the same garbage.  */
33684   fd = open ("conftest.mmap", O_RDWR);
33685   if (fd < 0)
33686     return 1;
33687   data2 = (char *) malloc (2 * pagesize);
33688   if (!data2)
33689     return 1;
33690   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33691   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33692                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33693     return 1;
33694   for (i = 0; i < pagesize; ++i)
33695     if (*(data + i) != *(data2 + i))
33696       return 1;
33697
33698   /* Finally, make sure that changes to the mapped area do not
33699      percolate back to the file as seen by read().  (This is a bug on
33700      some variants of i386 svr4.0.)  */
33701   for (i = 0; i < pagesize; ++i)
33702     *(data2 + i) = *(data2 + i) + 1;
33703   data3 = (char *) malloc (pagesize);
33704   if (!data3)
33705     return 1;
33706   if (read (fd, data3, pagesize) != pagesize)
33707     return 1;
33708   for (i = 0; i < pagesize; ++i)
33709     if (*(data + i) != *(data3 + i))
33710       return 1;
33711   close (fd);
33712   return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest$ac_exeext
33716 if { (ac_try="$ac_link"
33717 case "(($ac_try" in
33718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719   *) ac_try_echo=$ac_try;;
33720 esac
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722   (eval "$ac_link") 2>&5
33723   ac_status=$?
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33726   { (case "(($ac_try" in
33727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728   *) ac_try_echo=$ac_try;;
33729 esac
33730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731   (eval "$ac_try") 2>&5
33732   ac_status=$?
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); }; }; then
33735   ac_cv_func_mmap_fixed_mapped=yes
33736 else
33737   echo "$as_me: program exited with status $ac_status" >&5
33738 echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33740
33741 ( exit $ac_status )
33742 ac_cv_func_mmap_fixed_mapped=no
33743 fi
33744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33745 fi
33746
33747
33748 fi
33749 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33750 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33751 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33752
33753 cat >>confdefs.h <<\_ACEOF
33754 #define HAVE_MMAP 1
33755 _ACEOF
33756
33757 fi
33758 rm -f conftest.mmap
33759
33760   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33761 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33762 if test "${ac_cv_func_mmap_file+set}" = set; then
33763   echo $ECHO_N "(cached) $ECHO_C" >&6
33764 else
33765    ac_ext=c
33766 ac_cpp='$CPP $CPPFLAGS'
33767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33770
33771   if test "$cross_compiling" = yes; then
33772   ac_cv_func_mmap_file=no
33773 else
33774   cat >conftest.$ac_ext <<_ACEOF
33775
33776     /* confdefs.h.  */
33777 _ACEOF
33778 cat confdefs.h >>conftest.$ac_ext
33779 cat >>conftest.$ac_ext <<_ACEOF
33780 /* end confdefs.h.  */
33781
33782 #include <sys/types.h>
33783 #include <sys/mman.h>
33784 #include <fcntl.h>
33785
33786 int
33787 main ()
33788 {
33789
33790   int fd;
33791   fd = creat ("foo",0777);
33792   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33793   unlink ("foo");
33794   return (fd != (int) MAP_FAILED);
33795   ;
33796   return 0;
33797 }
33798 _ACEOF
33799 rm -f conftest$ac_exeext
33800 if { (ac_try="$ac_link"
33801 case "(($ac_try" in
33802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803   *) ac_try_echo=$ac_try;;
33804 esac
33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806   (eval "$ac_link") 2>&5
33807   ac_status=$?
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33810   { (case "(($ac_try" in
33811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812   *) ac_try_echo=$ac_try;;
33813 esac
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815   (eval "$ac_try") 2>&5
33816   ac_status=$?
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); }; }; then
33819   ac_cv_func_mmap_file=yes
33820 else
33821   echo "$as_me: program exited with status $ac_status" >&5
33822 echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33824
33825 ( exit $ac_status )
33826 ac_cv_func_mmap_file=no
33827 fi
33828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33829 fi
33830
33831
33832   ac_ext=c
33833 ac_cpp='$CPP $CPPFLAGS'
33834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33837
33838
33839 fi
33840 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33841 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33842 if test "$ac_cv_func_mmap_file" = yes; then
33843
33844 cat >>confdefs.h <<\_ACEOF
33845 #define HAVE_MMAP_FILE
33846 _ACEOF
33847
33848    MMAP_FILE=yes
33849
33850 fi
33851
33852   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33853 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33854 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33855   echo $ECHO_N "(cached) $ECHO_C" >&6
33856 else
33857   if test "$llvm_cv_os_type" = "Interix" ; then
33858    ac_cv_need_dev_zero_for_mmap=yes
33859  else
33860    ac_cv_need_dev_zero_for_mmap=no
33861  fi
33862
33863 fi
33864 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33865 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33866 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33867
33868 cat >>confdefs.h <<\_ACEOF
33869 #define NEED_DEV_ZERO_FOR_MMAP 1
33870 _ACEOF
33871
33872 fi
33873
33874   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33875   then
33876     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33877 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33878   fi
33879   if test "$ac_cv_func_mmap_file" = "no"
33880   then
33881     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33882 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33883   fi
33884 fi
33885
33886
33887
33888 for ac_func in __dso_handle
33889 do
33890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33894   echo $ECHO_N "(cached) $ECHO_C" >&6
33895 else
33896   cat >conftest.$ac_ext <<_ACEOF
33897 /* confdefs.h.  */
33898 _ACEOF
33899 cat confdefs.h >>conftest.$ac_ext
33900 cat >>conftest.$ac_ext <<_ACEOF
33901 /* end confdefs.h.  */
33902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33904 #define $ac_func innocuous_$ac_func
33905
33906 /* System header to define __stub macros and hopefully few prototypes,
33907     which can conflict with char $ac_func (); below.
33908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33909     <limits.h> exists even on freestanding compilers.  */
33910
33911 #ifdef __STDC__
33912 # include <limits.h>
33913 #else
33914 # include <assert.h>
33915 #endif
33916
33917 #undef $ac_func
33918
33919 /* Override any GCC internal prototype to avoid an error.
33920    Use char because int might match the return type of a GCC
33921    builtin and then its argument prototype would still apply.  */
33922 #ifdef __cplusplus
33923 extern "C"
33924 #endif
33925 char $ac_func ();
33926 /* The GNU C library defines this for functions which it implements
33927     to always fail with ENOSYS.  Some functions are actually named
33928     something starting with __ and the normal name is an alias.  */
33929 #if defined __stub_$ac_func || defined __stub___$ac_func
33930 choke me
33931 #endif
33932
33933 int
33934 main ()
33935 {
33936 return $ac_func ();
33937   ;
33938   return 0;
33939 }
33940 _ACEOF
33941 rm -f conftest.$ac_objext conftest$ac_exeext
33942 if { (ac_try="$ac_link"
33943 case "(($ac_try" in
33944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945   *) ac_try_echo=$ac_try;;
33946 esac
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948   (eval "$ac_link") 2>conftest.er1
33949   ac_status=$?
33950   grep -v '^ *+' conftest.er1 >conftest.err
33951   rm -f conftest.er1
33952   cat conftest.err >&5
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } &&
33955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33956   { (case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_try") 2>&5
33962   ac_status=$?
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); }; } &&
33965          { ac_try='test -s conftest$ac_exeext'
33966   { (case "(($ac_try" in
33967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968   *) ac_try_echo=$ac_try;;
33969 esac
33970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971   (eval "$ac_try") 2>&5
33972   ac_status=$?
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); }; }; then
33975   eval "$as_ac_var=yes"
33976 else
33977   echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33979
33980         eval "$as_ac_var=no"
33981 fi
33982
33983 rm -f core conftest.err conftest.$ac_objext \
33984       conftest$ac_exeext conftest.$ac_ext
33985 fi
33986 ac_res=`eval echo '${'$as_ac_var'}'`
33987                { echo "$as_me:$LINENO: result: $ac_res" >&5
33988 echo "${ECHO_T}$ac_res" >&6; }
33989 if test `eval echo '${'$as_ac_var'}'` = yes; then
33990   cat >>confdefs.h <<_ACEOF
33991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33992 _ACEOF
33993
33994 fi
33995 done
33996
33997
33998 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33999 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34000 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34001   echo $ECHO_N "(cached) $ECHO_C" >&6
34002 else
34003   llvm_cv_llvmgcc_sanity="no"
34004 if test -x "$LLVMGCC" ; then
34005   cp /dev/null conftest.c
34006   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34007       grep 'target datalayout =' > /dev/null 2>&1
34008   if test $? -eq 0 ; then
34009     llvm_cv_llvmgcc_sanity="yes"
34010   fi
34011   rm conftest.c
34012 fi
34013 fi
34014 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34015 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34016
34017 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34018   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34019 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34020   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34021   LLVMCC1=$llvmcc1path
34022
34023   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34024   LLVMCC1PLUS=$llvmcc1pluspath
34025
34026   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34027   LLVMGCCDIR=$llvmgccdir
34028
34029   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34030   LLVMGCCLIBEXEC=$llvmgcclibexec
34031
34032   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34033   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34034   LLVMGCC_VERSION=$llvmgccversion
34035
34036   LLVMGCC_MAJVERS=$llvmgccmajvers
34037
34038   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34039   LLVMGCC_LANGS=$llvmgcclangs
34040
34041   { echo "$as_me:$LINENO: result: ok" >&5
34042 echo "${ECHO_T}ok" >&6; }
34043 fi
34044
34045 SHLIBEXT=$libltdl_cv_shlibext
34046
34047
34048 # Translate the various configuration directories and other basic
34049 # information into substitutions that will end up in Makefile.config.in
34050 # that these configured values can be used by the makefiles
34051 if test "${prefix}" = "NONE" ; then
34052   prefix="/usr/local"
34053 fi
34054 eval LLVM_PREFIX="${prefix}";
34055 eval LLVM_BINDIR="${prefix}/bin";
34056 eval LLVM_LIBDIR="${prefix}/lib";
34057 eval LLVM_DATADIR="${prefix}/share/llvm";
34058 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34059 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34060 eval LLVM_INCLUDEDIR="${prefix}/include";
34061 eval LLVM_INFODIR="${prefix}/info";
34062 eval LLVM_MANDIR="${prefix}/man";
34063 LLVM_CONFIGTIME=`date`
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075 # Place the various directores into the config.h file as #defines so that we
34076 # can know about the installation paths within LLVM.
34077
34078 cat >>confdefs.h <<_ACEOF
34079 #define LLVM_PREFIX "$LLVM_PREFIX"
34080 _ACEOF
34081
34082
34083 cat >>confdefs.h <<_ACEOF
34084 #define LLVM_BINDIR "$LLVM_BINDIR"
34085 _ACEOF
34086
34087
34088 cat >>confdefs.h <<_ACEOF
34089 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34090 _ACEOF
34091
34092
34093 cat >>confdefs.h <<_ACEOF
34094 #define LLVM_DATADIR "$LLVM_DATADIR"
34095 _ACEOF
34096
34097
34098 cat >>confdefs.h <<_ACEOF
34099 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34100 _ACEOF
34101
34102
34103 cat >>confdefs.h <<_ACEOF
34104 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34105 _ACEOF
34106
34107
34108 cat >>confdefs.h <<_ACEOF
34109 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34110 _ACEOF
34111
34112
34113 cat >>confdefs.h <<_ACEOF
34114 #define LLVM_INFODIR "$LLVM_INFODIR"
34115 _ACEOF
34116
34117
34118 cat >>confdefs.h <<_ACEOF
34119 #define LLVM_MANDIR "$LLVM_MANDIR"
34120 _ACEOF
34121
34122
34123 cat >>confdefs.h <<_ACEOF
34124 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34125 _ACEOF
34126
34127
34128
34129 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34130
34131 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34132
34133 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34134
34135 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34136
34137 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34138
34139
34140 ac_config_files="$ac_config_files Makefile.config"
34141
34142
34143 ac_config_files="$ac_config_files llvm.spec"
34144
34145
34146 ac_config_files="$ac_config_files docs/doxygen.cfg"
34147
34148
34149 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34150
34151
34152 ac_config_commands="$ac_config_commands setup"
34153
34154 ac_config_commands="$ac_config_commands Makefile"
34155
34156
34157 ac_config_commands="$ac_config_commands Makefile.common"
34158
34159
34160 ac_config_commands="$ac_config_commands examples/Makefile"
34161
34162
34163 ac_config_commands="$ac_config_commands lib/Makefile"
34164
34165
34166 ac_config_commands="$ac_config_commands runtime/Makefile"
34167
34168
34169 ac_config_commands="$ac_config_commands test/Makefile"
34170
34171
34172 ac_config_commands="$ac_config_commands test/Makefile.tests"
34173
34174
34175 ac_config_commands="$ac_config_commands tools/Makefile"
34176
34177
34178 ac_config_commands="$ac_config_commands utils/Makefile"
34179
34180
34181 ac_config_commands="$ac_config_commands projects/Makefile"
34182
34183
34184 ac_config_commands="$ac_config_commands bindings/Makefile"
34185
34186
34187 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34188
34189
34190
34191 cat >confcache <<\_ACEOF
34192 # This file is a shell script that caches the results of configure
34193 # tests run on this system so they can be shared between configure
34194 # scripts and configure runs, see configure's option --config-cache.
34195 # It is not useful on other systems.  If it contains results you don't
34196 # want to keep, you may remove or edit it.
34197 #
34198 # config.status only pays attention to the cache file if you give it
34199 # the --recheck option to rerun configure.
34200 #
34201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34203 # following values.
34204
34205 _ACEOF
34206
34207 # The following way of writing the cache mishandles newlines in values,
34208 # but we know of no workaround that is simple, portable, and efficient.
34209 # So, we kill variables containing newlines.
34210 # Ultrix sh set writes to stderr and can't be redirected directly,
34211 # and sets the high bit in the cache file unless we assign to the vars.
34212 (
34213   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34214     eval ac_val=\$$ac_var
34215     case $ac_val in #(
34216     *${as_nl}*)
34217       case $ac_var in #(
34218       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34219 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34220       esac
34221       case $ac_var in #(
34222       _ | IFS | as_nl) ;; #(
34223       *) $as_unset $ac_var ;;
34224       esac ;;
34225     esac
34226   done
34227
34228   (set) 2>&1 |
34229     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34230     *${as_nl}ac_space=\ *)
34231       # `set' does not quote correctly, so add quotes (double-quote
34232       # substitution turns \\\\ into \\, and sed turns \\ into \).
34233       sed -n \
34234         "s/'/'\\\\''/g;
34235           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34236       ;; #(
34237     *)
34238       # `set' quotes correctly as required by POSIX, so do not add quotes.
34239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34240       ;;
34241     esac |
34242     sort
34243 ) |
34244   sed '
34245      /^ac_cv_env_/b end
34246      t clear
34247      :clear
34248      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34249      t end
34250      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34251      :end' >>confcache
34252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34253   if test -w "$cache_file"; then
34254     test "x$cache_file" != "x/dev/null" &&
34255       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34256 echo "$as_me: updating cache $cache_file" >&6;}
34257     cat confcache >$cache_file
34258   else
34259     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34260 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34261   fi
34262 fi
34263 rm -f confcache
34264
34265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34266 # Let make expand exec_prefix.
34267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34268
34269 DEFS=-DHAVE_CONFIG_H
34270
34271 ac_libobjs=
34272 ac_ltlibobjs=
34273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34274   # 1. Remove the extension, and $U if already installed.
34275   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34276   ac_i=`echo "$ac_i" | sed "$ac_script"`
34277   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34278   #    will be set to the directory where LIBOBJS objects are built.
34279   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34280   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34281 done
34282 LIBOBJS=$ac_libobjs
34283
34284 LTLIBOBJS=$ac_ltlibobjs
34285
34286
34287 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34288   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34289 Usually this means the macro was only invoked conditionally." >&5
34290 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34291 Usually this means the macro was only invoked conditionally." >&2;}
34292    { (exit 1); exit 1; }; }
34293 fi
34294 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34295   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34296 Usually this means the macro was only invoked conditionally." >&5
34297 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34298 Usually this means the macro was only invoked conditionally." >&2;}
34299    { (exit 1); exit 1; }; }
34300 fi
34301
34302 : ${CONFIG_STATUS=./config.status}
34303 ac_clean_files_save=$ac_clean_files
34304 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34305 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34306 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34307 cat >$CONFIG_STATUS <<_ACEOF
34308 #! $SHELL
34309 # Generated by $as_me.
34310 # Run this file to recreate the current configuration.
34311 # Compiler output produced by configure, useful for debugging
34312 # configure, is in config.log if it exists.
34313
34314 debug=false
34315 ac_cs_recheck=false
34316 ac_cs_silent=false
34317 SHELL=\${CONFIG_SHELL-$SHELL}
34318 _ACEOF
34319
34320 cat >>$CONFIG_STATUS <<\_ACEOF
34321 ## --------------------- ##
34322 ## M4sh Initialization.  ##
34323 ## --------------------- ##
34324
34325 # Be Bourne compatible
34326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34327   emulate sh
34328   NULLCMD=:
34329   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34330   # is contrary to our usage.  Disable this feature.
34331   alias -g '${1+"$@"}'='"$@"'
34332   setopt NO_GLOB_SUBST
34333 else
34334   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34335 fi
34336 BIN_SH=xpg4; export BIN_SH # for Tru64
34337 DUALCASE=1; export DUALCASE # for MKS sh
34338
34339
34340 # PATH needs CR
34341 # Avoid depending upon Character Ranges.
34342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34345 as_cr_digits='0123456789'
34346 as_cr_alnum=$as_cr_Letters$as_cr_digits
34347
34348 # The user is always right.
34349 if test "${PATH_SEPARATOR+set}" != set; then
34350   echo "#! /bin/sh" >conf$$.sh
34351   echo  "exit 0"   >>conf$$.sh
34352   chmod +x conf$$.sh
34353   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34354     PATH_SEPARATOR=';'
34355   else
34356     PATH_SEPARATOR=:
34357   fi
34358   rm -f conf$$.sh
34359 fi
34360
34361 # Support unset when possible.
34362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34363   as_unset=unset
34364 else
34365   as_unset=false
34366 fi
34367
34368
34369 # IFS
34370 # We need space, tab and new line, in precisely that order.  Quoting is
34371 # there to prevent editors from complaining about space-tab.
34372 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34373 # splitting by setting IFS to empty value.)
34374 as_nl='
34375 '
34376 IFS=" ""        $as_nl"
34377
34378 # Find who we are.  Look in the path if we contain no directory separator.
34379 case $0 in
34380   *[\\/]* ) as_myself=$0 ;;
34381   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34382 for as_dir in $PATH
34383 do
34384   IFS=$as_save_IFS
34385   test -z "$as_dir" && as_dir=.
34386   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34387 done
34388 IFS=$as_save_IFS
34389
34390      ;;
34391 esac
34392 # We did not find ourselves, most probably we were run as `sh COMMAND'
34393 # in which case we are not to be found in the path.
34394 if test "x$as_myself" = x; then
34395   as_myself=$0
34396 fi
34397 if test ! -f "$as_myself"; then
34398   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34399   { (exit 1); exit 1; }
34400 fi
34401
34402 # Work around bugs in pre-3.0 UWIN ksh.
34403 for as_var in ENV MAIL MAILPATH
34404 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34405 done
34406 PS1='$ '
34407 PS2='> '
34408 PS4='+ '
34409
34410 # NLS nuisances.
34411 for as_var in \
34412   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34413   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34414   LC_TELEPHONE LC_TIME
34415 do
34416   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34417     eval $as_var=C; export $as_var
34418   else
34419     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34420   fi
34421 done
34422
34423 # Required to use basename.
34424 if expr a : '\(a\)' >/dev/null 2>&1 &&
34425    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34426   as_expr=expr
34427 else
34428   as_expr=false
34429 fi
34430
34431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34432   as_basename=basename
34433 else
34434   as_basename=false
34435 fi
34436
34437
34438 # Name of the executable.
34439 as_me=`$as_basename -- "$0" ||
34440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34441          X"$0" : 'X\(//\)$' \| \
34442          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34443 echo X/"$0" |
34444     sed '/^.*\/\([^/][^/]*\)\/*$/{
34445             s//\1/
34446             q
34447           }
34448           /^X\/\(\/\/\)$/{
34449             s//\1/
34450             q
34451           }
34452           /^X\/\(\/\).*/{
34453             s//\1/
34454             q
34455           }
34456           s/.*/./; q'`
34457
34458 # CDPATH.
34459 $as_unset CDPATH
34460
34461
34462
34463   as_lineno_1=$LINENO
34464   as_lineno_2=$LINENO
34465   test "x$as_lineno_1" != "x$as_lineno_2" &&
34466   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34467
34468   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34469   # uniformly replaced by the line number.  The first 'sed' inserts a
34470   # line-number line after each line using $LINENO; the second 'sed'
34471   # does the real work.  The second script uses 'N' to pair each
34472   # line-number line with the line containing $LINENO, and appends
34473   # trailing '-' during substitution so that $LINENO is not a special
34474   # case at line end.
34475   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34476   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34477   # E. McMahon (1931-1989) for sed's syntax.  :-)
34478   sed -n '
34479     p
34480     /[$]LINENO/=
34481   ' <$as_myself |
34482     sed '
34483       s/[$]LINENO.*/&-/
34484       t lineno
34485       b
34486       :lineno
34487       N
34488       :loop
34489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34490       t loop
34491       s/-\n.*//
34492     ' >$as_me.lineno &&
34493   chmod +x "$as_me.lineno" ||
34494     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34495    { (exit 1); exit 1; }; }
34496
34497   # Don't try to exec as it changes $[0], causing all sort of problems
34498   # (the dirname of $[0] is not the place where we might find the
34499   # original and so on.  Autoconf is especially sensitive to this).
34500   . "./$as_me.lineno"
34501   # Exit status is that of the last command.
34502   exit
34503 }
34504
34505
34506 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34507   as_dirname=dirname
34508 else
34509   as_dirname=false
34510 fi
34511
34512 ECHO_C= ECHO_N= ECHO_T=
34513 case `echo -n x` in
34514 -n*)
34515   case `echo 'x\c'` in
34516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34517   *)   ECHO_C='\c';;
34518   esac;;
34519 *)
34520   ECHO_N='-n';;
34521 esac
34522
34523 if expr a : '\(a\)' >/dev/null 2>&1 &&
34524    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34525   as_expr=expr
34526 else
34527   as_expr=false
34528 fi
34529
34530 rm -f conf$$ conf$$.exe conf$$.file
34531 if test -d conf$$.dir; then
34532   rm -f conf$$.dir/conf$$.file
34533 else
34534   rm -f conf$$.dir
34535   mkdir conf$$.dir
34536 fi
34537 echo >conf$$.file
34538 if ln -s conf$$.file conf$$ 2>/dev/null; then
34539   as_ln_s='ln -s'
34540   # ... but there are two gotchas:
34541   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34542   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34543   # In both cases, we have to default to `cp -p'.
34544   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34545     as_ln_s='cp -p'
34546 elif ln conf$$.file conf$$ 2>/dev/null; then
34547   as_ln_s=ln
34548 else
34549   as_ln_s='cp -p'
34550 fi
34551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34552 rmdir conf$$.dir 2>/dev/null
34553
34554 if mkdir -p . 2>/dev/null; then
34555   as_mkdir_p=:
34556 else
34557   test -d ./-p && rmdir ./-p
34558   as_mkdir_p=false
34559 fi
34560
34561 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34562 # systems may use methods other than mode bits to determine executability.
34563 cat >conf$$.file <<_ASEOF
34564 #! /bin/sh
34565 exit 0
34566 _ASEOF
34567 chmod +x conf$$.file
34568 if test -x conf$$.file >/dev/null 2>&1; then
34569   as_executable_p="test -x"
34570 else
34571   as_executable_p=:
34572 fi
34573 rm -f conf$$.file
34574
34575 # Sed expression to map a string onto a valid CPP name.
34576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34577
34578 # Sed expression to map a string onto a valid variable name.
34579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34580
34581
34582 exec 6>&1
34583
34584 # Save the log message, to keep $[0] and so on meaningful, and to
34585 # report actual input values of CONFIG_FILES etc. instead of their
34586 # values after options handling.
34587 ac_log="
34588 This file was extended by llvm $as_me 2.2svn, which was
34589 generated by GNU Autoconf 2.60.  Invocation command line was
34590
34591   CONFIG_FILES    = $CONFIG_FILES
34592   CONFIG_HEADERS  = $CONFIG_HEADERS
34593   CONFIG_LINKS    = $CONFIG_LINKS
34594   CONFIG_COMMANDS = $CONFIG_COMMANDS
34595   $ $0 $@
34596
34597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34598 "
34599
34600 _ACEOF
34601
34602 cat >>$CONFIG_STATUS <<_ACEOF
34603 # Files that config.status was made for.
34604 config_files="$ac_config_files"
34605 config_headers="$ac_config_headers"
34606 config_commands="$ac_config_commands"
34607
34608 _ACEOF
34609
34610 cat >>$CONFIG_STATUS <<\_ACEOF
34611 ac_cs_usage="\
34612 \`$as_me' instantiates files from templates according to the
34613 current configuration.
34614
34615 Usage: $0 [OPTIONS] [FILE]...
34616
34617   -h, --help       print this help, then exit
34618   -V, --version    print version number, then exit
34619   -q, --quiet      do not print progress messages
34620   -d, --debug      don't remove temporary files
34621       --recheck    update $as_me by reconfiguring in the same conditions
34622   --file=FILE[:TEMPLATE]
34623                    instantiate the configuration file FILE
34624   --header=FILE[:TEMPLATE]
34625                    instantiate the configuration header FILE
34626
34627 Configuration files:
34628 $config_files
34629
34630 Configuration headers:
34631 $config_headers
34632
34633 Configuration commands:
34634 $config_commands
34635
34636 Report bugs to <bug-autoconf@gnu.org>."
34637
34638 _ACEOF
34639 cat >>$CONFIG_STATUS <<_ACEOF
34640 ac_cs_version="\\
34641 llvm config.status 2.2svn
34642 configured by $0, generated by GNU Autoconf 2.60,
34643   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34644
34645 Copyright (C) 2006 Free Software Foundation, Inc.
34646 This config.status script is free software; the Free Software Foundation
34647 gives unlimited permission to copy, distribute and modify it."
34648
34649 ac_pwd='$ac_pwd'
34650 srcdir='$srcdir'
34651 INSTALL='$INSTALL'
34652 _ACEOF
34653
34654 cat >>$CONFIG_STATUS <<\_ACEOF
34655 # If no file are specified by the user, then we need to provide default
34656 # value.  By we need to know if files were specified by the user.
34657 ac_need_defaults=:
34658 while test $# != 0
34659 do
34660   case $1 in
34661   --*=*)
34662     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34663     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34664     ac_shift=:
34665     ;;
34666   *)
34667     ac_option=$1
34668     ac_optarg=$2
34669     ac_shift=shift
34670     ;;
34671   esac
34672
34673   case $ac_option in
34674   # Handling of the options.
34675   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34676     ac_cs_recheck=: ;;
34677   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34678     echo "$ac_cs_version"; exit ;;
34679   --debug | --debu | --deb | --de | --d | -d )
34680     debug=: ;;
34681   --file | --fil | --fi | --f )
34682     $ac_shift
34683     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34684     ac_need_defaults=false;;
34685   --header | --heade | --head | --hea )
34686     $ac_shift
34687     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34688     ac_need_defaults=false;;
34689   --he | --h)
34690     # Conflict between --help and --header
34691     { echo "$as_me: error: ambiguous option: $1
34692 Try \`$0 --help' for more information." >&2
34693    { (exit 1); exit 1; }; };;
34694   --help | --hel | -h )
34695     echo "$ac_cs_usage"; exit ;;
34696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34697   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34698     ac_cs_silent=: ;;
34699
34700   # This is an error.
34701   -*) { echo "$as_me: error: unrecognized option: $1
34702 Try \`$0 --help' for more information." >&2
34703    { (exit 1); exit 1; }; } ;;
34704
34705   *) ac_config_targets="$ac_config_targets $1"
34706      ac_need_defaults=false ;;
34707
34708   esac
34709   shift
34710 done
34711
34712 ac_configure_extra_args=
34713
34714 if $ac_cs_silent; then
34715   exec 6>/dev/null
34716   ac_configure_extra_args="$ac_configure_extra_args --silent"
34717 fi
34718
34719 _ACEOF
34720 cat >>$CONFIG_STATUS <<_ACEOF
34721 if \$ac_cs_recheck; then
34722   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34723   CONFIG_SHELL=$SHELL
34724   export CONFIG_SHELL
34725   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34726 fi
34727
34728 _ACEOF
34729 cat >>$CONFIG_STATUS <<\_ACEOF
34730 exec 5>>config.log
34731 {
34732   echo
34733   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34734 ## Running $as_me. ##
34735 _ASBOX
34736   echo "$ac_log"
34737 } >&5
34738
34739 _ACEOF
34740 cat >>$CONFIG_STATUS <<_ACEOF
34741 #
34742 # INIT-COMMANDS
34743 #
34744 llvm_src="${srcdir}"
34745
34746 _ACEOF
34747
34748 cat >>$CONFIG_STATUS <<\_ACEOF
34749
34750 # Handling of arguments.
34751 for ac_config_target in $ac_config_targets
34752 do
34753   case $ac_config_target in
34754     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34755     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34756     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34757     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34758     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34759     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34760     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34761     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34762     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34763     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34764     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34765     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34766     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34767     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34768     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34769     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34770     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34771     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34772     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34773     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34774     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34775     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34776
34777   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34778 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34779    { (exit 1); exit 1; }; };;
34780   esac
34781 done
34782
34783
34784 # If the user did not use the arguments to specify the items to instantiate,
34785 # then the envvar interface is used.  Set only those that are not.
34786 # We use the long form for the default assignment because of an extremely
34787 # bizarre bug on SunOS 4.1.3.
34788 if $ac_need_defaults; then
34789   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34790   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34791   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34792 fi
34793
34794 # Have a temporary directory for convenience.  Make it in the build tree
34795 # simply because there is no reason against having it here, and in addition,
34796 # creating and moving files from /tmp can sometimes cause problems.
34797 # Hook for its removal unless debugging.
34798 # Note that there is a small window in which the directory will not be cleaned:
34799 # after its creation but before its name has been assigned to `$tmp'.
34800 $debug ||
34801 {
34802   tmp=
34803   trap 'exit_status=$?
34804   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34805 ' 0
34806   trap '{ (exit 1); exit 1; }' 1 2 13 15
34807 }
34808 # Create a (secure) tmp directory for tmp files.
34809
34810 {
34811   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34812   test -n "$tmp" && test -d "$tmp"
34813 }  ||
34814 {
34815   tmp=./conf$$-$RANDOM
34816   (umask 077 && mkdir "$tmp")
34817 } ||
34818 {
34819    echo "$me: cannot create a temporary directory in ." >&2
34820    { (exit 1); exit 1; }
34821 }
34822
34823 #
34824 # Set up the sed scripts for CONFIG_FILES section.
34825 #
34826
34827 # No need to generate the scripts if there are no CONFIG_FILES.
34828 # This happens for instance when ./config.status config.h
34829 if test -n "$CONFIG_FILES"; then
34830
34831 _ACEOF
34832
34833
34834
34835 ac_delim='%!_!# '
34836 for ac_last_try in false false false false false :; do
34837   cat >conf$$subs.sed <<_ACEOF
34838 SHELL!$SHELL$ac_delim
34839 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34840 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34841 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34842 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34843 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34844 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34845 exec_prefix!$exec_prefix$ac_delim
34846 prefix!$prefix$ac_delim
34847 program_transform_name!$program_transform_name$ac_delim
34848 bindir!$bindir$ac_delim
34849 sbindir!$sbindir$ac_delim
34850 libexecdir!$libexecdir$ac_delim
34851 datarootdir!$datarootdir$ac_delim
34852 datadir!$datadir$ac_delim
34853 sysconfdir!$sysconfdir$ac_delim
34854 sharedstatedir!$sharedstatedir$ac_delim
34855 localstatedir!$localstatedir$ac_delim
34856 includedir!$includedir$ac_delim
34857 oldincludedir!$oldincludedir$ac_delim
34858 docdir!$docdir$ac_delim
34859 infodir!$infodir$ac_delim
34860 htmldir!$htmldir$ac_delim
34861 dvidir!$dvidir$ac_delim
34862 pdfdir!$pdfdir$ac_delim
34863 psdir!$psdir$ac_delim
34864 libdir!$libdir$ac_delim
34865 localedir!$localedir$ac_delim
34866 mandir!$mandir$ac_delim
34867 DEFS!$DEFS$ac_delim
34868 ECHO_C!$ECHO_C$ac_delim
34869 ECHO_N!$ECHO_N$ac_delim
34870 ECHO_T!$ECHO_T$ac_delim
34871 LIBS!$LIBS$ac_delim
34872 build_alias!$build_alias$ac_delim
34873 host_alias!$host_alias$ac_delim
34874 target_alias!$target_alias$ac_delim
34875 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34876 subdirs!$subdirs$ac_delim
34877 build!$build$ac_delim
34878 build_cpu!$build_cpu$ac_delim
34879 build_vendor!$build_vendor$ac_delim
34880 build_os!$build_os$ac_delim
34881 host!$host$ac_delim
34882 host_cpu!$host_cpu$ac_delim
34883 host_vendor!$host_vendor$ac_delim
34884 host_os!$host_os$ac_delim
34885 target!$target$ac_delim
34886 target_cpu!$target_cpu$ac_delim
34887 target_vendor!$target_vendor$ac_delim
34888 target_os!$target_os$ac_delim
34889 OS!$OS$ac_delim
34890 LINKALL!$LINKALL$ac_delim
34891 NOLINKALL!$NOLINKALL$ac_delim
34892 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34893 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34894 ARCH!$ARCH$ac_delim
34895 ENDIAN!$ENDIAN$ac_delim
34896 CC!$CC$ac_delim
34897 CFLAGS!$CFLAGS$ac_delim
34898 LDFLAGS!$LDFLAGS$ac_delim
34899 CPPFLAGS!$CPPFLAGS$ac_delim
34900 ac_ct_CC!$ac_ct_CC$ac_delim
34901 EXEEXT!$EXEEXT$ac_delim
34902 OBJEXT!$OBJEXT$ac_delim
34903 CPP!$CPP$ac_delim
34904 GREP!$GREP$ac_delim
34905 EGREP!$EGREP$ac_delim
34906 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34907 BUILD_CC!$BUILD_CC$ac_delim
34908 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34909 CVSBUILD!$CVSBUILD$ac_delim
34910 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34911 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34912 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34913 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34914 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34915 JIT!$JIT$ac_delim
34916 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34917 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34918 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34919 ENABLE_PIC!$ENABLE_PIC$ac_delim
34920 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34921 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34922 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34923 CXX!$CXX$ac_delim
34924 CXXFLAGS!$CXXFLAGS$ac_delim
34925 ac_ct_CXX!$ac_ct_CXX$ac_delim
34926 LEX!$LEX$ac_delim
34927 LEXLIB!$LEXLIB$ac_delim
34928 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34929 FLEX!$FLEX$ac_delim
34930 YACC!$YACC$ac_delim
34931 YFLAGS!$YFLAGS$ac_delim
34932 BISON!$BISON$ac_delim
34933 NM!$NM$ac_delim
34934 ifGNUmake!$ifGNUmake$ac_delim
34935 _ACEOF
34936
34937   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34938     break
34939   elif $ac_last_try; then
34940     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34941 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34942    { (exit 1); exit 1; }; }
34943   else
34944     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34945   fi
34946 done
34947
34948 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34949 if test -n "$ac_eof"; then
34950   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34951   ac_eof=`expr $ac_eof + 1`
34952 fi
34953
34954 cat >>$CONFIG_STATUS <<_ACEOF
34955 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34957 _ACEOF
34958 sed '
34959 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34960 s/^/s,@/; s/!/@,|#_!!_#|/
34961 :n
34962 t n
34963 s/'"$ac_delim"'$/,g/; t
34964 s/$/\\/; p
34965 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34966 ' >>$CONFIG_STATUS <conf$$subs.sed
34967 rm -f conf$$subs.sed
34968 cat >>$CONFIG_STATUS <<_ACEOF
34969 CEOF$ac_eof
34970 _ACEOF
34971
34972
34973 ac_delim='%!_!# '
34974 for ac_last_try in false false false false false :; do
34975   cat >conf$$subs.sed <<_ACEOF
34976 LN_S!$LN_S$ac_delim
34977 CMP!$CMP$ac_delim
34978 CP!$CP$ac_delim
34979 DATE!$DATE$ac_delim
34980 FIND!$FIND$ac_delim
34981 MKDIR!$MKDIR$ac_delim
34982 MV!$MV$ac_delim
34983 RANLIB!$RANLIB$ac_delim
34984 RM!$RM$ac_delim
34985 SED!$SED$ac_delim
34986 TAR!$TAR$ac_delim
34987 BINPWD!$BINPWD$ac_delim
34988 GRAPHVIZ!$GRAPHVIZ$ac_delim
34989 DOT!$DOT$ac_delim
34990 GV!$GV$ac_delim
34991 DOTTY!$DOTTY$ac_delim
34992 PERL!$PERL$ac_delim
34993 HAVE_PERL!$HAVE_PERL$ac_delim
34994 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34995 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34996 INSTALL_DATA!$INSTALL_DATA$ac_delim
34997 BZIP2!$BZIP2$ac_delim
34998 DOXYGEN!$DOXYGEN$ac_delim
34999 GROFF!$GROFF$ac_delim
35000 GZIP!$GZIP$ac_delim
35001 POD2HTML!$POD2HTML$ac_delim
35002 POD2MAN!$POD2MAN$ac_delim
35003 RUNTEST!$RUNTEST$ac_delim
35004 TCLSH!$TCLSH$ac_delim
35005 ZIP!$ZIP$ac_delim
35006 OCAMLC!$OCAMLC$ac_delim
35007 OCAMLOPT!$OCAMLOPT$ac_delim
35008 OCAMLDEP!$OCAMLDEP$ac_delim
35009 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35010 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35011 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35012 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35013 LIBADD_DL!$LIBADD_DL$ac_delim
35014 ECHO!$ECHO$ac_delim
35015 AR!$AR$ac_delim
35016 STRIP!$STRIP$ac_delim
35017 CXXCPP!$CXXCPP$ac_delim
35018 F77!$F77$ac_delim
35019 FFLAGS!$FFLAGS$ac_delim
35020 ac_ct_F77!$ac_ct_F77$ac_delim
35021 LIBTOOL!$LIBTOOL$ac_delim
35022 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
35023 LLVMGCC!$LLVMGCC$ac_delim
35024 LLVMGXX!$LLVMGXX$ac_delim
35025 USE_UDIS86!$USE_UDIS86$ac_delim
35026 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35027 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35028 ALLOCA!$ALLOCA$ac_delim
35029 MMAP_FILE!$MMAP_FILE$ac_delim
35030 LLVMCC1!$LLVMCC1$ac_delim
35031 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35032 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35033 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35034 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35035 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35036 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35037 SHLIBEXT!$SHLIBEXT$ac_delim
35038 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35039 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35040 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35041 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35042 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35043 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35044 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35045 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35046 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35047 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35048 LIBOBJS!$LIBOBJS$ac_delim
35049 LTLIBOBJS!$LTLIBOBJS$ac_delim
35050 _ACEOF
35051
35052   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
35053     break
35054   elif $ac_last_try; then
35055     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35057    { (exit 1); exit 1; }; }
35058   else
35059     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35060   fi
35061 done
35062
35063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35064 if test -n "$ac_eof"; then
35065   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35066   ac_eof=`expr $ac_eof + 1`
35067 fi
35068
35069 cat >>$CONFIG_STATUS <<_ACEOF
35070 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35072 _ACEOF
35073 sed '
35074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35075 s/^/s,@/; s/!/@,|#_!!_#|/
35076 :n
35077 t n
35078 s/'"$ac_delim"'$/,g/; t
35079 s/$/\\/; p
35080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35081 ' >>$CONFIG_STATUS <conf$$subs.sed
35082 rm -f conf$$subs.sed
35083 cat >>$CONFIG_STATUS <<_ACEOF
35084 :end
35085 s/|#_!!_#|//g
35086 CEOF$ac_eof
35087 _ACEOF
35088
35089
35090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35092 # trailing colons and then remove the whole line if VPATH becomes empty
35093 # (actually we leave an empty line to preserve line numbers).
35094 if test "x$srcdir" = x.; then
35095   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35096 s/:*\$(srcdir):*/:/
35097 s/:*\${srcdir}:*/:/
35098 s/:*@srcdir@:*/:/
35099 s/^\([^=]*=[     ]*\):*/\1/
35100 s/:*$//
35101 s/^[^=]*=[       ]*$//
35102 }'
35103 fi
35104
35105 cat >>$CONFIG_STATUS <<\_ACEOF
35106 fi # test -n "$CONFIG_FILES"
35107
35108
35109 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35110 do
35111   case $ac_tag in
35112   :[FHLC]) ac_mode=$ac_tag; continue;;
35113   esac
35114   case $ac_mode$ac_tag in
35115   :[FHL]*:*);;
35116   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35117 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35118    { (exit 1); exit 1; }; };;
35119   :[FH]-) ac_tag=-:-;;
35120   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35121   esac
35122   ac_save_IFS=$IFS
35123   IFS=:
35124   set x $ac_tag
35125   IFS=$ac_save_IFS
35126   shift
35127   ac_file=$1
35128   shift
35129
35130   case $ac_mode in
35131   :L) ac_source=$1;;
35132   :[FH])
35133     ac_file_inputs=
35134     for ac_f
35135     do
35136       case $ac_f in
35137       -) ac_f="$tmp/stdin";;
35138       *) # Look for the file first in the build tree, then in the source tree
35139          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35140          # because $ac_f cannot contain `:'.
35141          test -f "$ac_f" ||
35142            case $ac_f in
35143            [\\/$]*) false;;
35144            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35145            esac ||
35146            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35147 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35148    { (exit 1); exit 1; }; };;
35149       esac
35150       ac_file_inputs="$ac_file_inputs $ac_f"
35151     done
35152
35153     # Let's still pretend it is `configure' which instantiates (i.e., don't
35154     # use $as_me), people would be surprised to read:
35155     #    /* config.h.  Generated by config.status.  */
35156     configure_input="Generated from "`IFS=:
35157           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35158     if test x"$ac_file" != x-; then
35159       configure_input="$ac_file.  $configure_input"
35160       { echo "$as_me:$LINENO: creating $ac_file" >&5
35161 echo "$as_me: creating $ac_file" >&6;}
35162     fi
35163
35164     case $ac_tag in
35165     *:-:* | *:-) cat >"$tmp/stdin";;
35166     esac
35167     ;;
35168   esac
35169
35170   ac_dir=`$as_dirname -- "$ac_file" ||
35171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35172          X"$ac_file" : 'X\(//\)[^/]' \| \
35173          X"$ac_file" : 'X\(//\)$' \| \
35174          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35175 echo X"$ac_file" |
35176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35177             s//\1/
35178             q
35179           }
35180           /^X\(\/\/\)[^/].*/{
35181             s//\1/
35182             q
35183           }
35184           /^X\(\/\/\)$/{
35185             s//\1/
35186             q
35187           }
35188           /^X\(\/\).*/{
35189             s//\1/
35190             q
35191           }
35192           s/.*/./; q'`
35193   { as_dir="$ac_dir"
35194   case $as_dir in #(
35195   -*) as_dir=./$as_dir;;
35196   esac
35197   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35198     as_dirs=
35199     while :; do
35200       case $as_dir in #(
35201       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35202       *) as_qdir=$as_dir;;
35203       esac
35204       as_dirs="'$as_qdir' $as_dirs"
35205       as_dir=`$as_dirname -- "$as_dir" ||
35206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35207          X"$as_dir" : 'X\(//\)[^/]' \| \
35208          X"$as_dir" : 'X\(//\)$' \| \
35209          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35210 echo X"$as_dir" |
35211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35212             s//\1/
35213             q
35214           }
35215           /^X\(\/\/\)[^/].*/{
35216             s//\1/
35217             q
35218           }
35219           /^X\(\/\/\)$/{
35220             s//\1/
35221             q
35222           }
35223           /^X\(\/\).*/{
35224             s//\1/
35225             q
35226           }
35227           s/.*/./; q'`
35228       test -d "$as_dir" && break
35229     done
35230     test -z "$as_dirs" || eval "mkdir $as_dirs"
35231   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35232 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35233    { (exit 1); exit 1; }; }; }
35234   ac_builddir=.
35235
35236 case "$ac_dir" in
35237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35238 *)
35239   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35240   # A ".." for each directory in $ac_dir_suffix.
35241   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35242   case $ac_top_builddir_sub in
35243   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35244   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35245   esac ;;
35246 esac
35247 ac_abs_top_builddir=$ac_pwd
35248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35249 # for backward compatibility:
35250 ac_top_builddir=$ac_top_build_prefix
35251
35252 case $srcdir in
35253   .)  # We are building in place.
35254     ac_srcdir=.
35255     ac_top_srcdir=$ac_top_builddir_sub
35256     ac_abs_top_srcdir=$ac_pwd ;;
35257   [\\/]* | ?:[\\/]* )  # Absolute name.
35258     ac_srcdir=$srcdir$ac_dir_suffix;
35259     ac_top_srcdir=$srcdir
35260     ac_abs_top_srcdir=$srcdir ;;
35261   *) # Relative name.
35262     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35263     ac_top_srcdir=$ac_top_build_prefix$srcdir
35264     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35265 esac
35266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35267
35268
35269   case $ac_mode in
35270   :F)
35271   #
35272   # CONFIG_FILE
35273   #
35274
35275   case $INSTALL in
35276   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35277   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35278   esac
35279 _ACEOF
35280
35281 cat >>$CONFIG_STATUS <<\_ACEOF
35282 # If the template does not know about datarootdir, expand it.
35283 # FIXME: This hack should be removed a few years after 2.60.
35284 ac_datarootdir_hack=; ac_datarootdir_seen=
35285
35286 case `sed -n '/datarootdir/ {
35287   p
35288   q
35289 }
35290 /@datadir@/p
35291 /@docdir@/p
35292 /@infodir@/p
35293 /@localedir@/p
35294 /@mandir@/p
35295 ' $ac_file_inputs` in
35296 *datarootdir*) ac_datarootdir_seen=yes;;
35297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35298   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35299 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35300 _ACEOF
35301 cat >>$CONFIG_STATUS <<_ACEOF
35302   ac_datarootdir_hack='
35303   s&@datadir@&$datadir&g
35304   s&@docdir@&$docdir&g
35305   s&@infodir@&$infodir&g
35306   s&@localedir@&$localedir&g
35307   s&@mandir@&$mandir&g
35308     s&\\\${datarootdir}&$datarootdir&g' ;;
35309 esac
35310 _ACEOF
35311
35312 # Neutralize VPATH when `$srcdir' = `.'.
35313 # Shell code in configure.ac might set extrasub.
35314 # FIXME: do we really want to maintain this feature?
35315 cat >>$CONFIG_STATUS <<_ACEOF
35316   sed "$ac_vpsub
35317 $extrasub
35318 _ACEOF
35319 cat >>$CONFIG_STATUS <<\_ACEOF
35320 :t
35321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35322 s&@configure_input@&$configure_input&;t t
35323 s&@top_builddir@&$ac_top_builddir_sub&;t t
35324 s&@srcdir@&$ac_srcdir&;t t
35325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35326 s&@top_srcdir@&$ac_top_srcdir&;t t
35327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35328 s&@builddir@&$ac_builddir&;t t
35329 s&@abs_builddir@&$ac_abs_builddir&;t t
35330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35331 s&@INSTALL@&$ac_INSTALL&;t t
35332 $ac_datarootdir_hack
35333 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35334
35335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35336   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35337   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35338   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35339 which seems to be undefined.  Please make sure it is defined." >&5
35340 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35341 which seems to be undefined.  Please make sure it is defined." >&2;}
35342
35343   rm -f "$tmp/stdin"
35344   case $ac_file in
35345   -) cat "$tmp/out"; rm -f "$tmp/out";;
35346   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35347   esac
35348  ;;
35349   :H)
35350   #
35351   # CONFIG_HEADER
35352   #
35353 _ACEOF
35354
35355 # Transform confdefs.h into a sed script `conftest.defines', that
35356 # substitutes the proper values into config.h.in to produce config.h.
35357 rm -f conftest.defines conftest.tail
35358 # First, append a space to every undef/define line, to ease matching.
35359 echo 's/$/ /' >conftest.defines
35360 # Then, protect against being on the right side of a sed subst, or in
35361 # an unquoted here document, in config.status.  If some macros were
35362 # called several times there might be several #defines for the same
35363 # symbol, which is useless.  But do not sort them, since the last
35364 # AC_DEFINE must be honored.
35365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35366 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35367 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35368 # PARAMS is the parameter list in the macro definition--in most cases, it's
35369 # just an empty string.
35370 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35371 ac_dB='\\)[      (].*,\\1define\\2'
35372 ac_dC=' '
35373 ac_dD=' ,'
35374
35375 uniq confdefs.h |
35376   sed -n '
35377         t rset
35378         :rset
35379         s/^[     ]*#[    ]*define[       ][      ]*//
35380         t ok
35381         d
35382         :ok
35383         s/[\\&,]/\\&/g
35384         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35385         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35386   ' >>conftest.defines
35387
35388 # Remove the space that was appended to ease matching.
35389 # Then replace #undef with comments.  This is necessary, for
35390 # example, in the case of _POSIX_SOURCE, which is predefined and required
35391 # on some systems where configure will not decide to define it.
35392 # (The regexp can be short, since the line contains either #define or #undef.)
35393 echo 's/ $//
35394 s,^[     #]*u.*,/* & */,' >>conftest.defines
35395
35396 # Break up conftest.defines:
35397 ac_max_sed_lines=50
35398
35399 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35400 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35401 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35402 # et cetera.
35403 ac_in='$ac_file_inputs'
35404 ac_out='"$tmp/out1"'
35405 ac_nxt='"$tmp/out2"'
35406
35407 while :
35408 do
35409   # Write a here document:
35410     cat >>$CONFIG_STATUS <<_ACEOF
35411     # First, check the format of the line:
35412     cat >"\$tmp/defines.sed" <<\\CEOF
35413 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35414 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35415 b
35416 :def
35417 _ACEOF
35418   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35419   echo 'CEOF
35420     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35421   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35422   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35423   grep . conftest.tail >/dev/null || break
35424   rm -f conftest.defines
35425   mv conftest.tail conftest.defines
35426 done
35427 rm -f conftest.defines conftest.tail
35428
35429 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35430 cat >>$CONFIG_STATUS <<\_ACEOF
35431   if test x"$ac_file" != x-; then
35432     echo "/* $configure_input  */" >"$tmp/config.h"
35433     cat "$ac_result" >>"$tmp/config.h"
35434     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35435       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35436 echo "$as_me: $ac_file is unchanged" >&6;}
35437     else
35438       rm -f $ac_file
35439       mv "$tmp/config.h" $ac_file
35440     fi
35441   else
35442     echo "/* $configure_input  */"
35443     cat "$ac_result"
35444   fi
35445   rm -f "$tmp/out12"
35446  ;;
35447
35448   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35449 echo "$as_me: executing $ac_file commands" >&6;}
35450  ;;
35451   esac
35452
35453
35454   case $ac_file$ac_mode in
35455     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35456    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35457     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35458    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35459     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35460    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35461     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35462    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35463     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35464    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35465     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35466    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35467     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35468    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35469     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35470    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35471     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35472    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35473     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35474    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35475     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35476    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35477     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35478    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35479
35480   esac
35481 done # for ac_tag
35482
35483
35484 { (exit 0); exit 0; }
35485 _ACEOF
35486 chmod +x $CONFIG_STATUS
35487 ac_clean_files=$ac_clean_files_save
35488
35489
35490 # configure is writing to config.log, and then calls config.status.
35491 # config.status does its own redirection, appending to config.log.
35492 # Unfortunately, on DOS this fails, as config.log is still kept open
35493 # by configure, so config.status won't be able to write to it; its
35494 # output is simply discarded.  So we exec the FD to /dev/null,
35495 # effectively closing config.log, so it can be properly (re)opened and
35496 # appended to by config.status.  When coming back to configure, we
35497 # need to make the FD available again.
35498 if test "$no_create" != yes; then
35499   ac_cs_success=:
35500   ac_config_status_args=
35501   test "$silent" = yes &&
35502     ac_config_status_args="$ac_config_status_args --quiet"
35503   exec 5>/dev/null
35504   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35505   exec 5>>config.log
35506   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35507   # would make configure fail if this is the last instruction.
35508   $ac_cs_success || { (exit 1); exit 1; }
35509 fi
35510
35511 #
35512 # CONFIG_SUBDIRS section.
35513 #
35514 if test "$no_recursion" != yes; then
35515
35516   # Remove --cache-file and --srcdir arguments so they do not pile up.
35517   ac_sub_configure_args=
35518   ac_prev=
35519   eval "set x $ac_configure_args"
35520   shift
35521   for ac_arg
35522   do
35523     if test -n "$ac_prev"; then
35524       ac_prev=
35525       continue
35526     fi
35527     case $ac_arg in
35528     -cache-file | --cache-file | --cache-fil | --cache-fi \
35529     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35530       ac_prev=cache_file ;;
35531     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35532     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35533     | --c=*)
35534       ;;
35535     --config-cache | -C)
35536       ;;
35537     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35538       ac_prev=srcdir ;;
35539     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35540       ;;
35541     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35542       ac_prev=prefix ;;
35543     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35544       ;;
35545     *)
35546       case $ac_arg in
35547       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35548       esac
35549       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35550     esac
35551   done
35552
35553   # Always prepend --prefix to ensure using the same prefix
35554   # in subdir configurations.
35555   ac_arg="--prefix=$prefix"
35556   case $ac_arg in
35557   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35558   esac
35559   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35560
35561   ac_popdir=`pwd`
35562   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35563
35564     # Do not complain, so a configure script can configure whichever
35565     # parts of a large source tree are present.
35566     test -d "$srcdir/$ac_dir" || continue
35567
35568     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35569     echo "$as_me:$LINENO: $ac_msg" >&5
35570     echo "$ac_msg" >&6
35571     { as_dir="$ac_dir"
35572   case $as_dir in #(
35573   -*) as_dir=./$as_dir;;
35574   esac
35575   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35576     as_dirs=
35577     while :; do
35578       case $as_dir in #(
35579       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35580       *) as_qdir=$as_dir;;
35581       esac
35582       as_dirs="'$as_qdir' $as_dirs"
35583       as_dir=`$as_dirname -- "$as_dir" ||
35584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35585          X"$as_dir" : 'X\(//\)[^/]' \| \
35586          X"$as_dir" : 'X\(//\)$' \| \
35587          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35588 echo X"$as_dir" |
35589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35590             s//\1/
35591             q
35592           }
35593           /^X\(\/\/\)[^/].*/{
35594             s//\1/
35595             q
35596           }
35597           /^X\(\/\/\)$/{
35598             s//\1/
35599             q
35600           }
35601           /^X\(\/\).*/{
35602             s//\1/
35603             q
35604           }
35605           s/.*/./; q'`
35606       test -d "$as_dir" && break
35607     done
35608     test -z "$as_dirs" || eval "mkdir $as_dirs"
35609   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35610 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35611    { (exit 1); exit 1; }; }; }
35612     ac_builddir=.
35613
35614 case "$ac_dir" in
35615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35616 *)
35617   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35618   # A ".." for each directory in $ac_dir_suffix.
35619   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35620   case $ac_top_builddir_sub in
35621   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35622   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35623   esac ;;
35624 esac
35625 ac_abs_top_builddir=$ac_pwd
35626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35627 # for backward compatibility:
35628 ac_top_builddir=$ac_top_build_prefix
35629
35630 case $srcdir in
35631   .)  # We are building in place.
35632     ac_srcdir=.
35633     ac_top_srcdir=$ac_top_builddir_sub
35634     ac_abs_top_srcdir=$ac_pwd ;;
35635   [\\/]* | ?:[\\/]* )  # Absolute name.
35636     ac_srcdir=$srcdir$ac_dir_suffix;
35637     ac_top_srcdir=$srcdir
35638     ac_abs_top_srcdir=$srcdir ;;
35639   *) # Relative name.
35640     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35641     ac_top_srcdir=$ac_top_build_prefix$srcdir
35642     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35643 esac
35644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35645
35646
35647     cd "$ac_dir"
35648
35649     # Check for guested configure; otherwise get Cygnus style configure.
35650     if test -f "$ac_srcdir/configure.gnu"; then
35651       ac_sub_configure=$ac_srcdir/configure.gnu
35652     elif test -f "$ac_srcdir/configure"; then
35653       ac_sub_configure=$ac_srcdir/configure
35654     elif test -f "$ac_srcdir/configure.in"; then
35655       # This should be Cygnus configure.
35656       ac_sub_configure=$ac_aux_dir/configure
35657     else
35658       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35660       ac_sub_configure=
35661     fi
35662
35663     # The recursion is here.
35664     if test -n "$ac_sub_configure"; then
35665       # Make the cache file name correct relative to the subdirectory.
35666       case $cache_file in
35667       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35668       *) # Relative name.
35669         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35670       esac
35671
35672       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35673 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35674       # The eval makes quoting arguments work.
35675       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35676            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35677         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35678 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35679    { (exit 1); exit 1; }; }
35680     fi
35681
35682     cd "$ac_popdir"
35683   done
35684 fi
35685
35686