eliminate GVRequiresRegister, replacing it with predicates we
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
838 JIT
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 LLVM_ENUM_TARGETS
845 LLVM_ENUM_ASM_PRINTERS
846 ENABLE_CBE_PRINTF_A
847 EXTRA_OPTIONS
848 BINUTILS_INCDIR
849 ENABLE_LLVMC_DYNAMIC
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
851 CXX
852 CXXFLAGS
853 ac_ct_CXX
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 FDP
871 NEATO
872 TWOPI
873 CIRCO
874 GV
875 DOTTY
876 PERL
877 HAVE_PERL
878 INSTALL_PROGRAM
879 INSTALL_SCRIPT
880 INSTALL_DATA
881 BZIP2
882 DOXYGEN
883 GROFF
884 GZIP
885 POD2HTML
886 POD2MAN
887 RUNTEST
888 TCLSH
889 ZIP
890 OCAMLC
891 OCAMLOPT
892 OCAMLDEP
893 OCAMLDOC
894 GAS
895 INSTALL_LTDL_TRUE
896 INSTALL_LTDL_FALSE
897 CONVENIENCE_LTDL_TRUE
898 CONVENIENCE_LTDL_FALSE
899 LIBADD_DL
900 ECHO
901 AR
902 STRIP
903 CXXCPP
904 F77
905 FFLAGS
906 ac_ct_F77
907 LIBTOOL
908 LLVMGCCCOMMAND
909 LLVMGXXCOMMAND
910 LLVMGCC
911 LLVMGXX
912 USE_UDIS86
913 HAVE_PTHREAD
914 HUGE_VAL_SANITY
915 ALLOCA
916 MMAP_FILE
917 LLVMCC1
918 LLVMCC1PLUS
919 LLVMGCCDIR
920 LLVMGCCLIBEXEC
921 LLVMGCC_VERSION
922 LLVMGCC_MAJVERS
923 LLVMGCC_LANGS
924 SHLIBEXT
925 LLVM_PREFIX
926 LLVM_BINDIR
927 LLVM_LIBDIR
928 LLVM_DATADIR
929 LLVM_DOCSDIR
930 LLVM_ETCDIR
931 LLVM_INCLUDEDIR
932 LLVM_INFODIR
933 LLVM_MANDIR
934 LLVM_CONFIGTIME
935 BINDINGS_TO_BUILD
936 ALL_BINDINGS
937 OCAML_LIBDIR
938 ENABLE_VISIBILITY_INLINES_HIDDEN
939 RPATH
940 RDYNAMIC
941 LIBOBJS
942 LTLIBOBJS'
943 ac_subst_files=''
944       ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 CPPFLAGS
951 CPP
952 CXX
953 CXXFLAGS
954 CCC
955 CXXCPP
956 F77
957 FFLAGS'
958 ac_subdirs_all='projects/sample
959 projects/privbracket
960 projects/llvm-stacker
961 projects/llvm-test
962 projects/test-suite
963 projects/llvm-reopt
964 projects/llvm-gcc
965 projects/llvm-java
966 projects/llvm-tv
967 projects/llvm-poolalloc
968 projects/poolalloc
969 projects/llvm-kernel'
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021   # If the previous option needs an argument, assign it.
1022   if test -n "$ac_prev"; then
1023     eval $ac_prev=\$ac_option
1024     ac_prev=
1025     continue
1026   fi
1027
1028   case $ac_option in
1029   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030   *)    ac_optarg=yes ;;
1031   esac
1032
1033   # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035   case $ac_dashdash$ac_option in
1036   --)
1037     ac_dashdash=yes ;;
1038
1039   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040     ac_prev=bindir ;;
1041   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042     bindir=$ac_optarg ;;
1043
1044   -build | --build | --buil | --bui | --bu)
1045     ac_prev=build_alias ;;
1046   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047     build_alias=$ac_optarg ;;
1048
1049   -cache-file | --cache-file | --cache-fil | --cache-fi \
1050   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051     ac_prev=cache_file ;;
1052   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054     cache_file=$ac_optarg ;;
1055
1056   --config-cache | -C)
1057     cache_file=config.cache ;;
1058
1059   -datadir | --datadir | --datadi | --datad)
1060     ac_prev=datadir ;;
1061   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062     datadir=$ac_optarg ;;
1063
1064   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065   | --dataroo | --dataro | --datar)
1066     ac_prev=datarootdir ;;
1067   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069     datarootdir=$ac_optarg ;;
1070
1071   -disable-* | --disable-*)
1072     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1075       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1078     eval enable_$ac_feature=no ;;
1079
1080   -docdir | --docdir | --docdi | --doc | --do)
1081     ac_prev=docdir ;;
1082   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083     docdir=$ac_optarg ;;
1084
1085   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086     ac_prev=dvidir ;;
1087   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088     dvidir=$ac_optarg ;;
1089
1090   -enable-* | --enable-*)
1091     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1094       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095    { (exit 1); exit 1; }; }
1096     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1097     eval enable_$ac_feature=\$ac_optarg ;;
1098
1099   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101   | --exec | --exe | --ex)
1102     ac_prev=exec_prefix ;;
1103   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105   | --exec=* | --exe=* | --ex=*)
1106     exec_prefix=$ac_optarg ;;
1107
1108   -gas | --gas | --ga | --g)
1109     # Obsolete; use --with-gas.
1110     with_gas=yes ;;
1111
1112   -help | --help | --hel | --he | -h)
1113     ac_init_help=long ;;
1114   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115     ac_init_help=recursive ;;
1116   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117     ac_init_help=short ;;
1118
1119   -host | --host | --hos | --ho)
1120     ac_prev=host_alias ;;
1121   -host=* | --host=* | --hos=* | --ho=*)
1122     host_alias=$ac_optarg ;;
1123
1124   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125     ac_prev=htmldir ;;
1126   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127   | --ht=*)
1128     htmldir=$ac_optarg ;;
1129
1130   -includedir | --includedir | --includedi | --included | --include \
1131   | --includ | --inclu | --incl | --inc)
1132     ac_prev=includedir ;;
1133   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134   | --includ=* | --inclu=* | --incl=* | --inc=*)
1135     includedir=$ac_optarg ;;
1136
1137   -infodir | --infodir | --infodi | --infod | --info | --inf)
1138     ac_prev=infodir ;;
1139   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140     infodir=$ac_optarg ;;
1141
1142   -libdir | --libdir | --libdi | --libd)
1143     ac_prev=libdir ;;
1144   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145     libdir=$ac_optarg ;;
1146
1147   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148   | --libexe | --libex | --libe)
1149     ac_prev=libexecdir ;;
1150   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151   | --libexe=* | --libex=* | --libe=*)
1152     libexecdir=$ac_optarg ;;
1153
1154   -localedir | --localedir | --localedi | --localed | --locale)
1155     ac_prev=localedir ;;
1156   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157     localedir=$ac_optarg ;;
1158
1159   -localstatedir | --localstatedir | --localstatedi | --localstated \
1160   | --localstate | --localstat | --localsta | --localst | --locals)
1161     ac_prev=localstatedir ;;
1162   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164     localstatedir=$ac_optarg ;;
1165
1166   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167     ac_prev=mandir ;;
1168   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169     mandir=$ac_optarg ;;
1170
1171   -nfp | --nfp | --nf)
1172     # Obsolete; use --without-fp.
1173     with_fp=no ;;
1174
1175   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176   | --no-cr | --no-c | -n)
1177     no_create=yes ;;
1178
1179   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181     no_recursion=yes ;;
1182
1183   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185   | --oldin | --oldi | --old | --ol | --o)
1186     ac_prev=oldincludedir ;;
1187   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190     oldincludedir=$ac_optarg ;;
1191
1192   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193     ac_prev=prefix ;;
1194   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195     prefix=$ac_optarg ;;
1196
1197   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198   | --program-pre | --program-pr | --program-p)
1199     ac_prev=program_prefix ;;
1200   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202     program_prefix=$ac_optarg ;;
1203
1204   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205   | --program-suf | --program-su | --program-s)
1206     ac_prev=program_suffix ;;
1207   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209     program_suffix=$ac_optarg ;;
1210
1211   -program-transform-name | --program-transform-name \
1212   | --program-transform-nam | --program-transform-na \
1213   | --program-transform-n | --program-transform- \
1214   | --program-transform | --program-transfor \
1215   | --program-transfo | --program-transf \
1216   | --program-trans | --program-tran \
1217   | --progr-tra | --program-tr | --program-t)
1218     ac_prev=program_transform_name ;;
1219   -program-transform-name=* | --program-transform-name=* \
1220   | --program-transform-nam=* | --program-transform-na=* \
1221   | --program-transform-n=* | --program-transform-=* \
1222   | --program-transform=* | --program-transfor=* \
1223   | --program-transfo=* | --program-transf=* \
1224   | --program-trans=* | --program-tran=* \
1225   | --progr-tra=* | --program-tr=* | --program-t=*)
1226     program_transform_name=$ac_optarg ;;
1227
1228   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229     ac_prev=pdfdir ;;
1230   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231     pdfdir=$ac_optarg ;;
1232
1233   -psdir | --psdir | --psdi | --psd | --ps)
1234     ac_prev=psdir ;;
1235   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236     psdir=$ac_optarg ;;
1237
1238   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239   | -silent | --silent | --silen | --sile | --sil)
1240     silent=yes ;;
1241
1242   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243     ac_prev=sbindir ;;
1244   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245   | --sbi=* | --sb=*)
1246     sbindir=$ac_optarg ;;
1247
1248   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250   | --sharedst | --shareds | --shared | --share | --shar \
1251   | --sha | --sh)
1252     ac_prev=sharedstatedir ;;
1253   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256   | --sha=* | --sh=*)
1257     sharedstatedir=$ac_optarg ;;
1258
1259   -site | --site | --sit)
1260     ac_prev=site ;;
1261   -site=* | --site=* | --sit=*)
1262     site=$ac_optarg ;;
1263
1264   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265     ac_prev=srcdir ;;
1266   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267     srcdir=$ac_optarg ;;
1268
1269   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270   | --syscon | --sysco | --sysc | --sys | --sy)
1271     ac_prev=sysconfdir ;;
1272   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274     sysconfdir=$ac_optarg ;;
1275
1276   -target | --target | --targe | --targ | --tar | --ta | --t)
1277     ac_prev=target_alias ;;
1278   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279     target_alias=$ac_optarg ;;
1280
1281   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282     verbose=yes ;;
1283
1284   -version | --version | --versio | --versi | --vers | -V)
1285     ac_init_version=: ;;
1286
1287   -with-* | --with-*)
1288     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid package name: $ac_package" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_package=`echo $ac_package| sed 's/-/_/g'`
1294     eval with_$ac_package=\$ac_optarg ;;
1295
1296   -without-* | --without-*)
1297     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1300       { echo "$as_me: error: invalid package name: $ac_package" >&2
1301    { (exit 1); exit 1; }; }
1302     ac_package=`echo $ac_package | sed 's/-/_/g'`
1303     eval with_$ac_package=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) { echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325    { (exit 1); exit 1; }; }
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333    { (exit 1); exit 1; }; }
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   { echo "$as_me: error: missing argument to $ac_option" >&2
1351    { (exit 1); exit 1; }; }
1352 fi
1353
1354 # Be sure to have absolute directory names.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   case $ac_val in
1362     [\\/$]* | ?:[\\/]* )  continue;;
1363     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364   esac
1365   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366    { (exit 1); exit 1; }; }
1367 done
1368
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1375
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378   if test "x$build_alias" = x; then
1379     cross_compiling=maybe
1380     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381     If a cross compiler is detected then cross compile mode will be used." >&2
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   { echo "$as_me: error: Working directory cannot be determined" >&2
1397    { (exit 1); exit 1; }; }
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399   { echo "$as_me: error: pwd does not report name of working directory" >&2
1400    { (exit 1); exit 1; }; }
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405   ac_srcdir_defaulted=yes
1406   # Try the directory containing this script, then the parent directory.
1407   ac_confdir=`$as_dirname -- "$0" ||
1408 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409          X"$0" : 'X\(//\)[^/]' \| \
1410          X"$0" : 'X\(//\)$' \| \
1411          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1412 echo X"$0" |
1413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)[^/].*/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\).*/{
1426             s//\1/
1427             q
1428           }
1429           s/.*/./; q'`
1430   srcdir=$ac_confdir
1431   if test ! -r "$srcdir/$ac_unique_file"; then
1432     srcdir=..
1433   fi
1434 else
1435   ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440    { (exit 1); exit 1; }; }
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1445    { (exit 1); exit 1; }; }
1446         pwd)`
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449   srcdir=.
1450 fi
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1454 case $srcdir in
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 esac
1457 for ac_var in $ac_precious_vars; do
1458   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459   eval ac_env_${ac_var}_value=\$${ac_var}
1460   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 done
1463
1464 #
1465 # Report the --help message.
1466 #
1467 if test "$ac_init_help" = "long"; then
1468   # Omit some internal or obsolete options to make the list less imposing.
1469   # This message is too long to be a string in the A/UX 3.1 sh.
1470   cat <<_ACEOF
1471 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1472
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE.  See below for descriptions of some of the useful variables.
1477
1478 Defaults for the options are specified in brackets.
1479
1480 Configuration:
1481   -h, --help              display this help and exit
1482       --help=short        display options specific to this package
1483       --help=recursive    display the short help of all the included packages
1484   -V, --version           display version information and exit
1485   -q, --quiet, --silent   do not print \`checking...' messages
1486       --cache-file=FILE   cache test results in FILE [disabled]
1487   -C, --config-cache      alias for \`--cache-file=config.cache'
1488   -n, --no-create         do not create output files
1489       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1490
1491 Installation directories:
1492   --prefix=PREFIX         install architecture-independent files in PREFIX
1493                           [$ac_default_prefix]
1494   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1495                           [PREFIX]
1496
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1501
1502 For better control, use the options below.
1503
1504 Fine tuning of the installation directories:
1505   --bindir=DIR           user executables [EPREFIX/bin]
1506   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1507   --libexecdir=DIR       program executables [EPREFIX/libexec]
1508   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1509   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1510   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1511   --libdir=DIR           object code libraries [EPREFIX/lib]
1512   --includedir=DIR       C header files [PREFIX/include]
1513   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1514   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1515   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1516   --infodir=DIR          info documentation [DATAROOTDIR/info]
1517   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1518   --mandir=DIR           man documentation [DATAROOTDIR/man]
1519   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1520   --htmldir=DIR          html documentation [DOCDIR]
1521   --dvidir=DIR           dvi documentation [DOCDIR]
1522   --pdfdir=DIR           pdf documentation [DOCDIR]
1523   --psdir=DIR            ps documentation [DOCDIR]
1524 _ACEOF
1525
1526   cat <<\_ACEOF
1527
1528 System types:
1529   --build=BUILD     configure for building on BUILD [guessed]
1530   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531   --target=TARGET   configure for building compilers for TARGET [HOST]
1532 _ACEOF
1533 fi
1534
1535 if test -n "$ac_init_help"; then
1536   case $ac_init_help in
1537      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1538    esac
1539   cat <<\_ACEOF
1540
1541 Optional Features:
1542   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1543   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1544   --enable-optimized      Compile with optimizations enabled (default is NO)
1545   --enable-profiling      Compile with profiling enabled (default is NO)
1546   --enable-assertions     Compile with assertion checks enabled (default is
1547                           YES)
1548   --enable-expensive-checks
1549                           Compile with expensive debug checks enabled (default
1550                           is NO)
1551   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1552                           NO)
1553   --enable-jit            Enable Just In Time Compiling (default is YES)
1554   --enable-doxygen        Build doxygen documentation (default is NO)
1555   --enable-threads        Use threads if available (default is YES)
1556   --enable-pic            Build LLVM with Position Independent Code (default
1557                           is YES)
1558   --enable-targets        Build specific host targets:
1559                           all,host-only,{target-name} (default=all)
1560   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1561                           %a (default is YES)
1562   --enable-bindings       Build specific language bindings:
1563                           all,auto,none,{binding-name} (default=auto)
1564   --enable-libffi         Check for the presence of libffi (default is YES)
1565   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1566                           Win32)
1567   --enable-llvmc-dynamic-plugins
1568                           Enable dynamic LLVMC plugins (default is YES)
1569   --enable-ltdl-install   install libltdl
1570   --enable-shared[=PKGS]  build shared libraries
1571                           [default=yes]
1572   --enable-static[=PKGS]  build static libraries
1573                           [default=yes]
1574   --enable-fast-install[=PKGS]
1575                           optimize for fast installation
1576                           [default=yes]
1577   --disable-libtool-lock  avoid locking (might break parallel builds)
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1583                           searches PATH)
1584   --with-llvmgcc          Specify location of llvm-gcc driver (default
1585                           searches PATH)
1586   --with-llvmgxx          Specify location of llvm-g++ driver (default
1587                           searches PATH)
1588   --with-extra-options    Specify additional options to compile LLVM with
1589   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1590                           is stdlib)
1591   --with-binutils-include Specify path to binutils/include/ containing
1592                           plugin-api.h file for gold plugin.
1593   --with-tclinclude       directory where tcl headers are
1594   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595   --with-pic              try to use only PIC/non-PIC objects [default=use
1596                           both]
1597   --with-tags[=TAGS]      include additional configurations [automatic]
1598   --with-udis86=<path>    Use udis86 external x86 disassembler library
1599
1600 Some influential environment variables:
1601   CC          C compiler command
1602   CFLAGS      C compiler flags
1603   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1604               nonstandard directory <lib dir>
1605   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606               you have headers in a nonstandard directory <include dir>
1607   CPP         C preprocessor
1608   CXX         C++ compiler command
1609   CXXFLAGS    C++ compiler flags
1610   CXXCPP      C++ preprocessor
1611   F77         Fortran 77 compiler command
1612   FFLAGS      Fortran 77 compiler flags
1613
1614 Use these variables to override the choices made by `configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1616
1617 Report bugs to <llvmbugs@cs.uiuc.edu>.
1618 _ACEOF
1619 ac_status=$?
1620 fi
1621
1622 if test "$ac_init_help" = "recursive"; then
1623   # If there are subdirs, report their specific --help.
1624   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625     test -d "$ac_dir" || continue
1626     ac_builddir=.
1627
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *)
1631   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1632   # A ".." for each directory in $ac_dir_suffix.
1633   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1634   case $ac_top_builddir_sub in
1635   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637   esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1643
1644 case $srcdir in
1645   .)  # We are building in place.
1646     ac_srcdir=.
1647     ac_top_srcdir=$ac_top_builddir_sub
1648     ac_abs_top_srcdir=$ac_pwd ;;
1649   [\\/]* | ?:[\\/]* )  # Absolute name.
1650     ac_srcdir=$srcdir$ac_dir_suffix;
1651     ac_top_srcdir=$srcdir
1652     ac_abs_top_srcdir=$srcdir ;;
1653   *) # Relative name.
1654     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655     ac_top_srcdir=$ac_top_build_prefix$srcdir
1656     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660     cd "$ac_dir" || { ac_status=$?; continue; }
1661     # Check for guested configure.
1662     if test -f "$ac_srcdir/configure.gnu"; then
1663       echo &&
1664       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665     elif test -f "$ac_srcdir/configure"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure" --help=recursive
1668     else
1669       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670     fi || ac_status=$?
1671     cd "$ac_pwd" || { ac_status=$?; break; }
1672   done
1673 fi
1674
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677   cat <<\_ACEOF
1678 llvm configure 2.6svn
1679 generated by GNU Autoconf 2.60
1680
1681 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1682 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685
1686 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1687 _ACEOF
1688   exit
1689 fi
1690 cat >config.log <<_ACEOF
1691 This file contains any messages produced by compilers while
1692 running configure, to aid debugging if configure makes a mistake.
1693
1694 It was created by llvm $as_me 2.6svn, which was
1695 generated by GNU Autoconf 2.60.  Invocation command line was
1696
1697   $ $0 $@
1698
1699 _ACEOF
1700 exec 5>>config.log
1701 {
1702 cat <<_ASUNAME
1703 ## --------- ##
1704 ## Platform. ##
1705 ## --------- ##
1706
1707 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1708 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1709 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1710 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1711 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1712
1713 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1714 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1715
1716 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1717 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1718 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1719 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1720 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1721 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1722 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1723
1724 _ASUNAME
1725
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   echo "PATH: $as_dir"
1732 done
1733 IFS=$as_save_IFS
1734
1735 } >&5
1736
1737 cat >&5 <<_ACEOF
1738
1739
1740 ## ----------- ##
1741 ## Core tests. ##
1742 ## ----------- ##
1743
1744 _ACEOF
1745
1746
1747 # Keep a trace of the command line.
1748 # Strip out --no-create and --no-recursion so they do not pile up.
1749 # Strip out --silent because we don't want to record it for future runs.
1750 # Also quote any args containing shell meta-characters.
1751 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_configure_args=
1753 ac_configure_args0=
1754 ac_configure_args1=
1755 ac_must_keep_next=false
1756 for ac_pass in 1 2
1757 do
1758   for ac_arg
1759   do
1760     case $ac_arg in
1761     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763     | -silent | --silent | --silen | --sile | --sil)
1764       continue ;;
1765     *\'*)
1766       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1767     esac
1768     case $ac_pass in
1769     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1770     2)
1771       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1772       if test $ac_must_keep_next = true; then
1773         ac_must_keep_next=false # Got value, back to normal.
1774       else
1775         case $ac_arg in
1776           *=* | --config-cache | -C | -disable-* | --disable-* \
1777           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779           | -with-* | --with-* | -without-* | --without-* | --x)
1780             case "$ac_configure_args0 " in
1781               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782             esac
1783             ;;
1784           -* ) ac_must_keep_next=true ;;
1785         esac
1786       fi
1787       ac_configure_args="$ac_configure_args '$ac_arg'"
1788       ;;
1789     esac
1790   done
1791 done
1792 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1793 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1794
1795 # When interrupted or exit'd, cleanup temporary files, and complete
1796 # config.log.  We remove comments because anyway the quotes in there
1797 # would cause problems or look ugly.
1798 # WARNING: Use '\'' to represent an apostrophe within the trap.
1799 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1800 trap 'exit_status=$?
1801   # Save into config.log some information that might help in debugging.
1802   {
1803     echo
1804
1805     cat <<\_ASBOX
1806 ## ---------------- ##
1807 ## Cache variables. ##
1808 ## ---------------- ##
1809 _ASBOX
1810     echo
1811     # The following way of writing the cache mishandles newlines in values,
1812 (
1813   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814     eval ac_val=\$$ac_var
1815     case $ac_val in #(
1816     *${as_nl}*)
1817       case $ac_var in #(
1818       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1819 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1820       esac
1821       case $ac_var in #(
1822       _ | IFS | as_nl) ;; #(
1823       *) $as_unset $ac_var ;;
1824       esac ;;
1825     esac
1826   done
1827   (set) 2>&1 |
1828     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1829     *${as_nl}ac_space=\ *)
1830       sed -n \
1831         "s/'\''/'\''\\\\'\'''\''/g;
1832           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833       ;; #(
1834     *)
1835       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1836       ;;
1837     esac |
1838     sort
1839 )
1840     echo
1841
1842     cat <<\_ASBOX
1843 ## ----------------- ##
1844 ## Output variables. ##
1845 ## ----------------- ##
1846 _ASBOX
1847     echo
1848     for ac_var in $ac_subst_vars
1849     do
1850       eval ac_val=\$$ac_var
1851       case $ac_val in
1852       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853       esac
1854       echo "$ac_var='\''$ac_val'\''"
1855     done | sort
1856     echo
1857
1858     if test -n "$ac_subst_files"; then
1859       cat <<\_ASBOX
1860 ## ------------------- ##
1861 ## File substitutions. ##
1862 ## ------------------- ##
1863 _ASBOX
1864       echo
1865       for ac_var in $ac_subst_files
1866       do
1867         eval ac_val=\$$ac_var
1868         case $ac_val in
1869         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870         esac
1871         echo "$ac_var='\''$ac_val'\''"
1872       done | sort
1873       echo
1874     fi
1875
1876     if test -s confdefs.h; then
1877       cat <<\_ASBOX
1878 ## ----------- ##
1879 ## confdefs.h. ##
1880 ## ----------- ##
1881 _ASBOX
1882       echo
1883       cat confdefs.h
1884       echo
1885     fi
1886     test "$ac_signal" != 0 &&
1887       echo "$as_me: caught signal $ac_signal"
1888     echo "$as_me: exit $exit_status"
1889   } >&5
1890   rm -f core *.core core.conftest.* &&
1891     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892     exit $exit_status
1893 ' 0
1894 for ac_signal in 1 2 13 15; do
1895   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1896 done
1897 ac_signal=0
1898
1899 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1900 rm -f -r conftest* confdefs.h
1901
1902 # Predefined preprocessor variables.
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_NAME "$PACKAGE_NAME"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1916 _ACEOF
1917
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_STRING "$PACKAGE_STRING"
1921 _ACEOF
1922
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1926 _ACEOF
1927
1928
1929 # Let the site file select an alternate cache file if it wants to.
1930 # Prefer explicitly selected file to automatically selected ones.
1931 if test -n "$CONFIG_SITE"; then
1932   set x "$CONFIG_SITE"
1933 elif test "x$prefix" != xNONE; then
1934   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1935 else
1936   set x "$ac_default_prefix/share/config.site" \
1937         "$ac_default_prefix/etc/config.site"
1938 fi
1939 shift
1940 for ac_site_file
1941 do
1942   if test -r "$ac_site_file"; then
1943     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1944 echo "$as_me: loading site script $ac_site_file" >&6;}
1945     sed 's/^/| /' "$ac_site_file" >&5
1946     . "$ac_site_file"
1947   fi
1948 done
1949
1950 if test -r "$cache_file"; then
1951   # Some versions of bash will fail to source /dev/null (special
1952   # files actually), so we avoid doing that.
1953   if test -f "$cache_file"; then
1954     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1955 echo "$as_me: loading cache $cache_file" >&6;}
1956     case $cache_file in
1957       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958       *)                      . "./$cache_file";;
1959     esac
1960   fi
1961 else
1962   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1963 echo "$as_me: creating cache $cache_file" >&6;}
1964   >$cache_file
1965 fi
1966
1967 # Check that the precious variables saved in the cache have kept the same
1968 # value.
1969 ac_cache_corrupted=false
1970 for ac_var in $ac_precious_vars; do
1971   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1972   eval ac_new_set=\$ac_env_${ac_var}_set
1973   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1974   eval ac_new_val=\$ac_env_${ac_var}_value
1975   case $ac_old_set,$ac_new_set in
1976     set,)
1977       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1978 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1979       ac_cache_corrupted=: ;;
1980     ,set)
1981       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1982 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1983       ac_cache_corrupted=: ;;
1984     ,);;
1985     *)
1986       if test "x$ac_old_val" != "x$ac_new_val"; then
1987         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1988 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1989         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1990 echo "$as_me:   former value:  $ac_old_val" >&2;}
1991         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1992 echo "$as_me:   current value: $ac_new_val" >&2;}
1993         ac_cache_corrupted=:
1994       fi;;
1995   esac
1996   # Pass precious variables to config.status.
1997   if test "$ac_new_set" = set; then
1998     case $ac_new_val in
1999     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2000     *) ac_arg=$ac_var=$ac_new_val ;;
2001     esac
2002     case " $ac_configure_args " in
2003       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2004       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2005     esac
2006   fi
2007 done
2008 if $ac_cache_corrupted; then
2009   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013    { (exit 1); exit 1; }; }
2014 fi
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040 ac_ext=c
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045
2046
2047
2048 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2049
2050
2051
2052
2053
2054
2055
2056 ac_aux_dir=
2057 for ac_dir in autoconf "$srcdir"/autoconf; do
2058   if test -f "$ac_dir/install-sh"; then
2059     ac_aux_dir=$ac_dir
2060     ac_install_sh="$ac_aux_dir/install-sh -c"
2061     break
2062   elif test -f "$ac_dir/install.sh"; then
2063     ac_aux_dir=$ac_dir
2064     ac_install_sh="$ac_aux_dir/install.sh -c"
2065     break
2066   elif test -f "$ac_dir/shtool"; then
2067     ac_aux_dir=$ac_dir
2068     ac_install_sh="$ac_aux_dir/shtool install -c"
2069     break
2070   fi
2071 done
2072 if test -z "$ac_aux_dir"; then
2073   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2074 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2075    { (exit 1); exit 1; }; }
2076 fi
2077
2078 # These three variables are undocumented and unsupported,
2079 # and are intended to be withdrawn in a future Autoconf release.
2080 # They can cause serious problems if a builder's source tree is in a directory
2081 # whose full name contains unusual characters.
2082 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2083 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2084 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2085
2086
2087
2088 if test ${srcdir} != "." ; then
2089   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2090     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2091 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2092    { (exit 1); exit 1; }; }
2093   fi
2094 fi
2095
2096 for i in `ls ${srcdir}/projects`
2097 do
2098   if test -d ${srcdir}/projects/${i} ; then
2099     case ${i} in
2100       CVS) ;;
2101       sample)       subdirs="$subdirs projects/sample"
2102     ;;
2103       privbracket)  subdirs="$subdirs projects/privbracket"
2104  ;;
2105       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2106  ;;
2107       # llvm-test is the old name of the test-suite, kept here for backwards
2108       # compatibility
2109       llvm-test)    subdirs="$subdirs projects/llvm-test"
2110  ;;
2111       test-suite)   subdirs="$subdirs projects/test-suite"
2112  ;;
2113       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2114 ;;
2115       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2116   ;;
2117       llvm-java)    subdirs="$subdirs projects/llvm-java"
2118  ;;
2119       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2120    ;;
2121       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2122  ;;
2123       poolalloc)    subdirs="$subdirs projects/poolalloc"
2124  ;;
2125       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2126  ;;
2127       *)
2128         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2129 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2130         ;;
2131     esac
2132   fi
2133 done
2134
2135
2136 # Make sure we can run config.sub.
2137 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2138   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2139 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2140    { (exit 1); exit 1; }; }
2141
2142 { echo "$as_me:$LINENO: checking build system type" >&5
2143 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_build+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   ac_build_alias=$build_alias
2148 test "x$ac_build_alias" = x &&
2149   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2150 test "x$ac_build_alias" = x &&
2151   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2152 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2153    { (exit 1); exit 1; }; }
2154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2155   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2156 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2157    { (exit 1); exit 1; }; }
2158
2159 fi
2160 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2161 echo "${ECHO_T}$ac_cv_build" >&6; }
2162 case $ac_cv_build in
2163 *-*-*) ;;
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2165 echo "$as_me: error: invalid value of canonical build" >&2;}
2166    { (exit 1); exit 1; }; };;
2167 esac
2168 build=$ac_cv_build
2169 ac_save_IFS=$IFS; IFS='-'
2170 set x $ac_cv_build
2171 shift
2172 build_cpu=$1
2173 build_vendor=$2
2174 shift; shift
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2177 build_os=$*
2178 IFS=$ac_save_IFS
2179 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2180
2181
2182 { echo "$as_me:$LINENO: checking host system type" >&5
2183 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2184 if test "${ac_cv_host+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test "x$host_alias" = x; then
2188   ac_cv_host=$ac_cv_build
2189 else
2190   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2191     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2192 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2193    { (exit 1); exit 1; }; }
2194 fi
2195
2196 fi
2197 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2198 echo "${ECHO_T}$ac_cv_host" >&6; }
2199 case $ac_cv_host in
2200 *-*-*) ;;
2201 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2202 echo "$as_me: error: invalid value of canonical host" >&2;}
2203    { (exit 1); exit 1; }; };;
2204 esac
2205 host=$ac_cv_host
2206 ac_save_IFS=$IFS; IFS='-'
2207 set x $ac_cv_host
2208 shift
2209 host_cpu=$1
2210 host_vendor=$2
2211 shift; shift
2212 # Remember, the first character of IFS is used to create $*,
2213 # except with old shells:
2214 host_os=$*
2215 IFS=$ac_save_IFS
2216 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2217
2218
2219 { echo "$as_me:$LINENO: checking target system type" >&5
2220 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2221 if test "${ac_cv_target+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test "x$target_alias" = x; then
2225   ac_cv_target=$ac_cv_host
2226 else
2227   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2228     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2230    { (exit 1); exit 1; }; }
2231 fi
2232
2233 fi
2234 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2235 echo "${ECHO_T}$ac_cv_target" >&6; }
2236 case $ac_cv_target in
2237 *-*-*) ;;
2238 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2239 echo "$as_me: error: invalid value of canonical target" >&2;}
2240    { (exit 1); exit 1; }; };;
2241 esac
2242 target=$ac_cv_target
2243 ac_save_IFS=$IFS; IFS='-'
2244 set x $ac_cv_target
2245 shift
2246 target_cpu=$1
2247 target_vendor=$2
2248 shift; shift
2249 # Remember, the first character of IFS is used to create $*,
2250 # except with old shells:
2251 target_os=$*
2252 IFS=$ac_save_IFS
2253 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2254
2255
2256 # The aliases save the names the user supplied, while $host etc.
2257 # will get canonicalized.
2258 test -n "$target_alias" &&
2259   test "$program_prefix$program_suffix$program_transform_name" = \
2260     NONENONEs,x,x, &&
2261   program_prefix=${target_alias}-
2262
2263 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2264 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2265 if test "${llvm_cv_os_type+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   case $host in
2269   *-*-aix*)
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="AIX"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-irix*)
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="IRIX"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-cygwin*)
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="Cygwin"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-darwin*)
2285     llvm_cv_link_all_option="-Wl,-all_load"
2286     llvm_cv_no_link_all_option="-Wl,-noall_load"
2287     llvm_cv_os_type="Darwin"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-freebsd*)
2290     llvm_cv_link_all_option="-Wl,--whole-archive"
2291     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292     llvm_cv_os_type="FreeBSD"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-openbsd*)
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="OpenBSD"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-netbsd*)
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="NetBSD"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-dragonfly*)
2305     llvm_cv_link_all_option="-Wl,--whole-archive"
2306     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307     llvm_cv_os_type="DragonFly"
2308     llvm_cv_platform_type="Unix" ;;
2309   *-*-hpux*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="HP-UX"
2313     llvm_cv_platform_type="Unix" ;;
2314   *-*-interix*)
2315     llvm_cv_link_all_option="-Wl,--whole-archive"
2316     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317     llvm_cv_os_type="Interix"
2318     llvm_cv_platform_type="Unix" ;;
2319   *-*-linux*)
2320     llvm_cv_link_all_option="-Wl,--whole-archive"
2321     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322     llvm_cv_os_type="Linux"
2323     llvm_cv_platform_type="Unix" ;;
2324   *-*-solaris*)
2325     llvm_cv_link_all_option="-Wl,-z,allextract"
2326     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2327     llvm_cv_os_type="SunOS"
2328     llvm_cv_platform_type="Unix" ;;
2329   *-*-win32*)
2330     llvm_cv_link_all_option="-Wl,--whole-archive"
2331     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2332     llvm_cv_os_type="Win32"
2333     llvm_cv_platform_type="Win32" ;;
2334   *-*-mingw*)
2335     llvm_cv_link_all_option="-Wl,--whole-archive"
2336     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2337     llvm_cv_os_type="MingW"
2338     llvm_cv_platform_type="Win32" ;;
2339   *)
2340     llvm_cv_link_all_option=""
2341     llvm_cv_no_link_all_option=""
2342     llvm_cv_os_type="Unknown"
2343     llvm_cv_platform_type="Unknown" ;;
2344 esac
2345 fi
2346 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2347 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2348
2349 if test "$llvm_cv_os_type" = "Unknown" ; then
2350   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2351 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355 OS=$llvm_cv_os_type
2356
2357
2358 LINKALL=$llvm_cv_link_all_option
2359
2360 NOLINKALL=$llvm_cv_no_link_all_option
2361
2362
2363 case $llvm_cv_platform_type in
2364   Unix)
2365
2366 cat >>confdefs.h <<\_ACEOF
2367 #define LLVM_ON_UNIX 1
2368 _ACEOF
2369
2370     LLVM_ON_UNIX=1
2371
2372     LLVM_ON_WIN32=0
2373
2374     ;;
2375   Win32)
2376
2377 cat >>confdefs.h <<\_ACEOF
2378 #define LLVM_ON_WIN32 1
2379 _ACEOF
2380
2381     LLVM_ON_UNIX=0
2382
2383     LLVM_ON_WIN32=1
2384
2385     ;;
2386 esac
2387
2388 { echo "$as_me:$LINENO: checking target architecture" >&5
2389 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2390 if test "${llvm_cv_target_arch+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   case $target in
2394   i?86-*)                 llvm_cv_target_arch="x86" ;;
2395   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2396   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2397   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2398   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2399   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2400   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2401   mips-*)                 llvm_cv_target_arch="Mips" ;;
2402   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2403   xcore-*)                llvm_cv_target_arch="XCore" ;;
2404   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2405   *)                      llvm_cv_target_arch="Unknown" ;;
2406 esac
2407 fi
2408 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2409 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2410
2411 if test "$llvm_cv_target_arch" = "Unknown" ; then
2412   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2413 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2414 fi
2415
2416 # Determine the LLVM native architecture for the target
2417 case "$llvm_cv_target_arch" in
2418     x86)     LLVM_NATIVE_ARCH="X86" ;;
2419     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2420     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2421 esac
2422
2423 ARCH=$llvm_cv_target_arch
2424
2425
2426 ac_ext=c
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 if test -n "$ac_tool_prefix"; then
2432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$CC"; then
2440   ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461   { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2463 else
2464   { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2466 fi
2467
2468
2469 fi
2470 if test -z "$ac_cv_prog_CC"; then
2471   ac_ct_CC=$CC
2472   # Extract the first word of "gcc", so it can be a program name with args.
2473 set dummy gcc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$ac_ct_CC"; then
2480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2489     ac_cv_prog_ac_ct_CC="gcc"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502 echo "${ECHO_T}$ac_ct_CC" >&6; }
2503 else
2504   { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506 fi
2507
2508   if test "x$ac_ct_CC" = x; then
2509     CC=""
2510   else
2511     case $cross_compiling:$ac_tool_warned in
2512 yes:)
2513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet.  If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&5
2516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2519 ac_tool_warned=yes ;;
2520 esac
2521     CC=$ac_ct_CC
2522   fi
2523 else
2524   CC="$ac_cv_prog_CC"
2525 fi
2526
2527 if test -z "$CC"; then
2528           if test -n "$ac_tool_prefix"; then
2529     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$CC"; then
2537   ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544   for ac_exec_ext in '' $ac_executable_extensions; do
2545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546     ac_cv_prog_CC="${ac_tool_prefix}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 fi
2555 fi
2556 CC=$ac_cv_prog_CC
2557 if test -n "$CC"; then
2558   { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2560 else
2561   { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2563 fi
2564
2565
2566   fi
2567 fi
2568 if test -z "$CC"; then
2569   # Extract the first word of "cc", so it can be a program name with args.
2570 set dummy cc; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_CC+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   if test -n "$CC"; then
2577   ac_cv_prog_CC="$CC" # Let the user override the test.
2578 else
2579   ac_prog_rejected=no
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2588        ac_prog_rejected=yes
2589        continue
2590      fi
2591     ac_cv_prog_CC="cc"
2592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593     break 2
2594   fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 if test $ac_prog_rejected = yes; then
2600   # We found a bogon in the path, so make sure we never use it.
2601   set dummy $ac_cv_prog_CC
2602   shift
2603   if test $# != 0; then
2604     # We chose a different compiler from the bogus one.
2605     # However, it has the same basename, so the bogon will be chosen
2606     # first if we set CC to just the basename; use the full file name.
2607     shift
2608     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2609   fi
2610 fi
2611 fi
2612 fi
2613 CC=$ac_cv_prog_CC
2614 if test -n "$CC"; then
2615   { echo "$as_me:$LINENO: result: $CC" >&5
2616 echo "${ECHO_T}$CC" >&6; }
2617 else
2618   { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2620 fi
2621
2622
2623 fi
2624 if test -z "$CC"; then
2625   if test -n "$ac_tool_prefix"; then
2626   for ac_prog in cl.exe
2627   do
2628     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   if test -n "$CC"; then
2636   ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643   for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2659 else
2660   { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2662 fi
2663
2664
2665     test -n "$CC" && break
2666   done
2667 fi
2668 if test -z "$CC"; then
2669   ac_ct_CC=$CC
2670   for ac_prog in cl.exe
2671 do
2672   # Extract the first word of "$ac_prog", so it can be a program name with args.
2673 set dummy $ac_prog; ac_word=$2
2674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   if test -n "$ac_ct_CC"; then
2680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687   for ac_exec_ext in '' $ac_executable_extensions; do
2688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2689     ac_cv_prog_ac_ct_CC="$ac_prog"
2690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2702 echo "${ECHO_T}$ac_ct_CC" >&6; }
2703 else
2704   { echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6; }
2706 fi
2707
2708
2709   test -n "$ac_ct_CC" && break
2710 done
2711
2712   if test "x$ac_ct_CC" = x; then
2713     CC=""
2714   else
2715     case $cross_compiling:$ac_tool_warned in
2716 yes:)
2717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet.  If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&5
2720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2723 ac_tool_warned=yes ;;
2724 esac
2725     CC=$ac_ct_CC
2726   fi
2727 fi
2728
2729 fi
2730
2731
2732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: no acceptable C compiler found in \$PATH
2735 See \`config.log' for more details." >&2;}
2736    { (exit 1); exit 1; }; }
2737
2738 # Provide some information about the compiler.
2739 echo "$as_me:$LINENO: checking for C compiler version" >&5
2740 ac_compiler=`set X $ac_compile; echo $2`
2741 { (ac_try="$ac_compiler --version >&5"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_compiler --version >&5") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }
2751 { (ac_try="$ac_compiler -v >&5"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_compiler -v >&5") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }
2761 { (ac_try="$ac_compiler -V >&5"
2762 case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_compiler -V >&5") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }
2771
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 ac_clean_files_save=$ac_clean_files
2788 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2789 # Try to create an executable without -o first, disregard a.out.
2790 # It will help us diagnose broken compilers, and finding out an intuition
2791 # of exeext.
2792 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2793 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2794 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2795 #
2796 # List of possible output files, starting from the most likely.
2797 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2798 # only as a last resort.  b.out is created by i960 compilers.
2799 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2800 #
2801 # The IRIX 6 linker writes into existing files which may not be
2802 # executable, retaining their permissions.  Remove them first so a
2803 # subsequent execution test works.
2804 ac_rmfiles=
2805 for ac_file in $ac_files
2806 do
2807   case $ac_file in
2808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2809     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810   esac
2811 done
2812 rm -f $ac_rmfiles
2813
2814 if { (ac_try="$ac_link_default"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_link_default") 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; then
2824   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2826 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2827 # so that the user can short-circuit this test for compilers unknown to
2828 # Autoconf.
2829 for ac_file in $ac_files
2830 do
2831   test -f "$ac_file" || continue
2832   case $ac_file in
2833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2834         ;;
2835     [ab].out )
2836         # We found the default executable, but exeext='' is most
2837         # certainly right.
2838         break;;
2839     *.* )
2840         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2841         then :; else
2842            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843         fi
2844         # We set ac_cv_exeext here because the later test for it is not
2845         # safe: cross compilers may not add the suffix if given an `-o'
2846         # argument, so we may need to know it at that point already.
2847         # Even if this section looks crufty: it has the advantage of
2848         # actually working.
2849         break;;
2850     * )
2851         break;;
2852   esac
2853 done
2854 test "$ac_cv_exeext" = no && ac_cv_exeext=
2855
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&2;}
2864    { (exit 77); exit 77; }; }
2865 fi
2866
2867 ac_exeext=$ac_cv_exeext
2868 { echo "$as_me:$LINENO: result: $ac_file" >&5
2869 echo "${ECHO_T}$ac_file" >&6; }
2870
2871 # Check that the compiler produces executables we can run.  If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878   if { ac_try='./$ac_file'
2879   { (case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884   (eval "$ac_try") 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; }; then
2888     cross_compiling=no
2889   else
2890     if test "$cross_compiling" = maybe; then
2891         cross_compiling=yes
2892     else
2893         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899    { (exit 1); exit 1; }; }
2900     fi
2901   fi
2902 fi
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2905
2906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run.  If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 echo "${ECHO_T}$cross_compiling" >&6; }
2914
2915 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917 if { (ac_try="$ac_link"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_link") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; then
2927   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2929 # work properly (i.e., refer to `conftest.exe'), while it won't with
2930 # `rm'.
2931 for ac_file in conftest.exe conftest conftest.*; do
2932   test -f "$ac_file" || continue
2933   case $ac_file in
2934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936           break;;
2937     * ) break;;
2938   esac
2939 done
2940 else
2941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&2;}
2945    { (exit 1); exit 1; }; }
2946 fi
2947
2948 rm -f conftest$ac_cv_exeext
2949 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2951
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2954 ac_exeext=$EXEEXT
2955 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2957 if test "${ac_cv_objext+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.o conftest.obj
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_compile") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; then
2986   for ac_file in conftest.o conftest.obj conftest.*; do
2987   test -f "$ac_file" || continue;
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2990     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2991        break;;
2992   esac
2993 done
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&2;}
3002    { (exit 1); exit 1; }; }
3003 fi
3004
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006 fi
3007 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008 echo "${ECHO_T}$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3010 ac_objext=$OBJEXT
3011 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022
3023 int
3024 main ()
3025 {
3026 #ifndef __GNUC__
3027        choke me
3028 #endif
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_compile") 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } &&
3048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   ac_compiler_gnu=yes
3069 else
3070   echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3072
3073         ac_compiler_gnu=no
3074 fi
3075
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078
3079 fi
3080 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3082 GCC=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CFLAGS=${CFLAGS+set}
3084 ac_save_CFLAGS=$CFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3086 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cc_g+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   ac_save_c_werror_flag=$ac_c_werror_flag
3091    ac_c_werror_flag=yes
3092    ac_cv_prog_cc_g=no
3093    CFLAGS="-g"
3094    cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_compile") 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; } &&
3133          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3143   ac_cv_prog_cc_g=yes
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148         CFLAGS=""
3149       cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compile") 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } &&
3178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179   { (case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_try") 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; } &&
3188          { ac_try='test -s conftest.$ac_objext'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; }; then
3198   :
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203         ac_c_werror_flag=$ac_save_c_werror_flag
3204          CFLAGS="-g"
3205          cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h.  */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h.  */
3211
3212 int
3213 main ()
3214 {
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_compile") 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } &&
3234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3235   { (case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_try") 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; } &&
3244          { ac_try='test -s conftest.$ac_objext'
3245   { (case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250   (eval "$ac_try") 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }; }; then
3254   ac_cv_prog_cc_g=yes
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 fi
3264
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 fi
3267
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269    ac_c_werror_flag=$ac_save_c_werror_flag
3270 fi
3271 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3272 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3273 if test "$ac_test_CFLAGS" = set; then
3274   CFLAGS=$ac_save_CFLAGS
3275 elif test $ac_cv_prog_cc_g = yes; then
3276   if test "$GCC" = yes; then
3277     CFLAGS="-g -O2"
3278   else
3279     CFLAGS="-g"
3280   fi
3281 else
3282   if test "$GCC" = yes; then
3283     CFLAGS="-O2"
3284   else
3285     CFLAGS=
3286   fi
3287 fi
3288 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3289 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3290 if test "${ac_cv_prog_cc_c89+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   ac_cv_prog_cc_c89=no
3294 ac_save_CC=$CC
3295 cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #include <stdarg.h>
3302 #include <stdio.h>
3303 #include <sys/types.h>
3304 #include <sys/stat.h>
3305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3306 struct buf { int x; };
3307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3308 static char *e (p, i)
3309      char **p;
3310      int i;
3311 {
3312   return p[i];
3313 }
3314 static char *f (char * (*g) (char **, int), char **p, ...)
3315 {
3316   char *s;
3317   va_list v;
3318   va_start (v,p);
3319   s = g (p, va_arg (v,int));
3320   va_end (v);
3321   return s;
3322 }
3323
3324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3325    function prototypes and stuff, but not '\xHH' hex character constants.
3326    These don't provoke an error unfortunately, instead are silently treated
3327    as 'x'.  The following induces an error, until -std is added to get
3328    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3329    array size at least.  It's necessary to write '\x00'==0 to get something
3330    that's true only with -std.  */
3331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3332
3333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3334    inside strings and character constants.  */
3335 #define FOO(x) 'x'
3336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3337
3338 int test (int i, double x);
3339 struct s1 {int (*f) (int a);};
3340 struct s2 {int (*f) (double a);};
3341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3342 int argc;
3343 char **argv;
3344 int
3345 main ()
3346 {
3347 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3353         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3354 do
3355   CC="$ac_save_CC $ac_arg"
3356   rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_compile") 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } &&
3370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3371   { (case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_try") 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; } &&
3380          { ac_try='test -s conftest.$ac_objext'
3381   { (case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386   (eval "$ac_try") 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; }; then
3390   ac_cv_prog_cc_c89=$ac_arg
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395
3396 fi
3397
3398 rm -f core conftest.err conftest.$ac_objext
3399   test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3403
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407   x)
3408     { echo "$as_me:$LINENO: result: none needed" >&5
3409 echo "${ECHO_T}none needed" >&6; } ;;
3410   xno)
3411     { echo "$as_me:$LINENO: result: unsupported" >&5
3412 echo "${ECHO_T}unsupported" >&6; } ;;
3413   *)
3414     CC="$CC $ac_cv_prog_cc_c89"
3415     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3416 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3436   CPP=
3437 fi
3438 if test -z "$CPP"; then
3439   if test "${ac_cv_prog_CPP+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442       # Double quotes because CPP needs to be expanded
3443     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3444     do
3445       ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3447 do
3448   # Use a header file that comes with gcc, so configuring glibc
3449   # with a fresh cross-compiler works.
3450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451   # <limits.h> exists even on freestanding compilers.
3452   # On the NeXT, cc -E runs the code through the compiler's parser,
3453   # not just through cpp. "Syntax error" is here to catch this case.
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465                      Syntax error
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474   ac_status=$?
3475   grep -v '^ *+' conftest.er1 >conftest.err
3476   rm -f conftest.er1
3477   cat conftest.err >&5
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } >/dev/null; then
3480   if test -s conftest.err; then
3481     ac_cpp_err=$ac_c_preproc_warn_flag
3482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483   else
3484     ac_cpp_err=
3485   fi
3486 else
3487   ac_cpp_err=yes
3488 fi
3489 if test -z "$ac_cpp_err"; then
3490   :
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495   # Broken: fails on valid input.
3496 continue
3497 fi
3498
3499 rm -f conftest.err conftest.$ac_ext
3500
3501   # OK, works on sane cases.  Now check whether nonexistent headers
3502   # can be detected and how.
3503   cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 #include <ac_nonexistent.h>
3510 _ACEOF
3511 if { (ac_try="$ac_cpp conftest.$ac_ext"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } >/dev/null; then
3524   if test -s conftest.err; then
3525     ac_cpp_err=$ac_c_preproc_warn_flag
3526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527   else
3528     ac_cpp_err=
3529   fi
3530 else
3531   ac_cpp_err=yes
3532 fi
3533 if test -z "$ac_cpp_err"; then
3534   # Broken: success on invalid input.
3535 continue
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540   # Passes both tests.
3541 ac_preproc_ok=:
3542 break
3543 fi
3544
3545 rm -f conftest.err conftest.$ac_ext
3546
3547 done
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then
3551   break
3552 fi
3553
3554     done
3555     ac_cv_prog_CPP=$CPP
3556
3557 fi
3558   CPP=$ac_cv_prog_CPP
3559 else
3560   ac_cv_prog_CPP=$CPP
3561 fi
3562 { echo "$as_me:$LINENO: result: $CPP" >&5
3563 echo "${ECHO_T}$CPP" >&6; }
3564 ac_preproc_ok=false
3565 for ac_c_preproc_warn_flag in '' yes
3566 do
3567   # Use a header file that comes with gcc, so configuring glibc
3568   # with a fresh cross-compiler works.
3569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570   # <limits.h> exists even on freestanding compilers.
3571   # On the NeXT, cc -E runs the code through the compiler's parser,
3572   # not just through cpp. "Syntax error" is here to catch this case.
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584                      Syntax error
3585 _ACEOF
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } >/dev/null; then
3599   if test -s conftest.err; then
3600     ac_cpp_err=$ac_c_preproc_warn_flag
3601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3602   else
3603     ac_cpp_err=
3604   fi
3605 else
3606   ac_cpp_err=yes
3607 fi
3608 if test -z "$ac_cpp_err"; then
3609   :
3610 else
3611   echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614   # Broken: fails on valid input.
3615 continue
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620   # OK, works on sane cases.  Now check whether nonexistent headers
3621   # can be detected and how.
3622   cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 #include <ac_nonexistent.h>
3629 _ACEOF
3630 if { (ac_try="$ac_cpp conftest.$ac_ext"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } >/dev/null; then
3643   if test -s conftest.err; then
3644     ac_cpp_err=$ac_c_preproc_warn_flag
3645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3646   else
3647     ac_cpp_err=
3648   fi
3649 else
3650   ac_cpp_err=yes
3651 fi
3652 if test -z "$ac_cpp_err"; then
3653   # Broken: success on invalid input.
3654 continue
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659   # Passes both tests.
3660 ac_preproc_ok=:
3661 break
3662 fi
3663
3664 rm -f conftest.err conftest.$ac_ext
3665
3666 done
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then
3670   :
3671 else
3672   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3673 See \`config.log' for more details." >&5
3674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3675 See \`config.log' for more details." >&2;}
3676    { (exit 1); exit 1; }; }
3677 fi
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685
3686 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3687 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   # Extract the first word of "grep ggrep" to use in msg output
3692 if test -z "$GREP"; then
3693 set dummy grep ggrep; ac_prog_name=$2
3694 if test "${ac_cv_path_GREP+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   ac_path_GREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_prog in grep ggrep; do
3705   for ac_exec_ext in '' $ac_executable_extensions; do
3706     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3707     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3708     # Check for GNU ac_path_GREP and select it if it is found.
3709   # Check for GNU $ac_path_GREP
3710 case `"$ac_path_GREP" --version 2>&1` in
3711 *GNU*)
3712   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3713 *)
3714   ac_count=0
3715   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3716   while :
3717   do
3718     cat "conftest.in" "conftest.in" >"conftest.tmp"
3719     mv "conftest.tmp" "conftest.in"
3720     cp "conftest.in" "conftest.nl"
3721     echo 'GREP' >> "conftest.nl"
3722     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724     ac_count=`expr $ac_count + 1`
3725     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726       # Best one so far, save it but keep looking for a better one
3727       ac_cv_path_GREP="$ac_path_GREP"
3728       ac_path_GREP_max=$ac_count
3729     fi
3730     # 10*(2^10) chars as input seems more than enough
3731     test $ac_count -gt 10 && break
3732   done
3733   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 esac
3735
3736
3737     $ac_path_GREP_found && break 3
3738   done
3739 done
3740
3741 done
3742 IFS=$as_save_IFS
3743
3744
3745 fi
3746
3747 GREP="$ac_cv_path_GREP"
3748 if test -z "$GREP"; then
3749   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3750 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3751    { (exit 1); exit 1; }; }
3752 fi
3753
3754 else
3755   ac_cv_path_GREP=$GREP
3756 fi
3757
3758
3759 fi
3760 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3761 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3762  GREP="$ac_cv_path_GREP"
3763
3764
3765 { echo "$as_me:$LINENO: checking for egrep" >&5
3766 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3767 if test "${ac_cv_path_EGREP+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771    then ac_cv_path_EGREP="$GREP -E"
3772    else
3773      # Extract the first word of "egrep" to use in msg output
3774 if test -z "$EGREP"; then
3775 set dummy egrep; ac_prog_name=$2
3776 if test "${ac_cv_path_EGREP+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   ac_path_EGREP_found=false
3780 # Loop through the user's path and test for each of PROGNAME-LIST
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_prog in egrep; do
3787   for ac_exec_ext in '' $ac_executable_extensions; do
3788     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3789     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3790     # Check for GNU ac_path_EGREP and select it if it is found.
3791   # Check for GNU $ac_path_EGREP
3792 case `"$ac_path_EGREP" --version 2>&1` in
3793 *GNU*)
3794   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3795 *)
3796   ac_count=0
3797   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3798   while :
3799   do
3800     cat "conftest.in" "conftest.in" >"conftest.tmp"
3801     mv "conftest.tmp" "conftest.in"
3802     cp "conftest.in" "conftest.nl"
3803     echo 'EGREP' >> "conftest.nl"
3804     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806     ac_count=`expr $ac_count + 1`
3807     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3808       # Best one so far, save it but keep looking for a better one
3809       ac_cv_path_EGREP="$ac_path_EGREP"
3810       ac_path_EGREP_max=$ac_count
3811     fi
3812     # 10*(2^10) chars as input seems more than enough
3813     test $ac_count -gt 10 && break
3814   done
3815   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816 esac
3817
3818
3819     $ac_path_EGREP_found && break 3
3820   done
3821 done
3822
3823 done
3824 IFS=$as_save_IFS
3825
3826
3827 fi
3828
3829 EGREP="$ac_cv_path_EGREP"
3830 if test -z "$EGREP"; then
3831   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3832 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3833    { (exit 1); exit 1; }; }
3834 fi
3835
3836 else
3837   ac_cv_path_EGREP=$EGREP
3838 fi
3839
3840
3841    fi
3842 fi
3843 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3844 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3845  EGREP="$ac_cv_path_EGREP"
3846
3847
3848 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3850 if test "${ac_cv_header_stdc+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h.  */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h.  */
3859 #include <stdlib.h>
3860 #include <stdarg.h>
3861 #include <string.h>
3862 #include <float.h>
3863
3864 int
3865 main ()
3866 {
3867
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879   (eval "$ac_compile") 2>conftest.er1
3880   ac_status=$?
3881   grep -v '^ *+' conftest.er1 >conftest.err
3882   rm -f conftest.er1
3883   cat conftest.err >&5
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } &&
3886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3887   { (case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_try") 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); }; } &&
3896          { ac_try='test -s conftest.$ac_objext'
3897   { (case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902   (eval "$ac_try") 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; }; then
3906   ac_cv_header_stdc=yes
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         ac_cv_header_stdc=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 if test $ac_cv_header_stdc = yes; then
3917   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
3925
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928   $EGREP "memchr" >/dev/null 2>&1; then
3929   :
3930 else
3931   ac_cv_header_stdc=no
3932 fi
3933 rm -f conftest*
3934
3935 fi
3936
3937 if test $ac_cv_header_stdc = yes; then
3938   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939   cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 #include <stdlib.h>
3946
3947 _ACEOF
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949   $EGREP "free" >/dev/null 2>&1; then
3950   :
3951 else
3952   ac_cv_header_stdc=no
3953 fi
3954 rm -f conftest*
3955
3956 fi
3957
3958 if test $ac_cv_header_stdc = yes; then
3959   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3960   if test "$cross_compiling" = yes; then
3961   :
3962 else
3963   cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969 #include <ctype.h>
3970 #include <stdlib.h>
3971 #if ((' ' & 0x0FF) == 0x020)
3972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3974 #else
3975 # define ISLOWER(c) \
3976                    (('a' <= (c) && (c) <= 'i') \
3977                      || ('j' <= (c) && (c) <= 'r') \
3978                      || ('s' <= (c) && (c) <= 'z'))
3979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3980 #endif
3981
3982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3983 int
3984 main ()
3985 {
3986   int i;
3987   for (i = 0; i < 256; i++)
3988     if (XOR (islower (i), ISLOWER (i))
3989         || toupper (i) != TOUPPER (i))
3990       return 2;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3996 case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001   (eval "$ac_link") 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4005   { (case "(($ac_try" in
4006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007   *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010   (eval "$ac_try") 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }; }; then
4014   :
4015 else
4016   echo "$as_me: program exited with status $ac_status" >&5
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 ( exit $ac_status )
4021 ac_cv_header_stdc=no
4022 fi
4023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4024 fi
4025
4026
4027 fi
4028 fi
4029 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4030 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4031 if test $ac_cv_header_stdc = yes; then
4032
4033 cat >>confdefs.h <<\_ACEOF
4034 #define STDC_HEADERS 1
4035 _ACEOF
4036
4037 fi
4038
4039 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4050                   inttypes.h stdint.h unistd.h
4051 do
4052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h.  */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h.  */
4064 $ac_includes_default
4065
4066 #include <$ac_header>
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075   (eval "$ac_compile") 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } &&
4082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083   { (case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_try") 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; } &&
4092          { ac_try='test -s conftest.$ac_objext'
4093   { (case "(($ac_try" in
4094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095   *) ac_try_echo=$ac_try;;
4096 esac
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098   (eval "$ac_try") 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   eval "$as_ac_Header=yes"
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107         eval "$as_ac_Header=no"
4108 fi
4109
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 fi
4112 ac_res=`eval echo '${'$as_ac_Header'}'`
4113                { echo "$as_me:$LINENO: result: $ac_res" >&5
4114 echo "${ECHO_T}$ac_res" >&6; }
4115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4116   cat >>confdefs.h <<_ACEOF
4117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118 _ACEOF
4119
4120 fi
4121
4122 done
4123
4124
4125 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4126 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4127 if test "${ac_cv_c_bigendian+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   # See if sys/param.h defines the BYTE_ORDER macro.
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <sys/types.h>
4138 #include <sys/param.h>
4139
4140 int
4141 main ()
4142 {
4143 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4144  bogus endian macros
4145 #endif
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4153 case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158   (eval "$ac_compile") 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } &&
4165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4166   { (case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171   (eval "$ac_try") 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; } &&
4175          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4185   # It does; now see whether it defined to BIG_ENDIAN or not.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <sys/types.h>
4193 #include <sys/param.h>
4194
4195 int
4196 main ()
4197 {
4198 #if BYTE_ORDER != BIG_ENDIAN
4199  not big endian
4200 #endif
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_compile") 2>conftest.er1
4214   ac_status=$?
4215   grep -v '^ *+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } &&
4220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221   { (case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_try") 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; } &&
4230          { ac_try='test -s conftest.$ac_objext'
4231   { (case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_try") 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_cv_c_bigendian=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245         ac_cv_c_bigendian=no
4246 fi
4247
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 else
4250   echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253         # It does not; compile a test program.
4254 if test "$cross_compiling" = yes; then
4255   # try to guess the endianness by grepping values into an object file
4256   ac_cv_c_bigendian=unknown
4257   cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4264 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4265 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4266 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4267 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4268 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4269 int
4270 main ()
4271 {
4272  _ascii (); _ebcdic ();
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284   (eval "$ac_compile") 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4292   { (case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; } &&
4301          { ac_try='test -s conftest.$ac_objext'
4302   { (case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_try") 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4312   ac_cv_c_bigendian=yes
4313 fi
4314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4315   if test "$ac_cv_c_bigendian" = unknown; then
4316     ac_cv_c_bigendian=no
4317   else
4318     # finding both strings is unlikely to happen, but who knows?
4319     ac_cv_c_bigendian=unknown
4320   fi
4321 fi
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326
4327 fi
4328
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 else
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 $ac_includes_default
4338 int
4339 main ()
4340 {
4341
4342   /* Are we little or big endian?  From Harbison&Steele.  */
4343   union
4344   {
4345     long int l;
4346     char c[sizeof (long int)];
4347   } u;
4348   u.l = 1;
4349   return u.c[sizeof (long int) - 1] == 1;
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest$ac_exeext
4356 if { (ac_try="$ac_link"
4357 case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362   (eval "$ac_link") 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4366   { (case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371   (eval "$ac_try") 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }; }; then
4375   ac_cv_c_bigendian=no
4376 else
4377   echo "$as_me: program exited with status $ac_status" >&5
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 ( exit $ac_status )
4382 ac_cv_c_bigendian=yes
4383 fi
4384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4385 fi
4386
4387
4388 fi
4389
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 fi
4392 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4393 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4394 case $ac_cv_c_bigendian in
4395   yes)
4396     ENDIAN=big
4397  ;;
4398   no)
4399     ENDIAN=little
4400  ;;
4401   *)
4402     { { echo "$as_me:$LINENO: error: unknown endianness
4403 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4404 echo "$as_me: error: unknown endianness
4405 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4406    { (exit 1); exit 1; }; } ;;
4407 esac
4408
4409
4410 if test "$cross_compiling" = yes; then
4411   LLVM_CROSS_COMPILING=1
4412
4413
4414 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4415 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4416 if test "${ac_cv_build_exeext+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4420   ac_cv_build_exeext=.exe
4421 else
4422   ac_build_prefix=${build_alias}-
4423
4424   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4425 set dummy ${ac_build_prefix}gcc; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   if test -n "$BUILD_CC"; then
4432   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 BUILD_CC=$ac_cv_prog_BUILD_CC
4452 if test -n "$BUILD_CC"; then
4453   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4454 echo "${ECHO_T}$BUILD_CC" >&6; }
4455 else
4456   { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4458 fi
4459
4460
4461   if test -z "$BUILD_CC"; then
4462      # Extract the first word of "gcc", so it can be a program name with args.
4463 set dummy gcc; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -n "$BUILD_CC"; then
4470   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479     ac_cv_prog_BUILD_CC="gcc"
4480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481     break 2
4482   fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 fi
4488 fi
4489 BUILD_CC=$ac_cv_prog_BUILD_CC
4490 if test -n "$BUILD_CC"; then
4491   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4492 echo "${ECHO_T}$BUILD_CC" >&6; }
4493 else
4494   { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4496 fi
4497
4498
4499      if test -z "$BUILD_CC"; then
4500        # Extract the first word of "cc", so it can be a program name with args.
4501 set dummy cc; ac_word=$2
4502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   if test -n "$BUILD_CC"; then
4508   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4509 else
4510   ac_prog_rejected=no
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4518     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4519        ac_prog_rejected=yes
4520        continue
4521      fi
4522     ac_cv_prog_BUILD_CC="cc"
4523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4529
4530 if test $ac_prog_rejected = yes; then
4531   # We found a bogon in the path, so make sure we never use it.
4532   set dummy $ac_cv_prog_BUILD_CC
4533   shift
4534   if test $# != 0; then
4535     # We chose a different compiler from the bogus one.
4536     # However, it has the same basename, so the bogon will be chosen
4537     # first if we set BUILD_CC to just the basename; use the full file name.
4538     shift
4539     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4540   fi
4541 fi
4542 fi
4543 fi
4544 BUILD_CC=$ac_cv_prog_BUILD_CC
4545 if test -n "$BUILD_CC"; then
4546   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4547 echo "${ECHO_T}$BUILD_CC" >&6; }
4548 else
4549   { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4551 fi
4552
4553
4554      fi
4555   fi
4556   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4557 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4558    { (exit 1); exit 1; }; }
4559   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4560   rm -f conftest*
4561   echo 'int main () { return 0; }' > conftest.$ac_ext
4562   ac_cv_build_exeext=
4563   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4564   (eval $ac_build_link) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; then
4568     for file in conftest.*; do
4569       case $file in
4570       *.c | *.o | *.obj | *.dSYM) ;;
4571       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4572       esac
4573     done
4574   else
4575     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4576 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4577    { (exit 1); exit 1; }; }
4578   fi
4579   rm -f conftest*
4580   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4581 fi
4582 fi
4583
4584 BUILD_EXEEXT=""
4585 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4586 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4587 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4588 ac_build_exeext=$BUILD_EXEEXT
4589
4590   ac_build_prefix=${build_alias}-
4591   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4592 set dummy ${ac_build_prefix}g++; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   if test -n "$BUILD_CXX"; then
4599   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4608     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4619 if test -n "$BUILD_CXX"; then
4620   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4621 echo "${ECHO_T}$BUILD_CXX" >&6; }
4622 else
4623   { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4625 fi
4626
4627
4628   if test -z "$BUILD_CXX"; then
4629      # Extract the first word of "g++", so it can be a program name with args.
4630 set dummy g++; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   if test -n "$BUILD_CXX"; then
4637   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646     ac_cv_prog_BUILD_CXX="g++"
4647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4657 if test -n "$BUILD_CXX"; then
4658   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4659 echo "${ECHO_T}$BUILD_CXX" >&6; }
4660 else
4661   { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4663 fi
4664
4665
4666      if test -z "$BUILD_CXX"; then
4667        # Extract the first word of "c++", so it can be a program name with args.
4668 set dummy c++; ac_word=$2
4669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   if test -n "$BUILD_CXX"; then
4675   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4676 else
4677   ac_prog_rejected=no
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4686        ac_prog_rejected=yes
4687        continue
4688      fi
4689     ac_cv_prog_BUILD_CXX="c++"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 if test $ac_prog_rejected = yes; then
4698   # We found a bogon in the path, so make sure we never use it.
4699   set dummy $ac_cv_prog_BUILD_CXX
4700   shift
4701   if test $# != 0; then
4702     # We chose a different compiler from the bogus one.
4703     # However, it has the same basename, so the bogon will be chosen
4704     # first if we set BUILD_CXX to just the basename; use the full file name.
4705     shift
4706     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4707   fi
4708 fi
4709 fi
4710 fi
4711 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4712 if test -n "$BUILD_CXX"; then
4713   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4714 echo "${ECHO_T}$BUILD_CXX" >&6; }
4715 else
4716   { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 fi
4719
4720
4721      fi
4722   fi
4723 else
4724   LLVM_CROSS_COMPILING=0
4725
4726 fi
4727
4728 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4729   cvsbuild="yes"
4730   optimize="no"
4731   CVSBUILD=CVSBUILD=1
4732
4733 else
4734   cvsbuild="no"
4735   optimize="yes"
4736 fi
4737
4738
4739 # Check whether --enable-optimized was given.
4740 if test "${enable_optimized+set}" = set; then
4741   enableval=$enable_optimized;
4742 else
4743   enableval=$optimize
4744 fi
4745
4746 if test ${enableval} = "no" ; then
4747   ENABLE_OPTIMIZED=
4748
4749 else
4750   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4751
4752 fi
4753
4754 # Check whether --enable-profiling was given.
4755 if test "${enable_profiling+set}" = set; then
4756   enableval=$enable_profiling;
4757 else
4758   enableval="no"
4759 fi
4760
4761 if test ${enableval} = "no" ; then
4762   ENABLE_PROFILING=
4763
4764 else
4765   ENABLE_PROFILING=ENABLE_PROFILING=1
4766
4767 fi
4768
4769 # Check whether --enable-assertions was given.
4770 if test "${enable_assertions+set}" = set; then
4771   enableval=$enable_assertions;
4772 else
4773   enableval="yes"
4774 fi
4775
4776 if test ${enableval} = "yes" ; then
4777   DISABLE_ASSERTIONS=
4778
4779 else
4780   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4781
4782 fi
4783
4784 # Check whether --enable-expensive-checks was given.
4785 if test "${enable_expensive_checks+set}" = set; then
4786   enableval=$enable_expensive_checks;
4787 else
4788   enableval="no"
4789 fi
4790
4791 if test ${enableval} = "yes" ; then
4792   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4793
4794   EXPENSIVE_CHECKS=yes
4795
4796 else
4797   ENABLE_EXPENSIVE_CHECKS=
4798
4799   EXPENSIVE_CHECKS=no
4800
4801 fi
4802
4803 # Check whether --enable-debug-runtime was given.
4804 if test "${enable_debug_runtime+set}" = set; then
4805   enableval=$enable_debug_runtime;
4806 else
4807   enableval=no
4808 fi
4809
4810 if test ${enableval} = "no" ; then
4811   DEBUG_RUNTIME=
4812
4813 else
4814   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4815
4816 fi
4817
4818 # Check whether --enable-jit was given.
4819 if test "${enable_jit+set}" = set; then
4820   enableval=$enable_jit;
4821 else
4822   enableval=default
4823 fi
4824
4825 if test ${enableval} = "no"
4826 then
4827   JIT=
4828
4829 else
4830   case "$llvm_cv_target_arch" in
4831     x86)     TARGET_HAS_JIT=1
4832  ;;
4833     Sparc)   TARGET_HAS_JIT=0
4834  ;;
4835     PowerPC) TARGET_HAS_JIT=1
4836  ;;
4837     x86_64)  TARGET_HAS_JIT=1
4838  ;;
4839     Alpha)   TARGET_HAS_JIT=1
4840  ;;
4841     IA64)    TARGET_HAS_JIT=0
4842  ;;
4843     ARM)     TARGET_HAS_JIT=0
4844  ;;
4845     Mips)    TARGET_HAS_JIT=0
4846  ;;
4847     PIC16)   TARGET_HAS_JIT=0
4848  ;;
4849     XCore)   TARGET_HAS_JIT=0
4850  ;;
4851     MSP430)  TARGET_HAS_JIT=0
4852  ;;
4853     *)       TARGET_HAS_JIT=0
4854  ;;
4855   esac
4856 fi
4857
4858 # Check whether --enable-doxygen was given.
4859 if test "${enable_doxygen+set}" = set; then
4860   enableval=$enable_doxygen;
4861 else
4862   enableval=default
4863 fi
4864
4865 case "$enableval" in
4866   yes) ENABLE_DOXYGEN=1
4867  ;;
4868   no)  ENABLE_DOXYGEN=0
4869  ;;
4870   default) ENABLE_DOXYGEN=0
4871  ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 # Check whether --enable-threads was given.
4878 if test "${enable_threads+set}" = set; then
4879   enableval=$enable_threads;
4880 else
4881   enableval=default
4882 fi
4883
4884 case "$enableval" in
4885   yes) ENABLE_THREADS=1
4886  ;;
4887   no)  ENABLE_THREADS=0
4888  ;;
4889   default) ENABLE_THREADS=1
4890  ;;
4891   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4892 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4893    { (exit 1); exit 1; }; } ;;
4894 esac
4895
4896 cat >>confdefs.h <<_ACEOF
4897 #define ENABLE_THREADS $ENABLE_THREADS
4898 _ACEOF
4899
4900
4901 # Check whether --enable-pic was given.
4902 if test "${enable_pic+set}" = set; then
4903   enableval=$enable_pic;
4904 else
4905   enableval=default
4906 fi
4907
4908 case "$enableval" in
4909   yes) ENABLE_PIC=1
4910  ;;
4911   no)  ENABLE_PIC=0
4912  ;;
4913   default) ENABLE_PIC=1
4914  ;;
4915   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4916 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4917    { (exit 1); exit 1; }; } ;;
4918 esac
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define ENABLE_PIC $ENABLE_PIC
4922 _ACEOF
4923
4924
4925 TARGETS_TO_BUILD=""
4926 # Check whether --enable-targets was given.
4927 if test "${enable_targets+set}" = set; then
4928   enableval=$enable_targets;
4929 else
4930   enableval=all
4931 fi
4932
4933 case "$enableval" in
4934   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4935   host-only)
4936     case "$llvm_cv_target_arch" in
4937       x86)     TARGETS_TO_BUILD="X86" ;;
4938       x86_64)  TARGETS_TO_BUILD="X86" ;;
4939       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4940       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4941       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4942       IA64)    TARGETS_TO_BUILD="IA64" ;;
4943       ARM)     TARGETS_TO_BUILD="ARM" ;;
4944       Mips)    TARGETS_TO_BUILD="Mips" ;;
4945       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4946       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4947       XCore)   TARGETS_TO_BUILD="XCore" ;;
4948       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4949       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4950 echo "$as_me: error: Can not set target to build" >&2;}
4951    { (exit 1); exit 1; }; } ;;
4952     esac
4953     ;;
4954   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4955       case "$a_target" in
4956         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4962         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4965         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4966         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4967         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4968         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4969         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4970         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4971         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4972 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4973    { (exit 1); exit 1; }; } ;;
4974       esac
4975   done
4976   ;;
4977 esac
4978 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4979
4980
4981 # Determine whether we are building LLVM support for the native architecture.
4982 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4983 for a_target in $TARGETS_TO_BUILD; do
4984   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4985     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4986
4987 cat >>confdefs.h <<_ACEOF
4988 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4989 _ACEOF
4990
4991   fi
4992 done
4993
4994 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4995 # Targets.def and AsmPrinters.def.
4996 LLVM_ENUM_TARGETS=""
4997 LLVM_ENUM_ASM_PRINTERS=""
4998 for target_to_build in $TARGETS_TO_BUILD; do
4999   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5000   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5001     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5002   fi
5003 done
5004
5005
5006
5007 # Check whether --enable-cbe-printf-a was given.
5008 if test "${enable_cbe_printf_a+set}" = set; then
5009   enableval=$enable_cbe_printf_a;
5010 else
5011   enableval=default
5012 fi
5013
5014 case "$enableval" in
5015   yes) ENABLE_CBE_PRINTF_A=1
5016  ;;
5017   no)  ENABLE_CBE_PRINTF_A=0
5018  ;;
5019   default)  ENABLE_CBE_PRINTF_A=1
5020  ;;
5021   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5023    { (exit 1); exit 1; }; } ;;
5024 esac
5025
5026 cat >>confdefs.h <<_ACEOF
5027 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5028 _ACEOF
5029
5030
5031
5032 # Check whether --with-llvmgccdir was given.
5033 if test "${with_llvmgccdir+set}" = set; then
5034   withval=$with_llvmgccdir;
5035 else
5036   withval=default
5037 fi
5038
5039 case "$withval" in
5040   default) WITH_LLVMGCCDIR=default ;;
5041   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5042   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5043 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5044    { (exit 1); exit 1; }; } ;;
5045 esac
5046
5047
5048 # Check whether --with-llvmgcc was given.
5049 if test "${with_llvmgcc+set}" = set; then
5050   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5051       WITH_LLVMGCCDIR=""
5052 fi
5053
5054
5055
5056 # Check whether --with-llvmgxx was given.
5057 if test "${with_llvmgxx+set}" = set; then
5058   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5059     WITH_LLVMGCCDIR=""
5060 fi
5061
5062
5063 if test -n "$LLVMGCC"; then
5064    LLVMGCCCOMMAND="$LLVMGCC"
5065 fi
5066
5067 if test -n "$LLVMGXX"; then
5068    LLVMGXXCOMMAND="$LLVMGXX"
5069 fi
5070
5071 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5072    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5073 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5074    { (exit 1); exit 1; }; };
5075 fi
5076
5077 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5078    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5079 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5080    { (exit 1); exit 1; }; };
5081 fi
5082
5083
5084 # Check whether --with-extra-options was given.
5085 if test "${with_extra_options+set}" = set; then
5086   withval=$with_extra_options;
5087 else
5088   withval=default
5089 fi
5090
5091 case "$withval" in
5092   default) EXTRA_OPTIONS= ;;
5093   *) EXTRA_OPTIONS=$withval ;;
5094 esac
5095 EXTRA_OPTIONS=$EXTRA_OPTIONS
5096
5097
5098 # Check whether --enable-bindings was given.
5099 if test "${enable_bindings+set}" = set; then
5100   enableval=$enable_bindings;
5101 else
5102   enableval=default
5103 fi
5104
5105 BINDINGS_TO_BUILD=""
5106 case "$enableval" in
5107   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5108   all ) BINDINGS_TO_BUILD="ocaml" ;;
5109   none | no) BINDINGS_TO_BUILD="" ;;
5110   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5111       case "$a_binding" in
5112         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5113         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5114 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5115    { (exit 1); exit 1; }; } ;;
5116       esac
5117   done
5118   ;;
5119 esac
5120
5121
5122 # Check whether --with-ocaml-libdir was given.
5123 if test "${with_ocaml_libdir+set}" = set; then
5124   withval=$with_ocaml_libdir;
5125 else
5126   withval=auto
5127 fi
5128
5129 case "$withval" in
5130   auto) with_ocaml_libdir="$withval" ;;
5131   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5132   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5133 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5134    { (exit 1); exit 1; }; } ;;
5135 esac
5136
5137
5138 # Check whether --with-binutils-include was given.
5139 if test "${with_binutils_include+set}" = set; then
5140   withval=$with_binutils_include;
5141 else
5142   withval=default
5143 fi
5144
5145 case "$withval" in
5146   default) WITH_BINUTILS_INCDIR=default ;;
5147   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5148   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5149 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5150    { (exit 1); exit 1; }; } ;;
5151 esac
5152 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5153   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5154
5155   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5156      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5157      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5158 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5159    { (exit 1); exit 1; }; };
5160   fi
5161 fi
5162
5163 # Check whether --enable-libffi was given.
5164 if test "${enable_libffi+set}" = set; then
5165   enableval=$enable_libffi;
5166 else
5167   enableval=yes
5168 fi
5169
5170 case "$enableval" in
5171   yes) llvm_cv_enable_libffi="yes" ;;
5172   no)  llvm_cv_enable_libffi="no"  ;;
5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5175    { (exit 1); exit 1; }; } ;;
5176 esac
5177
5178 if test "$llvm_cv_os_type" = "Win32" ; then
5179    llvmc_dynamic="yes"
5180 else
5181    llvmc_dynamic="no"
5182 fi
5183
5184 # Check whether --enable-llvmc-dynamic was given.
5185 if test "${enable_llvmc_dynamic+set}" = set; then
5186   enableval=$enable_llvmc_dynamic;
5187 else
5188   enableval=$llvmc_dynamic
5189 fi
5190
5191 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5192    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5193
5194 else
5195    ENABLE_LLVMC_DYNAMIC=
5196
5197 fi
5198
5199 # Check whether --enable-llvmc-dynamic-plugins was given.
5200 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5201   enableval=$enable_llvmc_dynamic_plugins;
5202 else
5203   enableval=yes
5204 fi
5205
5206 if test ${enableval} = "yes" ; then
5207    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5208
5209 else
5210    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5211
5212 fi
5213
5214
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5222 # On Suns, sometimes $CPP names a directory.
5223 if test -n "$CPP" && test -d "$CPP"; then
5224   CPP=
5225 fi
5226 if test -z "$CPP"; then
5227   if test "${ac_cv_prog_CPP+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230       # Double quotes because CPP needs to be expanded
5231     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5232     do
5233       ac_preproc_ok=false
5234 for ac_c_preproc_warn_flag in '' yes
5235 do
5236   # Use a header file that comes with gcc, so configuring glibc
5237   # with a fresh cross-compiler works.
5238   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239   # <limits.h> exists even on freestanding compilers.
5240   # On the NeXT, cc -E runs the code through the compiler's parser,
5241   # not just through cpp. "Syntax error" is here to catch this case.
5242   cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 #ifdef __STDC__
5249 # include <limits.h>
5250 #else
5251 # include <assert.h>
5252 #endif
5253                      Syntax error
5254 _ACEOF
5255 if { (ac_try="$ac_cpp conftest.$ac_ext"
5256 case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262   ac_status=$?
5263   grep -v '^ *+' conftest.er1 >conftest.err
5264   rm -f conftest.er1
5265   cat conftest.err >&5
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } >/dev/null; then
5268   if test -s conftest.err; then
5269     ac_cpp_err=$ac_c_preproc_warn_flag
5270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271   else
5272     ac_cpp_err=
5273   fi
5274 else
5275   ac_cpp_err=yes
5276 fi
5277 if test -z "$ac_cpp_err"; then
5278   :
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283   # Broken: fails on valid input.
5284 continue
5285 fi
5286
5287 rm -f conftest.err conftest.$ac_ext
5288
5289   # OK, works on sane cases.  Now check whether nonexistent headers
5290   # can be detected and how.
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297 #include <ac_nonexistent.h>
5298 _ACEOF
5299 if { (ac_try="$ac_cpp conftest.$ac_ext"
5300 case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } >/dev/null; then
5312   if test -s conftest.err; then
5313     ac_cpp_err=$ac_c_preproc_warn_flag
5314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315   else
5316     ac_cpp_err=
5317   fi
5318 else
5319   ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322   # Broken: success on invalid input.
5323 continue
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328   # Passes both tests.
5329 ac_preproc_ok=:
5330 break
5331 fi
5332
5333 rm -f conftest.err conftest.$ac_ext
5334
5335 done
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.err conftest.$ac_ext
5338 if $ac_preproc_ok; then
5339   break
5340 fi
5341
5342     done
5343     ac_cv_prog_CPP=$CPP
5344
5345 fi
5346   CPP=$ac_cv_prog_CPP
5347 else
5348   ac_cv_prog_CPP=$CPP
5349 fi
5350 { echo "$as_me:$LINENO: result: $CPP" >&5
5351 echo "${ECHO_T}$CPP" >&6; }
5352 ac_preproc_ok=false
5353 for ac_c_preproc_warn_flag in '' yes
5354 do
5355   # Use a header file that comes with gcc, so configuring glibc
5356   # with a fresh cross-compiler works.
5357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5358   # <limits.h> exists even on freestanding compilers.
5359   # On the NeXT, cc -E runs the code through the compiler's parser,
5360   # not just through cpp. "Syntax error" is here to catch this case.
5361   cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 #ifdef __STDC__
5368 # include <limits.h>
5369 #else
5370 # include <assert.h>
5371 #endif
5372                      Syntax error
5373 _ACEOF
5374 if { (ac_try="$ac_cpp conftest.$ac_ext"
5375 case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } >/dev/null; then
5387   if test -s conftest.err; then
5388     ac_cpp_err=$ac_c_preproc_warn_flag
5389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5390   else
5391     ac_cpp_err=
5392   fi
5393 else
5394   ac_cpp_err=yes
5395 fi
5396 if test -z "$ac_cpp_err"; then
5397   :
5398 else
5399   echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402   # Broken: fails on valid input.
5403 continue
5404 fi
5405
5406 rm -f conftest.err conftest.$ac_ext
5407
5408   # OK, works on sane cases.  Now check whether nonexistent headers
5409   # can be detected and how.
5410   cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416 #include <ac_nonexistent.h>
5417 _ACEOF
5418 if { (ac_try="$ac_cpp conftest.$ac_ext"
5419 case "(($ac_try" in
5420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421   *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } >/dev/null; then
5431   if test -s conftest.err; then
5432     ac_cpp_err=$ac_c_preproc_warn_flag
5433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5434   else
5435     ac_cpp_err=
5436   fi
5437 else
5438   ac_cpp_err=yes
5439 fi
5440 if test -z "$ac_cpp_err"; then
5441   # Broken: success on invalid input.
5442 continue
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447   # Passes both tests.
5448 ac_preproc_ok=:
5449 break
5450 fi
5451
5452 rm -f conftest.err conftest.$ac_ext
5453
5454 done
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then
5458   :
5459 else
5460   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details." >&5
5462 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details." >&2;}
5464    { (exit 1); exit 1; }; }
5465 fi
5466
5467 ac_ext=c
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472
5473 ac_ext=c
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 if test -n "$ac_tool_prefix"; then
5479   for ac_prog in gcc
5480   do
5481     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5485 if test "${ac_cv_prog_CC+set}" = set; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   if test -n "$CC"; then
5489   ac_cv_prog_CC="$CC" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496   for ac_exec_ext in '' $ac_executable_extensions; do
5497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5498     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 CC=$ac_cv_prog_CC
5509 if test -n "$CC"; then
5510   { echo "$as_me:$LINENO: result: $CC" >&5
5511 echo "${ECHO_T}$CC" >&6; }
5512 else
5513   { echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6; }
5515 fi
5516
5517
5518     test -n "$CC" && break
5519   done
5520 fi
5521 if test -z "$CC"; then
5522   ac_ct_CC=$CC
5523   for ac_prog in gcc
5524 do
5525   # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5530   echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532   if test -n "$ac_ct_CC"; then
5533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538   IFS=$as_save_IFS
5539   test -z "$as_dir" && as_dir=.
5540   for ac_exec_ext in '' $ac_executable_extensions; do
5541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5542     ac_cv_prog_ac_ct_CC="$ac_prog"
5543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544     break 2
5545   fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5553 if test -n "$ac_ct_CC"; then
5554   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5555 echo "${ECHO_T}$ac_ct_CC" >&6; }
5556 else
5557   { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5559 fi
5560
5561
5562   test -n "$ac_ct_CC" && break
5563 done
5564
5565   if test "x$ac_ct_CC" = x; then
5566     CC=""
5567   else
5568     case $cross_compiling:$ac_tool_warned in
5569 yes:)
5570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5571 whose name does not start with the host triplet.  If you think this
5572 configuration is useful to you, please write to autoconf@gnu.org." >&5
5573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5574 whose name does not start with the host triplet.  If you think this
5575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578     CC=$ac_ct_CC
5579   fi
5580 fi
5581
5582
5583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5584 See \`config.log' for more details." >&5
5585 echo "$as_me: error: no acceptable C compiler found in \$PATH
5586 See \`config.log' for more details." >&2;}
5587    { (exit 1); exit 1; }; }
5588
5589 # Provide some information about the compiler.
5590 echo "$as_me:$LINENO: checking for C compiler version" >&5
5591 ac_compiler=`set X $ac_compile; echo $2`
5592 { (ac_try="$ac_compiler --version >&5"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_compiler --version >&5") 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }
5602 { (ac_try="$ac_compiler -v >&5"
5603 case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_compiler -v >&5") 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }
5612 { (ac_try="$ac_compiler -V >&5"
5613 case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618   (eval "$ac_compiler -V >&5") 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }
5622
5623 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h.  */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h.  */
5634
5635 int
5636 main ()
5637 {
5638 #ifndef __GNUC__
5639        choke me
5640 #endif
5641
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (ac_try="$ac_compile"
5648 case "(($ac_try" in
5649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650   *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653   (eval "$ac_compile") 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661   { (case "(($ac_try" in
5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663   *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666   (eval "$ac_try") 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; } &&
5670          { ac_try='test -s conftest.$ac_objext'
5671   { (case "(($ac_try" in
5672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673   *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676   (eval "$ac_try") 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_compiler_gnu=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685         ac_compiler_gnu=no
5686 fi
5687
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5690
5691 fi
5692 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5694 GCC=`test $ac_compiler_gnu = yes && echo yes`
5695 ac_test_CFLAGS=${CFLAGS+set}
5696 ac_save_CFLAGS=$CFLAGS
5697 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5698 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5699 if test "${ac_cv_prog_cc_g+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   ac_save_c_werror_flag=$ac_c_werror_flag
5703    ac_c_werror_flag=yes
5704    ac_cv_prog_cc_g=no
5705    CFLAGS="-g"
5706    cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712
5713 int
5714 main ()
5715 {
5716
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725   *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728   (eval "$ac_compile") 2>conftest.er1
5729   ac_status=$?
5730   grep -v '^ *+' conftest.er1 >conftest.err
5731   rm -f conftest.er1
5732   cat conftest.err >&5
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } &&
5735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5736   { (case "(($ac_try" in
5737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738   *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741   (eval "$ac_try") 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; } &&
5745          { ac_try='test -s conftest.$ac_objext'
5746   { (case "(($ac_try" in
5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748   *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751   (eval "$ac_try") 2>&5
5752   ac_status=$?
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); }; }; then
5755   ac_cv_prog_cc_g=yes
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760         CFLAGS=""
5761       cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767
5768 int
5769 main ()
5770 {
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_compile") 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5791   { (case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_try") 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; } &&
5800          { ac_try='test -s conftest.$ac_objext'
5801   { (case "(($ac_try" in
5802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803   *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806   (eval "$ac_try") 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; }; then
5810   :
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815         ac_c_werror_flag=$ac_save_c_werror_flag
5816          CFLAGS="-g"
5817          cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823
5824 int
5825 main ()
5826 {
5827
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836   *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839   (eval "$ac_compile") 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847   { (case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852   (eval "$ac_try") 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; } &&
5856          { ac_try='test -s conftest.$ac_objext'
5857   { (case "(($ac_try" in
5858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859   *) ac_try_echo=$ac_try;;
5860 esac
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862   (eval "$ac_try") 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }; }; then
5866   ac_cv_prog_cc_g=yes
5867 else
5868   echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871
5872 fi
5873
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 fi
5876
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881    ac_c_werror_flag=$ac_save_c_werror_flag
5882 fi
5883 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5884 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5885 if test "$ac_test_CFLAGS" = set; then
5886   CFLAGS=$ac_save_CFLAGS
5887 elif test $ac_cv_prog_cc_g = yes; then
5888   if test "$GCC" = yes; then
5889     CFLAGS="-g -O2"
5890   else
5891     CFLAGS="-g"
5892   fi
5893 else
5894   if test "$GCC" = yes; then
5895     CFLAGS="-O2"
5896   else
5897     CFLAGS=
5898   fi
5899 fi
5900 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5901 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_cc_c89+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   ac_cv_prog_cc_c89=no
5906 ac_save_CC=$CC
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h.  */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h.  */
5913 #include <stdarg.h>
5914 #include <stdio.h>
5915 #include <sys/types.h>
5916 #include <sys/stat.h>
5917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5918 struct buf { int x; };
5919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5920 static char *e (p, i)
5921      char **p;
5922      int i;
5923 {
5924   return p[i];
5925 }
5926 static char *f (char * (*g) (char **, int), char **p, ...)
5927 {
5928   char *s;
5929   va_list v;
5930   va_start (v,p);
5931   s = g (p, va_arg (v,int));
5932   va_end (v);
5933   return s;
5934 }
5935
5936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5937    function prototypes and stuff, but not '\xHH' hex character constants.
5938    These don't provoke an error unfortunately, instead are silently treated
5939    as 'x'.  The following induces an error, until -std is added to get
5940    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5941    array size at least.  It's necessary to write '\x00'==0 to get something
5942    that's true only with -std.  */
5943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5944
5945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5946    inside strings and character constants.  */
5947 #define FOO(x) 'x'
5948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5949
5950 int test (int i, double x);
5951 struct s1 {int (*f) (int a);};
5952 struct s2 {int (*f) (double a);};
5953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5954 int argc;
5955 char **argv;
5956 int
5957 main ()
5958 {
5959 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5965         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5966 do
5967   CC="$ac_save_CC $ac_arg"
5968   rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5970 case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975   (eval "$ac_compile") 2>conftest.er1
5976   ac_status=$?
5977   grep -v '^ *+' conftest.er1 >conftest.err
5978   rm -f conftest.er1
5979   cat conftest.err >&5
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983   { (case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_try") 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); }; } &&
5992          { ac_try='test -s conftest.$ac_objext'
5993   { (case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_try") 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   ac_cv_prog_cc_c89=$ac_arg
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007
6008 fi
6009
6010 rm -f core conftest.err conftest.$ac_objext
6011   test "x$ac_cv_prog_cc_c89" != "xno" && break
6012 done
6013 rm -f conftest.$ac_ext
6014 CC=$ac_save_CC
6015
6016 fi
6017 # AC_CACHE_VAL
6018 case "x$ac_cv_prog_cc_c89" in
6019   x)
6020     { echo "$as_me:$LINENO: result: none needed" >&5
6021 echo "${ECHO_T}none needed" >&6; } ;;
6022   xno)
6023     { echo "$as_me:$LINENO: result: unsupported" >&5
6024 echo "${ECHO_T}unsupported" >&6; } ;;
6025   *)
6026     CC="$CC $ac_cv_prog_cc_c89"
6027     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6028 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6029 esac
6030
6031
6032 ac_ext=c
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
6038 ac_ext=cpp
6039 ac_cpp='$CXXCPP $CPPFLAGS'
6040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6043 if test -z "$CXX"; then
6044   if test -n "$CCC"; then
6045     CXX=$CCC
6046   else
6047     if test -n "$ac_tool_prefix"; then
6048   for ac_prog in g++
6049   do
6050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_prog_CXX+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   if test -n "$CXX"; then
6058   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_exec_ext in '' $ac_executable_extensions; do
6066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 CXX=$ac_cv_prog_CXX
6078 if test -n "$CXX"; then
6079   { echo "$as_me:$LINENO: result: $CXX" >&5
6080 echo "${ECHO_T}$CXX" >&6; }
6081 else
6082   { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6084 fi
6085
6086
6087     test -n "$CXX" && break
6088   done
6089 fi
6090 if test -z "$CXX"; then
6091   ac_ct_CXX=$CXX
6092   for ac_prog in g++
6093 do
6094   # Extract the first word of "$ac_prog", so it can be a program name with args.
6095 set dummy $ac_prog; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   if test -n "$ac_ct_CXX"; then
6102   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109   for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_ac_ct_CXX="$ac_prog"
6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6122 if test -n "$ac_ct_CXX"; then
6123   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6124 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131   test -n "$ac_ct_CXX" && break
6132 done
6133
6134   if test "x$ac_ct_CXX" = x; then
6135     CXX="g++"
6136   else
6137     case $cross_compiling:$ac_tool_warned in
6138 yes:)
6139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet.  If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&5
6142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6143 whose name does not start with the host triplet.  If you think this
6144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147     CXX=$ac_ct_CXX
6148   fi
6149 fi
6150
6151   fi
6152 fi
6153 # Provide some information about the compiler.
6154 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6155 ac_compiler=`set X $ac_compile; echo $2`
6156 { (ac_try="$ac_compiler --version >&5"
6157 case "(($ac_try" in
6158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159   *) ac_try_echo=$ac_try;;
6160 esac
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162   (eval "$ac_compiler --version >&5") 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }
6166 { (ac_try="$ac_compiler -v >&5"
6167 case "(($ac_try" in
6168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169   *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172   (eval "$ac_compiler -v >&5") 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }
6176 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }
6186
6187 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6188 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6189 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198
6199 int
6200 main ()
6201 {
6202 #ifndef __GNUC__
6203        choke me
6204 #endif
6205
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (ac_try="$ac_compile"
6212 case "(($ac_try" in
6213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214   *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217   (eval "$ac_compile") 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } &&
6224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6225   { (case "(($ac_try" in
6226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227   *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230   (eval "$ac_try") 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; } &&
6234          { ac_try='test -s conftest.$ac_objext'
6235   { (case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_try") 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; }; then
6244   ac_compiler_gnu=yes
6245 else
6246   echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249         ac_compiler_gnu=no
6250 fi
6251
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6254
6255 fi
6256 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6257 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6258 GXX=`test $ac_compiler_gnu = yes && echo yes`
6259 ac_test_CXXFLAGS=${CXXFLAGS+set}
6260 ac_save_CXXFLAGS=$CXXFLAGS
6261 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6262 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6263 if test "${ac_cv_prog_cxx_g+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6267    ac_cxx_werror_flag=yes
6268    ac_cv_prog_cxx_g=no
6269    CXXFLAGS="-g"
6270    cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276
6277 int
6278 main ()
6279 {
6280
6281   ;
6282   return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6287 case "(($ac_try" in
6288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289   *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292   (eval "$ac_compile") 2>conftest.er1
6293   ac_status=$?
6294   grep -v '^ *+' conftest.er1 >conftest.err
6295   rm -f conftest.er1
6296   cat conftest.err >&5
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); } &&
6299          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6300   { (case "(($ac_try" in
6301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302   *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305   (eval "$ac_try") 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; } &&
6309          { ac_try='test -s conftest.$ac_objext'
6310   { (case "(($ac_try" in
6311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312   *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315   (eval "$ac_try") 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; }; then
6319   ac_cv_prog_cxx_g=yes
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324         CXXFLAGS=""
6325       cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331
6332 int
6333 main ()
6334 {
6335
6336   ;
6337   return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6342 case "(($ac_try" in
6343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344   *) ac_try_echo=$ac_try;;
6345 esac
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347   (eval "$ac_compile") 2>conftest.er1
6348   ac_status=$?
6349   grep -v '^ *+' conftest.er1 >conftest.err
6350   rm -f conftest.er1
6351   cat conftest.err >&5
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); } &&
6354          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6355   { (case "(($ac_try" in
6356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357   *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360   (eval "$ac_try") 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; } &&
6364          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6374   :
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6380          CXXFLAGS="-g"
6381          cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h.  */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h.  */
6387
6388 int
6389 main ()
6390 {
6391
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6398 case "(($ac_try" in
6399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400   *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403   (eval "$ac_compile") 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6411   { (case "(($ac_try" in
6412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413   *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416   (eval "$ac_try") 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (case "(($ac_try" in
6422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423   *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426   (eval "$ac_try") 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_cv_prog_cxx_g=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435
6436 fi
6437
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi
6443
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6446 fi
6447 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6448 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6449 if test "$ac_test_CXXFLAGS" = set; then
6450   CXXFLAGS=$ac_save_CXXFLAGS
6451 elif test $ac_cv_prog_cxx_g = yes; then
6452   if test "$GXX" = yes; then
6453     CXXFLAGS="-g -O2"
6454   else
6455     CXXFLAGS="-g"
6456   fi
6457 else
6458   if test "$GXX" = yes; then
6459     CXXFLAGS="-O2"
6460   else
6461     CXXFLAGS=
6462   fi
6463 fi
6464 ac_ext=c
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
6470
6471 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6473 if test "${lt_cv_path_NM+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   if test -n "$NM"; then
6477   # Let the user override the test.
6478   lt_cv_path_NM="$NM"
6479 else
6480   lt_nm_to_check="${ac_tool_prefix}nm"
6481   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6482     lt_nm_to_check="$lt_nm_to_check nm"
6483   fi
6484   for lt_tmp_nm in $lt_nm_to_check; do
6485     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6487       IFS="$lt_save_ifs"
6488       test -z "$ac_dir" && ac_dir=.
6489       tmp_nm="$ac_dir/$lt_tmp_nm"
6490       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6491         # Check to see if the nm accepts a BSD-compat flag.
6492         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6493         #   nm: unknown option "B" ignored
6494         # Tru64's nm complains that /dev/null is an invalid object file
6495         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6496         */dev/null* | *'Invalid file or object type'*)
6497           lt_cv_path_NM="$tmp_nm -B"
6498           break
6499           ;;
6500         *)
6501           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6502           */dev/null*)
6503             lt_cv_path_NM="$tmp_nm -p"
6504             break
6505             ;;
6506           *)
6507             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6508             continue # so that we can try to find one that supports BSD flags
6509             ;;
6510           esac
6511           ;;
6512         esac
6513       fi
6514     done
6515     IFS="$lt_save_ifs"
6516   done
6517   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6518 fi
6519 fi
6520 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6521 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6522 NM="$lt_cv_path_NM"
6523
6524
6525
6526 { echo "$as_me:$LINENO: checking for GNU make" >&5
6527 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6528 if test "${llvm_cv_gnu_make_command+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   llvm_cv_gnu_make_command=''
6532  for a in "$MAKE" make gmake gnumake ; do
6533   if test -z "$a" ; then continue ; fi ;
6534   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6535   then
6536    llvm_cv_gnu_make_command=$a ;
6537    break;
6538   fi
6539  done
6540 fi
6541 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6542 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6543  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6544    ifGNUmake='' ;
6545  else
6546    ifGNUmake='#' ;
6547    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6548 echo "${ECHO_T}\"Not found\"" >&6; };
6549  fi
6550
6551
6552 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6554 LN_S=$as_ln_s
6555 if test "$LN_S" = "ln -s"; then
6556   { echo "$as_me:$LINENO: result: yes" >&5
6557 echo "${ECHO_T}yes" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6560 echo "${ECHO_T}no, using $LN_S" >&6; }
6561 fi
6562
6563 # Extract the first word of "cmp", so it can be a program name with args.
6564 set dummy cmp; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_CMP+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   case $CMP in
6571   [\\/]* | ?:[\\/]*)
6572   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6573   ;;
6574   *)
6575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6591   ;;
6592 esac
6593 fi
6594 CMP=$ac_cv_path_CMP
6595 if test -n "$CMP"; then
6596   { echo "$as_me:$LINENO: result: $CMP" >&5
6597 echo "${ECHO_T}$CMP" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 # Extract the first word of "cp", so it can be a program name with args.
6605 set dummy cp; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_CP+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $CP in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6632   ;;
6633 esac
6634 fi
6635 CP=$ac_cv_path_CP
6636 if test -n "$CP"; then
6637   { echo "$as_me:$LINENO: result: $CP" >&5
6638 echo "${ECHO_T}$CP" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644
6645 # Extract the first word of "date", so it can be a program name with args.
6646 set dummy date; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_DATE+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   case $DATE in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6673   ;;
6674 esac
6675 fi
6676 DATE=$ac_cv_path_DATE
6677 if test -n "$DATE"; then
6678   { echo "$as_me:$LINENO: result: $DATE" >&5
6679 echo "${ECHO_T}$DATE" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 # Extract the first word of "find", so it can be a program name with args.
6687 set dummy find; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_FIND+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   case $FIND in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6714   ;;
6715 esac
6716 fi
6717 FIND=$ac_cv_path_FIND
6718 if test -n "$FIND"; then
6719   { echo "$as_me:$LINENO: result: $FIND" >&5
6720 echo "${ECHO_T}$FIND" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 # Extract the first word of "grep", so it can be a program name with args.
6728 set dummy grep; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GREP+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $GREP in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6755   ;;
6756 esac
6757 fi
6758 GREP=$ac_cv_path_GREP
6759 if test -n "$GREP"; then
6760   { echo "$as_me:$LINENO: result: $GREP" >&5
6761 echo "${ECHO_T}$GREP" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767
6768 # Extract the first word of "mkdir", so it can be a program name with args.
6769 set dummy mkdir; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_MKDIR+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   case $MKDIR in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6796   ;;
6797 esac
6798 fi
6799 MKDIR=$ac_cv_path_MKDIR
6800 if test -n "$MKDIR"; then
6801   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6802 echo "${ECHO_T}$MKDIR" >&6; }
6803 else
6804   { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6806 fi
6807
6808
6809 # Extract the first word of "mv", so it can be a program name with args.
6810 set dummy mv; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_path_MV+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   case $MV in
6817   [\\/]* | ?:[\\/]*)
6818   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6819   ;;
6820   *)
6821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6837   ;;
6838 esac
6839 fi
6840 MV=$ac_cv_path_MV
6841 if test -n "$MV"; then
6842   { echo "$as_me:$LINENO: result: $MV" >&5
6843 echo "${ECHO_T}$MV" >&6; }
6844 else
6845   { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6847 fi
6848
6849
6850 if test -n "$ac_tool_prefix"; then
6851   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_prog_RANLIB+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   if test -n "$RANLIB"; then
6859   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890   ac_ct_RANLIB=$RANLIB
6891   # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   if test -n "$ac_ct_RANLIB"; then
6899   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_prog_ac_ct_RANLIB="ranlib"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927   if test "x$ac_ct_RANLIB" = x; then
6928     RANLIB=":"
6929   else
6930     case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet.  If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&5
6935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet.  If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940     RANLIB=$ac_ct_RANLIB
6941   fi
6942 else
6943   RANLIB="$ac_cv_prog_RANLIB"
6944 fi
6945
6946 # Extract the first word of "rm", so it can be a program name with args.
6947 set dummy rm; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_RM+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $RM in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6956   ;;
6957   *)
6958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6974   ;;
6975 esac
6976 fi
6977 RM=$ac_cv_path_RM
6978 if test -n "$RM"; then
6979   { echo "$as_me:$LINENO: result: $RM" >&5
6980 echo "${ECHO_T}$RM" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 # Extract the first word of "sed", so it can be a program name with args.
6988 set dummy sed; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_SED+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   case $SED in
6995   [\\/]* | ?:[\\/]*)
6996   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6997   ;;
6998   *)
6999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7015   ;;
7016 esac
7017 fi
7018 SED=$ac_cv_path_SED
7019 if test -n "$SED"; then
7020   { echo "$as_me:$LINENO: result: $SED" >&5
7021 echo "${ECHO_T}$SED" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027
7028 # Extract the first word of "tar", so it can be a program name with args.
7029 set dummy tar; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_path_TAR+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   case $TAR in
7036   [\\/]* | ?:[\\/]*)
7037   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7038   ;;
7039   *)
7040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045   for ac_exec_ext in '' $ac_executable_extensions; do
7046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7056   ;;
7057 esac
7058 fi
7059 TAR=$ac_cv_path_TAR
7060 if test -n "$TAR"; then
7061   { echo "$as_me:$LINENO: result: $TAR" >&5
7062 echo "${ECHO_T}$TAR" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068
7069 # Extract the first word of "pwd", so it can be a program name with args.
7070 set dummy pwd; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_BINPWD+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   case $BINPWD in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7097   ;;
7098 esac
7099 fi
7100 BINPWD=$ac_cv_path_BINPWD
7101 if test -n "$BINPWD"; then
7102   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7103 echo "${ECHO_T}$BINPWD" >&6; }
7104 else
7105   { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7107 fi
7108
7109
7110
7111 # Extract the first word of "Graphviz", so it can be a program name with args.
7112 set dummy Graphviz; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   case $GRAPHVIZ in
7119   [\\/]* | ?:[\\/]*)
7120   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7121   ;;
7122   *)
7123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128   for ac_exec_ext in '' $ac_executable_extensions; do
7129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7139   ;;
7140 esac
7141 fi
7142 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7143 if test -n "$GRAPHVIZ"; then
7144   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7145 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7146 else
7147   { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7149 fi
7150
7151
7152 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7153
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_GRAPHVIZ 1
7156 _ACEOF
7157
7158     if test "$llvm_cv_os_type" = "MingW" ; then
7159     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7160   fi
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7164 _ACEOF
7165
7166 fi
7167 # Extract the first word of "dot", so it can be a program name with args.
7168 set dummy dot; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_DOT+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   case $DOT in
7175   [\\/]* | ?:[\\/]*)
7176   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7177   ;;
7178   *)
7179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184   for ac_exec_ext in '' $ac_executable_extensions; do
7185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7195   ;;
7196 esac
7197 fi
7198 DOT=$ac_cv_path_DOT
7199 if test -n "$DOT"; then
7200   { echo "$as_me:$LINENO: result: $DOT" >&5
7201 echo "${ECHO_T}$DOT" >&6; }
7202 else
7203   { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7205 fi
7206
7207
7208 if test "$DOT" != "echo dot" ; then
7209
7210 cat >>confdefs.h <<\_ACEOF
7211 #define HAVE_DOT 1
7212 _ACEOF
7213
7214     if test "$llvm_cv_os_type" = "MingW" ; then
7215     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216   fi
7217
7218 cat >>confdefs.h <<_ACEOF
7219 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7220 _ACEOF
7221
7222 fi
7223 # Extract the first word of "fdp", so it can be a program name with args.
7224 set dummy fdp; ac_word=$2
7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227 if test "${ac_cv_path_FDP+set}" = set; then
7228   echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230   case $FDP in
7231   [\\/]* | ?:[\\/]*)
7232   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7233   ;;
7234   *)
7235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240   for ac_exec_ext in '' $ac_executable_extensions; do
7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7251   ;;
7252 esac
7253 fi
7254 FDP=$ac_cv_path_FDP
7255 if test -n "$FDP"; then
7256   { echo "$as_me:$LINENO: result: $FDP" >&5
7257 echo "${ECHO_T}$FDP" >&6; }
7258 else
7259   { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7261 fi
7262
7263
7264 if test "$FDP" != "echo fdp" ; then
7265
7266 cat >>confdefs.h <<\_ACEOF
7267 #define HAVE_FDP 1
7268 _ACEOF
7269
7270     if test "$llvm_cv_os_type" = "MingW" ; then
7271     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7272   fi
7273
7274 cat >>confdefs.h <<_ACEOF
7275 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7276 _ACEOF
7277
7278 fi
7279 # Extract the first word of "neato", so it can be a program name with args.
7280 set dummy neato; ac_word=$2
7281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_NEATO+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   case $NEATO in
7287   [\\/]* | ?:[\\/]*)
7288   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7289   ;;
7290   *)
7291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296   for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7307   ;;
7308 esac
7309 fi
7310 NEATO=$ac_cv_path_NEATO
7311 if test -n "$NEATO"; then
7312   { echo "$as_me:$LINENO: result: $NEATO" >&5
7313 echo "${ECHO_T}$NEATO" >&6; }
7314 else
7315   { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7317 fi
7318
7319
7320 if test "$NEATO" != "echo neato" ; then
7321
7322 cat >>confdefs.h <<\_ACEOF
7323 #define HAVE_NEATO 1
7324 _ACEOF
7325
7326     if test "$llvm_cv_os_type" = "MingW" ; then
7327     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7328   fi
7329
7330 cat >>confdefs.h <<_ACEOF
7331 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7332 _ACEOF
7333
7334 fi
7335 # Extract the first word of "twopi", so it can be a program name with args.
7336 set dummy twopi; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_TWOPI+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   case $TWOPI in
7343   [\\/]* | ?:[\\/]*)
7344   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7345   ;;
7346   *)
7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_exec_ext in '' $ac_executable_extensions; do
7353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7363   ;;
7364 esac
7365 fi
7366 TWOPI=$ac_cv_path_TWOPI
7367 if test -n "$TWOPI"; then
7368   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7369 echo "${ECHO_T}$TWOPI" >&6; }
7370 else
7371   { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7373 fi
7374
7375
7376 if test "$TWOPI" != "echo twopi" ; then
7377
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_TWOPI 1
7380 _ACEOF
7381
7382     if test "$llvm_cv_os_type" = "MingW" ; then
7383     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7384   fi
7385
7386 cat >>confdefs.h <<_ACEOF
7387 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7388 _ACEOF
7389
7390 fi
7391 # Extract the first word of "circo", so it can be a program name with args.
7392 set dummy circo; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_CIRCO+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $CIRCO in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408   for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7419   ;;
7420 esac
7421 fi
7422 CIRCO=$ac_cv_path_CIRCO
7423 if test -n "$CIRCO"; then
7424   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7425 echo "${ECHO_T}$CIRCO" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432 if test "$CIRCO" != "echo circo" ; then
7433
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_CIRCO 1
7436 _ACEOF
7437
7438     if test "$llvm_cv_os_type" = "MingW" ; then
7439     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7440   fi
7441
7442 cat >>confdefs.h <<_ACEOF
7443 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7444 _ACEOF
7445
7446 fi
7447 for ac_prog in gv gsview32
7448 do
7449   # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_GV+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   case $GV in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466   for ac_exec_ext in '' $ac_executable_extensions; do
7467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476   ;;
7477 esac
7478 fi
7479 GV=$ac_cv_path_GV
7480 if test -n "$GV"; then
7481   { echo "$as_me:$LINENO: result: $GV" >&5
7482 echo "${ECHO_T}$GV" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489   test -n "$GV" && break
7490 done
7491 test -n "$GV" || GV="echo gv"
7492
7493 if test "$GV" != "echo gv" ; then
7494
7495 cat >>confdefs.h <<\_ACEOF
7496 #define HAVE_GV 1
7497 _ACEOF
7498
7499     if test "$llvm_cv_os_type" = "MingW" ; then
7500     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7501   fi
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define LLVM_PATH_GV "$GV${EXEEXT}"
7505 _ACEOF
7506
7507 fi
7508 # Extract the first word of "dotty", so it can be a program name with args.
7509 set dummy dotty; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_path_DOTTY+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   case $DOTTY in
7516   [\\/]* | ?:[\\/]*)
7517   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7518   ;;
7519   *)
7520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525   for ac_exec_ext in '' $ac_executable_extensions; do
7526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532 done
7533 IFS=$as_save_IFS
7534
7535   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7536   ;;
7537 esac
7538 fi
7539 DOTTY=$ac_cv_path_DOTTY
7540 if test -n "$DOTTY"; then
7541   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7542 echo "${ECHO_T}$DOTTY" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549 if test "$DOTTY" != "echo dotty" ; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_DOTTY 1
7553 _ACEOF
7554
7555     if test "$llvm_cv_os_type" = "MingW" ; then
7556     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7557   fi
7558
7559 cat >>confdefs.h <<_ACEOF
7560 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7561 _ACEOF
7562
7563 fi
7564
7565
7566 # Extract the first word of "perl", so it can be a program name with args.
7567 set dummy perl; ac_word=$2
7568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570 if test "${ac_cv_path_PERL+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   case $PERL in
7574   [\\/]* | ?:[\\/]*)
7575   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7576   ;;
7577   *)
7578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583   for ac_exec_ext in '' $ac_executable_extensions; do
7584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7585     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7594   ;;
7595 esac
7596 fi
7597 PERL=$ac_cv_path_PERL
7598 if test -n "$PERL"; then
7599   { echo "$as_me:$LINENO: result: $PERL" >&5
7600 echo "${ECHO_T}$PERL" >&6; }
7601 else
7602   { echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6; }
7604 fi
7605
7606
7607 if test "$PERL" != "none"; then
7608   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7609 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7610   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7611     { echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6; }
7613   else
7614     PERL=none
7615     { echo "$as_me:$LINENO: result: not found" >&5
7616 echo "${ECHO_T}not found" >&6; }
7617   fi
7618 fi
7619
7620
7621 if test x"$PERL" = xnone; then
7622    HAVE_PERL=0
7623
7624    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7625 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7626    { (exit 1); exit 1; }; }
7627 else
7628    HAVE_PERL=1
7629
7630 fi
7631
7632 # Find a good install program.  We prefer a C program (faster),
7633 # so one script is as good as another.  But avoid the broken or
7634 # incompatible versions:
7635 # SysV /etc/install, /usr/sbin/install
7636 # SunOS /usr/etc/install
7637 # IRIX /sbin/install
7638 # AIX /bin/install
7639 # AmigaOS /C/install, which installs bootblocks on floppy discs
7640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7643 # OS/2's system install, which has a completely different semantic
7644 # ./install, which can be erroneously created by make from ./install.sh.
7645 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7647 if test -z "$INSTALL"; then
7648 if test "${ac_cv_path_install+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   # Account for people who put trailing slashes in PATH elements.
7657 case $as_dir/ in
7658   ./ | .// | /cC/* | \
7659   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7660   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7661   /usr/ucb/* ) ;;
7662   *)
7663     # OSF1 and SCO ODT 3.0 have their own names for install.
7664     # Don't use installbsd from OSF since it installs stuff as root
7665     # by default.
7666     for ac_prog in ginstall scoinst install; do
7667       for ac_exec_ext in '' $ac_executable_extensions; do
7668         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7669           if test $ac_prog = install &&
7670             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7671             # AIX install.  It has an incompatible calling convention.
7672             :
7673           elif test $ac_prog = install &&
7674             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7675             # program-specific install script used by HP pwplus--don't use.
7676             :
7677           else
7678             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7679             break 3
7680           fi
7681         fi
7682       done
7683     done
7684     ;;
7685 esac
7686 done
7687 IFS=$as_save_IFS
7688
7689
7690 fi
7691   if test "${ac_cv_path_install+set}" = set; then
7692     INSTALL=$ac_cv_path_install
7693   else
7694     # As a last resort, use the slow shell script.  Don't cache a
7695     # value for INSTALL within a source directory, because that will
7696     # break other packages using the cache if that directory is
7697     # removed, or if the value is a relative name.
7698     INSTALL=$ac_install_sh
7699   fi
7700 fi
7701 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7702 echo "${ECHO_T}$INSTALL" >&6; }
7703
7704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7705 # It thinks the first close brace ends the variable substitution.
7706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7707
7708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7709
7710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7711
7712
7713 # Extract the first word of "bzip2", so it can be a program name with args.
7714 set dummy bzip2; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_BZIP2+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   case $BZIP2 in
7721   [\\/]* | ?:[\\/]*)
7722   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7723   ;;
7724   *)
7725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730   for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740   ;;
7741 esac
7742 fi
7743 BZIP2=$ac_cv_path_BZIP2
7744 if test -n "$BZIP2"; then
7745   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7746 echo "${ECHO_T}$BZIP2" >&6; }
7747 else
7748   { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7750 fi
7751
7752
7753 # Extract the first word of "doxygen", so it can be a program name with args.
7754 set dummy doxygen; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   case $DOXYGEN in
7761   [\\/]* | ?:[\\/]*)
7762   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7763   ;;
7764   *)
7765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770   for ac_exec_ext in '' $ac_executable_extensions; do
7771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780   ;;
7781 esac
7782 fi
7783 DOXYGEN=$ac_cv_path_DOXYGEN
7784 if test -n "$DOXYGEN"; then
7785   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7786 echo "${ECHO_T}$DOXYGEN" >&6; }
7787 else
7788   { echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6; }
7790 fi
7791
7792
7793 # Extract the first word of "groff", so it can be a program name with args.
7794 set dummy groff; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_path_GROFF+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   case $GROFF in
7801   [\\/]* | ?:[\\/]*)
7802   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7803   ;;
7804   *)
7805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808   IFS=$as_save_IFS
7809   test -z "$as_dir" && as_dir=.
7810   for ac_exec_ext in '' $ac_executable_extensions; do
7811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7812     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814     break 2
7815   fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820   ;;
7821 esac
7822 fi
7823 GROFF=$ac_cv_path_GROFF
7824 if test -n "$GROFF"; then
7825   { echo "$as_me:$LINENO: result: $GROFF" >&5
7826 echo "${ECHO_T}$GROFF" >&6; }
7827 else
7828   { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7830 fi
7831
7832
7833 # Extract the first word of "gzip", so it can be a program name with args.
7834 set dummy gzip; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_path_GZIP+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   case $GZIP in
7841   [\\/]* | ?:[\\/]*)
7842   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7843   ;;
7844   *)
7845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850   for ac_exec_ext in '' $ac_executable_extensions; do
7851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7852     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860   ;;
7861 esac
7862 fi
7863 GZIP=$ac_cv_path_GZIP
7864 if test -n "$GZIP"; then
7865   { echo "$as_me:$LINENO: result: $GZIP" >&5
7866 echo "${ECHO_T}$GZIP" >&6; }
7867 else
7868   { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872
7873 # Extract the first word of "pod2html", so it can be a program name with args.
7874 set dummy pod2html; ac_word=$2
7875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7877 if test "${ac_cv_path_POD2HTML+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   case $POD2HTML in
7881   [\\/]* | ?:[\\/]*)
7882   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7883   ;;
7884   *)
7885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888   IFS=$as_save_IFS
7889   test -z "$as_dir" && as_dir=.
7890   for ac_exec_ext in '' $ac_executable_extensions; do
7891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7892     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894     break 2
7895   fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900   ;;
7901 esac
7902 fi
7903 POD2HTML=$ac_cv_path_POD2HTML
7904 if test -n "$POD2HTML"; then
7905   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7906 echo "${ECHO_T}$POD2HTML" >&6; }
7907 else
7908   { echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6; }
7910 fi
7911
7912
7913 # Extract the first word of "pod2man", so it can be a program name with args.
7914 set dummy pod2man; ac_word=$2
7915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7917 if test "${ac_cv_path_POD2MAN+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   case $POD2MAN in
7921   [\\/]* | ?:[\\/]*)
7922   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7923   ;;
7924   *)
7925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930   for ac_exec_ext in '' $ac_executable_extensions; do
7931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7932     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934     break 2
7935   fi
7936 done
7937 done
7938 IFS=$as_save_IFS
7939
7940   ;;
7941 esac
7942 fi
7943 POD2MAN=$ac_cv_path_POD2MAN
7944 if test -n "$POD2MAN"; then
7945   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7946 echo "${ECHO_T}$POD2MAN" >&6; }
7947 else
7948   { echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6; }
7950 fi
7951
7952
7953 # Extract the first word of "runtest", so it can be a program name with args.
7954 set dummy runtest; ac_word=$2
7955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7957 if test "${ac_cv_path_RUNTEST+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960   case $RUNTEST in
7961   [\\/]* | ?:[\\/]*)
7962   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7963   ;;
7964   *)
7965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968   IFS=$as_save_IFS
7969   test -z "$as_dir" && as_dir=.
7970   for ac_exec_ext in '' $ac_executable_extensions; do
7971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7972     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974     break 2
7975   fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980   ;;
7981 esac
7982 fi
7983 RUNTEST=$ac_cv_path_RUNTEST
7984 if test -n "$RUNTEST"; then
7985   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7986 echo "${ECHO_T}$RUNTEST" >&6; }
7987 else
7988   { echo "$as_me:$LINENO: result: no" >&5
7989 echo "${ECHO_T}no" >&6; }
7990 fi
7991
7992
7993
7994 no_itcl=true
7995 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7996 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7997
7998 # Check whether --with-tclinclude was given.
7999 if test "${with_tclinclude+set}" = set; then
8000   withval=$with_tclinclude; with_tclinclude=${withval}
8001 else
8002   with_tclinclude=''
8003 fi
8004
8005 if test "${ac_cv_path_tclsh+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008
8009 if test x"${with_tclinclude}" != x ; then
8010   if test -f ${with_tclinclude}/tclsh ; then
8011     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8012   elif test -f ${with_tclinclude}/src/tclsh ; then
8013     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8014   else
8015     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8016 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8017    { (exit 1); exit 1; }; }
8018   fi
8019 fi
8020
8021 if test x"${ac_cv_path_tclsh}" = x ; then
8022   { echo "$as_me:$LINENO: result: none" >&5
8023 echo "${ECHO_T}none" >&6; }
8024   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
8025 do
8026   # Extract the first word of "$ac_prog", so it can be a program name with args.
8027 set dummy $ac_prog; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_TCLSH+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   case $TCLSH in
8034   [\\/]* | ?:[\\/]*)
8035   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8036   ;;
8037   *)
8038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043   for ac_exec_ext in '' $ac_executable_extensions; do
8044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053   ;;
8054 esac
8055 fi
8056 TCLSH=$ac_cv_path_TCLSH
8057 if test -n "$TCLSH"; then
8058   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8059 echo "${ECHO_T}$TCLSH" >&6; }
8060 else
8061   { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8063 fi
8064
8065
8066   test -n "$TCLSH" && break
8067 done
8068
8069   if test x"${TCLSH}" = x ; then
8070     ac_cv_path_tclsh='';
8071   else
8072     ac_cv_path_tclsh="${TCLSH}";
8073   fi
8074 else
8075   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8076 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8077   TCLSH="${ac_cv_path_tclsh}"
8078
8079 fi
8080
8081 fi
8082
8083 # Extract the first word of "zip", so it can be a program name with args.
8084 set dummy zip; ac_word=$2
8085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087 if test "${ac_cv_path_ZIP+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   case $ZIP in
8091   [\\/]* | ?:[\\/]*)
8092   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8093   ;;
8094   *)
8095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100   for ac_exec_ext in '' $ac_executable_extensions; do
8101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8102     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110   ;;
8111 esac
8112 fi
8113 ZIP=$ac_cv_path_ZIP
8114 if test -n "$ZIP"; then
8115   { echo "$as_me:$LINENO: result: $ZIP" >&5
8116 echo "${ECHO_T}$ZIP" >&6; }
8117 else
8118   { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8120 fi
8121
8122
8123 for ac_prog in ocamlc
8124 do
8125   # Extract the first word of "$ac_prog", so it can be a program name with args.
8126 set dummy $ac_prog; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_path_OCAMLC+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   case $OCAMLC in
8133   [\\/]* | ?:[\\/]*)
8134   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8135   ;;
8136   *)
8137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140   IFS=$as_save_IFS
8141   test -z "$as_dir" && as_dir=.
8142   for ac_exec_ext in '' $ac_executable_extensions; do
8143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8144     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146     break 2
8147   fi
8148 done
8149 done
8150 IFS=$as_save_IFS
8151
8152   ;;
8153 esac
8154 fi
8155 OCAMLC=$ac_cv_path_OCAMLC
8156 if test -n "$OCAMLC"; then
8157   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8158 echo "${ECHO_T}$OCAMLC" >&6; }
8159 else
8160   { echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6; }
8162 fi
8163
8164
8165   test -n "$OCAMLC" && break
8166 done
8167
8168 for ac_prog in ocamlopt
8169 do
8170   # Extract the first word of "$ac_prog", so it can be a program name with args.
8171 set dummy $ac_prog; ac_word=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   case $OCAMLOPT in
8178   [\\/]* | ?:[\\/]*)
8179   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8180   ;;
8181   *)
8182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187   for ac_exec_ext in '' $ac_executable_extensions; do
8188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8189     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194 done
8195 IFS=$as_save_IFS
8196
8197   ;;
8198 esac
8199 fi
8200 OCAMLOPT=$ac_cv_path_OCAMLOPT
8201 if test -n "$OCAMLOPT"; then
8202   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8203 echo "${ECHO_T}$OCAMLOPT" >&6; }
8204 else
8205   { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8207 fi
8208
8209
8210   test -n "$OCAMLOPT" && break
8211 done
8212
8213 for ac_prog in ocamldep
8214 do
8215   # Extract the first word of "$ac_prog", so it can be a program name with args.
8216 set dummy $ac_prog; ac_word=$2
8217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   case $OCAMLDEP in
8223   [\\/]* | ?:[\\/]*)
8224   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8225   ;;
8226   *)
8227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230   IFS=$as_save_IFS
8231   test -z "$as_dir" && as_dir=.
8232   for ac_exec_ext in '' $ac_executable_extensions; do
8233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236     break 2
8237   fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242   ;;
8243 esac
8244 fi
8245 OCAMLDEP=$ac_cv_path_OCAMLDEP
8246 if test -n "$OCAMLDEP"; then
8247   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8248 echo "${ECHO_T}$OCAMLDEP" >&6; }
8249 else
8250   { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8252 fi
8253
8254
8255   test -n "$OCAMLDEP" && break
8256 done
8257
8258 for ac_prog in ocamldoc
8259 do
8260   # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   case $OCAMLDOC in
8268   [\\/]* | ?:[\\/]*)
8269   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8270   ;;
8271   *)
8272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275   IFS=$as_save_IFS
8276   test -z "$as_dir" && as_dir=.
8277   for ac_exec_ext in '' $ac_executable_extensions; do
8278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8279     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281     break 2
8282   fi
8283 done
8284 done
8285 IFS=$as_save_IFS
8286
8287   ;;
8288 esac
8289 fi
8290 OCAMLDOC=$ac_cv_path_OCAMLDOC
8291 if test -n "$OCAMLDOC"; then
8292   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8293 echo "${ECHO_T}$OCAMLDOC" >&6; }
8294 else
8295   { echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6; }
8297 fi
8298
8299
8300   test -n "$OCAMLDOC" && break
8301 done
8302
8303 for ac_prog in gas as
8304 do
8305   # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309 if test "${ac_cv_path_GAS+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   case $GAS in
8313   [\\/]* | ?:[\\/]*)
8314   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8315   ;;
8316   *)
8317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320   IFS=$as_save_IFS
8321   test -z "$as_dir" && as_dir=.
8322   for ac_exec_ext in '' $ac_executable_extensions; do
8323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8324     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326     break 2
8327   fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332   ;;
8333 esac
8334 fi
8335 GAS=$ac_cv_path_GAS
8336 if test -n "$GAS"; then
8337   { echo "$as_me:$LINENO: result: $GAS" >&5
8338 echo "${ECHO_T}$GAS" >&6; }
8339 else
8340   { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8342 fi
8343
8344
8345   test -n "$GAS" && break
8346 done
8347
8348
8349 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8350 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8351 if test "${llvm_cv_link_use_r+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354    ac_ext=c
8355 ac_cpp='$CPP $CPPFLAGS'
8356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
8360   oldcflags="$CFLAGS"
8361   CFLAGS="$CFLAGS -Wl,-R."
8362   cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368
8369 int
8370 main ()
8371 {
8372 int main() { return 0; }
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_link") 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_try") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   llvm_cv_link_use_r=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416         llvm_cv_link_use_r=no
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext \
8420       conftest$ac_exeext conftest.$ac_ext
8421   CFLAGS="$oldcflags"
8422   ac_ext=c
8423 ac_cpp='$CPP $CPPFLAGS'
8424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8427
8428
8429 fi
8430 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8431 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8432 if test "$llvm_cv_link_use_r" = yes ; then
8433
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_LINK_R 1
8436 _ACEOF
8437
8438   fi
8439
8440
8441 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8442 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8443 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446    ac_ext=c
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452   oldcflags="$CFLAGS"
8453   CFLAGS="$CFLAGS -Wl,-export-dynamic"
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 int
8462 main ()
8463 {
8464 int main() { return 0; }
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (ac_try="$ac_link"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_link") 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8484   { (case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_try") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; } &&
8493          { ac_try='test -s conftest$ac_exeext'
8494   { (case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499   (eval "$ac_try") 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   llvm_cv_link_use_export_dynamic=yes
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508         llvm_cv_link_use_export_dynamic=no
8509 fi
8510
8511 rm -f core conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext conftest.$ac_ext
8513   CFLAGS="$oldcflags"
8514   ac_ext=c
8515 ac_cpp='$CPP $CPPFLAGS'
8516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519
8520
8521 fi
8522 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8523 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8524 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8525
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_LINK_EXPORT_DYNAMIC 1
8528 _ACEOF
8529
8530   fi
8531
8532
8533
8534
8535 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8536 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8537 if test "${ac_cv_c_const+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546
8547 int
8548 main ()
8549 {
8550 /* FIXME: Include the comments suggested by Paul. */
8551 #ifndef __cplusplus
8552   /* Ultrix mips cc rejects this.  */
8553   typedef int charset[2];
8554   const charset x;
8555   /* SunOS 4.1.1 cc rejects this.  */
8556   char const *const *ccp;
8557   char **p;
8558   /* NEC SVR4.0.2 mips cc rejects this.  */
8559   struct point {int x, y;};
8560   static struct point const zero = {0,0};
8561   /* AIX XL C 1.02.0.0 rejects this.
8562      It does not let you subtract one const X* pointer from another in
8563      an arm of an if-expression whose if-part is not a constant
8564      expression */
8565   const char *g = "string";
8566   ccp = &g + (g ? g-g : 0);
8567   /* HPUX 7.0 cc rejects these. */
8568   ++ccp;
8569   p = (char**) ccp;
8570   ccp = (char const *const *) p;
8571   { /* SCO 3.2v4 cc rejects this.  */
8572     char *t;
8573     char const *s = 0 ? (char *) 0 : (char const *) 0;
8574
8575     *t++ = 0;
8576     if (s) return 0;
8577   }
8578   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8579     int x[] = {25, 17};
8580     const int *foo = &x[0];
8581     ++foo;
8582   }
8583   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8584     typedef const int *iptr;
8585     iptr p = 0;
8586     ++p;
8587   }
8588   { /* AIX XL C 1.02.0.0 rejects this saying
8589        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8590     struct s { int j; const int *ap[3]; };
8591     struct s *b; b->j = 5;
8592   }
8593   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8594     const int foo = 10;
8595     if (!foo) return 0;
8596   }
8597   return !x[0] && !zero.x;
8598 #endif
8599
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608   *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611   (eval "$ac_compile") 2>conftest.er1
8612   ac_status=$?
8613   grep -v '^ *+' conftest.er1 >conftest.err
8614   rm -f conftest.er1
8615   cat conftest.err >&5
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } &&
8618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619   { (case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624   (eval "$ac_try") 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest.$ac_objext'
8629   { (case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_try") 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; }; then
8638   ac_cv_c_const=yes
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643         ac_cv_c_const=no
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8649 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8650 if test $ac_cv_c_const = no; then
8651
8652 cat >>confdefs.h <<\_ACEOF
8653 #define const
8654 _ACEOF
8655
8656 fi
8657
8658
8659
8660
8661
8662
8663 ac_header_dirent=no
8664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8665   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8666 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 #include <sys/types.h>
8678 #include <$ac_hdr>
8679
8680 int
8681 main ()
8682 {
8683 if ((DIR *) 0)
8684 return 0;
8685   ;
8686   return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8691 case "(($ac_try" in
8692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693   *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696   (eval "$ac_compile") 2>conftest.er1
8697   ac_status=$?
8698   grep -v '^ *+' conftest.er1 >conftest.err
8699   rm -f conftest.er1
8700   cat conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } &&
8703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8704   { (case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709   (eval "$ac_try") 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; } &&
8713          { ac_try='test -s conftest.$ac_objext'
8714   { (case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719   (eval "$ac_try") 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   eval "$as_ac_Header=yes"
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728         eval "$as_ac_Header=no"
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 ac_res=`eval echo '${'$as_ac_Header'}'`
8734                { echo "$as_me:$LINENO: result: $ac_res" >&5
8735 echo "${ECHO_T}$ac_res" >&6; }
8736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737   cat >>confdefs.h <<_ACEOF
8738 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8739 _ACEOF
8740
8741 ac_header_dirent=$ac_hdr; break
8742 fi
8743
8744 done
8745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8746 if test $ac_header_dirent = dirent.h; then
8747   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8748 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8749 if test "${ac_cv_search_opendir+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   ac_func_search_save_LIBS=$LIBS
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759
8760 /* Override any GCC internal prototype to avoid an error.
8761    Use char because int might match the return type of a GCC
8762    builtin and then its argument prototype would still apply.  */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 char opendir ();
8767 int
8768 main ()
8769 {
8770 return opendir ();
8771   ;
8772   return 0;
8773 }
8774 _ACEOF
8775 for ac_lib in '' dir; do
8776   if test -z "$ac_lib"; then
8777     ac_res="none required"
8778   else
8779     ac_res=-l$ac_lib
8780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8781   fi
8782   rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (ac_try="$ac_link"
8784 case "(($ac_try" in
8785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786   *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789   (eval "$ac_link") 2>conftest.er1
8790   ac_status=$?
8791   grep -v '^ *+' conftest.er1 >conftest.err
8792   rm -f conftest.er1
8793   cat conftest.err >&5
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8797   { (case "(($ac_try" in
8798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799   *) ac_try_echo=$ac_try;;
8800 esac
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802   (eval "$ac_try") 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; } &&
8806          { ac_try='test -s conftest$ac_exeext'
8807   { (case "(($ac_try" in
8808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809   *) ac_try_echo=$ac_try;;
8810 esac
8811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812   (eval "$ac_try") 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_cv_search_opendir=$ac_res
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821
8822 fi
8823
8824 rm -f core conftest.err conftest.$ac_objext \
8825       conftest$ac_exeext
8826   if test "${ac_cv_search_opendir+set}" = set; then
8827   break
8828 fi
8829 done
8830 if test "${ac_cv_search_opendir+set}" = set; then
8831   :
8832 else
8833   ac_cv_search_opendir=no
8834 fi
8835 rm conftest.$ac_ext
8836 LIBS=$ac_func_search_save_LIBS
8837 fi
8838 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8839 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8840 ac_res=$ac_cv_search_opendir
8841 if test "$ac_res" != no; then
8842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8843
8844 fi
8845
8846 else
8847   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8849 if test "${ac_cv_search_opendir+set}" = set; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   ac_func_search_save_LIBS=$LIBS
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859
8860 /* Override any GCC internal prototype to avoid an error.
8861    Use char because int might match the return type of a GCC
8862    builtin and then its argument prototype would still apply.  */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 char opendir ();
8867 int
8868 main ()
8869 {
8870 return opendir ();
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 for ac_lib in '' x; do
8876   if test -z "$ac_lib"; then
8877     ac_res="none required"
8878   else
8879     ac_res=-l$ac_lib
8880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8881   fi
8882   rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_link") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } &&
8896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897   { (case "(($ac_try" in
8898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899   *) ac_try_echo=$ac_try;;
8900 esac
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902   (eval "$ac_try") 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; } &&
8906          { ac_try='test -s conftest$ac_exeext'
8907   { (case "(($ac_try" in
8908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909   *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912   (eval "$ac_try") 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_search_opendir=$ac_res
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921
8922 fi
8923
8924 rm -f core conftest.err conftest.$ac_objext \
8925       conftest$ac_exeext
8926   if test "${ac_cv_search_opendir+set}" = set; then
8927   break
8928 fi
8929 done
8930 if test "${ac_cv_search_opendir+set}" = set; then
8931   :
8932 else
8933   ac_cv_search_opendir=no
8934 fi
8935 rm conftest.$ac_ext
8936 LIBS=$ac_func_search_save_LIBS
8937 fi
8938 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8939 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8940 ac_res=$ac_cv_search_opendir
8941 if test "$ac_res" != no; then
8942   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8943
8944 fi
8945
8946 fi
8947
8948
8949 for ac_header in dlfcn.h
8950 do
8951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8953   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8956   echo $ECHO_N "(cached) $ECHO_C" >&6
8957 fi
8958 ac_res=`eval echo '${'$as_ac_Header'}'`
8959                { echo "$as_me:$LINENO: result: $ac_res" >&5
8960 echo "${ECHO_T}$ac_res" >&6; }
8961 else
8962   # Is the header compilable?
8963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971 $ac_includes_default
8972 #include <$ac_header>
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (ac_try="$ac_compile"
8976 case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981   (eval "$ac_compile") 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8989   { (case "(($ac_try" in
8990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991   *) ac_try_echo=$ac_try;;
8992 esac
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994   (eval "$ac_try") 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; } &&
8998          { ac_try='test -s conftest.$ac_objext'
8999   { (case "(($ac_try" in
9000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001   *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004   (eval "$ac_try") 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; }; then
9008   ac_header_compiler=yes
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013         ac_header_compiler=no
9014 fi
9015
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9018 echo "${ECHO_T}$ac_header_compiler" >&6; }
9019
9020 # Is the header present?
9021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029 #include <$ac_header>
9030 _ACEOF
9031 if { (ac_try="$ac_cpp conftest.$ac_ext"
9032 case "(($ac_try" in
9033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034   *) ac_try_echo=$ac_try;;
9035 esac
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9038   ac_status=$?
9039   grep -v '^ *+' conftest.er1 >conftest.err
9040   rm -f conftest.er1
9041   cat conftest.err >&5
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } >/dev/null; then
9044   if test -s conftest.err; then
9045     ac_cpp_err=$ac_c_preproc_warn_flag
9046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9047   else
9048     ac_cpp_err=
9049   fi
9050 else
9051   ac_cpp_err=yes
9052 fi
9053 if test -z "$ac_cpp_err"; then
9054   ac_header_preproc=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059   ac_header_preproc=no
9060 fi
9061
9062 rm -f conftest.err conftest.$ac_ext
9063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064 echo "${ECHO_T}$ac_header_preproc" >&6; }
9065
9066 # So?  What about this header?
9067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9068   yes:no: )
9069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073     ac_header_preproc=yes
9074     ;;
9075   no:yes:* )
9076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9088     ( cat <<\_ASBOX
9089 ## ----------------------------------- ##
9090 ## Report this to llvmbugs@cs.uiuc.edu ##
9091 ## ----------------------------------- ##
9092 _ASBOX
9093      ) | sed "s/^/$as_me: WARNING:     /" >&2
9094     ;;
9095 esac
9096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   eval "$as_ac_Header=\$ac_header_preproc"
9102 fi
9103 ac_res=`eval echo '${'$as_ac_Header'}'`
9104                { echo "$as_me:$LINENO: result: $ac_res" >&5
9105 echo "${ECHO_T}$ac_res" >&6; }
9106
9107 fi
9108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9109   cat >>confdefs.h <<_ACEOF
9110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9111 _ACEOF
9112
9113 fi
9114
9115 done
9116
9117 # Check whether --enable-ltdl-install was given.
9118 if test "${enable_ltdl_install+set}" = set; then
9119   enableval=$enable_ltdl_install;
9120 fi
9121
9122
9123
9124
9125 if test x"${enable_ltdl_install-no}" != xno; then
9126   INSTALL_LTDL_TRUE=
9127   INSTALL_LTDL_FALSE='#'
9128 else
9129   INSTALL_LTDL_TRUE='#'
9130   INSTALL_LTDL_FALSE=
9131 fi
9132
9133
9134
9135 if test x"${enable_ltdl_convenience-no}" != xno; then
9136   CONVENIENCE_LTDL_TRUE=
9137   CONVENIENCE_LTDL_FALSE='#'
9138 else
9139   CONVENIENCE_LTDL_TRUE='#'
9140   CONVENIENCE_LTDL_FALSE=
9141 fi
9142
9143
9144 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9145 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9146 library_names_spec=
9147 libname_spec='lib$name'
9148 soname_spec=
9149 shrext_cmds=".so"
9150 postinstall_cmds=
9151 postuninstall_cmds=
9152 finish_cmds=
9153 finish_eval=
9154 shlibpath_var=
9155 shlibpath_overrides_runpath=unknown
9156 version_type=none
9157 dynamic_linker="$host_os ld.so"
9158 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9159 if test "$GCC" = yes; then
9160   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9162     # if the path contains ";" then we assume it to be the separator
9163     # otherwise default to the standard path separator (i.e. ":") - it is
9164     # assumed that no part of a normal pathname contains ";" but that should
9165     # okay in the real world where ";" in dirpaths is itself problematic.
9166     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9167   else
9168     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9169   fi
9170 else
9171   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9172 fi
9173 need_lib_prefix=unknown
9174 hardcode_into_libs=no
9175
9176 # when you set need_version to no, make sure it does not cause -set_version
9177 # flags to be left without arguments
9178 need_version=unknown
9179
9180 case $host_os in
9181 aix3*)
9182   version_type=linux
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9184   shlibpath_var=LIBPATH
9185
9186   # AIX 3 has no versioning support, so we append a major version to the name.
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   ;;
9189
9190 aix4* | aix5*)
9191   version_type=linux
9192   need_lib_prefix=no
9193   need_version=no
9194   hardcode_into_libs=yes
9195   if test "$host_cpu" = ia64; then
9196     # AIX 5 supports IA64
9197     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9198     shlibpath_var=LD_LIBRARY_PATH
9199   else
9200     # With GCC up to 2.95.x, collect2 would create an import file
9201     # for dependence libraries.  The import file would start with
9202     # the line `#! .'.  This would cause the generated library to
9203     # depend on `.', always an invalid library.  This was fixed in
9204     # development snapshots of GCC prior to 3.0.
9205     case $host_os in
9206       aix4 | aix4.[01] | aix4.[01].*)
9207       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9208            echo ' yes '
9209            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9210         :
9211       else
9212         can_build_shared=no
9213       fi
9214       ;;
9215     esac
9216     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9217     # soname into executable. Probably we can add versioning support to
9218     # collect2, so additional links can be useful in future.
9219     if test "$aix_use_runtimelinking" = yes; then
9220       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9221       # instead of lib<name>.a to let people know that these are not
9222       # typical AIX shared libraries.
9223       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224     else
9225       # We preserve .a as extension for shared libraries through AIX4.2
9226       # and later when we are not doing run time linking.
9227       library_names_spec='${libname}${release}.a $libname.a'
9228       soname_spec='${libname}${release}${shared_ext}$major'
9229     fi
9230     shlibpath_var=LIBPATH
9231   fi
9232   ;;
9233
9234 amigaos*)
9235   library_names_spec='$libname.ixlibrary $libname.a'
9236   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9237   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'
9238   ;;
9239
9240 beos*)
9241   library_names_spec='${libname}${shared_ext}'
9242   dynamic_linker="$host_os ld.so"
9243   shlibpath_var=LIBRARY_PATH
9244   ;;
9245
9246 bsdi[45]*)
9247   version_type=linux
9248   need_version=no
9249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250   soname_spec='${libname}${release}${shared_ext}$major'
9251   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9254   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9255   # the default ld.so.conf also contains /usr/contrib/lib and
9256   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9257   # libtool to hard-code these into programs
9258   ;;
9259
9260 cygwin* | mingw* | pw32*)
9261   version_type=windows
9262   shrext_cmds=".dll"
9263   need_version=no
9264   need_lib_prefix=no
9265
9266   case $GCC,$host_os in
9267   yes,cygwin* | yes,mingw* | yes,pw32*)
9268     library_names_spec='$libname.dll.a'
9269     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9270     postinstall_cmds='base_file=`basename \${file}`~
9271       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9272       dldir=$destdir/`dirname \$dlpath`~
9273       test -d \$dldir || mkdir -p \$dldir~
9274       $install_prog $dir/$dlname \$dldir/$dlname~
9275       chmod a+x \$dldir/$dlname'
9276     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9277       dlpath=$dir/\$dldll~
9278        $rm \$dlpath'
9279     shlibpath_overrides_runpath=yes
9280
9281     case $host_os in
9282     cygwin*)
9283       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9284       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9285       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9286       ;;
9287     mingw*)
9288       # MinGW DLLs use traditional 'lib' prefix
9289       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9290       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9291       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9292         # It is most probably a Windows format PATH printed by
9293         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9294         # path with ; separators, and with drive letters. We can handle the
9295         # drive letters (cygwin fileutils understands them), so leave them,
9296         # especially as we might pass files found there to a mingw objdump,
9297         # which wouldn't understand a cygwinified path. Ahh.
9298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9299       else
9300         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9301       fi
9302       ;;
9303     pw32*)
9304       # pw32 DLLs use 'pw' prefix rather than 'lib'
9305       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9306       ;;
9307     esac
9308     ;;
9309
9310   *)
9311     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9312     ;;
9313   esac
9314   dynamic_linker='Win32 ld.exe'
9315   # FIXME: first we should search . and the directory the executable is in
9316   shlibpath_var=PATH
9317   ;;
9318
9319 darwin* | rhapsody*)
9320   dynamic_linker="$host_os dyld"
9321   version_type=darwin
9322   need_lib_prefix=no
9323   need_version=no
9324   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9325   soname_spec='${libname}${release}${major}$shared_ext'
9326   shlibpath_overrides_runpath=yes
9327   shlibpath_var=DYLD_LIBRARY_PATH
9328   shrext_cmds='.dylib'
9329   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9330   if test "$GCC" = yes; then
9331     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"`
9332   else
9333     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9334   fi
9335   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9336   ;;
9337
9338 dgux*)
9339   version_type=linux
9340   need_lib_prefix=no
9341   need_version=no
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9343   soname_spec='${libname}${release}${shared_ext}$major'
9344   shlibpath_var=LD_LIBRARY_PATH
9345   ;;
9346
9347 freebsd1*)
9348   dynamic_linker=no
9349   ;;
9350
9351 kfreebsd*-gnu)
9352   version_type=linux
9353   need_lib_prefix=no
9354   need_version=no
9355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356   soname_spec='${libname}${release}${shared_ext}$major'
9357   shlibpath_var=LD_LIBRARY_PATH
9358   shlibpath_overrides_runpath=no
9359   hardcode_into_libs=yes
9360   dynamic_linker='GNU ld.so'
9361   ;;
9362
9363 freebsd* | dragonfly*)
9364   # DragonFly does not have aout.  When/if they implement a new
9365   # versioning mechanism, adjust this.
9366   if test -x /usr/bin/objformat; then
9367     objformat=`/usr/bin/objformat`
9368   else
9369     case $host_os in
9370     freebsd[123]*) objformat=aout ;;
9371     *) objformat=elf ;;
9372     esac
9373   fi
9374   version_type=freebsd-$objformat
9375   case $version_type in
9376     freebsd-elf*)
9377       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9378       need_version=no
9379       need_lib_prefix=no
9380       ;;
9381     freebsd-*)
9382       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9383       need_version=yes
9384       ;;
9385   esac
9386   shlibpath_var=LD_LIBRARY_PATH
9387   case $host_os in
9388   freebsd2*)
9389     shlibpath_overrides_runpath=yes
9390     ;;
9391   freebsd3.[01]* | freebsdelf3.[01]*)
9392     shlibpath_overrides_runpath=yes
9393     hardcode_into_libs=yes
9394     ;;
9395   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9396   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9397     shlibpath_overrides_runpath=no
9398     hardcode_into_libs=yes
9399     ;;
9400   freebsd*) # from 4.6 on
9401     shlibpath_overrides_runpath=yes
9402     hardcode_into_libs=yes
9403     ;;
9404   esac
9405   ;;
9406
9407 gnu*)
9408   version_type=linux
9409   need_lib_prefix=no
9410   need_version=no
9411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9412   soname_spec='${libname}${release}${shared_ext}$major'
9413   shlibpath_var=LD_LIBRARY_PATH
9414   hardcode_into_libs=yes
9415   ;;
9416
9417 hpux9* | hpux10* | hpux11*)
9418   # Give a soname corresponding to the major version so that dld.sl refuses to
9419   # link against other versions.
9420   version_type=sunos
9421   need_lib_prefix=no
9422   need_version=no
9423   case $host_cpu in
9424   ia64*)
9425     shrext_cmds='.so'
9426     hardcode_into_libs=yes
9427     dynamic_linker="$host_os dld.so"
9428     shlibpath_var=LD_LIBRARY_PATH
9429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431     soname_spec='${libname}${release}${shared_ext}$major'
9432     if test "X$HPUX_IA64_MODE" = X32; then
9433       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9434     else
9435       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9436     fi
9437     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9438     ;;
9439    hppa*64*)
9440      shrext_cmds='.sl'
9441      hardcode_into_libs=yes
9442      dynamic_linker="$host_os dld.sl"
9443      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9444      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9445      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446      soname_spec='${libname}${release}${shared_ext}$major'
9447      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9448      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9449      ;;
9450    *)
9451     shrext_cmds='.sl'
9452     dynamic_linker="$host_os dld.sl"
9453     shlibpath_var=SHLIB_PATH
9454     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456     soname_spec='${libname}${release}${shared_ext}$major'
9457     ;;
9458   esac
9459   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9460   postinstall_cmds='chmod 555 $lib'
9461   ;;
9462
9463 interix3*)
9464   version_type=linux
9465   need_lib_prefix=no
9466   need_version=no
9467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9468   soname_spec='${libname}${release}${shared_ext}$major'
9469   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9470   shlibpath_var=LD_LIBRARY_PATH
9471   shlibpath_overrides_runpath=no
9472   hardcode_into_libs=yes
9473   ;;
9474
9475 irix5* | irix6* | nonstopux*)
9476   case $host_os in
9477     nonstopux*) version_type=nonstopux ;;
9478     *)
9479         if test "$lt_cv_prog_gnu_ld" = yes; then
9480                 version_type=linux
9481         else
9482                 version_type=irix
9483         fi ;;
9484   esac
9485   need_lib_prefix=no
9486   need_version=no
9487   soname_spec='${libname}${release}${shared_ext}$major'
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9489   case $host_os in
9490   irix5* | nonstopux*)
9491     libsuff= shlibsuff=
9492     ;;
9493   *)
9494     case $LD in # libtool.m4 will add one of these switches to LD
9495     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9496       libsuff= shlibsuff= libmagic=32-bit;;
9497     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9498       libsuff=32 shlibsuff=N32 libmagic=N32;;
9499     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9500       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9501     *) libsuff= shlibsuff= libmagic=never-match;;
9502     esac
9503     ;;
9504   esac
9505   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9506   shlibpath_overrides_runpath=no
9507   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9508   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9509   hardcode_into_libs=yes
9510   ;;
9511
9512 # No shared lib support for Linux oldld, aout, or coff.
9513 linux*oldld* | linux*aout* | linux*coff*)
9514   dynamic_linker=no
9515   ;;
9516
9517 # This must be Linux ELF.
9518 linux*)
9519   version_type=linux
9520   need_lib_prefix=no
9521   need_version=no
9522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523   soname_spec='${libname}${release}${shared_ext}$major'
9524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9525   shlibpath_var=LD_LIBRARY_PATH
9526   shlibpath_overrides_runpath=no
9527   # This implies no fast_install, which is unacceptable.
9528   # Some rework will be needed to allow for fast_install
9529   # before this can be enabled.
9530   hardcode_into_libs=yes
9531
9532   # Append ld.so.conf contents to the search path
9533   if test -f /etc/ld.so.conf; then
9534     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' ' '`
9535     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9536   fi
9537
9538   # We used to test for /lib/ld.so.1 and disable shared libraries on
9539   # powerpc, because MkLinux only supported shared libraries with the
9540   # GNU dynamic linker.  Since this was broken with cross compilers,
9541   # most powerpc-linux boxes support dynamic linking these days and
9542   # people can always --disable-shared, the test was removed, and we
9543   # assume the GNU/Linux dynamic linker is in use.
9544   dynamic_linker='GNU/Linux ld.so'
9545   ;;
9546
9547 knetbsd*-gnu)
9548   version_type=linux
9549   need_lib_prefix=no
9550   need_version=no
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9552   soname_spec='${libname}${release}${shared_ext}$major'
9553   shlibpath_var=LD_LIBRARY_PATH
9554   shlibpath_overrides_runpath=no
9555   hardcode_into_libs=yes
9556   dynamic_linker='GNU ld.so'
9557   ;;
9558
9559 netbsd*)
9560   version_type=sunos
9561   need_lib_prefix=no
9562   need_version=no
9563   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9566     dynamic_linker='NetBSD (a.out) ld.so'
9567   else
9568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9569     soname_spec='${libname}${release}${shared_ext}$major'
9570     dynamic_linker='NetBSD ld.elf_so'
9571   fi
9572   shlibpath_var=LD_LIBRARY_PATH
9573   shlibpath_overrides_runpath=yes
9574   hardcode_into_libs=yes
9575   ;;
9576
9577 newsos6)
9578   version_type=linux
9579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580   shlibpath_var=LD_LIBRARY_PATH
9581   shlibpath_overrides_runpath=yes
9582   ;;
9583
9584 nto-qnx*)
9585   version_type=linux
9586   need_lib_prefix=no
9587   need_version=no
9588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589   soname_spec='${libname}${release}${shared_ext}$major'
9590   shlibpath_var=LD_LIBRARY_PATH
9591   shlibpath_overrides_runpath=yes
9592   ;;
9593
9594 openbsd*)
9595   version_type=sunos
9596   sys_lib_dlsearch_path_spec="/usr/lib"
9597   need_lib_prefix=no
9598   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9599   case $host_os in
9600     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9601     *)                         need_version=no  ;;
9602   esac
9603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9605   shlibpath_var=LD_LIBRARY_PATH
9606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9607     case $host_os in
9608       openbsd2.[89] | openbsd2.[89].*)
9609         shlibpath_overrides_runpath=no
9610         ;;
9611       *)
9612         shlibpath_overrides_runpath=yes
9613         ;;
9614       esac
9615   else
9616     shlibpath_overrides_runpath=yes
9617   fi
9618   ;;
9619
9620 os2*)
9621   libname_spec='$name'
9622   shrext_cmds=".dll"
9623   need_lib_prefix=no
9624   library_names_spec='$libname${shared_ext} $libname.a'
9625   dynamic_linker='OS/2 ld.exe'
9626   shlibpath_var=LIBPATH
9627   ;;
9628
9629 osf3* | osf4* | osf5*)
9630   version_type=osf
9631   need_lib_prefix=no
9632   need_version=no
9633   soname_spec='${libname}${release}${shared_ext}$major'
9634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635   shlibpath_var=LD_LIBRARY_PATH
9636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9638   ;;
9639
9640 solaris*)
9641   version_type=linux
9642   need_lib_prefix=no
9643   need_version=no
9644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645   soname_spec='${libname}${release}${shared_ext}$major'
9646   shlibpath_var=LD_LIBRARY_PATH
9647   shlibpath_overrides_runpath=yes
9648   hardcode_into_libs=yes
9649   # ldd complains unless libraries are executable
9650   postinstall_cmds='chmod +x $lib'
9651   ;;
9652
9653 sunos4*)
9654   version_type=sunos
9655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9656   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9657   shlibpath_var=LD_LIBRARY_PATH
9658   shlibpath_overrides_runpath=yes
9659   if test "$with_gnu_ld" = yes; then
9660     need_lib_prefix=no
9661   fi
9662   need_version=yes
9663   ;;
9664
9665 sysv4 | sysv4.3*)
9666   version_type=linux
9667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668   soname_spec='${libname}${release}${shared_ext}$major'
9669   shlibpath_var=LD_LIBRARY_PATH
9670   case $host_vendor in
9671     sni)
9672       shlibpath_overrides_runpath=no
9673       need_lib_prefix=no
9674       export_dynamic_flag_spec='${wl}-Blargedynsym'
9675       runpath_var=LD_RUN_PATH
9676       ;;
9677     siemens)
9678       need_lib_prefix=no
9679       ;;
9680     motorola)
9681       need_lib_prefix=no
9682       need_version=no
9683       shlibpath_overrides_runpath=no
9684       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9685       ;;
9686   esac
9687   ;;
9688
9689 sysv4*MP*)
9690   if test -d /usr/nec ;then
9691     version_type=linux
9692     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9693     soname_spec='$libname${shared_ext}.$major'
9694     shlibpath_var=LD_LIBRARY_PATH
9695   fi
9696   ;;
9697
9698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9699   version_type=freebsd-elf
9700   need_lib_prefix=no
9701   need_version=no
9702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9703   soname_spec='${libname}${release}${shared_ext}$major'
9704   shlibpath_var=LD_LIBRARY_PATH
9705   hardcode_into_libs=yes
9706   if test "$with_gnu_ld" = yes; then
9707     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9708     shlibpath_overrides_runpath=no
9709   else
9710     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9711     shlibpath_overrides_runpath=yes
9712     case $host_os in
9713       sco3.2v5*)
9714         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9715         ;;
9716     esac
9717   fi
9718   sys_lib_dlsearch_path_spec='/usr/lib'
9719   ;;
9720
9721 uts4*)
9722   version_type=linux
9723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724   soname_spec='${libname}${release}${shared_ext}$major'
9725   shlibpath_var=LD_LIBRARY_PATH
9726   ;;
9727
9728 *)
9729   dynamic_linker=no
9730   ;;
9731 esac
9732 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9733 echo "${ECHO_T}$dynamic_linker" >&6; }
9734 test "$dynamic_linker" = no && can_build_shared=no
9735
9736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9737 if test "$GCC" = yes; then
9738   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9739 fi
9740
9741
9742 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9743 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9744 if test "${libltdl_cv_shlibext+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747
9748 module=yes
9749 eval libltdl_cv_shlibext=$shrext_cmds
9750
9751 fi
9752 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9753 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9754 if test -n "$libltdl_cv_shlibext"; then
9755
9756 cat >>confdefs.h <<_ACEOF
9757 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9758 _ACEOF
9759
9760 fi
9761
9762
9763 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9764 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9765 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   libltdl_cv_shlibpath_var="$shlibpath_var"
9769 fi
9770 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9771 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9772 if test -n "$libltdl_cv_shlibpath_var"; then
9773
9774 cat >>confdefs.h <<_ACEOF
9775 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9776 _ACEOF
9777
9778 fi
9779
9780
9781 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9782 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9783 if test "${libltdl_cv_sys_search_path+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9787 fi
9788 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9789 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9790 if test -n "$libltdl_cv_sys_search_path"; then
9791   sys_search_path=
9792   for dir in $libltdl_cv_sys_search_path; do
9793     if test -z "$sys_search_path"; then
9794       sys_search_path="$dir"
9795     else
9796       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9797     fi
9798   done
9799
9800 cat >>confdefs.h <<_ACEOF
9801 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9802 _ACEOF
9803
9804 fi
9805
9806 { echo "$as_me:$LINENO: checking for objdir" >&5
9807 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9808 if test "${libltdl_cv_objdir+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   libltdl_cv_objdir="$objdir"
9812   if test -n "$objdir"; then
9813     :
9814   else
9815     rm -f .libs 2>/dev/null
9816     mkdir .libs 2>/dev/null
9817     if test -d .libs; then
9818       libltdl_cv_objdir=.libs
9819     else
9820       # MS-DOS does not allow filenames that begin with a dot.
9821       libltdl_cv_objdir=_libs
9822     fi
9823   rmdir .libs 2>/dev/null
9824   fi
9825
9826 fi
9827 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9828 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9829
9830 cat >>confdefs.h <<_ACEOF
9831 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9832 _ACEOF
9833
9834
9835
9836
9837
9838
9839 # Check for command to grab the raw symbol name followed by C symbol from nm.
9840 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9841 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9842 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845
9846 # These are sane defaults that work on at least a few old systems.
9847 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9848
9849 # Character class describing NM global symbol codes.
9850 symcode='[BCDEGRST]'
9851
9852 # Regexp to match symbols that can be accessed directly from C.
9853 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9854
9855 # Transform an extracted symbol line into a proper C declaration
9856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9857
9858 # Transform an extracted symbol line into symbol name and symbol address
9859 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'"
9860
9861 # Define system-specific variables.
9862 case $host_os in
9863 aix*)
9864   symcode='[BCDT]'
9865   ;;
9866 cygwin* | mingw* | pw32*)
9867   symcode='[ABCDGISTW]'
9868   ;;
9869 hpux*) # Its linker distinguishes data from code symbols
9870   if test "$host_cpu" = ia64; then
9871     symcode='[ABCDEGRST]'
9872   fi
9873   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9874   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'"
9875   ;;
9876 linux*)
9877   if test "$host_cpu" = ia64; then
9878     symcode='[ABCDGIRSTW]'
9879     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9880     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'"
9881   fi
9882   ;;
9883 irix* | nonstopux*)
9884   symcode='[BCDEGRST]'
9885   ;;
9886 osf*)
9887   symcode='[BCDEGQRST]'
9888   ;;
9889 solaris*)
9890   symcode='[BDRT]'
9891   ;;
9892 sco3.2v5*)
9893   symcode='[DT]'
9894   ;;
9895 sysv4.2uw2*)
9896   symcode='[DT]'
9897   ;;
9898 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9899   symcode='[ABDT]'
9900   ;;
9901 sysv4)
9902   symcode='[DFNSTU]'
9903   ;;
9904 esac
9905
9906 # Handle CRLF in mingw tool chain
9907 opt_cr=
9908 case $build_os in
9909 mingw*)
9910   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9911   ;;
9912 esac
9913
9914 # If we're using GNU nm, then use its standard symbol codes.
9915 case `$NM -V 2>&1` in
9916 *GNU* | *'with BFD'*)
9917   symcode='[ABCDGIRSTW]' ;;
9918 esac
9919
9920 # Try without a prefix undercore, then with it.
9921 for ac_symprfx in "" "_"; do
9922
9923   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9924   symxfrm="\\1 $ac_symprfx\\2 \\2"
9925
9926   # Write the raw and C identifiers.
9927   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9928
9929   # Check to see that the pipe works correctly.
9930   pipe_works=no
9931
9932   rm -f conftest*
9933   cat > conftest.$ac_ext <<EOF
9934 #ifdef __cplusplus
9935 extern "C" {
9936 #endif
9937 char nm_test_var;
9938 void nm_test_func(){}
9939 #ifdef __cplusplus
9940 }
9941 #endif
9942 int main(){nm_test_var='a';nm_test_func();return(0);}
9943 EOF
9944
9945   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946   (eval $ac_compile) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); }; then
9950     # Now try to grab the symbols.
9951     nlist=conftest.nm
9952     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9953   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); } && test -s "$nlist"; then
9957       # Try sorting and uniquifying the output.
9958       if sort "$nlist" | uniq > "$nlist"T; then
9959         mv -f "$nlist"T "$nlist"
9960       else
9961         rm -f "$nlist"T
9962       fi
9963
9964       # Make sure that we snagged all the symbols we need.
9965       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9966         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9967           cat <<EOF > conftest.$ac_ext
9968 #ifdef __cplusplus
9969 extern "C" {
9970 #endif
9971
9972 EOF
9973           # Now generate the symbol file.
9974           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9975
9976           cat <<EOF >> conftest.$ac_ext
9977 #if defined (__STDC__) && __STDC__
9978 # define lt_ptr_t void *
9979 #else
9980 # define lt_ptr_t char *
9981 # define const
9982 #endif
9983
9984 /* The mapping between symbol names and symbols. */
9985 const struct {
9986   const char *name;
9987   lt_ptr_t address;
9988 }
9989 lt_preloaded_symbols[] =
9990 {
9991 EOF
9992           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9993           cat <<\EOF >> conftest.$ac_ext
9994   {0, (lt_ptr_t) 0}
9995 };
9996
9997 #ifdef __cplusplus
9998 }
9999 #endif
10000 EOF
10001           # Now try linking the two files.
10002           mv conftest.$ac_objext conftstm.$ac_objext
10003           lt_save_LIBS="$LIBS"
10004           lt_save_CFLAGS="$CFLAGS"
10005           LIBS="conftstm.$ac_objext"
10006           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10007           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008   (eval $ac_link) 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10012             pipe_works=yes
10013           fi
10014           LIBS="$lt_save_LIBS"
10015           CFLAGS="$lt_save_CFLAGS"
10016         else
10017           echo "cannot find nm_test_func in $nlist" >&5
10018         fi
10019       else
10020         echo "cannot find nm_test_var in $nlist" >&5
10021       fi
10022     else
10023       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10024     fi
10025   else
10026     echo "$progname: failed program was:" >&5
10027     cat conftest.$ac_ext >&5
10028   fi
10029   rm -f conftest* conftst*
10030
10031   # Do not use the global_symbol_pipe unless it works.
10032   if test "$pipe_works" = yes; then
10033     break
10034   else
10035     lt_cv_sys_global_symbol_pipe=
10036   fi
10037 done
10038
10039 fi
10040
10041 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10042   lt_cv_sys_global_symbol_to_cdecl=
10043 fi
10044 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10045   { echo "$as_me:$LINENO: result: failed" >&5
10046 echo "${ECHO_T}failed" >&6; }
10047 else
10048   { echo "$as_me:$LINENO: result: ok" >&5
10049 echo "${ECHO_T}ok" >&6; }
10050 fi
10051
10052
10053 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10054 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10055 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10059     libltdl_cv_preloaded_symbols=yes
10060   else
10061     libltdl_cv_preloaded_symbols=no
10062   fi
10063
10064 fi
10065 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10066 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10067 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10068
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_PRELOADED_SYMBOLS 1
10071 _ACEOF
10072
10073 fi
10074
10075 LIBADD_DL=
10076
10077 ac_ext=c
10078 ac_cpp='$CPP $CPPFLAGS'
10079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10082
10083
10084 { echo "$as_me:$LINENO: checking for shl_load" >&5
10085 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10086 if test "${ac_cv_func_shl_load+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10097 #define shl_load innocuous_shl_load
10098
10099 /* System header to define __stub macros and hopefully few prototypes,
10100     which can conflict with char shl_load (); below.
10101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102     <limits.h> exists even on freestanding compilers.  */
10103
10104 #ifdef __STDC__
10105 # include <limits.h>
10106 #else
10107 # include <assert.h>
10108 #endif
10109
10110 #undef shl_load
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113    Use char because int might match the return type of a GCC
10114    builtin and then its argument prototype would still apply.  */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char shl_load ();
10119 /* The GNU C library defines this for functions which it implements
10120     to always fail with ENOSYS.  Some functions are actually named
10121     something starting with __ and the normal name is an alias.  */
10122 #if defined __stub_shl_load || defined __stub___shl_load
10123 choke me
10124 #endif
10125
10126 int
10127 main ()
10128 {
10129 return shl_load ();
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_func_shl_load=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173         ac_cv_func_shl_load=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext \
10177       conftest$ac_exeext conftest.$ac_ext
10178 fi
10179 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10180 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10181 if test $ac_cv_func_shl_load = yes; then
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_SHL_LOAD 1
10185 _ACEOF
10186
10187 else
10188   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10189 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10190 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-ldld  $LIBS"
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
10202 /* Override any GCC internal prototype to avoid an error.
10203    Use char because int might match the return type of a GCC
10204    builtin and then its argument prototype would still apply.  */
10205 #ifdef __cplusplus
10206 extern "C"
10207 #endif
10208 char shl_load ();
10209 int
10210 main ()
10211 {
10212 return shl_load ();
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_link") 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232   { (case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_try") 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; }; then
10251   ac_cv_lib_dld_shl_load=yes
10252 else
10253   echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10255
10256         ac_cv_lib_dld_shl_load=no
10257 fi
10258
10259 rm -f core conftest.err conftest.$ac_objext \
10260       conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10262 fi
10263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10264 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10265 if test $ac_cv_lib_dld_shl_load = yes; then
10266
10267 cat >>confdefs.h <<\_ACEOF
10268 #define HAVE_SHL_LOAD 1
10269 _ACEOF
10270
10271         LIBADD_DL="$LIBADD_DL -ldld"
10272 else
10273   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10274 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278   ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-ldl  $LIBS"
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 /* Override any GCC internal prototype to avoid an error.
10288    Use char because int might match the return type of a GCC
10289    builtin and then its argument prototype would still apply.  */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char dlopen ();
10294 int
10295 main ()
10296 {
10297 return dlopen ();
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (ac_try="$ac_link"
10304 case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309   (eval "$ac_link") 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10317   { (case "(($ac_try" in
10318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319   *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322   (eval "$ac_try") 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; } &&
10326          { ac_try='test -s conftest$ac_exeext'
10327   { (case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_try") 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; }; then
10336   ac_cv_lib_dl_dlopen=yes
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341         ac_cv_lib_dl_dlopen=no
10342 fi
10343
10344 rm -f core conftest.err conftest.$ac_objext \
10345       conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10347 fi
10348 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10350 if test $ac_cv_lib_dl_dlopen = yes; then
10351
10352 cat >>confdefs.h <<\_ACEOF
10353 #define HAVE_LIBDL 1
10354 _ACEOF
10355
10356                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10357 else
10358   cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h.  */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h.  */
10364 #if HAVE_DLFCN_H
10365 #  include <dlfcn.h>
10366 #endif
10367
10368 int
10369 main ()
10370 {
10371 dlopen(0, 0);
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_link") 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } &&
10390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391   { (case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_try") 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; } &&
10400          { ac_try='test -s conftest$ac_exeext'
10401   { (case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_try") 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_LIBDL 1
10413 _ACEOF
10414  libltdl_cv_func_dlopen="yes"
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10420 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10421 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424   ac_check_lib_save_LIBS=$LIBS
10425 LIBS="-lsvld  $LIBS"
10426 cat >conftest.$ac_ext <<_ACEOF
10427 /* confdefs.h.  */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h.  */
10432
10433 /* Override any GCC internal prototype to avoid an error.
10434    Use char because int might match the return type of a GCC
10435    builtin and then its argument prototype would still apply.  */
10436 #ifdef __cplusplus
10437 extern "C"
10438 #endif
10439 char dlopen ();
10440 int
10441 main ()
10442 {
10443 return dlopen ();
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_link") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } &&
10462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10463   { (case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468   (eval "$ac_try") 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; } &&
10472          { ac_try='test -s conftest$ac_exeext'
10473   { (case "(($ac_try" in
10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475   *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478   (eval "$ac_try") 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_cv_lib_svld_dlopen=yes
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487         ac_cv_lib_svld_dlopen=no
10488 fi
10489
10490 rm -f core conftest.err conftest.$ac_objext \
10491       conftest$ac_exeext conftest.$ac_ext
10492 LIBS=$ac_check_lib_save_LIBS
10493 fi
10494 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10495 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10496 if test $ac_cv_lib_svld_dlopen = yes; then
10497
10498 cat >>confdefs.h <<\_ACEOF
10499 #define HAVE_LIBDL 1
10500 _ACEOF
10501
10502                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10503 else
10504   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10505 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10506 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   ac_check_lib_save_LIBS=$LIBS
10510 LIBS="-ldld  $LIBS"
10511 cat >conftest.$ac_ext <<_ACEOF
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517
10518 /* Override any GCC internal prototype to avoid an error.
10519    Use char because int might match the return type of a GCC
10520    builtin and then its argument prototype would still apply.  */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char dld_link ();
10525 int
10526 main ()
10527 {
10528 return dld_link ();
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (ac_try="$ac_link"
10535 case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_link") 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548   { (case "(($ac_try" in
10549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550   *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553   (eval "$ac_try") 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest$ac_exeext'
10558   { (case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_try") 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; }; then
10567   ac_cv_lib_dld_dld_link=yes
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572         ac_cv_lib_dld_dld_link=no
10573 fi
10574
10575 rm -f core conftest.err conftest.$ac_objext \
10576       conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10578 fi
10579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10581 if test $ac_cv_lib_dld_dld_link = yes; then
10582
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_DLD 1
10585 _ACEOF
10586
10587                 LIBADD_DL="$LIBADD_DL -ldld"
10588 else
10589   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10590 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10591 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10602 #define _dyld_func_lookup innocuous__dyld_func_lookup
10603
10604 /* System header to define __stub macros and hopefully few prototypes,
10605     which can conflict with char _dyld_func_lookup (); below.
10606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10607     <limits.h> exists even on freestanding compilers.  */
10608
10609 #ifdef __STDC__
10610 # include <limits.h>
10611 #else
10612 # include <assert.h>
10613 #endif
10614
10615 #undef _dyld_func_lookup
10616
10617 /* Override any GCC internal prototype to avoid an error.
10618    Use char because int might match the return type of a GCC
10619    builtin and then its argument prototype would still apply.  */
10620 #ifdef __cplusplus
10621 extern "C"
10622 #endif
10623 char _dyld_func_lookup ();
10624 /* The GNU C library defines this for functions which it implements
10625     to always fail with ENOSYS.  Some functions are actually named
10626     something starting with __ and the normal name is an alias.  */
10627 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10628 choke me
10629 #endif
10630
10631 int
10632 main ()
10633 {
10634 return _dyld_func_lookup ();
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (ac_try="$ac_link"
10641 case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_link") 2>conftest.er1
10647   ac_status=$?
10648   grep -v '^ *+' conftest.er1 >conftest.err
10649   rm -f conftest.er1
10650   cat conftest.err >&5
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } &&
10653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654   { (case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659   (eval "$ac_try") 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669   (eval "$ac_try") 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   ac_cv_func__dyld_func_lookup=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678         ac_cv_func__dyld_func_lookup=no
10679 fi
10680
10681 rm -f core conftest.err conftest.$ac_objext \
10682       conftest$ac_exeext conftest.$ac_ext
10683 fi
10684 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10685 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10686 if test $ac_cv_func__dyld_func_lookup = yes; then
10687
10688 cat >>confdefs.h <<\_ACEOF
10689 #define HAVE_DYLD 1
10690 _ACEOF
10691
10692 fi
10693
10694
10695 fi
10696
10697
10698 fi
10699
10700
10701 fi
10702
10703 rm -f core conftest.err conftest.$ac_objext \
10704       conftest$ac_exeext conftest.$ac_ext
10705
10706 fi
10707
10708
10709 fi
10710
10711
10712 fi
10713
10714
10715 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10716 then
10717   lt_save_LIBS="$LIBS"
10718   LIBS="$LIBS $LIBADD_DL"
10719
10720 for ac_func in dlerror
10721 do
10722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10736 #define $ac_func innocuous_$ac_func
10737
10738 /* System header to define __stub macros and hopefully few prototypes,
10739     which can conflict with char $ac_func (); below.
10740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741     <limits.h> exists even on freestanding compilers.  */
10742
10743 #ifdef __STDC__
10744 # include <limits.h>
10745 #else
10746 # include <assert.h>
10747 #endif
10748
10749 #undef $ac_func
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char $ac_func ();
10758 /* The GNU C library defines this for functions which it implements
10759     to always fail with ENOSYS.  Some functions are actually named
10760     something starting with __ and the normal name is an alias.  */
10761 #if defined __stub_$ac_func || defined __stub___$ac_func
10762 choke me
10763 #endif
10764
10765 int
10766 main ()
10767 {
10768 return $ac_func ();
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_link") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788   { (case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_try") 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; } &&
10797          { ac_try='test -s conftest$ac_exeext'
10798   { (case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_try") 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }; }; then
10807   eval "$as_ac_var=yes"
10808 else
10809   echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812         eval "$as_ac_var=no"
10813 fi
10814
10815 rm -f core conftest.err conftest.$ac_objext \
10816       conftest$ac_exeext conftest.$ac_ext
10817 fi
10818 ac_res=`eval echo '${'$as_ac_var'}'`
10819                { echo "$as_me:$LINENO: result: $ac_res" >&5
10820 echo "${ECHO_T}$ac_res" >&6; }
10821 if test `eval echo '${'$as_ac_var'}'` = yes; then
10822   cat >>confdefs.h <<_ACEOF
10823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 _ACEOF
10825
10826 fi
10827 done
10828
10829   LIBS="$lt_save_LIBS"
10830 fi
10831 ac_ext=c
10832 ac_cpp='$CPP $CPPFLAGS'
10833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10836
10837
10838
10839 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10840 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10841 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   ac_cv_sys_symbol_underscore=no
10845   cat > conftest.$ac_ext <<EOF
10846 void nm_test_func(){}
10847 int main(){nm_test_func;return 0;}
10848 EOF
10849   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850   (eval $ac_compile) 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; then
10854     # Now try to grab the symbols.
10855     ac_nlist=conftest.nm
10856     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10857   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } && test -s "$ac_nlist"; then
10861       # See whether the symbols have a leading underscore.
10862       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10863         ac_cv_sys_symbol_underscore=yes
10864       else
10865         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10866           :
10867         else
10868           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10869         fi
10870       fi
10871     else
10872       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10873     fi
10874   else
10875     echo "configure: failed program was:" >&5
10876     cat conftest.c >&5
10877   fi
10878   rm -rf conftest*
10879
10880 fi
10881 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10882 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10883
10884
10885 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10886   if test x"$libltdl_cv_func_dlopen" = xyes ||
10887      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10888         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10889 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10890 if test "${libltdl_cv_need_uscore+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   libltdl_cv_need_uscore=unknown
10894           save_LIBS="$LIBS"
10895           LIBS="$LIBS $LIBADD_DL"
10896           if test "$cross_compiling" = yes; then :
10897   libltdl_cv_need_uscore=cross
10898 else
10899   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10900   lt_status=$lt_dlunknown
10901   cat > conftest.$ac_ext <<EOF
10902 #line 10902 "configure"
10903 #include "confdefs.h"
10904
10905 #if HAVE_DLFCN_H
10906 #include <dlfcn.h>
10907 #endif
10908
10909 #include <stdio.h>
10910
10911 #ifdef RTLD_GLOBAL
10912 #  define LT_DLGLOBAL           RTLD_GLOBAL
10913 #else
10914 #  ifdef DL_GLOBAL
10915 #    define LT_DLGLOBAL         DL_GLOBAL
10916 #  else
10917 #    define LT_DLGLOBAL         0
10918 #  endif
10919 #endif
10920
10921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10922    find out it does not work in some platform. */
10923 #ifndef LT_DLLAZY_OR_NOW
10924 #  ifdef RTLD_LAZY
10925 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10926 #  else
10927 #    ifdef DL_LAZY
10928 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10929 #    else
10930 #      ifdef RTLD_NOW
10931 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10932 #      else
10933 #        ifdef DL_NOW
10934 #          define LT_DLLAZY_OR_NOW      DL_NOW
10935 #        else
10936 #          define LT_DLLAZY_OR_NOW      0
10937 #        endif
10938 #      endif
10939 #    endif
10940 #  endif
10941 #endif
10942
10943 #ifdef __cplusplus
10944 extern "C" void exit (int);
10945 #endif
10946
10947 void fnord() { int i=42;}
10948 int main ()
10949 {
10950   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10951   int status = $lt_dlunknown;
10952
10953   if (self)
10954     {
10955       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10956       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10957       /* dlclose (self); */
10958     }
10959   else
10960     puts (dlerror ());
10961
10962     exit (status);
10963 }
10964 EOF
10965   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966   (eval $ac_link) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10970     (./conftest; exit; ) >&5 2>/dev/null
10971     lt_status=$?
10972     case x$lt_status in
10973       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10974       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10975       x$lt_dlunknown|x*)  ;;
10976     esac
10977   else :
10978     # compilation failed
10979
10980   fi
10981 fi
10982 rm -fr conftest*
10983
10984           LIBS="$save_LIBS"
10985
10986 fi
10987 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10988 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10989   fi
10990 fi
10991
10992 if test x"$libltdl_cv_need_uscore" = xyes; then
10993
10994 cat >>confdefs.h <<\_ACEOF
10995 #define NEED_USCORE 1
10996 _ACEOF
10997
10998 fi
10999
11000
11001 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11002 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11003 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   # PORTME does your system automatically load deplibs for dlopen?
11007   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11008   # For now, we just catch OSes we know something about -- in the
11009   # future, we'll try test this programmatically.
11010   libltdl_cv_sys_dlopen_deplibs=unknown
11011   case "$host_os" in
11012   aix3*|aix4.1.*|aix4.2.*)
11013     # Unknown whether this is true for these versions of AIX, but
11014     # we want this `case' here to explicitly catch those versions.
11015     libltdl_cv_sys_dlopen_deplibs=unknown
11016     ;;
11017   aix[45]*)
11018     libltdl_cv_sys_dlopen_deplibs=yes
11019     ;;
11020   darwin*)
11021     # Assuming the user has installed a libdl from somewhere, this is true
11022     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11023     libltdl_cv_sys_dlopen_deplibs=yes
11024     ;;
11025   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11026     # GNU and its variants, using gnu ld.so (Glibc)
11027     libltdl_cv_sys_dlopen_deplibs=yes
11028     ;;
11029   hpux10*|hpux11*)
11030     libltdl_cv_sys_dlopen_deplibs=yes
11031     ;;
11032   interix*)
11033     libltdl_cv_sys_dlopen_deplibs=yes
11034     ;;
11035   irix[12345]*|irix6.[01]*)
11036     # Catch all versions of IRIX before 6.2, and indicate that we don't
11037     # know how it worked for any of those versions.
11038     libltdl_cv_sys_dlopen_deplibs=unknown
11039     ;;
11040   irix*)
11041     # The case above catches anything before 6.2, and it's known that
11042     # at 6.2 and later dlopen does load deplibs.
11043     libltdl_cv_sys_dlopen_deplibs=yes
11044     ;;
11045   netbsd*)
11046     libltdl_cv_sys_dlopen_deplibs=yes
11047     ;;
11048   openbsd*)
11049     libltdl_cv_sys_dlopen_deplibs=yes
11050     ;;
11051   osf[1234]*)
11052     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11053     # it did *not* use an RPATH in a shared library to find objects the
11054     # library depends on, so we explictly say `no'.
11055     libltdl_cv_sys_dlopen_deplibs=no
11056     ;;
11057   osf5.0|osf5.0a|osf5.1)
11058     # dlopen *does* load deplibs and with the right loader patch applied
11059     # it even uses RPATH in a shared library to search for shared objects
11060     # that the library depends on, but there's no easy way to know if that
11061     # patch is installed.  Since this is the case, all we can really
11062     # say is unknown -- it depends on the patch being installed.  If
11063     # it is, this changes to `yes'.  Without it, it would be `no'.
11064     libltdl_cv_sys_dlopen_deplibs=unknown
11065     ;;
11066   osf*)
11067     # the two cases above should catch all versions of osf <= 5.1.  Read
11068     # the comments above for what we know about them.
11069     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11070     # is used to find them so we can finally say `yes'.
11071     libltdl_cv_sys_dlopen_deplibs=yes
11072     ;;
11073   solaris*)
11074     libltdl_cv_sys_dlopen_deplibs=yes
11075     ;;
11076   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077     libltdl_cv_sys_dlopen_deplibs=yes
11078     ;;
11079   esac
11080
11081 fi
11082 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11083 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11084 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11085
11086 cat >>confdefs.h <<\_ACEOF
11087 #define LTDL_DLOPEN_DEPLIBS 1
11088 _ACEOF
11089
11090 fi
11091
11092
11093 for ac_header in argz.h
11094 do
11095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 fi
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103                { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11105 else
11106   # Is the header compilable?
11107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 $ac_includes_default
11116 #include <$ac_header>
11117 _ACEOF
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_compile") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; } &&
11142          { ac_try='test -s conftest.$ac_objext'
11143   { (case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148   (eval "$ac_try") 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_header_compiler=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157         ac_header_compiler=no
11158 fi
11159
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162 echo "${ECHO_T}$ac_header_compiler" >&6; }
11163
11164 # Is the header present?
11165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 #include <$ac_header>
11174 _ACEOF
11175 if { (ac_try="$ac_cpp conftest.$ac_ext"
11176 case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11182   ac_status=$?
11183   grep -v '^ *+' conftest.er1 >conftest.err
11184   rm -f conftest.er1
11185   cat conftest.err >&5
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } >/dev/null; then
11188   if test -s conftest.err; then
11189     ac_cpp_err=$ac_c_preproc_warn_flag
11190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191   else
11192     ac_cpp_err=
11193   fi
11194 else
11195   ac_cpp_err=yes
11196 fi
11197 if test -z "$ac_cpp_err"; then
11198   ac_header_preproc=yes
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203   ac_header_preproc=no
11204 fi
11205
11206 rm -f conftest.err conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6; }
11209
11210 # So?  What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212   yes:no: )
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217     ac_header_preproc=yes
11218     ;;
11219   no:yes:* )
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232     ( cat <<\_ASBOX
11233 ## ----------------------------------- ##
11234 ## Report this to llvmbugs@cs.uiuc.edu ##
11235 ## ----------------------------------- ##
11236 _ASBOX
11237      ) | sed "s/^/$as_me: WARNING:     /" >&2
11238     ;;
11239 esac
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   eval "$as_ac_Header=\$ac_header_preproc"
11246 fi
11247 ac_res=`eval echo '${'$as_ac_Header'}'`
11248                { echo "$as_me:$LINENO: result: $ac_res" >&5
11249 echo "${ECHO_T}$ac_res" >&6; }
11250
11251 fi
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253   cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255 _ACEOF
11256
11257 fi
11258
11259 done
11260
11261
11262 { echo "$as_me:$LINENO: checking for error_t" >&5
11263 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11264 if test "${ac_cv_type_error_t+set}" = set; then
11265   echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267   cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 #if HAVE_ARGZ_H
11274 #  include <argz.h>
11275 #endif
11276
11277 typedef error_t ac__type_new_;
11278 int
11279 main ()
11280 {
11281 if ((ac__type_new_ *) 0)
11282   return 0;
11283 if (sizeof (ac__type_new_))
11284   return 0;
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_compile") 2>conftest.er1
11297   ac_status=$?
11298   grep -v '^ *+' conftest.er1 >conftest.err
11299   rm -f conftest.er1
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } &&
11303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304   { (case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_try") 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; } &&
11313          { ac_try='test -s conftest.$ac_objext'
11314   { (case "(($ac_try" in
11315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316   *) ac_try_echo=$ac_try;;
11317 esac
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319   (eval "$ac_try") 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   ac_cv_type_error_t=yes
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11327
11328         ac_cv_type_error_t=no
11329 fi
11330
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332 fi
11333 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11334 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11335 if test $ac_cv_type_error_t = yes; then
11336
11337 cat >>confdefs.h <<_ACEOF
11338 #define HAVE_ERROR_T 1
11339 _ACEOF
11340
11341
11342 else
11343
11344 cat >>confdefs.h <<\_ACEOF
11345 #define error_t int
11346 _ACEOF
11347
11348 fi
11349
11350
11351
11352
11353
11354
11355
11356 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11357 do
11358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11372 #define $ac_func innocuous_$ac_func
11373
11374 /* System header to define __stub macros and hopefully few prototypes,
11375     which can conflict with char $ac_func (); below.
11376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377     <limits.h> exists even on freestanding compilers.  */
11378
11379 #ifdef __STDC__
11380 # include <limits.h>
11381 #else
11382 # include <assert.h>
11383 #endif
11384
11385 #undef $ac_func
11386
11387 /* Override any GCC internal prototype to avoid an error.
11388    Use char because int might match the return type of a GCC
11389    builtin and then its argument prototype would still apply.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char $ac_func ();
11394 /* The GNU C library defines this for functions which it implements
11395     to always fail with ENOSYS.  Some functions are actually named
11396     something starting with __ and the normal name is an alias.  */
11397 #if defined __stub_$ac_func || defined __stub___$ac_func
11398 choke me
11399 #endif
11400
11401 int
11402 main ()
11403 {
11404 return $ac_func ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (ac_try="$ac_link"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_link") 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424   { (case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_try") 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; } &&
11433          { ac_try='test -s conftest$ac_exeext'
11434   { (case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_try") 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   eval "$as_ac_var=yes"
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448         eval "$as_ac_var=no"
11449 fi
11450
11451 rm -f core conftest.err conftest.$ac_objext \
11452       conftest$ac_exeext conftest.$ac_ext
11453 fi
11454 ac_res=`eval echo '${'$as_ac_var'}'`
11455                { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_var'}'` = yes; then
11458   cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460 _ACEOF
11461
11462 fi
11463 done
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11493                   stdio.h unistd.h
11494 do
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 fi
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503                { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 else
11506   # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 $ac_includes_default
11516 #include <$ac_header>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_compile") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533   { (case "(($ac_try" in
11534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535   *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538   (eval "$ac_try") 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; } &&
11542          { ac_try='test -s conftest.$ac_objext'
11543   { (case "(($ac_try" in
11544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545   *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548   (eval "$ac_try") 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   ac_header_compiler=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557         ac_header_compiler=no
11558 fi
11559
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11563
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h.  */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h.  */
11573 #include <$ac_header>
11574 _ACEOF
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578   *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582   ac_status=$?
11583   grep -v '^ *+' conftest.er1 >conftest.err
11584   rm -f conftest.er1
11585   cat conftest.err >&5
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } >/dev/null; then
11588   if test -s conftest.err; then
11589     ac_cpp_err=$ac_c_preproc_warn_flag
11590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591   else
11592     ac_cpp_err=
11593   fi
11594 else
11595   ac_cpp_err=yes
11596 fi
11597 if test -z "$ac_cpp_err"; then
11598   ac_header_preproc=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603   ac_header_preproc=no
11604 fi
11605
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11609
11610 # So?  What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612   yes:no: )
11613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617     ac_header_preproc=yes
11618     ;;
11619   no:yes:* )
11620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632     ( cat <<\_ASBOX
11633 ## ----------------------------------- ##
11634 ## Report this to llvmbugs@cs.uiuc.edu ##
11635 ## ----------------------------------- ##
11636 _ASBOX
11637      ) | sed "s/^/$as_me: WARNING:     /" >&2
11638     ;;
11639 esac
11640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   eval "$as_ac_Header=\$ac_header_preproc"
11646 fi
11647 ac_res=`eval echo '${'$as_ac_Header'}'`
11648                { echo "$as_me:$LINENO: result: $ac_res" >&5
11649 echo "${ECHO_T}$ac_res" >&6; }
11650
11651 fi
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653   cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 _ACEOF
11656
11657 fi
11658
11659 done
11660
11661
11662
11663
11664
11665 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11666 do
11667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 fi
11674 ac_res=`eval echo '${'$as_ac_Header'}'`
11675                { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677 else
11678   # Is the header compilable?
11679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 $ac_includes_default
11688 #include <$ac_header>
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_compile") 2>conftest.er1
11698   ac_status=$?
11699   grep -v '^ *+' conftest.er1 >conftest.err
11700   rm -f conftest.er1
11701   cat conftest.err >&5
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } &&
11704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705   { (case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_try") 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (case "(($ac_try" in
11716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717   *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720   (eval "$ac_try") 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; }; then
11724   ac_header_compiler=yes
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729         ac_header_compiler=no
11730 fi
11731
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734 echo "${ECHO_T}$ac_header_compiler" >&6; }
11735
11736 # Is the header present?
11737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h.  */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h.  */
11745 #include <$ac_header>
11746 _ACEOF
11747 if { (ac_try="$ac_cpp conftest.$ac_ext"
11748 case "(($ac_try" in
11749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750   *) ac_try_echo=$ac_try;;
11751 esac
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11754   ac_status=$?
11755   grep -v '^ *+' conftest.er1 >conftest.err
11756   rm -f conftest.er1
11757   cat conftest.err >&5
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } >/dev/null; then
11760   if test -s conftest.err; then
11761     ac_cpp_err=$ac_c_preproc_warn_flag
11762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11763   else
11764     ac_cpp_err=
11765   fi
11766 else
11767   ac_cpp_err=yes
11768 fi
11769 if test -z "$ac_cpp_err"; then
11770   ac_header_preproc=yes
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775   ac_header_preproc=no
11776 fi
11777
11778 rm -f conftest.err conftest.$ac_ext
11779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11780 echo "${ECHO_T}$ac_header_preproc" >&6; }
11781
11782 # So?  What about this header?
11783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11784   yes:no: )
11785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11789     ac_header_preproc=yes
11790     ;;
11791   no:yes:* )
11792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11804     ( cat <<\_ASBOX
11805 ## ----------------------------------- ##
11806 ## Report this to llvmbugs@cs.uiuc.edu ##
11807 ## ----------------------------------- ##
11808 _ASBOX
11809      ) | sed "s/^/$as_me: WARNING:     /" >&2
11810     ;;
11811 esac
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   eval "$as_ac_Header=\$ac_header_preproc"
11818 fi
11819 ac_res=`eval echo '${'$as_ac_Header'}'`
11820                { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822
11823 fi
11824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11825   cat >>confdefs.h <<_ACEOF
11826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11827 _ACEOF
11828
11829 fi
11830
11831 done
11832
11833
11834
11835 for ac_header in string.h strings.h
11836 do
11837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 fi
11844 ac_res=`eval echo '${'$as_ac_Header'}'`
11845                { echo "$as_me:$LINENO: result: $ac_res" >&5
11846 echo "${ECHO_T}$ac_res" >&6; }
11847 else
11848   # Is the header compilable?
11849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857 $ac_includes_default
11858 #include <$ac_header>
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867   (eval "$ac_compile") 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875   { (case "(($ac_try" in
11876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877   *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880   (eval "$ac_try") 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; } &&
11884          { ac_try='test -s conftest.$ac_objext'
11885   { (case "(($ac_try" in
11886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887   *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890   (eval "$ac_try") 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   ac_header_compiler=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899         ac_header_compiler=no
11900 fi
11901
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11904 echo "${ECHO_T}$ac_header_compiler" >&6; }
11905
11906 # Is the header present?
11907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 #include <$ac_header>
11916 _ACEOF
11917 if { (ac_try="$ac_cpp conftest.$ac_ext"
11918 case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } >/dev/null; then
11930   if test -s conftest.err; then
11931     ac_cpp_err=$ac_c_preproc_warn_flag
11932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11933   else
11934     ac_cpp_err=
11935   fi
11936 else
11937   ac_cpp_err=yes
11938 fi
11939 if test -z "$ac_cpp_err"; then
11940   ac_header_preproc=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945   ac_header_preproc=no
11946 fi
11947
11948 rm -f conftest.err conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950 echo "${ECHO_T}$ac_header_preproc" >&6; }
11951
11952 # So?  What about this header?
11953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11954   yes:no: )
11955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11959     ac_header_preproc=yes
11960     ;;
11961   no:yes:* )
11962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11974     ( cat <<\_ASBOX
11975 ## ----------------------------------- ##
11976 ## Report this to llvmbugs@cs.uiuc.edu ##
11977 ## ----------------------------------- ##
11978 _ASBOX
11979      ) | sed "s/^/$as_me: WARNING:     /" >&2
11980     ;;
11981 esac
11982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   eval "$as_ac_Header=\$ac_header_preproc"
11988 fi
11989 ac_res=`eval echo '${'$as_ac_Header'}'`
11990                { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11992
11993 fi
11994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995   cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11997 _ACEOF
11998  break
11999 fi
12000
12001 done
12002
12003
12004
12005
12006 for ac_func in strchr index
12007 do
12008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12012   echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014   cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12022 #define $ac_func innocuous_$ac_func
12023
12024 /* System header to define __stub macros and hopefully few prototypes,
12025     which can conflict with char $ac_func (); below.
12026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027     <limits.h> exists even on freestanding compilers.  */
12028
12029 #ifdef __STDC__
12030 # include <limits.h>
12031 #else
12032 # include <assert.h>
12033 #endif
12034
12035 #undef $ac_func
12036
12037 /* Override any GCC internal prototype to avoid an error.
12038    Use char because int might match the return type of a GCC
12039    builtin and then its argument prototype would still apply.  */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char $ac_func ();
12044 /* The GNU C library defines this for functions which it implements
12045     to always fail with ENOSYS.  Some functions are actually named
12046     something starting with __ and the normal name is an alias.  */
12047 #if defined __stub_$ac_func || defined __stub___$ac_func
12048 choke me
12049 #endif
12050
12051 int
12052 main ()
12053 {
12054 return $ac_func ();
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066   (eval "$ac_link") 2>conftest.er1
12067   ac_status=$?
12068   grep -v '^ *+' conftest.er1 >conftest.err
12069   rm -f conftest.er1
12070   cat conftest.err >&5
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); } &&
12073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12074   { (case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079   (eval "$ac_try") 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; } &&
12083          { ac_try='test -s conftest$ac_exeext'
12084   { (case "(($ac_try" in
12085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086   *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089   (eval "$ac_try") 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   eval "$as_ac_var=yes"
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098         eval "$as_ac_var=no"
12099 fi
12100
12101 rm -f core conftest.err conftest.$ac_objext \
12102       conftest$ac_exeext conftest.$ac_ext
12103 fi
12104 ac_res=`eval echo '${'$as_ac_var'}'`
12105                { echo "$as_me:$LINENO: result: $ac_res" >&5
12106 echo "${ECHO_T}$ac_res" >&6; }
12107 if test `eval echo '${'$as_ac_var'}'` = yes; then
12108   cat >>confdefs.h <<_ACEOF
12109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12110 _ACEOF
12111  break
12112 fi
12113 done
12114
12115
12116
12117 for ac_func in strrchr rindex
12118 do
12119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12133 #define $ac_func innocuous_$ac_func
12134
12135 /* System header to define __stub macros and hopefully few prototypes,
12136     which can conflict with char $ac_func (); below.
12137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138     <limits.h> exists even on freestanding compilers.  */
12139
12140 #ifdef __STDC__
12141 # include <limits.h>
12142 #else
12143 # include <assert.h>
12144 #endif
12145
12146 #undef $ac_func
12147
12148 /* Override any GCC internal prototype to avoid an error.
12149    Use char because int might match the return type of a GCC
12150    builtin and then its argument prototype would still apply.  */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char $ac_func ();
12155 /* The GNU C library defines this for functions which it implements
12156     to always fail with ENOSYS.  Some functions are actually named
12157     something starting with __ and the normal name is an alias.  */
12158 #if defined __stub_$ac_func || defined __stub___$ac_func
12159 choke me
12160 #endif
12161
12162 int
12163 main ()
12164 {
12165 return $ac_func ();
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174   *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177   (eval "$ac_link") 2>conftest.er1
12178   ac_status=$?
12179   grep -v '^ *+' conftest.er1 >conftest.err
12180   rm -f conftest.er1
12181   cat conftest.err >&5
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); } &&
12184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185   { (case "(($ac_try" in
12186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187   *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190   (eval "$ac_try") 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; } &&
12194          { ac_try='test -s conftest$ac_exeext'
12195   { (case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_try") 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; }; then
12204   eval "$as_ac_var=yes"
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209         eval "$as_ac_var=no"
12210 fi
12211
12212 rm -f core conftest.err conftest.$ac_objext \
12213       conftest$ac_exeext conftest.$ac_ext
12214 fi
12215 ac_res=`eval echo '${'$as_ac_var'}'`
12216                { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12218 if test `eval echo '${'$as_ac_var'}'` = yes; then
12219   cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221 _ACEOF
12222  break
12223 fi
12224 done
12225
12226
12227
12228 for ac_func in memcpy bcopy
12229 do
12230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h.  */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h.  */
12242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12244 #define $ac_func innocuous_$ac_func
12245
12246 /* System header to define __stub macros and hopefully few prototypes,
12247     which can conflict with char $ac_func (); below.
12248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249     <limits.h> exists even on freestanding compilers.  */
12250
12251 #ifdef __STDC__
12252 # include <limits.h>
12253 #else
12254 # include <assert.h>
12255 #endif
12256
12257 #undef $ac_func
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260    Use char because int might match the return type of a GCC
12261    builtin and then its argument prototype would still apply.  */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char $ac_func ();
12266 /* The GNU C library defines this for functions which it implements
12267     to always fail with ENOSYS.  Some functions are actually named
12268     something starting with __ and the normal name is an alias.  */
12269 #if defined __stub_$ac_func || defined __stub___$ac_func
12270 choke me
12271 #endif
12272
12273 int
12274 main ()
12275 {
12276 return $ac_func ();
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288   (eval "$ac_link") 2>conftest.er1
12289   ac_status=$?
12290   grep -v '^ *+' conftest.er1 >conftest.err
12291   rm -f conftest.er1
12292   cat conftest.err >&5
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296   { (case "(($ac_try" in
12297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298   *) ac_try_echo=$ac_try;;
12299 esac
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301   (eval "$ac_try") 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; } &&
12305          { ac_try='test -s conftest$ac_exeext'
12306   { (case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_try") 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   eval "$as_ac_var=yes"
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320         eval "$as_ac_var=no"
12321 fi
12322
12323 rm -f core conftest.err conftest.$ac_objext \
12324       conftest$ac_exeext conftest.$ac_ext
12325 fi
12326 ac_res=`eval echo '${'$as_ac_var'}'`
12327                { echo "$as_me:$LINENO: result: $ac_res" >&5
12328 echo "${ECHO_T}$ac_res" >&6; }
12329 if test `eval echo '${'$as_ac_var'}'` = yes; then
12330   cat >>confdefs.h <<_ACEOF
12331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332 _ACEOF
12333  break
12334 fi
12335 done
12336
12337
12338
12339 for ac_func in memmove strcmp
12340 do
12341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12345   echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347   cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12355 #define $ac_func innocuous_$ac_func
12356
12357 /* System header to define __stub macros and hopefully few prototypes,
12358     which can conflict with char $ac_func (); below.
12359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360     <limits.h> exists even on freestanding compilers.  */
12361
12362 #ifdef __STDC__
12363 # include <limits.h>
12364 #else
12365 # include <assert.h>
12366 #endif
12367
12368 #undef $ac_func
12369
12370 /* Override any GCC internal prototype to avoid an error.
12371    Use char because int might match the return type of a GCC
12372    builtin and then its argument prototype would still apply.  */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char $ac_func ();
12377 /* The GNU C library defines this for functions which it implements
12378     to always fail with ENOSYS.  Some functions are actually named
12379     something starting with __ and the normal name is an alias.  */
12380 #if defined __stub_$ac_func || defined __stub___$ac_func
12381 choke me
12382 #endif
12383
12384 int
12385 main ()
12386 {
12387 return $ac_func ();
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_link") 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } &&
12406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12407   { (case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412   (eval "$ac_try") 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; } &&
12416          { ac_try='test -s conftest$ac_exeext'
12417   { (case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_try") 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; }; then
12426   eval "$as_ac_var=yes"
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431         eval "$as_ac_var=no"
12432 fi
12433
12434 rm -f core conftest.err conftest.$ac_objext \
12435       conftest$ac_exeext conftest.$ac_ext
12436 fi
12437 ac_res=`eval echo '${'$as_ac_var'}'`
12438                { echo "$as_me:$LINENO: result: $ac_res" >&5
12439 echo "${ECHO_T}$ac_res" >&6; }
12440 if test `eval echo '${'$as_ac_var'}'` = yes; then
12441   cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 _ACEOF
12444
12445 fi
12446 done
12447
12448
12449
12450
12451 for ac_func in closedir opendir readdir
12452 do
12453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12467 #define $ac_func innocuous_$ac_func
12468
12469 /* System header to define __stub macros and hopefully few prototypes,
12470     which can conflict with char $ac_func (); below.
12471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472     <limits.h> exists even on freestanding compilers.  */
12473
12474 #ifdef __STDC__
12475 # include <limits.h>
12476 #else
12477 # include <assert.h>
12478 #endif
12479
12480 #undef $ac_func
12481
12482 /* Override any GCC internal prototype to avoid an error.
12483    Use char because int might match the return type of a GCC
12484    builtin and then its argument prototype would still apply.  */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char $ac_func ();
12489 /* The GNU C library defines this for functions which it implements
12490     to always fail with ENOSYS.  Some functions are actually named
12491     something starting with __ and the normal name is an alias.  */
12492 #if defined __stub_$ac_func || defined __stub___$ac_func
12493 choke me
12494 #endif
12495
12496 int
12497 main ()
12498 {
12499 return $ac_func ();
12500   ;
12501   return 0;
12502 }
12503 _ACEOF
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508   *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511   (eval "$ac_link") 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12519   { (case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_try") 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; } &&
12528          { ac_try='test -s conftest$ac_exeext'
12529   { (case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_try") 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; }; then
12538   eval "$as_ac_var=yes"
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543         eval "$as_ac_var=no"
12544 fi
12545
12546 rm -f core conftest.err conftest.$ac_objext \
12547       conftest$ac_exeext conftest.$ac_ext
12548 fi
12549 ac_res=`eval echo '${'$as_ac_var'}'`
12550                { echo "$as_me:$LINENO: result: $ac_res" >&5
12551 echo "${ECHO_T}$ac_res" >&6; }
12552 if test `eval echo '${'$as_ac_var'}'` = yes; then
12553   cat >>confdefs.h <<_ACEOF
12554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12555 _ACEOF
12556
12557 fi
12558 done
12559
12560
12561 # Check whether --enable-shared was given.
12562 if test "${enable_shared+set}" = set; then
12563   enableval=$enable_shared; p=${PACKAGE-default}
12564     case $enableval in
12565     yes) enable_shared=yes ;;
12566     no) enable_shared=no ;;
12567     *)
12568       enable_shared=no
12569       # Look at the argument we got.  We use all the common list separators.
12570       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12571       for pkg in $enableval; do
12572         IFS="$lt_save_ifs"
12573         if test "X$pkg" = "X$p"; then
12574           enable_shared=yes
12575         fi
12576       done
12577       IFS="$lt_save_ifs"
12578       ;;
12579     esac
12580 else
12581   enable_shared=yes
12582 fi
12583
12584
12585 # Check whether --enable-static was given.
12586 if test "${enable_static+set}" = set; then
12587   enableval=$enable_static; p=${PACKAGE-default}
12588     case $enableval in
12589     yes) enable_static=yes ;;
12590     no) enable_static=no ;;
12591     *)
12592      enable_static=no
12593       # Look at the argument we got.  We use all the common list separators.
12594       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12595       for pkg in $enableval; do
12596         IFS="$lt_save_ifs"
12597         if test "X$pkg" = "X$p"; then
12598           enable_static=yes
12599         fi
12600       done
12601       IFS="$lt_save_ifs"
12602       ;;
12603     esac
12604 else
12605   enable_static=yes
12606 fi
12607
12608
12609 # Check whether --enable-fast-install was given.
12610 if test "${enable_fast_install+set}" = set; then
12611   enableval=$enable_fast_install; p=${PACKAGE-default}
12612     case $enableval in
12613     yes) enable_fast_install=yes ;;
12614     no) enable_fast_install=no ;;
12615     *)
12616       enable_fast_install=no
12617       # Look at the argument we got.  We use all the common list separators.
12618       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12619       for pkg in $enableval; do
12620         IFS="$lt_save_ifs"
12621         if test "X$pkg" = "X$p"; then
12622           enable_fast_install=yes
12623         fi
12624       done
12625       IFS="$lt_save_ifs"
12626       ;;
12627     esac
12628 else
12629   enable_fast_install=yes
12630 fi
12631
12632
12633 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12634 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12635 if test "${lt_cv_path_SED+set}" = set; then
12636   echo $ECHO_N "(cached) $ECHO_C" >&6
12637 else
12638   # Loop through the user's path and test for sed and gsed.
12639 # Then use that list of sed's as ones to test for truncation.
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12642 do
12643   IFS=$as_save_IFS
12644   test -z "$as_dir" && as_dir=.
12645   for lt_ac_prog in sed gsed; do
12646     for ac_exec_ext in '' $ac_executable_extensions; do
12647       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12648         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12649       fi
12650     done
12651   done
12652 done
12653 lt_ac_max=0
12654 lt_ac_count=0
12655 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12656 # along with /bin/sed that truncates output.
12657 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12658   test ! -f $lt_ac_sed && continue
12659   cat /dev/null > conftest.in
12660   lt_ac_count=0
12661   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12662   # Check for GNU sed and select it if it is found.
12663   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12664     lt_cv_path_SED=$lt_ac_sed
12665     break
12666   fi
12667   while true; do
12668     cat conftest.in conftest.in >conftest.tmp
12669     mv conftest.tmp conftest.in
12670     cp conftest.in conftest.nl
12671     echo >>conftest.nl
12672     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12673     cmp -s conftest.out conftest.nl || break
12674     # 10000 chars as input seems more than enough
12675     test $lt_ac_count -gt 10 && break
12676     lt_ac_count=`expr $lt_ac_count + 1`
12677     if test $lt_ac_count -gt $lt_ac_max; then
12678       lt_ac_max=$lt_ac_count
12679       lt_cv_path_SED=$lt_ac_sed
12680     fi
12681   done
12682 done
12683
12684 fi
12685
12686 SED=$lt_cv_path_SED
12687 { echo "$as_me:$LINENO: result: $SED" >&5
12688 echo "${ECHO_T}$SED" >&6; }
12689
12690
12691 # Check whether --with-gnu-ld was given.
12692 if test "${with_gnu_ld+set}" = set; then
12693   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12694 else
12695   with_gnu_ld=no
12696 fi
12697
12698 ac_prog=ld
12699 if test "$GCC" = yes; then
12700   # Check if gcc -print-prog-name=ld gives a path.
12701   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12703   case $host in
12704   *-*-mingw*)
12705     # gcc leaves a trailing carriage return which upsets mingw
12706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12707   *)
12708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12709   esac
12710   case $ac_prog in
12711     # Accept absolute paths.
12712     [\\/]* | ?:[\\/]*)
12713       re_direlt='/[^/][^/]*/\.\./'
12714       # Canonicalize the pathname of ld
12715       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12716       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12717         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12718       done
12719       test -z "$LD" && LD="$ac_prog"
12720       ;;
12721   "")
12722     # If it fails, then pretend we aren't using GCC.
12723     ac_prog=ld
12724     ;;
12725   *)
12726     # If it is relative, then search for the first ld in PATH.
12727     with_gnu_ld=unknown
12728     ;;
12729   esac
12730 elif test "$with_gnu_ld" = yes; then
12731   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12733 else
12734   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12736 fi
12737 if test "${lt_cv_path_LD+set}" = set; then
12738   echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740   if test -z "$LD"; then
12741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12742   for ac_dir in $PATH; do
12743     IFS="$lt_save_ifs"
12744     test -z "$ac_dir" && ac_dir=.
12745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12746       lt_cv_path_LD="$ac_dir/$ac_prog"
12747       # Check to see if the program is GNU ld.  I'd rather use --version,
12748       # but apparently some variants of GNU ld only accept -v.
12749       # Break only if it was the GNU/non-GNU ld that we prefer.
12750       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12751       *GNU* | *'with BFD'*)
12752         test "$with_gnu_ld" != no && break
12753         ;;
12754       *)
12755         test "$with_gnu_ld" != yes && break
12756         ;;
12757       esac
12758     fi
12759   done
12760   IFS="$lt_save_ifs"
12761 else
12762   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12763 fi
12764 fi
12765
12766 LD="$lt_cv_path_LD"
12767 if test -n "$LD"; then
12768   { echo "$as_me:$LINENO: result: $LD" >&5
12769 echo "${ECHO_T}$LD" >&6; }
12770 else
12771   { echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6; }
12773 fi
12774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12776    { (exit 1); exit 1; }; }
12777 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12783 case `$LD -v 2>&1 </dev/null` in
12784 *GNU* | *'with BFD'*)
12785   lt_cv_prog_gnu_ld=yes
12786   ;;
12787 *)
12788   lt_cv_prog_gnu_ld=no
12789   ;;
12790 esac
12791 fi
12792 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12794 with_gnu_ld=$lt_cv_prog_gnu_ld
12795
12796
12797 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12798 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12799 if test "${lt_cv_ld_reload_flag+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   lt_cv_ld_reload_flag='-r'
12803 fi
12804 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12805 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12806 reload_flag=$lt_cv_ld_reload_flag
12807 case $reload_flag in
12808 "" | " "*) ;;
12809 *) reload_flag=" $reload_flag" ;;
12810 esac
12811 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12812 case $host_os in
12813   darwin*)
12814     if test "$GCC" = yes; then
12815       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12816     else
12817       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12818     fi
12819     ;;
12820 esac
12821
12822 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12823 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12824 if test "${lt_cv_deplibs_check_method+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   lt_cv_file_magic_cmd='$MAGIC_CMD'
12828 lt_cv_file_magic_test_file=
12829 lt_cv_deplibs_check_method='unknown'
12830 # Need to set the preceding variable on all platforms that support
12831 # interlibrary dependencies.
12832 # 'none' -- dependencies not supported.
12833 # `unknown' -- same as none, but documents that we really don't know.
12834 # 'pass_all' -- all dependencies passed with no checks.
12835 # 'test_compile' -- check by making test program.
12836 # 'file_magic [[regex]]' -- check by looking for files in library path
12837 # which responds to the $file_magic_cmd with a given extended regex.
12838 # If you have `file' or equivalent on your system and you're not sure
12839 # whether `pass_all' will *always* work, you probably want this one.
12840
12841 case $host_os in
12842 aix4* | aix5*)
12843   lt_cv_deplibs_check_method=pass_all
12844   ;;
12845
12846 beos*)
12847   lt_cv_deplibs_check_method=pass_all
12848   ;;
12849
12850 bsdi[45]*)
12851   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12852   lt_cv_file_magic_cmd='/usr/bin/file -L'
12853   lt_cv_file_magic_test_file=/shlib/libc.so
12854   ;;
12855
12856 cygwin*)
12857   # func_win32_libid is a shell function defined in ltmain.sh
12858   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12859   lt_cv_file_magic_cmd='func_win32_libid'
12860   ;;
12861
12862 mingw* | pw32*)
12863   # Base MSYS/MinGW do not provide the 'file' command needed by
12864   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12865   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12866   lt_cv_file_magic_cmd='$OBJDUMP -f'
12867   ;;
12868
12869 darwin* | rhapsody*)
12870   lt_cv_deplibs_check_method=pass_all
12871   ;;
12872
12873 freebsd* | kfreebsd*-gnu | dragonfly*)
12874   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12875     case $host_cpu in
12876     i*86 )
12877       # Not sure whether the presence of OpenBSD here was a mistake.
12878       # Let's accept both of them until this is cleared up.
12879       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12880       lt_cv_file_magic_cmd=/usr/bin/file
12881       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12882       ;;
12883     esac
12884   else
12885     lt_cv_deplibs_check_method=pass_all
12886   fi
12887   ;;
12888
12889 gnu*)
12890   lt_cv_deplibs_check_method=pass_all
12891   ;;
12892
12893 hpux10.20* | hpux11*)
12894   lt_cv_file_magic_cmd=/usr/bin/file
12895   case $host_cpu in
12896   ia64*)
12897     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12898     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12899     ;;
12900   hppa*64*)
12901     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]'
12902     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12903     ;;
12904   *)
12905     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12906     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12907     ;;
12908   esac
12909   ;;
12910
12911 interix3*)
12912   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12913   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12914   ;;
12915
12916 irix5* | irix6* | nonstopux*)
12917   case $LD in
12918   *-32|*"-32 ") libmagic=32-bit;;
12919   *-n32|*"-n32 ") libmagic=N32;;
12920   *-64|*"-64 ") libmagic=64-bit;;
12921   *) libmagic=never-match;;
12922   esac
12923   lt_cv_deplibs_check_method=pass_all
12924   ;;
12925
12926 # This must be Linux ELF.
12927 linux*)
12928   lt_cv_deplibs_check_method=pass_all
12929   ;;
12930
12931 netbsd*)
12932   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12933     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12934   else
12935     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12936   fi
12937   ;;
12938
12939 newos6*)
12940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12941   lt_cv_file_magic_cmd=/usr/bin/file
12942   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12943   ;;
12944
12945 nto-qnx*)
12946   lt_cv_deplibs_check_method=unknown
12947   ;;
12948
12949 openbsd*)
12950   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12952   else
12953     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12954   fi
12955   ;;
12956
12957 osf3* | osf4* | osf5*)
12958   lt_cv_deplibs_check_method=pass_all
12959   ;;
12960
12961 solaris*)
12962   lt_cv_deplibs_check_method=pass_all
12963   ;;
12964
12965 sysv4 | sysv4.3*)
12966   case $host_vendor in
12967   motorola)
12968     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]'
12969     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12970     ;;
12971   ncr)
12972     lt_cv_deplibs_check_method=pass_all
12973     ;;
12974   sequent)
12975     lt_cv_file_magic_cmd='/bin/file'
12976     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12977     ;;
12978   sni)
12979     lt_cv_file_magic_cmd='/bin/file'
12980     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12981     lt_cv_file_magic_test_file=/lib/libc.so
12982     ;;
12983   siemens)
12984     lt_cv_deplibs_check_method=pass_all
12985     ;;
12986   pc)
12987     lt_cv_deplibs_check_method=pass_all
12988     ;;
12989   esac
12990   ;;
12991
12992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12993   lt_cv_deplibs_check_method=pass_all
12994   ;;
12995 esac
12996
12997 fi
12998 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12999 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13000 file_magic_cmd=$lt_cv_file_magic_cmd
13001 deplibs_check_method=$lt_cv_deplibs_check_method
13002 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13003
13004
13005
13006 # If no C compiler was specified, use CC.
13007 LTCC=${LTCC-"$CC"}
13008
13009 # If no C compiler flags were specified, use CFLAGS.
13010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13011
13012 # Allow CC to be a program name with arguments.
13013 compiler=$CC
13014
13015 # Check whether --enable-libtool-lock was given.
13016 if test "${enable_libtool_lock+set}" = set; then
13017   enableval=$enable_libtool_lock;
13018 fi
13019
13020 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13021
13022 # Some flags need to be propagated to the compiler or linker for good
13023 # libtool support.
13024 case $host in
13025 ia64-*-hpux*)
13026   # Find out which ABI we are using.
13027   echo 'int i;' > conftest.$ac_ext
13028   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029   (eval $ac_compile) 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); }; then
13033     case `/usr/bin/file conftest.$ac_objext` in
13034     *ELF-32*)
13035       HPUX_IA64_MODE="32"
13036       ;;
13037     *ELF-64*)
13038       HPUX_IA64_MODE="64"
13039       ;;
13040     esac
13041   fi
13042   rm -rf conftest*
13043   ;;
13044 *-*-irix6*)
13045   # Find out which ABI we are using.
13046   echo '#line 13046 "configure"' > conftest.$ac_ext
13047   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048   (eval $ac_compile) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; then
13052    if test "$lt_cv_prog_gnu_ld" = yes; then
13053     case `/usr/bin/file conftest.$ac_objext` in
13054     *32-bit*)
13055       LD="${LD-ld} -melf32bsmip"
13056       ;;
13057     *N32*)
13058       LD="${LD-ld} -melf32bmipn32"
13059       ;;
13060     *64-bit*)
13061       LD="${LD-ld} -melf64bmip"
13062       ;;
13063     esac
13064    else
13065     case `/usr/bin/file conftest.$ac_objext` in
13066     *32-bit*)
13067       LD="${LD-ld} -32"
13068       ;;
13069     *N32*)
13070       LD="${LD-ld} -n32"
13071       ;;
13072     *64-bit*)
13073       LD="${LD-ld} -64"
13074       ;;
13075     esac
13076    fi
13077   fi
13078   rm -rf conftest*
13079   ;;
13080
13081 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13082   # Find out which ABI we are using.
13083   echo 'int i;' > conftest.$ac_ext
13084   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085   (eval $ac_compile) 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; then
13089     case `/usr/bin/file conftest.o` in
13090     *32-bit*)
13091       case $host in
13092         x86_64-*linux*)
13093           LD="${LD-ld} -m elf_i386"
13094           ;;
13095         ppc64-*linux*|powerpc64-*linux*)
13096           LD="${LD-ld} -m elf32ppclinux"
13097           ;;
13098         s390x-*linux*)
13099           LD="${LD-ld} -m elf_s390"
13100           ;;
13101         sparc64-*linux*)
13102           LD="${LD-ld} -m elf32_sparc"
13103           ;;
13104       esac
13105       ;;
13106     *64-bit*)
13107       case $host in
13108         x86_64-*linux*)
13109           LD="${LD-ld} -m elf_x86_64"
13110           ;;
13111         ppc*-*linux*|powerpc*-*linux*)
13112           LD="${LD-ld} -m elf64ppc"
13113           ;;
13114         s390*-*linux*)
13115           LD="${LD-ld} -m elf64_s390"
13116           ;;
13117         sparc*-*linux*)
13118           LD="${LD-ld} -m elf64_sparc"
13119           ;;
13120       esac
13121       ;;
13122     esac
13123   fi
13124   rm -rf conftest*
13125   ;;
13126
13127 *-*-sco3.2v5*)
13128   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13129   SAVE_CFLAGS="$CFLAGS"
13130   CFLAGS="$CFLAGS -belf"
13131   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13132 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13133 if test "${lt_cv_cc_needs_belf+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   ac_ext=c
13137 ac_cpp='$CPP $CPPFLAGS'
13138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141
13142      cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148
13149 int
13150 main ()
13151 {
13152
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_link") 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } &&
13171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172   { (case "(($ac_try" in
13173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174   *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177   (eval "$ac_try") 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }; } &&
13181          { ac_try='test -s conftest$ac_exeext'
13182   { (case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_try") 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   lt_cv_cc_needs_belf=yes
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196         lt_cv_cc_needs_belf=no
13197 fi
13198
13199 rm -f core conftest.err conftest.$ac_objext \
13200       conftest$ac_exeext conftest.$ac_ext
13201      ac_ext=c
13202 ac_cpp='$CPP $CPPFLAGS'
13203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13206
13207 fi
13208 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13210   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13211     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13212     CFLAGS="$SAVE_CFLAGS"
13213   fi
13214   ;;
13215 sparc*-*solaris*)
13216   # Find out which ABI we are using.
13217   echo 'int i;' > conftest.$ac_ext
13218   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219   (eval $ac_compile) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; then
13223     case `/usr/bin/file conftest.o` in
13224     *64-bit*)
13225       case $lt_cv_prog_gnu_ld in
13226       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13227       *)    LD="${LD-ld} -64" ;;
13228       esac
13229       ;;
13230     esac
13231   fi
13232   rm -rf conftest*
13233   ;;
13234
13235
13236 esac
13237
13238 need_locks="$enable_libtool_lock"
13239
13240
13241
13242
13243 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13244     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13245     (test "X$CXX" != "Xg++"))) ; then
13246   ac_ext=cpp
13247 ac_cpp='$CXXCPP $CPPFLAGS'
13248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13251 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13252 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13253 if test -z "$CXXCPP"; then
13254   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13255   echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257       # Double quotes because CXXCPP needs to be expanded
13258     for CXXCPP in "$CXX -E" "/lib/cpp"
13259     do
13260       ac_preproc_ok=false
13261 for ac_cxx_preproc_warn_flag in '' yes
13262 do
13263   # Use a header file that comes with gcc, so configuring glibc
13264   # with a fresh cross-compiler works.
13265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13266   # <limits.h> exists even on freestanding compilers.
13267   # On the NeXT, cc -E runs the code through the compiler's parser,
13268   # not just through cpp. "Syntax error" is here to catch this case.
13269   cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275 #ifdef __STDC__
13276 # include <limits.h>
13277 #else
13278 # include <assert.h>
13279 #endif
13280                      Syntax error
13281 _ACEOF
13282 if { (ac_try="$ac_cpp conftest.$ac_ext"
13283 case "(($ac_try" in
13284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285   *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13289   ac_status=$?
13290   grep -v '^ *+' conftest.er1 >conftest.err
13291   rm -f conftest.er1
13292   cat conftest.err >&5
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); } >/dev/null; then
13295   if test -s conftest.err; then
13296     ac_cpp_err=$ac_cxx_preproc_warn_flag
13297     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13298   else
13299     ac_cpp_err=
13300   fi
13301 else
13302   ac_cpp_err=yes
13303 fi
13304 if test -z "$ac_cpp_err"; then
13305   :
13306 else
13307   echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13309
13310   # Broken: fails on valid input.
13311 continue
13312 fi
13313
13314 rm -f conftest.err conftest.$ac_ext
13315
13316   # OK, works on sane cases.  Now check whether nonexistent headers
13317   # can be detected and how.
13318   cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324 #include <ac_nonexistent.h>
13325 _ACEOF
13326 if { (ac_try="$ac_cpp conftest.$ac_ext"
13327 case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } >/dev/null; then
13339   if test -s conftest.err; then
13340     ac_cpp_err=$ac_cxx_preproc_warn_flag
13341     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13342   else
13343     ac_cpp_err=
13344   fi
13345 else
13346   ac_cpp_err=yes
13347 fi
13348 if test -z "$ac_cpp_err"; then
13349   # Broken: success on invalid input.
13350 continue
13351 else
13352   echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355   # Passes both tests.
13356 ac_preproc_ok=:
13357 break
13358 fi
13359
13360 rm -f conftest.err conftest.$ac_ext
13361
13362 done
13363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13364 rm -f conftest.err conftest.$ac_ext
13365 if $ac_preproc_ok; then
13366   break
13367 fi
13368
13369     done
13370     ac_cv_prog_CXXCPP=$CXXCPP
13371
13372 fi
13373   CXXCPP=$ac_cv_prog_CXXCPP
13374 else
13375   ac_cv_prog_CXXCPP=$CXXCPP
13376 fi
13377 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13378 echo "${ECHO_T}$CXXCPP" >&6; }
13379 ac_preproc_ok=false
13380 for ac_cxx_preproc_warn_flag in '' yes
13381 do
13382   # Use a header file that comes with gcc, so configuring glibc
13383   # with a fresh cross-compiler works.
13384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13385   # <limits.h> exists even on freestanding compilers.
13386   # On the NeXT, cc -E runs the code through the compiler's parser,
13387   # not just through cpp. "Syntax error" is here to catch this case.
13388   cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394 #ifdef __STDC__
13395 # include <limits.h>
13396 #else
13397 # include <assert.h>
13398 #endif
13399                      Syntax error
13400 _ACEOF
13401 if { (ac_try="$ac_cpp conftest.$ac_ext"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } >/dev/null; then
13414   if test -s conftest.err; then
13415     ac_cpp_err=$ac_cxx_preproc_warn_flag
13416     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13417   else
13418     ac_cpp_err=
13419   fi
13420 else
13421   ac_cpp_err=yes
13422 fi
13423 if test -z "$ac_cpp_err"; then
13424   :
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429   # Broken: fails on valid input.
13430 continue
13431 fi
13432
13433 rm -f conftest.err conftest.$ac_ext
13434
13435   # OK, works on sane cases.  Now check whether nonexistent headers
13436   # can be detected and how.
13437   cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443 #include <ac_nonexistent.h>
13444 _ACEOF
13445 if { (ac_try="$ac_cpp conftest.$ac_ext"
13446 case "(($ac_try" in
13447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448   *) ac_try_echo=$ac_try;;
13449 esac
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13452   ac_status=$?
13453   grep -v '^ *+' conftest.er1 >conftest.err
13454   rm -f conftest.er1
13455   cat conftest.err >&5
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } >/dev/null; then
13458   if test -s conftest.err; then
13459     ac_cpp_err=$ac_cxx_preproc_warn_flag
13460     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13461   else
13462     ac_cpp_err=
13463   fi
13464 else
13465   ac_cpp_err=yes
13466 fi
13467 if test -z "$ac_cpp_err"; then
13468   # Broken: success on invalid input.
13469 continue
13470 else
13471   echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474   # Passes both tests.
13475 ac_preproc_ok=:
13476 break
13477 fi
13478
13479 rm -f conftest.err conftest.$ac_ext
13480
13481 done
13482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13483 rm -f conftest.err conftest.$ac_ext
13484 if $ac_preproc_ok; then
13485   :
13486 else
13487   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13488 See \`config.log' for more details." >&5
13489 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13490 See \`config.log' for more details." >&2;}
13491    { (exit 1); exit 1; }; }
13492 fi
13493
13494 ac_ext=cpp
13495 ac_cpp='$CXXCPP $CPPFLAGS'
13496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13499
13500 fi
13501
13502
13503 ac_ext=f
13504 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13507 if test -n "$ac_tool_prefix"; then
13508   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
13509   do
13510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13514 if test "${ac_cv_prog_F77+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   if test -n "$F77"; then
13518   ac_cv_prog_F77="$F77" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13522 do
13523   IFS=$as_save_IFS
13524   test -z "$as_dir" && as_dir=.
13525   for ac_exec_ext in '' $ac_executable_extensions; do
13526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13527     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13529     break 2
13530   fi
13531 done
13532 done
13533 IFS=$as_save_IFS
13534
13535 fi
13536 fi
13537 F77=$ac_cv_prog_F77
13538 if test -n "$F77"; then
13539   { echo "$as_me:$LINENO: result: $F77" >&5
13540 echo "${ECHO_T}$F77" >&6; }
13541 else
13542   { echo "$as_me:$LINENO: result: no" >&5
13543 echo "${ECHO_T}no" >&6; }
13544 fi
13545
13546
13547     test -n "$F77" && break
13548   done
13549 fi
13550 if test -z "$F77"; then
13551   ac_ct_F77=$F77
13552   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
13553 do
13554   # Extract the first word of "$ac_prog", so it can be a program name with args.
13555 set dummy $ac_prog; ac_word=$2
13556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13558 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   if test -n "$ac_ct_F77"; then
13562   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13566 do
13567   IFS=$as_save_IFS
13568   test -z "$as_dir" && as_dir=.
13569   for ac_exec_ext in '' $ac_executable_extensions; do
13570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13571     ac_cv_prog_ac_ct_F77="$ac_prog"
13572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13573     break 2
13574   fi
13575 done
13576 done
13577 IFS=$as_save_IFS
13578
13579 fi
13580 fi
13581 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13582 if test -n "$ac_ct_F77"; then
13583   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13584 echo "${ECHO_T}$ac_ct_F77" >&6; }
13585 else
13586   { echo "$as_me:$LINENO: result: no" >&5
13587 echo "${ECHO_T}no" >&6; }
13588 fi
13589
13590
13591   test -n "$ac_ct_F77" && break
13592 done
13593
13594   if test "x$ac_ct_F77" = x; then
13595     F77=""
13596   else
13597     case $cross_compiling:$ac_tool_warned in
13598 yes:)
13599 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13600 whose name does not start with the host triplet.  If you think this
13601 configuration is useful to you, please write to autoconf@gnu.org." >&5
13602 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13603 whose name does not start with the host triplet.  If you think this
13604 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13605 ac_tool_warned=yes ;;
13606 esac
13607     F77=$ac_ct_F77
13608   fi
13609 fi
13610
13611
13612 # Provide some information about the compiler.
13613 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13614 ac_compiler=`set X $ac_compile; echo $2`
13615 { (ac_try="$ac_compiler --version >&5"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_compiler --version >&5") 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }
13625 { (ac_try="$ac_compiler -v >&5"
13626 case "(($ac_try" in
13627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628   *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631   (eval "$ac_compiler -v >&5") 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }
13635 { (ac_try="$ac_compiler -V >&5"
13636 case "(($ac_try" in
13637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638   *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641   (eval "$ac_compiler -V >&5") 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }
13645 rm -f a.out
13646
13647 # If we don't use `.F' as extension, the preprocessor is not run on the
13648 # input file.  (Note that this only needs to work for GNU compilers.)
13649 ac_save_ext=$ac_ext
13650 ac_ext=F
13651 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13652 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13653 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   cat >conftest.$ac_ext <<_ACEOF
13657       program main
13658 #ifndef __GNUC__
13659        choke me
13660 #endif
13661
13662       end
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (ac_try="$ac_compile"
13666 case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_compile") 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13679   { (case "(($ac_try" in
13680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681   *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684   (eval "$ac_try") 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; } &&
13688          { ac_try='test -s conftest.$ac_objext'
13689   { (case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_try") 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }; }; then
13698   ac_compiler_gnu=yes
13699 else
13700   echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703         ac_compiler_gnu=no
13704 fi
13705
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13708
13709 fi
13710 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13711 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13712 ac_ext=$ac_save_ext
13713 ac_test_FFLAGS=${FFLAGS+set}
13714 ac_save_FFLAGS=$FFLAGS
13715 FFLAGS=
13716 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13717 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13718 if test "${ac_cv_prog_f77_g+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   FFLAGS=-g
13722 cat >conftest.$ac_ext <<_ACEOF
13723       program main
13724
13725       end
13726 _ACEOF
13727 rm -f conftest.$ac_objext
13728 if { (ac_try="$ac_compile"
13729 case "(($ac_try" in
13730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731   *) ac_try_echo=$ac_try;;
13732 esac
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734   (eval "$ac_compile") 2>conftest.er1
13735   ac_status=$?
13736   grep -v '^ *+' conftest.er1 >conftest.err
13737   rm -f conftest.er1
13738   cat conftest.err >&5
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); } &&
13741          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13742   { (case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_try") 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; } &&
13751          { ac_try='test -s conftest.$ac_objext'
13752   { (case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_try") 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   ac_cv_prog_f77_g=yes
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766         ac_cv_prog_f77_g=no
13767 fi
13768
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770
13771 fi
13772 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13773 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13774 if test "$ac_test_FFLAGS" = set; then
13775   FFLAGS=$ac_save_FFLAGS
13776 elif test $ac_cv_prog_f77_g = yes; then
13777   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13778     FFLAGS="-g -O2"
13779   else
13780     FFLAGS="-g"
13781   fi
13782 else
13783   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13784     FFLAGS="-O2"
13785   else
13786     FFLAGS=
13787   fi
13788 fi
13789
13790 G77=`test $ac_compiler_gnu = yes && echo yes`
13791 ac_ext=c
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796
13797
13798
13799 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13800
13801 # find the maximum length of command line arguments
13802 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13803 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13804 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807     i=0
13808   teststring="ABCD"
13809
13810   case $build_os in
13811   msdosdjgpp*)
13812     # On DJGPP, this test can blow up pretty badly due to problems in libc
13813     # (any single argument exceeding 2000 bytes causes a buffer overrun
13814     # during glob expansion).  Even if it were fixed, the result of this
13815     # check would be larger than it should be.
13816     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13817     ;;
13818
13819   gnu*)
13820     # Under GNU Hurd, this test is not required because there is
13821     # no limit to the length of command line arguments.
13822     # Libtool will interpret -1 as no limit whatsoever
13823     lt_cv_sys_max_cmd_len=-1;
13824     ;;
13825
13826   cygwin* | mingw*)
13827     # On Win9x/ME, this test blows up -- it succeeds, but takes
13828     # about 5 minutes as the teststring grows exponentially.
13829     # Worse, since 9x/ME are not pre-emptively multitasking,
13830     # you end up with a "frozen" computer, even though with patience
13831     # the test eventually succeeds (with a max line length of 256k).
13832     # Instead, let's just punt: use the minimum linelength reported by
13833     # all of the supported platforms: 8192 (on NT/2K/XP).
13834     lt_cv_sys_max_cmd_len=8192;
13835     ;;
13836
13837   amigaos*)
13838     # On AmigaOS with pdksh, this test takes hours, literally.
13839     # So we just punt and use a minimum line length of 8192.
13840     lt_cv_sys_max_cmd_len=8192;
13841     ;;
13842
13843   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13844     # This has been around since 386BSD, at least.  Likely further.
13845     if test -x /sbin/sysctl; then
13846       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13847     elif test -x /usr/sbin/sysctl; then
13848       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13849     else
13850       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13851     fi
13852     # And add a safety zone
13853     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13854     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13855     ;;
13856
13857   interix*)
13858     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13859     lt_cv_sys_max_cmd_len=196608
13860     ;;
13861
13862   osf*)
13863     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13864     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13865     # nice to cause kernel panics so lets avoid the loop below.
13866     # First set a reasonable default.
13867     lt_cv_sys_max_cmd_len=16384
13868     #
13869     if test -x /sbin/sysconfig; then
13870       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13871         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13872       esac
13873     fi
13874     ;;
13875   sco3.2v5*)
13876     lt_cv_sys_max_cmd_len=102400
13877     ;;
13878   sysv5* | sco5v6* | sysv4.2uw2*)
13879     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13880     if test -n "$kargmax"; then
13881       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13882     else
13883       lt_cv_sys_max_cmd_len=32768
13884     fi
13885     ;;
13886   *)
13887     # If test is not a shell built-in, we'll probably end up computing a
13888     # maximum length that is only half of the actual maximum length, but
13889     # we can't tell.
13890     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13891     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13892                = "XX$teststring") >/dev/null 2>&1 &&
13893             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13894             lt_cv_sys_max_cmd_len=$new_result &&
13895             test $i != 17 # 1/2 MB should be enough
13896     do
13897       i=`expr $i + 1`
13898       teststring=$teststring$teststring
13899     done
13900     teststring=
13901     # Add a significant safety factor because C++ compilers can tack on massive
13902     # amounts of additional arguments before passing them to the linker.
13903     # It appears as though 1/2 is a usable value.
13904     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13905     ;;
13906   esac
13907
13908 fi
13909
13910 if test -n $lt_cv_sys_max_cmd_len ; then
13911   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13912 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13913 else
13914   { echo "$as_me:$LINENO: result: none" >&5
13915 echo "${ECHO_T}none" >&6; }
13916 fi
13917
13918
13919
13920
13921 # Check for command to grab the raw symbol name followed by C symbol from nm.
13922 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13923 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13924 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927
13928 # These are sane defaults that work on at least a few old systems.
13929 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13930
13931 # Character class describing NM global symbol codes.
13932 symcode='[BCDEGRST]'
13933
13934 # Regexp to match symbols that can be accessed directly from C.
13935 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13936
13937 # Transform an extracted symbol line into a proper C declaration
13938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13939
13940 # Transform an extracted symbol line into symbol name and symbol address
13941 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'"
13942
13943 # Define system-specific variables.
13944 case $host_os in
13945 aix*)
13946   symcode='[BCDT]'
13947   ;;
13948 cygwin* | mingw* | pw32*)
13949   symcode='[ABCDGISTW]'
13950   ;;
13951 hpux*) # Its linker distinguishes data from code symbols
13952   if test "$host_cpu" = ia64; then
13953     symcode='[ABCDEGRST]'
13954   fi
13955   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13956   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'"
13957   ;;
13958 linux*)
13959   if test "$host_cpu" = ia64; then
13960     symcode='[ABCDGIRSTW]'
13961     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13962     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'"
13963   fi
13964   ;;
13965 irix* | nonstopux*)
13966   symcode='[BCDEGRST]'
13967   ;;
13968 osf*)
13969   symcode='[BCDEGQRST]'
13970   ;;
13971 solaris*)
13972   symcode='[BDRT]'
13973   ;;
13974 sco3.2v5*)
13975   symcode='[DT]'
13976   ;;
13977 sysv4.2uw2*)
13978   symcode='[DT]'
13979   ;;
13980 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13981   symcode='[ABDT]'
13982   ;;
13983 sysv4)
13984   symcode='[DFNSTU]'
13985   ;;
13986 esac
13987
13988 # Handle CRLF in mingw tool chain
13989 opt_cr=
13990 case $build_os in
13991 mingw*)
13992   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13993   ;;
13994 esac
13995
13996 # If we're using GNU nm, then use its standard symbol codes.
13997 case `$NM -V 2>&1` in
13998 *GNU* | *'with BFD'*)
13999   symcode='[ABCDGIRSTW]' ;;
14000 esac
14001
14002 # Try without a prefix undercore, then with it.
14003 for ac_symprfx in "" "_"; do
14004
14005   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14006   symxfrm="\\1 $ac_symprfx\\2 \\2"
14007
14008   # Write the raw and C identifiers.
14009   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14010
14011   # Check to see that the pipe works correctly.
14012   pipe_works=no
14013
14014   rm -f conftest*
14015   cat > conftest.$ac_ext <<EOF
14016 #ifdef __cplusplus
14017 extern "C" {
14018 #endif
14019 char nm_test_var;
14020 void nm_test_func(){}
14021 #ifdef __cplusplus
14022 }
14023 #endif
14024 int main(){nm_test_var='a';nm_test_func();return(0);}
14025 EOF
14026
14027   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; then
14032     # Now try to grab the symbols.
14033     nlist=conftest.nm
14034     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14035   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } && test -s "$nlist"; then
14039       # Try sorting and uniquifying the output.
14040       if sort "$nlist" | uniq > "$nlist"T; then
14041         mv -f "$nlist"T "$nlist"
14042       else
14043         rm -f "$nlist"T
14044       fi
14045
14046       # Make sure that we snagged all the symbols we need.
14047       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14048         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14049           cat <<EOF > conftest.$ac_ext
14050 #ifdef __cplusplus
14051 extern "C" {
14052 #endif
14053
14054 EOF
14055           # Now generate the symbol file.
14056           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14057
14058           cat <<EOF >> conftest.$ac_ext
14059 #if defined (__STDC__) && __STDC__
14060 # define lt_ptr_t void *
14061 #else
14062 # define lt_ptr_t char *
14063 # define const
14064 #endif
14065
14066 /* The mapping between symbol names and symbols. */
14067 const struct {
14068   const char *name;
14069   lt_ptr_t address;
14070 }
14071 lt_preloaded_symbols[] =
14072 {
14073 EOF
14074           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14075           cat <<\EOF >> conftest.$ac_ext
14076   {0, (lt_ptr_t) 0}
14077 };
14078
14079 #ifdef __cplusplus
14080 }
14081 #endif
14082 EOF
14083           # Now try linking the two files.
14084           mv conftest.$ac_objext conftstm.$ac_objext
14085           lt_save_LIBS="$LIBS"
14086           lt_save_CFLAGS="$CFLAGS"
14087           LIBS="conftstm.$ac_objext"
14088           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14089           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090   (eval $ac_link) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14094             pipe_works=yes
14095           fi
14096           LIBS="$lt_save_LIBS"
14097           CFLAGS="$lt_save_CFLAGS"
14098         else
14099           echo "cannot find nm_test_func in $nlist" >&5
14100         fi
14101       else
14102         echo "cannot find nm_test_var in $nlist" >&5
14103       fi
14104     else
14105       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14106     fi
14107   else
14108     echo "$progname: failed program was:" >&5
14109     cat conftest.$ac_ext >&5
14110   fi
14111   rm -f conftest* conftst*
14112
14113   # Do not use the global_symbol_pipe unless it works.
14114   if test "$pipe_works" = yes; then
14115     break
14116   else
14117     lt_cv_sys_global_symbol_pipe=
14118   fi
14119 done
14120
14121 fi
14122
14123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14124   lt_cv_sys_global_symbol_to_cdecl=
14125 fi
14126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14127   { echo "$as_me:$LINENO: result: failed" >&5
14128 echo "${ECHO_T}failed" >&6; }
14129 else
14130   { echo "$as_me:$LINENO: result: ok" >&5
14131 echo "${ECHO_T}ok" >&6; }
14132 fi
14133
14134 { echo "$as_me:$LINENO: checking for objdir" >&5
14135 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14136 if test "${lt_cv_objdir+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   rm -f .libs 2>/dev/null
14140 mkdir .libs 2>/dev/null
14141 if test -d .libs; then
14142   lt_cv_objdir=.libs
14143 else
14144   # MS-DOS does not allow filenames that begin with a dot.
14145   lt_cv_objdir=_libs
14146 fi
14147 rmdir .libs 2>/dev/null
14148 fi
14149 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14150 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14151 objdir=$lt_cv_objdir
14152
14153
14154
14155
14156
14157 case $host_os in
14158 aix3*)
14159   # AIX sometimes has problems with the GCC collect2 program.  For some
14160   # reason, if we set the COLLECT_NAMES environment variable, the problems
14161   # vanish in a puff of smoke.
14162   if test "X${COLLECT_NAMES+set}" != Xset; then
14163     COLLECT_NAMES=
14164     export COLLECT_NAMES
14165   fi
14166   ;;
14167 esac
14168
14169 # Sed substitution that helps us do robust quoting.  It backslashifies
14170 # metacharacters that are still active within double-quoted strings.
14171 Xsed='sed -e 1s/^X//'
14172 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14173
14174 # Same as above, but do not quote variable references.
14175 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14176
14177 # Sed substitution to delay expansion of an escaped shell variable in a
14178 # double_quote_subst'ed string.
14179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14180
14181 # Sed substitution to avoid accidental globbing in evaled expressions
14182 no_glob_subst='s/\*/\\\*/g'
14183
14184 # Constants:
14185 rm="rm -f"
14186
14187 # Global variables:
14188 default_ofile=mklib
14189 can_build_shared=yes
14190
14191 # All known linkers require a `.a' archive for static linking (except MSVC,
14192 # which needs '.lib').
14193 libext=a
14194 ltmain="$ac_aux_dir/ltmain.sh"
14195 ofile="$default_ofile"
14196 with_gnu_ld="$lt_cv_prog_gnu_ld"
14197
14198 if test -n "$ac_tool_prefix"; then
14199   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}ar; ac_word=$2
14201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14203 if test "${ac_cv_prog_AR+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   if test -n "$AR"; then
14207   ac_cv_prog_AR="$AR" # Let the user override the test.
14208 else
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14211 do
14212   IFS=$as_save_IFS
14213   test -z "$as_dir" && as_dir=.
14214   for ac_exec_ext in '' $ac_executable_extensions; do
14215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14216     ac_cv_prog_AR="${ac_tool_prefix}ar"
14217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14218     break 2
14219   fi
14220 done
14221 done
14222 IFS=$as_save_IFS
14223
14224 fi
14225 fi
14226 AR=$ac_cv_prog_AR
14227 if test -n "$AR"; then
14228   { echo "$as_me:$LINENO: result: $AR" >&5
14229 echo "${ECHO_T}$AR" >&6; }
14230 else
14231   { echo "$as_me:$LINENO: result: no" >&5
14232 echo "${ECHO_T}no" >&6; }
14233 fi
14234
14235
14236 fi
14237 if test -z "$ac_cv_prog_AR"; then
14238   ac_ct_AR=$AR
14239   # Extract the first word of "ar", so it can be a program name with args.
14240 set dummy ar; ac_word=$2
14241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   if test -n "$ac_ct_AR"; then
14247   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252   IFS=$as_save_IFS
14253   test -z "$as_dir" && as_dir=.
14254   for ac_exec_ext in '' $ac_executable_extensions; do
14255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14256     ac_cv_prog_ac_ct_AR="ar"
14257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14258     break 2
14259   fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14267 if test -n "$ac_ct_AR"; then
14268   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14269 echo "${ECHO_T}$ac_ct_AR" >&6; }
14270 else
14271   { echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6; }
14273 fi
14274
14275   if test "x$ac_ct_AR" = x; then
14276     AR="false"
14277   else
14278     case $cross_compiling:$ac_tool_warned in
14279 yes:)
14280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14281 whose name does not start with the host triplet.  If you think this
14282 configuration is useful to you, please write to autoconf@gnu.org." >&5
14283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14284 whose name does not start with the host triplet.  If you think this
14285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14286 ac_tool_warned=yes ;;
14287 esac
14288     AR=$ac_ct_AR
14289   fi
14290 else
14291   AR="$ac_cv_prog_AR"
14292 fi
14293
14294 if test -n "$ac_tool_prefix"; then
14295   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14299 if test "${ac_cv_prog_RANLIB+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   if test -n "$RANLIB"; then
14303   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14304 else
14305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14307 do
14308   IFS=$as_save_IFS
14309   test -z "$as_dir" && as_dir=.
14310   for ac_exec_ext in '' $ac_executable_extensions; do
14311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14312     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14314     break 2
14315   fi
14316 done
14317 done
14318 IFS=$as_save_IFS
14319
14320 fi
14321 fi
14322 RANLIB=$ac_cv_prog_RANLIB
14323 if test -n "$RANLIB"; then
14324   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14325 echo "${ECHO_T}$RANLIB" >&6; }
14326 else
14327   { echo "$as_me:$LINENO: result: no" >&5
14328 echo "${ECHO_T}no" >&6; }
14329 fi
14330
14331
14332 fi
14333 if test -z "$ac_cv_prog_RANLIB"; then
14334   ac_ct_RANLIB=$RANLIB
14335   # Extract the first word of "ranlib", so it can be a program name with args.
14336 set dummy ranlib; ac_word=$2
14337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14340   echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342   if test -n "$ac_ct_RANLIB"; then
14343   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14344 else
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14347 do
14348   IFS=$as_save_IFS
14349   test -z "$as_dir" && as_dir=.
14350   for ac_exec_ext in '' $ac_executable_extensions; do
14351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14352     ac_cv_prog_ac_ct_RANLIB="ranlib"
14353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14354     break 2
14355   fi
14356 done
14357 done
14358 IFS=$as_save_IFS
14359
14360 fi
14361 fi
14362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14363 if test -n "$ac_ct_RANLIB"; then
14364   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14365 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14366 else
14367   { echo "$as_me:$LINENO: result: no" >&5
14368 echo "${ECHO_T}no" >&6; }
14369 fi
14370
14371   if test "x$ac_ct_RANLIB" = x; then
14372     RANLIB=":"
14373   else
14374     case $cross_compiling:$ac_tool_warned in
14375 yes:)
14376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14377 whose name does not start with the host triplet.  If you think this
14378 configuration is useful to you, please write to autoconf@gnu.org." >&5
14379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14380 whose name does not start with the host triplet.  If you think this
14381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14382 ac_tool_warned=yes ;;
14383 esac
14384     RANLIB=$ac_ct_RANLIB
14385   fi
14386 else
14387   RANLIB="$ac_cv_prog_RANLIB"
14388 fi
14389
14390 if test -n "$ac_tool_prefix"; then
14391   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14392 set dummy ${ac_tool_prefix}strip; ac_word=$2
14393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14395 if test "${ac_cv_prog_STRIP+set}" = set; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   if test -n "$STRIP"; then
14399   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14400 else
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14403 do
14404   IFS=$as_save_IFS
14405   test -z "$as_dir" && as_dir=.
14406   for ac_exec_ext in '' $ac_executable_extensions; do
14407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14408     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14410     break 2
14411   fi
14412 done
14413 done
14414 IFS=$as_save_IFS
14415
14416 fi
14417 fi
14418 STRIP=$ac_cv_prog_STRIP
14419 if test -n "$STRIP"; then
14420   { echo "$as_me:$LINENO: result: $STRIP" >&5
14421 echo "${ECHO_T}$STRIP" >&6; }
14422 else
14423   { echo "$as_me:$LINENO: result: no" >&5
14424 echo "${ECHO_T}no" >&6; }
14425 fi
14426
14427
14428 fi
14429 if test -z "$ac_cv_prog_STRIP"; then
14430   ac_ct_STRIP=$STRIP
14431   # Extract the first word of "strip", so it can be a program name with args.
14432 set dummy strip; ac_word=$2
14433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14435 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14436   echo $ECHO_N "(cached) $ECHO_C" >&6
14437 else
14438   if test -n "$ac_ct_STRIP"; then
14439   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14440 else
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14443 do
14444   IFS=$as_save_IFS
14445   test -z "$as_dir" && as_dir=.
14446   for ac_exec_ext in '' $ac_executable_extensions; do
14447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14448     ac_cv_prog_ac_ct_STRIP="strip"
14449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14450     break 2
14451   fi
14452 done
14453 done
14454 IFS=$as_save_IFS
14455
14456 fi
14457 fi
14458 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14459 if test -n "$ac_ct_STRIP"; then
14460   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14461 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14462 else
14463   { echo "$as_me:$LINENO: result: no" >&5
14464 echo "${ECHO_T}no" >&6; }
14465 fi
14466
14467   if test "x$ac_ct_STRIP" = x; then
14468     STRIP=":"
14469   else
14470     case $cross_compiling:$ac_tool_warned in
14471 yes:)
14472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14473 whose name does not start with the host triplet.  If you think this
14474 configuration is useful to you, please write to autoconf@gnu.org." >&5
14475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14476 whose name does not start with the host triplet.  If you think this
14477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14478 ac_tool_warned=yes ;;
14479 esac
14480     STRIP=$ac_ct_STRIP
14481   fi
14482 else
14483   STRIP="$ac_cv_prog_STRIP"
14484 fi
14485
14486
14487 old_CC="$CC"
14488 old_CFLAGS="$CFLAGS"
14489
14490 # Set sane defaults for various variables
14491 test -z "$AR" && AR=ar
14492 test -z "$AR_FLAGS" && AR_FLAGS=cru
14493 test -z "$AS" && AS=as
14494 test -z "$CC" && CC=cc
14495 test -z "$LTCC" && LTCC=$CC
14496 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14497 test -z "$DLLTOOL" && DLLTOOL=dlltool
14498 test -z "$LD" && LD=ld
14499 test -z "$LN_S" && LN_S="ln -s"
14500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14501 test -z "$NM" && NM=nm
14502 test -z "$SED" && SED=sed
14503 test -z "$OBJDUMP" && OBJDUMP=objdump
14504 test -z "$RANLIB" && RANLIB=:
14505 test -z "$STRIP" && STRIP=:
14506 test -z "$ac_objext" && ac_objext=o
14507
14508 # Determine commands to create old-style static archives.
14509 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14510 old_postinstall_cmds='chmod 644 $oldlib'
14511 old_postuninstall_cmds=
14512
14513 if test -n "$RANLIB"; then
14514   case $host_os in
14515   openbsd*)
14516     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14517     ;;
14518   *)
14519     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14520     ;;
14521   esac
14522   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14523 fi
14524
14525 for cc_temp in $compiler""; do
14526   case $cc_temp in
14527     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14528     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14529     \-*) ;;
14530     *) break;;
14531   esac
14532 done
14533 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14534
14535
14536 # Only perform the check for file, if the check method requires it
14537 case $deplibs_check_method in
14538 file_magic*)
14539   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14540     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14541 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545   case $MAGIC_CMD in
14546 [\\/*] |  ?:[\\/]*)
14547   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14548   ;;
14549 *)
14550   lt_save_MAGIC_CMD="$MAGIC_CMD"
14551   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14552   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14553   for ac_dir in $ac_dummy; do
14554     IFS="$lt_save_ifs"
14555     test -z "$ac_dir" && ac_dir=.
14556     if test -f $ac_dir/${ac_tool_prefix}file; then
14557       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14558       if test -n "$file_magic_test_file"; then
14559         case $deplibs_check_method in
14560         "file_magic "*)
14561           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14562           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14563           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14564             $EGREP "$file_magic_regex" > /dev/null; then
14565             :
14566           else
14567             cat <<EOF 1>&2
14568
14569 *** Warning: the command libtool uses to detect shared libraries,
14570 *** $file_magic_cmd, produces output that libtool cannot recognize.
14571 *** The result is that libtool may fail to recognize shared libraries
14572 *** as such.  This will affect the creation of libtool libraries that
14573 *** depend on shared libraries, but programs linked with such libtool
14574 *** libraries will work regardless of this problem.  Nevertheless, you
14575 *** may want to report the problem to your system manager and/or to
14576 *** bug-libtool@gnu.org
14577
14578 EOF
14579           fi ;;
14580         esac
14581       fi
14582       break
14583     fi
14584   done
14585   IFS="$lt_save_ifs"
14586   MAGIC_CMD="$lt_save_MAGIC_CMD"
14587   ;;
14588 esac
14589 fi
14590
14591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14592 if test -n "$MAGIC_CMD"; then
14593   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14594 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14595 else
14596   { echo "$as_me:$LINENO: result: no" >&5
14597 echo "${ECHO_T}no" >&6; }
14598 fi
14599
14600 if test -z "$lt_cv_path_MAGIC_CMD"; then
14601   if test -n "$ac_tool_prefix"; then
14602     { echo "$as_me:$LINENO: checking for file" >&5
14603 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14605   echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607   case $MAGIC_CMD in
14608 [\\/*] |  ?:[\\/]*)
14609   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14610   ;;
14611 *)
14612   lt_save_MAGIC_CMD="$MAGIC_CMD"
14613   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14614   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14615   for ac_dir in $ac_dummy; do
14616     IFS="$lt_save_ifs"
14617     test -z "$ac_dir" && ac_dir=.
14618     if test -f $ac_dir/file; then
14619       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14620       if test -n "$file_magic_test_file"; then
14621         case $deplibs_check_method in
14622         "file_magic "*)
14623           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14624           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14625           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14626             $EGREP "$file_magic_regex" > /dev/null; then
14627             :
14628           else
14629             cat <<EOF 1>&2
14630
14631 *** Warning: the command libtool uses to detect shared libraries,
14632 *** $file_magic_cmd, produces output that libtool cannot recognize.
14633 *** The result is that libtool may fail to recognize shared libraries
14634 *** as such.  This will affect the creation of libtool libraries that
14635 *** depend on shared libraries, but programs linked with such libtool
14636 *** libraries will work regardless of this problem.  Nevertheless, you
14637 *** may want to report the problem to your system manager and/or to
14638 *** bug-libtool@gnu.org
14639
14640 EOF
14641           fi ;;
14642         esac
14643       fi
14644       break
14645     fi
14646   done
14647   IFS="$lt_save_ifs"
14648   MAGIC_CMD="$lt_save_MAGIC_CMD"
14649   ;;
14650 esac
14651 fi
14652
14653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14654 if test -n "$MAGIC_CMD"; then
14655   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14656 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14657 else
14658   { echo "$as_me:$LINENO: result: no" >&5
14659 echo "${ECHO_T}no" >&6; }
14660 fi
14661
14662   else
14663     MAGIC_CMD=:
14664   fi
14665 fi
14666
14667   fi
14668   ;;
14669 esac
14670
14671 enable_dlopen=yes
14672 enable_win32_dll=no
14673
14674 # Check whether --enable-libtool-lock was given.
14675 if test "${enable_libtool_lock+set}" = set; then
14676   enableval=$enable_libtool_lock;
14677 fi
14678
14679 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14680
14681
14682 # Check whether --with-pic was given.
14683 if test "${with_pic+set}" = set; then
14684   withval=$with_pic; pic_mode="$withval"
14685 else
14686   pic_mode=default
14687 fi
14688
14689 test -z "$pic_mode" && pic_mode=default
14690
14691 # Use C for the default configuration in the libtool script
14692 tagname=
14693 lt_save_CC="$CC"
14694 ac_ext=c
14695 ac_cpp='$CPP $CPPFLAGS'
14696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14699
14700
14701 # Source file extension for C test sources.
14702 ac_ext=c
14703
14704 # Object file extension for compiled C test sources.
14705 objext=o
14706 objext=$objext
14707
14708 # Code to be used in simple compile tests
14709 lt_simple_compile_test_code="int some_variable = 0;\n"
14710
14711 # Code to be used in simple link tests
14712 lt_simple_link_test_code='int main(){return(0);}\n'
14713
14714
14715 # If no C compiler was specified, use CC.
14716 LTCC=${LTCC-"$CC"}
14717
14718 # If no C compiler flags were specified, use CFLAGS.
14719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14720
14721 # Allow CC to be a program name with arguments.
14722 compiler=$CC
14723
14724
14725 # save warnings/boilerplate of simple test code
14726 ac_outfile=conftest.$ac_objext
14727 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14728 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14729 _lt_compiler_boilerplate=`cat conftest.err`
14730 $rm conftest*
14731
14732 ac_outfile=conftest.$ac_objext
14733 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14734 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14735 _lt_linker_boilerplate=`cat conftest.err`
14736 $rm conftest*
14737
14738
14739
14740 lt_prog_compiler_no_builtin_flag=
14741
14742 if test "$GCC" = yes; then
14743   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14744
14745
14746 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14747 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14748 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751   lt_cv_prog_compiler_rtti_exceptions=no
14752   ac_outfile=conftest.$ac_objext
14753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754    lt_compiler_flag="-fno-rtti -fno-exceptions"
14755    # Insert the option either (1) after the last *FLAGS variable, or
14756    # (2) before a word containing "conftest.", or (3) at the end.
14757    # Note that $ac_compile itself does not contain backslashes and begins
14758    # with a dollar sign (not a hyphen), so the echo should work correctly.
14759    # The option is referenced via a variable to avoid confusing sed.
14760    lt_compile=`echo "$ac_compile" | $SED \
14761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763    -e 's:$: $lt_compiler_flag:'`
14764    (eval echo "\"\$as_me:14764: $lt_compile\"" >&5)
14765    (eval "$lt_compile" 2>conftest.err)
14766    ac_status=$?
14767    cat conftest.err >&5
14768    echo "$as_me:14768: \$? = $ac_status" >&5
14769    if (exit $ac_status) && test -s "$ac_outfile"; then
14770      # The compiler can only warn and ignore the option if not recognized
14771      # So say no if there are warnings other than the usual output.
14772      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14775        lt_cv_prog_compiler_rtti_exceptions=yes
14776      fi
14777    fi
14778    $rm conftest*
14779
14780 fi
14781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14782 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14783
14784 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14785     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14786 else
14787     :
14788 fi
14789
14790 fi
14791
14792 lt_prog_compiler_wl=
14793 lt_prog_compiler_pic=
14794 lt_prog_compiler_static=
14795
14796 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14798
14799   if test "$GCC" = yes; then
14800     lt_prog_compiler_wl='-Wl,'
14801     lt_prog_compiler_static='-static'
14802
14803     case $host_os in
14804       aix*)
14805       # All AIX code is PIC.
14806       if test "$host_cpu" = ia64; then
14807         # AIX 5 now supports IA64 processor
14808         lt_prog_compiler_static='-Bstatic'
14809       fi
14810       ;;
14811
14812     amigaos*)
14813       # FIXME: we need at least 68020 code to build shared libraries, but
14814       # adding the `-m68020' flag to GCC prevents building anything better,
14815       # like `-m68040'.
14816       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14817       ;;
14818
14819     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14820       # PIC is the default for these OSes.
14821       ;;
14822
14823     mingw* | pw32* | os2*)
14824       # This hack is so that the source file can tell whether it is being
14825       # built for inclusion in a dll (and should export symbols for example).
14826       lt_prog_compiler_pic='-DDLL_EXPORT'
14827       ;;
14828
14829     darwin* | rhapsody*)
14830       # PIC is the default on this platform
14831       # Common symbols not allowed in MH_DYLIB files
14832       lt_prog_compiler_pic='-fno-common'
14833       ;;
14834
14835     interix3*)
14836       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14837       # Instead, we relocate shared libraries at runtime.
14838       ;;
14839
14840     msdosdjgpp*)
14841       # Just because we use GCC doesn't mean we suddenly get shared libraries
14842       # on systems that don't support them.
14843       lt_prog_compiler_can_build_shared=no
14844       enable_shared=no
14845       ;;
14846
14847     sysv4*MP*)
14848       if test -d /usr/nec; then
14849         lt_prog_compiler_pic=-Kconform_pic
14850       fi
14851       ;;
14852
14853     hpux*)
14854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14855       # not for PA HP-UX.
14856       case $host_cpu in
14857       hppa*64*|ia64*)
14858         # +Z the default
14859         ;;
14860       *)
14861         lt_prog_compiler_pic='-fPIC'
14862         ;;
14863       esac
14864       ;;
14865
14866     *)
14867       lt_prog_compiler_pic='-fPIC'
14868       ;;
14869     esac
14870   else
14871     # PORTME Check for flag to pass linker flags through the system compiler.
14872     case $host_os in
14873     aix*)
14874       lt_prog_compiler_wl='-Wl,'
14875       if test "$host_cpu" = ia64; then
14876         # AIX 5 now supports IA64 processor
14877         lt_prog_compiler_static='-Bstatic'
14878       else
14879         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14880       fi
14881       ;;
14882       darwin*)
14883         # PIC is the default on this platform
14884         # Common symbols not allowed in MH_DYLIB files
14885        case $cc_basename in
14886          xlc*)
14887          lt_prog_compiler_pic='-qnocommon'
14888          lt_prog_compiler_wl='-Wl,'
14889          ;;
14890        esac
14891        ;;
14892
14893     mingw* | pw32* | os2*)
14894       # This hack is so that the source file can tell whether it is being
14895       # built for inclusion in a dll (and should export symbols for example).
14896       lt_prog_compiler_pic='-DDLL_EXPORT'
14897       ;;
14898
14899     hpux9* | hpux10* | hpux11*)
14900       lt_prog_compiler_wl='-Wl,'
14901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14902       # not for PA HP-UX.
14903       case $host_cpu in
14904       hppa*64*|ia64*)
14905         # +Z the default
14906         ;;
14907       *)
14908         lt_prog_compiler_pic='+Z'
14909         ;;
14910       esac
14911       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14912       lt_prog_compiler_static='${wl}-a ${wl}archive'
14913       ;;
14914
14915     irix5* | irix6* | nonstopux*)
14916       lt_prog_compiler_wl='-Wl,'
14917       # PIC (with -KPIC) is the default.
14918       lt_prog_compiler_static='-non_shared'
14919       ;;
14920
14921     newsos6)
14922       lt_prog_compiler_pic='-KPIC'
14923       lt_prog_compiler_static='-Bstatic'
14924       ;;
14925
14926     linux*)
14927       case $cc_basename in
14928       icc* | ecc*)
14929         lt_prog_compiler_wl='-Wl,'
14930         lt_prog_compiler_pic='-KPIC'
14931         lt_prog_compiler_static='-static'
14932         ;;
14933       pgcc* | pgf77* | pgf90* | pgf95*)
14934         # Portland Group compilers (*not* the Pentium gcc compiler,
14935         # which looks to be a dead project)
14936         lt_prog_compiler_wl='-Wl,'
14937         lt_prog_compiler_pic='-fpic'
14938         lt_prog_compiler_static='-Bstatic'
14939         ;;
14940       ccc*)
14941         lt_prog_compiler_wl='-Wl,'
14942         # All Alpha code is PIC.
14943         lt_prog_compiler_static='-non_shared'
14944         ;;
14945       esac
14946       ;;
14947
14948     osf3* | osf4* | osf5*)
14949       lt_prog_compiler_wl='-Wl,'
14950       # All OSF/1 code is PIC.
14951       lt_prog_compiler_static='-non_shared'
14952       ;;
14953
14954     solaris*)
14955       lt_prog_compiler_pic='-KPIC'
14956       lt_prog_compiler_static='-Bstatic'
14957       case $cc_basename in
14958       f77* | f90* | f95*)
14959         lt_prog_compiler_wl='-Qoption ld ';;
14960       *)
14961         lt_prog_compiler_wl='-Wl,';;
14962       esac
14963       ;;
14964
14965     sunos4*)
14966       lt_prog_compiler_wl='-Qoption ld '
14967       lt_prog_compiler_pic='-PIC'
14968       lt_prog_compiler_static='-Bstatic'
14969       ;;
14970
14971     sysv4 | sysv4.2uw2* | sysv4.3*)
14972       lt_prog_compiler_wl='-Wl,'
14973       lt_prog_compiler_pic='-KPIC'
14974       lt_prog_compiler_static='-Bstatic'
14975       ;;
14976
14977     sysv4*MP*)
14978       if test -d /usr/nec ;then
14979         lt_prog_compiler_pic='-Kconform_pic'
14980         lt_prog_compiler_static='-Bstatic'
14981       fi
14982       ;;
14983
14984     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14985       lt_prog_compiler_wl='-Wl,'
14986       lt_prog_compiler_pic='-KPIC'
14987       lt_prog_compiler_static='-Bstatic'
14988       ;;
14989
14990     unicos*)
14991       lt_prog_compiler_wl='-Wl,'
14992       lt_prog_compiler_can_build_shared=no
14993       ;;
14994
14995     uts4*)
14996       lt_prog_compiler_pic='-pic'
14997       lt_prog_compiler_static='-Bstatic'
14998       ;;
14999
15000     *)
15001       lt_prog_compiler_can_build_shared=no
15002       ;;
15003     esac
15004   fi
15005
15006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15007 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15008
15009 #
15010 # Check to make sure the PIC flag actually works.
15011 #
15012 if test -n "$lt_prog_compiler_pic"; then
15013
15014 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15016 if test "${lt_prog_compiler_pic_works+set}" = set; then
15017   echo $ECHO_N "(cached) $ECHO_C" >&6
15018 else
15019   lt_prog_compiler_pic_works=no
15020   ac_outfile=conftest.$ac_objext
15021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15023    # Insert the option either (1) after the last *FLAGS variable, or
15024    # (2) before a word containing "conftest.", or (3) at the end.
15025    # Note that $ac_compile itself does not contain backslashes and begins
15026    # with a dollar sign (not a hyphen), so the echo should work correctly.
15027    # The option is referenced via a variable to avoid confusing sed.
15028    lt_compile=`echo "$ac_compile" | $SED \
15029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031    -e 's:$: $lt_compiler_flag:'`
15032    (eval echo "\"\$as_me:15032: $lt_compile\"" >&5)
15033    (eval "$lt_compile" 2>conftest.err)
15034    ac_status=$?
15035    cat conftest.err >&5
15036    echo "$as_me:15036: \$? = $ac_status" >&5
15037    if (exit $ac_status) && test -s "$ac_outfile"; then
15038      # The compiler can only warn and ignore the option if not recognized
15039      # So say no if there are warnings other than the usual output.
15040      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15041      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15042      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15043        lt_prog_compiler_pic_works=yes
15044      fi
15045    fi
15046    $rm conftest*
15047
15048 fi
15049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15050 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15051
15052 if test x"$lt_prog_compiler_pic_works" = xyes; then
15053     case $lt_prog_compiler_pic in
15054      "" | " "*) ;;
15055      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15056      esac
15057 else
15058     lt_prog_compiler_pic=
15059      lt_prog_compiler_can_build_shared=no
15060 fi
15061
15062 fi
15063 case $host_os in
15064   # For platforms which do not support PIC, -DPIC is meaningless:
15065   *djgpp*)
15066     lt_prog_compiler_pic=
15067     ;;
15068   *)
15069     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15070     ;;
15071 esac
15072
15073 #
15074 # Check to make sure the static flag actually works.
15075 #
15076 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15077 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15078 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15079 if test "${lt_prog_compiler_static_works+set}" = set; then
15080   echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082   lt_prog_compiler_static_works=no
15083    save_LDFLAGS="$LDFLAGS"
15084    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15085    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15086    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15087      # The linker can only warn and ignore the option if not recognized
15088      # So say no if there are warnings
15089      if test -s conftest.err; then
15090        # Append any errors to the config.log.
15091        cat conftest.err 1>&5
15092        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15093        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15094        if diff conftest.exp conftest.er2 >/dev/null; then
15095          lt_prog_compiler_static_works=yes
15096        fi
15097      else
15098        lt_prog_compiler_static_works=yes
15099      fi
15100    fi
15101    $rm conftest*
15102    LDFLAGS="$save_LDFLAGS"
15103
15104 fi
15105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15106 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15107
15108 if test x"$lt_prog_compiler_static_works" = xyes; then
15109     :
15110 else
15111     lt_prog_compiler_static=
15112 fi
15113
15114
15115 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15117 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   lt_cv_prog_compiler_c_o=no
15121    $rm -r conftest 2>/dev/null
15122    mkdir conftest
15123    cd conftest
15124    mkdir out
15125    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15126
15127    lt_compiler_flag="-o out/conftest2.$ac_objext"
15128    # Insert the option either (1) after the last *FLAGS variable, or
15129    # (2) before a word containing "conftest.", or (3) at the end.
15130    # Note that $ac_compile itself does not contain backslashes and begins
15131    # with a dollar sign (not a hyphen), so the echo should work correctly.
15132    lt_compile=`echo "$ac_compile" | $SED \
15133    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15135    -e 's:$: $lt_compiler_flag:'`
15136    (eval echo "\"\$as_me:15136: $lt_compile\"" >&5)
15137    (eval "$lt_compile" 2>out/conftest.err)
15138    ac_status=$?
15139    cat out/conftest.err >&5
15140    echo "$as_me:15140: \$? = $ac_status" >&5
15141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15142    then
15143      # The compiler can only warn and ignore the option if not recognized
15144      # So say no if there are warnings
15145      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15146      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15147      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15148        lt_cv_prog_compiler_c_o=yes
15149      fi
15150    fi
15151    chmod u+w . 2>&5
15152    $rm conftest*
15153    # SGI C++ compiler will create directory out/ii_files/ for
15154    # template instantiation
15155    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15156    $rm out/* && rmdir out
15157    cd ..
15158    rmdir conftest
15159    $rm conftest*
15160
15161 fi
15162 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15163 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15164
15165
15166 hard_links="nottested"
15167 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15168   # do not overwrite the value of need_locks provided by the user
15169   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15170 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15171   hard_links=yes
15172   $rm conftest*
15173   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15174   touch conftest.a
15175   ln conftest.a conftest.b 2>&5 || hard_links=no
15176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177   { echo "$as_me:$LINENO: result: $hard_links" >&5
15178 echo "${ECHO_T}$hard_links" >&6; }
15179   if test "$hard_links" = no; then
15180     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15181 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15182     need_locks=warn
15183   fi
15184 else
15185   need_locks=no
15186 fi
15187
15188 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15189 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15190
15191   runpath_var=
15192   allow_undefined_flag=
15193   enable_shared_with_static_runtimes=no
15194   archive_cmds=
15195   archive_expsym_cmds=
15196   old_archive_From_new_cmds=
15197   old_archive_from_expsyms_cmds=
15198   export_dynamic_flag_spec=
15199   whole_archive_flag_spec=
15200   thread_safe_flag_spec=
15201   hardcode_libdir_flag_spec=
15202   hardcode_libdir_flag_spec_ld=
15203   hardcode_libdir_separator=
15204   hardcode_direct=no
15205   hardcode_minus_L=no
15206   hardcode_shlibpath_var=unsupported
15207   link_all_deplibs=unknown
15208   hardcode_automatic=no
15209   module_cmds=
15210   module_expsym_cmds=
15211   always_export_symbols=no
15212   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15213   # include_expsyms should be a list of space-separated symbols to be *always*
15214   # included in the symbol list
15215   include_expsyms=
15216   # exclude_expsyms can be an extended regexp of symbols to exclude
15217   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15218   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15219   # as well as any symbol that contains `d'.
15220   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15221   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15222   # platforms (ab)use it in PIC code, but their linkers get confused if
15223   # the symbol is explicitly referenced.  Since portable code cannot
15224   # rely on this symbol name, it's probably fine to never include it in
15225   # preloaded symbol tables.
15226   extract_expsyms_cmds=
15227   # Just being paranoid about ensuring that cc_basename is set.
15228   for cc_temp in $compiler""; do
15229   case $cc_temp in
15230     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15231     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15232     \-*) ;;
15233     *) break;;
15234   esac
15235 done
15236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15237
15238   case $host_os in
15239   cygwin* | mingw* | pw32*)
15240     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15241     # When not using gcc, we currently assume that we are using
15242     # Microsoft Visual C++.
15243     if test "$GCC" != yes; then
15244       with_gnu_ld=no
15245     fi
15246     ;;
15247   interix*)
15248     # we just hope/assume this is gcc and not c89 (= MSVC++)
15249     with_gnu_ld=yes
15250     ;;
15251   openbsd*)
15252     with_gnu_ld=no
15253     ;;
15254   esac
15255
15256   ld_shlibs=yes
15257   if test "$with_gnu_ld" = yes; then
15258     # If archive_cmds runs LD, not CC, wlarc should be empty
15259     wlarc='${wl}'
15260
15261     # Set some defaults for GNU ld with shared library support. These
15262     # are reset later if shared libraries are not supported. Putting them
15263     # here allows them to be overridden if necessary.
15264     runpath_var=LD_RUN_PATH
15265     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15266     export_dynamic_flag_spec='${wl}--export-dynamic'
15267     # ancient GNU ld didn't support --whole-archive et. al.
15268     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15269         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15270       else
15271         whole_archive_flag_spec=
15272     fi
15273     supports_anon_versioning=no
15274     case `$LD -v 2>/dev/null` in
15275       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15276       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15277       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15278       *\ 2.11.*) ;; # other 2.11 versions
15279       *) supports_anon_versioning=yes ;;
15280     esac
15281
15282     # See if GNU ld supports shared libraries.
15283     case $host_os in
15284     aix3* | aix4* | aix5*)
15285       # On AIX/PPC, the GNU linker is very broken
15286       if test "$host_cpu" != ia64; then
15287         ld_shlibs=no
15288         cat <<EOF 1>&2
15289
15290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15291 *** to be unable to reliably create shared libraries on AIX.
15292 *** Therefore, libtool is disabling shared libraries support.  If you
15293 *** really care for shared libraries, you may want to modify your PATH
15294 *** so that a non-GNU linker is found, and then restart.
15295
15296 EOF
15297       fi
15298       ;;
15299
15300     amigaos*)
15301       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)'
15302       hardcode_libdir_flag_spec='-L$libdir'
15303       hardcode_minus_L=yes
15304
15305       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15306       # that the semantics of dynamic libraries on AmigaOS, at least up
15307       # to version 4, is to share data among multiple programs linked
15308       # with the same dynamic library.  Since this doesn't match the
15309       # behavior of shared libraries on other platforms, we can't use
15310       # them.
15311       ld_shlibs=no
15312       ;;
15313
15314     beos*)
15315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15316         allow_undefined_flag=unsupported
15317         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15318         # support --undefined.  This deserves some investigation.  FIXME
15319         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15320       else
15321         ld_shlibs=no
15322       fi
15323       ;;
15324
15325     cygwin* | mingw* | pw32*)
15326       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15327       # as there is no search path for DLLs.
15328       hardcode_libdir_flag_spec='-L$libdir'
15329       allow_undefined_flag=unsupported
15330       always_export_symbols=no
15331       enable_shared_with_static_runtimes=yes
15332       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15333
15334       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15336         # If the export-symbols file already is a .def file (1st line
15337         # is EXPORTS), use it as is; otherwise, prepend...
15338         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15339           cp $export_symbols $output_objdir/$soname.def;
15340         else
15341           echo EXPORTS > $output_objdir/$soname.def;
15342           cat $export_symbols >> $output_objdir/$soname.def;
15343         fi~
15344         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15345       else
15346         ld_shlibs=no
15347       fi
15348       ;;
15349
15350     interix3*)
15351       hardcode_direct=no
15352       hardcode_shlibpath_var=no
15353       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15354       export_dynamic_flag_spec='${wl}-E'
15355       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15356       # Instead, shared libraries are loaded at an image base (0x10000000 by
15357       # default) and relocated if they conflict, which is a slow very memory
15358       # consuming and fragmenting process.  To avoid this, we pick a random,
15359       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15360       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15361       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15362       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'
15363       ;;
15364
15365     linux*)
15366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15367         tmp_addflag=
15368         case $cc_basename,$host_cpu in
15369         pgcc*)                          # Portland Group C compiler
15370           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'
15371           tmp_addflag=' $pic_flag'
15372           ;;
15373         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15374           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'
15375           tmp_addflag=' $pic_flag -Mnomain' ;;
15376         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15377           tmp_addflag=' -i_dynamic' ;;
15378         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15379           tmp_addflag=' -i_dynamic -nofor_main' ;;
15380         ifc* | ifort*)                  # Intel Fortran compiler
15381           tmp_addflag=' -nofor_main' ;;
15382         esac
15383         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384
15385         if test $supports_anon_versioning = yes; then
15386           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15387   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15388   $echo "local: *; };" >> $output_objdir/$libname.ver~
15389           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15390         fi
15391       else
15392         ld_shlibs=no
15393       fi
15394       ;;
15395
15396     netbsd*)
15397       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15398         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15399         wlarc=
15400       else
15401         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15402         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15403       fi
15404       ;;
15405
15406     solaris*)
15407       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15408         ld_shlibs=no
15409         cat <<EOF 1>&2
15410
15411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15412 *** create shared libraries on Solaris systems.  Therefore, libtool
15413 *** is disabling shared libraries support.  We urge you to upgrade GNU
15414 *** binutils to release 2.9.1 or newer.  Another option is to modify
15415 *** your PATH or compiler configuration so that the native linker is
15416 *** used, and then restart.
15417
15418 EOF
15419       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15420         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15421         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15422       else
15423         ld_shlibs=no
15424       fi
15425       ;;
15426
15427     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15428       case `$LD -v 2>&1` in
15429         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15430         ld_shlibs=no
15431         cat <<_LT_EOF 1>&2
15432
15433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15434 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15435 *** is disabling shared libraries support.  We urge you to upgrade GNU
15436 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15437 *** your PATH or compiler configuration so that the native linker is
15438 *** used, and then restart.
15439
15440 _LT_EOF
15441         ;;
15442         *)
15443           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15444             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15445             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15446             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15447           else
15448             ld_shlibs=no
15449           fi
15450         ;;
15451       esac
15452       ;;
15453
15454     sunos4*)
15455       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15456       wlarc=
15457       hardcode_direct=yes
15458       hardcode_shlibpath_var=no
15459       ;;
15460
15461     *)
15462       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15463         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15464         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15465       else
15466         ld_shlibs=no
15467       fi
15468       ;;
15469     esac
15470
15471     if test "$ld_shlibs" = no; then
15472       runpath_var=
15473       hardcode_libdir_flag_spec=
15474       export_dynamic_flag_spec=
15475       whole_archive_flag_spec=
15476     fi
15477   else
15478     # PORTME fill in a description of your system's linker (not GNU ld)
15479     case $host_os in
15480     aix3*)
15481       allow_undefined_flag=unsupported
15482       always_export_symbols=yes
15483       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'
15484       # Note: this linker hardcodes the directories in LIBPATH if there
15485       # are no directories specified by -L.
15486       hardcode_minus_L=yes
15487       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15488         # Neither direct hardcoding nor static linking is supported with a
15489         # broken collect2.
15490         hardcode_direct=unsupported
15491       fi
15492       ;;
15493
15494     aix4* | aix5*)
15495       if test "$host_cpu" = ia64; then
15496         # On IA64, the linker does run time linking by default, so we don't
15497         # have to do anything special.
15498         aix_use_runtimelinking=no
15499         exp_sym_flag='-Bexport'
15500         no_entry_flag=""
15501       else
15502         # If we're using GNU nm, then we don't want the "-C" option.
15503         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15504         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15505           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'
15506         else
15507           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'
15508         fi
15509         aix_use_runtimelinking=no
15510
15511         # Test if we are trying to use run time linking or normal
15512         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15513         # need to do runtime linking.
15514         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15515           for ld_flag in $LDFLAGS; do
15516           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15517             aix_use_runtimelinking=yes
15518             break
15519           fi
15520           done
15521           ;;
15522         esac
15523
15524         exp_sym_flag='-bexport'
15525         no_entry_flag='-bnoentry'
15526       fi
15527
15528       # When large executables or shared objects are built, AIX ld can
15529       # have problems creating the table of contents.  If linking a library
15530       # or program results in "error TOC overflow" add -mminimal-toc to
15531       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15532       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15533
15534       archive_cmds=''
15535       hardcode_direct=yes
15536       hardcode_libdir_separator=':'
15537       link_all_deplibs=yes
15538
15539       if test "$GCC" = yes; then
15540         case $host_os in aix4.[012]|aix4.[012].*)
15541         # We only want to do this on AIX 4.2 and lower, the check
15542         # below for broken collect2 doesn't work under 4.3+
15543           collect2name=`${CC} -print-prog-name=collect2`
15544           if test -f "$collect2name" && \
15545            strings "$collect2name" | grep resolve_lib_name >/dev/null
15546           then
15547           # We have reworked collect2
15548           hardcode_direct=yes
15549           else
15550           # We have old collect2
15551           hardcode_direct=unsupported
15552           # It fails to find uninstalled libraries when the uninstalled
15553           # path is not listed in the libpath.  Setting hardcode_minus_L
15554           # to unsupported forces relinking
15555           hardcode_minus_L=yes
15556           hardcode_libdir_flag_spec='-L$libdir'
15557           hardcode_libdir_separator=
15558           fi
15559           ;;
15560         esac
15561         shared_flag='-shared'
15562         if test "$aix_use_runtimelinking" = yes; then
15563           shared_flag="$shared_flag "'${wl}-G'
15564         fi
15565       else
15566         # not using gcc
15567         if test "$host_cpu" = ia64; then
15568         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15569         # chokes on -Wl,-G. The following line is correct:
15570           shared_flag='-G'
15571         else
15572           if test "$aix_use_runtimelinking" = yes; then
15573             shared_flag='${wl}-G'
15574           else
15575             shared_flag='${wl}-bM:SRE'
15576           fi
15577         fi
15578       fi
15579
15580       # It seems that -bexpall does not export symbols beginning with
15581       # underscore (_), so it is better to generate a list of symbols to export.
15582       always_export_symbols=yes
15583       if test "$aix_use_runtimelinking" = yes; then
15584         # Warning - without using the other runtime loading flags (-brtl),
15585         # -berok will link without error, but may produce a broken library.
15586         allow_undefined_flag='-berok'
15587        # Determine the default libpath from the value encoded in an empty executable.
15588        cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h.  */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h.  */
15594
15595 int
15596 main ()
15597 {
15598
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610   (eval "$ac_link") 2>conftest.er1
15611   ac_status=$?
15612   grep -v '^ *+' conftest.er1 >conftest.err
15613   rm -f conftest.er1
15614   cat conftest.err >&5
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); } &&
15617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15618   { (case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_try") 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest$ac_exeext'
15628   { (case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633   (eval "$ac_try") 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637
15638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15639 }'`
15640 # Check for a 64-bit object if we didn't find anything.
15641 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; }
15642 }'`; fi
15643 else
15644   echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647
15648 fi
15649
15650 rm -f core conftest.err conftest.$ac_objext \
15651       conftest$ac_exeext conftest.$ac_ext
15652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15653
15654        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15655         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"
15656        else
15657         if test "$host_cpu" = ia64; then
15658           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15659           allow_undefined_flag="-z nodefs"
15660           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"
15661         else
15662          # Determine the default libpath from the value encoded in an empty executable.
15663          cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669
15670 int
15671 main ()
15672 {
15673
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (ac_try="$ac_link"
15680 case "(($ac_try" in
15681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682   *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685   (eval "$ac_link") 2>conftest.er1
15686   ac_status=$?
15687   grep -v '^ *+' conftest.er1 >conftest.err
15688   rm -f conftest.er1
15689   cat conftest.err >&5
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); } &&
15692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15693   { (case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_try") 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; } &&
15702          { ac_try='test -s conftest$ac_exeext'
15703   { (case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_try") 2>&5
15709   ac_status=$?
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); }; }; then
15712
15713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15714 }'`
15715 # Check for a 64-bit object if we didn't find anything.
15716 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; }
15717 }'`; fi
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext \
15726       conftest$ac_exeext conftest.$ac_ext
15727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15728
15729          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15730           # Warning - without using the other run time loading flags,
15731           # -berok will link without error, but may produce a broken library.
15732           no_undefined_flag=' ${wl}-bernotok'
15733           allow_undefined_flag=' ${wl}-berok'
15734           # Exported symbols can be pulled into shared objects from archives
15735           whole_archive_flag_spec='$convenience'
15736           archive_cmds_need_lc=yes
15737           # This is similar to how AIX traditionally builds its shared libraries.
15738           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'
15739         fi
15740       fi
15741       ;;
15742
15743     amigaos*)
15744       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)'
15745       hardcode_libdir_flag_spec='-L$libdir'
15746       hardcode_minus_L=yes
15747       # see comment about different semantics on the GNU ld section
15748       ld_shlibs=no
15749       ;;
15750
15751     bsdi[45]*)
15752       export_dynamic_flag_spec=-rdynamic
15753       ;;
15754
15755     cygwin* | mingw* | pw32*)
15756       # When not using gcc, we currently assume that we are using
15757       # Microsoft Visual C++.
15758       # hardcode_libdir_flag_spec is actually meaningless, as there is
15759       # no search path for DLLs.
15760       hardcode_libdir_flag_spec=' '
15761       allow_undefined_flag=unsupported
15762       # Tell ltmain to make .lib files, not .a files.
15763       libext=lib
15764       # Tell ltmain to make .dll files, not .so files.
15765       shrext_cmds=".dll"
15766       # FIXME: Setting linknames here is a bad hack.
15767       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15768       # The linker will automatically build a .lib file if we build a DLL.
15769       old_archive_From_new_cmds='true'
15770       # FIXME: Should let the user specify the lib program.
15771       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15772       fix_srcfile_path='`cygpath -w "$srcfile"`'
15773       enable_shared_with_static_runtimes=yes
15774       ;;
15775
15776     darwin* | rhapsody*)
15777       case $host_os in
15778         rhapsody* | darwin1.[012])
15779          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15780          ;;
15781        *) # Darwin 1.3 on
15782          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15783            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15784          else
15785            case ${MACOSX_DEPLOYMENT_TARGET} in
15786              10.[012])
15787                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15788                ;;
15789              10.*)
15790                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15791                ;;
15792            esac
15793          fi
15794          ;;
15795       esac
15796       archive_cmds_need_lc=no
15797       hardcode_direct=no
15798       hardcode_automatic=yes
15799       hardcode_shlibpath_var=unsupported
15800       whole_archive_flag_spec=''
15801       link_all_deplibs=yes
15802     if test "$GCC" = yes ; then
15803         output_verbose_link_cmd='echo'
15804         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15805       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15806       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15807       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}'
15808       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}'
15809     else
15810       case $cc_basename in
15811         xlc*)
15812          output_verbose_link_cmd='echo'
15813          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15814          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15815           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15816          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}'
15817           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}'
15818           ;;
15819        *)
15820          ld_shlibs=no
15821           ;;
15822       esac
15823     fi
15824       ;;
15825
15826     dgux*)
15827       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15828       hardcode_libdir_flag_spec='-L$libdir'
15829       hardcode_shlibpath_var=no
15830       ;;
15831
15832     freebsd1*)
15833       ld_shlibs=no
15834       ;;
15835
15836     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15837     # support.  Future versions do this automatically, but an explicit c++rt0.o
15838     # does not break anything, and helps significantly (at the cost of a little
15839     # extra space).
15840     freebsd2.2*)
15841       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15842       hardcode_libdir_flag_spec='-R$libdir'
15843       hardcode_direct=yes
15844       hardcode_shlibpath_var=no
15845       ;;
15846
15847     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15848     freebsd2*)
15849       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15850       hardcode_direct=yes
15851       hardcode_minus_L=yes
15852       hardcode_shlibpath_var=no
15853       ;;
15854
15855     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15856     freebsd* | kfreebsd*-gnu | dragonfly*)
15857       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15858       hardcode_libdir_flag_spec='-R$libdir'
15859       hardcode_direct=yes
15860       hardcode_shlibpath_var=no
15861       ;;
15862
15863     hpux9*)
15864       if test "$GCC" = yes; then
15865         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'
15866       else
15867         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'
15868       fi
15869       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15870       hardcode_libdir_separator=:
15871       hardcode_direct=yes
15872
15873       # hardcode_minus_L: Not really in the search PATH,
15874       # but as the default location of the library.
15875       hardcode_minus_L=yes
15876       export_dynamic_flag_spec='${wl}-E'
15877       ;;
15878
15879     hpux10*)
15880       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15881         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15882       else
15883         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15884       fi
15885       if test "$with_gnu_ld" = no; then
15886         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15887         hardcode_libdir_separator=:
15888
15889         hardcode_direct=yes
15890         export_dynamic_flag_spec='${wl}-E'
15891
15892         # hardcode_minus_L: Not really in the search PATH,
15893         # but as the default location of the library.
15894         hardcode_minus_L=yes
15895       fi
15896       ;;
15897
15898     hpux11*)
15899       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15900         case $host_cpu in
15901         hppa*64*)
15902           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903           ;;
15904         ia64*)
15905           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15906           ;;
15907         *)
15908           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15909           ;;
15910         esac
15911       else
15912         case $host_cpu in
15913         hppa*64*)
15914           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15915           ;;
15916         ia64*)
15917           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15918           ;;
15919         *)
15920           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15921           ;;
15922         esac
15923       fi
15924       if test "$with_gnu_ld" = no; then
15925         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15926         hardcode_libdir_separator=:
15927
15928         case $host_cpu in
15929         hppa*64*|ia64*)
15930           hardcode_libdir_flag_spec_ld='+b $libdir'
15931           hardcode_direct=no
15932           hardcode_shlibpath_var=no
15933           ;;
15934         *)
15935           hardcode_direct=yes
15936           export_dynamic_flag_spec='${wl}-E'
15937
15938           # hardcode_minus_L: Not really in the search PATH,
15939           # but as the default location of the library.
15940           hardcode_minus_L=yes
15941           ;;
15942         esac
15943       fi
15944       ;;
15945
15946     irix5* | irix6* | nonstopux*)
15947       if test "$GCC" = yes; then
15948         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'
15949       else
15950         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'
15951         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15952       fi
15953       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15954       hardcode_libdir_separator=:
15955       link_all_deplibs=yes
15956       ;;
15957
15958     netbsd*)
15959       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15960         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15961       else
15962         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15963       fi
15964       hardcode_libdir_flag_spec='-R$libdir'
15965       hardcode_direct=yes
15966       hardcode_shlibpath_var=no
15967       ;;
15968
15969     newsos6)
15970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15971       hardcode_direct=yes
15972       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15973       hardcode_libdir_separator=:
15974       hardcode_shlibpath_var=no
15975       ;;
15976
15977     openbsd*)
15978       hardcode_direct=yes
15979       hardcode_shlibpath_var=no
15980       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15981         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15982         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15983         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15984         export_dynamic_flag_spec='${wl}-E'
15985       else
15986        case $host_os in
15987          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15988            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15989            hardcode_libdir_flag_spec='-R$libdir'
15990            ;;
15991          *)
15992            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15993            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15994            ;;
15995        esac
15996       fi
15997       ;;
15998
15999     os2*)
16000       hardcode_libdir_flag_spec='-L$libdir'
16001       hardcode_minus_L=yes
16002       allow_undefined_flag=unsupported
16003       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'
16004       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16005       ;;
16006
16007     osf3*)
16008       if test "$GCC" = yes; then
16009         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16010         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'
16011       else
16012         allow_undefined_flag=' -expect_unresolved \*'
16013         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'
16014       fi
16015       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16016       hardcode_libdir_separator=:
16017       ;;
16018
16019     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16020       if test "$GCC" = yes; then
16021         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16022         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'
16023         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16024       else
16025         allow_undefined_flag=' -expect_unresolved \*'
16026         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'
16027         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16028         $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'
16029
16030         # Both c and cxx compiler support -rpath directly
16031         hardcode_libdir_flag_spec='-rpath $libdir'
16032       fi
16033       hardcode_libdir_separator=:
16034       ;;
16035
16036     solaris*)
16037       no_undefined_flag=' -z text'
16038       if test "$GCC" = yes; then
16039         wlarc='${wl}'
16040         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16041         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16042           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16043       else
16044         wlarc=''
16045         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16048       fi
16049       hardcode_libdir_flag_spec='-R$libdir'
16050       hardcode_shlibpath_var=no
16051       case $host_os in
16052       solaris2.[0-5] | solaris2.[0-5].*) ;;
16053       *)
16054         # The compiler driver will combine linker options so we
16055         # cannot just pass the convience library names through
16056         # without $wl, iff we do not link with $LD.
16057         # Luckily, gcc supports the same syntax we need for Sun Studio.
16058         # Supported since Solaris 2.6 (maybe 2.5.1?)
16059         case $wlarc in
16060         '')
16061           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16062         *)
16063           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' ;;
16064         esac ;;
16065       esac
16066       link_all_deplibs=yes
16067       ;;
16068
16069     sunos4*)
16070       if test "x$host_vendor" = xsequent; then
16071         # Use $CC to link under sequent, because it throws in some extra .o
16072         # files that make .init and .fini sections work.
16073         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16074       else
16075         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16076       fi
16077       hardcode_libdir_flag_spec='-L$libdir'
16078       hardcode_direct=yes
16079       hardcode_minus_L=yes
16080       hardcode_shlibpath_var=no
16081       ;;
16082
16083     sysv4)
16084       case $host_vendor in
16085         sni)
16086           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087           hardcode_direct=yes # is this really true???
16088         ;;
16089         siemens)
16090           ## LD is ld it makes a PLAMLIB
16091           ## CC just makes a GrossModule.
16092           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093           reload_cmds='$CC -r -o $output$reload_objs'
16094           hardcode_direct=no
16095         ;;
16096         motorola)
16097           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16099         ;;
16100       esac
16101       runpath_var='LD_RUN_PATH'
16102       hardcode_shlibpath_var=no
16103       ;;
16104
16105     sysv4.3*)
16106       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107       hardcode_shlibpath_var=no
16108       export_dynamic_flag_spec='-Bexport'
16109       ;;
16110
16111     sysv4*MP*)
16112       if test -d /usr/nec; then
16113         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114         hardcode_shlibpath_var=no
16115         runpath_var=LD_RUN_PATH
16116         hardcode_runpath_var=yes
16117         ld_shlibs=yes
16118       fi
16119       ;;
16120
16121     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16122       no_undefined_flag='${wl}-z,text'
16123       archive_cmds_need_lc=no
16124       hardcode_shlibpath_var=no
16125       runpath_var='LD_RUN_PATH'
16126
16127       if test "$GCC" = yes; then
16128         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16130       else
16131         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16133       fi
16134       ;;
16135
16136     sysv5* | sco3.2v5* | sco5v6*)
16137       # Note: We can NOT use -z defs as we might desire, because we do not
16138       # link with -lc, and that would cause any symbols used from libc to
16139       # always be unresolved, which means just about no library would
16140       # ever link correctly.  If we're not using GNU ld we use -z text
16141       # though, which does catch some bad symbols but isn't as heavy-handed
16142       # as -z defs.
16143       no_undefined_flag='${wl}-z,text'
16144       allow_undefined_flag='${wl}-z,nodefs'
16145       archive_cmds_need_lc=no
16146       hardcode_shlibpath_var=no
16147       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16148       hardcode_libdir_separator=':'
16149       link_all_deplibs=yes
16150       export_dynamic_flag_spec='${wl}-Bexport'
16151       runpath_var='LD_RUN_PATH'
16152
16153       if test "$GCC" = yes; then
16154         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16155         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16156       else
16157         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159       fi
16160       ;;
16161
16162     uts4*)
16163       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164       hardcode_libdir_flag_spec='-L$libdir'
16165       hardcode_shlibpath_var=no
16166       ;;
16167
16168     *)
16169       ld_shlibs=no
16170       ;;
16171     esac
16172   fi
16173
16174 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16175 echo "${ECHO_T}$ld_shlibs" >&6; }
16176 test "$ld_shlibs" = no && can_build_shared=no
16177
16178 #
16179 # Do we need to explicitly link libc?
16180 #
16181 case "x$archive_cmds_need_lc" in
16182 x|xyes)
16183   # Assume -lc should be added
16184   archive_cmds_need_lc=yes
16185
16186   if test "$enable_shared" = yes && test "$GCC" = yes; then
16187     case $archive_cmds in
16188     *'~'*)
16189       # FIXME: we may have to deal with multi-command sequences.
16190       ;;
16191     '$CC '*)
16192       # Test whether the compiler implicitly links with -lc since on some
16193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16194       # to ld, don't add -lc before -lgcc.
16195       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16197       $rm conftest*
16198       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16199
16200       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201   (eval $ac_compile) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } 2>conftest.err; then
16205         soname=conftest
16206         lib=conftest
16207         libobjs=conftest.$ac_objext
16208         deplibs=
16209         wl=$lt_prog_compiler_wl
16210         pic_flag=$lt_prog_compiler_pic
16211         compiler_flags=-v
16212         linker_flags=-v
16213         verstring=
16214         output_objdir=.
16215         libname=conftest
16216         lt_save_allow_undefined_flag=$allow_undefined_flag
16217         allow_undefined_flag=
16218         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16219   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); }
16223         then
16224           archive_cmds_need_lc=no
16225         else
16226           archive_cmds_need_lc=yes
16227         fi
16228         allow_undefined_flag=$lt_save_allow_undefined_flag
16229       else
16230         cat conftest.err 1>&5
16231       fi
16232       $rm conftest*
16233       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16234 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16235       ;;
16236     esac
16237   fi
16238   ;;
16239 esac
16240
16241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16243 library_names_spec=
16244 libname_spec='lib$name'
16245 soname_spec=
16246 shrext_cmds=".so"
16247 postinstall_cmds=
16248 postuninstall_cmds=
16249 finish_cmds=
16250 finish_eval=
16251 shlibpath_var=
16252 shlibpath_overrides_runpath=unknown
16253 version_type=none
16254 dynamic_linker="$host_os ld.so"
16255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16256 if test "$GCC" = yes; then
16257   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16258   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16259     # if the path contains ";" then we assume it to be the separator
16260     # otherwise default to the standard path separator (i.e. ":") - it is
16261     # assumed that no part of a normal pathname contains ";" but that should
16262     # okay in the real world where ";" in dirpaths is itself problematic.
16263     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16264   else
16265     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16266   fi
16267 else
16268   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16269 fi
16270 need_lib_prefix=unknown
16271 hardcode_into_libs=no
16272
16273 # when you set need_version to no, make sure it does not cause -set_version
16274 # flags to be left without arguments
16275 need_version=unknown
16276
16277 case $host_os in
16278 aix3*)
16279   version_type=linux
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16281   shlibpath_var=LIBPATH
16282
16283   # AIX 3 has no versioning support, so we append a major version to the name.
16284   soname_spec='${libname}${release}${shared_ext}$major'
16285   ;;
16286
16287 aix4* | aix5*)
16288   version_type=linux
16289   need_lib_prefix=no
16290   need_version=no
16291   hardcode_into_libs=yes
16292   if test "$host_cpu" = ia64; then
16293     # AIX 5 supports IA64
16294     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16295     shlibpath_var=LD_LIBRARY_PATH
16296   else
16297     # With GCC up to 2.95.x, collect2 would create an import file
16298     # for dependence libraries.  The import file would start with
16299     # the line `#! .'.  This would cause the generated library to
16300     # depend on `.', always an invalid library.  This was fixed in
16301     # development snapshots of GCC prior to 3.0.
16302     case $host_os in
16303       aix4 | aix4.[01] | aix4.[01].*)
16304       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16305            echo ' yes '
16306            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16307         :
16308       else
16309         can_build_shared=no
16310       fi
16311       ;;
16312     esac
16313     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16314     # soname into executable. Probably we can add versioning support to
16315     # collect2, so additional links can be useful in future.
16316     if test "$aix_use_runtimelinking" = yes; then
16317       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16318       # instead of lib<name>.a to let people know that these are not
16319       # typical AIX shared libraries.
16320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321     else
16322       # We preserve .a as extension for shared libraries through AIX4.2
16323       # and later when we are not doing run time linking.
16324       library_names_spec='${libname}${release}.a $libname.a'
16325       soname_spec='${libname}${release}${shared_ext}$major'
16326     fi
16327     shlibpath_var=LIBPATH
16328   fi
16329   ;;
16330
16331 amigaos*)
16332   library_names_spec='$libname.ixlibrary $libname.a'
16333   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16334   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'
16335   ;;
16336
16337 beos*)
16338   library_names_spec='${libname}${shared_ext}'
16339   dynamic_linker="$host_os ld.so"
16340   shlibpath_var=LIBRARY_PATH
16341   ;;
16342
16343 bsdi[45]*)
16344   version_type=linux
16345   need_version=no
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347   soname_spec='${libname}${release}${shared_ext}$major'
16348   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16349   shlibpath_var=LD_LIBRARY_PATH
16350   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16351   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16352   # the default ld.so.conf also contains /usr/contrib/lib and
16353   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16354   # libtool to hard-code these into programs
16355   ;;
16356
16357 cygwin* | mingw* | pw32*)
16358   version_type=windows
16359   shrext_cmds=".dll"
16360   need_version=no
16361   need_lib_prefix=no
16362
16363   case $GCC,$host_os in
16364   yes,cygwin* | yes,mingw* | yes,pw32*)
16365     library_names_spec='$libname.dll.a'
16366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16367     postinstall_cmds='base_file=`basename \${file}`~
16368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16369       dldir=$destdir/`dirname \$dlpath`~
16370       test -d \$dldir || mkdir -p \$dldir~
16371       $install_prog $dir/$dlname \$dldir/$dlname~
16372       chmod a+x \$dldir/$dlname'
16373     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16374       dlpath=$dir/\$dldll~
16375        $rm \$dlpath'
16376     shlibpath_overrides_runpath=yes
16377
16378     case $host_os in
16379     cygwin*)
16380       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16381       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16382       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16383       ;;
16384     mingw*)
16385       # MinGW DLLs use traditional 'lib' prefix
16386       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16387       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16388       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16389         # It is most probably a Windows format PATH printed by
16390         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16391         # path with ; separators, and with drive letters. We can handle the
16392         # drive letters (cygwin fileutils understands them), so leave them,
16393         # especially as we might pass files found there to a mingw objdump,
16394         # which wouldn't understand a cygwinified path. Ahh.
16395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16396       else
16397         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16398       fi
16399       ;;
16400     pw32*)
16401       # pw32 DLLs use 'pw' prefix rather than 'lib'
16402       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16403       ;;
16404     esac
16405     ;;
16406
16407   *)
16408     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16409     ;;
16410   esac
16411   dynamic_linker='Win32 ld.exe'
16412   # FIXME: first we should search . and the directory the executable is in
16413   shlibpath_var=PATH
16414   ;;
16415
16416 darwin* | rhapsody*)
16417   dynamic_linker="$host_os dyld"
16418   version_type=darwin
16419   need_lib_prefix=no
16420   need_version=no
16421   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16422   soname_spec='${libname}${release}${major}$shared_ext'
16423   shlibpath_overrides_runpath=yes
16424   shlibpath_var=DYLD_LIBRARY_PATH
16425   shrext_cmds='.dylib'
16426   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16427   if test "$GCC" = yes; then
16428     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"`
16429   else
16430     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16431   fi
16432   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16433   ;;
16434
16435 dgux*)
16436   version_type=linux
16437   need_lib_prefix=no
16438   need_version=no
16439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16440   soname_spec='${libname}${release}${shared_ext}$major'
16441   shlibpath_var=LD_LIBRARY_PATH
16442   ;;
16443
16444 freebsd1*)
16445   dynamic_linker=no
16446   ;;
16447
16448 kfreebsd*-gnu)
16449   version_type=linux
16450   need_lib_prefix=no
16451   need_version=no
16452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16453   soname_spec='${libname}${release}${shared_ext}$major'
16454   shlibpath_var=LD_LIBRARY_PATH
16455   shlibpath_overrides_runpath=no
16456   hardcode_into_libs=yes
16457   dynamic_linker='GNU ld.so'
16458   ;;
16459
16460 freebsd* | dragonfly*)
16461   # DragonFly does not have aout.  When/if they implement a new
16462   # versioning mechanism, adjust this.
16463   if test -x /usr/bin/objformat; then
16464     objformat=`/usr/bin/objformat`
16465   else
16466     case $host_os in
16467     freebsd[123]*) objformat=aout ;;
16468     *) objformat=elf ;;
16469     esac
16470   fi
16471   version_type=freebsd-$objformat
16472   case $version_type in
16473     freebsd-elf*)
16474       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16475       need_version=no
16476       need_lib_prefix=no
16477       ;;
16478     freebsd-*)
16479       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16480       need_version=yes
16481       ;;
16482   esac
16483   shlibpath_var=LD_LIBRARY_PATH
16484   case $host_os in
16485   freebsd2*)
16486     shlibpath_overrides_runpath=yes
16487     ;;
16488   freebsd3.[01]* | freebsdelf3.[01]*)
16489     shlibpath_overrides_runpath=yes
16490     hardcode_into_libs=yes
16491     ;;
16492   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16493   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16494     shlibpath_overrides_runpath=no
16495     hardcode_into_libs=yes
16496     ;;
16497   freebsd*) # from 4.6 on
16498     shlibpath_overrides_runpath=yes
16499     hardcode_into_libs=yes
16500     ;;
16501   esac
16502   ;;
16503
16504 gnu*)
16505   version_type=linux
16506   need_lib_prefix=no
16507   need_version=no
16508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16509   soname_spec='${libname}${release}${shared_ext}$major'
16510   shlibpath_var=LD_LIBRARY_PATH
16511   hardcode_into_libs=yes
16512   ;;
16513
16514 hpux9* | hpux10* | hpux11*)
16515   # Give a soname corresponding to the major version so that dld.sl refuses to
16516   # link against other versions.
16517   version_type=sunos
16518   need_lib_prefix=no
16519   need_version=no
16520   case $host_cpu in
16521   ia64*)
16522     shrext_cmds='.so'
16523     hardcode_into_libs=yes
16524     dynamic_linker="$host_os dld.so"
16525     shlibpath_var=LD_LIBRARY_PATH
16526     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528     soname_spec='${libname}${release}${shared_ext}$major'
16529     if test "X$HPUX_IA64_MODE" = X32; then
16530       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16531     else
16532       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16533     fi
16534     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16535     ;;
16536    hppa*64*)
16537      shrext_cmds='.sl'
16538      hardcode_into_libs=yes
16539      dynamic_linker="$host_os dld.sl"
16540      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16541      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16542      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543      soname_spec='${libname}${release}${shared_ext}$major'
16544      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16545      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16546      ;;
16547    *)
16548     shrext_cmds='.sl'
16549     dynamic_linker="$host_os dld.sl"
16550     shlibpath_var=SHLIB_PATH
16551     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553     soname_spec='${libname}${release}${shared_ext}$major'
16554     ;;
16555   esac
16556   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16557   postinstall_cmds='chmod 555 $lib'
16558   ;;
16559
16560 interix3*)
16561   version_type=linux
16562   need_lib_prefix=no
16563   need_version=no
16564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16565   soname_spec='${libname}${release}${shared_ext}$major'
16566   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   shlibpath_overrides_runpath=no
16569   hardcode_into_libs=yes
16570   ;;
16571
16572 irix5* | irix6* | nonstopux*)
16573   case $host_os in
16574     nonstopux*) version_type=nonstopux ;;
16575     *)
16576         if test "$lt_cv_prog_gnu_ld" = yes; then
16577                 version_type=linux
16578         else
16579                 version_type=irix
16580         fi ;;
16581   esac
16582   need_lib_prefix=no
16583   need_version=no
16584   soname_spec='${libname}${release}${shared_ext}$major'
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16586   case $host_os in
16587   irix5* | nonstopux*)
16588     libsuff= shlibsuff=
16589     ;;
16590   *)
16591     case $LD in # libtool.m4 will add one of these switches to LD
16592     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16593       libsuff= shlibsuff= libmagic=32-bit;;
16594     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16595       libsuff=32 shlibsuff=N32 libmagic=N32;;
16596     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16597       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16598     *) libsuff= shlibsuff= libmagic=never-match;;
16599     esac
16600     ;;
16601   esac
16602   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16603   shlibpath_overrides_runpath=no
16604   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16605   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16606   hardcode_into_libs=yes
16607   ;;
16608
16609 # No shared lib support for Linux oldld, aout, or coff.
16610 linux*oldld* | linux*aout* | linux*coff*)
16611   dynamic_linker=no
16612   ;;
16613
16614 # This must be Linux ELF.
16615 linux*)
16616   version_type=linux
16617   need_lib_prefix=no
16618   need_version=no
16619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620   soname_spec='${libname}${release}${shared_ext}$major'
16621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16622   shlibpath_var=LD_LIBRARY_PATH
16623   shlibpath_overrides_runpath=no
16624   # This implies no fast_install, which is unacceptable.
16625   # Some rework will be needed to allow for fast_install
16626   # before this can be enabled.
16627   hardcode_into_libs=yes
16628
16629   # Append ld.so.conf contents to the search path
16630   if test -f /etc/ld.so.conf; then
16631     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' ' '`
16632     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16633   fi
16634
16635   # We used to test for /lib/ld.so.1 and disable shared libraries on
16636   # powerpc, because MkLinux only supported shared libraries with the
16637   # GNU dynamic linker.  Since this was broken with cross compilers,
16638   # most powerpc-linux boxes support dynamic linking these days and
16639   # people can always --disable-shared, the test was removed, and we
16640   # assume the GNU/Linux dynamic linker is in use.
16641   dynamic_linker='GNU/Linux ld.so'
16642   ;;
16643
16644 knetbsd*-gnu)
16645   version_type=linux
16646   need_lib_prefix=no
16647   need_version=no
16648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16649   soname_spec='${libname}${release}${shared_ext}$major'
16650   shlibpath_var=LD_LIBRARY_PATH
16651   shlibpath_overrides_runpath=no
16652   hardcode_into_libs=yes
16653   dynamic_linker='GNU ld.so'
16654   ;;
16655
16656 netbsd*)
16657   version_type=sunos
16658   need_lib_prefix=no
16659   need_version=no
16660   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16662     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16663     dynamic_linker='NetBSD (a.out) ld.so'
16664   else
16665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16666     soname_spec='${libname}${release}${shared_ext}$major'
16667     dynamic_linker='NetBSD ld.elf_so'
16668   fi
16669   shlibpath_var=LD_LIBRARY_PATH
16670   shlibpath_overrides_runpath=yes
16671   hardcode_into_libs=yes
16672   ;;
16673
16674 newsos6)
16675   version_type=linux
16676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677   shlibpath_var=LD_LIBRARY_PATH
16678   shlibpath_overrides_runpath=yes
16679   ;;
16680
16681 nto-qnx*)
16682   version_type=linux
16683   need_lib_prefix=no
16684   need_version=no
16685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686   soname_spec='${libname}${release}${shared_ext}$major'
16687   shlibpath_var=LD_LIBRARY_PATH
16688   shlibpath_overrides_runpath=yes
16689   ;;
16690
16691 openbsd*)
16692   version_type=sunos
16693   sys_lib_dlsearch_path_spec="/usr/lib"
16694   need_lib_prefix=no
16695   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16696   case $host_os in
16697     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16698     *)                         need_version=no  ;;
16699   esac
16700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702   shlibpath_var=LD_LIBRARY_PATH
16703   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16704     case $host_os in
16705       openbsd2.[89] | openbsd2.[89].*)
16706         shlibpath_overrides_runpath=no
16707         ;;
16708       *)
16709         shlibpath_overrides_runpath=yes
16710         ;;
16711       esac
16712   else
16713     shlibpath_overrides_runpath=yes
16714   fi
16715   ;;
16716
16717 os2*)
16718   libname_spec='$name'
16719   shrext_cmds=".dll"
16720   need_lib_prefix=no
16721   library_names_spec='$libname${shared_ext} $libname.a'
16722   dynamic_linker='OS/2 ld.exe'
16723   shlibpath_var=LIBPATH
16724   ;;
16725
16726 osf3* | osf4* | osf5*)
16727   version_type=osf
16728   need_lib_prefix=no
16729   need_version=no
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16734   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16735   ;;
16736
16737 solaris*)
16738   version_type=linux
16739   need_lib_prefix=no
16740   need_version=no
16741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742   soname_spec='${libname}${release}${shared_ext}$major'
16743   shlibpath_var=LD_LIBRARY_PATH
16744   shlibpath_overrides_runpath=yes
16745   hardcode_into_libs=yes
16746   # ldd complains unless libraries are executable
16747   postinstall_cmds='chmod +x $lib'
16748   ;;
16749
16750 sunos4*)
16751   version_type=sunos
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16753   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   shlibpath_overrides_runpath=yes
16756   if test "$with_gnu_ld" = yes; then
16757     need_lib_prefix=no
16758   fi
16759   need_version=yes
16760   ;;
16761
16762 sysv4 | sysv4.3*)
16763   version_type=linux
16764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765   soname_spec='${libname}${release}${shared_ext}$major'
16766   shlibpath_var=LD_LIBRARY_PATH
16767   case $host_vendor in
16768     sni)
16769       shlibpath_overrides_runpath=no
16770       need_lib_prefix=no
16771       export_dynamic_flag_spec='${wl}-Blargedynsym'
16772       runpath_var=LD_RUN_PATH
16773       ;;
16774     siemens)
16775       need_lib_prefix=no
16776       ;;
16777     motorola)
16778       need_lib_prefix=no
16779       need_version=no
16780       shlibpath_overrides_runpath=no
16781       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16782       ;;
16783   esac
16784   ;;
16785
16786 sysv4*MP*)
16787   if test -d /usr/nec ;then
16788     version_type=linux
16789     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16790     soname_spec='$libname${shared_ext}.$major'
16791     shlibpath_var=LD_LIBRARY_PATH
16792   fi
16793   ;;
16794
16795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16796   version_type=freebsd-elf
16797   need_lib_prefix=no
16798   need_version=no
16799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16800   soname_spec='${libname}${release}${shared_ext}$major'
16801   shlibpath_var=LD_LIBRARY_PATH
16802   hardcode_into_libs=yes
16803   if test "$with_gnu_ld" = yes; then
16804     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16805     shlibpath_overrides_runpath=no
16806   else
16807     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16808     shlibpath_overrides_runpath=yes
16809     case $host_os in
16810       sco3.2v5*)
16811         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16812         ;;
16813     esac
16814   fi
16815   sys_lib_dlsearch_path_spec='/usr/lib'
16816   ;;
16817
16818 uts4*)
16819   version_type=linux
16820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821   soname_spec='${libname}${release}${shared_ext}$major'
16822   shlibpath_var=LD_LIBRARY_PATH
16823   ;;
16824
16825 *)
16826   dynamic_linker=no
16827   ;;
16828 esac
16829 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16830 echo "${ECHO_T}$dynamic_linker" >&6; }
16831 test "$dynamic_linker" = no && can_build_shared=no
16832
16833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16834 if test "$GCC" = yes; then
16835   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16836 fi
16837
16838 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16840 hardcode_action=
16841 if test -n "$hardcode_libdir_flag_spec" || \
16842    test -n "$runpath_var" || \
16843    test "X$hardcode_automatic" = "Xyes" ; then
16844
16845   # We can hardcode non-existant directories.
16846   if test "$hardcode_direct" != no &&
16847      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16848      # have to relink, otherwise we might link with an installed library
16849      # when we should be linking with a yet-to-be-installed one
16850      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16851      test "$hardcode_minus_L" != no; then
16852     # Linking always hardcodes the temporary library directory.
16853     hardcode_action=relink
16854   else
16855     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16856     hardcode_action=immediate
16857   fi
16858 else
16859   # We cannot hardcode anything, or else we can only hardcode existing
16860   # directories.
16861   hardcode_action=unsupported
16862 fi
16863 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16864 echo "${ECHO_T}$hardcode_action" >&6; }
16865
16866 if test "$hardcode_action" = relink; then
16867   # Fast installation is not supported
16868   enable_fast_install=no
16869 elif test "$shlibpath_overrides_runpath" = yes ||
16870      test "$enable_shared" = no; then
16871   # Fast installation is not necessary
16872   enable_fast_install=needless
16873 fi
16874
16875 striplib=
16876 old_striplib=
16877 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16878 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16879 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16880   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16881   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16882   { echo "$as_me:$LINENO: result: yes" >&5
16883 echo "${ECHO_T}yes" >&6; }
16884 else
16885 # FIXME - insert some real tests, host_os isn't really good enough
16886   case $host_os in
16887    darwin*)
16888        if test -n "$STRIP" ; then
16889          striplib="$STRIP -x"
16890          { echo "$as_me:$LINENO: result: yes" >&5
16891 echo "${ECHO_T}yes" >&6; }
16892        else
16893   { echo "$as_me:$LINENO: result: no" >&5
16894 echo "${ECHO_T}no" >&6; }
16895 fi
16896        ;;
16897    *)
16898   { echo "$as_me:$LINENO: result: no" >&5
16899 echo "${ECHO_T}no" >&6; }
16900     ;;
16901   esac
16902 fi
16903
16904 if test "x$enable_dlopen" != xyes; then
16905   enable_dlopen=unknown
16906   enable_dlopen_self=unknown
16907   enable_dlopen_self_static=unknown
16908 else
16909   lt_cv_dlopen=no
16910   lt_cv_dlopen_libs=
16911
16912   case $host_os in
16913   beos*)
16914     lt_cv_dlopen="load_add_on"
16915     lt_cv_dlopen_libs=
16916     lt_cv_dlopen_self=yes
16917     ;;
16918
16919   mingw* | pw32*)
16920     lt_cv_dlopen="LoadLibrary"
16921     lt_cv_dlopen_libs=
16922    ;;
16923
16924   cygwin*)
16925     lt_cv_dlopen="dlopen"
16926     lt_cv_dlopen_libs=
16927    ;;
16928
16929   darwin*)
16930   # if libdl is installed we need to link against it
16931     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16932 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936   ac_check_lib_save_LIBS=$LIBS
16937 LIBS="-ldl  $LIBS"
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944
16945 /* Override any GCC internal prototype to avoid an error.
16946    Use char because int might match the return type of a GCC
16947    builtin and then its argument prototype would still apply.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char dlopen ();
16952 int
16953 main ()
16954 {
16955 return dlopen ();
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964   *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967   (eval "$ac_link") 2>conftest.er1
16968   ac_status=$?
16969   grep -v '^ *+' conftest.er1 >conftest.err
16970   rm -f conftest.er1
16971   cat conftest.err >&5
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); } &&
16974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975   { (case "(($ac_try" in
16976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977   *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980   (eval "$ac_try") 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; } &&
16984          { ac_try='test -s conftest$ac_exeext'
16985   { (case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_try") 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; }; then
16994   ac_cv_lib_dl_dlopen=yes
16995 else
16996   echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999         ac_cv_lib_dl_dlopen=no
17000 fi
17001
17002 rm -f core conftest.err conftest.$ac_objext \
17003       conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17005 fi
17006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17008 if test $ac_cv_lib_dl_dlopen = yes; then
17009   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17010 else
17011
17012     lt_cv_dlopen="dyld"
17013     lt_cv_dlopen_libs=
17014     lt_cv_dlopen_self=yes
17015
17016 fi
17017
17018    ;;
17019
17020   *)
17021     { echo "$as_me:$LINENO: checking for shl_load" >&5
17022 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17023 if test "${ac_cv_func_shl_load+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026   cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17034 #define shl_load innocuous_shl_load
17035
17036 /* System header to define __stub macros and hopefully few prototypes,
17037     which can conflict with char shl_load (); below.
17038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039     <limits.h> exists even on freestanding compilers.  */
17040
17041 #ifdef __STDC__
17042 # include <limits.h>
17043 #else
17044 # include <assert.h>
17045 #endif
17046
17047 #undef shl_load
17048
17049 /* Override any GCC internal prototype to avoid an error.
17050    Use char because int might match the return type of a GCC
17051    builtin and then its argument prototype would still apply.  */
17052 #ifdef __cplusplus
17053 extern "C"
17054 #endif
17055 char shl_load ();
17056 /* The GNU C library defines this for functions which it implements
17057     to always fail with ENOSYS.  Some functions are actually named
17058     something starting with __ and the normal name is an alias.  */
17059 #if defined __stub_shl_load || defined __stub___shl_load
17060 choke me
17061 #endif
17062
17063 int
17064 main ()
17065 {
17066 return shl_load ();
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075   *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078   (eval "$ac_link") 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } &&
17085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; } &&
17095          { ac_try='test -s conftest$ac_exeext'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105   ac_cv_func_shl_load=yes
17106 else
17107   echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110         ac_cv_func_shl_load=no
17111 fi
17112
17113 rm -f core conftest.err conftest.$ac_objext \
17114       conftest$ac_exeext conftest.$ac_ext
17115 fi
17116 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17117 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17118 if test $ac_cv_func_shl_load = yes; then
17119   lt_cv_dlopen="shl_load"
17120 else
17121   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17122 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126   ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-ldld  $LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134
17135 /* Override any GCC internal prototype to avoid an error.
17136    Use char because int might match the return type of a GCC
17137    builtin and then its argument prototype would still apply.  */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char shl_load ();
17142 int
17143 main ()
17144 {
17145 return shl_load ();
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (ac_try="$ac_link"
17152 case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157   (eval "$ac_link") 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165   { (case "(($ac_try" in
17166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167   *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170   (eval "$ac_try") 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; } &&
17174          { ac_try='test -s conftest$ac_exeext'
17175   { (case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_try") 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   ac_cv_lib_dld_shl_load=yes
17185 else
17186   echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189         ac_cv_lib_dld_shl_load=no
17190 fi
17191
17192 rm -f core conftest.err conftest.$ac_objext \
17193       conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17195 fi
17196 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17197 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17198 if test $ac_cv_lib_dld_shl_load = yes; then
17199   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17200 else
17201   { echo "$as_me:$LINENO: checking for dlopen" >&5
17202 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17203 if test "${ac_cv_func_dlopen+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17214 #define dlopen innocuous_dlopen
17215
17216 /* System header to define __stub macros and hopefully few prototypes,
17217     which can conflict with char dlopen (); below.
17218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219     <limits.h> exists even on freestanding compilers.  */
17220
17221 #ifdef __STDC__
17222 # include <limits.h>
17223 #else
17224 # include <assert.h>
17225 #endif
17226
17227 #undef dlopen
17228
17229 /* Override any GCC internal prototype to avoid an error.
17230    Use char because int might match the return type of a GCC
17231    builtin and then its argument prototype would still apply.  */
17232 #ifdef __cplusplus
17233 extern "C"
17234 #endif
17235 char dlopen ();
17236 /* The GNU C library defines this for functions which it implements
17237     to always fail with ENOSYS.  Some functions are actually named
17238     something starting with __ and the normal name is an alias.  */
17239 #if defined __stub_dlopen || defined __stub___dlopen
17240 choke me
17241 #endif
17242
17243 int
17244 main ()
17245 {
17246 return dlopen ();
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_link") 2>conftest.er1
17259   ac_status=$?
17260   grep -v '^ *+' conftest.er1 >conftest.err
17261   rm -f conftest.er1
17262   cat conftest.err >&5
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); } &&
17265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266   { (case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_try") 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_try") 2>&5
17282   ac_status=$?
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); }; }; then
17285   ac_cv_func_dlopen=yes
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290         ac_cv_func_dlopen=no
17291 fi
17292
17293 rm -f core conftest.err conftest.$ac_objext \
17294       conftest$ac_exeext conftest.$ac_ext
17295 fi
17296 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17297 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17298 if test $ac_cv_func_dlopen = yes; then
17299   lt_cv_dlopen="dlopen"
17300 else
17301   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17302 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17303 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   ac_check_lib_save_LIBS=$LIBS
17307 LIBS="-ldl  $LIBS"
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314
17315 /* Override any GCC internal prototype to avoid an error.
17316    Use char because int might match the return type of a GCC
17317    builtin and then its argument prototype would still apply.  */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 char dlopen ();
17322 int
17323 main ()
17324 {
17325 return dlopen ();
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_link") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17345   { (case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_try") 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; } &&
17354          { ac_try='test -s conftest$ac_exeext'
17355   { (case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_try") 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; }; then
17364   ac_cv_lib_dl_dlopen=yes
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369         ac_cv_lib_dl_dlopen=no
17370 fi
17371
17372 rm -f core conftest.err conftest.$ac_objext \
17373       conftest$ac_exeext conftest.$ac_ext
17374 LIBS=$ac_check_lib_save_LIBS
17375 fi
17376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17377 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17378 if test $ac_cv_lib_dl_dlopen = yes; then
17379   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17380 else
17381   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17382 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17384   echo $ECHO_N "(cached) $ECHO_C" >&6
17385 else
17386   ac_check_lib_save_LIBS=$LIBS
17387 LIBS="-lsvld  $LIBS"
17388 cat >conftest.$ac_ext <<_ACEOF
17389 /* confdefs.h.  */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h.  */
17394
17395 /* Override any GCC internal prototype to avoid an error.
17396    Use char because int might match the return type of a GCC
17397    builtin and then its argument prototype would still apply.  */
17398 #ifdef __cplusplus
17399 extern "C"
17400 #endif
17401 char dlopen ();
17402 int
17403 main ()
17404 {
17405 return dlopen ();
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_link") 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } &&
17424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425   { (case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_try") 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; } &&
17434          { ac_try='test -s conftest$ac_exeext'
17435   { (case "(($ac_try" in
17436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437   *) ac_try_echo=$ac_try;;
17438 esac
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440   (eval "$ac_try") 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; }; then
17444   ac_cv_lib_svld_dlopen=yes
17445 else
17446   echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449         ac_cv_lib_svld_dlopen=no
17450 fi
17451
17452 rm -f core conftest.err conftest.$ac_objext \
17453       conftest$ac_exeext conftest.$ac_ext
17454 LIBS=$ac_check_lib_save_LIBS
17455 fi
17456 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17457 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17458 if test $ac_cv_lib_svld_dlopen = yes; then
17459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17460 else
17461   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17462 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   ac_check_lib_save_LIBS=$LIBS
17467 LIBS="-ldld  $LIBS"
17468 cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476    Use char because int might match the return type of a GCC
17477    builtin and then its argument prototype would still apply.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char dld_link ();
17482 int
17483 main ()
17484 {
17485 return dld_link ();
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (ac_try="$ac_link"
17492 case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_link") 2>conftest.er1
17498   ac_status=$?
17499   grep -v '^ *+' conftest.er1 >conftest.err
17500   rm -f conftest.er1
17501   cat conftest.err >&5
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } &&
17504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505   { (case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_try") 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; } &&
17514          { ac_try='test -s conftest$ac_exeext'
17515   { (case "(($ac_try" in
17516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517   *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520   (eval "$ac_try") 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; }; then
17524   ac_cv_lib_dld_dld_link=yes
17525 else
17526   echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17528
17529         ac_cv_lib_dld_dld_link=no
17530 fi
17531
17532 rm -f core conftest.err conftest.$ac_objext \
17533       conftest$ac_exeext conftest.$ac_ext
17534 LIBS=$ac_check_lib_save_LIBS
17535 fi
17536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17537 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17538 if test $ac_cv_lib_dld_dld_link = yes; then
17539   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17540 fi
17541
17542
17543 fi
17544
17545
17546 fi
17547
17548
17549 fi
17550
17551
17552 fi
17553
17554
17555 fi
17556
17557     ;;
17558   esac
17559
17560   if test "x$lt_cv_dlopen" != xno; then
17561     enable_dlopen=yes
17562   else
17563     enable_dlopen=no
17564   fi
17565
17566   case $lt_cv_dlopen in
17567   dlopen)
17568     save_CPPFLAGS="$CPPFLAGS"
17569     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17570
17571     save_LDFLAGS="$LDFLAGS"
17572     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17573
17574     save_LIBS="$LIBS"
17575     LIBS="$lt_cv_dlopen_libs $LIBS"
17576
17577     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17578 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17579 if test "${lt_cv_dlopen_self+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582           if test "$cross_compiling" = yes; then :
17583   lt_cv_dlopen_self=cross
17584 else
17585   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17586   lt_status=$lt_dlunknown
17587   cat > conftest.$ac_ext <<EOF
17588 #line 17588 "configure"
17589 #include "confdefs.h"
17590
17591 #if HAVE_DLFCN_H
17592 #include <dlfcn.h>
17593 #endif
17594
17595 #include <stdio.h>
17596
17597 #ifdef RTLD_GLOBAL
17598 #  define LT_DLGLOBAL           RTLD_GLOBAL
17599 #else
17600 #  ifdef DL_GLOBAL
17601 #    define LT_DLGLOBAL         DL_GLOBAL
17602 #  else
17603 #    define LT_DLGLOBAL         0
17604 #  endif
17605 #endif
17606
17607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17608    find out it does not work in some platform. */
17609 #ifndef LT_DLLAZY_OR_NOW
17610 #  ifdef RTLD_LAZY
17611 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17612 #  else
17613 #    ifdef DL_LAZY
17614 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17615 #    else
17616 #      ifdef RTLD_NOW
17617 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17618 #      else
17619 #        ifdef DL_NOW
17620 #          define LT_DLLAZY_OR_NOW      DL_NOW
17621 #        else
17622 #          define LT_DLLAZY_OR_NOW      0
17623 #        endif
17624 #      endif
17625 #    endif
17626 #  endif
17627 #endif
17628
17629 #ifdef __cplusplus
17630 extern "C" void exit (int);
17631 #endif
17632
17633 void fnord() { int i=42;}
17634 int main ()
17635 {
17636   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17637   int status = $lt_dlunknown;
17638
17639   if (self)
17640     {
17641       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17642       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17643       /* dlclose (self); */
17644     }
17645   else
17646     puts (dlerror ());
17647
17648     exit (status);
17649 }
17650 EOF
17651   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652   (eval $ac_link) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17656     (./conftest; exit; ) >&5 2>/dev/null
17657     lt_status=$?
17658     case x$lt_status in
17659       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17660       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17661       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17662     esac
17663   else :
17664     # compilation failed
17665     lt_cv_dlopen_self=no
17666   fi
17667 fi
17668 rm -fr conftest*
17669
17670
17671 fi
17672 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17673 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17674
17675     if test "x$lt_cv_dlopen_self" = xyes; then
17676       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17677       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17678 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17679 if test "${lt_cv_dlopen_self_static+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682           if test "$cross_compiling" = yes; then :
17683   lt_cv_dlopen_self_static=cross
17684 else
17685   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17686   lt_status=$lt_dlunknown
17687   cat > conftest.$ac_ext <<EOF
17688 #line 17688 "configure"
17689 #include "confdefs.h"
17690
17691 #if HAVE_DLFCN_H
17692 #include <dlfcn.h>
17693 #endif
17694
17695 #include <stdio.h>
17696
17697 #ifdef RTLD_GLOBAL
17698 #  define LT_DLGLOBAL           RTLD_GLOBAL
17699 #else
17700 #  ifdef DL_GLOBAL
17701 #    define LT_DLGLOBAL         DL_GLOBAL
17702 #  else
17703 #    define LT_DLGLOBAL         0
17704 #  endif
17705 #endif
17706
17707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17708    find out it does not work in some platform. */
17709 #ifndef LT_DLLAZY_OR_NOW
17710 #  ifdef RTLD_LAZY
17711 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17712 #  else
17713 #    ifdef DL_LAZY
17714 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17715 #    else
17716 #      ifdef RTLD_NOW
17717 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17718 #      else
17719 #        ifdef DL_NOW
17720 #          define LT_DLLAZY_OR_NOW      DL_NOW
17721 #        else
17722 #          define LT_DLLAZY_OR_NOW      0
17723 #        endif
17724 #      endif
17725 #    endif
17726 #  endif
17727 #endif
17728
17729 #ifdef __cplusplus
17730 extern "C" void exit (int);
17731 #endif
17732
17733 void fnord() { int i=42;}
17734 int main ()
17735 {
17736   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17737   int status = $lt_dlunknown;
17738
17739   if (self)
17740     {
17741       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17742       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17743       /* dlclose (self); */
17744     }
17745   else
17746     puts (dlerror ());
17747
17748     exit (status);
17749 }
17750 EOF
17751   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752   (eval $ac_link) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17756     (./conftest; exit; ) >&5 2>/dev/null
17757     lt_status=$?
17758     case x$lt_status in
17759       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17760       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17761       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17762     esac
17763   else :
17764     # compilation failed
17765     lt_cv_dlopen_self_static=no
17766   fi
17767 fi
17768 rm -fr conftest*
17769
17770
17771 fi
17772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17773 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17774     fi
17775
17776     CPPFLAGS="$save_CPPFLAGS"
17777     LDFLAGS="$save_LDFLAGS"
17778     LIBS="$save_LIBS"
17779     ;;
17780   esac
17781
17782   case $lt_cv_dlopen_self in
17783   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17784   *) enable_dlopen_self=unknown ;;
17785   esac
17786
17787   case $lt_cv_dlopen_self_static in
17788   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17789   *) enable_dlopen_self_static=unknown ;;
17790   esac
17791 fi
17792
17793
17794 # Report which library types will actually be built
17795 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17796 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17797 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17798 echo "${ECHO_T}$can_build_shared" >&6; }
17799
17800 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17801 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17802 test "$can_build_shared" = "no" && enable_shared=no
17803
17804 # On AIX, shared libraries and static libraries use the same namespace, and
17805 # are all built from PIC.
17806 case $host_os in
17807 aix3*)
17808   test "$enable_shared" = yes && enable_static=no
17809   if test -n "$RANLIB"; then
17810     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17811     postinstall_cmds='$RANLIB $lib'
17812   fi
17813   ;;
17814
17815 aix4* | aix5*)
17816   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17817     test "$enable_shared" = yes && enable_static=no
17818   fi
17819     ;;
17820 esac
17821 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17822 echo "${ECHO_T}$enable_shared" >&6; }
17823
17824 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17825 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17826 # Make sure either enable_shared or enable_static is yes.
17827 test "$enable_shared" = yes || enable_static=yes
17828 { echo "$as_me:$LINENO: result: $enable_static" >&5
17829 echo "${ECHO_T}$enable_static" >&6; }
17830
17831 # The else clause should only fire when bootstrapping the
17832 # libtool distribution, otherwise you forgot to ship ltmain.sh
17833 # with your package, and you will get complaints that there are
17834 # no rules to generate ltmain.sh.
17835 if test -f "$ltmain"; then
17836   # See if we are running on zsh, and set the options which allow our commands through
17837   # without removal of \ escapes.
17838   if test -n "${ZSH_VERSION+set}" ; then
17839     setopt NO_GLOB_SUBST
17840   fi
17841   # Now quote all the things that may contain metacharacters while being
17842   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17843   # variables and quote the copies for generation of the libtool script.
17844   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17845     SED SHELL STRIP \
17846     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17847     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17848     deplibs_check_method reload_flag reload_cmds need_locks \
17849     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17850     lt_cv_sys_global_symbol_to_c_name_address \
17851     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17852     old_postinstall_cmds old_postuninstall_cmds \
17853     compiler \
17854     CC \
17855     LD \
17856     lt_prog_compiler_wl \
17857     lt_prog_compiler_pic \
17858     lt_prog_compiler_static \
17859     lt_prog_compiler_no_builtin_flag \
17860     export_dynamic_flag_spec \
17861     thread_safe_flag_spec \
17862     whole_archive_flag_spec \
17863     enable_shared_with_static_runtimes \
17864     old_archive_cmds \
17865     old_archive_from_new_cmds \
17866     predep_objects \
17867     postdep_objects \
17868     predeps \
17869     postdeps \
17870     compiler_lib_search_path \
17871     archive_cmds \
17872     archive_expsym_cmds \
17873     postinstall_cmds \
17874     postuninstall_cmds \
17875     old_archive_from_expsyms_cmds \
17876     allow_undefined_flag \
17877     no_undefined_flag \
17878     export_symbols_cmds \
17879     hardcode_libdir_flag_spec \
17880     hardcode_libdir_flag_spec_ld \
17881     hardcode_libdir_separator \
17882     hardcode_automatic \
17883     module_cmds \
17884     module_expsym_cmds \
17885     lt_cv_prog_compiler_c_o \
17886     exclude_expsyms \
17887     include_expsyms; do
17888
17889     case $var in
17890     old_archive_cmds | \
17891     old_archive_from_new_cmds | \
17892     archive_cmds | \
17893     archive_expsym_cmds | \
17894     module_cmds | \
17895     module_expsym_cmds | \
17896     old_archive_from_expsyms_cmds | \
17897     export_symbols_cmds | \
17898     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17899     postinstall_cmds | postuninstall_cmds | \
17900     old_postinstall_cmds | old_postuninstall_cmds | \
17901     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17902       # Double-quote double-evaled strings.
17903       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17904       ;;
17905     *)
17906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17907       ;;
17908     esac
17909   done
17910
17911   case $lt_echo in
17912   *'\$0 --fallback-echo"')
17913     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17914     ;;
17915   esac
17916
17917 cfgfile="${ofile}T"
17918   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17919   $rm -f "$cfgfile"
17920   { echo "$as_me:$LINENO: creating $ofile" >&5
17921 echo "$as_me: creating $ofile" >&6;}
17922
17923   cat <<__EOF__ >> "$cfgfile"
17924 #! $SHELL
17925
17926 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17927 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17928 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17929 #
17930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17931 # Free Software Foundation, Inc.
17932 #
17933 # This file is part of GNU Libtool:
17934 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17935 #
17936 # This program is free software; you can redistribute it and/or modify
17937 # it under the terms of the GNU General Public License as published by
17938 # the Free Software Foundation; either version 2 of the License, or
17939 # (at your option) any later version.
17940 #
17941 # This program is distributed in the hope that it will be useful, but
17942 # WITHOUT ANY WARRANTY; without even the implied warranty of
17943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17944 # General Public License for more details.
17945 #
17946 # You should have received a copy of the GNU General Public License
17947 # along with this program; if not, write to the Free Software
17948 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17949 #
17950 # As a special exception to the GNU General Public License, if you
17951 # distribute this file as part of a program that contains a
17952 # configuration script generated by Autoconf, you may include it under
17953 # the same distribution terms that you use for the rest of that program.
17954
17955 # A sed program that does not truncate output.
17956 SED=$lt_SED
17957
17958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17959 Xsed="$SED -e 1s/^X//"
17960
17961 # The HP-UX ksh and POSIX shell print the target directory to stdout
17962 # if CDPATH is set.
17963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17964
17965 # The names of the tagged configurations supported by this script.
17966 available_tags=
17967
17968 # ### BEGIN LIBTOOL CONFIG
17969
17970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17971
17972 # Shell to use when invoking shell scripts.
17973 SHELL=$lt_SHELL
17974
17975 # Whether or not to build shared libraries.
17976 build_libtool_libs=$enable_shared
17977
17978 # Whether or not to build static libraries.
17979 build_old_libs=$enable_static
17980
17981 # Whether or not to add -lc for building shared libraries.
17982 build_libtool_need_lc=$archive_cmds_need_lc
17983
17984 # Whether or not to disallow shared libs when runtime libs are static
17985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17986
17987 # Whether or not to optimize for fast installation.
17988 fast_install=$enable_fast_install
17989
17990 # The host system.
17991 host_alias=$host_alias
17992 host=$host
17993 host_os=$host_os
17994
17995 # The build system.
17996 build_alias=$build_alias
17997 build=$build
17998 build_os=$build_os
17999
18000 # An echo program that does not interpret backslashes.
18001 echo=$lt_echo
18002
18003 # The archiver.
18004 AR=$lt_AR
18005 AR_FLAGS=$lt_AR_FLAGS
18006
18007 # A C compiler.
18008 LTCC=$lt_LTCC
18009
18010 # LTCC compiler flags.
18011 LTCFLAGS=$lt_LTCFLAGS
18012
18013 # A language-specific compiler.
18014 CC=$lt_compiler
18015
18016 # Is the compiler the GNU C compiler?
18017 with_gcc=$GCC
18018
18019 # An ERE matcher.
18020 EGREP=$lt_EGREP
18021
18022 # The linker used to build libraries.
18023 LD=$lt_LD
18024
18025 # Whether we need hard or soft links.
18026 LN_S=$lt_LN_S
18027
18028 # A BSD-compatible nm program.
18029 NM=$lt_NM
18030
18031 # A symbol stripping program
18032 STRIP=$lt_STRIP
18033
18034 # Used to examine libraries when file_magic_cmd begins "file"
18035 MAGIC_CMD=$MAGIC_CMD
18036
18037 # Used on cygwin: DLL creation program.
18038 DLLTOOL="$DLLTOOL"
18039
18040 # Used on cygwin: object dumper.
18041 OBJDUMP="$OBJDUMP"
18042
18043 # Used on cygwin: assembler.
18044 AS="$AS"
18045
18046 # The name of the directory that contains temporary libtool files.
18047 objdir=$objdir
18048
18049 # How to create reloadable object files.
18050 reload_flag=$lt_reload_flag
18051 reload_cmds=$lt_reload_cmds
18052
18053 # How to pass a linker flag through the compiler.
18054 wl=$lt_lt_prog_compiler_wl
18055
18056 # Object file suffix (normally "o").
18057 objext="$ac_objext"
18058
18059 # Old archive suffix (normally "a").
18060 libext="$libext"
18061
18062 # Shared library suffix (normally ".so").
18063 shrext_cmds='$shrext_cmds'
18064
18065 # Executable file suffix (normally "").
18066 exeext="$exeext"
18067
18068 # Additional compiler flags for building library objects.
18069 pic_flag=$lt_lt_prog_compiler_pic
18070 pic_mode=$pic_mode
18071
18072 # What is the maximum length of a command?
18073 max_cmd_len=$lt_cv_sys_max_cmd_len
18074
18075 # Does compiler simultaneously support -c and -o options?
18076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18077
18078 # Must we lock files when doing compilation?
18079 need_locks=$lt_need_locks
18080
18081 # Do we need the lib prefix for modules?
18082 need_lib_prefix=$need_lib_prefix
18083
18084 # Do we need a version for libraries?
18085 need_version=$need_version
18086
18087 # Whether dlopen is supported.
18088 dlopen_support=$enable_dlopen
18089
18090 # Whether dlopen of programs is supported.
18091 dlopen_self=$enable_dlopen_self
18092
18093 # Whether dlopen of statically linked programs is supported.
18094 dlopen_self_static=$enable_dlopen_self_static
18095
18096 # Compiler flag to prevent dynamic linking.
18097 link_static_flag=$lt_lt_prog_compiler_static
18098
18099 # Compiler flag to turn off builtin functions.
18100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18101
18102 # Compiler flag to allow reflexive dlopens.
18103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18104
18105 # Compiler flag to generate shared objects directly from archives.
18106 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18107
18108 # Compiler flag to generate thread-safe objects.
18109 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18110
18111 # Library versioning type.
18112 version_type=$version_type
18113
18114 # Format of library name prefix.
18115 libname_spec=$lt_libname_spec
18116
18117 # List of archive names.  First name is the real one, the rest are links.
18118 # The last name is the one that the linker finds with -lNAME.
18119 library_names_spec=$lt_library_names_spec
18120
18121 # The coded name of the library, if different from the real name.
18122 soname_spec=$lt_soname_spec
18123
18124 # Commands used to build and install an old-style archive.
18125 RANLIB=$lt_RANLIB
18126 old_archive_cmds=$lt_old_archive_cmds
18127 old_postinstall_cmds=$lt_old_postinstall_cmds
18128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18129
18130 # Create an old-style archive from a shared archive.
18131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18132
18133 # Create a temporary old-style archive to link instead of a shared archive.
18134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18135
18136 # Commands used to build and install a shared archive.
18137 archive_cmds=$lt_archive_cmds
18138 archive_expsym_cmds=$lt_archive_expsym_cmds
18139 postinstall_cmds=$lt_postinstall_cmds
18140 postuninstall_cmds=$lt_postuninstall_cmds
18141
18142 # Commands used to build a loadable module (assumed same as above if empty)
18143 module_cmds=$lt_module_cmds
18144 module_expsym_cmds=$lt_module_expsym_cmds
18145
18146 # Commands to strip libraries.
18147 old_striplib=$lt_old_striplib
18148 striplib=$lt_striplib
18149
18150 # Dependencies to place before the objects being linked to create a
18151 # shared library.
18152 predep_objects=$lt_predep_objects
18153
18154 # Dependencies to place after the objects being linked to create a
18155 # shared library.
18156 postdep_objects=$lt_postdep_objects
18157
18158 # Dependencies to place before the objects being linked to create a
18159 # shared library.
18160 predeps=$lt_predeps
18161
18162 # Dependencies to place after the objects being linked to create a
18163 # shared library.
18164 postdeps=$lt_postdeps
18165
18166 # The library search path used internally by the compiler when linking
18167 # a shared library.
18168 compiler_lib_search_path=$lt_compiler_lib_search_path
18169
18170 # Method to check whether dependent libraries are shared objects.
18171 deplibs_check_method=$lt_deplibs_check_method
18172
18173 # Command to use when deplibs_check_method == file_magic.
18174 file_magic_cmd=$lt_file_magic_cmd
18175
18176 # Flag that allows shared libraries with undefined symbols to be built.
18177 allow_undefined_flag=$lt_allow_undefined_flag
18178
18179 # Flag that forces no undefined symbols.
18180 no_undefined_flag=$lt_no_undefined_flag
18181
18182 # Commands used to finish a libtool library installation in a directory.
18183 finish_cmds=$lt_finish_cmds
18184
18185 # Same as above, but a single script fragment to be evaled but not shown.
18186 finish_eval=$lt_finish_eval
18187
18188 # Take the output of nm and produce a listing of raw symbols and C names.
18189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18190
18191 # Transform the output of nm in a proper C declaration
18192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18193
18194 # Transform the output of nm in a C name address pair
18195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18196
18197 # This is the shared library runtime path variable.
18198 runpath_var=$runpath_var
18199
18200 # This is the shared library path variable.
18201 shlibpath_var=$shlibpath_var
18202
18203 # Is shlibpath searched before the hard-coded library search path?
18204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18205
18206 # How to hardcode a shared library path into an executable.
18207 hardcode_action=$hardcode_action
18208
18209 # Whether we should hardcode library paths into libraries.
18210 hardcode_into_libs=$hardcode_into_libs
18211
18212 # Flag to hardcode \$libdir into a binary during linking.
18213 # This must work even if \$libdir does not exist.
18214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18215
18216 # If ld is used when linking, flag to hardcode \$libdir into
18217 # a binary during linking. This must work even if \$libdir does
18218 # not exist.
18219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18220
18221 # Whether we need a single -rpath flag with a separated argument.
18222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18223
18224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18225 # resulting binary.
18226 hardcode_direct=$hardcode_direct
18227
18228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18229 # resulting binary.
18230 hardcode_minus_L=$hardcode_minus_L
18231
18232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18233 # the resulting binary.
18234 hardcode_shlibpath_var=$hardcode_shlibpath_var
18235
18236 # Set to yes if building a shared library automatically hardcodes DIR into the library
18237 # and all subsequent libraries and executables linked against it.
18238 hardcode_automatic=$hardcode_automatic
18239
18240 # Variables whose values should be saved in libtool wrapper scripts and
18241 # restored at relink time.
18242 variables_saved_for_relink="$variables_saved_for_relink"
18243
18244 # Whether libtool must link a program against all its dependency libraries.
18245 link_all_deplibs=$link_all_deplibs
18246
18247 # Compile-time system search path for libraries
18248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18249
18250 # Run-time system search path for libraries
18251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18252
18253 # Fix the shell variable \$srcfile for the compiler.
18254 fix_srcfile_path="$fix_srcfile_path"
18255
18256 # Set to yes if exported symbols are required.
18257 always_export_symbols=$always_export_symbols
18258
18259 # The commands to list exported symbols.
18260 export_symbols_cmds=$lt_export_symbols_cmds
18261
18262 # The commands to extract the exported symbol list from a shared archive.
18263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18264
18265 # Symbols that should not be listed in the preloaded symbols.
18266 exclude_expsyms=$lt_exclude_expsyms
18267
18268 # Symbols that must always be exported.
18269 include_expsyms=$lt_include_expsyms
18270
18271 # ### END LIBTOOL CONFIG
18272
18273 __EOF__
18274
18275
18276   case $host_os in
18277   aix3*)
18278     cat <<\EOF >> "$cfgfile"
18279
18280 # AIX sometimes has problems with the GCC collect2 program.  For some
18281 # reason, if we set the COLLECT_NAMES environment variable, the problems
18282 # vanish in a puff of smoke.
18283 if test "X${COLLECT_NAMES+set}" != Xset; then
18284   COLLECT_NAMES=
18285   export COLLECT_NAMES
18286 fi
18287 EOF
18288     ;;
18289   esac
18290
18291   # We use sed instead of cat because bash on DJGPP gets confused if
18292   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18293   # text mode, it properly converts lines to CR/LF.  This bash problem
18294   # is reportedly fixed, but why not run on old versions too?
18295   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18296
18297   mv -f "$cfgfile" "$ofile" || \
18298     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18299   chmod +x "$ofile"
18300
18301 else
18302   # If there is no Makefile yet, we rely on a make rule to execute
18303   # `config.status --recheck' to rerun these tests and create the
18304   # libtool script then.
18305   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18306   if test -f "$ltmain_in"; then
18307     test -f Makefile && make "$ltmain"
18308   fi
18309 fi
18310
18311
18312 ac_ext=c
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317
18318 CC="$lt_save_CC"
18319
18320
18321 # Check whether --with-tags was given.
18322 if test "${with_tags+set}" = set; then
18323   withval=$with_tags; tagnames="$withval"
18324 fi
18325
18326
18327 if test -f "$ltmain" && test -n "$tagnames"; then
18328   if test ! -f "${ofile}"; then
18329     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18330 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18331   fi
18332
18333   if test -z "$LTCC"; then
18334     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18335     if test -z "$LTCC"; then
18336       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18337 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18338     else
18339       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18340 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18341     fi
18342   fi
18343   if test -z "$LTCFLAGS"; then
18344     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18345   fi
18346
18347   # Extract list of available tagged configurations in $ofile.
18348   # Note that this assumes the entire list is on one line.
18349   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18350
18351   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18352   for tagname in $tagnames; do
18353     IFS="$lt_save_ifs"
18354     # Check whether tagname contains only valid characters
18355     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18356     "") ;;
18357     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18358 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18359    { (exit 1); exit 1; }; }
18360         ;;
18361     esac
18362
18363     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18364     then
18365       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18366 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18367    { (exit 1); exit 1; }; }
18368     fi
18369
18370     # Update the list of available tags.
18371     if test -n "$tagname"; then
18372       echo appending configuration tag \"$tagname\" to $ofile
18373
18374       case $tagname in
18375       CXX)
18376         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18377             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18378             (test "X$CXX" != "Xg++"))) ; then
18379           ac_ext=cpp
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18384
18385
18386
18387
18388 archive_cmds_need_lc_CXX=no
18389 allow_undefined_flag_CXX=
18390 always_export_symbols_CXX=no
18391 archive_expsym_cmds_CXX=
18392 export_dynamic_flag_spec_CXX=
18393 hardcode_direct_CXX=no
18394 hardcode_libdir_flag_spec_CXX=
18395 hardcode_libdir_flag_spec_ld_CXX=
18396 hardcode_libdir_separator_CXX=
18397 hardcode_minus_L_CXX=no
18398 hardcode_shlibpath_var_CXX=unsupported
18399 hardcode_automatic_CXX=no
18400 module_cmds_CXX=
18401 module_expsym_cmds_CXX=
18402 link_all_deplibs_CXX=unknown
18403 old_archive_cmds_CXX=$old_archive_cmds
18404 no_undefined_flag_CXX=
18405 whole_archive_flag_spec_CXX=
18406 enable_shared_with_static_runtimes_CXX=no
18407
18408 # Dependencies to place before and after the object being linked:
18409 predep_objects_CXX=
18410 postdep_objects_CXX=
18411 predeps_CXX=
18412 postdeps_CXX=
18413 compiler_lib_search_path_CXX=
18414
18415 # Source file extension for C++ test sources.
18416 ac_ext=cpp
18417
18418 # Object file extension for compiled C++ test sources.
18419 objext=o
18420 objext_CXX=$objext
18421
18422 # Code to be used in simple compile tests
18423 lt_simple_compile_test_code="int some_variable = 0;\n"
18424
18425 # Code to be used in simple link tests
18426 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18427
18428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18429
18430 # If no C compiler was specified, use CC.
18431 LTCC=${LTCC-"$CC"}
18432
18433 # If no C compiler flags were specified, use CFLAGS.
18434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18435
18436 # Allow CC to be a program name with arguments.
18437 compiler=$CC
18438
18439
18440 # save warnings/boilerplate of simple test code
18441 ac_outfile=conftest.$ac_objext
18442 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18443 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18444 _lt_compiler_boilerplate=`cat conftest.err`
18445 $rm conftest*
18446
18447 ac_outfile=conftest.$ac_objext
18448 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18449 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18450 _lt_linker_boilerplate=`cat conftest.err`
18451 $rm conftest*
18452
18453
18454 # Allow CC to be a program name with arguments.
18455 lt_save_CC=$CC
18456 lt_save_LD=$LD
18457 lt_save_GCC=$GCC
18458 GCC=$GXX
18459 lt_save_with_gnu_ld=$with_gnu_ld
18460 lt_save_path_LD=$lt_cv_path_LD
18461 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18462   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18463 else
18464   $as_unset lt_cv_prog_gnu_ld
18465 fi
18466 if test -n "${lt_cv_path_LDCXX+set}"; then
18467   lt_cv_path_LD=$lt_cv_path_LDCXX
18468 else
18469   $as_unset lt_cv_path_LD
18470 fi
18471 test -z "${LDCXX+set}" || LD=$LDCXX
18472 CC=${CXX-"c++"}
18473 compiler=$CC
18474 compiler_CXX=$CC
18475 for cc_temp in $compiler""; do
18476   case $cc_temp in
18477     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18478     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18479     \-*) ;;
18480     *) break;;
18481   esac
18482 done
18483 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18484
18485
18486 # We don't want -fno-exception wen compiling C++ code, so set the
18487 # no_builtin_flag separately
18488 if test "$GXX" = yes; then
18489   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18490 else
18491   lt_prog_compiler_no_builtin_flag_CXX=
18492 fi
18493
18494 if test "$GXX" = yes; then
18495   # Set up default GNU C++ configuration
18496
18497
18498 # Check whether --with-gnu-ld was given.
18499 if test "${with_gnu_ld+set}" = set; then
18500   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18501 else
18502   with_gnu_ld=no
18503 fi
18504
18505 ac_prog=ld
18506 if test "$GCC" = yes; then
18507   # Check if gcc -print-prog-name=ld gives a path.
18508   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18509 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18510   case $host in
18511   *-*-mingw*)
18512     # gcc leaves a trailing carriage return which upsets mingw
18513     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18514   *)
18515     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18516   esac
18517   case $ac_prog in
18518     # Accept absolute paths.
18519     [\\/]* | ?:[\\/]*)
18520       re_direlt='/[^/][^/]*/\.\./'
18521       # Canonicalize the pathname of ld
18522       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18523       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18524         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18525       done
18526       test -z "$LD" && LD="$ac_prog"
18527       ;;
18528   "")
18529     # If it fails, then pretend we aren't using GCC.
18530     ac_prog=ld
18531     ;;
18532   *)
18533     # If it is relative, then search for the first ld in PATH.
18534     with_gnu_ld=unknown
18535     ;;
18536   esac
18537 elif test "$with_gnu_ld" = yes; then
18538   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18539 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18540 else
18541   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18542 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18543 fi
18544 if test "${lt_cv_path_LD+set}" = set; then
18545   echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547   if test -z "$LD"; then
18548   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18549   for ac_dir in $PATH; do
18550     IFS="$lt_save_ifs"
18551     test -z "$ac_dir" && ac_dir=.
18552     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18553       lt_cv_path_LD="$ac_dir/$ac_prog"
18554       # Check to see if the program is GNU ld.  I'd rather use --version,
18555       # but apparently some variants of GNU ld only accept -v.
18556       # Break only if it was the GNU/non-GNU ld that we prefer.
18557       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18558       *GNU* | *'with BFD'*)
18559         test "$with_gnu_ld" != no && break
18560         ;;
18561       *)
18562         test "$with_gnu_ld" != yes && break
18563         ;;
18564       esac
18565     fi
18566   done
18567   IFS="$lt_save_ifs"
18568 else
18569   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18570 fi
18571 fi
18572
18573 LD="$lt_cv_path_LD"
18574 if test -n "$LD"; then
18575   { echo "$as_me:$LINENO: result: $LD" >&5
18576 echo "${ECHO_T}$LD" >&6; }
18577 else
18578   { echo "$as_me:$LINENO: result: no" >&5
18579 echo "${ECHO_T}no" >&6; }
18580 fi
18581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18583    { (exit 1); exit 1; }; }
18584 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18586 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18587   echo $ECHO_N "(cached) $ECHO_C" >&6
18588 else
18589   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18590 case `$LD -v 2>&1 </dev/null` in
18591 *GNU* | *'with BFD'*)
18592   lt_cv_prog_gnu_ld=yes
18593   ;;
18594 *)
18595   lt_cv_prog_gnu_ld=no
18596   ;;
18597 esac
18598 fi
18599 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18600 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18601 with_gnu_ld=$lt_cv_prog_gnu_ld
18602
18603
18604
18605   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18606   # archiving commands below assume that GNU ld is being used.
18607   if test "$with_gnu_ld" = yes; then
18608     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18609     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'
18610
18611     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18612     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18613
18614     # If archive_cmds runs LD, not CC, wlarc should be empty
18615     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18616     #     investigate it a little bit more. (MM)
18617     wlarc='${wl}'
18618
18619     # ancient GNU ld didn't support --whole-archive et. al.
18620     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18621         grep 'no-whole-archive' > /dev/null; then
18622       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18623     else
18624       whole_archive_flag_spec_CXX=
18625     fi
18626   else
18627     with_gnu_ld=no
18628     wlarc=
18629
18630     # A generic and very simple default shared library creation
18631     # command for GNU C++ for the case where it uses the native
18632     # linker, instead of GNU ld.  If possible, this setting should
18633     # overridden to take advantage of the native linker features on
18634     # the platform it is being used on.
18635     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18636   fi
18637
18638   # Commands to make compiler produce verbose output that lists
18639   # what "hidden" libraries, object files and flags are used when
18640   # linking a shared library.
18641   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18642
18643 else
18644   GXX=no
18645   with_gnu_ld=no
18646   wlarc=
18647 fi
18648
18649 # PORTME: fill in a description of your system's C++ link characteristics
18650 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18651 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18652 ld_shlibs_CXX=yes
18653 case $host_os in
18654   aix3*)
18655     # FIXME: insert proper C++ library support
18656     ld_shlibs_CXX=no
18657     ;;
18658   aix4* | aix5*)
18659     if test "$host_cpu" = ia64; then
18660       # On IA64, the linker does run time linking by default, so we don't
18661       # have to do anything special.
18662       aix_use_runtimelinking=no
18663       exp_sym_flag='-Bexport'
18664       no_entry_flag=""
18665     else
18666       aix_use_runtimelinking=no
18667
18668       # Test if we are trying to use run time linking or normal
18669       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18670       # need to do runtime linking.
18671       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18672         for ld_flag in $LDFLAGS; do
18673           case $ld_flag in
18674           *-brtl*)
18675             aix_use_runtimelinking=yes
18676             break
18677             ;;
18678           esac
18679         done
18680         ;;
18681       esac
18682
18683       exp_sym_flag='-bexport'
18684       no_entry_flag='-bnoentry'
18685     fi
18686
18687     # When large executables or shared objects are built, AIX ld can
18688     # have problems creating the table of contents.  If linking a library
18689     # or program results in "error TOC overflow" add -mminimal-toc to
18690     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18691     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18692
18693     archive_cmds_CXX=''
18694     hardcode_direct_CXX=yes
18695     hardcode_libdir_separator_CXX=':'
18696     link_all_deplibs_CXX=yes
18697
18698     if test "$GXX" = yes; then
18699       case $host_os in aix4.[012]|aix4.[012].*)
18700       # We only want to do this on AIX 4.2 and lower, the check
18701       # below for broken collect2 doesn't work under 4.3+
18702         collect2name=`${CC} -print-prog-name=collect2`
18703         if test -f "$collect2name" && \
18704            strings "$collect2name" | grep resolve_lib_name >/dev/null
18705         then
18706           # We have reworked collect2
18707           hardcode_direct_CXX=yes
18708         else
18709           # We have old collect2
18710           hardcode_direct_CXX=unsupported
18711           # It fails to find uninstalled libraries when the uninstalled
18712           # path is not listed in the libpath.  Setting hardcode_minus_L
18713           # to unsupported forces relinking
18714           hardcode_minus_L_CXX=yes
18715           hardcode_libdir_flag_spec_CXX='-L$libdir'
18716           hardcode_libdir_separator_CXX=
18717         fi
18718         ;;
18719       esac
18720       shared_flag='-shared'
18721       if test "$aix_use_runtimelinking" = yes; then
18722         shared_flag="$shared_flag "'${wl}-G'
18723       fi
18724     else
18725       # not using gcc
18726       if test "$host_cpu" = ia64; then
18727         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18728         # chokes on -Wl,-G. The following line is correct:
18729         shared_flag='-G'
18730       else
18731         if test "$aix_use_runtimelinking" = yes; then
18732           shared_flag='${wl}-G'
18733         else
18734           shared_flag='${wl}-bM:SRE'
18735         fi
18736       fi
18737     fi
18738
18739     # It seems that -bexpall does not export symbols beginning with
18740     # underscore (_), so it is better to generate a list of symbols to export.
18741     always_export_symbols_CXX=yes
18742     if test "$aix_use_runtimelinking" = yes; then
18743       # Warning - without using the other runtime loading flags (-brtl),
18744       # -berok will link without error, but may produce a broken library.
18745       allow_undefined_flag_CXX='-berok'
18746       # Determine the default libpath from the value encoded in an empty executable.
18747       cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753
18754 int
18755 main ()
18756 {
18757
18758   ;
18759   return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_link") 2>conftest.er1
18770   ac_status=$?
18771   grep -v '^ *+' conftest.er1 >conftest.err
18772   rm -f conftest.er1
18773   cat conftest.err >&5
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); } &&
18776          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18777   { (case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_try") 2>&5
18783   ac_status=$?
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); }; } &&
18786          { ac_try='test -s conftest$ac_exeext'
18787   { (case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_try") 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; }; then
18796
18797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18798 }'`
18799 # Check for a 64-bit object if we didn't find anything.
18800 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; }
18801 }'`; fi
18802 else
18803   echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806
18807 fi
18808
18809 rm -f core conftest.err conftest.$ac_objext \
18810       conftest$ac_exeext conftest.$ac_ext
18811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18812
18813       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18814
18815       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"
18816      else
18817       if test "$host_cpu" = ia64; then
18818         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18819         allow_undefined_flag_CXX="-z nodefs"
18820         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"
18821       else
18822         # Determine the default libpath from the value encoded in an empty executable.
18823         cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829
18830 int
18831 main ()
18832 {
18833
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_link") 2>conftest.er1
18846   ac_status=$?
18847   grep -v '^ *+' conftest.er1 >conftest.err
18848   rm -f conftest.er1
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); } &&
18852          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18853   { (case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_try") 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; } &&
18862          { ac_try='test -s conftest$ac_exeext'
18863   { (case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_try") 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); }; }; then
18872
18873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18874 }'`
18875 # Check for a 64-bit object if we didn't find anything.
18876 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; }
18877 }'`; fi
18878 else
18879   echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882
18883 fi
18884
18885 rm -f core conftest.err conftest.$ac_objext \
18886       conftest$ac_exeext conftest.$ac_ext
18887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18888
18889         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18890         # Warning - without using the other run time loading flags,
18891         # -berok will link without error, but may produce a broken library.
18892         no_undefined_flag_CXX=' ${wl}-bernotok'
18893         allow_undefined_flag_CXX=' ${wl}-berok'
18894         # Exported symbols can be pulled into shared objects from archives
18895         whole_archive_flag_spec_CXX='$convenience'
18896         archive_cmds_need_lc_CXX=yes
18897         # This is similar to how AIX traditionally builds its shared libraries.
18898         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'
18899       fi
18900     fi
18901     ;;
18902
18903   beos*)
18904     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18905       allow_undefined_flag_CXX=unsupported
18906       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18907       # support --undefined.  This deserves some investigation.  FIXME
18908       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18909     else
18910       ld_shlibs_CXX=no
18911     fi
18912     ;;
18913
18914   chorus*)
18915     case $cc_basename in
18916       *)
18917         # FIXME: insert proper C++ library support
18918         ld_shlibs_CXX=no
18919         ;;
18920     esac
18921     ;;
18922
18923   cygwin* | mingw* | pw32*)
18924     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18925     # as there is no search path for DLLs.
18926     hardcode_libdir_flag_spec_CXX='-L$libdir'
18927     allow_undefined_flag_CXX=unsupported
18928     always_export_symbols_CXX=no
18929     enable_shared_with_static_runtimes_CXX=yes
18930
18931     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18932       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'
18933       # If the export-symbols file already is a .def file (1st line
18934       # is EXPORTS), use it as is; otherwise, prepend...
18935       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18936         cp $export_symbols $output_objdir/$soname.def;
18937       else
18938         echo EXPORTS > $output_objdir/$soname.def;
18939         cat $export_symbols >> $output_objdir/$soname.def;
18940       fi~
18941       $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'
18942     else
18943       ld_shlibs_CXX=no
18944     fi
18945   ;;
18946       darwin* | rhapsody*)
18947         case $host_os in
18948         rhapsody* | darwin1.[012])
18949          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18950          ;;
18951        *) # Darwin 1.3 on
18952          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18953            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18954          else
18955            case ${MACOSX_DEPLOYMENT_TARGET} in
18956              10.[012])
18957                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18958                ;;
18959              10.*)
18960                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18961                ;;
18962            esac
18963          fi
18964          ;;
18965         esac
18966       archive_cmds_need_lc_CXX=no
18967       hardcode_direct_CXX=no
18968       hardcode_automatic_CXX=yes
18969       hardcode_shlibpath_var_CXX=unsupported
18970       whole_archive_flag_spec_CXX=''
18971       link_all_deplibs_CXX=yes
18972
18973     if test "$GXX" = yes ; then
18974       lt_int_apple_cc_single_mod=no
18975       output_verbose_link_cmd='echo'
18976       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18977        lt_int_apple_cc_single_mod=yes
18978       fi
18979       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18980        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18981       else
18982           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'
18983         fi
18984         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18985         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18986           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18987             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}'
18988           else
18989             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}'
18990           fi
18991             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}'
18992       else
18993       case $cc_basename in
18994         xlc*)
18995          output_verbose_link_cmd='echo'
18996           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'
18997           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18998           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18999           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}'
19000           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}'
19001           ;;
19002        *)
19003          ld_shlibs_CXX=no
19004           ;;
19005       esac
19006       fi
19007         ;;
19008
19009   dgux*)
19010     case $cc_basename in
19011       ec++*)
19012         # FIXME: insert proper C++ library support
19013         ld_shlibs_CXX=no
19014         ;;
19015       ghcx*)
19016         # Green Hills C++ Compiler
19017         # FIXME: insert proper C++ library support
19018         ld_shlibs_CXX=no
19019         ;;
19020       *)
19021         # FIXME: insert proper C++ library support
19022         ld_shlibs_CXX=no
19023         ;;
19024     esac
19025     ;;
19026   freebsd[12]*)
19027     # C++ shared libraries reported to be fairly broken before switch to ELF
19028     ld_shlibs_CXX=no
19029     ;;
19030   freebsd-elf*)
19031     archive_cmds_need_lc_CXX=no
19032     ;;
19033   freebsd* | kfreebsd*-gnu | dragonfly*)
19034     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19035     # conventions
19036     ld_shlibs_CXX=yes
19037     ;;
19038   gnu*)
19039     ;;
19040   hpux9*)
19041     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042     hardcode_libdir_separator_CXX=:
19043     export_dynamic_flag_spec_CXX='${wl}-E'
19044     hardcode_direct_CXX=yes
19045     hardcode_minus_L_CXX=yes # Not in the search PATH,
19046                                 # but as the default
19047                                 # location of the library.
19048
19049     case $cc_basename in
19050     CC*)
19051       # FIXME: insert proper C++ library support
19052       ld_shlibs_CXX=no
19053       ;;
19054     aCC*)
19055       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'
19056       # Commands to make compiler produce verbose output that lists
19057       # what "hidden" libraries, object files and flags are used when
19058       # linking a shared library.
19059       #
19060       # There doesn't appear to be a way to prevent this compiler from
19061       # explicitly linking system object files so we need to strip them
19062       # from the output so that they don't get included in the library
19063       # dependencies.
19064       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'
19065       ;;
19066     *)
19067       if test "$GXX" = yes; then
19068         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'
19069       else
19070         # FIXME: insert proper C++ library support
19071         ld_shlibs_CXX=no
19072       fi
19073       ;;
19074     esac
19075     ;;
19076   hpux10*|hpux11*)
19077     if test $with_gnu_ld = no; then
19078       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19079       hardcode_libdir_separator_CXX=:
19080
19081       case $host_cpu in
19082       hppa*64*|ia64*)
19083         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19084         ;;
19085       *)
19086         export_dynamic_flag_spec_CXX='${wl}-E'
19087         ;;
19088       esac
19089     fi
19090     case $host_cpu in
19091     hppa*64*|ia64*)
19092       hardcode_direct_CXX=no
19093       hardcode_shlibpath_var_CXX=no
19094       ;;
19095     *)
19096       hardcode_direct_CXX=yes
19097       hardcode_minus_L_CXX=yes # Not in the search PATH,
19098                                               # but as the default
19099                                               # location of the library.
19100       ;;
19101     esac
19102
19103     case $cc_basename in
19104       CC*)
19105         # FIXME: insert proper C++ library support
19106         ld_shlibs_CXX=no
19107         ;;
19108       aCC*)
19109         case $host_cpu in
19110         hppa*64*)
19111           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19112           ;;
19113         ia64*)
19114           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19115           ;;
19116         *)
19117           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118           ;;
19119         esac
19120         # Commands to make compiler produce verbose output that lists
19121         # what "hidden" libraries, object files and flags are used when
19122         # linking a shared library.
19123         #
19124         # There doesn't appear to be a way to prevent this compiler from
19125         # explicitly linking system object files so we need to strip them
19126         # from the output so that they don't get included in the library
19127         # dependencies.
19128         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'
19129         ;;
19130       *)
19131         if test "$GXX" = yes; then
19132           if test $with_gnu_ld = no; then
19133             case $host_cpu in
19134             hppa*64*)
19135               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19136               ;;
19137             ia64*)
19138               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19139               ;;
19140             *)
19141               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'
19142               ;;
19143             esac
19144           fi
19145         else
19146           # FIXME: insert proper C++ library support
19147           ld_shlibs_CXX=no
19148         fi
19149         ;;
19150     esac
19151     ;;
19152   interix3*)
19153     hardcode_direct_CXX=no
19154     hardcode_shlibpath_var_CXX=no
19155     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19156     export_dynamic_flag_spec_CXX='${wl}-E'
19157     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19158     # Instead, shared libraries are loaded at an image base (0x10000000 by
19159     # default) and relocated if they conflict, which is a slow very memory
19160     # consuming and fragmenting process.  To avoid this, we pick a random,
19161     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19162     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19163     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'
19164     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'
19165     ;;
19166   irix5* | irix6*)
19167     case $cc_basename in
19168       CC*)
19169         # SGI C++
19170         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'
19171
19172         # Archives containing C++ object files must be created using
19173         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19174         # necessary to make sure instantiated templates are included
19175         # in the archive.
19176         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19177         ;;
19178       *)
19179         if test "$GXX" = yes; then
19180           if test "$with_gnu_ld" = no; then
19181             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'
19182           else
19183             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'
19184           fi
19185         fi
19186         link_all_deplibs_CXX=yes
19187         ;;
19188     esac
19189     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19190     hardcode_libdir_separator_CXX=:
19191     ;;
19192   linux*)
19193     case $cc_basename in
19194       KCC*)
19195         # Kuck and Associates, Inc. (KAI) C++ Compiler
19196
19197         # KCC will only create a shared library if the output file
19198         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19199         # to its proper name (with version) after linking.
19200         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'
19201         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'
19202         # Commands to make compiler produce verbose output that lists
19203         # what "hidden" libraries, object files and flags are used when
19204         # linking a shared library.
19205         #
19206         # There doesn't appear to be a way to prevent this compiler from
19207         # explicitly linking system object files so we need to strip them
19208         # from the output so that they don't get included in the library
19209         # dependencies.
19210         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'
19211
19212         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19213         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19214
19215         # Archives containing C++ object files must be created using
19216         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19217         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19218         ;;
19219       icpc*)
19220         # Intel C++
19221         with_gnu_ld=yes
19222         # version 8.0 and above of icpc choke on multiply defined symbols
19223         # if we add $predep_objects and $postdep_objects, however 7.1 and
19224         # earlier do not add the objects themselves.
19225         case `$CC -V 2>&1` in
19226         *"Version 7."*)
19227           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19228           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'
19229           ;;
19230         *)  # Version 8.0 or newer
19231           tmp_idyn=
19232           case $host_cpu in
19233             ia64*) tmp_idyn=' -i_dynamic';;
19234           esac
19235           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236           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'
19237           ;;
19238         esac
19239         archive_cmds_need_lc_CXX=no
19240         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19241         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19242         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19243         ;;
19244       pgCC*)
19245         # Portland Group C++ compiler
19246         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19247         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'
19248
19249         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19250         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19251         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'
19252         ;;
19253       cxx*)
19254         # Compaq C++
19255         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19256         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'
19257
19258         runpath_var=LD_RUN_PATH
19259         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19260         hardcode_libdir_separator_CXX=:
19261
19262         # Commands to make compiler produce verbose output that lists
19263         # what "hidden" libraries, object files and flags are used when
19264         # linking a shared library.
19265         #
19266         # There doesn't appear to be a way to prevent this compiler from
19267         # explicitly linking system object files so we need to strip them
19268         # from the output so that they don't get included in the library
19269         # dependencies.
19270         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'
19271         ;;
19272     esac
19273     ;;
19274   lynxos*)
19275     # FIXME: insert proper C++ library support
19276     ld_shlibs_CXX=no
19277     ;;
19278   m88k*)
19279     # FIXME: insert proper C++ library support
19280     ld_shlibs_CXX=no
19281     ;;
19282   mvs*)
19283     case $cc_basename in
19284       cxx*)
19285         # FIXME: insert proper C++ library support
19286         ld_shlibs_CXX=no
19287         ;;
19288       *)
19289         # FIXME: insert proper C++ library support
19290         ld_shlibs_CXX=no
19291         ;;
19292     esac
19293     ;;
19294   netbsd*)
19295     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19296       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19297       wlarc=
19298       hardcode_libdir_flag_spec_CXX='-R$libdir'
19299       hardcode_direct_CXX=yes
19300       hardcode_shlibpath_var_CXX=no
19301     fi
19302     # Workaround some broken pre-1.5 toolchains
19303     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19304     ;;
19305   openbsd2*)
19306     # C++ shared libraries are fairly broken
19307     ld_shlibs_CXX=no
19308     ;;
19309   openbsd*)
19310     hardcode_direct_CXX=yes
19311     hardcode_shlibpath_var_CXX=no
19312     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19313     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19315       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19316       export_dynamic_flag_spec_CXX='${wl}-E'
19317       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19318     fi
19319     output_verbose_link_cmd='echo'
19320     ;;
19321   osf3*)
19322     case $cc_basename in
19323       KCC*)
19324         # Kuck and Associates, Inc. (KAI) C++ Compiler
19325
19326         # KCC will only create a shared library if the output file
19327         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19328         # to its proper name (with version) after linking.
19329         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'
19330
19331         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19332         hardcode_libdir_separator_CXX=:
19333
19334         # Archives containing C++ object files must be created using
19335         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19336         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19337
19338         ;;
19339       RCC*)
19340         # Rational C++ 2.4.1
19341         # FIXME: insert proper C++ library support
19342         ld_shlibs_CXX=no
19343         ;;
19344       cxx*)
19345         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19346         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'
19347
19348         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19349         hardcode_libdir_separator_CXX=:
19350
19351         # Commands to make compiler produce verbose output that lists
19352         # what "hidden" libraries, object files and flags are used when
19353         # linking a shared library.
19354         #
19355         # There doesn't appear to be a way to prevent this compiler from
19356         # explicitly linking system object files so we need to strip them
19357         # from the output so that they don't get included in the library
19358         # dependencies.
19359         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'
19360         ;;
19361       *)
19362         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19363           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19364           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'
19365
19366           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19367           hardcode_libdir_separator_CXX=:
19368
19369           # Commands to make compiler produce verbose output that lists
19370           # what "hidden" libraries, object files and flags are used when
19371           # linking a shared library.
19372           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19373
19374         else
19375           # FIXME: insert proper C++ library support
19376           ld_shlibs_CXX=no
19377         fi
19378         ;;
19379     esac
19380     ;;
19381   osf4* | osf5*)
19382     case $cc_basename in
19383       KCC*)
19384         # Kuck and Associates, Inc. (KAI) C++ Compiler
19385
19386         # KCC will only create a shared library if the output file
19387         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19388         # to its proper name (with version) after linking.
19389         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'
19390
19391         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19392         hardcode_libdir_separator_CXX=:
19393
19394         # Archives containing C++ object files must be created using
19395         # the KAI C++ compiler.
19396         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19397         ;;
19398       RCC*)
19399         # Rational C++ 2.4.1
19400         # FIXME: insert proper C++ library support
19401         ld_shlibs_CXX=no
19402         ;;
19403       cxx*)
19404         allow_undefined_flag_CXX=' -expect_unresolved \*'
19405         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'
19406         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19407           echo "-hidden">> $lib.exp~
19408           $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~
19409           $rm $lib.exp'
19410
19411         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19412         hardcode_libdir_separator_CXX=:
19413
19414         # Commands to make compiler produce verbose output that lists
19415         # what "hidden" libraries, object files and flags are used when
19416         # linking a shared library.
19417         #
19418         # There doesn't appear to be a way to prevent this compiler from
19419         # explicitly linking system object files so we need to strip them
19420         # from the output so that they don't get included in the library
19421         # dependencies.
19422         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'
19423         ;;
19424       *)
19425         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19426           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19427          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'
19428
19429           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19430           hardcode_libdir_separator_CXX=:
19431
19432           # Commands to make compiler produce verbose output that lists
19433           # what "hidden" libraries, object files and flags are used when
19434           # linking a shared library.
19435           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19436
19437         else
19438           # FIXME: insert proper C++ library support
19439           ld_shlibs_CXX=no
19440         fi
19441         ;;
19442     esac
19443     ;;
19444   psos*)
19445     # FIXME: insert proper C++ library support
19446     ld_shlibs_CXX=no
19447     ;;
19448   sunos4*)
19449     case $cc_basename in
19450       CC*)
19451         # Sun C++ 4.x
19452         # FIXME: insert proper C++ library support
19453         ld_shlibs_CXX=no
19454         ;;
19455       lcc*)
19456         # Lucid
19457         # FIXME: insert proper C++ library support
19458         ld_shlibs_CXX=no
19459         ;;
19460       *)
19461         # FIXME: insert proper C++ library support
19462         ld_shlibs_CXX=no
19463         ;;
19464     esac
19465     ;;
19466   solaris*)
19467     case $cc_basename in
19468       CC*)
19469         # Sun C++ 4.2, 5.x and Centerline C++
19470         archive_cmds_need_lc_CXX=yes
19471         no_undefined_flag_CXX=' -zdefs'
19472         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19473         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19474         $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'
19475
19476         hardcode_libdir_flag_spec_CXX='-R$libdir'
19477         hardcode_shlibpath_var_CXX=no
19478         case $host_os in
19479           solaris2.[0-5] | solaris2.[0-5].*) ;;
19480           *)
19481             # The C++ compiler is used as linker so we must use $wl
19482             # flag to pass the commands to the underlying system
19483             # linker. We must also pass each convience library through
19484             # to the system linker between allextract/defaultextract.
19485             # The C++ compiler will combine linker options so we
19486             # cannot just pass the convience library names through
19487             # without $wl.
19488             # Supported since Solaris 2.6 (maybe 2.5.1?)
19489             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'
19490             ;;
19491         esac
19492         link_all_deplibs_CXX=yes
19493
19494         output_verbose_link_cmd='echo'
19495
19496         # Archives containing C++ object files must be created using
19497         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19498         # necessary to make sure instantiated templates are included
19499         # in the archive.
19500         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19501         ;;
19502       gcx*)
19503         # Green Hills C++ Compiler
19504         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19505
19506         # The C++ compiler must be used to create the archive.
19507         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19508         ;;
19509       *)
19510         # GNU C++ compiler with Solaris linker
19511         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19512           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19513           if $CC --version | grep -v '^2\.7' > /dev/null; then
19514             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19515             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19516                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19517
19518             # Commands to make compiler produce verbose output that lists
19519             # what "hidden" libraries, object files and flags are used when
19520             # linking a shared library.
19521             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19522           else
19523             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19524             # platform.
19525             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19526             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19527                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19528
19529             # Commands to make compiler produce verbose output that lists
19530             # what "hidden" libraries, object files and flags are used when
19531             # linking a shared library.
19532             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19533           fi
19534
19535           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19536         fi
19537         ;;
19538     esac
19539     ;;
19540   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19541     no_undefined_flag_CXX='${wl}-z,text'
19542     archive_cmds_need_lc_CXX=no
19543     hardcode_shlibpath_var_CXX=no
19544     runpath_var='LD_RUN_PATH'
19545
19546     case $cc_basename in
19547       CC*)
19548         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19549         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19550         ;;
19551       *)
19552         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554         ;;
19555     esac
19556     ;;
19557   sysv5* | sco3.2v5* | sco5v6*)
19558     # Note: We can NOT use -z defs as we might desire, because we do not
19559     # link with -lc, and that would cause any symbols used from libc to
19560     # always be unresolved, which means just about no library would
19561     # ever link correctly.  If we're not using GNU ld we use -z text
19562     # though, which does catch some bad symbols but isn't as heavy-handed
19563     # as -z defs.
19564     # For security reasons, it is highly recommended that you always
19565     # use absolute paths for naming shared libraries, and exclude the
19566     # DT_RUNPATH tag from executables and libraries.  But doing so
19567     # requires that you compile everything twice, which is a pain.
19568     # So that behaviour is only enabled if SCOABSPATH is set to a
19569     # non-empty value in the environment.  Most likely only useful for
19570     # creating official distributions of packages.
19571     # This is a hack until libtool officially supports absolute path
19572     # names for shared libraries.
19573     no_undefined_flag_CXX='${wl}-z,text'
19574     allow_undefined_flag_CXX='${wl}-z,nodefs'
19575     archive_cmds_need_lc_CXX=no
19576     hardcode_shlibpath_var_CXX=no
19577     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19578     hardcode_libdir_separator_CXX=':'
19579     link_all_deplibs_CXX=yes
19580     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19581     runpath_var='LD_RUN_PATH'
19582
19583     case $cc_basename in
19584       CC*)
19585         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19586         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19587         ;;
19588       *)
19589         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19591         ;;
19592     esac
19593     ;;
19594   tandem*)
19595     case $cc_basename in
19596       NCC*)
19597         # NonStop-UX NCC 3.20
19598         # FIXME: insert proper C++ library support
19599         ld_shlibs_CXX=no
19600         ;;
19601       *)
19602         # FIXME: insert proper C++ library support
19603         ld_shlibs_CXX=no
19604         ;;
19605     esac
19606     ;;
19607   vxworks*)
19608     # FIXME: insert proper C++ library support
19609     ld_shlibs_CXX=no
19610     ;;
19611   *)
19612     # FIXME: insert proper C++ library support
19613     ld_shlibs_CXX=no
19614     ;;
19615 esac
19616 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19617 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19618 test "$ld_shlibs_CXX" = no && can_build_shared=no
19619
19620 GCC_CXX="$GXX"
19621 LD_CXX="$LD"
19622
19623
19624 cat > conftest.$ac_ext <<EOF
19625 class Foo
19626 {
19627 public:
19628   Foo (void) { a = 0; }
19629 private:
19630   int a;
19631 };
19632 EOF
19633
19634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635   (eval $ac_compile) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; then
19639   # Parse the compiler output and extract the necessary
19640   # objects, libraries and library flags.
19641
19642   # Sentinel used to keep track of whether or not we are before
19643   # the conftest object file.
19644   pre_test_object_deps_done=no
19645
19646   # The `*' in the case matches for architectures that use `case' in
19647   # $output_verbose_cmd can trigger glob expansion during the loop
19648   # eval without this substitution.
19649   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19650
19651   for p in `eval $output_verbose_link_cmd`; do
19652     case $p in
19653
19654     -L* | -R* | -l*)
19655        # Some compilers place space between "-{L,R}" and the path.
19656        # Remove the space.
19657        if test $p = "-L" \
19658           || test $p = "-R"; then
19659          prev=$p
19660          continue
19661        else
19662          prev=
19663        fi
19664
19665        if test "$pre_test_object_deps_done" = no; then
19666          case $p in
19667          -L* | -R*)
19668            # Internal compiler library paths should come after those
19669            # provided the user.  The postdeps already come after the
19670            # user supplied libs so there is no need to process them.
19671            if test -z "$compiler_lib_search_path_CXX"; then
19672              compiler_lib_search_path_CXX="${prev}${p}"
19673            else
19674              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19675            fi
19676            ;;
19677          # The "-l" case would never come before the object being
19678          # linked, so don't bother handling this case.
19679          esac
19680        else
19681          if test -z "$postdeps_CXX"; then
19682            postdeps_CXX="${prev}${p}"
19683          else
19684            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19685          fi
19686        fi
19687        ;;
19688
19689     *.$objext)
19690        # This assumes that the test object file only shows up
19691        # once in the compiler output.
19692        if test "$p" = "conftest.$objext"; then
19693          pre_test_object_deps_done=yes
19694          continue
19695        fi
19696
19697        if test "$pre_test_object_deps_done" = no; then
19698          if test -z "$predep_objects_CXX"; then
19699            predep_objects_CXX="$p"
19700          else
19701            predep_objects_CXX="$predep_objects_CXX $p"
19702          fi
19703        else
19704          if test -z "$postdep_objects_CXX"; then
19705            postdep_objects_CXX="$p"
19706          else
19707            postdep_objects_CXX="$postdep_objects_CXX $p"
19708          fi
19709        fi
19710        ;;
19711
19712     *) ;; # Ignore the rest.
19713
19714     esac
19715   done
19716
19717   # Clean up.
19718   rm -f a.out a.exe
19719 else
19720   echo "libtool.m4: error: problem compiling CXX test program"
19721 fi
19722
19723 $rm -f confest.$objext
19724
19725 # PORTME: override above test on systems where it is broken
19726 case $host_os in
19727 interix3*)
19728   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19729   # hack all around it, let's just trust "g++" to DTRT.
19730   predep_objects_CXX=
19731   postdep_objects_CXX=
19732   postdeps_CXX=
19733   ;;
19734
19735 solaris*)
19736   case $cc_basename in
19737   CC*)
19738     # Adding this requires a known-good setup of shared libraries for
19739     # Sun compiler versions before 5.6, else PIC objects from an old
19740     # archive will be linked into the output, leading to subtle bugs.
19741     postdeps_CXX='-lCstd -lCrun'
19742     ;;
19743   esac
19744   ;;
19745 esac
19746
19747
19748 case " $postdeps_CXX " in
19749 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19750 esac
19751
19752 lt_prog_compiler_wl_CXX=
19753 lt_prog_compiler_pic_CXX=
19754 lt_prog_compiler_static_CXX=
19755
19756 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19758
19759   # C++ specific cases for pic, static, wl, etc.
19760   if test "$GXX" = yes; then
19761     lt_prog_compiler_wl_CXX='-Wl,'
19762     lt_prog_compiler_static_CXX='-static'
19763
19764     case $host_os in
19765     aix*)
19766       # All AIX code is PIC.
19767       if test "$host_cpu" = ia64; then
19768         # AIX 5 now supports IA64 processor
19769         lt_prog_compiler_static_CXX='-Bstatic'
19770       fi
19771       ;;
19772     amigaos*)
19773       # FIXME: we need at least 68020 code to build shared libraries, but
19774       # adding the `-m68020' flag to GCC prevents building anything better,
19775       # like `-m68040'.
19776       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19777       ;;
19778     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19779       # PIC is the default for these OSes.
19780       ;;
19781     mingw* | os2* | pw32*)
19782       # This hack is so that the source file can tell whether it is being
19783       # built for inclusion in a dll (and should export symbols for example).
19784       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19785       ;;
19786     darwin* | rhapsody*)
19787       # PIC is the default on this platform
19788       # Common symbols not allowed in MH_DYLIB files
19789       lt_prog_compiler_pic_CXX='-fno-common'
19790       ;;
19791     *djgpp*)
19792       # DJGPP does not support shared libraries at all
19793       lt_prog_compiler_pic_CXX=
19794       ;;
19795     interix3*)
19796       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19797       # Instead, we relocate shared libraries at runtime.
19798       ;;
19799     sysv4*MP*)
19800       if test -d /usr/nec; then
19801         lt_prog_compiler_pic_CXX=-Kconform_pic
19802       fi
19803       ;;
19804     hpux*)
19805       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19806       # not for PA HP-UX.
19807       case $host_cpu in
19808       hppa*64*|ia64*)
19809         ;;
19810       *)
19811         lt_prog_compiler_pic_CXX='-fPIC'
19812         ;;
19813       esac
19814       ;;
19815     *)
19816       lt_prog_compiler_pic_CXX='-fPIC'
19817       ;;
19818     esac
19819   else
19820     case $host_os in
19821       aix4* | aix5*)
19822         # All AIX code is PIC.
19823         if test "$host_cpu" = ia64; then
19824           # AIX 5 now supports IA64 processor
19825           lt_prog_compiler_static_CXX='-Bstatic'
19826         else
19827           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19828         fi
19829         ;;
19830       chorus*)
19831         case $cc_basename in
19832         cxch68*)
19833           # Green Hills C++ Compiler
19834           # _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"
19835           ;;
19836         esac
19837         ;;
19838        darwin*)
19839          # PIC is the default on this platform
19840          # Common symbols not allowed in MH_DYLIB files
19841          case $cc_basename in
19842            xlc*)
19843            lt_prog_compiler_pic_CXX='-qnocommon'
19844            lt_prog_compiler_wl_CXX='-Wl,'
19845            ;;
19846          esac
19847        ;;
19848       dgux*)
19849         case $cc_basename in
19850           ec++*)
19851             lt_prog_compiler_pic_CXX='-KPIC'
19852             ;;
19853           ghcx*)
19854             # Green Hills C++ Compiler
19855             lt_prog_compiler_pic_CXX='-pic'
19856             ;;
19857           *)
19858             ;;
19859         esac
19860         ;;
19861       freebsd* | kfreebsd*-gnu | dragonfly*)
19862         # FreeBSD uses GNU C++
19863         ;;
19864       hpux9* | hpux10* | hpux11*)
19865         case $cc_basename in
19866           CC*)
19867             lt_prog_compiler_wl_CXX='-Wl,'
19868             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19869             if test "$host_cpu" != ia64; then
19870               lt_prog_compiler_pic_CXX='+Z'
19871             fi
19872             ;;
19873           aCC*)
19874             lt_prog_compiler_wl_CXX='-Wl,'
19875             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19876             case $host_cpu in
19877             hppa*64*|ia64*)
19878               # +Z the default
19879               ;;
19880             *)
19881               lt_prog_compiler_pic_CXX='+Z'
19882               ;;
19883             esac
19884             ;;
19885           *)
19886             ;;
19887         esac
19888         ;;
19889       interix*)
19890         # This is c89, which is MS Visual C++ (no shared libs)
19891         # Anyone wants to do a port?
19892         ;;
19893       irix5* | irix6* | nonstopux*)
19894         case $cc_basename in
19895           CC*)
19896             lt_prog_compiler_wl_CXX='-Wl,'
19897             lt_prog_compiler_static_CXX='-non_shared'
19898             # CC pic flag -KPIC is the default.
19899             ;;
19900           *)
19901             ;;
19902         esac
19903         ;;
19904       linux*)
19905         case $cc_basename in
19906           KCC*)
19907             # KAI C++ Compiler
19908             lt_prog_compiler_wl_CXX='--backend -Wl,'
19909             lt_prog_compiler_pic_CXX='-fPIC'
19910             ;;
19911           icpc* | ecpc*)
19912             # Intel C++
19913             lt_prog_compiler_wl_CXX='-Wl,'
19914             lt_prog_compiler_pic_CXX='-KPIC'
19915             lt_prog_compiler_static_CXX='-static'
19916             ;;
19917           pgCC*)
19918             # Portland Group C++ compiler.
19919             lt_prog_compiler_wl_CXX='-Wl,'
19920             lt_prog_compiler_pic_CXX='-fpic'
19921             lt_prog_compiler_static_CXX='-Bstatic'
19922             ;;
19923           cxx*)
19924             # Compaq C++
19925             # Make sure the PIC flag is empty.  It appears that all Alpha
19926             # Linux and Compaq Tru64 Unix objects are PIC.
19927             lt_prog_compiler_pic_CXX=
19928             lt_prog_compiler_static_CXX='-non_shared'
19929             ;;
19930           *)
19931             ;;
19932         esac
19933         ;;
19934       lynxos*)
19935         ;;
19936       m88k*)
19937         ;;
19938       mvs*)
19939         case $cc_basename in
19940           cxx*)
19941             lt_prog_compiler_pic_CXX='-W c,exportall'
19942             ;;
19943           *)
19944             ;;
19945         esac
19946         ;;
19947       netbsd*)
19948         ;;
19949       osf3* | osf4* | osf5*)
19950         case $cc_basename in
19951           KCC*)
19952             lt_prog_compiler_wl_CXX='--backend -Wl,'
19953             ;;
19954           RCC*)
19955             # Rational C++ 2.4.1
19956             lt_prog_compiler_pic_CXX='-pic'
19957             ;;
19958           cxx*)
19959             # Digital/Compaq C++
19960             lt_prog_compiler_wl_CXX='-Wl,'
19961             # Make sure the PIC flag is empty.  It appears that all Alpha
19962             # Linux and Compaq Tru64 Unix objects are PIC.
19963             lt_prog_compiler_pic_CXX=
19964             lt_prog_compiler_static_CXX='-non_shared'
19965             ;;
19966           *)
19967             ;;
19968         esac
19969         ;;
19970       psos*)
19971         ;;
19972       solaris*)
19973         case $cc_basename in
19974           CC*)
19975             # Sun C++ 4.2, 5.x and Centerline C++
19976             lt_prog_compiler_pic_CXX='-KPIC'
19977             lt_prog_compiler_static_CXX='-Bstatic'
19978             lt_prog_compiler_wl_CXX='-Qoption ld '
19979             ;;
19980           gcx*)
19981             # Green Hills C++ Compiler
19982             lt_prog_compiler_pic_CXX='-PIC'
19983             ;;
19984           *)
19985             ;;
19986         esac
19987         ;;
19988       sunos4*)
19989         case $cc_basename in
19990           CC*)
19991             # Sun C++ 4.x
19992             lt_prog_compiler_pic_CXX='-pic'
19993             lt_prog_compiler_static_CXX='-Bstatic'
19994             ;;
19995           lcc*)
19996             # Lucid
19997             lt_prog_compiler_pic_CXX='-pic'
19998             ;;
19999           *)
20000             ;;
20001         esac
20002         ;;
20003       tandem*)
20004         case $cc_basename in
20005           NCC*)
20006             # NonStop-UX NCC 3.20
20007             lt_prog_compiler_pic_CXX='-KPIC'
20008             ;;
20009           *)
20010             ;;
20011         esac
20012         ;;
20013       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20014         case $cc_basename in
20015           CC*)
20016             lt_prog_compiler_wl_CXX='-Wl,'
20017             lt_prog_compiler_pic_CXX='-KPIC'
20018             lt_prog_compiler_static_CXX='-Bstatic'
20019             ;;
20020         esac
20021         ;;
20022       vxworks*)
20023         ;;
20024       *)
20025         lt_prog_compiler_can_build_shared_CXX=no
20026         ;;
20027     esac
20028   fi
20029
20030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20031 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20032
20033 #
20034 # Check to make sure the PIC flag actually works.
20035 #
20036 if test -n "$lt_prog_compiler_pic_CXX"; then
20037
20038 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20040 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   lt_prog_compiler_pic_works_CXX=no
20044   ac_outfile=conftest.$ac_objext
20045    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20046    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20047    # Insert the option either (1) after the last *FLAGS variable, or
20048    # (2) before a word containing "conftest.", or (3) at the end.
20049    # Note that $ac_compile itself does not contain backslashes and begins
20050    # with a dollar sign (not a hyphen), so the echo should work correctly.
20051    # The option is referenced via a variable to avoid confusing sed.
20052    lt_compile=`echo "$ac_compile" | $SED \
20053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20055    -e 's:$: $lt_compiler_flag:'`
20056    (eval echo "\"\$as_me:20056: $lt_compile\"" >&5)
20057    (eval "$lt_compile" 2>conftest.err)
20058    ac_status=$?
20059    cat conftest.err >&5
20060    echo "$as_me:20060: \$? = $ac_status" >&5
20061    if (exit $ac_status) && test -s "$ac_outfile"; then
20062      # The compiler can only warn and ignore the option if not recognized
20063      # So say no if there are warnings other than the usual output.
20064      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20065      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20066      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20067        lt_prog_compiler_pic_works_CXX=yes
20068      fi
20069    fi
20070    $rm conftest*
20071
20072 fi
20073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20074 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20075
20076 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20077     case $lt_prog_compiler_pic_CXX in
20078      "" | " "*) ;;
20079      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20080      esac
20081 else
20082     lt_prog_compiler_pic_CXX=
20083      lt_prog_compiler_can_build_shared_CXX=no
20084 fi
20085
20086 fi
20087 case $host_os in
20088   # For platforms which do not support PIC, -DPIC is meaningless:
20089   *djgpp*)
20090     lt_prog_compiler_pic_CXX=
20091     ;;
20092   *)
20093     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20094     ;;
20095 esac
20096
20097 #
20098 # Check to make sure the static flag actually works.
20099 #
20100 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20101 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20102 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20103 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106   lt_prog_compiler_static_works_CXX=no
20107    save_LDFLAGS="$LDFLAGS"
20108    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20109    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20110    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20111      # The linker can only warn and ignore the option if not recognized
20112      # So say no if there are warnings
20113      if test -s conftest.err; then
20114        # Append any errors to the config.log.
20115        cat conftest.err 1>&5
20116        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20117        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20118        if diff conftest.exp conftest.er2 >/dev/null; then
20119          lt_prog_compiler_static_works_CXX=yes
20120        fi
20121      else
20122        lt_prog_compiler_static_works_CXX=yes
20123      fi
20124    fi
20125    $rm conftest*
20126    LDFLAGS="$save_LDFLAGS"
20127
20128 fi
20129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20130 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20131
20132 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20133     :
20134 else
20135     lt_prog_compiler_static_CXX=
20136 fi
20137
20138
20139 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20141 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   lt_cv_prog_compiler_c_o_CXX=no
20145    $rm -r conftest 2>/dev/null
20146    mkdir conftest
20147    cd conftest
20148    mkdir out
20149    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20150
20151    lt_compiler_flag="-o out/conftest2.$ac_objext"
20152    # Insert the option either (1) after the last *FLAGS variable, or
20153    # (2) before a word containing "conftest.", or (3) at the end.
20154    # Note that $ac_compile itself does not contain backslashes and begins
20155    # with a dollar sign (not a hyphen), so the echo should work correctly.
20156    lt_compile=`echo "$ac_compile" | $SED \
20157    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20158    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20159    -e 's:$: $lt_compiler_flag:'`
20160    (eval echo "\"\$as_me:20160: $lt_compile\"" >&5)
20161    (eval "$lt_compile" 2>out/conftest.err)
20162    ac_status=$?
20163    cat out/conftest.err >&5
20164    echo "$as_me:20164: \$? = $ac_status" >&5
20165    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20166    then
20167      # The compiler can only warn and ignore the option if not recognized
20168      # So say no if there are warnings
20169      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20170      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20171      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20172        lt_cv_prog_compiler_c_o_CXX=yes
20173      fi
20174    fi
20175    chmod u+w . 2>&5
20176    $rm conftest*
20177    # SGI C++ compiler will create directory out/ii_files/ for
20178    # template instantiation
20179    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20180    $rm out/* && rmdir out
20181    cd ..
20182    rmdir conftest
20183    $rm conftest*
20184
20185 fi
20186 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20187 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20188
20189
20190 hard_links="nottested"
20191 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20192   # do not overwrite the value of need_locks provided by the user
20193   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20194 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20195   hard_links=yes
20196   $rm conftest*
20197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20198   touch conftest.a
20199   ln conftest.a conftest.b 2>&5 || hard_links=no
20200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20201   { echo "$as_me:$LINENO: result: $hard_links" >&5
20202 echo "${ECHO_T}$hard_links" >&6; }
20203   if test "$hard_links" = no; then
20204     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20205 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20206     need_locks=warn
20207   fi
20208 else
20209   need_locks=no
20210 fi
20211
20212 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20213 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20214
20215   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20216   case $host_os in
20217   aix4* | aix5*)
20218     # If we're using GNU nm, then we don't want the "-C" option.
20219     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20220     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20221       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'
20222     else
20223       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'
20224     fi
20225     ;;
20226   pw32*)
20227     export_symbols_cmds_CXX="$ltdll_cmds"
20228   ;;
20229   cygwin* | mingw*)
20230     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'
20231   ;;
20232   *)
20233     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20234   ;;
20235   esac
20236
20237 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20238 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20239 test "$ld_shlibs_CXX" = no && can_build_shared=no
20240
20241 #
20242 # Do we need to explicitly link libc?
20243 #
20244 case "x$archive_cmds_need_lc_CXX" in
20245 x|xyes)
20246   # Assume -lc should be added
20247   archive_cmds_need_lc_CXX=yes
20248
20249   if test "$enable_shared" = yes && test "$GCC" = yes; then
20250     case $archive_cmds_CXX in
20251     *'~'*)
20252       # FIXME: we may have to deal with multi-command sequences.
20253       ;;
20254     '$CC '*)
20255       # Test whether the compiler implicitly links with -lc since on some
20256       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20257       # to ld, don't add -lc before -lgcc.
20258       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20259 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20260       $rm conftest*
20261       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20262
20263       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264   (eval $ac_compile) 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } 2>conftest.err; then
20268         soname=conftest
20269         lib=conftest
20270         libobjs=conftest.$ac_objext
20271         deplibs=
20272         wl=$lt_prog_compiler_wl_CXX
20273         pic_flag=$lt_prog_compiler_pic_CXX
20274         compiler_flags=-v
20275         linker_flags=-v
20276         verstring=
20277         output_objdir=.
20278         libname=conftest
20279         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20280         allow_undefined_flag_CXX=
20281         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20282   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }
20286         then
20287           archive_cmds_need_lc_CXX=no
20288         else
20289           archive_cmds_need_lc_CXX=yes
20290         fi
20291         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20292       else
20293         cat conftest.err 1>&5
20294       fi
20295       $rm conftest*
20296       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20297 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20298       ;;
20299     esac
20300   fi
20301   ;;
20302 esac
20303
20304 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20305 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20306 library_names_spec=
20307 libname_spec='lib$name'
20308 soname_spec=
20309 shrext_cmds=".so"
20310 postinstall_cmds=
20311 postuninstall_cmds=
20312 finish_cmds=
20313 finish_eval=
20314 shlibpath_var=
20315 shlibpath_overrides_runpath=unknown
20316 version_type=none
20317 dynamic_linker="$host_os ld.so"
20318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20319 if test "$GCC" = yes; then
20320   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20321   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20322     # if the path contains ";" then we assume it to be the separator
20323     # otherwise default to the standard path separator (i.e. ":") - it is
20324     # assumed that no part of a normal pathname contains ";" but that should
20325     # okay in the real world where ";" in dirpaths is itself problematic.
20326     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20327   else
20328     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20329   fi
20330 else
20331   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20332 fi
20333 need_lib_prefix=unknown
20334 hardcode_into_libs=no
20335
20336 # when you set need_version to no, make sure it does not cause -set_version
20337 # flags to be left without arguments
20338 need_version=unknown
20339
20340 case $host_os in
20341 aix3*)
20342   version_type=linux
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20344   shlibpath_var=LIBPATH
20345
20346   # AIX 3 has no versioning support, so we append a major version to the name.
20347   soname_spec='${libname}${release}${shared_ext}$major'
20348   ;;
20349
20350 aix4* | aix5*)
20351   version_type=linux
20352   need_lib_prefix=no
20353   need_version=no
20354   hardcode_into_libs=yes
20355   if test "$host_cpu" = ia64; then
20356     # AIX 5 supports IA64
20357     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20358     shlibpath_var=LD_LIBRARY_PATH
20359   else
20360     # With GCC up to 2.95.x, collect2 would create an import file
20361     # for dependence libraries.  The import file would start with
20362     # the line `#! .'.  This would cause the generated library to
20363     # depend on `.', always an invalid library.  This was fixed in
20364     # development snapshots of GCC prior to 3.0.
20365     case $host_os in
20366       aix4 | aix4.[01] | aix4.[01].*)
20367       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20368            echo ' yes '
20369            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20370         :
20371       else
20372         can_build_shared=no
20373       fi
20374       ;;
20375     esac
20376     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20377     # soname into executable. Probably we can add versioning support to
20378     # collect2, so additional links can be useful in future.
20379     if test "$aix_use_runtimelinking" = yes; then
20380       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20381       # instead of lib<name>.a to let people know that these are not
20382       # typical AIX shared libraries.
20383       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384     else
20385       # We preserve .a as extension for shared libraries through AIX4.2
20386       # and later when we are not doing run time linking.
20387       library_names_spec='${libname}${release}.a $libname.a'
20388       soname_spec='${libname}${release}${shared_ext}$major'
20389     fi
20390     shlibpath_var=LIBPATH
20391   fi
20392   ;;
20393
20394 amigaos*)
20395   library_names_spec='$libname.ixlibrary $libname.a'
20396   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20397   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'
20398   ;;
20399
20400 beos*)
20401   library_names_spec='${libname}${shared_ext}'
20402   dynamic_linker="$host_os ld.so"
20403   shlibpath_var=LIBRARY_PATH
20404   ;;
20405
20406 bsdi[45]*)
20407   version_type=linux
20408   need_version=no
20409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410   soname_spec='${libname}${release}${shared_ext}$major'
20411   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20412   shlibpath_var=LD_LIBRARY_PATH
20413   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20414   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20415   # the default ld.so.conf also contains /usr/contrib/lib and
20416   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20417   # libtool to hard-code these into programs
20418   ;;
20419
20420 cygwin* | mingw* | pw32*)
20421   version_type=windows
20422   shrext_cmds=".dll"
20423   need_version=no
20424   need_lib_prefix=no
20425
20426   case $GCC,$host_os in
20427   yes,cygwin* | yes,mingw* | yes,pw32*)
20428     library_names_spec='$libname.dll.a'
20429     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20430     postinstall_cmds='base_file=`basename \${file}`~
20431       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20432       dldir=$destdir/`dirname \$dlpath`~
20433       test -d \$dldir || mkdir -p \$dldir~
20434       $install_prog $dir/$dlname \$dldir/$dlname~
20435       chmod a+x \$dldir/$dlname'
20436     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20437       dlpath=$dir/\$dldll~
20438        $rm \$dlpath'
20439     shlibpath_overrides_runpath=yes
20440
20441     case $host_os in
20442     cygwin*)
20443       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20444       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20445       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20446       ;;
20447     mingw*)
20448       # MinGW DLLs use traditional 'lib' prefix
20449       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20450       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20451       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20452         # It is most probably a Windows format PATH printed by
20453         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20454         # path with ; separators, and with drive letters. We can handle the
20455         # drive letters (cygwin fileutils understands them), so leave them,
20456         # especially as we might pass files found there to a mingw objdump,
20457         # which wouldn't understand a cygwinified path. Ahh.
20458         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20459       else
20460         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20461       fi
20462       ;;
20463     pw32*)
20464       # pw32 DLLs use 'pw' prefix rather than 'lib'
20465       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20466       ;;
20467     esac
20468     ;;
20469
20470   *)
20471     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20472     ;;
20473   esac
20474   dynamic_linker='Win32 ld.exe'
20475   # FIXME: first we should search . and the directory the executable is in
20476   shlibpath_var=PATH
20477   ;;
20478
20479 darwin* | rhapsody*)
20480   dynamic_linker="$host_os dyld"
20481   version_type=darwin
20482   need_lib_prefix=no
20483   need_version=no
20484   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20485   soname_spec='${libname}${release}${major}$shared_ext'
20486   shlibpath_overrides_runpath=yes
20487   shlibpath_var=DYLD_LIBRARY_PATH
20488   shrext_cmds='.dylib'
20489   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20490   if test "$GCC" = yes; then
20491     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"`
20492   else
20493     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20494   fi
20495   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20496   ;;
20497
20498 dgux*)
20499   version_type=linux
20500   need_lib_prefix=no
20501   need_version=no
20502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20503   soname_spec='${libname}${release}${shared_ext}$major'
20504   shlibpath_var=LD_LIBRARY_PATH
20505   ;;
20506
20507 freebsd1*)
20508   dynamic_linker=no
20509   ;;
20510
20511 kfreebsd*-gnu)
20512   version_type=linux
20513   need_lib_prefix=no
20514   need_version=no
20515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20516   soname_spec='${libname}${release}${shared_ext}$major'
20517   shlibpath_var=LD_LIBRARY_PATH
20518   shlibpath_overrides_runpath=no
20519   hardcode_into_libs=yes
20520   dynamic_linker='GNU ld.so'
20521   ;;
20522
20523 freebsd* | dragonfly*)
20524   # DragonFly does not have aout.  When/if they implement a new
20525   # versioning mechanism, adjust this.
20526   if test -x /usr/bin/objformat; then
20527     objformat=`/usr/bin/objformat`
20528   else
20529     case $host_os in
20530     freebsd[123]*) objformat=aout ;;
20531     *) objformat=elf ;;
20532     esac
20533   fi
20534   version_type=freebsd-$objformat
20535   case $version_type in
20536     freebsd-elf*)
20537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20538       need_version=no
20539       need_lib_prefix=no
20540       ;;
20541     freebsd-*)
20542       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20543       need_version=yes
20544       ;;
20545   esac
20546   shlibpath_var=LD_LIBRARY_PATH
20547   case $host_os in
20548   freebsd2*)
20549     shlibpath_overrides_runpath=yes
20550     ;;
20551   freebsd3.[01]* | freebsdelf3.[01]*)
20552     shlibpath_overrides_runpath=yes
20553     hardcode_into_libs=yes
20554     ;;
20555   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20556   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20557     shlibpath_overrides_runpath=no
20558     hardcode_into_libs=yes
20559     ;;
20560   freebsd*) # from 4.6 on
20561     shlibpath_overrides_runpath=yes
20562     hardcode_into_libs=yes
20563     ;;
20564   esac
20565   ;;
20566
20567 gnu*)
20568   version_type=linux
20569   need_lib_prefix=no
20570   need_version=no
20571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20572   soname_spec='${libname}${release}${shared_ext}$major'
20573   shlibpath_var=LD_LIBRARY_PATH
20574   hardcode_into_libs=yes
20575   ;;
20576
20577 hpux9* | hpux10* | hpux11*)
20578   # Give a soname corresponding to the major version so that dld.sl refuses to
20579   # link against other versions.
20580   version_type=sunos
20581   need_lib_prefix=no
20582   need_version=no
20583   case $host_cpu in
20584   ia64*)
20585     shrext_cmds='.so'
20586     hardcode_into_libs=yes
20587     dynamic_linker="$host_os dld.so"
20588     shlibpath_var=LD_LIBRARY_PATH
20589     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20591     soname_spec='${libname}${release}${shared_ext}$major'
20592     if test "X$HPUX_IA64_MODE" = X32; then
20593       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20594     else
20595       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20596     fi
20597     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20598     ;;
20599    hppa*64*)
20600      shrext_cmds='.sl'
20601      hardcode_into_libs=yes
20602      dynamic_linker="$host_os dld.sl"
20603      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20604      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20605      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606      soname_spec='${libname}${release}${shared_ext}$major'
20607      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20608      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20609      ;;
20610    *)
20611     shrext_cmds='.sl'
20612     dynamic_linker="$host_os dld.sl"
20613     shlibpath_var=SHLIB_PATH
20614     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616     soname_spec='${libname}${release}${shared_ext}$major'
20617     ;;
20618   esac
20619   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20620   postinstall_cmds='chmod 555 $lib'
20621   ;;
20622
20623 interix3*)
20624   version_type=linux
20625   need_lib_prefix=no
20626   need_version=no
20627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20628   soname_spec='${libname}${release}${shared_ext}$major'
20629   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20630   shlibpath_var=LD_LIBRARY_PATH
20631   shlibpath_overrides_runpath=no
20632   hardcode_into_libs=yes
20633   ;;
20634
20635 irix5* | irix6* | nonstopux*)
20636   case $host_os in
20637     nonstopux*) version_type=nonstopux ;;
20638     *)
20639         if test "$lt_cv_prog_gnu_ld" = yes; then
20640                 version_type=linux
20641         else
20642                 version_type=irix
20643         fi ;;
20644   esac
20645   need_lib_prefix=no
20646   need_version=no
20647   soname_spec='${libname}${release}${shared_ext}$major'
20648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20649   case $host_os in
20650   irix5* | nonstopux*)
20651     libsuff= shlibsuff=
20652     ;;
20653   *)
20654     case $LD in # libtool.m4 will add one of these switches to LD
20655     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20656       libsuff= shlibsuff= libmagic=32-bit;;
20657     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20658       libsuff=32 shlibsuff=N32 libmagic=N32;;
20659     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20660       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20661     *) libsuff= shlibsuff= libmagic=never-match;;
20662     esac
20663     ;;
20664   esac
20665   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20666   shlibpath_overrides_runpath=no
20667   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20668   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20669   hardcode_into_libs=yes
20670   ;;
20671
20672 # No shared lib support for Linux oldld, aout, or coff.
20673 linux*oldld* | linux*aout* | linux*coff*)
20674   dynamic_linker=no
20675   ;;
20676
20677 # This must be Linux ELF.
20678 linux*)
20679   version_type=linux
20680   need_lib_prefix=no
20681   need_version=no
20682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683   soname_spec='${libname}${release}${shared_ext}$major'
20684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20685   shlibpath_var=LD_LIBRARY_PATH
20686   shlibpath_overrides_runpath=no
20687   # This implies no fast_install, which is unacceptable.
20688   # Some rework will be needed to allow for fast_install
20689   # before this can be enabled.
20690   hardcode_into_libs=yes
20691
20692   # Append ld.so.conf contents to the search path
20693   if test -f /etc/ld.so.conf; then
20694     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' ' '`
20695     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20696   fi
20697
20698   # We used to test for /lib/ld.so.1 and disable shared libraries on
20699   # powerpc, because MkLinux only supported shared libraries with the
20700   # GNU dynamic linker.  Since this was broken with cross compilers,
20701   # most powerpc-linux boxes support dynamic linking these days and
20702   # people can always --disable-shared, the test was removed, and we
20703   # assume the GNU/Linux dynamic linker is in use.
20704   dynamic_linker='GNU/Linux ld.so'
20705   ;;
20706
20707 knetbsd*-gnu)
20708   version_type=linux
20709   need_lib_prefix=no
20710   need_version=no
20711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20712   soname_spec='${libname}${release}${shared_ext}$major'
20713   shlibpath_var=LD_LIBRARY_PATH
20714   shlibpath_overrides_runpath=no
20715   hardcode_into_libs=yes
20716   dynamic_linker='GNU ld.so'
20717   ;;
20718
20719 netbsd*)
20720   version_type=sunos
20721   need_lib_prefix=no
20722   need_version=no
20723   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20725     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20726     dynamic_linker='NetBSD (a.out) ld.so'
20727   else
20728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20729     soname_spec='${libname}${release}${shared_ext}$major'
20730     dynamic_linker='NetBSD ld.elf_so'
20731   fi
20732   shlibpath_var=LD_LIBRARY_PATH
20733   shlibpath_overrides_runpath=yes
20734   hardcode_into_libs=yes
20735   ;;
20736
20737 newsos6)
20738   version_type=linux
20739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20740   shlibpath_var=LD_LIBRARY_PATH
20741   shlibpath_overrides_runpath=yes
20742   ;;
20743
20744 nto-qnx*)
20745   version_type=linux
20746   need_lib_prefix=no
20747   need_version=no
20748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749   soname_spec='${libname}${release}${shared_ext}$major'
20750   shlibpath_var=LD_LIBRARY_PATH
20751   shlibpath_overrides_runpath=yes
20752   ;;
20753
20754 openbsd*)
20755   version_type=sunos
20756   sys_lib_dlsearch_path_spec="/usr/lib"
20757   need_lib_prefix=no
20758   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20759   case $host_os in
20760     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20761     *)                         need_version=no  ;;
20762   esac
20763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20764   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20765   shlibpath_var=LD_LIBRARY_PATH
20766   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20767     case $host_os in
20768       openbsd2.[89] | openbsd2.[89].*)
20769         shlibpath_overrides_runpath=no
20770         ;;
20771       *)
20772         shlibpath_overrides_runpath=yes
20773         ;;
20774       esac
20775   else
20776     shlibpath_overrides_runpath=yes
20777   fi
20778   ;;
20779
20780 os2*)
20781   libname_spec='$name'
20782   shrext_cmds=".dll"
20783   need_lib_prefix=no
20784   library_names_spec='$libname${shared_ext} $libname.a'
20785   dynamic_linker='OS/2 ld.exe'
20786   shlibpath_var=LIBPATH
20787   ;;
20788
20789 osf3* | osf4* | osf5*)
20790   version_type=osf
20791   need_lib_prefix=no
20792   need_version=no
20793   soname_spec='${libname}${release}${shared_ext}$major'
20794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795   shlibpath_var=LD_LIBRARY_PATH
20796   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20797   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20798   ;;
20799
20800 solaris*)
20801   version_type=linux
20802   need_lib_prefix=no
20803   need_version=no
20804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805   soname_spec='${libname}${release}${shared_ext}$major'
20806   shlibpath_var=LD_LIBRARY_PATH
20807   shlibpath_overrides_runpath=yes
20808   hardcode_into_libs=yes
20809   # ldd complains unless libraries are executable
20810   postinstall_cmds='chmod +x $lib'
20811   ;;
20812
20813 sunos4*)
20814   version_type=sunos
20815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20817   shlibpath_var=LD_LIBRARY_PATH
20818   shlibpath_overrides_runpath=yes
20819   if test "$with_gnu_ld" = yes; then
20820     need_lib_prefix=no
20821   fi
20822   need_version=yes
20823   ;;
20824
20825 sysv4 | sysv4.3*)
20826   version_type=linux
20827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20828   soname_spec='${libname}${release}${shared_ext}$major'
20829   shlibpath_var=LD_LIBRARY_PATH
20830   case $host_vendor in
20831     sni)
20832       shlibpath_overrides_runpath=no
20833       need_lib_prefix=no
20834       export_dynamic_flag_spec='${wl}-Blargedynsym'
20835       runpath_var=LD_RUN_PATH
20836       ;;
20837     siemens)
20838       need_lib_prefix=no
20839       ;;
20840     motorola)
20841       need_lib_prefix=no
20842       need_version=no
20843       shlibpath_overrides_runpath=no
20844       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20845       ;;
20846   esac
20847   ;;
20848
20849 sysv4*MP*)
20850   if test -d /usr/nec ;then
20851     version_type=linux
20852     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20853     soname_spec='$libname${shared_ext}.$major'
20854     shlibpath_var=LD_LIBRARY_PATH
20855   fi
20856   ;;
20857
20858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20859   version_type=freebsd-elf
20860   need_lib_prefix=no
20861   need_version=no
20862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20863   soname_spec='${libname}${release}${shared_ext}$major'
20864   shlibpath_var=LD_LIBRARY_PATH
20865   hardcode_into_libs=yes
20866   if test "$with_gnu_ld" = yes; then
20867     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20868     shlibpath_overrides_runpath=no
20869   else
20870     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20871     shlibpath_overrides_runpath=yes
20872     case $host_os in
20873       sco3.2v5*)
20874         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20875         ;;
20876     esac
20877   fi
20878   sys_lib_dlsearch_path_spec='/usr/lib'
20879   ;;
20880
20881 uts4*)
20882   version_type=linux
20883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884   soname_spec='${libname}${release}${shared_ext}$major'
20885   shlibpath_var=LD_LIBRARY_PATH
20886   ;;
20887
20888 *)
20889   dynamic_linker=no
20890   ;;
20891 esac
20892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20893 echo "${ECHO_T}$dynamic_linker" >&6; }
20894 test "$dynamic_linker" = no && can_build_shared=no
20895
20896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20897 if test "$GCC" = yes; then
20898   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20899 fi
20900
20901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20903 hardcode_action_CXX=
20904 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20905    test -n "$runpath_var_CXX" || \
20906    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20907
20908   # We can hardcode non-existant directories.
20909   if test "$hardcode_direct_CXX" != no &&
20910      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20911      # have to relink, otherwise we might link with an installed library
20912      # when we should be linking with a yet-to-be-installed one
20913      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20914      test "$hardcode_minus_L_CXX" != no; then
20915     # Linking always hardcodes the temporary library directory.
20916     hardcode_action_CXX=relink
20917   else
20918     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20919     hardcode_action_CXX=immediate
20920   fi
20921 else
20922   # We cannot hardcode anything, or else we can only hardcode existing
20923   # directories.
20924   hardcode_action_CXX=unsupported
20925 fi
20926 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20927 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20928
20929 if test "$hardcode_action_CXX" = relink; then
20930   # Fast installation is not supported
20931   enable_fast_install=no
20932 elif test "$shlibpath_overrides_runpath" = yes ||
20933      test "$enable_shared" = no; then
20934   # Fast installation is not necessary
20935   enable_fast_install=needless
20936 fi
20937
20938
20939 # The else clause should only fire when bootstrapping the
20940 # libtool distribution, otherwise you forgot to ship ltmain.sh
20941 # with your package, and you will get complaints that there are
20942 # no rules to generate ltmain.sh.
20943 if test -f "$ltmain"; then
20944   # See if we are running on zsh, and set the options which allow our commands through
20945   # without removal of \ escapes.
20946   if test -n "${ZSH_VERSION+set}" ; then
20947     setopt NO_GLOB_SUBST
20948   fi
20949   # Now quote all the things that may contain metacharacters while being
20950   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20951   # variables and quote the copies for generation of the libtool script.
20952   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20953     SED SHELL STRIP \
20954     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20955     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20956     deplibs_check_method reload_flag reload_cmds need_locks \
20957     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20958     lt_cv_sys_global_symbol_to_c_name_address \
20959     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20960     old_postinstall_cmds old_postuninstall_cmds \
20961     compiler_CXX \
20962     CC_CXX \
20963     LD_CXX \
20964     lt_prog_compiler_wl_CXX \
20965     lt_prog_compiler_pic_CXX \
20966     lt_prog_compiler_static_CXX \
20967     lt_prog_compiler_no_builtin_flag_CXX \
20968     export_dynamic_flag_spec_CXX \
20969     thread_safe_flag_spec_CXX \
20970     whole_archive_flag_spec_CXX \
20971     enable_shared_with_static_runtimes_CXX \
20972     old_archive_cmds_CXX \
20973     old_archive_from_new_cmds_CXX \
20974     predep_objects_CXX \
20975     postdep_objects_CXX \
20976     predeps_CXX \
20977     postdeps_CXX \
20978     compiler_lib_search_path_CXX \
20979     archive_cmds_CXX \
20980     archive_expsym_cmds_CXX \
20981     postinstall_cmds_CXX \
20982     postuninstall_cmds_CXX \
20983     old_archive_from_expsyms_cmds_CXX \
20984     allow_undefined_flag_CXX \
20985     no_undefined_flag_CXX \
20986     export_symbols_cmds_CXX \
20987     hardcode_libdir_flag_spec_CXX \
20988     hardcode_libdir_flag_spec_ld_CXX \
20989     hardcode_libdir_separator_CXX \
20990     hardcode_automatic_CXX \
20991     module_cmds_CXX \
20992     module_expsym_cmds_CXX \
20993     lt_cv_prog_compiler_c_o_CXX \
20994     exclude_expsyms_CXX \
20995     include_expsyms_CXX; do
20996
20997     case $var in
20998     old_archive_cmds_CXX | \
20999     old_archive_from_new_cmds_CXX | \
21000     archive_cmds_CXX | \
21001     archive_expsym_cmds_CXX | \
21002     module_cmds_CXX | \
21003     module_expsym_cmds_CXX | \
21004     old_archive_from_expsyms_cmds_CXX | \
21005     export_symbols_cmds_CXX | \
21006     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21007     postinstall_cmds | postuninstall_cmds | \
21008     old_postinstall_cmds | old_postuninstall_cmds | \
21009     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21010       # Double-quote double-evaled strings.
21011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21012       ;;
21013     *)
21014       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21015       ;;
21016     esac
21017   done
21018
21019   case $lt_echo in
21020   *'\$0 --fallback-echo"')
21021     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21022     ;;
21023   esac
21024
21025 cfgfile="$ofile"
21026
21027   cat <<__EOF__ >> "$cfgfile"
21028 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21029
21030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21031
21032 # Shell to use when invoking shell scripts.
21033 SHELL=$lt_SHELL
21034
21035 # Whether or not to build shared libraries.
21036 build_libtool_libs=$enable_shared
21037
21038 # Whether or not to build static libraries.
21039 build_old_libs=$enable_static
21040
21041 # Whether or not to add -lc for building shared libraries.
21042 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21043
21044 # Whether or not to disallow shared libs when runtime libs are static
21045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21046
21047 # Whether or not to optimize for fast installation.
21048 fast_install=$enable_fast_install
21049
21050 # The host system.
21051 host_alias=$host_alias
21052 host=$host
21053 host_os=$host_os
21054
21055 # The build system.
21056 build_alias=$build_alias
21057 build=$build
21058 build_os=$build_os
21059
21060 # An echo program that does not interpret backslashes.
21061 echo=$lt_echo
21062
21063 # The archiver.
21064 AR=$lt_AR
21065 AR_FLAGS=$lt_AR_FLAGS
21066
21067 # A C compiler.
21068 LTCC=$lt_LTCC
21069
21070 # LTCC compiler flags.
21071 LTCFLAGS=$lt_LTCFLAGS
21072
21073 # A language-specific compiler.
21074 CC=$lt_compiler_CXX
21075
21076 # Is the compiler the GNU C compiler?
21077 with_gcc=$GCC_CXX
21078
21079 # An ERE matcher.
21080 EGREP=$lt_EGREP
21081
21082 # The linker used to build libraries.
21083 LD=$lt_LD_CXX
21084
21085 # Whether we need hard or soft links.
21086 LN_S=$lt_LN_S
21087
21088 # A BSD-compatible nm program.
21089 NM=$lt_NM
21090
21091 # A symbol stripping program
21092 STRIP=$lt_STRIP
21093
21094 # Used to examine libraries when file_magic_cmd begins "file"
21095 MAGIC_CMD=$MAGIC_CMD
21096
21097 # Used on cygwin: DLL creation program.
21098 DLLTOOL="$DLLTOOL"
21099
21100 # Used on cygwin: object dumper.
21101 OBJDUMP="$OBJDUMP"
21102
21103 # Used on cygwin: assembler.
21104 AS="$AS"
21105
21106 # The name of the directory that contains temporary libtool files.
21107 objdir=$objdir
21108
21109 # How to create reloadable object files.
21110 reload_flag=$lt_reload_flag
21111 reload_cmds=$lt_reload_cmds
21112
21113 # How to pass a linker flag through the compiler.
21114 wl=$lt_lt_prog_compiler_wl_CXX
21115
21116 # Object file suffix (normally "o").
21117 objext="$ac_objext"
21118
21119 # Old archive suffix (normally "a").
21120 libext="$libext"
21121
21122 # Shared library suffix (normally ".so").
21123 shrext_cmds='$shrext_cmds'
21124
21125 # Executable file suffix (normally "").
21126 exeext="$exeext"
21127
21128 # Additional compiler flags for building library objects.
21129 pic_flag=$lt_lt_prog_compiler_pic_CXX
21130 pic_mode=$pic_mode
21131
21132 # What is the maximum length of a command?
21133 max_cmd_len=$lt_cv_sys_max_cmd_len
21134
21135 # Does compiler simultaneously support -c and -o options?
21136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21137
21138 # Must we lock files when doing compilation?
21139 need_locks=$lt_need_locks
21140
21141 # Do we need the lib prefix for modules?
21142 need_lib_prefix=$need_lib_prefix
21143
21144 # Do we need a version for libraries?
21145 need_version=$need_version
21146
21147 # Whether dlopen is supported.
21148 dlopen_support=$enable_dlopen
21149
21150 # Whether dlopen of programs is supported.
21151 dlopen_self=$enable_dlopen_self
21152
21153 # Whether dlopen of statically linked programs is supported.
21154 dlopen_self_static=$enable_dlopen_self_static
21155
21156 # Compiler flag to prevent dynamic linking.
21157 link_static_flag=$lt_lt_prog_compiler_static_CXX
21158
21159 # Compiler flag to turn off builtin functions.
21160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21161
21162 # Compiler flag to allow reflexive dlopens.
21163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21164
21165 # Compiler flag to generate shared objects directly from archives.
21166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21167
21168 # Compiler flag to generate thread-safe objects.
21169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21170
21171 # Library versioning type.
21172 version_type=$version_type
21173
21174 # Format of library name prefix.
21175 libname_spec=$lt_libname_spec
21176
21177 # List of archive names.  First name is the real one, the rest are links.
21178 # The last name is the one that the linker finds with -lNAME.
21179 library_names_spec=$lt_library_names_spec
21180
21181 # The coded name of the library, if different from the real name.
21182 soname_spec=$lt_soname_spec
21183
21184 # Commands used to build and install an old-style archive.
21185 RANLIB=$lt_RANLIB
21186 old_archive_cmds=$lt_old_archive_cmds_CXX
21187 old_postinstall_cmds=$lt_old_postinstall_cmds
21188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21189
21190 # Create an old-style archive from a shared archive.
21191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21192
21193 # Create a temporary old-style archive to link instead of a shared archive.
21194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21195
21196 # Commands used to build and install a shared archive.
21197 archive_cmds=$lt_archive_cmds_CXX
21198 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21199 postinstall_cmds=$lt_postinstall_cmds
21200 postuninstall_cmds=$lt_postuninstall_cmds
21201
21202 # Commands used to build a loadable module (assumed same as above if empty)
21203 module_cmds=$lt_module_cmds_CXX
21204 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21205
21206 # Commands to strip libraries.
21207 old_striplib=$lt_old_striplib
21208 striplib=$lt_striplib
21209
21210 # Dependencies to place before the objects being linked to create a
21211 # shared library.
21212 predep_objects=$lt_predep_objects_CXX
21213
21214 # Dependencies to place after the objects being linked to create a
21215 # shared library.
21216 postdep_objects=$lt_postdep_objects_CXX
21217
21218 # Dependencies to place before the objects being linked to create a
21219 # shared library.
21220 predeps=$lt_predeps_CXX
21221
21222 # Dependencies to place after the objects being linked to create a
21223 # shared library.
21224 postdeps=$lt_postdeps_CXX
21225
21226 # The library search path used internally by the compiler when linking
21227 # a shared library.
21228 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21229
21230 # Method to check whether dependent libraries are shared objects.
21231 deplibs_check_method=$lt_deplibs_check_method
21232
21233 # Command to use when deplibs_check_method == file_magic.
21234 file_magic_cmd=$lt_file_magic_cmd
21235
21236 # Flag that allows shared libraries with undefined symbols to be built.
21237 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21238
21239 # Flag that forces no undefined symbols.
21240 no_undefined_flag=$lt_no_undefined_flag_CXX
21241
21242 # Commands used to finish a libtool library installation in a directory.
21243 finish_cmds=$lt_finish_cmds
21244
21245 # Same as above, but a single script fragment to be evaled but not shown.
21246 finish_eval=$lt_finish_eval
21247
21248 # Take the output of nm and produce a listing of raw symbols and C names.
21249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21250
21251 # Transform the output of nm in a proper C declaration
21252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21253
21254 # Transform the output of nm in a C name address pair
21255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21256
21257 # This is the shared library runtime path variable.
21258 runpath_var=$runpath_var
21259
21260 # This is the shared library path variable.
21261 shlibpath_var=$shlibpath_var
21262
21263 # Is shlibpath searched before the hard-coded library search path?
21264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21265
21266 # How to hardcode a shared library path into an executable.
21267 hardcode_action=$hardcode_action_CXX
21268
21269 # Whether we should hardcode library paths into libraries.
21270 hardcode_into_libs=$hardcode_into_libs
21271
21272 # Flag to hardcode \$libdir into a binary during linking.
21273 # This must work even if \$libdir does not exist.
21274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21275
21276 # If ld is used when linking, flag to hardcode \$libdir into
21277 # a binary during linking. This must work even if \$libdir does
21278 # not exist.
21279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21280
21281 # Whether we need a single -rpath flag with a separated argument.
21282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21283
21284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21285 # resulting binary.
21286 hardcode_direct=$hardcode_direct_CXX
21287
21288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21289 # resulting binary.
21290 hardcode_minus_L=$hardcode_minus_L_CXX
21291
21292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21293 # the resulting binary.
21294 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21295
21296 # Set to yes if building a shared library automatically hardcodes DIR into the library
21297 # and all subsequent libraries and executables linked against it.
21298 hardcode_automatic=$hardcode_automatic_CXX
21299
21300 # Variables whose values should be saved in libtool wrapper scripts and
21301 # restored at relink time.
21302 variables_saved_for_relink="$variables_saved_for_relink"
21303
21304 # Whether libtool must link a program against all its dependency libraries.
21305 link_all_deplibs=$link_all_deplibs_CXX
21306
21307 # Compile-time system search path for libraries
21308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21309
21310 # Run-time system search path for libraries
21311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21312
21313 # Fix the shell variable \$srcfile for the compiler.
21314 fix_srcfile_path="$fix_srcfile_path_CXX"
21315
21316 # Set to yes if exported symbols are required.
21317 always_export_symbols=$always_export_symbols_CXX
21318
21319 # The commands to list exported symbols.
21320 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21321
21322 # The commands to extract the exported symbol list from a shared archive.
21323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21324
21325 # Symbols that should not be listed in the preloaded symbols.
21326 exclude_expsyms=$lt_exclude_expsyms_CXX
21327
21328 # Symbols that must always be exported.
21329 include_expsyms=$lt_include_expsyms_CXX
21330
21331 # ### END LIBTOOL TAG CONFIG: $tagname
21332
21333 __EOF__
21334
21335
21336 else
21337   # If there is no Makefile yet, we rely on a make rule to execute
21338   # `config.status --recheck' to rerun these tests and create the
21339   # libtool script then.
21340   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21341   if test -f "$ltmain_in"; then
21342     test -f Makefile && make "$ltmain"
21343   fi
21344 fi
21345
21346
21347 ac_ext=c
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21352
21353 CC=$lt_save_CC
21354 LDCXX=$LD
21355 LD=$lt_save_LD
21356 GCC=$lt_save_GCC
21357 with_gnu_ldcxx=$with_gnu_ld
21358 with_gnu_ld=$lt_save_with_gnu_ld
21359 lt_cv_path_LDCXX=$lt_cv_path_LD
21360 lt_cv_path_LD=$lt_save_path_LD
21361 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21362 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21363
21364         else
21365           tagname=""
21366         fi
21367         ;;
21368
21369       F77)
21370         if test -n "$F77" && test "X$F77" != "Xno"; then
21371
21372 ac_ext=f
21373 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21374 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21376
21377
21378 archive_cmds_need_lc_F77=no
21379 allow_undefined_flag_F77=
21380 always_export_symbols_F77=no
21381 archive_expsym_cmds_F77=
21382 export_dynamic_flag_spec_F77=
21383 hardcode_direct_F77=no
21384 hardcode_libdir_flag_spec_F77=
21385 hardcode_libdir_flag_spec_ld_F77=
21386 hardcode_libdir_separator_F77=
21387 hardcode_minus_L_F77=no
21388 hardcode_automatic_F77=no
21389 module_cmds_F77=
21390 module_expsym_cmds_F77=
21391 link_all_deplibs_F77=unknown
21392 old_archive_cmds_F77=$old_archive_cmds
21393 no_undefined_flag_F77=
21394 whole_archive_flag_spec_F77=
21395 enable_shared_with_static_runtimes_F77=no
21396
21397 # Source file extension for f77 test sources.
21398 ac_ext=f
21399
21400 # Object file extension for compiled f77 test sources.
21401 objext=o
21402 objext_F77=$objext
21403
21404 # Code to be used in simple compile tests
21405 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21406
21407 # Code to be used in simple link tests
21408 lt_simple_link_test_code="      program t\n      end\n"
21409
21410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21411
21412 # If no C compiler was specified, use CC.
21413 LTCC=${LTCC-"$CC"}
21414
21415 # If no C compiler flags were specified, use CFLAGS.
21416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21417
21418 # Allow CC to be a program name with arguments.
21419 compiler=$CC
21420
21421
21422 # save warnings/boilerplate of simple test code
21423 ac_outfile=conftest.$ac_objext
21424 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21426 _lt_compiler_boilerplate=`cat conftest.err`
21427 $rm conftest*
21428
21429 ac_outfile=conftest.$ac_objext
21430 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21432 _lt_linker_boilerplate=`cat conftest.err`
21433 $rm conftest*
21434
21435
21436 # Allow CC to be a program name with arguments.
21437 lt_save_CC="$CC"
21438 CC=${F77-"f77"}
21439 compiler=$CC
21440 compiler_F77=$CC
21441 for cc_temp in $compiler""; do
21442   case $cc_temp in
21443     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21444     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21445     \-*) ;;
21446     *) break;;
21447   esac
21448 done
21449 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21450
21451
21452 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21453 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21454 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21455 echo "${ECHO_T}$can_build_shared" >&6; }
21456
21457 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21458 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21459 test "$can_build_shared" = "no" && enable_shared=no
21460
21461 # On AIX, shared libraries and static libraries use the same namespace, and
21462 # are all built from PIC.
21463 case $host_os in
21464 aix3*)
21465   test "$enable_shared" = yes && enable_static=no
21466   if test -n "$RANLIB"; then
21467     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21468     postinstall_cmds='$RANLIB $lib'
21469   fi
21470   ;;
21471 aix4* | aix5*)
21472   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21473     test "$enable_shared" = yes && enable_static=no
21474   fi
21475   ;;
21476 esac
21477 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21478 echo "${ECHO_T}$enable_shared" >&6; }
21479
21480 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21481 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21482 # Make sure either enable_shared or enable_static is yes.
21483 test "$enable_shared" = yes || enable_static=yes
21484 { echo "$as_me:$LINENO: result: $enable_static" >&5
21485 echo "${ECHO_T}$enable_static" >&6; }
21486
21487 GCC_F77="$G77"
21488 LD_F77="$LD"
21489
21490 lt_prog_compiler_wl_F77=
21491 lt_prog_compiler_pic_F77=
21492 lt_prog_compiler_static_F77=
21493
21494 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21495 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21496
21497   if test "$GCC" = yes; then
21498     lt_prog_compiler_wl_F77='-Wl,'
21499     lt_prog_compiler_static_F77='-static'
21500
21501     case $host_os in
21502       aix*)
21503       # All AIX code is PIC.
21504       if test "$host_cpu" = ia64; then
21505         # AIX 5 now supports IA64 processor
21506         lt_prog_compiler_static_F77='-Bstatic'
21507       fi
21508       ;;
21509
21510     amigaos*)
21511       # FIXME: we need at least 68020 code to build shared libraries, but
21512       # adding the `-m68020' flag to GCC prevents building anything better,
21513       # like `-m68040'.
21514       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21515       ;;
21516
21517     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21518       # PIC is the default for these OSes.
21519       ;;
21520
21521     mingw* | pw32* | os2*)
21522       # This hack is so that the source file can tell whether it is being
21523       # built for inclusion in a dll (and should export symbols for example).
21524       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21525       ;;
21526
21527     darwin* | rhapsody*)
21528       # PIC is the default on this platform
21529       # Common symbols not allowed in MH_DYLIB files
21530       lt_prog_compiler_pic_F77='-fno-common'
21531       ;;
21532
21533     interix3*)
21534       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21535       # Instead, we relocate shared libraries at runtime.
21536       ;;
21537
21538     msdosdjgpp*)
21539       # Just because we use GCC doesn't mean we suddenly get shared libraries
21540       # on systems that don't support them.
21541       lt_prog_compiler_can_build_shared_F77=no
21542       enable_shared=no
21543       ;;
21544
21545     sysv4*MP*)
21546       if test -d /usr/nec; then
21547         lt_prog_compiler_pic_F77=-Kconform_pic
21548       fi
21549       ;;
21550
21551     hpux*)
21552       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21553       # not for PA HP-UX.
21554       case $host_cpu in
21555       hppa*64*|ia64*)
21556         # +Z the default
21557         ;;
21558       *)
21559         lt_prog_compiler_pic_F77='-fPIC'
21560         ;;
21561       esac
21562       ;;
21563
21564     *)
21565       lt_prog_compiler_pic_F77='-fPIC'
21566       ;;
21567     esac
21568   else
21569     # PORTME Check for flag to pass linker flags through the system compiler.
21570     case $host_os in
21571     aix*)
21572       lt_prog_compiler_wl_F77='-Wl,'
21573       if test "$host_cpu" = ia64; then
21574         # AIX 5 now supports IA64 processor
21575         lt_prog_compiler_static_F77='-Bstatic'
21576       else
21577         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21578       fi
21579       ;;
21580       darwin*)
21581         # PIC is the default on this platform
21582         # Common symbols not allowed in MH_DYLIB files
21583        case $cc_basename in
21584          xlc*)
21585          lt_prog_compiler_pic_F77='-qnocommon'
21586          lt_prog_compiler_wl_F77='-Wl,'
21587          ;;
21588        esac
21589        ;;
21590
21591     mingw* | pw32* | os2*)
21592       # This hack is so that the source file can tell whether it is being
21593       # built for inclusion in a dll (and should export symbols for example).
21594       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21595       ;;
21596
21597     hpux9* | hpux10* | hpux11*)
21598       lt_prog_compiler_wl_F77='-Wl,'
21599       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21600       # not for PA HP-UX.
21601       case $host_cpu in
21602       hppa*64*|ia64*)
21603         # +Z the default
21604         ;;
21605       *)
21606         lt_prog_compiler_pic_F77='+Z'
21607         ;;
21608       esac
21609       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21610       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21611       ;;
21612
21613     irix5* | irix6* | nonstopux*)
21614       lt_prog_compiler_wl_F77='-Wl,'
21615       # PIC (with -KPIC) is the default.
21616       lt_prog_compiler_static_F77='-non_shared'
21617       ;;
21618
21619     newsos6)
21620       lt_prog_compiler_pic_F77='-KPIC'
21621       lt_prog_compiler_static_F77='-Bstatic'
21622       ;;
21623
21624     linux*)
21625       case $cc_basename in
21626       icc* | ecc*)
21627         lt_prog_compiler_wl_F77='-Wl,'
21628         lt_prog_compiler_pic_F77='-KPIC'
21629         lt_prog_compiler_static_F77='-static'
21630         ;;
21631       pgcc* | pgf77* | pgf90* | pgf95*)
21632         # Portland Group compilers (*not* the Pentium gcc compiler,
21633         # which looks to be a dead project)
21634         lt_prog_compiler_wl_F77='-Wl,'
21635         lt_prog_compiler_pic_F77='-fpic'
21636         lt_prog_compiler_static_F77='-Bstatic'
21637         ;;
21638       ccc*)
21639         lt_prog_compiler_wl_F77='-Wl,'
21640         # All Alpha code is PIC.
21641         lt_prog_compiler_static_F77='-non_shared'
21642         ;;
21643       esac
21644       ;;
21645
21646     osf3* | osf4* | osf5*)
21647       lt_prog_compiler_wl_F77='-Wl,'
21648       # All OSF/1 code is PIC.
21649       lt_prog_compiler_static_F77='-non_shared'
21650       ;;
21651
21652     solaris*)
21653       lt_prog_compiler_pic_F77='-KPIC'
21654       lt_prog_compiler_static_F77='-Bstatic'
21655       case $cc_basename in
21656       f77* | f90* | f95*)
21657         lt_prog_compiler_wl_F77='-Qoption ld ';;
21658       *)
21659         lt_prog_compiler_wl_F77='-Wl,';;
21660       esac
21661       ;;
21662
21663     sunos4*)
21664       lt_prog_compiler_wl_F77='-Qoption ld '
21665       lt_prog_compiler_pic_F77='-PIC'
21666       lt_prog_compiler_static_F77='-Bstatic'
21667       ;;
21668
21669     sysv4 | sysv4.2uw2* | sysv4.3*)
21670       lt_prog_compiler_wl_F77='-Wl,'
21671       lt_prog_compiler_pic_F77='-KPIC'
21672       lt_prog_compiler_static_F77='-Bstatic'
21673       ;;
21674
21675     sysv4*MP*)
21676       if test -d /usr/nec ;then
21677         lt_prog_compiler_pic_F77='-Kconform_pic'
21678         lt_prog_compiler_static_F77='-Bstatic'
21679       fi
21680       ;;
21681
21682     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21683       lt_prog_compiler_wl_F77='-Wl,'
21684       lt_prog_compiler_pic_F77='-KPIC'
21685       lt_prog_compiler_static_F77='-Bstatic'
21686       ;;
21687
21688     unicos*)
21689       lt_prog_compiler_wl_F77='-Wl,'
21690       lt_prog_compiler_can_build_shared_F77=no
21691       ;;
21692
21693     uts4*)
21694       lt_prog_compiler_pic_F77='-pic'
21695       lt_prog_compiler_static_F77='-Bstatic'
21696       ;;
21697
21698     *)
21699       lt_prog_compiler_can_build_shared_F77=no
21700       ;;
21701     esac
21702   fi
21703
21704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21705 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21706
21707 #
21708 # Check to make sure the PIC flag actually works.
21709 #
21710 if test -n "$lt_prog_compiler_pic_F77"; then
21711
21712 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21714 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21715   echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717   lt_prog_compiler_pic_works_F77=no
21718   ac_outfile=conftest.$ac_objext
21719    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21720    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21721    # Insert the option either (1) after the last *FLAGS variable, or
21722    # (2) before a word containing "conftest.", or (3) at the end.
21723    # Note that $ac_compile itself does not contain backslashes and begins
21724    # with a dollar sign (not a hyphen), so the echo should work correctly.
21725    # The option is referenced via a variable to avoid confusing sed.
21726    lt_compile=`echo "$ac_compile" | $SED \
21727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21729    -e 's:$: $lt_compiler_flag:'`
21730    (eval echo "\"\$as_me:21730: $lt_compile\"" >&5)
21731    (eval "$lt_compile" 2>conftest.err)
21732    ac_status=$?
21733    cat conftest.err >&5
21734    echo "$as_me:21734: \$? = $ac_status" >&5
21735    if (exit $ac_status) && test -s "$ac_outfile"; then
21736      # The compiler can only warn and ignore the option if not recognized
21737      # So say no if there are warnings other than the usual output.
21738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21741        lt_prog_compiler_pic_works_F77=yes
21742      fi
21743    fi
21744    $rm conftest*
21745
21746 fi
21747 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21748 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21749
21750 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21751     case $lt_prog_compiler_pic_F77 in
21752      "" | " "*) ;;
21753      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21754      esac
21755 else
21756     lt_prog_compiler_pic_F77=
21757      lt_prog_compiler_can_build_shared_F77=no
21758 fi
21759
21760 fi
21761 case $host_os in
21762   # For platforms which do not support PIC, -DPIC is meaningless:
21763   *djgpp*)
21764     lt_prog_compiler_pic_F77=
21765     ;;
21766   *)
21767     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21768     ;;
21769 esac
21770
21771 #
21772 # Check to make sure the static flag actually works.
21773 #
21774 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21775 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21776 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21777 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   lt_prog_compiler_static_works_F77=no
21781    save_LDFLAGS="$LDFLAGS"
21782    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21783    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21784    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21785      # The linker can only warn and ignore the option if not recognized
21786      # So say no if there are warnings
21787      if test -s conftest.err; then
21788        # Append any errors to the config.log.
21789        cat conftest.err 1>&5
21790        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21791        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21792        if diff conftest.exp conftest.er2 >/dev/null; then
21793          lt_prog_compiler_static_works_F77=yes
21794        fi
21795      else
21796        lt_prog_compiler_static_works_F77=yes
21797      fi
21798    fi
21799    $rm conftest*
21800    LDFLAGS="$save_LDFLAGS"
21801
21802 fi
21803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21804 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21805
21806 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21807     :
21808 else
21809     lt_prog_compiler_static_F77=
21810 fi
21811
21812
21813 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21815 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818   lt_cv_prog_compiler_c_o_F77=no
21819    $rm -r conftest 2>/dev/null
21820    mkdir conftest
21821    cd conftest
21822    mkdir out
21823    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21824
21825    lt_compiler_flag="-o out/conftest2.$ac_objext"
21826    # Insert the option either (1) after the last *FLAGS variable, or
21827    # (2) before a word containing "conftest.", or (3) at the end.
21828    # Note that $ac_compile itself does not contain backslashes and begins
21829    # with a dollar sign (not a hyphen), so the echo should work correctly.
21830    lt_compile=`echo "$ac_compile" | $SED \
21831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21833    -e 's:$: $lt_compiler_flag:'`
21834    (eval echo "\"\$as_me:21834: $lt_compile\"" >&5)
21835    (eval "$lt_compile" 2>out/conftest.err)
21836    ac_status=$?
21837    cat out/conftest.err >&5
21838    echo "$as_me:21838: \$? = $ac_status" >&5
21839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21840    then
21841      # The compiler can only warn and ignore the option if not recognized
21842      # So say no if there are warnings
21843      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21846        lt_cv_prog_compiler_c_o_F77=yes
21847      fi
21848    fi
21849    chmod u+w . 2>&5
21850    $rm conftest*
21851    # SGI C++ compiler will create directory out/ii_files/ for
21852    # template instantiation
21853    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21854    $rm out/* && rmdir out
21855    cd ..
21856    rmdir conftest
21857    $rm conftest*
21858
21859 fi
21860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21861 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21862
21863
21864 hard_links="nottested"
21865 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21866   # do not overwrite the value of need_locks provided by the user
21867   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21868 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21869   hard_links=yes
21870   $rm conftest*
21871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21872   touch conftest.a
21873   ln conftest.a conftest.b 2>&5 || hard_links=no
21874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21875   { echo "$as_me:$LINENO: result: $hard_links" >&5
21876 echo "${ECHO_T}$hard_links" >&6; }
21877   if test "$hard_links" = no; then
21878     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21879 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21880     need_locks=warn
21881   fi
21882 else
21883   need_locks=no
21884 fi
21885
21886 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21887 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21888
21889   runpath_var=
21890   allow_undefined_flag_F77=
21891   enable_shared_with_static_runtimes_F77=no
21892   archive_cmds_F77=
21893   archive_expsym_cmds_F77=
21894   old_archive_From_new_cmds_F77=
21895   old_archive_from_expsyms_cmds_F77=
21896   export_dynamic_flag_spec_F77=
21897   whole_archive_flag_spec_F77=
21898   thread_safe_flag_spec_F77=
21899   hardcode_libdir_flag_spec_F77=
21900   hardcode_libdir_flag_spec_ld_F77=
21901   hardcode_libdir_separator_F77=
21902   hardcode_direct_F77=no
21903   hardcode_minus_L_F77=no
21904   hardcode_shlibpath_var_F77=unsupported
21905   link_all_deplibs_F77=unknown
21906   hardcode_automatic_F77=no
21907   module_cmds_F77=
21908   module_expsym_cmds_F77=
21909   always_export_symbols_F77=no
21910   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21911   # include_expsyms should be a list of space-separated symbols to be *always*
21912   # included in the symbol list
21913   include_expsyms_F77=
21914   # exclude_expsyms can be an extended regexp of symbols to exclude
21915   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21916   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21917   # as well as any symbol that contains `d'.
21918   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21919   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21920   # platforms (ab)use it in PIC code, but their linkers get confused if
21921   # the symbol is explicitly referenced.  Since portable code cannot
21922   # rely on this symbol name, it's probably fine to never include it in
21923   # preloaded symbol tables.
21924   extract_expsyms_cmds=
21925   # Just being paranoid about ensuring that cc_basename is set.
21926   for cc_temp in $compiler""; do
21927   case $cc_temp in
21928     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21929     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21930     \-*) ;;
21931     *) break;;
21932   esac
21933 done
21934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21935
21936   case $host_os in
21937   cygwin* | mingw* | pw32*)
21938     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21939     # When not using gcc, we currently assume that we are using
21940     # Microsoft Visual C++.
21941     if test "$GCC" != yes; then
21942       with_gnu_ld=no
21943     fi
21944     ;;
21945   interix*)
21946     # we just hope/assume this is gcc and not c89 (= MSVC++)
21947     with_gnu_ld=yes
21948     ;;
21949   openbsd*)
21950     with_gnu_ld=no
21951     ;;
21952   esac
21953
21954   ld_shlibs_F77=yes
21955   if test "$with_gnu_ld" = yes; then
21956     # If archive_cmds runs LD, not CC, wlarc should be empty
21957     wlarc='${wl}'
21958
21959     # Set some defaults for GNU ld with shared library support. These
21960     # are reset later if shared libraries are not supported. Putting them
21961     # here allows them to be overridden if necessary.
21962     runpath_var=LD_RUN_PATH
21963     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21964     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21965     # ancient GNU ld didn't support --whole-archive et. al.
21966     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21967         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21968       else
21969         whole_archive_flag_spec_F77=
21970     fi
21971     supports_anon_versioning=no
21972     case `$LD -v 2>/dev/null` in
21973       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21974       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21975       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21976       *\ 2.11.*) ;; # other 2.11 versions
21977       *) supports_anon_versioning=yes ;;
21978     esac
21979
21980     # See if GNU ld supports shared libraries.
21981     case $host_os in
21982     aix3* | aix4* | aix5*)
21983       # On AIX/PPC, the GNU linker is very broken
21984       if test "$host_cpu" != ia64; then
21985         ld_shlibs_F77=no
21986         cat <<EOF 1>&2
21987
21988 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21989 *** to be unable to reliably create shared libraries on AIX.
21990 *** Therefore, libtool is disabling shared libraries support.  If you
21991 *** really care for shared libraries, you may want to modify your PATH
21992 *** so that a non-GNU linker is found, and then restart.
21993
21994 EOF
21995       fi
21996       ;;
21997
21998     amigaos*)
21999       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)'
22000       hardcode_libdir_flag_spec_F77='-L$libdir'
22001       hardcode_minus_L_F77=yes
22002
22003       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22004       # that the semantics of dynamic libraries on AmigaOS, at least up
22005       # to version 4, is to share data among multiple programs linked
22006       # with the same dynamic library.  Since this doesn't match the
22007       # behavior of shared libraries on other platforms, we can't use
22008       # them.
22009       ld_shlibs_F77=no
22010       ;;
22011
22012     beos*)
22013       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22014         allow_undefined_flag_F77=unsupported
22015         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22016         # support --undefined.  This deserves some investigation.  FIXME
22017         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22018       else
22019         ld_shlibs_F77=no
22020       fi
22021       ;;
22022
22023     cygwin* | mingw* | pw32*)
22024       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22025       # as there is no search path for DLLs.
22026       hardcode_libdir_flag_spec_F77='-L$libdir'
22027       allow_undefined_flag_F77=unsupported
22028       always_export_symbols_F77=no
22029       enable_shared_with_static_runtimes_F77=yes
22030       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22031
22032       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22033         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22034         # If the export-symbols file already is a .def file (1st line
22035         # is EXPORTS), use it as is; otherwise, prepend...
22036         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22037           cp $export_symbols $output_objdir/$soname.def;
22038         else
22039           echo EXPORTS > $output_objdir/$soname.def;
22040           cat $export_symbols >> $output_objdir/$soname.def;
22041         fi~
22042         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22043       else
22044         ld_shlibs_F77=no
22045       fi
22046       ;;
22047
22048     interix3*)
22049       hardcode_direct_F77=no
22050       hardcode_shlibpath_var_F77=no
22051       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22052       export_dynamic_flag_spec_F77='${wl}-E'
22053       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22054       # Instead, shared libraries are loaded at an image base (0x10000000 by
22055       # default) and relocated if they conflict, which is a slow very memory
22056       # consuming and fragmenting process.  To avoid this, we pick a random,
22057       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22058       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22059       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'
22060       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'
22061       ;;
22062
22063     linux*)
22064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22065         tmp_addflag=
22066         case $cc_basename,$host_cpu in
22067         pgcc*)                          # Portland Group C compiler
22068           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'
22069           tmp_addflag=' $pic_flag'
22070           ;;
22071         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22072           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'
22073           tmp_addflag=' $pic_flag -Mnomain' ;;
22074         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22075           tmp_addflag=' -i_dynamic' ;;
22076         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22077           tmp_addflag=' -i_dynamic -nofor_main' ;;
22078         ifc* | ifort*)                  # Intel Fortran compiler
22079           tmp_addflag=' -nofor_main' ;;
22080         esac
22081         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082
22083         if test $supports_anon_versioning = yes; then
22084           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22085   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22086   $echo "local: *; };" >> $output_objdir/$libname.ver~
22087           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22088         fi
22089       else
22090         ld_shlibs_F77=no
22091       fi
22092       ;;
22093
22094     netbsd*)
22095       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22096         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22097         wlarc=
22098       else
22099         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22100         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22101       fi
22102       ;;
22103
22104     solaris*)
22105       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22106         ld_shlibs_F77=no
22107         cat <<EOF 1>&2
22108
22109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22110 *** create shared libraries on Solaris systems.  Therefore, libtool
22111 *** is disabling shared libraries support.  We urge you to upgrade GNU
22112 *** binutils to release 2.9.1 or newer.  Another option is to modify
22113 *** your PATH or compiler configuration so that the native linker is
22114 *** used, and then restart.
22115
22116 EOF
22117       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22118         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22119         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22120       else
22121         ld_shlibs_F77=no
22122       fi
22123       ;;
22124
22125     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22126       case `$LD -v 2>&1` in
22127         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22128         ld_shlibs_F77=no
22129         cat <<_LT_EOF 1>&2
22130
22131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22132 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22133 *** is disabling shared libraries support.  We urge you to upgrade GNU
22134 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22135 *** your PATH or compiler configuration so that the native linker is
22136 *** used, and then restart.
22137
22138 _LT_EOF
22139         ;;
22140         *)
22141           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22142             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22143             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22144             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22145           else
22146             ld_shlibs_F77=no
22147           fi
22148         ;;
22149       esac
22150       ;;
22151
22152     sunos4*)
22153       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22154       wlarc=
22155       hardcode_direct_F77=yes
22156       hardcode_shlibpath_var_F77=no
22157       ;;
22158
22159     *)
22160       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22161         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22162         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22163       else
22164         ld_shlibs_F77=no
22165       fi
22166       ;;
22167     esac
22168
22169     if test "$ld_shlibs_F77" = no; then
22170       runpath_var=
22171       hardcode_libdir_flag_spec_F77=
22172       export_dynamic_flag_spec_F77=
22173       whole_archive_flag_spec_F77=
22174     fi
22175   else
22176     # PORTME fill in a description of your system's linker (not GNU ld)
22177     case $host_os in
22178     aix3*)
22179       allow_undefined_flag_F77=unsupported
22180       always_export_symbols_F77=yes
22181       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'
22182       # Note: this linker hardcodes the directories in LIBPATH if there
22183       # are no directories specified by -L.
22184       hardcode_minus_L_F77=yes
22185       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22186         # Neither direct hardcoding nor static linking is supported with a
22187         # broken collect2.
22188         hardcode_direct_F77=unsupported
22189       fi
22190       ;;
22191
22192     aix4* | aix5*)
22193       if test "$host_cpu" = ia64; then
22194         # On IA64, the linker does run time linking by default, so we don't
22195         # have to do anything special.
22196         aix_use_runtimelinking=no
22197         exp_sym_flag='-Bexport'
22198         no_entry_flag=""
22199       else
22200         # If we're using GNU nm, then we don't want the "-C" option.
22201         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22202         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22203           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'
22204         else
22205           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'
22206         fi
22207         aix_use_runtimelinking=no
22208
22209         # Test if we are trying to use run time linking or normal
22210         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22211         # need to do runtime linking.
22212         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22213           for ld_flag in $LDFLAGS; do
22214           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22215             aix_use_runtimelinking=yes
22216             break
22217           fi
22218           done
22219           ;;
22220         esac
22221
22222         exp_sym_flag='-bexport'
22223         no_entry_flag='-bnoentry'
22224       fi
22225
22226       # When large executables or shared objects are built, AIX ld can
22227       # have problems creating the table of contents.  If linking a library
22228       # or program results in "error TOC overflow" add -mminimal-toc to
22229       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22230       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22231
22232       archive_cmds_F77=''
22233       hardcode_direct_F77=yes
22234       hardcode_libdir_separator_F77=':'
22235       link_all_deplibs_F77=yes
22236
22237       if test "$GCC" = yes; then
22238         case $host_os in aix4.[012]|aix4.[012].*)
22239         # We only want to do this on AIX 4.2 and lower, the check
22240         # below for broken collect2 doesn't work under 4.3+
22241           collect2name=`${CC} -print-prog-name=collect2`
22242           if test -f "$collect2name" && \
22243            strings "$collect2name" | grep resolve_lib_name >/dev/null
22244           then
22245           # We have reworked collect2
22246           hardcode_direct_F77=yes
22247           else
22248           # We have old collect2
22249           hardcode_direct_F77=unsupported
22250           # It fails to find uninstalled libraries when the uninstalled
22251           # path is not listed in the libpath.  Setting hardcode_minus_L
22252           # to unsupported forces relinking
22253           hardcode_minus_L_F77=yes
22254           hardcode_libdir_flag_spec_F77='-L$libdir'
22255           hardcode_libdir_separator_F77=
22256           fi
22257           ;;
22258         esac
22259         shared_flag='-shared'
22260         if test "$aix_use_runtimelinking" = yes; then
22261           shared_flag="$shared_flag "'${wl}-G'
22262         fi
22263       else
22264         # not using gcc
22265         if test "$host_cpu" = ia64; then
22266         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22267         # chokes on -Wl,-G. The following line is correct:
22268           shared_flag='-G'
22269         else
22270           if test "$aix_use_runtimelinking" = yes; then
22271             shared_flag='${wl}-G'
22272           else
22273             shared_flag='${wl}-bM:SRE'
22274           fi
22275         fi
22276       fi
22277
22278       # It seems that -bexpall does not export symbols beginning with
22279       # underscore (_), so it is better to generate a list of symbols to export.
22280       always_export_symbols_F77=yes
22281       if test "$aix_use_runtimelinking" = yes; then
22282         # Warning - without using the other runtime loading flags (-brtl),
22283         # -berok will link without error, but may produce a broken library.
22284         allow_undefined_flag_F77='-berok'
22285        # Determine the default libpath from the value encoded in an empty executable.
22286        cat >conftest.$ac_ext <<_ACEOF
22287       program main
22288
22289       end
22290 _ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295   *) ac_try_echo=$ac_try;;
22296 esac
22297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298   (eval "$ac_link") 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } &&
22305          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22306   { (case "(($ac_try" in
22307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308   *) ac_try_echo=$ac_try;;
22309 esac
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311   (eval "$ac_try") 2>&5
22312   ac_status=$?
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); }; } &&
22315          { ac_try='test -s conftest$ac_exeext'
22316   { (case "(($ac_try" in
22317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318   *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321   (eval "$ac_try") 2>&5
22322   ac_status=$?
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); }; }; then
22325
22326 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22327 }'`
22328 # Check for a 64-bit object if we didn't find anything.
22329 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; }
22330 }'`; fi
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335
22336 fi
22337
22338 rm -f core conftest.err conftest.$ac_objext \
22339       conftest$ac_exeext conftest.$ac_ext
22340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22341
22342        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22343         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"
22344        else
22345         if test "$host_cpu" = ia64; then
22346           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22347           allow_undefined_flag_F77="-z nodefs"
22348           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"
22349         else
22350          # Determine the default libpath from the value encoded in an empty executable.
22351          cat >conftest.$ac_ext <<_ACEOF
22352       program main
22353
22354       end
22355 _ACEOF
22356 rm -f conftest.$ac_objext conftest$ac_exeext
22357 if { (ac_try="$ac_link"
22358 case "(($ac_try" in
22359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360   *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363   (eval "$ac_link") 2>conftest.er1
22364   ac_status=$?
22365   grep -v '^ *+' conftest.er1 >conftest.err
22366   rm -f conftest.er1
22367   cat conftest.err >&5
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } &&
22370          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22371   { (case "(($ac_try" in
22372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373   *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376   (eval "$ac_try") 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); }; } &&
22380          { ac_try='test -s conftest$ac_exeext'
22381   { (case "(($ac_try" in
22382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383   *) ac_try_echo=$ac_try;;
22384 esac
22385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386   (eval "$ac_try") 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390
22391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22392 }'`
22393 # Check for a 64-bit object if we didn't find anything.
22394 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; }
22395 }'`; fi
22396 else
22397   echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400
22401 fi
22402
22403 rm -f core conftest.err conftest.$ac_objext \
22404       conftest$ac_exeext conftest.$ac_ext
22405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22406
22407          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22408           # Warning - without using the other run time loading flags,
22409           # -berok will link without error, but may produce a broken library.
22410           no_undefined_flag_F77=' ${wl}-bernotok'
22411           allow_undefined_flag_F77=' ${wl}-berok'
22412           # Exported symbols can be pulled into shared objects from archives
22413           whole_archive_flag_spec_F77='$convenience'
22414           archive_cmds_need_lc_F77=yes
22415           # This is similar to how AIX traditionally builds its shared libraries.
22416           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'
22417         fi
22418       fi
22419       ;;
22420
22421     amigaos*)
22422       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)'
22423       hardcode_libdir_flag_spec_F77='-L$libdir'
22424       hardcode_minus_L_F77=yes
22425       # see comment about different semantics on the GNU ld section
22426       ld_shlibs_F77=no
22427       ;;
22428
22429     bsdi[45]*)
22430       export_dynamic_flag_spec_F77=-rdynamic
22431       ;;
22432
22433     cygwin* | mingw* | pw32*)
22434       # When not using gcc, we currently assume that we are using
22435       # Microsoft Visual C++.
22436       # hardcode_libdir_flag_spec is actually meaningless, as there is
22437       # no search path for DLLs.
22438       hardcode_libdir_flag_spec_F77=' '
22439       allow_undefined_flag_F77=unsupported
22440       # Tell ltmain to make .lib files, not .a files.
22441       libext=lib
22442       # Tell ltmain to make .dll files, not .so files.
22443       shrext_cmds=".dll"
22444       # FIXME: Setting linknames here is a bad hack.
22445       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22446       # The linker will automatically build a .lib file if we build a DLL.
22447       old_archive_From_new_cmds_F77='true'
22448       # FIXME: Should let the user specify the lib program.
22449       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22450       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22451       enable_shared_with_static_runtimes_F77=yes
22452       ;;
22453
22454     darwin* | rhapsody*)
22455       case $host_os in
22456         rhapsody* | darwin1.[012])
22457          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22458          ;;
22459        *) # Darwin 1.3 on
22460          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22461            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22462          else
22463            case ${MACOSX_DEPLOYMENT_TARGET} in
22464              10.[012])
22465                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22466                ;;
22467              10.*)
22468                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22469                ;;
22470            esac
22471          fi
22472          ;;
22473       esac
22474       archive_cmds_need_lc_F77=no
22475       hardcode_direct_F77=no
22476       hardcode_automatic_F77=yes
22477       hardcode_shlibpath_var_F77=unsupported
22478       whole_archive_flag_spec_F77=''
22479       link_all_deplibs_F77=yes
22480     if test "$GCC" = yes ; then
22481         output_verbose_link_cmd='echo'
22482         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22483       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22484       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22485       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}'
22486       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}'
22487     else
22488       case $cc_basename in
22489         xlc*)
22490          output_verbose_link_cmd='echo'
22491          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22492          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22493           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22494          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}'
22495           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}'
22496           ;;
22497        *)
22498          ld_shlibs_F77=no
22499           ;;
22500       esac
22501     fi
22502       ;;
22503
22504     dgux*)
22505       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22506       hardcode_libdir_flag_spec_F77='-L$libdir'
22507       hardcode_shlibpath_var_F77=no
22508       ;;
22509
22510     freebsd1*)
22511       ld_shlibs_F77=no
22512       ;;
22513
22514     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22515     # support.  Future versions do this automatically, but an explicit c++rt0.o
22516     # does not break anything, and helps significantly (at the cost of a little
22517     # extra space).
22518     freebsd2.2*)
22519       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22520       hardcode_libdir_flag_spec_F77='-R$libdir'
22521       hardcode_direct_F77=yes
22522       hardcode_shlibpath_var_F77=no
22523       ;;
22524
22525     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22526     freebsd2*)
22527       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22528       hardcode_direct_F77=yes
22529       hardcode_minus_L_F77=yes
22530       hardcode_shlibpath_var_F77=no
22531       ;;
22532
22533     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22534     freebsd* | kfreebsd*-gnu | dragonfly*)
22535       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22536       hardcode_libdir_flag_spec_F77='-R$libdir'
22537       hardcode_direct_F77=yes
22538       hardcode_shlibpath_var_F77=no
22539       ;;
22540
22541     hpux9*)
22542       if test "$GCC" = yes; then
22543         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'
22544       else
22545         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'
22546       fi
22547       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22548       hardcode_libdir_separator_F77=:
22549       hardcode_direct_F77=yes
22550
22551       # hardcode_minus_L: Not really in the search PATH,
22552       # but as the default location of the library.
22553       hardcode_minus_L_F77=yes
22554       export_dynamic_flag_spec_F77='${wl}-E'
22555       ;;
22556
22557     hpux10*)
22558       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22559         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22560       else
22561         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22562       fi
22563       if test "$with_gnu_ld" = no; then
22564         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22565         hardcode_libdir_separator_F77=:
22566
22567         hardcode_direct_F77=yes
22568         export_dynamic_flag_spec_F77='${wl}-E'
22569
22570         # hardcode_minus_L: Not really in the search PATH,
22571         # but as the default location of the library.
22572         hardcode_minus_L_F77=yes
22573       fi
22574       ;;
22575
22576     hpux11*)
22577       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22578         case $host_cpu in
22579         hppa*64*)
22580           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581           ;;
22582         ia64*)
22583           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22584           ;;
22585         *)
22586           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22587           ;;
22588         esac
22589       else
22590         case $host_cpu in
22591         hppa*64*)
22592           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22593           ;;
22594         ia64*)
22595           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22596           ;;
22597         *)
22598           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22599           ;;
22600         esac
22601       fi
22602       if test "$with_gnu_ld" = no; then
22603         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22604         hardcode_libdir_separator_F77=:
22605
22606         case $host_cpu in
22607         hppa*64*|ia64*)
22608           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22609           hardcode_direct_F77=no
22610           hardcode_shlibpath_var_F77=no
22611           ;;
22612         *)
22613           hardcode_direct_F77=yes
22614           export_dynamic_flag_spec_F77='${wl}-E'
22615
22616           # hardcode_minus_L: Not really in the search PATH,
22617           # but as the default location of the library.
22618           hardcode_minus_L_F77=yes
22619           ;;
22620         esac
22621       fi
22622       ;;
22623
22624     irix5* | irix6* | nonstopux*)
22625       if test "$GCC" = yes; then
22626         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'
22627       else
22628         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'
22629         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22630       fi
22631       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22632       hardcode_libdir_separator_F77=:
22633       link_all_deplibs_F77=yes
22634       ;;
22635
22636     netbsd*)
22637       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22638         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22639       else
22640         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22641       fi
22642       hardcode_libdir_flag_spec_F77='-R$libdir'
22643       hardcode_direct_F77=yes
22644       hardcode_shlibpath_var_F77=no
22645       ;;
22646
22647     newsos6)
22648       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22649       hardcode_direct_F77=yes
22650       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22651       hardcode_libdir_separator_F77=:
22652       hardcode_shlibpath_var_F77=no
22653       ;;
22654
22655     openbsd*)
22656       hardcode_direct_F77=yes
22657       hardcode_shlibpath_var_F77=no
22658       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22659         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22660         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22661         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22662         export_dynamic_flag_spec_F77='${wl}-E'
22663       else
22664        case $host_os in
22665          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22666            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22667            hardcode_libdir_flag_spec_F77='-R$libdir'
22668            ;;
22669          *)
22670            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22671            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22672            ;;
22673        esac
22674       fi
22675       ;;
22676
22677     os2*)
22678       hardcode_libdir_flag_spec_F77='-L$libdir'
22679       hardcode_minus_L_F77=yes
22680       allow_undefined_flag_F77=unsupported
22681       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'
22682       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22683       ;;
22684
22685     osf3*)
22686       if test "$GCC" = yes; then
22687         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22688         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'
22689       else
22690         allow_undefined_flag_F77=' -expect_unresolved \*'
22691         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'
22692       fi
22693       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22694       hardcode_libdir_separator_F77=:
22695       ;;
22696
22697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22698       if test "$GCC" = yes; then
22699         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22700         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'
22701         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22702       else
22703         allow_undefined_flag_F77=' -expect_unresolved \*'
22704         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'
22705         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~
22706         $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'
22707
22708         # Both c and cxx compiler support -rpath directly
22709         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22710       fi
22711       hardcode_libdir_separator_F77=:
22712       ;;
22713
22714     solaris*)
22715       no_undefined_flag_F77=' -z text'
22716       if test "$GCC" = yes; then
22717         wlarc='${wl}'
22718         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22719         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22720           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22721       else
22722         wlarc=''
22723         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22724         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22725         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22726       fi
22727       hardcode_libdir_flag_spec_F77='-R$libdir'
22728       hardcode_shlibpath_var_F77=no
22729       case $host_os in
22730       solaris2.[0-5] | solaris2.[0-5].*) ;;
22731       *)
22732         # The compiler driver will combine linker options so we
22733         # cannot just pass the convience library names through
22734         # without $wl, iff we do not link with $LD.
22735         # Luckily, gcc supports the same syntax we need for Sun Studio.
22736         # Supported since Solaris 2.6 (maybe 2.5.1?)
22737         case $wlarc in
22738         '')
22739           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22740         *)
22741           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' ;;
22742         esac ;;
22743       esac
22744       link_all_deplibs_F77=yes
22745       ;;
22746
22747     sunos4*)
22748       if test "x$host_vendor" = xsequent; then
22749         # Use $CC to link under sequent, because it throws in some extra .o
22750         # files that make .init and .fini sections work.
22751         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22752       else
22753         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22754       fi
22755       hardcode_libdir_flag_spec_F77='-L$libdir'
22756       hardcode_direct_F77=yes
22757       hardcode_minus_L_F77=yes
22758       hardcode_shlibpath_var_F77=no
22759       ;;
22760
22761     sysv4)
22762       case $host_vendor in
22763         sni)
22764           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22765           hardcode_direct_F77=yes # is this really true???
22766         ;;
22767         siemens)
22768           ## LD is ld it makes a PLAMLIB
22769           ## CC just makes a GrossModule.
22770           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22771           reload_cmds_F77='$CC -r -o $output$reload_objs'
22772           hardcode_direct_F77=no
22773         ;;
22774         motorola)
22775           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22776           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22777         ;;
22778       esac
22779       runpath_var='LD_RUN_PATH'
22780       hardcode_shlibpath_var_F77=no
22781       ;;
22782
22783     sysv4.3*)
22784       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22785       hardcode_shlibpath_var_F77=no
22786       export_dynamic_flag_spec_F77='-Bexport'
22787       ;;
22788
22789     sysv4*MP*)
22790       if test -d /usr/nec; then
22791         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22792         hardcode_shlibpath_var_F77=no
22793         runpath_var=LD_RUN_PATH
22794         hardcode_runpath_var=yes
22795         ld_shlibs_F77=yes
22796       fi
22797       ;;
22798
22799     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22800       no_undefined_flag_F77='${wl}-z,text'
22801       archive_cmds_need_lc_F77=no
22802       hardcode_shlibpath_var_F77=no
22803       runpath_var='LD_RUN_PATH'
22804
22805       if test "$GCC" = yes; then
22806         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22807         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22808       else
22809         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22811       fi
22812       ;;
22813
22814     sysv5* | sco3.2v5* | sco5v6*)
22815       # Note: We can NOT use -z defs as we might desire, because we do not
22816       # link with -lc, and that would cause any symbols used from libc to
22817       # always be unresolved, which means just about no library would
22818       # ever link correctly.  If we're not using GNU ld we use -z text
22819       # though, which does catch some bad symbols but isn't as heavy-handed
22820       # as -z defs.
22821       no_undefined_flag_F77='${wl}-z,text'
22822       allow_undefined_flag_F77='${wl}-z,nodefs'
22823       archive_cmds_need_lc_F77=no
22824       hardcode_shlibpath_var_F77=no
22825       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22826       hardcode_libdir_separator_F77=':'
22827       link_all_deplibs_F77=yes
22828       export_dynamic_flag_spec_F77='${wl}-Bexport'
22829       runpath_var='LD_RUN_PATH'
22830
22831       if test "$GCC" = yes; then
22832         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22833         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22834       else
22835         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22837       fi
22838       ;;
22839
22840     uts4*)
22841       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22842       hardcode_libdir_flag_spec_F77='-L$libdir'
22843       hardcode_shlibpath_var_F77=no
22844       ;;
22845
22846     *)
22847       ld_shlibs_F77=no
22848       ;;
22849     esac
22850   fi
22851
22852 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22853 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22854 test "$ld_shlibs_F77" = no && can_build_shared=no
22855
22856 #
22857 # Do we need to explicitly link libc?
22858 #
22859 case "x$archive_cmds_need_lc_F77" in
22860 x|xyes)
22861   # Assume -lc should be added
22862   archive_cmds_need_lc_F77=yes
22863
22864   if test "$enable_shared" = yes && test "$GCC" = yes; then
22865     case $archive_cmds_F77 in
22866     *'~'*)
22867       # FIXME: we may have to deal with multi-command sequences.
22868       ;;
22869     '$CC '*)
22870       # Test whether the compiler implicitly links with -lc since on some
22871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22872       # to ld, don't add -lc before -lgcc.
22873       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22875       $rm conftest*
22876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22877
22878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22879   (eval $ac_compile) 2>&5
22880   ac_status=$?
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } 2>conftest.err; then
22883         soname=conftest
22884         lib=conftest
22885         libobjs=conftest.$ac_objext
22886         deplibs=
22887         wl=$lt_prog_compiler_wl_F77
22888         pic_flag=$lt_prog_compiler_pic_F77
22889         compiler_flags=-v
22890         linker_flags=-v
22891         verstring=
22892         output_objdir=.
22893         libname=conftest
22894         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22895         allow_undefined_flag_F77=
22896         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22897   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22898   ac_status=$?
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); }
22901         then
22902           archive_cmds_need_lc_F77=no
22903         else
22904           archive_cmds_need_lc_F77=yes
22905         fi
22906         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22907       else
22908         cat conftest.err 1>&5
22909       fi
22910       $rm conftest*
22911       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22912 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22913       ;;
22914     esac
22915   fi
22916   ;;
22917 esac
22918
22919 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22921 library_names_spec=
22922 libname_spec='lib$name'
22923 soname_spec=
22924 shrext_cmds=".so"
22925 postinstall_cmds=
22926 postuninstall_cmds=
22927 finish_cmds=
22928 finish_eval=
22929 shlibpath_var=
22930 shlibpath_overrides_runpath=unknown
22931 version_type=none
22932 dynamic_linker="$host_os ld.so"
22933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22934 if test "$GCC" = yes; then
22935   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22936   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22937     # if the path contains ";" then we assume it to be the separator
22938     # otherwise default to the standard path separator (i.e. ":") - it is
22939     # assumed that no part of a normal pathname contains ";" but that should
22940     # okay in the real world where ";" in dirpaths is itself problematic.
22941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22942   else
22943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22944   fi
22945 else
22946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22947 fi
22948 need_lib_prefix=unknown
22949 hardcode_into_libs=no
22950
22951 # when you set need_version to no, make sure it does not cause -set_version
22952 # flags to be left without arguments
22953 need_version=unknown
22954
22955 case $host_os in
22956 aix3*)
22957   version_type=linux
22958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22959   shlibpath_var=LIBPATH
22960
22961   # AIX 3 has no versioning support, so we append a major version to the name.
22962   soname_spec='${libname}${release}${shared_ext}$major'
22963   ;;
22964
22965 aix4* | aix5*)
22966   version_type=linux
22967   need_lib_prefix=no
22968   need_version=no
22969   hardcode_into_libs=yes
22970   if test "$host_cpu" = ia64; then
22971     # AIX 5 supports IA64
22972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22973     shlibpath_var=LD_LIBRARY_PATH
22974   else
22975     # With GCC up to 2.95.x, collect2 would create an import file
22976     # for dependence libraries.  The import file would start with
22977     # the line `#! .'.  This would cause the generated library to
22978     # depend on `.', always an invalid library.  This was fixed in
22979     # development snapshots of GCC prior to 3.0.
22980     case $host_os in
22981       aix4 | aix4.[01] | aix4.[01].*)
22982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22983            echo ' yes '
22984            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22985         :
22986       else
22987         can_build_shared=no
22988       fi
22989       ;;
22990     esac
22991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22992     # soname into executable. Probably we can add versioning support to
22993     # collect2, so additional links can be useful in future.
22994     if test "$aix_use_runtimelinking" = yes; then
22995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22996       # instead of lib<name>.a to let people know that these are not
22997       # typical AIX shared libraries.
22998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999     else
23000       # We preserve .a as extension for shared libraries through AIX4.2
23001       # and later when we are not doing run time linking.
23002       library_names_spec='${libname}${release}.a $libname.a'
23003       soname_spec='${libname}${release}${shared_ext}$major'
23004     fi
23005     shlibpath_var=LIBPATH
23006   fi
23007   ;;
23008
23009 amigaos*)
23010   library_names_spec='$libname.ixlibrary $libname.a'
23011   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23012   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'
23013   ;;
23014
23015 beos*)
23016   library_names_spec='${libname}${shared_ext}'
23017   dynamic_linker="$host_os ld.so"
23018   shlibpath_var=LIBRARY_PATH
23019   ;;
23020
23021 bsdi[45]*)
23022   version_type=linux
23023   need_version=no
23024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025   soname_spec='${libname}${release}${shared_ext}$major'
23026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23027   shlibpath_var=LD_LIBRARY_PATH
23028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23030   # the default ld.so.conf also contains /usr/contrib/lib and
23031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23032   # libtool to hard-code these into programs
23033   ;;
23034
23035 cygwin* | mingw* | pw32*)
23036   version_type=windows
23037   shrext_cmds=".dll"
23038   need_version=no
23039   need_lib_prefix=no
23040
23041   case $GCC,$host_os in
23042   yes,cygwin* | yes,mingw* | yes,pw32*)
23043     library_names_spec='$libname.dll.a'
23044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23045     postinstall_cmds='base_file=`basename \${file}`~
23046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23047       dldir=$destdir/`dirname \$dlpath`~
23048       test -d \$dldir || mkdir -p \$dldir~
23049       $install_prog $dir/$dlname \$dldir/$dlname~
23050       chmod a+x \$dldir/$dlname'
23051     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23052       dlpath=$dir/\$dldll~
23053        $rm \$dlpath'
23054     shlibpath_overrides_runpath=yes
23055
23056     case $host_os in
23057     cygwin*)
23058       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23059       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23060       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23061       ;;
23062     mingw*)
23063       # MinGW DLLs use traditional 'lib' prefix
23064       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23065       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23066       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23067         # It is most probably a Windows format PATH printed by
23068         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23069         # path with ; separators, and with drive letters. We can handle the
23070         # drive letters (cygwin fileutils understands them), so leave them,
23071         # especially as we might pass files found there to a mingw objdump,
23072         # which wouldn't understand a cygwinified path. Ahh.
23073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23074       else
23075         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23076       fi
23077       ;;
23078     pw32*)
23079       # pw32 DLLs use 'pw' prefix rather than 'lib'
23080       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23081       ;;
23082     esac
23083     ;;
23084
23085   *)
23086     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23087     ;;
23088   esac
23089   dynamic_linker='Win32 ld.exe'
23090   # FIXME: first we should search . and the directory the executable is in
23091   shlibpath_var=PATH
23092   ;;
23093
23094 darwin* | rhapsody*)
23095   dynamic_linker="$host_os dyld"
23096   version_type=darwin
23097   need_lib_prefix=no
23098   need_version=no
23099   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23100   soname_spec='${libname}${release}${major}$shared_ext'
23101   shlibpath_overrides_runpath=yes
23102   shlibpath_var=DYLD_LIBRARY_PATH
23103   shrext_cmds='.dylib'
23104   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23105   if test "$GCC" = yes; then
23106     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"`
23107   else
23108     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23109   fi
23110   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23111   ;;
23112
23113 dgux*)
23114   version_type=linux
23115   need_lib_prefix=no
23116   need_version=no
23117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23118   soname_spec='${libname}${release}${shared_ext}$major'
23119   shlibpath_var=LD_LIBRARY_PATH
23120   ;;
23121
23122 freebsd1*)
23123   dynamic_linker=no
23124   ;;
23125
23126 kfreebsd*-gnu)
23127   version_type=linux
23128   need_lib_prefix=no
23129   need_version=no
23130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23131   soname_spec='${libname}${release}${shared_ext}$major'
23132   shlibpath_var=LD_LIBRARY_PATH
23133   shlibpath_overrides_runpath=no
23134   hardcode_into_libs=yes
23135   dynamic_linker='GNU ld.so'
23136   ;;
23137
23138 freebsd* | dragonfly*)
23139   # DragonFly does not have aout.  When/if they implement a new
23140   # versioning mechanism, adjust this.
23141   if test -x /usr/bin/objformat; then
23142     objformat=`/usr/bin/objformat`
23143   else
23144     case $host_os in
23145     freebsd[123]*) objformat=aout ;;
23146     *) objformat=elf ;;
23147     esac
23148   fi
23149   version_type=freebsd-$objformat
23150   case $version_type in
23151     freebsd-elf*)
23152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23153       need_version=no
23154       need_lib_prefix=no
23155       ;;
23156     freebsd-*)
23157       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23158       need_version=yes
23159       ;;
23160   esac
23161   shlibpath_var=LD_LIBRARY_PATH
23162   case $host_os in
23163   freebsd2*)
23164     shlibpath_overrides_runpath=yes
23165     ;;
23166   freebsd3.[01]* | freebsdelf3.[01]*)
23167     shlibpath_overrides_runpath=yes
23168     hardcode_into_libs=yes
23169     ;;
23170   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23171   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23172     shlibpath_overrides_runpath=no
23173     hardcode_into_libs=yes
23174     ;;
23175   freebsd*) # from 4.6 on
23176     shlibpath_overrides_runpath=yes
23177     hardcode_into_libs=yes
23178     ;;
23179   esac
23180   ;;
23181
23182 gnu*)
23183   version_type=linux
23184   need_lib_prefix=no
23185   need_version=no
23186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23187   soname_spec='${libname}${release}${shared_ext}$major'
23188   shlibpath_var=LD_LIBRARY_PATH
23189   hardcode_into_libs=yes
23190   ;;
23191
23192 hpux9* | hpux10* | hpux11*)
23193   # Give a soname corresponding to the major version so that dld.sl refuses to
23194   # link against other versions.
23195   version_type=sunos
23196   need_lib_prefix=no
23197   need_version=no
23198   case $host_cpu in
23199   ia64*)
23200     shrext_cmds='.so'
23201     hardcode_into_libs=yes
23202     dynamic_linker="$host_os dld.so"
23203     shlibpath_var=LD_LIBRARY_PATH
23204     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23206     soname_spec='${libname}${release}${shared_ext}$major'
23207     if test "X$HPUX_IA64_MODE" = X32; then
23208       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23209     else
23210       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23211     fi
23212     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23213     ;;
23214    hppa*64*)
23215      shrext_cmds='.sl'
23216      hardcode_into_libs=yes
23217      dynamic_linker="$host_os dld.sl"
23218      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23219      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23221      soname_spec='${libname}${release}${shared_ext}$major'
23222      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23223      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23224      ;;
23225    *)
23226     shrext_cmds='.sl'
23227     dynamic_linker="$host_os dld.sl"
23228     shlibpath_var=SHLIB_PATH
23229     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231     soname_spec='${libname}${release}${shared_ext}$major'
23232     ;;
23233   esac
23234   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23235   postinstall_cmds='chmod 555 $lib'
23236   ;;
23237
23238 interix3*)
23239   version_type=linux
23240   need_lib_prefix=no
23241   need_version=no
23242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23243   soname_spec='${libname}${release}${shared_ext}$major'
23244   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23245   shlibpath_var=LD_LIBRARY_PATH
23246   shlibpath_overrides_runpath=no
23247   hardcode_into_libs=yes
23248   ;;
23249
23250 irix5* | irix6* | nonstopux*)
23251   case $host_os in
23252     nonstopux*) version_type=nonstopux ;;
23253     *)
23254         if test "$lt_cv_prog_gnu_ld" = yes; then
23255                 version_type=linux
23256         else
23257                 version_type=irix
23258         fi ;;
23259   esac
23260   need_lib_prefix=no
23261   need_version=no
23262   soname_spec='${libname}${release}${shared_ext}$major'
23263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23264   case $host_os in
23265   irix5* | nonstopux*)
23266     libsuff= shlibsuff=
23267     ;;
23268   *)
23269     case $LD in # libtool.m4 will add one of these switches to LD
23270     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23271       libsuff= shlibsuff= libmagic=32-bit;;
23272     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23273       libsuff=32 shlibsuff=N32 libmagic=N32;;
23274     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23275       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23276     *) libsuff= shlibsuff= libmagic=never-match;;
23277     esac
23278     ;;
23279   esac
23280   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23281   shlibpath_overrides_runpath=no
23282   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23283   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23284   hardcode_into_libs=yes
23285   ;;
23286
23287 # No shared lib support for Linux oldld, aout, or coff.
23288 linux*oldld* | linux*aout* | linux*coff*)
23289   dynamic_linker=no
23290   ;;
23291
23292 # This must be Linux ELF.
23293 linux*)
23294   version_type=linux
23295   need_lib_prefix=no
23296   need_version=no
23297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298   soname_spec='${libname}${release}${shared_ext}$major'
23299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23300   shlibpath_var=LD_LIBRARY_PATH
23301   shlibpath_overrides_runpath=no
23302   # This implies no fast_install, which is unacceptable.
23303   # Some rework will be needed to allow for fast_install
23304   # before this can be enabled.
23305   hardcode_into_libs=yes
23306
23307   # Append ld.so.conf contents to the search path
23308   if test -f /etc/ld.so.conf; then
23309     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' ' '`
23310     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23311   fi
23312
23313   # We used to test for /lib/ld.so.1 and disable shared libraries on
23314   # powerpc, because MkLinux only supported shared libraries with the
23315   # GNU dynamic linker.  Since this was broken with cross compilers,
23316   # most powerpc-linux boxes support dynamic linking these days and
23317   # people can always --disable-shared, the test was removed, and we
23318   # assume the GNU/Linux dynamic linker is in use.
23319   dynamic_linker='GNU/Linux ld.so'
23320   ;;
23321
23322 knetbsd*-gnu)
23323   version_type=linux
23324   need_lib_prefix=no
23325   need_version=no
23326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23327   soname_spec='${libname}${release}${shared_ext}$major'
23328   shlibpath_var=LD_LIBRARY_PATH
23329   shlibpath_overrides_runpath=no
23330   hardcode_into_libs=yes
23331   dynamic_linker='GNU ld.so'
23332   ;;
23333
23334 netbsd*)
23335   version_type=sunos
23336   need_lib_prefix=no
23337   need_version=no
23338   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23340     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23341     dynamic_linker='NetBSD (a.out) ld.so'
23342   else
23343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23344     soname_spec='${libname}${release}${shared_ext}$major'
23345     dynamic_linker='NetBSD ld.elf_so'
23346   fi
23347   shlibpath_var=LD_LIBRARY_PATH
23348   shlibpath_overrides_runpath=yes
23349   hardcode_into_libs=yes
23350   ;;
23351
23352 newsos6)
23353   version_type=linux
23354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23355   shlibpath_var=LD_LIBRARY_PATH
23356   shlibpath_overrides_runpath=yes
23357   ;;
23358
23359 nto-qnx*)
23360   version_type=linux
23361   need_lib_prefix=no
23362   need_version=no
23363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23364   soname_spec='${libname}${release}${shared_ext}$major'
23365   shlibpath_var=LD_LIBRARY_PATH
23366   shlibpath_overrides_runpath=yes
23367   ;;
23368
23369 openbsd*)
23370   version_type=sunos
23371   sys_lib_dlsearch_path_spec="/usr/lib"
23372   need_lib_prefix=no
23373   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23374   case $host_os in
23375     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23376     *)                         need_version=no  ;;
23377   esac
23378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23380   shlibpath_var=LD_LIBRARY_PATH
23381   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23382     case $host_os in
23383       openbsd2.[89] | openbsd2.[89].*)
23384         shlibpath_overrides_runpath=no
23385         ;;
23386       *)
23387         shlibpath_overrides_runpath=yes
23388         ;;
23389       esac
23390   else
23391     shlibpath_overrides_runpath=yes
23392   fi
23393   ;;
23394
23395 os2*)
23396   libname_spec='$name'
23397   shrext_cmds=".dll"
23398   need_lib_prefix=no
23399   library_names_spec='$libname${shared_ext} $libname.a'
23400   dynamic_linker='OS/2 ld.exe'
23401   shlibpath_var=LIBPATH
23402   ;;
23403
23404 osf3* | osf4* | osf5*)
23405   version_type=osf
23406   need_lib_prefix=no
23407   need_version=no
23408   soname_spec='${libname}${release}${shared_ext}$major'
23409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23410   shlibpath_var=LD_LIBRARY_PATH
23411   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23412   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23413   ;;
23414
23415 solaris*)
23416   version_type=linux
23417   need_lib_prefix=no
23418   need_version=no
23419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23420   soname_spec='${libname}${release}${shared_ext}$major'
23421   shlibpath_var=LD_LIBRARY_PATH
23422   shlibpath_overrides_runpath=yes
23423   hardcode_into_libs=yes
23424   # ldd complains unless libraries are executable
23425   postinstall_cmds='chmod +x $lib'
23426   ;;
23427
23428 sunos4*)
23429   version_type=sunos
23430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23431   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23432   shlibpath_var=LD_LIBRARY_PATH
23433   shlibpath_overrides_runpath=yes
23434   if test "$with_gnu_ld" = yes; then
23435     need_lib_prefix=no
23436   fi
23437   need_version=yes
23438   ;;
23439
23440 sysv4 | sysv4.3*)
23441   version_type=linux
23442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23443   soname_spec='${libname}${release}${shared_ext}$major'
23444   shlibpath_var=LD_LIBRARY_PATH
23445   case $host_vendor in
23446     sni)
23447       shlibpath_overrides_runpath=no
23448       need_lib_prefix=no
23449       export_dynamic_flag_spec='${wl}-Blargedynsym'
23450       runpath_var=LD_RUN_PATH
23451       ;;
23452     siemens)
23453       need_lib_prefix=no
23454       ;;
23455     motorola)
23456       need_lib_prefix=no
23457       need_version=no
23458       shlibpath_overrides_runpath=no
23459       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23460       ;;
23461   esac
23462   ;;
23463
23464 sysv4*MP*)
23465   if test -d /usr/nec ;then
23466     version_type=linux
23467     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23468     soname_spec='$libname${shared_ext}.$major'
23469     shlibpath_var=LD_LIBRARY_PATH
23470   fi
23471   ;;
23472
23473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23474   version_type=freebsd-elf
23475   need_lib_prefix=no
23476   need_version=no
23477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23478   soname_spec='${libname}${release}${shared_ext}$major'
23479   shlibpath_var=LD_LIBRARY_PATH
23480   hardcode_into_libs=yes
23481   if test "$with_gnu_ld" = yes; then
23482     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23483     shlibpath_overrides_runpath=no
23484   else
23485     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23486     shlibpath_overrides_runpath=yes
23487     case $host_os in
23488       sco3.2v5*)
23489         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23490         ;;
23491     esac
23492   fi
23493   sys_lib_dlsearch_path_spec='/usr/lib'
23494   ;;
23495
23496 uts4*)
23497   version_type=linux
23498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23499   soname_spec='${libname}${release}${shared_ext}$major'
23500   shlibpath_var=LD_LIBRARY_PATH
23501   ;;
23502
23503 *)
23504   dynamic_linker=no
23505   ;;
23506 esac
23507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23508 echo "${ECHO_T}$dynamic_linker" >&6; }
23509 test "$dynamic_linker" = no && can_build_shared=no
23510
23511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23512 if test "$GCC" = yes; then
23513   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23514 fi
23515
23516 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23518 hardcode_action_F77=
23519 if test -n "$hardcode_libdir_flag_spec_F77" || \
23520    test -n "$runpath_var_F77" || \
23521    test "X$hardcode_automatic_F77" = "Xyes" ; then
23522
23523   # We can hardcode non-existant directories.
23524   if test "$hardcode_direct_F77" != no &&
23525      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23526      # have to relink, otherwise we might link with an installed library
23527      # when we should be linking with a yet-to-be-installed one
23528      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23529      test "$hardcode_minus_L_F77" != no; then
23530     # Linking always hardcodes the temporary library directory.
23531     hardcode_action_F77=relink
23532   else
23533     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23534     hardcode_action_F77=immediate
23535   fi
23536 else
23537   # We cannot hardcode anything, or else we can only hardcode existing
23538   # directories.
23539   hardcode_action_F77=unsupported
23540 fi
23541 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23542 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23543
23544 if test "$hardcode_action_F77" = relink; then
23545   # Fast installation is not supported
23546   enable_fast_install=no
23547 elif test "$shlibpath_overrides_runpath" = yes ||
23548      test "$enable_shared" = no; then
23549   # Fast installation is not necessary
23550   enable_fast_install=needless
23551 fi
23552
23553
23554 # The else clause should only fire when bootstrapping the
23555 # libtool distribution, otherwise you forgot to ship ltmain.sh
23556 # with your package, and you will get complaints that there are
23557 # no rules to generate ltmain.sh.
23558 if test -f "$ltmain"; then
23559   # See if we are running on zsh, and set the options which allow our commands through
23560   # without removal of \ escapes.
23561   if test -n "${ZSH_VERSION+set}" ; then
23562     setopt NO_GLOB_SUBST
23563   fi
23564   # Now quote all the things that may contain metacharacters while being
23565   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23566   # variables and quote the copies for generation of the libtool script.
23567   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23568     SED SHELL STRIP \
23569     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23570     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23571     deplibs_check_method reload_flag reload_cmds need_locks \
23572     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23573     lt_cv_sys_global_symbol_to_c_name_address \
23574     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23575     old_postinstall_cmds old_postuninstall_cmds \
23576     compiler_F77 \
23577     CC_F77 \
23578     LD_F77 \
23579     lt_prog_compiler_wl_F77 \
23580     lt_prog_compiler_pic_F77 \
23581     lt_prog_compiler_static_F77 \
23582     lt_prog_compiler_no_builtin_flag_F77 \
23583     export_dynamic_flag_spec_F77 \
23584     thread_safe_flag_spec_F77 \
23585     whole_archive_flag_spec_F77 \
23586     enable_shared_with_static_runtimes_F77 \
23587     old_archive_cmds_F77 \
23588     old_archive_from_new_cmds_F77 \
23589     predep_objects_F77 \
23590     postdep_objects_F77 \
23591     predeps_F77 \
23592     postdeps_F77 \
23593     compiler_lib_search_path_F77 \
23594     archive_cmds_F77 \
23595     archive_expsym_cmds_F77 \
23596     postinstall_cmds_F77 \
23597     postuninstall_cmds_F77 \
23598     old_archive_from_expsyms_cmds_F77 \
23599     allow_undefined_flag_F77 \
23600     no_undefined_flag_F77 \
23601     export_symbols_cmds_F77 \
23602     hardcode_libdir_flag_spec_F77 \
23603     hardcode_libdir_flag_spec_ld_F77 \
23604     hardcode_libdir_separator_F77 \
23605     hardcode_automatic_F77 \
23606     module_cmds_F77 \
23607     module_expsym_cmds_F77 \
23608     lt_cv_prog_compiler_c_o_F77 \
23609     exclude_expsyms_F77 \
23610     include_expsyms_F77; do
23611
23612     case $var in
23613     old_archive_cmds_F77 | \
23614     old_archive_from_new_cmds_F77 | \
23615     archive_cmds_F77 | \
23616     archive_expsym_cmds_F77 | \
23617     module_cmds_F77 | \
23618     module_expsym_cmds_F77 | \
23619     old_archive_from_expsyms_cmds_F77 | \
23620     export_symbols_cmds_F77 | \
23621     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23622     postinstall_cmds | postuninstall_cmds | \
23623     old_postinstall_cmds | old_postuninstall_cmds | \
23624     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23625       # Double-quote double-evaled strings.
23626       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23627       ;;
23628     *)
23629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23630       ;;
23631     esac
23632   done
23633
23634   case $lt_echo in
23635   *'\$0 --fallback-echo"')
23636     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23637     ;;
23638   esac
23639
23640 cfgfile="$ofile"
23641
23642   cat <<__EOF__ >> "$cfgfile"
23643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23644
23645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23646
23647 # Shell to use when invoking shell scripts.
23648 SHELL=$lt_SHELL
23649
23650 # Whether or not to build shared libraries.
23651 build_libtool_libs=$enable_shared
23652
23653 # Whether or not to build static libraries.
23654 build_old_libs=$enable_static
23655
23656 # Whether or not to add -lc for building shared libraries.
23657 build_libtool_need_lc=$archive_cmds_need_lc_F77
23658
23659 # Whether or not to disallow shared libs when runtime libs are static
23660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23661
23662 # Whether or not to optimize for fast installation.
23663 fast_install=$enable_fast_install
23664
23665 # The host system.
23666 host_alias=$host_alias
23667 host=$host
23668 host_os=$host_os
23669
23670 # The build system.
23671 build_alias=$build_alias
23672 build=$build
23673 build_os=$build_os
23674
23675 # An echo program that does not interpret backslashes.
23676 echo=$lt_echo
23677
23678 # The archiver.
23679 AR=$lt_AR
23680 AR_FLAGS=$lt_AR_FLAGS
23681
23682 # A C compiler.
23683 LTCC=$lt_LTCC
23684
23685 # LTCC compiler flags.
23686 LTCFLAGS=$lt_LTCFLAGS
23687
23688 # A language-specific compiler.
23689 CC=$lt_compiler_F77
23690
23691 # Is the compiler the GNU C compiler?
23692 with_gcc=$GCC_F77
23693
23694 # An ERE matcher.
23695 EGREP=$lt_EGREP
23696
23697 # The linker used to build libraries.
23698 LD=$lt_LD_F77
23699
23700 # Whether we need hard or soft links.
23701 LN_S=$lt_LN_S
23702
23703 # A BSD-compatible nm program.
23704 NM=$lt_NM
23705
23706 # A symbol stripping program
23707 STRIP=$lt_STRIP
23708
23709 # Used to examine libraries when file_magic_cmd begins "file"
23710 MAGIC_CMD=$MAGIC_CMD
23711
23712 # Used on cygwin: DLL creation program.
23713 DLLTOOL="$DLLTOOL"
23714
23715 # Used on cygwin: object dumper.
23716 OBJDUMP="$OBJDUMP"
23717
23718 # Used on cygwin: assembler.
23719 AS="$AS"
23720
23721 # The name of the directory that contains temporary libtool files.
23722 objdir=$objdir
23723
23724 # How to create reloadable object files.
23725 reload_flag=$lt_reload_flag
23726 reload_cmds=$lt_reload_cmds
23727
23728 # How to pass a linker flag through the compiler.
23729 wl=$lt_lt_prog_compiler_wl_F77
23730
23731 # Object file suffix (normally "o").
23732 objext="$ac_objext"
23733
23734 # Old archive suffix (normally "a").
23735 libext="$libext"
23736
23737 # Shared library suffix (normally ".so").
23738 shrext_cmds='$shrext_cmds'
23739
23740 # Executable file suffix (normally "").
23741 exeext="$exeext"
23742
23743 # Additional compiler flags for building library objects.
23744 pic_flag=$lt_lt_prog_compiler_pic_F77
23745 pic_mode=$pic_mode
23746
23747 # What is the maximum length of a command?
23748 max_cmd_len=$lt_cv_sys_max_cmd_len
23749
23750 # Does compiler simultaneously support -c and -o options?
23751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23752
23753 # Must we lock files when doing compilation?
23754 need_locks=$lt_need_locks
23755
23756 # Do we need the lib prefix for modules?
23757 need_lib_prefix=$need_lib_prefix
23758
23759 # Do we need a version for libraries?
23760 need_version=$need_version
23761
23762 # Whether dlopen is supported.
23763 dlopen_support=$enable_dlopen
23764
23765 # Whether dlopen of programs is supported.
23766 dlopen_self=$enable_dlopen_self
23767
23768 # Whether dlopen of statically linked programs is supported.
23769 dlopen_self_static=$enable_dlopen_self_static
23770
23771 # Compiler flag to prevent dynamic linking.
23772 link_static_flag=$lt_lt_prog_compiler_static_F77
23773
23774 # Compiler flag to turn off builtin functions.
23775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23776
23777 # Compiler flag to allow reflexive dlopens.
23778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23779
23780 # Compiler flag to generate shared objects directly from archives.
23781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23782
23783 # Compiler flag to generate thread-safe objects.
23784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23785
23786 # Library versioning type.
23787 version_type=$version_type
23788
23789 # Format of library name prefix.
23790 libname_spec=$lt_libname_spec
23791
23792 # List of archive names.  First name is the real one, the rest are links.
23793 # The last name is the one that the linker finds with -lNAME.
23794 library_names_spec=$lt_library_names_spec
23795
23796 # The coded name of the library, if different from the real name.
23797 soname_spec=$lt_soname_spec
23798
23799 # Commands used to build and install an old-style archive.
23800 RANLIB=$lt_RANLIB
23801 old_archive_cmds=$lt_old_archive_cmds_F77
23802 old_postinstall_cmds=$lt_old_postinstall_cmds
23803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23804
23805 # Create an old-style archive from a shared archive.
23806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23807
23808 # Create a temporary old-style archive to link instead of a shared archive.
23809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23810
23811 # Commands used to build and install a shared archive.
23812 archive_cmds=$lt_archive_cmds_F77
23813 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23814 postinstall_cmds=$lt_postinstall_cmds
23815 postuninstall_cmds=$lt_postuninstall_cmds
23816
23817 # Commands used to build a loadable module (assumed same as above if empty)
23818 module_cmds=$lt_module_cmds_F77
23819 module_expsym_cmds=$lt_module_expsym_cmds_F77
23820
23821 # Commands to strip libraries.
23822 old_striplib=$lt_old_striplib
23823 striplib=$lt_striplib
23824
23825 # Dependencies to place before the objects being linked to create a
23826 # shared library.
23827 predep_objects=$lt_predep_objects_F77
23828
23829 # Dependencies to place after the objects being linked to create a
23830 # shared library.
23831 postdep_objects=$lt_postdep_objects_F77
23832
23833 # Dependencies to place before the objects being linked to create a
23834 # shared library.
23835 predeps=$lt_predeps_F77
23836
23837 # Dependencies to place after the objects being linked to create a
23838 # shared library.
23839 postdeps=$lt_postdeps_F77
23840
23841 # The library search path used internally by the compiler when linking
23842 # a shared library.
23843 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23844
23845 # Method to check whether dependent libraries are shared objects.
23846 deplibs_check_method=$lt_deplibs_check_method
23847
23848 # Command to use when deplibs_check_method == file_magic.
23849 file_magic_cmd=$lt_file_magic_cmd
23850
23851 # Flag that allows shared libraries with undefined symbols to be built.
23852 allow_undefined_flag=$lt_allow_undefined_flag_F77
23853
23854 # Flag that forces no undefined symbols.
23855 no_undefined_flag=$lt_no_undefined_flag_F77
23856
23857 # Commands used to finish a libtool library installation in a directory.
23858 finish_cmds=$lt_finish_cmds
23859
23860 # Same as above, but a single script fragment to be evaled but not shown.
23861 finish_eval=$lt_finish_eval
23862
23863 # Take the output of nm and produce a listing of raw symbols and C names.
23864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23865
23866 # Transform the output of nm in a proper C declaration
23867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23868
23869 # Transform the output of nm in a C name address pair
23870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23871
23872 # This is the shared library runtime path variable.
23873 runpath_var=$runpath_var
23874
23875 # This is the shared library path variable.
23876 shlibpath_var=$shlibpath_var
23877
23878 # Is shlibpath searched before the hard-coded library search path?
23879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23880
23881 # How to hardcode a shared library path into an executable.
23882 hardcode_action=$hardcode_action_F77
23883
23884 # Whether we should hardcode library paths into libraries.
23885 hardcode_into_libs=$hardcode_into_libs
23886
23887 # Flag to hardcode \$libdir into a binary during linking.
23888 # This must work even if \$libdir does not exist.
23889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23890
23891 # If ld is used when linking, flag to hardcode \$libdir into
23892 # a binary during linking. This must work even if \$libdir does
23893 # not exist.
23894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23895
23896 # Whether we need a single -rpath flag with a separated argument.
23897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23898
23899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23900 # resulting binary.
23901 hardcode_direct=$hardcode_direct_F77
23902
23903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23904 # resulting binary.
23905 hardcode_minus_L=$hardcode_minus_L_F77
23906
23907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23908 # the resulting binary.
23909 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23910
23911 # Set to yes if building a shared library automatically hardcodes DIR into the library
23912 # and all subsequent libraries and executables linked against it.
23913 hardcode_automatic=$hardcode_automatic_F77
23914
23915 # Variables whose values should be saved in libtool wrapper scripts and
23916 # restored at relink time.
23917 variables_saved_for_relink="$variables_saved_for_relink"
23918
23919 # Whether libtool must link a program against all its dependency libraries.
23920 link_all_deplibs=$link_all_deplibs_F77
23921
23922 # Compile-time system search path for libraries
23923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23924
23925 # Run-time system search path for libraries
23926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23927
23928 # Fix the shell variable \$srcfile for the compiler.
23929 fix_srcfile_path="$fix_srcfile_path_F77"
23930
23931 # Set to yes if exported symbols are required.
23932 always_export_symbols=$always_export_symbols_F77
23933
23934 # The commands to list exported symbols.
23935 export_symbols_cmds=$lt_export_symbols_cmds_F77
23936
23937 # The commands to extract the exported symbol list from a shared archive.
23938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23939
23940 # Symbols that should not be listed in the preloaded symbols.
23941 exclude_expsyms=$lt_exclude_expsyms_F77
23942
23943 # Symbols that must always be exported.
23944 include_expsyms=$lt_include_expsyms_F77
23945
23946 # ### END LIBTOOL TAG CONFIG: $tagname
23947
23948 __EOF__
23949
23950
23951 else
23952   # If there is no Makefile yet, we rely on a make rule to execute
23953   # `config.status --recheck' to rerun these tests and create the
23954   # libtool script then.
23955   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23956   if test -f "$ltmain_in"; then
23957     test -f Makefile && make "$ltmain"
23958   fi
23959 fi
23960
23961
23962 ac_ext=c
23963 ac_cpp='$CPP $CPPFLAGS'
23964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23967
23968 CC="$lt_save_CC"
23969
23970         else
23971           tagname=""
23972         fi
23973         ;;
23974
23975       GCJ)
23976         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23977           ac_ext=c
23978 ac_cpp='$CPP $CPPFLAGS'
23979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23982
23983
23984 # Source file extension for Java test sources.
23985 ac_ext=java
23986
23987 # Object file extension for compiled Java test sources.
23988 objext=o
23989 objext_GCJ=$objext
23990
23991 # Code to be used in simple compile tests
23992 lt_simple_compile_test_code="class foo {}\n"
23993
23994 # Code to be used in simple link tests
23995 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23996
23997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23998
23999 # If no C compiler was specified, use CC.
24000 LTCC=${LTCC-"$CC"}
24001
24002 # If no C compiler flags were specified, use CFLAGS.
24003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24004
24005 # Allow CC to be a program name with arguments.
24006 compiler=$CC
24007
24008
24009 # save warnings/boilerplate of simple test code
24010 ac_outfile=conftest.$ac_objext
24011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24013 _lt_compiler_boilerplate=`cat conftest.err`
24014 $rm conftest*
24015
24016 ac_outfile=conftest.$ac_objext
24017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24019 _lt_linker_boilerplate=`cat conftest.err`
24020 $rm conftest*
24021
24022
24023 # Allow CC to be a program name with arguments.
24024 lt_save_CC="$CC"
24025 CC=${GCJ-"gcj"}
24026 compiler=$CC
24027 compiler_GCJ=$CC
24028 for cc_temp in $compiler""; do
24029   case $cc_temp in
24030     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24031     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24032     \-*) ;;
24033     *) break;;
24034   esac
24035 done
24036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24037
24038
24039 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24040 archive_cmds_need_lc_GCJ=no
24041
24042 old_archive_cmds_GCJ=$old_archive_cmds
24043
24044
24045 lt_prog_compiler_no_builtin_flag_GCJ=
24046
24047 if test "$GCC" = yes; then
24048   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24049
24050
24051 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24052 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24053 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24054   echo $ECHO_N "(cached) $ECHO_C" >&6
24055 else
24056   lt_cv_prog_compiler_rtti_exceptions=no
24057   ac_outfile=conftest.$ac_objext
24058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059    lt_compiler_flag="-fno-rtti -fno-exceptions"
24060    # Insert the option either (1) after the last *FLAGS variable, or
24061    # (2) before a word containing "conftest.", or (3) at the end.
24062    # Note that $ac_compile itself does not contain backslashes and begins
24063    # with a dollar sign (not a hyphen), so the echo should work correctly.
24064    # The option is referenced via a variable to avoid confusing sed.
24065    lt_compile=`echo "$ac_compile" | $SED \
24066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068    -e 's:$: $lt_compiler_flag:'`
24069    (eval echo "\"\$as_me:24069: $lt_compile\"" >&5)
24070    (eval "$lt_compile" 2>conftest.err)
24071    ac_status=$?
24072    cat conftest.err >&5
24073    echo "$as_me:24073: \$? = $ac_status" >&5
24074    if (exit $ac_status) && test -s "$ac_outfile"; then
24075      # The compiler can only warn and ignore the option if not recognized
24076      # So say no if there are warnings other than the usual output.
24077      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24078      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24079      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24080        lt_cv_prog_compiler_rtti_exceptions=yes
24081      fi
24082    fi
24083    $rm conftest*
24084
24085 fi
24086 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24087 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24088
24089 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24090     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24091 else
24092     :
24093 fi
24094
24095 fi
24096
24097 lt_prog_compiler_wl_GCJ=
24098 lt_prog_compiler_pic_GCJ=
24099 lt_prog_compiler_static_GCJ=
24100
24101 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24102 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24103
24104   if test "$GCC" = yes; then
24105     lt_prog_compiler_wl_GCJ='-Wl,'
24106     lt_prog_compiler_static_GCJ='-static'
24107
24108     case $host_os in
24109       aix*)
24110       # All AIX code is PIC.
24111       if test "$host_cpu" = ia64; then
24112         # AIX 5 now supports IA64 processor
24113         lt_prog_compiler_static_GCJ='-Bstatic'
24114       fi
24115       ;;
24116
24117     amigaos*)
24118       # FIXME: we need at least 68020 code to build shared libraries, but
24119       # adding the `-m68020' flag to GCC prevents building anything better,
24120       # like `-m68040'.
24121       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24122       ;;
24123
24124     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24125       # PIC is the default for these OSes.
24126       ;;
24127
24128     mingw* | pw32* | os2*)
24129       # This hack is so that the source file can tell whether it is being
24130       # built for inclusion in a dll (and should export symbols for example).
24131       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24132       ;;
24133
24134     darwin* | rhapsody*)
24135       # PIC is the default on this platform
24136       # Common symbols not allowed in MH_DYLIB files
24137       lt_prog_compiler_pic_GCJ='-fno-common'
24138       ;;
24139
24140     interix3*)
24141       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24142       # Instead, we relocate shared libraries at runtime.
24143       ;;
24144
24145     msdosdjgpp*)
24146       # Just because we use GCC doesn't mean we suddenly get shared libraries
24147       # on systems that don't support them.
24148       lt_prog_compiler_can_build_shared_GCJ=no
24149       enable_shared=no
24150       ;;
24151
24152     sysv4*MP*)
24153       if test -d /usr/nec; then
24154         lt_prog_compiler_pic_GCJ=-Kconform_pic
24155       fi
24156       ;;
24157
24158     hpux*)
24159       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24160       # not for PA HP-UX.
24161       case $host_cpu in
24162       hppa*64*|ia64*)
24163         # +Z the default
24164         ;;
24165       *)
24166         lt_prog_compiler_pic_GCJ='-fPIC'
24167         ;;
24168       esac
24169       ;;
24170
24171     *)
24172       lt_prog_compiler_pic_GCJ='-fPIC'
24173       ;;
24174     esac
24175   else
24176     # PORTME Check for flag to pass linker flags through the system compiler.
24177     case $host_os in
24178     aix*)
24179       lt_prog_compiler_wl_GCJ='-Wl,'
24180       if test "$host_cpu" = ia64; then
24181         # AIX 5 now supports IA64 processor
24182         lt_prog_compiler_static_GCJ='-Bstatic'
24183       else
24184         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24185       fi
24186       ;;
24187       darwin*)
24188         # PIC is the default on this platform
24189         # Common symbols not allowed in MH_DYLIB files
24190        case $cc_basename in
24191          xlc*)
24192          lt_prog_compiler_pic_GCJ='-qnocommon'
24193          lt_prog_compiler_wl_GCJ='-Wl,'
24194          ;;
24195        esac
24196        ;;
24197
24198     mingw* | pw32* | os2*)
24199       # This hack is so that the source file can tell whether it is being
24200       # built for inclusion in a dll (and should export symbols for example).
24201       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24202       ;;
24203
24204     hpux9* | hpux10* | hpux11*)
24205       lt_prog_compiler_wl_GCJ='-Wl,'
24206       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24207       # not for PA HP-UX.
24208       case $host_cpu in
24209       hppa*64*|ia64*)
24210         # +Z the default
24211         ;;
24212       *)
24213         lt_prog_compiler_pic_GCJ='+Z'
24214         ;;
24215       esac
24216       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24217       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24218       ;;
24219
24220     irix5* | irix6* | nonstopux*)
24221       lt_prog_compiler_wl_GCJ='-Wl,'
24222       # PIC (with -KPIC) is the default.
24223       lt_prog_compiler_static_GCJ='-non_shared'
24224       ;;
24225
24226     newsos6)
24227       lt_prog_compiler_pic_GCJ='-KPIC'
24228       lt_prog_compiler_static_GCJ='-Bstatic'
24229       ;;
24230
24231     linux*)
24232       case $cc_basename in
24233       icc* | ecc*)
24234         lt_prog_compiler_wl_GCJ='-Wl,'
24235         lt_prog_compiler_pic_GCJ='-KPIC'
24236         lt_prog_compiler_static_GCJ='-static'
24237         ;;
24238       pgcc* | pgf77* | pgf90* | pgf95*)
24239         # Portland Group compilers (*not* the Pentium gcc compiler,
24240         # which looks to be a dead project)
24241         lt_prog_compiler_wl_GCJ='-Wl,'
24242         lt_prog_compiler_pic_GCJ='-fpic'
24243         lt_prog_compiler_static_GCJ='-Bstatic'
24244         ;;
24245       ccc*)
24246         lt_prog_compiler_wl_GCJ='-Wl,'
24247         # All Alpha code is PIC.
24248         lt_prog_compiler_static_GCJ='-non_shared'
24249         ;;
24250       esac
24251       ;;
24252
24253     osf3* | osf4* | osf5*)
24254       lt_prog_compiler_wl_GCJ='-Wl,'
24255       # All OSF/1 code is PIC.
24256       lt_prog_compiler_static_GCJ='-non_shared'
24257       ;;
24258
24259     solaris*)
24260       lt_prog_compiler_pic_GCJ='-KPIC'
24261       lt_prog_compiler_static_GCJ='-Bstatic'
24262       case $cc_basename in
24263       f77* | f90* | f95*)
24264         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24265       *)
24266         lt_prog_compiler_wl_GCJ='-Wl,';;
24267       esac
24268       ;;
24269
24270     sunos4*)
24271       lt_prog_compiler_wl_GCJ='-Qoption ld '
24272       lt_prog_compiler_pic_GCJ='-PIC'
24273       lt_prog_compiler_static_GCJ='-Bstatic'
24274       ;;
24275
24276     sysv4 | sysv4.2uw2* | sysv4.3*)
24277       lt_prog_compiler_wl_GCJ='-Wl,'
24278       lt_prog_compiler_pic_GCJ='-KPIC'
24279       lt_prog_compiler_static_GCJ='-Bstatic'
24280       ;;
24281
24282     sysv4*MP*)
24283       if test -d /usr/nec ;then
24284         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24285         lt_prog_compiler_static_GCJ='-Bstatic'
24286       fi
24287       ;;
24288
24289     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24290       lt_prog_compiler_wl_GCJ='-Wl,'
24291       lt_prog_compiler_pic_GCJ='-KPIC'
24292       lt_prog_compiler_static_GCJ='-Bstatic'
24293       ;;
24294
24295     unicos*)
24296       lt_prog_compiler_wl_GCJ='-Wl,'
24297       lt_prog_compiler_can_build_shared_GCJ=no
24298       ;;
24299
24300     uts4*)
24301       lt_prog_compiler_pic_GCJ='-pic'
24302       lt_prog_compiler_static_GCJ='-Bstatic'
24303       ;;
24304
24305     *)
24306       lt_prog_compiler_can_build_shared_GCJ=no
24307       ;;
24308     esac
24309   fi
24310
24311 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24312 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24313
24314 #
24315 # Check to make sure the PIC flag actually works.
24316 #
24317 if test -n "$lt_prog_compiler_pic_GCJ"; then
24318
24319 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24320 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24321 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24322   echo $ECHO_N "(cached) $ECHO_C" >&6
24323 else
24324   lt_prog_compiler_pic_works_GCJ=no
24325   ac_outfile=conftest.$ac_objext
24326    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24327    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24328    # Insert the option either (1) after the last *FLAGS variable, or
24329    # (2) before a word containing "conftest.", or (3) at the end.
24330    # Note that $ac_compile itself does not contain backslashes and begins
24331    # with a dollar sign (not a hyphen), so the echo should work correctly.
24332    # The option is referenced via a variable to avoid confusing sed.
24333    lt_compile=`echo "$ac_compile" | $SED \
24334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24336    -e 's:$: $lt_compiler_flag:'`
24337    (eval echo "\"\$as_me:24337: $lt_compile\"" >&5)
24338    (eval "$lt_compile" 2>conftest.err)
24339    ac_status=$?
24340    cat conftest.err >&5
24341    echo "$as_me:24341: \$? = $ac_status" >&5
24342    if (exit $ac_status) && test -s "$ac_outfile"; then
24343      # The compiler can only warn and ignore the option if not recognized
24344      # So say no if there are warnings other than the usual output.
24345      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24346      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24347      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24348        lt_prog_compiler_pic_works_GCJ=yes
24349      fi
24350    fi
24351    $rm conftest*
24352
24353 fi
24354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24355 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24356
24357 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24358     case $lt_prog_compiler_pic_GCJ in
24359      "" | " "*) ;;
24360      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24361      esac
24362 else
24363     lt_prog_compiler_pic_GCJ=
24364      lt_prog_compiler_can_build_shared_GCJ=no
24365 fi
24366
24367 fi
24368 case $host_os in
24369   # For platforms which do not support PIC, -DPIC is meaningless:
24370   *djgpp*)
24371     lt_prog_compiler_pic_GCJ=
24372     ;;
24373   *)
24374     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24375     ;;
24376 esac
24377
24378 #
24379 # Check to make sure the static flag actually works.
24380 #
24381 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24382 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24383 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24384 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24385   echo $ECHO_N "(cached) $ECHO_C" >&6
24386 else
24387   lt_prog_compiler_static_works_GCJ=no
24388    save_LDFLAGS="$LDFLAGS"
24389    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24390    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24391    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24392      # The linker can only warn and ignore the option if not recognized
24393      # So say no if there are warnings
24394      if test -s conftest.err; then
24395        # Append any errors to the config.log.
24396        cat conftest.err 1>&5
24397        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24398        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24399        if diff conftest.exp conftest.er2 >/dev/null; then
24400          lt_prog_compiler_static_works_GCJ=yes
24401        fi
24402      else
24403        lt_prog_compiler_static_works_GCJ=yes
24404      fi
24405    fi
24406    $rm conftest*
24407    LDFLAGS="$save_LDFLAGS"
24408
24409 fi
24410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24411 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24412
24413 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24414     :
24415 else
24416     lt_prog_compiler_static_GCJ=
24417 fi
24418
24419
24420 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24421 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24422 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24423   echo $ECHO_N "(cached) $ECHO_C" >&6
24424 else
24425   lt_cv_prog_compiler_c_o_GCJ=no
24426    $rm -r conftest 2>/dev/null
24427    mkdir conftest
24428    cd conftest
24429    mkdir out
24430    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24431
24432    lt_compiler_flag="-o out/conftest2.$ac_objext"
24433    # Insert the option either (1) after the last *FLAGS variable, or
24434    # (2) before a word containing "conftest.", or (3) at the end.
24435    # Note that $ac_compile itself does not contain backslashes and begins
24436    # with a dollar sign (not a hyphen), so the echo should work correctly.
24437    lt_compile=`echo "$ac_compile" | $SED \
24438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24440    -e 's:$: $lt_compiler_flag:'`
24441    (eval echo "\"\$as_me:24441: $lt_compile\"" >&5)
24442    (eval "$lt_compile" 2>out/conftest.err)
24443    ac_status=$?
24444    cat out/conftest.err >&5
24445    echo "$as_me:24445: \$? = $ac_status" >&5
24446    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24447    then
24448      # The compiler can only warn and ignore the option if not recognized
24449      # So say no if there are warnings
24450      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24451      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24452      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24453        lt_cv_prog_compiler_c_o_GCJ=yes
24454      fi
24455    fi
24456    chmod u+w . 2>&5
24457    $rm conftest*
24458    # SGI C++ compiler will create directory out/ii_files/ for
24459    # template instantiation
24460    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24461    $rm out/* && rmdir out
24462    cd ..
24463    rmdir conftest
24464    $rm conftest*
24465
24466 fi
24467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24469
24470
24471 hard_links="nottested"
24472 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24473   # do not overwrite the value of need_locks provided by the user
24474   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24476   hard_links=yes
24477   $rm conftest*
24478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24479   touch conftest.a
24480   ln conftest.a conftest.b 2>&5 || hard_links=no
24481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24482   { echo "$as_me:$LINENO: result: $hard_links" >&5
24483 echo "${ECHO_T}$hard_links" >&6; }
24484   if test "$hard_links" = no; then
24485     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24487     need_locks=warn
24488   fi
24489 else
24490   need_locks=no
24491 fi
24492
24493 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24495
24496   runpath_var=
24497   allow_undefined_flag_GCJ=
24498   enable_shared_with_static_runtimes_GCJ=no
24499   archive_cmds_GCJ=
24500   archive_expsym_cmds_GCJ=
24501   old_archive_From_new_cmds_GCJ=
24502   old_archive_from_expsyms_cmds_GCJ=
24503   export_dynamic_flag_spec_GCJ=
24504   whole_archive_flag_spec_GCJ=
24505   thread_safe_flag_spec_GCJ=
24506   hardcode_libdir_flag_spec_GCJ=
24507   hardcode_libdir_flag_spec_ld_GCJ=
24508   hardcode_libdir_separator_GCJ=
24509   hardcode_direct_GCJ=no
24510   hardcode_minus_L_GCJ=no
24511   hardcode_shlibpath_var_GCJ=unsupported
24512   link_all_deplibs_GCJ=unknown
24513   hardcode_automatic_GCJ=no
24514   module_cmds_GCJ=
24515   module_expsym_cmds_GCJ=
24516   always_export_symbols_GCJ=no
24517   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24518   # include_expsyms should be a list of space-separated symbols to be *always*
24519   # included in the symbol list
24520   include_expsyms_GCJ=
24521   # exclude_expsyms can be an extended regexp of symbols to exclude
24522   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24523   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24524   # as well as any symbol that contains `d'.
24525   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24526   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24527   # platforms (ab)use it in PIC code, but their linkers get confused if
24528   # the symbol is explicitly referenced.  Since portable code cannot
24529   # rely on this symbol name, it's probably fine to never include it in
24530   # preloaded symbol tables.
24531   extract_expsyms_cmds=
24532   # Just being paranoid about ensuring that cc_basename is set.
24533   for cc_temp in $compiler""; do
24534   case $cc_temp in
24535     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24536     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24537     \-*) ;;
24538     *) break;;
24539   esac
24540 done
24541 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24542
24543   case $host_os in
24544   cygwin* | mingw* | pw32*)
24545     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24546     # When not using gcc, we currently assume that we are using
24547     # Microsoft Visual C++.
24548     if test "$GCC" != yes; then
24549       with_gnu_ld=no
24550     fi
24551     ;;
24552   interix*)
24553     # we just hope/assume this is gcc and not c89 (= MSVC++)
24554     with_gnu_ld=yes
24555     ;;
24556   openbsd*)
24557     with_gnu_ld=no
24558     ;;
24559   esac
24560
24561   ld_shlibs_GCJ=yes
24562   if test "$with_gnu_ld" = yes; then
24563     # If archive_cmds runs LD, not CC, wlarc should be empty
24564     wlarc='${wl}'
24565
24566     # Set some defaults for GNU ld with shared library support. These
24567     # are reset later if shared libraries are not supported. Putting them
24568     # here allows them to be overridden if necessary.
24569     runpath_var=LD_RUN_PATH
24570     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24571     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24572     # ancient GNU ld didn't support --whole-archive et. al.
24573     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24574         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24575       else
24576         whole_archive_flag_spec_GCJ=
24577     fi
24578     supports_anon_versioning=no
24579     case `$LD -v 2>/dev/null` in
24580       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24581       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24582       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24583       *\ 2.11.*) ;; # other 2.11 versions
24584       *) supports_anon_versioning=yes ;;
24585     esac
24586
24587     # See if GNU ld supports shared libraries.
24588     case $host_os in
24589     aix3* | aix4* | aix5*)
24590       # On AIX/PPC, the GNU linker is very broken
24591       if test "$host_cpu" != ia64; then
24592         ld_shlibs_GCJ=no
24593         cat <<EOF 1>&2
24594
24595 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24596 *** to be unable to reliably create shared libraries on AIX.
24597 *** Therefore, libtool is disabling shared libraries support.  If you
24598 *** really care for shared libraries, you may want to modify your PATH
24599 *** so that a non-GNU linker is found, and then restart.
24600
24601 EOF
24602       fi
24603       ;;
24604
24605     amigaos*)
24606       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)'
24607       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24608       hardcode_minus_L_GCJ=yes
24609
24610       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24611       # that the semantics of dynamic libraries on AmigaOS, at least up
24612       # to version 4, is to share data among multiple programs linked
24613       # with the same dynamic library.  Since this doesn't match the
24614       # behavior of shared libraries on other platforms, we can't use
24615       # them.
24616       ld_shlibs_GCJ=no
24617       ;;
24618
24619     beos*)
24620       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24621         allow_undefined_flag_GCJ=unsupported
24622         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24623         # support --undefined.  This deserves some investigation.  FIXME
24624         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24625       else
24626         ld_shlibs_GCJ=no
24627       fi
24628       ;;
24629
24630     cygwin* | mingw* | pw32*)
24631       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24632       # as there is no search path for DLLs.
24633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634       allow_undefined_flag_GCJ=unsupported
24635       always_export_symbols_GCJ=no
24636       enable_shared_with_static_runtimes_GCJ=yes
24637       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24638
24639       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24640         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24641         # If the export-symbols file already is a .def file (1st line
24642         # is EXPORTS), use it as is; otherwise, prepend...
24643         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24644           cp $export_symbols $output_objdir/$soname.def;
24645         else
24646           echo EXPORTS > $output_objdir/$soname.def;
24647           cat $export_symbols >> $output_objdir/$soname.def;
24648         fi~
24649         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24650       else
24651         ld_shlibs_GCJ=no
24652       fi
24653       ;;
24654
24655     interix3*)
24656       hardcode_direct_GCJ=no
24657       hardcode_shlibpath_var_GCJ=no
24658       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24659       export_dynamic_flag_spec_GCJ='${wl}-E'
24660       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24661       # Instead, shared libraries are loaded at an image base (0x10000000 by
24662       # default) and relocated if they conflict, which is a slow very memory
24663       # consuming and fragmenting process.  To avoid this, we pick a random,
24664       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24665       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24666       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'
24667       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'
24668       ;;
24669
24670     linux*)
24671       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24672         tmp_addflag=
24673         case $cc_basename,$host_cpu in
24674         pgcc*)                          # Portland Group C compiler
24675           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'
24676           tmp_addflag=' $pic_flag'
24677           ;;
24678         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24679           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'
24680           tmp_addflag=' $pic_flag -Mnomain' ;;
24681         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24682           tmp_addflag=' -i_dynamic' ;;
24683         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24684           tmp_addflag=' -i_dynamic -nofor_main' ;;
24685         ifc* | ifort*)                  # Intel Fortran compiler
24686           tmp_addflag=' -nofor_main' ;;
24687         esac
24688         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24689
24690         if test $supports_anon_versioning = yes; then
24691           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24692   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24693   $echo "local: *; };" >> $output_objdir/$libname.ver~
24694           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24695         fi
24696       else
24697         ld_shlibs_GCJ=no
24698       fi
24699       ;;
24700
24701     netbsd*)
24702       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24703         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24704         wlarc=
24705       else
24706         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24707         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24708       fi
24709       ;;
24710
24711     solaris*)
24712       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24713         ld_shlibs_GCJ=no
24714         cat <<EOF 1>&2
24715
24716 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24717 *** create shared libraries on Solaris systems.  Therefore, libtool
24718 *** is disabling shared libraries support.  We urge you to upgrade GNU
24719 *** binutils to release 2.9.1 or newer.  Another option is to modify
24720 *** your PATH or compiler configuration so that the native linker is
24721 *** used, and then restart.
24722
24723 EOF
24724       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24725         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24726         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24727       else
24728         ld_shlibs_GCJ=no
24729       fi
24730       ;;
24731
24732     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24733       case `$LD -v 2>&1` in
24734         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24735         ld_shlibs_GCJ=no
24736         cat <<_LT_EOF 1>&2
24737
24738 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24739 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24740 *** is disabling shared libraries support.  We urge you to upgrade GNU
24741 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24742 *** your PATH or compiler configuration so that the native linker is
24743 *** used, and then restart.
24744
24745 _LT_EOF
24746         ;;
24747         *)
24748           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24749             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24750             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24751             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24752           else
24753             ld_shlibs_GCJ=no
24754           fi
24755         ;;
24756       esac
24757       ;;
24758
24759     sunos4*)
24760       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24761       wlarc=
24762       hardcode_direct_GCJ=yes
24763       hardcode_shlibpath_var_GCJ=no
24764       ;;
24765
24766     *)
24767       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24768         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24769         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24770       else
24771         ld_shlibs_GCJ=no
24772       fi
24773       ;;
24774     esac
24775
24776     if test "$ld_shlibs_GCJ" = no; then
24777       runpath_var=
24778       hardcode_libdir_flag_spec_GCJ=
24779       export_dynamic_flag_spec_GCJ=
24780       whole_archive_flag_spec_GCJ=
24781     fi
24782   else
24783     # PORTME fill in a description of your system's linker (not GNU ld)
24784     case $host_os in
24785     aix3*)
24786       allow_undefined_flag_GCJ=unsupported
24787       always_export_symbols_GCJ=yes
24788       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'
24789       # Note: this linker hardcodes the directories in LIBPATH if there
24790       # are no directories specified by -L.
24791       hardcode_minus_L_GCJ=yes
24792       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24793         # Neither direct hardcoding nor static linking is supported with a
24794         # broken collect2.
24795         hardcode_direct_GCJ=unsupported
24796       fi
24797       ;;
24798
24799     aix4* | aix5*)
24800       if test "$host_cpu" = ia64; then
24801         # On IA64, the linker does run time linking by default, so we don't
24802         # have to do anything special.
24803         aix_use_runtimelinking=no
24804         exp_sym_flag='-Bexport'
24805         no_entry_flag=""
24806       else
24807         # If we're using GNU nm, then we don't want the "-C" option.
24808         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24809         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24810           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'
24811         else
24812           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'
24813         fi
24814         aix_use_runtimelinking=no
24815
24816         # Test if we are trying to use run time linking or normal
24817         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24818         # need to do runtime linking.
24819         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24820           for ld_flag in $LDFLAGS; do
24821           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24822             aix_use_runtimelinking=yes
24823             break
24824           fi
24825           done
24826           ;;
24827         esac
24828
24829         exp_sym_flag='-bexport'
24830         no_entry_flag='-bnoentry'
24831       fi
24832
24833       # When large executables or shared objects are built, AIX ld can
24834       # have problems creating the table of contents.  If linking a library
24835       # or program results in "error TOC overflow" add -mminimal-toc to
24836       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24837       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24838
24839       archive_cmds_GCJ=''
24840       hardcode_direct_GCJ=yes
24841       hardcode_libdir_separator_GCJ=':'
24842       link_all_deplibs_GCJ=yes
24843
24844       if test "$GCC" = yes; then
24845         case $host_os in aix4.[012]|aix4.[012].*)
24846         # We only want to do this on AIX 4.2 and lower, the check
24847         # below for broken collect2 doesn't work under 4.3+
24848           collect2name=`${CC} -print-prog-name=collect2`
24849           if test -f "$collect2name" && \
24850            strings "$collect2name" | grep resolve_lib_name >/dev/null
24851           then
24852           # We have reworked collect2
24853           hardcode_direct_GCJ=yes
24854           else
24855           # We have old collect2
24856           hardcode_direct_GCJ=unsupported
24857           # It fails to find uninstalled libraries when the uninstalled
24858           # path is not listed in the libpath.  Setting hardcode_minus_L
24859           # to unsupported forces relinking
24860           hardcode_minus_L_GCJ=yes
24861           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24862           hardcode_libdir_separator_GCJ=
24863           fi
24864           ;;
24865         esac
24866         shared_flag='-shared'
24867         if test "$aix_use_runtimelinking" = yes; then
24868           shared_flag="$shared_flag "'${wl}-G'
24869         fi
24870       else
24871         # not using gcc
24872         if test "$host_cpu" = ia64; then
24873         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24874         # chokes on -Wl,-G. The following line is correct:
24875           shared_flag='-G'
24876         else
24877           if test "$aix_use_runtimelinking" = yes; then
24878             shared_flag='${wl}-G'
24879           else
24880             shared_flag='${wl}-bM:SRE'
24881           fi
24882         fi
24883       fi
24884
24885       # It seems that -bexpall does not export symbols beginning with
24886       # underscore (_), so it is better to generate a list of symbols to export.
24887       always_export_symbols_GCJ=yes
24888       if test "$aix_use_runtimelinking" = yes; then
24889         # Warning - without using the other runtime loading flags (-brtl),
24890         # -berok will link without error, but may produce a broken library.
24891         allow_undefined_flag_GCJ='-berok'
24892        # Determine the default libpath from the value encoded in an empty executable.
24893        cat >conftest.$ac_ext <<_ACEOF
24894 /* confdefs.h.  */
24895 _ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h.  */
24899
24900 int
24901 main ()
24902 {
24903
24904   ;
24905   return 0;
24906 }
24907 _ACEOF
24908 rm -f conftest.$ac_objext conftest$ac_exeext
24909 if { (ac_try="$ac_link"
24910 case "(($ac_try" in
24911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912   *) ac_try_echo=$ac_try;;
24913 esac
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915   (eval "$ac_link") 2>conftest.er1
24916   ac_status=$?
24917   grep -v '^ *+' conftest.er1 >conftest.err
24918   rm -f conftest.er1
24919   cat conftest.err >&5
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); } &&
24922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24923   { (case "(($ac_try" in
24924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925   *) ac_try_echo=$ac_try;;
24926 esac
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928   (eval "$ac_try") 2>&5
24929   ac_status=$?
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); }; } &&
24932          { ac_try='test -s conftest$ac_exeext'
24933   { (case "(($ac_try" in
24934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935   *) ac_try_echo=$ac_try;;
24936 esac
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938   (eval "$ac_try") 2>&5
24939   ac_status=$?
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); }; }; then
24942
24943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24944 }'`
24945 # Check for a 64-bit object if we didn't find anything.
24946 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; }
24947 }'`; fi
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952
24953 fi
24954
24955 rm -f core conftest.err conftest.$ac_objext \
24956       conftest$ac_exeext conftest.$ac_ext
24957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24958
24959        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24960         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"
24961        else
24962         if test "$host_cpu" = ia64; then
24963           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24964           allow_undefined_flag_GCJ="-z nodefs"
24965           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"
24966         else
24967          # Determine the default libpath from the value encoded in an empty executable.
24968          cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h.  */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h.  */
24974
24975 int
24976 main ()
24977 {
24978
24979   ;
24980   return 0;
24981 }
24982 _ACEOF
24983 rm -f conftest.$ac_objext conftest$ac_exeext
24984 if { (ac_try="$ac_link"
24985 case "(($ac_try" in
24986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987   *) ac_try_echo=$ac_try;;
24988 esac
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990   (eval "$ac_link") 2>conftest.er1
24991   ac_status=$?
24992   grep -v '^ *+' conftest.er1 >conftest.err
24993   rm -f conftest.er1
24994   cat conftest.err >&5
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); } &&
24997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24998   { (case "(($ac_try" in
24999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000   *) ac_try_echo=$ac_try;;
25001 esac
25002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003   (eval "$ac_try") 2>&5
25004   ac_status=$?
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); }; } &&
25007          { ac_try='test -s conftest$ac_exeext'
25008   { (case "(($ac_try" in
25009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010   *) ac_try_echo=$ac_try;;
25011 esac
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013   (eval "$ac_try") 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; }; then
25017
25018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25019 }'`
25020 # Check for a 64-bit object if we didn't find anything.
25021 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; }
25022 }'`; fi
25023 else
25024   echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027
25028 fi
25029
25030 rm -f core conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25033
25034          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25035           # Warning - without using the other run time loading flags,
25036           # -berok will link without error, but may produce a broken library.
25037           no_undefined_flag_GCJ=' ${wl}-bernotok'
25038           allow_undefined_flag_GCJ=' ${wl}-berok'
25039           # Exported symbols can be pulled into shared objects from archives
25040           whole_archive_flag_spec_GCJ='$convenience'
25041           archive_cmds_need_lc_GCJ=yes
25042           # This is similar to how AIX traditionally builds its shared libraries.
25043           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'
25044         fi
25045       fi
25046       ;;
25047
25048     amigaos*)
25049       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)'
25050       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25051       hardcode_minus_L_GCJ=yes
25052       # see comment about different semantics on the GNU ld section
25053       ld_shlibs_GCJ=no
25054       ;;
25055
25056     bsdi[45]*)
25057       export_dynamic_flag_spec_GCJ=-rdynamic
25058       ;;
25059
25060     cygwin* | mingw* | pw32*)
25061       # When not using gcc, we currently assume that we are using
25062       # Microsoft Visual C++.
25063       # hardcode_libdir_flag_spec is actually meaningless, as there is
25064       # no search path for DLLs.
25065       hardcode_libdir_flag_spec_GCJ=' '
25066       allow_undefined_flag_GCJ=unsupported
25067       # Tell ltmain to make .lib files, not .a files.
25068       libext=lib
25069       # Tell ltmain to make .dll files, not .so files.
25070       shrext_cmds=".dll"
25071       # FIXME: Setting linknames here is a bad hack.
25072       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25073       # The linker will automatically build a .lib file if we build a DLL.
25074       old_archive_From_new_cmds_GCJ='true'
25075       # FIXME: Should let the user specify the lib program.
25076       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25077       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25078       enable_shared_with_static_runtimes_GCJ=yes
25079       ;;
25080
25081     darwin* | rhapsody*)
25082       case $host_os in
25083         rhapsody* | darwin1.[012])
25084          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25085          ;;
25086        *) # Darwin 1.3 on
25087          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25088            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25089          else
25090            case ${MACOSX_DEPLOYMENT_TARGET} in
25091              10.[012])
25092                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25093                ;;
25094              10.*)
25095                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25096                ;;
25097            esac
25098          fi
25099          ;;
25100       esac
25101       archive_cmds_need_lc_GCJ=no
25102       hardcode_direct_GCJ=no
25103       hardcode_automatic_GCJ=yes
25104       hardcode_shlibpath_var_GCJ=unsupported
25105       whole_archive_flag_spec_GCJ=''
25106       link_all_deplibs_GCJ=yes
25107     if test "$GCC" = yes ; then
25108         output_verbose_link_cmd='echo'
25109         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25110       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25111       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25112       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}'
25113       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}'
25114     else
25115       case $cc_basename in
25116         xlc*)
25117          output_verbose_link_cmd='echo'
25118          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25119          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25120           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25121          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}'
25122           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}'
25123           ;;
25124        *)
25125          ld_shlibs_GCJ=no
25126           ;;
25127       esac
25128     fi
25129       ;;
25130
25131     dgux*)
25132       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25133       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25134       hardcode_shlibpath_var_GCJ=no
25135       ;;
25136
25137     freebsd1*)
25138       ld_shlibs_GCJ=no
25139       ;;
25140
25141     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25142     # support.  Future versions do this automatically, but an explicit c++rt0.o
25143     # does not break anything, and helps significantly (at the cost of a little
25144     # extra space).
25145     freebsd2.2*)
25146       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25147       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148       hardcode_direct_GCJ=yes
25149       hardcode_shlibpath_var_GCJ=no
25150       ;;
25151
25152     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25153     freebsd2*)
25154       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25155       hardcode_direct_GCJ=yes
25156       hardcode_minus_L_GCJ=yes
25157       hardcode_shlibpath_var_GCJ=no
25158       ;;
25159
25160     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25161     freebsd* | kfreebsd*-gnu | dragonfly*)
25162       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25163       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25164       hardcode_direct_GCJ=yes
25165       hardcode_shlibpath_var_GCJ=no
25166       ;;
25167
25168     hpux9*)
25169       if test "$GCC" = yes; then
25170         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'
25171       else
25172         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'
25173       fi
25174       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25175       hardcode_libdir_separator_GCJ=:
25176       hardcode_direct_GCJ=yes
25177
25178       # hardcode_minus_L: Not really in the search PATH,
25179       # but as the default location of the library.
25180       hardcode_minus_L_GCJ=yes
25181       export_dynamic_flag_spec_GCJ='${wl}-E'
25182       ;;
25183
25184     hpux10*)
25185       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25186         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25187       else
25188         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25189       fi
25190       if test "$with_gnu_ld" = no; then
25191         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25192         hardcode_libdir_separator_GCJ=:
25193
25194         hardcode_direct_GCJ=yes
25195         export_dynamic_flag_spec_GCJ='${wl}-E'
25196
25197         # hardcode_minus_L: Not really in the search PATH,
25198         # but as the default location of the library.
25199         hardcode_minus_L_GCJ=yes
25200       fi
25201       ;;
25202
25203     hpux11*)
25204       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25205         case $host_cpu in
25206         hppa*64*)
25207           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208           ;;
25209         ia64*)
25210           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25211           ;;
25212         *)
25213           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25214           ;;
25215         esac
25216       else
25217         case $host_cpu in
25218         hppa*64*)
25219           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25220           ;;
25221         ia64*)
25222           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25223           ;;
25224         *)
25225           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25226           ;;
25227         esac
25228       fi
25229       if test "$with_gnu_ld" = no; then
25230         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25231         hardcode_libdir_separator_GCJ=:
25232
25233         case $host_cpu in
25234         hppa*64*|ia64*)
25235           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25236           hardcode_direct_GCJ=no
25237           hardcode_shlibpath_var_GCJ=no
25238           ;;
25239         *)
25240           hardcode_direct_GCJ=yes
25241           export_dynamic_flag_spec_GCJ='${wl}-E'
25242
25243           # hardcode_minus_L: Not really in the search PATH,
25244           # but as the default location of the library.
25245           hardcode_minus_L_GCJ=yes
25246           ;;
25247         esac
25248       fi
25249       ;;
25250
25251     irix5* | irix6* | nonstopux*)
25252       if test "$GCC" = yes; then
25253         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'
25254       else
25255         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'
25256         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25257       fi
25258       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25259       hardcode_libdir_separator_GCJ=:
25260       link_all_deplibs_GCJ=yes
25261       ;;
25262
25263     netbsd*)
25264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25265         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25266       else
25267         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25268       fi
25269       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25270       hardcode_direct_GCJ=yes
25271       hardcode_shlibpath_var_GCJ=no
25272       ;;
25273
25274     newsos6)
25275       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25276       hardcode_direct_GCJ=yes
25277       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25278       hardcode_libdir_separator_GCJ=:
25279       hardcode_shlibpath_var_GCJ=no
25280       ;;
25281
25282     openbsd*)
25283       hardcode_direct_GCJ=yes
25284       hardcode_shlibpath_var_GCJ=no
25285       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25286         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25287         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25288         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25289         export_dynamic_flag_spec_GCJ='${wl}-E'
25290       else
25291        case $host_os in
25292          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25293            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25294            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25295            ;;
25296          *)
25297            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25298            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25299            ;;
25300        esac
25301       fi
25302       ;;
25303
25304     os2*)
25305       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25306       hardcode_minus_L_GCJ=yes
25307       allow_undefined_flag_GCJ=unsupported
25308       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'
25309       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25310       ;;
25311
25312     osf3*)
25313       if test "$GCC" = yes; then
25314         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25315         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'
25316       else
25317         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25318         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'
25319       fi
25320       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25321       hardcode_libdir_separator_GCJ=:
25322       ;;
25323
25324     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25325       if test "$GCC" = yes; then
25326         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25327         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'
25328         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25329       else
25330         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25331         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'
25332         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~
25333         $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'
25334
25335         # Both c and cxx compiler support -rpath directly
25336         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25337       fi
25338       hardcode_libdir_separator_GCJ=:
25339       ;;
25340
25341     solaris*)
25342       no_undefined_flag_GCJ=' -z text'
25343       if test "$GCC" = yes; then
25344         wlarc='${wl}'
25345         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25346         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25347           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25348       else
25349         wlarc=''
25350         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25351         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25352         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25353       fi
25354       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25355       hardcode_shlibpath_var_GCJ=no
25356       case $host_os in
25357       solaris2.[0-5] | solaris2.[0-5].*) ;;
25358       *)
25359         # The compiler driver will combine linker options so we
25360         # cannot just pass the convience library names through
25361         # without $wl, iff we do not link with $LD.
25362         # Luckily, gcc supports the same syntax we need for Sun Studio.
25363         # Supported since Solaris 2.6 (maybe 2.5.1?)
25364         case $wlarc in
25365         '')
25366           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25367         *)
25368           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' ;;
25369         esac ;;
25370       esac
25371       link_all_deplibs_GCJ=yes
25372       ;;
25373
25374     sunos4*)
25375       if test "x$host_vendor" = xsequent; then
25376         # Use $CC to link under sequent, because it throws in some extra .o
25377         # files that make .init and .fini sections work.
25378         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25379       else
25380         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25381       fi
25382       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25383       hardcode_direct_GCJ=yes
25384       hardcode_minus_L_GCJ=yes
25385       hardcode_shlibpath_var_GCJ=no
25386       ;;
25387
25388     sysv4)
25389       case $host_vendor in
25390         sni)
25391           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25392           hardcode_direct_GCJ=yes # is this really true???
25393         ;;
25394         siemens)
25395           ## LD is ld it makes a PLAMLIB
25396           ## CC just makes a GrossModule.
25397           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25398           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25399           hardcode_direct_GCJ=no
25400         ;;
25401         motorola)
25402           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25403           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25404         ;;
25405       esac
25406       runpath_var='LD_RUN_PATH'
25407       hardcode_shlibpath_var_GCJ=no
25408       ;;
25409
25410     sysv4.3*)
25411       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25412       hardcode_shlibpath_var_GCJ=no
25413       export_dynamic_flag_spec_GCJ='-Bexport'
25414       ;;
25415
25416     sysv4*MP*)
25417       if test -d /usr/nec; then
25418         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25419         hardcode_shlibpath_var_GCJ=no
25420         runpath_var=LD_RUN_PATH
25421         hardcode_runpath_var=yes
25422         ld_shlibs_GCJ=yes
25423       fi
25424       ;;
25425
25426     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25427       no_undefined_flag_GCJ='${wl}-z,text'
25428       archive_cmds_need_lc_GCJ=no
25429       hardcode_shlibpath_var_GCJ=no
25430       runpath_var='LD_RUN_PATH'
25431
25432       if test "$GCC" = yes; then
25433         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25434         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25435       else
25436         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25438       fi
25439       ;;
25440
25441     sysv5* | sco3.2v5* | sco5v6*)
25442       # Note: We can NOT use -z defs as we might desire, because we do not
25443       # link with -lc, and that would cause any symbols used from libc to
25444       # always be unresolved, which means just about no library would
25445       # ever link correctly.  If we're not using GNU ld we use -z text
25446       # though, which does catch some bad symbols but isn't as heavy-handed
25447       # as -z defs.
25448       no_undefined_flag_GCJ='${wl}-z,text'
25449       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25450       archive_cmds_need_lc_GCJ=no
25451       hardcode_shlibpath_var_GCJ=no
25452       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25453       hardcode_libdir_separator_GCJ=':'
25454       link_all_deplibs_GCJ=yes
25455       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25456       runpath_var='LD_RUN_PATH'
25457
25458       if test "$GCC" = yes; then
25459         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25460         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25461       else
25462         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25464       fi
25465       ;;
25466
25467     uts4*)
25468       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25469       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25470       hardcode_shlibpath_var_GCJ=no
25471       ;;
25472
25473     *)
25474       ld_shlibs_GCJ=no
25475       ;;
25476     esac
25477   fi
25478
25479 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25480 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25481 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25482
25483 #
25484 # Do we need to explicitly link libc?
25485 #
25486 case "x$archive_cmds_need_lc_GCJ" in
25487 x|xyes)
25488   # Assume -lc should be added
25489   archive_cmds_need_lc_GCJ=yes
25490
25491   if test "$enable_shared" = yes && test "$GCC" = yes; then
25492     case $archive_cmds_GCJ in
25493     *'~'*)
25494       # FIXME: we may have to deal with multi-command sequences.
25495       ;;
25496     '$CC '*)
25497       # Test whether the compiler implicitly links with -lc since on some
25498       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25499       # to ld, don't add -lc before -lgcc.
25500       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25502       $rm conftest*
25503       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25504
25505       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506   (eval $ac_compile) 2>&5
25507   ac_status=$?
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); } 2>conftest.err; then
25510         soname=conftest
25511         lib=conftest
25512         libobjs=conftest.$ac_objext
25513         deplibs=
25514         wl=$lt_prog_compiler_wl_GCJ
25515         pic_flag=$lt_prog_compiler_pic_GCJ
25516         compiler_flags=-v
25517         linker_flags=-v
25518         verstring=
25519         output_objdir=.
25520         libname=conftest
25521         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25522         allow_undefined_flag_GCJ=
25523         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25524   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25525   ac_status=$?
25526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527   (exit $ac_status); }
25528         then
25529           archive_cmds_need_lc_GCJ=no
25530         else
25531           archive_cmds_need_lc_GCJ=yes
25532         fi
25533         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25534       else
25535         cat conftest.err 1>&5
25536       fi
25537       $rm conftest*
25538       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25539 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25540       ;;
25541     esac
25542   fi
25543   ;;
25544 esac
25545
25546 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25548 library_names_spec=
25549 libname_spec='lib$name'
25550 soname_spec=
25551 shrext_cmds=".so"
25552 postinstall_cmds=
25553 postuninstall_cmds=
25554 finish_cmds=
25555 finish_eval=
25556 shlibpath_var=
25557 shlibpath_overrides_runpath=unknown
25558 version_type=none
25559 dynamic_linker="$host_os ld.so"
25560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25561 if test "$GCC" = yes; then
25562   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25563   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25564     # if the path contains ";" then we assume it to be the separator
25565     # otherwise default to the standard path separator (i.e. ":") - it is
25566     # assumed that no part of a normal pathname contains ";" but that should
25567     # okay in the real world where ";" in dirpaths is itself problematic.
25568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25569   else
25570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25571   fi
25572 else
25573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25574 fi
25575 need_lib_prefix=unknown
25576 hardcode_into_libs=no
25577
25578 # when you set need_version to no, make sure it does not cause -set_version
25579 # flags to be left without arguments
25580 need_version=unknown
25581
25582 case $host_os in
25583 aix3*)
25584   version_type=linux
25585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25586   shlibpath_var=LIBPATH
25587
25588   # AIX 3 has no versioning support, so we append a major version to the name.
25589   soname_spec='${libname}${release}${shared_ext}$major'
25590   ;;
25591
25592 aix4* | aix5*)
25593   version_type=linux
25594   need_lib_prefix=no
25595   need_version=no
25596   hardcode_into_libs=yes
25597   if test "$host_cpu" = ia64; then
25598     # AIX 5 supports IA64
25599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25600     shlibpath_var=LD_LIBRARY_PATH
25601   else
25602     # With GCC up to 2.95.x, collect2 would create an import file
25603     # for dependence libraries.  The import file would start with
25604     # the line `#! .'.  This would cause the generated library to
25605     # depend on `.', always an invalid library.  This was fixed in
25606     # development snapshots of GCC prior to 3.0.
25607     case $host_os in
25608       aix4 | aix4.[01] | aix4.[01].*)
25609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25610            echo ' yes '
25611            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25612         :
25613       else
25614         can_build_shared=no
25615       fi
25616       ;;
25617     esac
25618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25619     # soname into executable. Probably we can add versioning support to
25620     # collect2, so additional links can be useful in future.
25621     if test "$aix_use_runtimelinking" = yes; then
25622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25623       # instead of lib<name>.a to let people know that these are not
25624       # typical AIX shared libraries.
25625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25626     else
25627       # We preserve .a as extension for shared libraries through AIX4.2
25628       # and later when we are not doing run time linking.
25629       library_names_spec='${libname}${release}.a $libname.a'
25630       soname_spec='${libname}${release}${shared_ext}$major'
25631     fi
25632     shlibpath_var=LIBPATH
25633   fi
25634   ;;
25635
25636 amigaos*)
25637   library_names_spec='$libname.ixlibrary $libname.a'
25638   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25639   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'
25640   ;;
25641
25642 beos*)
25643   library_names_spec='${libname}${shared_ext}'
25644   dynamic_linker="$host_os ld.so"
25645   shlibpath_var=LIBRARY_PATH
25646   ;;
25647
25648 bsdi[45]*)
25649   version_type=linux
25650   need_version=no
25651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652   soname_spec='${libname}${release}${shared_ext}$major'
25653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25654   shlibpath_var=LD_LIBRARY_PATH
25655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25657   # the default ld.so.conf also contains /usr/contrib/lib and
25658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25659   # libtool to hard-code these into programs
25660   ;;
25661
25662 cygwin* | mingw* | pw32*)
25663   version_type=windows
25664   shrext_cmds=".dll"
25665   need_version=no
25666   need_lib_prefix=no
25667
25668   case $GCC,$host_os in
25669   yes,cygwin* | yes,mingw* | yes,pw32*)
25670     library_names_spec='$libname.dll.a'
25671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25672     postinstall_cmds='base_file=`basename \${file}`~
25673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25674       dldir=$destdir/`dirname \$dlpath`~
25675       test -d \$dldir || mkdir -p \$dldir~
25676       $install_prog $dir/$dlname \$dldir/$dlname~
25677       chmod a+x \$dldir/$dlname'
25678     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25679       dlpath=$dir/\$dldll~
25680        $rm \$dlpath'
25681     shlibpath_overrides_runpath=yes
25682
25683     case $host_os in
25684     cygwin*)
25685       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25686       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25687       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25688       ;;
25689     mingw*)
25690       # MinGW DLLs use traditional 'lib' prefix
25691       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25692       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25693       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25694         # It is most probably a Windows format PATH printed by
25695         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25696         # path with ; separators, and with drive letters. We can handle the
25697         # drive letters (cygwin fileutils understands them), so leave them,
25698         # especially as we might pass files found there to a mingw objdump,
25699         # which wouldn't understand a cygwinified path. Ahh.
25700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25701       else
25702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25703       fi
25704       ;;
25705     pw32*)
25706       # pw32 DLLs use 'pw' prefix rather than 'lib'
25707       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25708       ;;
25709     esac
25710     ;;
25711
25712   *)
25713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25714     ;;
25715   esac
25716   dynamic_linker='Win32 ld.exe'
25717   # FIXME: first we should search . and the directory the executable is in
25718   shlibpath_var=PATH
25719   ;;
25720
25721 darwin* | rhapsody*)
25722   dynamic_linker="$host_os dyld"
25723   version_type=darwin
25724   need_lib_prefix=no
25725   need_version=no
25726   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25727   soname_spec='${libname}${release}${major}$shared_ext'
25728   shlibpath_overrides_runpath=yes
25729   shlibpath_var=DYLD_LIBRARY_PATH
25730   shrext_cmds='.dylib'
25731   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25732   if test "$GCC" = yes; then
25733     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"`
25734   else
25735     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25736   fi
25737   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25738   ;;
25739
25740 dgux*)
25741   version_type=linux
25742   need_lib_prefix=no
25743   need_version=no
25744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25745   soname_spec='${libname}${release}${shared_ext}$major'
25746   shlibpath_var=LD_LIBRARY_PATH
25747   ;;
25748
25749 freebsd1*)
25750   dynamic_linker=no
25751   ;;
25752
25753 kfreebsd*-gnu)
25754   version_type=linux
25755   need_lib_prefix=no
25756   need_version=no
25757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25758   soname_spec='${libname}${release}${shared_ext}$major'
25759   shlibpath_var=LD_LIBRARY_PATH
25760   shlibpath_overrides_runpath=no
25761   hardcode_into_libs=yes
25762   dynamic_linker='GNU ld.so'
25763   ;;
25764
25765 freebsd* | dragonfly*)
25766   # DragonFly does not have aout.  When/if they implement a new
25767   # versioning mechanism, adjust this.
25768   if test -x /usr/bin/objformat; then
25769     objformat=`/usr/bin/objformat`
25770   else
25771     case $host_os in
25772     freebsd[123]*) objformat=aout ;;
25773     *) objformat=elf ;;
25774     esac
25775   fi
25776   version_type=freebsd-$objformat
25777   case $version_type in
25778     freebsd-elf*)
25779       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25780       need_version=no
25781       need_lib_prefix=no
25782       ;;
25783     freebsd-*)
25784       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25785       need_version=yes
25786       ;;
25787   esac
25788   shlibpath_var=LD_LIBRARY_PATH
25789   case $host_os in
25790   freebsd2*)
25791     shlibpath_overrides_runpath=yes
25792     ;;
25793   freebsd3.[01]* | freebsdelf3.[01]*)
25794     shlibpath_overrides_runpath=yes
25795     hardcode_into_libs=yes
25796     ;;
25797   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25798   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25799     shlibpath_overrides_runpath=no
25800     hardcode_into_libs=yes
25801     ;;
25802   freebsd*) # from 4.6 on
25803     shlibpath_overrides_runpath=yes
25804     hardcode_into_libs=yes
25805     ;;
25806   esac
25807   ;;
25808
25809 gnu*)
25810   version_type=linux
25811   need_lib_prefix=no
25812   need_version=no
25813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25814   soname_spec='${libname}${release}${shared_ext}$major'
25815   shlibpath_var=LD_LIBRARY_PATH
25816   hardcode_into_libs=yes
25817   ;;
25818
25819 hpux9* | hpux10* | hpux11*)
25820   # Give a soname corresponding to the major version so that dld.sl refuses to
25821   # link against other versions.
25822   version_type=sunos
25823   need_lib_prefix=no
25824   need_version=no
25825   case $host_cpu in
25826   ia64*)
25827     shrext_cmds='.so'
25828     hardcode_into_libs=yes
25829     dynamic_linker="$host_os dld.so"
25830     shlibpath_var=LD_LIBRARY_PATH
25831     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25833     soname_spec='${libname}${release}${shared_ext}$major'
25834     if test "X$HPUX_IA64_MODE" = X32; then
25835       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25836     else
25837       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25838     fi
25839     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25840     ;;
25841    hppa*64*)
25842      shrext_cmds='.sl'
25843      hardcode_into_libs=yes
25844      dynamic_linker="$host_os dld.sl"
25845      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25846      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25847      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25848      soname_spec='${libname}${release}${shared_ext}$major'
25849      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25850      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25851      ;;
25852    *)
25853     shrext_cmds='.sl'
25854     dynamic_linker="$host_os dld.sl"
25855     shlibpath_var=SHLIB_PATH
25856     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858     soname_spec='${libname}${release}${shared_ext}$major'
25859     ;;
25860   esac
25861   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25862   postinstall_cmds='chmod 555 $lib'
25863   ;;
25864
25865 interix3*)
25866   version_type=linux
25867   need_lib_prefix=no
25868   need_version=no
25869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25870   soname_spec='${libname}${release}${shared_ext}$major'
25871   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25872   shlibpath_var=LD_LIBRARY_PATH
25873   shlibpath_overrides_runpath=no
25874   hardcode_into_libs=yes
25875   ;;
25876
25877 irix5* | irix6* | nonstopux*)
25878   case $host_os in
25879     nonstopux*) version_type=nonstopux ;;
25880     *)
25881         if test "$lt_cv_prog_gnu_ld" = yes; then
25882                 version_type=linux
25883         else
25884                 version_type=irix
25885         fi ;;
25886   esac
25887   need_lib_prefix=no
25888   need_version=no
25889   soname_spec='${libname}${release}${shared_ext}$major'
25890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25891   case $host_os in
25892   irix5* | nonstopux*)
25893     libsuff= shlibsuff=
25894     ;;
25895   *)
25896     case $LD in # libtool.m4 will add one of these switches to LD
25897     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25898       libsuff= shlibsuff= libmagic=32-bit;;
25899     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25900       libsuff=32 shlibsuff=N32 libmagic=N32;;
25901     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25902       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25903     *) libsuff= shlibsuff= libmagic=never-match;;
25904     esac
25905     ;;
25906   esac
25907   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25908   shlibpath_overrides_runpath=no
25909   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25910   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25911   hardcode_into_libs=yes
25912   ;;
25913
25914 # No shared lib support for Linux oldld, aout, or coff.
25915 linux*oldld* | linux*aout* | linux*coff*)
25916   dynamic_linker=no
25917   ;;
25918
25919 # This must be Linux ELF.
25920 linux*)
25921   version_type=linux
25922   need_lib_prefix=no
25923   need_version=no
25924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925   soname_spec='${libname}${release}${shared_ext}$major'
25926   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25927   shlibpath_var=LD_LIBRARY_PATH
25928   shlibpath_overrides_runpath=no
25929   # This implies no fast_install, which is unacceptable.
25930   # Some rework will be needed to allow for fast_install
25931   # before this can be enabled.
25932   hardcode_into_libs=yes
25933
25934   # Append ld.so.conf contents to the search path
25935   if test -f /etc/ld.so.conf; then
25936     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' ' '`
25937     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25938   fi
25939
25940   # We used to test for /lib/ld.so.1 and disable shared libraries on
25941   # powerpc, because MkLinux only supported shared libraries with the
25942   # GNU dynamic linker.  Since this was broken with cross compilers,
25943   # most powerpc-linux boxes support dynamic linking these days and
25944   # people can always --disable-shared, the test was removed, and we
25945   # assume the GNU/Linux dynamic linker is in use.
25946   dynamic_linker='GNU/Linux ld.so'
25947   ;;
25948
25949 knetbsd*-gnu)
25950   version_type=linux
25951   need_lib_prefix=no
25952   need_version=no
25953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25954   soname_spec='${libname}${release}${shared_ext}$major'
25955   shlibpath_var=LD_LIBRARY_PATH
25956   shlibpath_overrides_runpath=no
25957   hardcode_into_libs=yes
25958   dynamic_linker='GNU ld.so'
25959   ;;
25960
25961 netbsd*)
25962   version_type=sunos
25963   need_lib_prefix=no
25964   need_version=no
25965   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25967     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25968     dynamic_linker='NetBSD (a.out) ld.so'
25969   else
25970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25971     soname_spec='${libname}${release}${shared_ext}$major'
25972     dynamic_linker='NetBSD ld.elf_so'
25973   fi
25974   shlibpath_var=LD_LIBRARY_PATH
25975   shlibpath_overrides_runpath=yes
25976   hardcode_into_libs=yes
25977   ;;
25978
25979 newsos6)
25980   version_type=linux
25981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25982   shlibpath_var=LD_LIBRARY_PATH
25983   shlibpath_overrides_runpath=yes
25984   ;;
25985
25986 nto-qnx*)
25987   version_type=linux
25988   need_lib_prefix=no
25989   need_version=no
25990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991   soname_spec='${libname}${release}${shared_ext}$major'
25992   shlibpath_var=LD_LIBRARY_PATH
25993   shlibpath_overrides_runpath=yes
25994   ;;
25995
25996 openbsd*)
25997   version_type=sunos
25998   sys_lib_dlsearch_path_spec="/usr/lib"
25999   need_lib_prefix=no
26000   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26001   case $host_os in
26002     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26003     *)                         need_version=no  ;;
26004   esac
26005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26006   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26007   shlibpath_var=LD_LIBRARY_PATH
26008   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26009     case $host_os in
26010       openbsd2.[89] | openbsd2.[89].*)
26011         shlibpath_overrides_runpath=no
26012         ;;
26013       *)
26014         shlibpath_overrides_runpath=yes
26015         ;;
26016       esac
26017   else
26018     shlibpath_overrides_runpath=yes
26019   fi
26020   ;;
26021
26022 os2*)
26023   libname_spec='$name'
26024   shrext_cmds=".dll"
26025   need_lib_prefix=no
26026   library_names_spec='$libname${shared_ext} $libname.a'
26027   dynamic_linker='OS/2 ld.exe'
26028   shlibpath_var=LIBPATH
26029   ;;
26030
26031 osf3* | osf4* | osf5*)
26032   version_type=osf
26033   need_lib_prefix=no
26034   need_version=no
26035   soname_spec='${libname}${release}${shared_ext}$major'
26036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26037   shlibpath_var=LD_LIBRARY_PATH
26038   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26039   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26040   ;;
26041
26042 solaris*)
26043   version_type=linux
26044   need_lib_prefix=no
26045   need_version=no
26046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26047   soname_spec='${libname}${release}${shared_ext}$major'
26048   shlibpath_var=LD_LIBRARY_PATH
26049   shlibpath_overrides_runpath=yes
26050   hardcode_into_libs=yes
26051   # ldd complains unless libraries are executable
26052   postinstall_cmds='chmod +x $lib'
26053   ;;
26054
26055 sunos4*)
26056   version_type=sunos
26057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26058   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26059   shlibpath_var=LD_LIBRARY_PATH
26060   shlibpath_overrides_runpath=yes
26061   if test "$with_gnu_ld" = yes; then
26062     need_lib_prefix=no
26063   fi
26064   need_version=yes
26065   ;;
26066
26067 sysv4 | sysv4.3*)
26068   version_type=linux
26069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26070   soname_spec='${libname}${release}${shared_ext}$major'
26071   shlibpath_var=LD_LIBRARY_PATH
26072   case $host_vendor in
26073     sni)
26074       shlibpath_overrides_runpath=no
26075       need_lib_prefix=no
26076       export_dynamic_flag_spec='${wl}-Blargedynsym'
26077       runpath_var=LD_RUN_PATH
26078       ;;
26079     siemens)
26080       need_lib_prefix=no
26081       ;;
26082     motorola)
26083       need_lib_prefix=no
26084       need_version=no
26085       shlibpath_overrides_runpath=no
26086       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26087       ;;
26088   esac
26089   ;;
26090
26091 sysv4*MP*)
26092   if test -d /usr/nec ;then
26093     version_type=linux
26094     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26095     soname_spec='$libname${shared_ext}.$major'
26096     shlibpath_var=LD_LIBRARY_PATH
26097   fi
26098   ;;
26099
26100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26101   version_type=freebsd-elf
26102   need_lib_prefix=no
26103   need_version=no
26104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26105   soname_spec='${libname}${release}${shared_ext}$major'
26106   shlibpath_var=LD_LIBRARY_PATH
26107   hardcode_into_libs=yes
26108   if test "$with_gnu_ld" = yes; then
26109     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26110     shlibpath_overrides_runpath=no
26111   else
26112     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26113     shlibpath_overrides_runpath=yes
26114     case $host_os in
26115       sco3.2v5*)
26116         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26117         ;;
26118     esac
26119   fi
26120   sys_lib_dlsearch_path_spec='/usr/lib'
26121   ;;
26122
26123 uts4*)
26124   version_type=linux
26125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26126   soname_spec='${libname}${release}${shared_ext}$major'
26127   shlibpath_var=LD_LIBRARY_PATH
26128   ;;
26129
26130 *)
26131   dynamic_linker=no
26132   ;;
26133 esac
26134 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26135 echo "${ECHO_T}$dynamic_linker" >&6; }
26136 test "$dynamic_linker" = no && can_build_shared=no
26137
26138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26139 if test "$GCC" = yes; then
26140   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26141 fi
26142
26143 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26145 hardcode_action_GCJ=
26146 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26147    test -n "$runpath_var_GCJ" || \
26148    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26149
26150   # We can hardcode non-existant directories.
26151   if test "$hardcode_direct_GCJ" != no &&
26152      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26153      # have to relink, otherwise we might link with an installed library
26154      # when we should be linking with a yet-to-be-installed one
26155      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26156      test "$hardcode_minus_L_GCJ" != no; then
26157     # Linking always hardcodes the temporary library directory.
26158     hardcode_action_GCJ=relink
26159   else
26160     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26161     hardcode_action_GCJ=immediate
26162   fi
26163 else
26164   # We cannot hardcode anything, or else we can only hardcode existing
26165   # directories.
26166   hardcode_action_GCJ=unsupported
26167 fi
26168 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26169 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26170
26171 if test "$hardcode_action_GCJ" = relink; then
26172   # Fast installation is not supported
26173   enable_fast_install=no
26174 elif test "$shlibpath_overrides_runpath" = yes ||
26175      test "$enable_shared" = no; then
26176   # Fast installation is not necessary
26177   enable_fast_install=needless
26178 fi
26179
26180
26181 # The else clause should only fire when bootstrapping the
26182 # libtool distribution, otherwise you forgot to ship ltmain.sh
26183 # with your package, and you will get complaints that there are
26184 # no rules to generate ltmain.sh.
26185 if test -f "$ltmain"; then
26186   # See if we are running on zsh, and set the options which allow our commands through
26187   # without removal of \ escapes.
26188   if test -n "${ZSH_VERSION+set}" ; then
26189     setopt NO_GLOB_SUBST
26190   fi
26191   # Now quote all the things that may contain metacharacters while being
26192   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26193   # variables and quote the copies for generation of the libtool script.
26194   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26195     SED SHELL STRIP \
26196     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26197     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26198     deplibs_check_method reload_flag reload_cmds need_locks \
26199     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26200     lt_cv_sys_global_symbol_to_c_name_address \
26201     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26202     old_postinstall_cmds old_postuninstall_cmds \
26203     compiler_GCJ \
26204     CC_GCJ \
26205     LD_GCJ \
26206     lt_prog_compiler_wl_GCJ \
26207     lt_prog_compiler_pic_GCJ \
26208     lt_prog_compiler_static_GCJ \
26209     lt_prog_compiler_no_builtin_flag_GCJ \
26210     export_dynamic_flag_spec_GCJ \
26211     thread_safe_flag_spec_GCJ \
26212     whole_archive_flag_spec_GCJ \
26213     enable_shared_with_static_runtimes_GCJ \
26214     old_archive_cmds_GCJ \
26215     old_archive_from_new_cmds_GCJ \
26216     predep_objects_GCJ \
26217     postdep_objects_GCJ \
26218     predeps_GCJ \
26219     postdeps_GCJ \
26220     compiler_lib_search_path_GCJ \
26221     archive_cmds_GCJ \
26222     archive_expsym_cmds_GCJ \
26223     postinstall_cmds_GCJ \
26224     postuninstall_cmds_GCJ \
26225     old_archive_from_expsyms_cmds_GCJ \
26226     allow_undefined_flag_GCJ \
26227     no_undefined_flag_GCJ \
26228     export_symbols_cmds_GCJ \
26229     hardcode_libdir_flag_spec_GCJ \
26230     hardcode_libdir_flag_spec_ld_GCJ \
26231     hardcode_libdir_separator_GCJ \
26232     hardcode_automatic_GCJ \
26233     module_cmds_GCJ \
26234     module_expsym_cmds_GCJ \
26235     lt_cv_prog_compiler_c_o_GCJ \
26236     exclude_expsyms_GCJ \
26237     include_expsyms_GCJ; do
26238
26239     case $var in
26240     old_archive_cmds_GCJ | \
26241     old_archive_from_new_cmds_GCJ | \
26242     archive_cmds_GCJ | \
26243     archive_expsym_cmds_GCJ | \
26244     module_cmds_GCJ | \
26245     module_expsym_cmds_GCJ | \
26246     old_archive_from_expsyms_cmds_GCJ | \
26247     export_symbols_cmds_GCJ | \
26248     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26249     postinstall_cmds | postuninstall_cmds | \
26250     old_postinstall_cmds | old_postuninstall_cmds | \
26251     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26252       # Double-quote double-evaled strings.
26253       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26254       ;;
26255     *)
26256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26257       ;;
26258     esac
26259   done
26260
26261   case $lt_echo in
26262   *'\$0 --fallback-echo"')
26263     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26264     ;;
26265   esac
26266
26267 cfgfile="$ofile"
26268
26269   cat <<__EOF__ >> "$cfgfile"
26270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26271
26272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26273
26274 # Shell to use when invoking shell scripts.
26275 SHELL=$lt_SHELL
26276
26277 # Whether or not to build shared libraries.
26278 build_libtool_libs=$enable_shared
26279
26280 # Whether or not to build static libraries.
26281 build_old_libs=$enable_static
26282
26283 # Whether or not to add -lc for building shared libraries.
26284 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26285
26286 # Whether or not to disallow shared libs when runtime libs are static
26287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26288
26289 # Whether or not to optimize for fast installation.
26290 fast_install=$enable_fast_install
26291
26292 # The host system.
26293 host_alias=$host_alias
26294 host=$host
26295 host_os=$host_os
26296
26297 # The build system.
26298 build_alias=$build_alias
26299 build=$build
26300 build_os=$build_os
26301
26302 # An echo program that does not interpret backslashes.
26303 echo=$lt_echo
26304
26305 # The archiver.
26306 AR=$lt_AR
26307 AR_FLAGS=$lt_AR_FLAGS
26308
26309 # A C compiler.
26310 LTCC=$lt_LTCC
26311
26312 # LTCC compiler flags.
26313 LTCFLAGS=$lt_LTCFLAGS
26314
26315 # A language-specific compiler.
26316 CC=$lt_compiler_GCJ
26317
26318 # Is the compiler the GNU C compiler?
26319 with_gcc=$GCC_GCJ
26320
26321 # An ERE matcher.
26322 EGREP=$lt_EGREP
26323
26324 # The linker used to build libraries.
26325 LD=$lt_LD_GCJ
26326
26327 # Whether we need hard or soft links.
26328 LN_S=$lt_LN_S
26329
26330 # A BSD-compatible nm program.
26331 NM=$lt_NM
26332
26333 # A symbol stripping program
26334 STRIP=$lt_STRIP
26335
26336 # Used to examine libraries when file_magic_cmd begins "file"
26337 MAGIC_CMD=$MAGIC_CMD
26338
26339 # Used on cygwin: DLL creation program.
26340 DLLTOOL="$DLLTOOL"
26341
26342 # Used on cygwin: object dumper.
26343 OBJDUMP="$OBJDUMP"
26344
26345 # Used on cygwin: assembler.
26346 AS="$AS"
26347
26348 # The name of the directory that contains temporary libtool files.
26349 objdir=$objdir
26350
26351 # How to create reloadable object files.
26352 reload_flag=$lt_reload_flag
26353 reload_cmds=$lt_reload_cmds
26354
26355 # How to pass a linker flag through the compiler.
26356 wl=$lt_lt_prog_compiler_wl_GCJ
26357
26358 # Object file suffix (normally "o").
26359 objext="$ac_objext"
26360
26361 # Old archive suffix (normally "a").
26362 libext="$libext"
26363
26364 # Shared library suffix (normally ".so").
26365 shrext_cmds='$shrext_cmds'
26366
26367 # Executable file suffix (normally "").
26368 exeext="$exeext"
26369
26370 # Additional compiler flags for building library objects.
26371 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26372 pic_mode=$pic_mode
26373
26374 # What is the maximum length of a command?
26375 max_cmd_len=$lt_cv_sys_max_cmd_len
26376
26377 # Does compiler simultaneously support -c and -o options?
26378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26379
26380 # Must we lock files when doing compilation?
26381 need_locks=$lt_need_locks
26382
26383 # Do we need the lib prefix for modules?
26384 need_lib_prefix=$need_lib_prefix
26385
26386 # Do we need a version for libraries?
26387 need_version=$need_version
26388
26389 # Whether dlopen is supported.
26390 dlopen_support=$enable_dlopen
26391
26392 # Whether dlopen of programs is supported.
26393 dlopen_self=$enable_dlopen_self
26394
26395 # Whether dlopen of statically linked programs is supported.
26396 dlopen_self_static=$enable_dlopen_self_static
26397
26398 # Compiler flag to prevent dynamic linking.
26399 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26400
26401 # Compiler flag to turn off builtin functions.
26402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26403
26404 # Compiler flag to allow reflexive dlopens.
26405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26406
26407 # Compiler flag to generate shared objects directly from archives.
26408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26409
26410 # Compiler flag to generate thread-safe objects.
26411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26412
26413 # Library versioning type.
26414 version_type=$version_type
26415
26416 # Format of library name prefix.
26417 libname_spec=$lt_libname_spec
26418
26419 # List of archive names.  First name is the real one, the rest are links.
26420 # The last name is the one that the linker finds with -lNAME.
26421 library_names_spec=$lt_library_names_spec
26422
26423 # The coded name of the library, if different from the real name.
26424 soname_spec=$lt_soname_spec
26425
26426 # Commands used to build and install an old-style archive.
26427 RANLIB=$lt_RANLIB
26428 old_archive_cmds=$lt_old_archive_cmds_GCJ
26429 old_postinstall_cmds=$lt_old_postinstall_cmds
26430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26431
26432 # Create an old-style archive from a shared archive.
26433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26434
26435 # Create a temporary old-style archive to link instead of a shared archive.
26436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26437
26438 # Commands used to build and install a shared archive.
26439 archive_cmds=$lt_archive_cmds_GCJ
26440 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26441 postinstall_cmds=$lt_postinstall_cmds
26442 postuninstall_cmds=$lt_postuninstall_cmds
26443
26444 # Commands used to build a loadable module (assumed same as above if empty)
26445 module_cmds=$lt_module_cmds_GCJ
26446 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26447
26448 # Commands to strip libraries.
26449 old_striplib=$lt_old_striplib
26450 striplib=$lt_striplib
26451
26452 # Dependencies to place before the objects being linked to create a
26453 # shared library.
26454 predep_objects=$lt_predep_objects_GCJ
26455
26456 # Dependencies to place after the objects being linked to create a
26457 # shared library.
26458 postdep_objects=$lt_postdep_objects_GCJ
26459
26460 # Dependencies to place before the objects being linked to create a
26461 # shared library.
26462 predeps=$lt_predeps_GCJ
26463
26464 # Dependencies to place after the objects being linked to create a
26465 # shared library.
26466 postdeps=$lt_postdeps_GCJ
26467
26468 # The library search path used internally by the compiler when linking
26469 # a shared library.
26470 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26471
26472 # Method to check whether dependent libraries are shared objects.
26473 deplibs_check_method=$lt_deplibs_check_method
26474
26475 # Command to use when deplibs_check_method == file_magic.
26476 file_magic_cmd=$lt_file_magic_cmd
26477
26478 # Flag that allows shared libraries with undefined symbols to be built.
26479 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26480
26481 # Flag that forces no undefined symbols.
26482 no_undefined_flag=$lt_no_undefined_flag_GCJ
26483
26484 # Commands used to finish a libtool library installation in a directory.
26485 finish_cmds=$lt_finish_cmds
26486
26487 # Same as above, but a single script fragment to be evaled but not shown.
26488 finish_eval=$lt_finish_eval
26489
26490 # Take the output of nm and produce a listing of raw symbols and C names.
26491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26492
26493 # Transform the output of nm in a proper C declaration
26494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26495
26496 # Transform the output of nm in a C name address pair
26497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26498
26499 # This is the shared library runtime path variable.
26500 runpath_var=$runpath_var
26501
26502 # This is the shared library path variable.
26503 shlibpath_var=$shlibpath_var
26504
26505 # Is shlibpath searched before the hard-coded library search path?
26506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26507
26508 # How to hardcode a shared library path into an executable.
26509 hardcode_action=$hardcode_action_GCJ
26510
26511 # Whether we should hardcode library paths into libraries.
26512 hardcode_into_libs=$hardcode_into_libs
26513
26514 # Flag to hardcode \$libdir into a binary during linking.
26515 # This must work even if \$libdir does not exist.
26516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26517
26518 # If ld is used when linking, flag to hardcode \$libdir into
26519 # a binary during linking. This must work even if \$libdir does
26520 # not exist.
26521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26522
26523 # Whether we need a single -rpath flag with a separated argument.
26524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26525
26526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26527 # resulting binary.
26528 hardcode_direct=$hardcode_direct_GCJ
26529
26530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26531 # resulting binary.
26532 hardcode_minus_L=$hardcode_minus_L_GCJ
26533
26534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26535 # the resulting binary.
26536 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26537
26538 # Set to yes if building a shared library automatically hardcodes DIR into the library
26539 # and all subsequent libraries and executables linked against it.
26540 hardcode_automatic=$hardcode_automatic_GCJ
26541
26542 # Variables whose values should be saved in libtool wrapper scripts and
26543 # restored at relink time.
26544 variables_saved_for_relink="$variables_saved_for_relink"
26545
26546 # Whether libtool must link a program against all its dependency libraries.
26547 link_all_deplibs=$link_all_deplibs_GCJ
26548
26549 # Compile-time system search path for libraries
26550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26551
26552 # Run-time system search path for libraries
26553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26554
26555 # Fix the shell variable \$srcfile for the compiler.
26556 fix_srcfile_path="$fix_srcfile_path_GCJ"
26557
26558 # Set to yes if exported symbols are required.
26559 always_export_symbols=$always_export_symbols_GCJ
26560
26561 # The commands to list exported symbols.
26562 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26563
26564 # The commands to extract the exported symbol list from a shared archive.
26565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26566
26567 # Symbols that should not be listed in the preloaded symbols.
26568 exclude_expsyms=$lt_exclude_expsyms_GCJ
26569
26570 # Symbols that must always be exported.
26571 include_expsyms=$lt_include_expsyms_GCJ
26572
26573 # ### END LIBTOOL TAG CONFIG: $tagname
26574
26575 __EOF__
26576
26577
26578 else
26579   # If there is no Makefile yet, we rely on a make rule to execute
26580   # `config.status --recheck' to rerun these tests and create the
26581   # libtool script then.
26582   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26583   if test -f "$ltmain_in"; then
26584     test -f Makefile && make "$ltmain"
26585   fi
26586 fi
26587
26588
26589 ac_ext=c
26590 ac_cpp='$CPP $CPPFLAGS'
26591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26594
26595 CC="$lt_save_CC"
26596
26597         else
26598           tagname=""
26599         fi
26600         ;;
26601
26602       RC)
26603         ac_ext=c
26604 ac_cpp='$CPP $CPPFLAGS'
26605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26608
26609
26610 # Source file extension for RC test sources.
26611 ac_ext=rc
26612
26613 # Object file extension for compiled RC test sources.
26614 objext=o
26615 objext_RC=$objext
26616
26617 # Code to be used in simple compile tests
26618 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26619
26620 # Code to be used in simple link tests
26621 lt_simple_link_test_code="$lt_simple_compile_test_code"
26622
26623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26624
26625 # If no C compiler was specified, use CC.
26626 LTCC=${LTCC-"$CC"}
26627
26628 # If no C compiler flags were specified, use CFLAGS.
26629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26630
26631 # Allow CC to be a program name with arguments.
26632 compiler=$CC
26633
26634
26635 # save warnings/boilerplate of simple test code
26636 ac_outfile=conftest.$ac_objext
26637 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26639 _lt_compiler_boilerplate=`cat conftest.err`
26640 $rm conftest*
26641
26642 ac_outfile=conftest.$ac_objext
26643 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26645 _lt_linker_boilerplate=`cat conftest.err`
26646 $rm conftest*
26647
26648
26649 # Allow CC to be a program name with arguments.
26650 lt_save_CC="$CC"
26651 CC=${RC-"windres"}
26652 compiler=$CC
26653 compiler_RC=$CC
26654 for cc_temp in $compiler""; do
26655   case $cc_temp in
26656     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26657     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26658     \-*) ;;
26659     *) break;;
26660   esac
26661 done
26662 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26663
26664 lt_cv_prog_compiler_c_o_RC=yes
26665
26666 # The else clause should only fire when bootstrapping the
26667 # libtool distribution, otherwise you forgot to ship ltmain.sh
26668 # with your package, and you will get complaints that there are
26669 # no rules to generate ltmain.sh.
26670 if test -f "$ltmain"; then
26671   # See if we are running on zsh, and set the options which allow our commands through
26672   # without removal of \ escapes.
26673   if test -n "${ZSH_VERSION+set}" ; then
26674     setopt NO_GLOB_SUBST
26675   fi
26676   # Now quote all the things that may contain metacharacters while being
26677   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26678   # variables and quote the copies for generation of the libtool script.
26679   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26680     SED SHELL STRIP \
26681     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26682     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26683     deplibs_check_method reload_flag reload_cmds need_locks \
26684     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26685     lt_cv_sys_global_symbol_to_c_name_address \
26686     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26687     old_postinstall_cmds old_postuninstall_cmds \
26688     compiler_RC \
26689     CC_RC \
26690     LD_RC \
26691     lt_prog_compiler_wl_RC \
26692     lt_prog_compiler_pic_RC \
26693     lt_prog_compiler_static_RC \
26694     lt_prog_compiler_no_builtin_flag_RC \
26695     export_dynamic_flag_spec_RC \
26696     thread_safe_flag_spec_RC \
26697     whole_archive_flag_spec_RC \
26698     enable_shared_with_static_runtimes_RC \
26699     old_archive_cmds_RC \
26700     old_archive_from_new_cmds_RC \
26701     predep_objects_RC \
26702     postdep_objects_RC \
26703     predeps_RC \
26704     postdeps_RC \
26705     compiler_lib_search_path_RC \
26706     archive_cmds_RC \
26707     archive_expsym_cmds_RC \
26708     postinstall_cmds_RC \
26709     postuninstall_cmds_RC \
26710     old_archive_from_expsyms_cmds_RC \
26711     allow_undefined_flag_RC \
26712     no_undefined_flag_RC \
26713     export_symbols_cmds_RC \
26714     hardcode_libdir_flag_spec_RC \
26715     hardcode_libdir_flag_spec_ld_RC \
26716     hardcode_libdir_separator_RC \
26717     hardcode_automatic_RC \
26718     module_cmds_RC \
26719     module_expsym_cmds_RC \
26720     lt_cv_prog_compiler_c_o_RC \
26721     exclude_expsyms_RC \
26722     include_expsyms_RC; do
26723
26724     case $var in
26725     old_archive_cmds_RC | \
26726     old_archive_from_new_cmds_RC | \
26727     archive_cmds_RC | \
26728     archive_expsym_cmds_RC | \
26729     module_cmds_RC | \
26730     module_expsym_cmds_RC | \
26731     old_archive_from_expsyms_cmds_RC | \
26732     export_symbols_cmds_RC | \
26733     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26734     postinstall_cmds | postuninstall_cmds | \
26735     old_postinstall_cmds | old_postuninstall_cmds | \
26736     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26737       # Double-quote double-evaled strings.
26738       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26739       ;;
26740     *)
26741       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26742       ;;
26743     esac
26744   done
26745
26746   case $lt_echo in
26747   *'\$0 --fallback-echo"')
26748     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26749     ;;
26750   esac
26751
26752 cfgfile="$ofile"
26753
26754   cat <<__EOF__ >> "$cfgfile"
26755 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26756
26757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26758
26759 # Shell to use when invoking shell scripts.
26760 SHELL=$lt_SHELL
26761
26762 # Whether or not to build shared libraries.
26763 build_libtool_libs=$enable_shared
26764
26765 # Whether or not to build static libraries.
26766 build_old_libs=$enable_static
26767
26768 # Whether or not to add -lc for building shared libraries.
26769 build_libtool_need_lc=$archive_cmds_need_lc_RC
26770
26771 # Whether or not to disallow shared libs when runtime libs are static
26772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26773
26774 # Whether or not to optimize for fast installation.
26775 fast_install=$enable_fast_install
26776
26777 # The host system.
26778 host_alias=$host_alias
26779 host=$host
26780 host_os=$host_os
26781
26782 # The build system.
26783 build_alias=$build_alias
26784 build=$build
26785 build_os=$build_os
26786
26787 # An echo program that does not interpret backslashes.
26788 echo=$lt_echo
26789
26790 # The archiver.
26791 AR=$lt_AR
26792 AR_FLAGS=$lt_AR_FLAGS
26793
26794 # A C compiler.
26795 LTCC=$lt_LTCC
26796
26797 # LTCC compiler flags.
26798 LTCFLAGS=$lt_LTCFLAGS
26799
26800 # A language-specific compiler.
26801 CC=$lt_compiler_RC
26802
26803 # Is the compiler the GNU C compiler?
26804 with_gcc=$GCC_RC
26805
26806 # An ERE matcher.
26807 EGREP=$lt_EGREP
26808
26809 # The linker used to build libraries.
26810 LD=$lt_LD_RC
26811
26812 # Whether we need hard or soft links.
26813 LN_S=$lt_LN_S
26814
26815 # A BSD-compatible nm program.
26816 NM=$lt_NM
26817
26818 # A symbol stripping program
26819 STRIP=$lt_STRIP
26820
26821 # Used to examine libraries when file_magic_cmd begins "file"
26822 MAGIC_CMD=$MAGIC_CMD
26823
26824 # Used on cygwin: DLL creation program.
26825 DLLTOOL="$DLLTOOL"
26826
26827 # Used on cygwin: object dumper.
26828 OBJDUMP="$OBJDUMP"
26829
26830 # Used on cygwin: assembler.
26831 AS="$AS"
26832
26833 # The name of the directory that contains temporary libtool files.
26834 objdir=$objdir
26835
26836 # How to create reloadable object files.
26837 reload_flag=$lt_reload_flag
26838 reload_cmds=$lt_reload_cmds
26839
26840 # How to pass a linker flag through the compiler.
26841 wl=$lt_lt_prog_compiler_wl_RC
26842
26843 # Object file suffix (normally "o").
26844 objext="$ac_objext"
26845
26846 # Old archive suffix (normally "a").
26847 libext="$libext"
26848
26849 # Shared library suffix (normally ".so").
26850 shrext_cmds='$shrext_cmds'
26851
26852 # Executable file suffix (normally "").
26853 exeext="$exeext"
26854
26855 # Additional compiler flags for building library objects.
26856 pic_flag=$lt_lt_prog_compiler_pic_RC
26857 pic_mode=$pic_mode
26858
26859 # What is the maximum length of a command?
26860 max_cmd_len=$lt_cv_sys_max_cmd_len
26861
26862 # Does compiler simultaneously support -c and -o options?
26863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26864
26865 # Must we lock files when doing compilation?
26866 need_locks=$lt_need_locks
26867
26868 # Do we need the lib prefix for modules?
26869 need_lib_prefix=$need_lib_prefix
26870
26871 # Do we need a version for libraries?
26872 need_version=$need_version
26873
26874 # Whether dlopen is supported.
26875 dlopen_support=$enable_dlopen
26876
26877 # Whether dlopen of programs is supported.
26878 dlopen_self=$enable_dlopen_self
26879
26880 # Whether dlopen of statically linked programs is supported.
26881 dlopen_self_static=$enable_dlopen_self_static
26882
26883 # Compiler flag to prevent dynamic linking.
26884 link_static_flag=$lt_lt_prog_compiler_static_RC
26885
26886 # Compiler flag to turn off builtin functions.
26887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26888
26889 # Compiler flag to allow reflexive dlopens.
26890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26891
26892 # Compiler flag to generate shared objects directly from archives.
26893 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26894
26895 # Compiler flag to generate thread-safe objects.
26896 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26897
26898 # Library versioning type.
26899 version_type=$version_type
26900
26901 # Format of library name prefix.
26902 libname_spec=$lt_libname_spec
26903
26904 # List of archive names.  First name is the real one, the rest are links.
26905 # The last name is the one that the linker finds with -lNAME.
26906 library_names_spec=$lt_library_names_spec
26907
26908 # The coded name of the library, if different from the real name.
26909 soname_spec=$lt_soname_spec
26910
26911 # Commands used to build and install an old-style archive.
26912 RANLIB=$lt_RANLIB
26913 old_archive_cmds=$lt_old_archive_cmds_RC
26914 old_postinstall_cmds=$lt_old_postinstall_cmds
26915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26916
26917 # Create an old-style archive from a shared archive.
26918 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26919
26920 # Create a temporary old-style archive to link instead of a shared archive.
26921 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26922
26923 # Commands used to build and install a shared archive.
26924 archive_cmds=$lt_archive_cmds_RC
26925 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26926 postinstall_cmds=$lt_postinstall_cmds
26927 postuninstall_cmds=$lt_postuninstall_cmds
26928
26929 # Commands used to build a loadable module (assumed same as above if empty)
26930 module_cmds=$lt_module_cmds_RC
26931 module_expsym_cmds=$lt_module_expsym_cmds_RC
26932
26933 # Commands to strip libraries.
26934 old_striplib=$lt_old_striplib
26935 striplib=$lt_striplib
26936
26937 # Dependencies to place before the objects being linked to create a
26938 # shared library.
26939 predep_objects=$lt_predep_objects_RC
26940
26941 # Dependencies to place after the objects being linked to create a
26942 # shared library.
26943 postdep_objects=$lt_postdep_objects_RC
26944
26945 # Dependencies to place before the objects being linked to create a
26946 # shared library.
26947 predeps=$lt_predeps_RC
26948
26949 # Dependencies to place after the objects being linked to create a
26950 # shared library.
26951 postdeps=$lt_postdeps_RC
26952
26953 # The library search path used internally by the compiler when linking
26954 # a shared library.
26955 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26956
26957 # Method to check whether dependent libraries are shared objects.
26958 deplibs_check_method=$lt_deplibs_check_method
26959
26960 # Command to use when deplibs_check_method == file_magic.
26961 file_magic_cmd=$lt_file_magic_cmd
26962
26963 # Flag that allows shared libraries with undefined symbols to be built.
26964 allow_undefined_flag=$lt_allow_undefined_flag_RC
26965
26966 # Flag that forces no undefined symbols.
26967 no_undefined_flag=$lt_no_undefined_flag_RC
26968
26969 # Commands used to finish a libtool library installation in a directory.
26970 finish_cmds=$lt_finish_cmds
26971
26972 # Same as above, but a single script fragment to be evaled but not shown.
26973 finish_eval=$lt_finish_eval
26974
26975 # Take the output of nm and produce a listing of raw symbols and C names.
26976 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26977
26978 # Transform the output of nm in a proper C declaration
26979 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26980
26981 # Transform the output of nm in a C name address pair
26982 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26983
26984 # This is the shared library runtime path variable.
26985 runpath_var=$runpath_var
26986
26987 # This is the shared library path variable.
26988 shlibpath_var=$shlibpath_var
26989
26990 # Is shlibpath searched before the hard-coded library search path?
26991 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26992
26993 # How to hardcode a shared library path into an executable.
26994 hardcode_action=$hardcode_action_RC
26995
26996 # Whether we should hardcode library paths into libraries.
26997 hardcode_into_libs=$hardcode_into_libs
26998
26999 # Flag to hardcode \$libdir into a binary during linking.
27000 # This must work even if \$libdir does not exist.
27001 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27002
27003 # If ld is used when linking, flag to hardcode \$libdir into
27004 # a binary during linking. This must work even if \$libdir does
27005 # not exist.
27006 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27007
27008 # Whether we need a single -rpath flag with a separated argument.
27009 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27010
27011 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27012 # resulting binary.
27013 hardcode_direct=$hardcode_direct_RC
27014
27015 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27016 # resulting binary.
27017 hardcode_minus_L=$hardcode_minus_L_RC
27018
27019 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27020 # the resulting binary.
27021 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27022
27023 # Set to yes if building a shared library automatically hardcodes DIR into the library
27024 # and all subsequent libraries and executables linked against it.
27025 hardcode_automatic=$hardcode_automatic_RC
27026
27027 # Variables whose values should be saved in libtool wrapper scripts and
27028 # restored at relink time.
27029 variables_saved_for_relink="$variables_saved_for_relink"
27030
27031 # Whether libtool must link a program against all its dependency libraries.
27032 link_all_deplibs=$link_all_deplibs_RC
27033
27034 # Compile-time system search path for libraries
27035 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27036
27037 # Run-time system search path for libraries
27038 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27039
27040 # Fix the shell variable \$srcfile for the compiler.
27041 fix_srcfile_path="$fix_srcfile_path_RC"
27042
27043 # Set to yes if exported symbols are required.
27044 always_export_symbols=$always_export_symbols_RC
27045
27046 # The commands to list exported symbols.
27047 export_symbols_cmds=$lt_export_symbols_cmds_RC
27048
27049 # The commands to extract the exported symbol list from a shared archive.
27050 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27051
27052 # Symbols that should not be listed in the preloaded symbols.
27053 exclude_expsyms=$lt_exclude_expsyms_RC
27054
27055 # Symbols that must always be exported.
27056 include_expsyms=$lt_include_expsyms_RC
27057
27058 # ### END LIBTOOL TAG CONFIG: $tagname
27059
27060 __EOF__
27061
27062
27063 else
27064   # If there is no Makefile yet, we rely on a make rule to execute
27065   # `config.status --recheck' to rerun these tests and create the
27066   # libtool script then.
27067   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27068   if test -f "$ltmain_in"; then
27069     test -f Makefile && make "$ltmain"
27070   fi
27071 fi
27072
27073
27074 ac_ext=c
27075 ac_cpp='$CPP $CPPFLAGS'
27076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27079
27080 CC="$lt_save_CC"
27081
27082         ;;
27083
27084       *)
27085         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27086 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27087    { (exit 1); exit 1; }; }
27088         ;;
27089       esac
27090
27091       # Append the new tag name to the list of available tags.
27092       if test -n "$tagname" ; then
27093       available_tags="$available_tags $tagname"
27094     fi
27095     fi
27096   done
27097   IFS="$lt_save_ifs"
27098
27099   # Now substitute the updated list of available tags.
27100   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27101     mv "${ofile}T" "$ofile"
27102     chmod +x "$ofile"
27103   else
27104     rm -f "${ofile}T"
27105     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27106 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27107    { (exit 1); exit 1; }; }
27108   fi
27109 fi
27110
27111
27112
27113 # This can be used to rebuild libtool when needed
27114 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27115
27116 # Always use our own libtool.
27117 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27118
27119 # Prevent multiple expansion
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141 if test "$lt_cv_dlopen_self" = "yes" ; then
27142
27143 cat >>confdefs.h <<\_ACEOF
27144 #define CAN_DLOPEN_SELF 1
27145 _ACEOF
27146
27147 fi
27148
27149
27150 if test "$WITH_LLVMGCCDIR" = "default" ; then
27151   LLVMGCC="llvm-gcc${EXEEXT}"
27152   LLVMGXX="llvm-g++${EXEEXT}"
27153   LLVMGCCCOMMAND="$LLVMGCC"
27154   LLVMGXXCOMMAND="$LLVMGXX"
27155   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27156
27157   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27158
27159   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27160 set dummy $LLVMGCC; ac_word=$2
27161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27163 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27164   echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27166   case $LLVMGCC in
27167   [\\/]* | ?:[\\/]*)
27168   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27169   ;;
27170   *)
27171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27172 for as_dir in $PATH
27173 do
27174   IFS=$as_save_IFS
27175   test -z "$as_dir" && as_dir=.
27176   for ac_exec_ext in '' $ac_executable_extensions; do
27177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27178     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27180     break 2
27181   fi
27182 done
27183 done
27184 IFS=$as_save_IFS
27185
27186   ;;
27187 esac
27188 fi
27189 LLVMGCC=$ac_cv_path_LLVMGCC
27190 if test -n "$LLVMGCC"; then
27191   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27192 echo "${ECHO_T}$LLVMGCC" >&6; }
27193 else
27194   { echo "$as_me:$LINENO: result: no" >&5
27195 echo "${ECHO_T}no" >&6; }
27196 fi
27197
27198
27199   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27200 set dummy $LLVMGXX; ac_word=$2
27201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27203 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   case $LLVMGXX in
27207   [\\/]* | ?:[\\/]*)
27208   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27209   ;;
27210   *)
27211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27212 for as_dir in $PATH
27213 do
27214   IFS=$as_save_IFS
27215   test -z "$as_dir" && as_dir=.
27216   for ac_exec_ext in '' $ac_executable_extensions; do
27217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27218     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27220     break 2
27221   fi
27222 done
27223 done
27224 IFS=$as_save_IFS
27225
27226   ;;
27227 esac
27228 fi
27229 LLVMGXX=$ac_cv_path_LLVMGXX
27230 if test -n "$LLVMGXX"; then
27231   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27232 echo "${ECHO_T}$LLVMGXX" >&6; }
27233 else
27234   { echo "$as_me:$LINENO: result: no" >&5
27235 echo "${ECHO_T}no" >&6; }
27236 fi
27237
27238
27239 else
27240   if test -z "$LLVMGCC"; then
27241     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27242     LLVMGCCCOMMAND="$LLVMGCC"
27243   fi
27244   if test -z "$LLVMGXX"; then
27245     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27246     LLVMGXXCOMMAND="$LLVMGXX"
27247   fi
27248
27249   LLVMGCC=$LLVMGCC
27250
27251   LLVMGXX=$LLVMGXX
27252
27253   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27254
27255   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27256
27257 fi
27258
27259
27260 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27261 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27262
27263 ICC=no
27264 IXX=no
27265 case $CC in
27266   icc*|icpc*)
27267     ICC=yes
27268     IXX=yes
27269     ;;
27270    *)
27271     ;;
27272 esac
27273
27274 if test "$GCC" != "yes" && test "$ICC" != "yes"
27275 then
27276   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27277 echo "$as_me: error: gcc|icc required but not found" >&2;}
27278    { (exit 1); exit 1; }; }
27279 fi
27280
27281 if test "$GXX" != "yes" && test "$IXX" != "yes"
27282 then
27283   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27284 echo "$as_me: error: g++|icc required but not found" >&2;}
27285    { (exit 1); exit 1; }; }
27286 fi
27287
27288 if test "$GCC" = "yes"
27289 then
27290   cat >conftest.$ac_ext <<_ACEOF
27291 #if !defined(__GNUC__) || __GNUC__ < 3
27292 #error Unsupported GCC version
27293 #endif
27294
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300   *) ac_try_echo=$ac_try;;
27301 esac
27302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303   (eval "$ac_compile") 2>conftest.er1
27304   ac_status=$?
27305   grep -v '^ *+' conftest.er1 >conftest.err
27306   rm -f conftest.er1
27307   cat conftest.err >&5
27308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309   (exit $ac_status); } &&
27310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27311   { (case "(($ac_try" in
27312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313   *) ac_try_echo=$ac_try;;
27314 esac
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316   (eval "$ac_try") 2>&5
27317   ac_status=$?
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); }; } &&
27320          { ac_try='test -s conftest.$ac_objext'
27321   { (case "(($ac_try" in
27322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323   *) ac_try_echo=$ac_try;;
27324 esac
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326   (eval "$ac_try") 2>&5
27327   ac_status=$?
27328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); }; }; then
27330   :
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27334
27335         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27336 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27337    { (exit 1); exit 1; }; }
27338 fi
27339
27340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27341 fi
27342
27343 if test -z "$llvm_cv_gnu_make_command"
27344 then
27345   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27346 echo "$as_me: error: GNU Make required but not found" >&2;}
27347    { (exit 1); exit 1; }; }
27348 fi
27349
27350 { echo "$as_me:$LINENO: result: ok" >&5
27351 echo "${ECHO_T}ok" >&6; }
27352
27353
27354
27355 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27356 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27357 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27358   echo $ECHO_N "(cached) $ECHO_C" >&6
27359 else
27360   ac_check_lib_save_LIBS=$LIBS
27361 LIBS="-lelf  $LIBS"
27362 cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368
27369 /* Override any GCC internal prototype to avoid an error.
27370    Use char because int might match the return type of a GCC
27371    builtin and then its argument prototype would still apply.  */
27372 #ifdef __cplusplus
27373 extern "C"
27374 #endif
27375 char elf_begin ();
27376 int
27377 main ()
27378 {
27379 return elf_begin ();
27380   ;
27381   return 0;
27382 }
27383 _ACEOF
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_lib_elf_elf_begin=yes
27419 else
27420   echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27422
27423         ac_cv_lib_elf_elf_begin=no
27424 fi
27425
27426 rm -f core conftest.err conftest.$ac_objext \
27427       conftest$ac_exeext conftest.$ac_ext
27428 LIBS=$ac_check_lib_save_LIBS
27429 fi
27430 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27431 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27432 if test $ac_cv_lib_elf_elf_begin = yes; then
27433   cat >>confdefs.h <<_ACEOF
27434 #define HAVE_LIBELF 1
27435 _ACEOF
27436
27437   LIBS="-lelf $LIBS"
27438
27439 fi
27440
27441
27442 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27443 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27444 if test "${ac_cv_lib_m_sin+set}" = set; then
27445   echo $ECHO_N "(cached) $ECHO_C" >&6
27446 else
27447   ac_check_lib_save_LIBS=$LIBS
27448 LIBS="-lm  $LIBS"
27449 cat >conftest.$ac_ext <<_ACEOF
27450 /* confdefs.h.  */
27451 _ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h.  */
27455
27456 /* Override any GCC internal prototype to avoid an error.
27457    Use char because int might match the return type of a GCC
27458    builtin and then its argument prototype would still apply.  */
27459 #ifdef __cplusplus
27460 extern "C"
27461 #endif
27462 char sin ();
27463 int
27464 main ()
27465 {
27466 return sin ();
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475   *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478   (eval "$ac_link") 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } &&
27485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486   { (case "(($ac_try" in
27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488   *) ac_try_echo=$ac_try;;
27489 esac
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491   (eval "$ac_try") 2>&5
27492   ac_status=$?
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); }; } &&
27495          { ac_try='test -s conftest$ac_exeext'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_try") 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505   ac_cv_lib_m_sin=yes
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510         ac_cv_lib_m_sin=no
27511 fi
27512
27513 rm -f core conftest.err conftest.$ac_objext \
27514       conftest$ac_exeext conftest.$ac_ext
27515 LIBS=$ac_check_lib_save_LIBS
27516 fi
27517 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27518 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27519 if test $ac_cv_lib_m_sin = yes; then
27520   cat >>confdefs.h <<_ACEOF
27521 #define HAVE_LIBM 1
27522 _ACEOF
27523
27524   LIBS="-lm $LIBS"
27525
27526 fi
27527
27528 if test "$llvm_cv_os_type" = "MingW" ; then
27529
27530 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27531 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27532 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   ac_check_lib_save_LIBS=$LIBS
27536 LIBS="-limagehlp  $LIBS"
27537 cat >conftest.$ac_ext <<_ACEOF
27538 /* confdefs.h.  */
27539 _ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h.  */
27543
27544
27545 int
27546 main ()
27547 {
27548 return main ();
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (ac_try="$ac_link"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_link") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568   { (case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_try") 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; } &&
27577          { ac_try='test -s conftest$ac_exeext'
27578   { (case "(($ac_try" in
27579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580   *) ac_try_echo=$ac_try;;
27581 esac
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583   (eval "$ac_try") 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; }; then
27587   ac_cv_lib_imagehlp_main=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592         ac_cv_lib_imagehlp_main=no
27593 fi
27594
27595 rm -f core conftest.err conftest.$ac_objext \
27596       conftest$ac_exeext conftest.$ac_ext
27597 LIBS=$ac_check_lib_save_LIBS
27598 fi
27599 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27600 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27601 if test $ac_cv_lib_imagehlp_main = yes; then
27602   cat >>confdefs.h <<_ACEOF
27603 #define HAVE_LIBIMAGEHLP 1
27604 _ACEOF
27605
27606   LIBS="-limagehlp $LIBS"
27607
27608 fi
27609
27610
27611 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27612 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27613 if test "${ac_cv_lib_psapi_main+set}" = set; then
27614   echo $ECHO_N "(cached) $ECHO_C" >&6
27615 else
27616   ac_check_lib_save_LIBS=$LIBS
27617 LIBS="-lpsapi  $LIBS"
27618 cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624
27625
27626 int
27627 main ()
27628 {
27629 return main ();
27630   ;
27631   return 0;
27632 }
27633 _ACEOF
27634 rm -f conftest.$ac_objext conftest$ac_exeext
27635 if { (ac_try="$ac_link"
27636 case "(($ac_try" in
27637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638   *) ac_try_echo=$ac_try;;
27639 esac
27640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641   (eval "$ac_link") 2>conftest.er1
27642   ac_status=$?
27643   grep -v '^ *+' conftest.er1 >conftest.err
27644   rm -f conftest.er1
27645   cat conftest.err >&5
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); } &&
27648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27649   { (case "(($ac_try" in
27650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651   *) ac_try_echo=$ac_try;;
27652 esac
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654   (eval "$ac_try") 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; } &&
27658          { ac_try='test -s conftest$ac_exeext'
27659   { (case "(($ac_try" in
27660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661   *) ac_try_echo=$ac_try;;
27662 esac
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664   (eval "$ac_try") 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; }; then
27668   ac_cv_lib_psapi_main=yes
27669 else
27670   echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27672
27673         ac_cv_lib_psapi_main=no
27674 fi
27675
27676 rm -f core conftest.err conftest.$ac_objext \
27677       conftest$ac_exeext conftest.$ac_ext
27678 LIBS=$ac_check_lib_save_LIBS
27679 fi
27680 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27681 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27682 if test $ac_cv_lib_psapi_main = yes; then
27683   cat >>confdefs.h <<_ACEOF
27684 #define HAVE_LIBPSAPI 1
27685 _ACEOF
27686
27687   LIBS="-lpsapi $LIBS"
27688
27689 fi
27690
27691 fi
27692
27693 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27694 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27695 if test "${ac_cv_search_dlopen+set}" = set; then
27696   echo $ECHO_N "(cached) $ECHO_C" >&6
27697 else
27698   ac_func_search_save_LIBS=$LIBS
27699 cat >conftest.$ac_ext <<_ACEOF
27700 /* confdefs.h.  */
27701 _ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h.  */
27705
27706 /* Override any GCC internal prototype to avoid an error.
27707    Use char because int might match the return type of a GCC
27708    builtin and then its argument prototype would still apply.  */
27709 #ifdef __cplusplus
27710 extern "C"
27711 #endif
27712 char dlopen ();
27713 int
27714 main ()
27715 {
27716 return dlopen ();
27717   ;
27718   return 0;
27719 }
27720 _ACEOF
27721 for ac_lib in '' dl; do
27722   if test -z "$ac_lib"; then
27723     ac_res="none required"
27724   else
27725     ac_res=-l$ac_lib
27726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27727   fi
27728   rm -f conftest.$ac_objext conftest$ac_exeext
27729 if { (ac_try="$ac_link"
27730 case "(($ac_try" in
27731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732   *) ac_try_echo=$ac_try;;
27733 esac
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735   (eval "$ac_link") 2>conftest.er1
27736   ac_status=$?
27737   grep -v '^ *+' conftest.er1 >conftest.err
27738   rm -f conftest.er1
27739   cat conftest.err >&5
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); } &&
27742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27743   { (case "(($ac_try" in
27744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745   *) ac_try_echo=$ac_try;;
27746 esac
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748   (eval "$ac_try") 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; } &&
27752          { ac_try='test -s conftest$ac_exeext'
27753   { (case "(($ac_try" in
27754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755   *) ac_try_echo=$ac_try;;
27756 esac
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758   (eval "$ac_try") 2>&5
27759   ac_status=$?
27760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); }; }; then
27762   ac_cv_search_dlopen=$ac_res
27763 else
27764   echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27766
27767
27768 fi
27769
27770 rm -f core conftest.err conftest.$ac_objext \
27771       conftest$ac_exeext
27772   if test "${ac_cv_search_dlopen+set}" = set; then
27773   break
27774 fi
27775 done
27776 if test "${ac_cv_search_dlopen+set}" = set; then
27777   :
27778 else
27779   ac_cv_search_dlopen=no
27780 fi
27781 rm conftest.$ac_ext
27782 LIBS=$ac_func_search_save_LIBS
27783 fi
27784 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27785 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27786 ac_res=$ac_cv_search_dlopen
27787 if test "$ac_res" != no; then
27788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27789
27790 cat >>confdefs.h <<\_ACEOF
27791 #define HAVE_DLOPEN 1
27792 _ACEOF
27793
27794 else
27795   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27796 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27797 fi
27798
27799
27800 if test "$llvm_cv_enable_libffi" = "yes" ; then
27801   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27802 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27803 if test "${ac_cv_search_ffi_call+set}" = set; then
27804   echo $ECHO_N "(cached) $ECHO_C" >&6
27805 else
27806   ac_func_search_save_LIBS=$LIBS
27807 cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h.  */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h.  */
27813
27814 /* Override any GCC internal prototype to avoid an error.
27815    Use char because int might match the return type of a GCC
27816    builtin and then its argument prototype would still apply.  */
27817 #ifdef __cplusplus
27818 extern "C"
27819 #endif
27820 char ffi_call ();
27821 int
27822 main ()
27823 {
27824 return ffi_call ();
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 for ac_lib in '' ffi; do
27830   if test -z "$ac_lib"; then
27831     ac_res="none required"
27832   else
27833     ac_res=-l$ac_lib
27834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27835   fi
27836   rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (ac_try="$ac_link"
27838 case "(($ac_try" in
27839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840   *) ac_try_echo=$ac_try;;
27841 esac
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843   (eval "$ac_link") 2>conftest.er1
27844   ac_status=$?
27845   grep -v '^ *+' conftest.er1 >conftest.err
27846   rm -f conftest.er1
27847   cat conftest.err >&5
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } &&
27850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27851   { (case "(($ac_try" in
27852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853   *) ac_try_echo=$ac_try;;
27854 esac
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856   (eval "$ac_try") 2>&5
27857   ac_status=$?
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); }; } &&
27860          { ac_try='test -s conftest$ac_exeext'
27861   { (case "(($ac_try" in
27862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863   *) ac_try_echo=$ac_try;;
27864 esac
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866   (eval "$ac_try") 2>&5
27867   ac_status=$?
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); }; }; then
27870   ac_cv_search_ffi_call=$ac_res
27871 else
27872   echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27874
27875
27876 fi
27877
27878 rm -f core conftest.err conftest.$ac_objext \
27879       conftest$ac_exeext
27880   if test "${ac_cv_search_ffi_call+set}" = set; then
27881   break
27882 fi
27883 done
27884 if test "${ac_cv_search_ffi_call+set}" = set; then
27885   :
27886 else
27887   ac_cv_search_ffi_call=no
27888 fi
27889 rm conftest.$ac_ext
27890 LIBS=$ac_func_search_save_LIBS
27891 fi
27892 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27893 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27894 ac_res=$ac_cv_search_ffi_call
27895 if test "$ac_res" != no; then
27896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27897
27898 cat >>confdefs.h <<\_ACEOF
27899 #define HAVE_FFI_CALL 1
27900 _ACEOF
27901
27902 else
27903   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27904 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27905 fi
27906
27907 fi
27908
27909 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27910 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27911 if test "${ac_cv_search_mallinfo+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914   ac_func_search_save_LIBS=$LIBS
27915 cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27921
27922 /* Override any GCC internal prototype to avoid an error.
27923    Use char because int might match the return type of a GCC
27924    builtin and then its argument prototype would still apply.  */
27925 #ifdef __cplusplus
27926 extern "C"
27927 #endif
27928 char mallinfo ();
27929 int
27930 main ()
27931 {
27932 return mallinfo ();
27933   ;
27934   return 0;
27935 }
27936 _ACEOF
27937 for ac_lib in '' malloc; do
27938   if test -z "$ac_lib"; then
27939     ac_res="none required"
27940   else
27941     ac_res=-l$ac_lib
27942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27943   fi
27944   rm -f conftest.$ac_objext conftest$ac_exeext
27945 if { (ac_try="$ac_link"
27946 case "(($ac_try" in
27947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948   *) ac_try_echo=$ac_try;;
27949 esac
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951   (eval "$ac_link") 2>conftest.er1
27952   ac_status=$?
27953   grep -v '^ *+' conftest.er1 >conftest.err
27954   rm -f conftest.er1
27955   cat conftest.err >&5
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); } &&
27958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27959   { (case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_try") 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; } &&
27968          { ac_try='test -s conftest$ac_exeext'
27969   { (case "(($ac_try" in
27970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27971   *) ac_try_echo=$ac_try;;
27972 esac
27973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27974   (eval "$ac_try") 2>&5
27975   ac_status=$?
27976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977   (exit $ac_status); }; }; then
27978   ac_cv_search_mallinfo=$ac_res
27979 else
27980   echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983
27984 fi
27985
27986 rm -f core conftest.err conftest.$ac_objext \
27987       conftest$ac_exeext
27988   if test "${ac_cv_search_mallinfo+set}" = set; then
27989   break
27990 fi
27991 done
27992 if test "${ac_cv_search_mallinfo+set}" = set; then
27993   :
27994 else
27995   ac_cv_search_mallinfo=no
27996 fi
27997 rm conftest.$ac_ext
27998 LIBS=$ac_func_search_save_LIBS
27999 fi
28000 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28001 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28002 ac_res=$ac_cv_search_mallinfo
28003 if test "$ac_res" != no; then
28004   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28005
28006 cat >>confdefs.h <<\_ACEOF
28007 #define HAVE_MALLINFO 1
28008 _ACEOF
28009
28010 fi
28011
28012
28013 if test "$ENABLE_THREADS" -eq 1 ; then
28014
28015 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28016 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28017 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   ac_check_lib_save_LIBS=$LIBS
28021 LIBS="-lpthread  $LIBS"
28022 cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028
28029 /* Override any GCC internal prototype to avoid an error.
28030    Use char because int might match the return type of a GCC
28031    builtin and then its argument prototype would still apply.  */
28032 #ifdef __cplusplus
28033 extern "C"
28034 #endif
28035 char pthread_mutex_init ();
28036 int
28037 main ()
28038 {
28039 return pthread_mutex_init ();
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 rm -f conftest.$ac_objext conftest$ac_exeext
28045 if { (ac_try="$ac_link"
28046 case "(($ac_try" in
28047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048   *) ac_try_echo=$ac_try;;
28049 esac
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051   (eval "$ac_link") 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } &&
28058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28059   { (case "(($ac_try" in
28060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061   *) ac_try_echo=$ac_try;;
28062 esac
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064   (eval "$ac_try") 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; } &&
28068          { ac_try='test -s conftest$ac_exeext'
28069   { (case "(($ac_try" in
28070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071   *) ac_try_echo=$ac_try;;
28072 esac
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074   (eval "$ac_try") 2>&5
28075   ac_status=$?
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); }; }; then
28078   ac_cv_lib_pthread_pthread_mutex_init=yes
28079 else
28080   echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28082
28083         ac_cv_lib_pthread_pthread_mutex_init=no
28084 fi
28085
28086 rm -f core conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28089 fi
28090 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28091 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28092 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28093   cat >>confdefs.h <<_ACEOF
28094 #define HAVE_LIBPTHREAD 1
28095 _ACEOF
28096
28097   LIBS="-lpthread $LIBS"
28098
28099 fi
28100
28101   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28102 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28103 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28104   echo $ECHO_N "(cached) $ECHO_C" >&6
28105 else
28106   ac_func_search_save_LIBS=$LIBS
28107 cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113
28114 /* Override any GCC internal prototype to avoid an error.
28115    Use char because int might match the return type of a GCC
28116    builtin and then its argument prototype would still apply.  */
28117 #ifdef __cplusplus
28118 extern "C"
28119 #endif
28120 char pthread_mutex_lock ();
28121 int
28122 main ()
28123 {
28124 return pthread_mutex_lock ();
28125   ;
28126   return 0;
28127 }
28128 _ACEOF
28129 for ac_lib in '' pthread; do
28130   if test -z "$ac_lib"; then
28131     ac_res="none required"
28132   else
28133     ac_res=-l$ac_lib
28134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28135   fi
28136   rm -f conftest.$ac_objext conftest$ac_exeext
28137 if { (ac_try="$ac_link"
28138 case "(($ac_try" in
28139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140   *) ac_try_echo=$ac_try;;
28141 esac
28142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143   (eval "$ac_link") 2>conftest.er1
28144   ac_status=$?
28145   grep -v '^ *+' conftest.er1 >conftest.err
28146   rm -f conftest.er1
28147   cat conftest.err >&5
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); } &&
28150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28151   { (case "(($ac_try" in
28152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153   *) ac_try_echo=$ac_try;;
28154 esac
28155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28156   (eval "$ac_try") 2>&5
28157   ac_status=$?
28158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159   (exit $ac_status); }; } &&
28160          { ac_try='test -s conftest$ac_exeext'
28161   { (case "(($ac_try" in
28162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163   *) ac_try_echo=$ac_try;;
28164 esac
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166   (eval "$ac_try") 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; }; then
28170   ac_cv_search_pthread_mutex_lock=$ac_res
28171 else
28172   echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28174
28175
28176 fi
28177
28178 rm -f core conftest.err conftest.$ac_objext \
28179       conftest$ac_exeext
28180   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28181   break
28182 fi
28183 done
28184 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28185   :
28186 else
28187   ac_cv_search_pthread_mutex_lock=no
28188 fi
28189 rm conftest.$ac_ext
28190 LIBS=$ac_func_search_save_LIBS
28191 fi
28192 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28193 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28194 ac_res=$ac_cv_search_pthread_mutex_lock
28195 if test "$ac_res" != no; then
28196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28197
28198 cat >>confdefs.h <<\_ACEOF
28199 #define HAVE_PTHREAD_MUTEX_LOCK 1
28200 _ACEOF
28201
28202 fi
28203
28204   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28205 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28206 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28207   echo $ECHO_N "(cached) $ECHO_C" >&6
28208 else
28209   ac_func_search_save_LIBS=$LIBS
28210 cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216
28217 /* Override any GCC internal prototype to avoid an error.
28218    Use char because int might match the return type of a GCC
28219    builtin and then its argument prototype would still apply.  */
28220 #ifdef __cplusplus
28221 extern "C"
28222 #endif
28223 char pthread_rwlock_init ();
28224 int
28225 main ()
28226 {
28227 return pthread_rwlock_init ();
28228   ;
28229   return 0;
28230 }
28231 _ACEOF
28232 for ac_lib in '' pthread; do
28233   if test -z "$ac_lib"; then
28234     ac_res="none required"
28235   else
28236     ac_res=-l$ac_lib
28237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28238   fi
28239   rm -f conftest.$ac_objext conftest$ac_exeext
28240 if { (ac_try="$ac_link"
28241 case "(($ac_try" in
28242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243   *) ac_try_echo=$ac_try;;
28244 esac
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246   (eval "$ac_link") 2>conftest.er1
28247   ac_status=$?
28248   grep -v '^ *+' conftest.er1 >conftest.err
28249   rm -f conftest.er1
28250   cat conftest.err >&5
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); } &&
28253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254   { (case "(($ac_try" in
28255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256   *) ac_try_echo=$ac_try;;
28257 esac
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259   (eval "$ac_try") 2>&5
28260   ac_status=$?
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); }; } &&
28263          { ac_try='test -s conftest$ac_exeext'
28264   { (case "(($ac_try" in
28265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266   *) ac_try_echo=$ac_try;;
28267 esac
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269   (eval "$ac_try") 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; }; then
28273   ac_cv_search_pthread_rwlock_init=$ac_res
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278
28279 fi
28280
28281 rm -f core conftest.err conftest.$ac_objext \
28282       conftest$ac_exeext
28283   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28284   break
28285 fi
28286 done
28287 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28288   :
28289 else
28290   ac_cv_search_pthread_rwlock_init=no
28291 fi
28292 rm conftest.$ac_ext
28293 LIBS=$ac_func_search_save_LIBS
28294 fi
28295 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28296 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28297 ac_res=$ac_cv_search_pthread_rwlock_init
28298 if test "$ac_res" != no; then
28299   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28300
28301 cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_PTHREAD_RWLOCK_INIT 1
28303 _ACEOF
28304
28305 fi
28306
28307   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28308 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28309 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28310   echo $ECHO_N "(cached) $ECHO_C" >&6
28311 else
28312   ac_func_search_save_LIBS=$LIBS
28313 cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319
28320 /* Override any GCC internal prototype to avoid an error.
28321    Use char because int might match the return type of a GCC
28322    builtin and then its argument prototype would still apply.  */
28323 #ifdef __cplusplus
28324 extern "C"
28325 #endif
28326 char pthread_getspecific ();
28327 int
28328 main ()
28329 {
28330 return pthread_getspecific ();
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 for ac_lib in '' pthread; do
28336   if test -z "$ac_lib"; then
28337     ac_res="none required"
28338   else
28339     ac_res=-l$ac_lib
28340     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28341   fi
28342   rm -f conftest.$ac_objext conftest$ac_exeext
28343 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28350   ac_status=$?
28351   grep -v '^ *+' conftest.er1 >conftest.err
28352   rm -f conftest.er1
28353   cat conftest.err >&5
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); } &&
28356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28357   { (case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362   (eval "$ac_try") 2>&5
28363   ac_status=$?
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); }; } &&
28366          { ac_try='test -s conftest$ac_exeext'
28367   { (case "(($ac_try" in
28368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369   *) ac_try_echo=$ac_try;;
28370 esac
28371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372   (eval "$ac_try") 2>&5
28373   ac_status=$?
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); }; }; then
28376   ac_cv_search_pthread_getspecific=$ac_res
28377 else
28378   echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28380
28381
28382 fi
28383
28384 rm -f core conftest.err conftest.$ac_objext \
28385       conftest$ac_exeext
28386   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28387   break
28388 fi
28389 done
28390 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28391   :
28392 else
28393   ac_cv_search_pthread_getspecific=no
28394 fi
28395 rm conftest.$ac_ext
28396 LIBS=$ac_func_search_save_LIBS
28397 fi
28398 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28399 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28400 ac_res=$ac_cv_search_pthread_getspecific
28401 if test "$ac_res" != no; then
28402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28403
28404 cat >>confdefs.h <<\_ACEOF
28405 #define HAVE_PTHREAD_GETSPECIFIC 1
28406 _ACEOF
28407
28408 fi
28409
28410 fi
28411
28412
28413 # Check whether --with-udis86 was given.
28414 if test "${with_udis86+set}" = set; then
28415   withval=$with_udis86;
28416       USE_UDIS86=1
28417
28418       case "$withval" in
28419         /usr/lib|yes) ;;
28420         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28421       esac
28422
28423 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28424 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28425 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28426   echo $ECHO_N "(cached) $ECHO_C" >&6
28427 else
28428   ac_check_lib_save_LIBS=$LIBS
28429 LIBS="-ludis86  $LIBS"
28430 cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436
28437 /* Override any GCC internal prototype to avoid an error.
28438    Use char because int might match the return type of a GCC
28439    builtin and then its argument prototype would still apply.  */
28440 #ifdef __cplusplus
28441 extern "C"
28442 #endif
28443 char ud_init ();
28444 int
28445 main ()
28446 {
28447 return ud_init ();
28448   ;
28449   return 0;
28450 }
28451 _ACEOF
28452 rm -f conftest.$ac_objext conftest$ac_exeext
28453 if { (ac_try="$ac_link"
28454 case "(($ac_try" in
28455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456   *) ac_try_echo=$ac_try;;
28457 esac
28458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459   (eval "$ac_link") 2>conftest.er1
28460   ac_status=$?
28461   grep -v '^ *+' conftest.er1 >conftest.err
28462   rm -f conftest.er1
28463   cat conftest.err >&5
28464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465   (exit $ac_status); } &&
28466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28467   { (case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_try") 2>&5
28473   ac_status=$?
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); }; } &&
28476          { ac_try='test -s conftest$ac_exeext'
28477   { (case "(($ac_try" in
28478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479   *) ac_try_echo=$ac_try;;
28480 esac
28481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482   (eval "$ac_try") 2>&5
28483   ac_status=$?
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); }; }; then
28486   ac_cv_lib_udis86_ud_init=yes
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491         ac_cv_lib_udis86_ud_init=no
28492 fi
28493
28494 rm -f core conftest.err conftest.$ac_objext \
28495       conftest$ac_exeext conftest.$ac_ext
28496 LIBS=$ac_check_lib_save_LIBS
28497 fi
28498 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28499 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28500 if test $ac_cv_lib_udis86_ud_init = yes; then
28501   cat >>confdefs.h <<_ACEOF
28502 #define HAVE_LIBUDIS86 1
28503 _ACEOF
28504
28505   LIBS="-ludis86 $LIBS"
28506
28507 else
28508
28509         echo "Error! You need to have libudis86 around."
28510         exit -1
28511
28512 fi
28513
28514
28515 else
28516   USE_UDIS86=0
28517
28518 fi
28519
28520
28521 cat >>confdefs.h <<_ACEOF
28522 #define USE_UDIS86 $USE_UDIS86
28523 _ACEOF
28524
28525
28526
28527
28528
28529
28530
28531
28532 ac_header_dirent=no
28533 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28534   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28535 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28536 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538   echo $ECHO_N "(cached) $ECHO_C" >&6
28539 else
28540   cat >conftest.$ac_ext <<_ACEOF
28541 /* confdefs.h.  */
28542 _ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h.  */
28546 #include <sys/types.h>
28547 #include <$ac_hdr>
28548
28549 int
28550 main ()
28551 {
28552 if ((DIR *) 0)
28553 return 0;
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565   (eval "$ac_compile") 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } &&
28572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28573   { (case "(($ac_try" in
28574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575   *) ac_try_echo=$ac_try;;
28576 esac
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578   (eval "$ac_try") 2>&5
28579   ac_status=$?
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); }; } &&
28582          { ac_try='test -s conftest.$ac_objext'
28583   { (case "(($ac_try" in
28584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585   *) ac_try_echo=$ac_try;;
28586 esac
28587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588   (eval "$ac_try") 2>&5
28589   ac_status=$?
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); }; }; then
28592   eval "$as_ac_Header=yes"
28593 else
28594   echo "$as_me: failed program was:" >&5
28595 sed 's/^/| /' conftest.$ac_ext >&5
28596
28597         eval "$as_ac_Header=no"
28598 fi
28599
28600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28601 fi
28602 ac_res=`eval echo '${'$as_ac_Header'}'`
28603                { echo "$as_me:$LINENO: result: $ac_res" >&5
28604 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606   cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28608 _ACEOF
28609
28610 ac_header_dirent=$ac_hdr; break
28611 fi
28612
28613 done
28614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28615 if test $ac_header_dirent = dirent.h; then
28616   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28618 if test "${ac_cv_search_opendir+set}" = set; then
28619   echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621   ac_func_search_save_LIBS=$LIBS
28622 cat >conftest.$ac_ext <<_ACEOF
28623 /* confdefs.h.  */
28624 _ACEOF
28625 cat confdefs.h >>conftest.$ac_ext
28626 cat >>conftest.$ac_ext <<_ACEOF
28627 /* end confdefs.h.  */
28628
28629 /* Override any GCC internal prototype to avoid an error.
28630    Use char because int might match the return type of a GCC
28631    builtin and then its argument prototype would still apply.  */
28632 #ifdef __cplusplus
28633 extern "C"
28634 #endif
28635 char opendir ();
28636 int
28637 main ()
28638 {
28639 return opendir ();
28640   ;
28641   return 0;
28642 }
28643 _ACEOF
28644 for ac_lib in '' dir; do
28645   if test -z "$ac_lib"; then
28646     ac_res="none required"
28647   else
28648     ac_res=-l$ac_lib
28649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28650   fi
28651   rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (ac_try="$ac_link"
28653 case "(($ac_try" in
28654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655   *) ac_try_echo=$ac_try;;
28656 esac
28657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28658   (eval "$ac_link") 2>conftest.er1
28659   ac_status=$?
28660   grep -v '^ *+' conftest.er1 >conftest.err
28661   rm -f conftest.er1
28662   cat conftest.err >&5
28663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664   (exit $ac_status); } &&
28665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28666   { (case "(($ac_try" in
28667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668   *) ac_try_echo=$ac_try;;
28669 esac
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671   (eval "$ac_try") 2>&5
28672   ac_status=$?
28673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674   (exit $ac_status); }; } &&
28675          { ac_try='test -s conftest$ac_exeext'
28676   { (case "(($ac_try" in
28677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678   *) ac_try_echo=$ac_try;;
28679 esac
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681   (eval "$ac_try") 2>&5
28682   ac_status=$?
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); }; }; then
28685   ac_cv_search_opendir=$ac_res
28686 else
28687   echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28689
28690
28691 fi
28692
28693 rm -f core conftest.err conftest.$ac_objext \
28694       conftest$ac_exeext
28695   if test "${ac_cv_search_opendir+set}" = set; then
28696   break
28697 fi
28698 done
28699 if test "${ac_cv_search_opendir+set}" = set; then
28700   :
28701 else
28702   ac_cv_search_opendir=no
28703 fi
28704 rm conftest.$ac_ext
28705 LIBS=$ac_func_search_save_LIBS
28706 fi
28707 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28708 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28709 ac_res=$ac_cv_search_opendir
28710 if test "$ac_res" != no; then
28711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28712
28713 fi
28714
28715 else
28716   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28717 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28718 if test "${ac_cv_search_opendir+set}" = set; then
28719   echo $ECHO_N "(cached) $ECHO_C" >&6
28720 else
28721   ac_func_search_save_LIBS=$LIBS
28722 cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h.  */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h.  */
28728
28729 /* Override any GCC internal prototype to avoid an error.
28730    Use char because int might match the return type of a GCC
28731    builtin and then its argument prototype would still apply.  */
28732 #ifdef __cplusplus
28733 extern "C"
28734 #endif
28735 char opendir ();
28736 int
28737 main ()
28738 {
28739 return opendir ();
28740   ;
28741   return 0;
28742 }
28743 _ACEOF
28744 for ac_lib in '' x; do
28745   if test -z "$ac_lib"; then
28746     ac_res="none required"
28747   else
28748     ac_res=-l$ac_lib
28749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28750   fi
28751   rm -f conftest.$ac_objext conftest$ac_exeext
28752 if { (ac_try="$ac_link"
28753 case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758   (eval "$ac_link") 2>conftest.er1
28759   ac_status=$?
28760   grep -v '^ *+' conftest.er1 >conftest.err
28761   rm -f conftest.er1
28762   cat conftest.err >&5
28763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764   (exit $ac_status); } &&
28765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766   { (case "(($ac_try" in
28767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768   *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771   (eval "$ac_try") 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; } &&
28775          { ac_try='test -s conftest$ac_exeext'
28776   { (case "(($ac_try" in
28777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778   *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781   (eval "$ac_try") 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; }; then
28785   ac_cv_search_opendir=$ac_res
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext \
28794       conftest$ac_exeext
28795   if test "${ac_cv_search_opendir+set}" = set; then
28796   break
28797 fi
28798 done
28799 if test "${ac_cv_search_opendir+set}" = set; then
28800   :
28801 else
28802   ac_cv_search_opendir=no
28803 fi
28804 rm conftest.$ac_ext
28805 LIBS=$ac_func_search_save_LIBS
28806 fi
28807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28809 ac_res=$ac_cv_search_opendir
28810 if test "$ac_res" != no; then
28811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28812
28813 fi
28814
28815 fi
28816
28817 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28818 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28819 if test "${ac_cv_header_mmap_anon+set}" = set; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822    ac_ext=c
28823 ac_cpp='$CPP $CPPFLAGS'
28824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28827
28828   cat >conftest.$ac_ext <<_ACEOF
28829 /* confdefs.h.  */
28830 _ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h.  */
28834 #include <sys/mman.h>
28835 #include <unistd.h>
28836 #include <fcntl.h>
28837 int
28838 main ()
28839 {
28840 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext
28846 if { (ac_try="$ac_compile"
28847 case "(($ac_try" in
28848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849   *) ac_try_echo=$ac_try;;
28850 esac
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852   (eval "$ac_compile") 2>conftest.er1
28853   ac_status=$?
28854   grep -v '^ *+' conftest.er1 >conftest.err
28855   rm -f conftest.er1
28856   cat conftest.err >&5
28857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858   (exit $ac_status); } &&
28859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28860   { (case "(($ac_try" in
28861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862   *) ac_try_echo=$ac_try;;
28863 esac
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865   (eval "$ac_try") 2>&5
28866   ac_status=$?
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); }; } &&
28869          { ac_try='test -s conftest.$ac_objext'
28870   { (case "(($ac_try" in
28871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872   *) ac_try_echo=$ac_try;;
28873 esac
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875   (eval "$ac_try") 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; }; then
28879   ac_cv_header_mmap_anon=yes
28880 else
28881   echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28883
28884         ac_cv_header_mmap_anon=no
28885 fi
28886
28887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28888   ac_ext=c
28889 ac_cpp='$CPP $CPPFLAGS'
28890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28893
28894
28895 fi
28896 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28897 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28898 if test "$ac_cv_header_mmap_anon" = yes; then
28899
28900 cat >>confdefs.h <<\_ACEOF
28901 #define HAVE_MMAP_ANONYMOUS 1
28902 _ACEOF
28903
28904 fi
28905
28906 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28907 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28908 if test "${ac_cv_header_stat_broken+set}" = set; then
28909   echo $ECHO_N "(cached) $ECHO_C" >&6
28910 else
28911   cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917 #include <sys/types.h>
28918 #include <sys/stat.h>
28919
28920 #if defined S_ISBLK && defined S_IFDIR
28921 # if S_ISBLK (S_IFDIR)
28922 You lose.
28923 # endif
28924 #endif
28925
28926 #if defined S_ISBLK && defined S_IFCHR
28927 # if S_ISBLK (S_IFCHR)
28928 You lose.
28929 # endif
28930 #endif
28931
28932 #if defined S_ISLNK && defined S_IFREG
28933 # if S_ISLNK (S_IFREG)
28934 You lose.
28935 # endif
28936 #endif
28937
28938 #if defined S_ISSOCK && defined S_IFREG
28939 # if S_ISSOCK (S_IFREG)
28940 You lose.
28941 # endif
28942 #endif
28943
28944 _ACEOF
28945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28946   $EGREP "You lose" >/dev/null 2>&1; then
28947   ac_cv_header_stat_broken=yes
28948 else
28949   ac_cv_header_stat_broken=no
28950 fi
28951 rm -f conftest*
28952
28953 fi
28954 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28955 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28956 if test $ac_cv_header_stat_broken = yes; then
28957
28958 cat >>confdefs.h <<\_ACEOF
28959 #define STAT_MACROS_BROKEN 1
28960 _ACEOF
28961
28962 fi
28963
28964 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28966 if test "${ac_cv_header_stdc+set}" = set; then
28967   echo $ECHO_N "(cached) $ECHO_C" >&6
28968 else
28969   cat >conftest.$ac_ext <<_ACEOF
28970 /* confdefs.h.  */
28971 _ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h.  */
28975 #include <stdlib.h>
28976 #include <stdarg.h>
28977 #include <string.h>
28978 #include <float.h>
28979
28980 int
28981 main ()
28982 {
28983
28984   ;
28985   return 0;
28986 }
28987 _ACEOF
28988 rm -f conftest.$ac_objext
28989 if { (ac_try="$ac_compile"
28990 case "(($ac_try" in
28991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992   *) ac_try_echo=$ac_try;;
28993 esac
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995   (eval "$ac_compile") 2>conftest.er1
28996   ac_status=$?
28997   grep -v '^ *+' conftest.er1 >conftest.err
28998   rm -f conftest.er1
28999   cat conftest.err >&5
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } &&
29002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29003   { (case "(($ac_try" in
29004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005   *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008   (eval "$ac_try") 2>&5
29009   ac_status=$?
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); }; } &&
29012          { ac_try='test -s conftest.$ac_objext'
29013   { (case "(($ac_try" in
29014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015   *) ac_try_echo=$ac_try;;
29016 esac
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018   (eval "$ac_try") 2>&5
29019   ac_status=$?
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); }; }; then
29022   ac_cv_header_stdc=yes
29023 else
29024   echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29026
29027         ac_cv_header_stdc=no
29028 fi
29029
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031
29032 if test $ac_cv_header_stdc = yes; then
29033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29034   cat >conftest.$ac_ext <<_ACEOF
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040 #include <string.h>
29041
29042 _ACEOF
29043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29044   $EGREP "memchr" >/dev/null 2>&1; then
29045   :
29046 else
29047   ac_cv_header_stdc=no
29048 fi
29049 rm -f conftest*
29050
29051 fi
29052
29053 if test $ac_cv_header_stdc = yes; then
29054   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29055   cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h.  */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h.  */
29061 #include <stdlib.h>
29062
29063 _ACEOF
29064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29065   $EGREP "free" >/dev/null 2>&1; then
29066   :
29067 else
29068   ac_cv_header_stdc=no
29069 fi
29070 rm -f conftest*
29071
29072 fi
29073
29074 if test $ac_cv_header_stdc = yes; then
29075   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29076   if test "$cross_compiling" = yes; then
29077   :
29078 else
29079   cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085 #include <ctype.h>
29086 #include <stdlib.h>
29087 #if ((' ' & 0x0FF) == 0x020)
29088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29090 #else
29091 # define ISLOWER(c) \
29092                    (('a' <= (c) && (c) <= 'i') \
29093                      || ('j' <= (c) && (c) <= 'r') \
29094                      || ('s' <= (c) && (c) <= 'z'))
29095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29096 #endif
29097
29098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29099 int
29100 main ()
29101 {
29102   int i;
29103   for (i = 0; i < 256; i++)
29104     if (XOR (islower (i), ISLOWER (i))
29105         || toupper (i) != TOUPPER (i))
29106       return 2;
29107   return 0;
29108 }
29109 _ACEOF
29110 rm -f conftest$ac_exeext
29111 if { (ac_try="$ac_link"
29112 case "(($ac_try" in
29113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114   *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117   (eval "$ac_link") 2>&5
29118   ac_status=$?
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29121   { (case "(($ac_try" in
29122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123   *) ac_try_echo=$ac_try;;
29124 esac
29125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126   (eval "$ac_try") 2>&5
29127   ac_status=$?
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); }; }; then
29130   :
29131 else
29132   echo "$as_me: program exited with status $ac_status" >&5
29133 echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29135
29136 ( exit $ac_status )
29137 ac_cv_header_stdc=no
29138 fi
29139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29140 fi
29141
29142
29143 fi
29144 fi
29145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29147 if test $ac_cv_header_stdc = yes; then
29148
29149 cat >>confdefs.h <<\_ACEOF
29150 #define STDC_HEADERS 1
29151 _ACEOF
29152
29153 fi
29154
29155 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29156 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29157 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 else
29160   cat >conftest.$ac_ext <<_ACEOF
29161 /* confdefs.h.  */
29162 _ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h.  */
29166 #include <sys/types.h>
29167 #include <sys/wait.h>
29168 #ifndef WEXITSTATUS
29169 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29170 #endif
29171 #ifndef WIFEXITED
29172 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29173 #endif
29174
29175 int
29176 main ()
29177 {
29178   int s;
29179   wait (&s);
29180   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29181   ;
29182   return 0;
29183 }
29184 _ACEOF
29185 rm -f conftest.$ac_objext
29186 if { (ac_try="$ac_compile"
29187 case "(($ac_try" in
29188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189   *) ac_try_echo=$ac_try;;
29190 esac
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192   (eval "$ac_compile") 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } &&
29199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29200   { (case "(($ac_try" in
29201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202   *) ac_try_echo=$ac_try;;
29203 esac
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205   (eval "$ac_try") 2>&5
29206   ac_status=$?
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); }; } &&
29209          { ac_try='test -s conftest.$ac_objext'
29210   { (case "(($ac_try" in
29211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212   *) ac_try_echo=$ac_try;;
29213 esac
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215   (eval "$ac_try") 2>&5
29216   ac_status=$?
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); }; }; then
29219   ac_cv_header_sys_wait_h=yes
29220 else
29221   echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29223
29224         ac_cv_header_sys_wait_h=no
29225 fi
29226
29227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29228 fi
29229 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29230 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29231 if test $ac_cv_header_sys_wait_h = yes; then
29232
29233 cat >>confdefs.h <<\_ACEOF
29234 #define HAVE_SYS_WAIT_H 1
29235 _ACEOF
29236
29237 fi
29238
29239 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29240 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29241 if test "${ac_cv_header_time+set}" = set; then
29242   echo $ECHO_N "(cached) $ECHO_C" >&6
29243 else
29244   cat >conftest.$ac_ext <<_ACEOF
29245 /* confdefs.h.  */
29246 _ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h.  */
29250 #include <sys/types.h>
29251 #include <sys/time.h>
29252 #include <time.h>
29253
29254 int
29255 main ()
29256 {
29257 if ((struct tm *) 0)
29258 return 0;
29259   ;
29260   return 0;
29261 }
29262 _ACEOF
29263 rm -f conftest.$ac_objext
29264 if { (ac_try="$ac_compile"
29265 case "(($ac_try" in
29266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267   *) ac_try_echo=$ac_try;;
29268 esac
29269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270   (eval "$ac_compile") 2>conftest.er1
29271   ac_status=$?
29272   grep -v '^ *+' conftest.er1 >conftest.err
29273   rm -f conftest.er1
29274   cat conftest.err >&5
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); } &&
29277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29278   { (case "(($ac_try" in
29279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280   *) ac_try_echo=$ac_try;;
29281 esac
29282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283   (eval "$ac_try") 2>&5
29284   ac_status=$?
29285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286   (exit $ac_status); }; } &&
29287          { ac_try='test -s conftest.$ac_objext'
29288   { (case "(($ac_try" in
29289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290   *) ac_try_echo=$ac_try;;
29291 esac
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293   (eval "$ac_try") 2>&5
29294   ac_status=$?
29295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296   (exit $ac_status); }; }; then
29297   ac_cv_header_time=yes
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302         ac_cv_header_time=no
29303 fi
29304
29305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29306 fi
29307 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29308 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29309 if test $ac_cv_header_time = yes; then
29310
29311 cat >>confdefs.h <<\_ACEOF
29312 #define TIME_WITH_SYS_TIME 1
29313 _ACEOF
29314
29315 fi
29316
29317
29318
29319
29320
29321
29322
29323
29324 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29325 do
29326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29331   echo $ECHO_N "(cached) $ECHO_C" >&6
29332 fi
29333 ac_res=`eval echo '${'$as_ac_Header'}'`
29334                { echo "$as_me:$LINENO: result: $ac_res" >&5
29335 echo "${ECHO_T}$ac_res" >&6; }
29336 else
29337   # Is the header compilable?
29338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29340 cat >conftest.$ac_ext <<_ACEOF
29341 /* confdefs.h.  */
29342 _ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h.  */
29346 $ac_includes_default
29347 #include <$ac_header>
29348 _ACEOF
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_compile") 2>conftest.er1
29357   ac_status=$?
29358   grep -v '^ *+' conftest.er1 >conftest.err
29359   rm -f conftest.er1
29360   cat conftest.err >&5
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); } &&
29363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29364   { (case "(($ac_try" in
29365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366   *) ac_try_echo=$ac_try;;
29367 esac
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369   (eval "$ac_try") 2>&5
29370   ac_status=$?
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); }; } &&
29373          { ac_try='test -s conftest.$ac_objext'
29374   { (case "(($ac_try" in
29375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376   *) ac_try_echo=$ac_try;;
29377 esac
29378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379   (eval "$ac_try") 2>&5
29380   ac_status=$?
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); }; }; then
29383   ac_header_compiler=yes
29384 else
29385   echo "$as_me: failed program was:" >&5
29386 sed 's/^/| /' conftest.$ac_ext >&5
29387
29388         ac_header_compiler=no
29389 fi
29390
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29393 echo "${ECHO_T}$ac_header_compiler" >&6; }
29394
29395 # Is the header present?
29396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29398 cat >conftest.$ac_ext <<_ACEOF
29399 /* confdefs.h.  */
29400 _ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h.  */
29404 #include <$ac_header>
29405 _ACEOF
29406 if { (ac_try="$ac_cpp conftest.$ac_ext"
29407 case "(($ac_try" in
29408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409   *) ac_try_echo=$ac_try;;
29410 esac
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29413   ac_status=$?
29414   grep -v '^ *+' conftest.er1 >conftest.err
29415   rm -f conftest.er1
29416   cat conftest.err >&5
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); } >/dev/null; then
29419   if test -s conftest.err; then
29420     ac_cpp_err=$ac_c_preproc_warn_flag
29421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29422   else
29423     ac_cpp_err=
29424   fi
29425 else
29426   ac_cpp_err=yes
29427 fi
29428 if test -z "$ac_cpp_err"; then
29429   ac_header_preproc=yes
29430 else
29431   echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29433
29434   ac_header_preproc=no
29435 fi
29436
29437 rm -f conftest.err conftest.$ac_ext
29438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29439 echo "${ECHO_T}$ac_header_preproc" >&6; }
29440
29441 # So?  What about this header?
29442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29443   yes:no: )
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29448     ac_header_preproc=yes
29449     ;;
29450   no:yes:* )
29451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29463     ( cat <<\_ASBOX
29464 ## ----------------------------------- ##
29465 ## Report this to llvmbugs@cs.uiuc.edu ##
29466 ## ----------------------------------- ##
29467 _ASBOX
29468      ) | sed "s/^/$as_me: WARNING:     /" >&2
29469     ;;
29470 esac
29471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29474   echo $ECHO_N "(cached) $ECHO_C" >&6
29475 else
29476   eval "$as_ac_Header=\$ac_header_preproc"
29477 fi
29478 ac_res=`eval echo '${'$as_ac_Header'}'`
29479                { echo "$as_me:$LINENO: result: $ac_res" >&5
29480 echo "${ECHO_T}$ac_res" >&6; }
29481
29482 fi
29483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484   cat >>confdefs.h <<_ACEOF
29485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29486 _ACEOF
29487
29488 fi
29489
29490 done
29491
29492
29493
29494
29495
29496
29497
29498 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29499 do
29500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29502   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29505   echo $ECHO_N "(cached) $ECHO_C" >&6
29506 fi
29507 ac_res=`eval echo '${'$as_ac_Header'}'`
29508                { echo "$as_me:$LINENO: result: $ac_res" >&5
29509 echo "${ECHO_T}$ac_res" >&6; }
29510 else
29511   # Is the header compilable?
29512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29514 cat >conftest.$ac_ext <<_ACEOF
29515 /* confdefs.h.  */
29516 _ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h.  */
29520 $ac_includes_default
29521 #include <$ac_header>
29522 _ACEOF
29523 rm -f conftest.$ac_objext
29524 if { (ac_try="$ac_compile"
29525 case "(($ac_try" in
29526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527   *) ac_try_echo=$ac_try;;
29528 esac
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530   (eval "$ac_compile") 2>conftest.er1
29531   ac_status=$?
29532   grep -v '^ *+' conftest.er1 >conftest.err
29533   rm -f conftest.er1
29534   cat conftest.err >&5
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); } &&
29537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29538   { (case "(($ac_try" in
29539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540   *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543   (eval "$ac_try") 2>&5
29544   ac_status=$?
29545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546   (exit $ac_status); }; } &&
29547          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29554   ac_status=$?
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); }; }; then
29557   ac_header_compiler=yes
29558 else
29559   echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562         ac_header_compiler=no
29563 fi
29564
29565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29567 echo "${ECHO_T}$ac_header_compiler" >&6; }
29568
29569 # Is the header present?
29570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29572 cat >conftest.$ac_ext <<_ACEOF
29573 /* confdefs.h.  */
29574 _ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h.  */
29578 #include <$ac_header>
29579 _ACEOF
29580 if { (ac_try="$ac_cpp conftest.$ac_ext"
29581 case "(($ac_try" in
29582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583   *) ac_try_echo=$ac_try;;
29584 esac
29585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29587   ac_status=$?
29588   grep -v '^ *+' conftest.er1 >conftest.err
29589   rm -f conftest.er1
29590   cat conftest.err >&5
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); } >/dev/null; then
29593   if test -s conftest.err; then
29594     ac_cpp_err=$ac_c_preproc_warn_flag
29595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29596   else
29597     ac_cpp_err=
29598   fi
29599 else
29600   ac_cpp_err=yes
29601 fi
29602 if test -z "$ac_cpp_err"; then
29603   ac_header_preproc=yes
29604 else
29605   echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29607
29608   ac_header_preproc=no
29609 fi
29610
29611 rm -f conftest.err conftest.$ac_ext
29612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29613 echo "${ECHO_T}$ac_header_preproc" >&6; }
29614
29615 # So?  What about this header?
29616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29617   yes:no: )
29618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29622     ac_header_preproc=yes
29623     ;;
29624   no:yes:* )
29625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29627     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29628 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29629     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29631     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29632 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29635     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29637     ( cat <<\_ASBOX
29638 ## ----------------------------------- ##
29639 ## Report this to llvmbugs@cs.uiuc.edu ##
29640 ## ----------------------------------- ##
29641 _ASBOX
29642      ) | sed "s/^/$as_me: WARNING:     /" >&2
29643     ;;
29644 esac
29645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650   eval "$as_ac_Header=\$ac_header_preproc"
29651 fi
29652 ac_res=`eval echo '${'$as_ac_Header'}'`
29653                { echo "$as_me:$LINENO: result: $ac_res" >&5
29654 echo "${ECHO_T}$ac_res" >&6; }
29655
29656 fi
29657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29658   cat >>confdefs.h <<_ACEOF
29659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29660 _ACEOF
29661
29662 fi
29663
29664 done
29665
29666
29667
29668 for ac_header in utime.h windows.h
29669 do
29670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29675   echo $ECHO_N "(cached) $ECHO_C" >&6
29676 fi
29677 ac_res=`eval echo '${'$as_ac_Header'}'`
29678                { echo "$as_me:$LINENO: result: $ac_res" >&5
29679 echo "${ECHO_T}$ac_res" >&6; }
29680 else
29681   # Is the header compilable?
29682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29684 cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h.  */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h.  */
29690 $ac_includes_default
29691 #include <$ac_header>
29692 _ACEOF
29693 rm -f conftest.$ac_objext
29694 if { (ac_try="$ac_compile"
29695 case "(($ac_try" in
29696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697   *) ac_try_echo=$ac_try;;
29698 esac
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700   (eval "$ac_compile") 2>conftest.er1
29701   ac_status=$?
29702   grep -v '^ *+' conftest.er1 >conftest.err
29703   rm -f conftest.er1
29704   cat conftest.err >&5
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); } &&
29707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29708   { (case "(($ac_try" in
29709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29710   *) ac_try_echo=$ac_try;;
29711 esac
29712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29713   (eval "$ac_try") 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; } &&
29717          { ac_try='test -s conftest.$ac_objext'
29718   { (case "(($ac_try" in
29719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720   *) ac_try_echo=$ac_try;;
29721 esac
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723   (eval "$ac_try") 2>&5
29724   ac_status=$?
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); }; }; then
29727   ac_header_compiler=yes
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_header_compiler=no
29733 fi
29734
29735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29737 echo "${ECHO_T}$ac_header_compiler" >&6; }
29738
29739 # Is the header present?
29740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29742 cat >conftest.$ac_ext <<_ACEOF
29743 /* confdefs.h.  */
29744 _ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h.  */
29748 #include <$ac_header>
29749 _ACEOF
29750 if { (ac_try="$ac_cpp conftest.$ac_ext"
29751 case "(($ac_try" in
29752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753   *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29757   ac_status=$?
29758   grep -v '^ *+' conftest.er1 >conftest.err
29759   rm -f conftest.er1
29760   cat conftest.err >&5
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); } >/dev/null; then
29763   if test -s conftest.err; then
29764     ac_cpp_err=$ac_c_preproc_warn_flag
29765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29766   else
29767     ac_cpp_err=
29768   fi
29769 else
29770   ac_cpp_err=yes
29771 fi
29772 if test -z "$ac_cpp_err"; then
29773   ac_header_preproc=yes
29774 else
29775   echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29777
29778   ac_header_preproc=no
29779 fi
29780
29781 rm -f conftest.err conftest.$ac_ext
29782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29783 echo "${ECHO_T}$ac_header_preproc" >&6; }
29784
29785 # So?  What about this header?
29786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29787   yes:no: )
29788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29792     ac_header_preproc=yes
29793     ;;
29794   no:yes:* )
29795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29807     ( cat <<\_ASBOX
29808 ## ----------------------------------- ##
29809 ## Report this to llvmbugs@cs.uiuc.edu ##
29810 ## ----------------------------------- ##
29811 _ASBOX
29812      ) | sed "s/^/$as_me: WARNING:     /" >&2
29813     ;;
29814 esac
29815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29818   echo $ECHO_N "(cached) $ECHO_C" >&6
29819 else
29820   eval "$as_ac_Header=\$ac_header_preproc"
29821 fi
29822 ac_res=`eval echo '${'$as_ac_Header'}'`
29823                { echo "$as_me:$LINENO: result: $ac_res" >&5
29824 echo "${ECHO_T}$ac_res" >&6; }
29825
29826 fi
29827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29828   cat >>confdefs.h <<_ACEOF
29829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29830 _ACEOF
29831
29832 fi
29833
29834 done
29835
29836
29837
29838
29839
29840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29841 do
29842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29844   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29847   echo $ECHO_N "(cached) $ECHO_C" >&6
29848 fi
29849 ac_res=`eval echo '${'$as_ac_Header'}'`
29850                { echo "$as_me:$LINENO: result: $ac_res" >&5
29851 echo "${ECHO_T}$ac_res" >&6; }
29852 else
29853   # Is the header compilable?
29854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29856 cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862 $ac_includes_default
29863 #include <$ac_header>
29864 _ACEOF
29865 rm -f conftest.$ac_objext
29866 if { (ac_try="$ac_compile"
29867 case "(($ac_try" in
29868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869   *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872   (eval "$ac_compile") 2>conftest.er1
29873   ac_status=$?
29874   grep -v '^ *+' conftest.er1 >conftest.err
29875   rm -f conftest.er1
29876   cat conftest.err >&5
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); } &&
29879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29880   { (case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_try") 2>&5
29886   ac_status=$?
29887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888   (exit $ac_status); }; } &&
29889          { ac_try='test -s conftest.$ac_objext'
29890   { (case "(($ac_try" in
29891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892   *) ac_try_echo=$ac_try;;
29893 esac
29894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895   (eval "$ac_try") 2>&5
29896   ac_status=$?
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); }; }; then
29899   ac_header_compiler=yes
29900 else
29901   echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904         ac_header_compiler=no
29905 fi
29906
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29909 echo "${ECHO_T}$ac_header_compiler" >&6; }
29910
29911 # Is the header present?
29912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29914 cat >conftest.$ac_ext <<_ACEOF
29915 /* confdefs.h.  */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h.  */
29920 #include <$ac_header>
29921 _ACEOF
29922 if { (ac_try="$ac_cpp conftest.$ac_ext"
29923 case "(($ac_try" in
29924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925   *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29929   ac_status=$?
29930   grep -v '^ *+' conftest.er1 >conftest.err
29931   rm -f conftest.er1
29932   cat conftest.err >&5
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); } >/dev/null; then
29935   if test -s conftest.err; then
29936     ac_cpp_err=$ac_c_preproc_warn_flag
29937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29938   else
29939     ac_cpp_err=
29940   fi
29941 else
29942   ac_cpp_err=yes
29943 fi
29944 if test -z "$ac_cpp_err"; then
29945   ac_header_preproc=yes
29946 else
29947   echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29949
29950   ac_header_preproc=no
29951 fi
29952
29953 rm -f conftest.err conftest.$ac_ext
29954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29955 echo "${ECHO_T}$ac_header_preproc" >&6; }
29956
29957 # So?  What about this header?
29958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29959   yes:no: )
29960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29964     ac_header_preproc=yes
29965     ;;
29966   no:yes:* )
29967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29979     ( cat <<\_ASBOX
29980 ## ----------------------------------- ##
29981 ## Report this to llvmbugs@cs.uiuc.edu ##
29982 ## ----------------------------------- ##
29983 _ASBOX
29984      ) | sed "s/^/$as_me: WARNING:     /" >&2
29985     ;;
29986 esac
29987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29990   echo $ECHO_N "(cached) $ECHO_C" >&6
29991 else
29992   eval "$as_ac_Header=\$ac_header_preproc"
29993 fi
29994 ac_res=`eval echo '${'$as_ac_Header'}'`
29995                { echo "$as_me:$LINENO: result: $ac_res" >&5
29996 echo "${ECHO_T}$ac_res" >&6; }
29997
29998 fi
29999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30000   cat >>confdefs.h <<_ACEOF
30001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30002 _ACEOF
30003
30004 fi
30005
30006 done
30007
30008
30009
30010
30011
30012 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30013 do
30014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30016   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30019   echo $ECHO_N "(cached) $ECHO_C" >&6
30020 fi
30021 ac_res=`eval echo '${'$as_ac_Header'}'`
30022                { echo "$as_me:$LINENO: result: $ac_res" >&5
30023 echo "${ECHO_T}$ac_res" >&6; }
30024 else
30025   # Is the header compilable?
30026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034 $ac_includes_default
30035 #include <$ac_header>
30036 _ACEOF
30037 rm -f conftest.$ac_objext
30038 if { (ac_try="$ac_compile"
30039 case "(($ac_try" in
30040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041   *) ac_try_echo=$ac_try;;
30042 esac
30043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044   (eval "$ac_compile") 2>conftest.er1
30045   ac_status=$?
30046   grep -v '^ *+' conftest.er1 >conftest.err
30047   rm -f conftest.er1
30048   cat conftest.err >&5
30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050   (exit $ac_status); } &&
30051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30052   { (case "(($ac_try" in
30053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054   *) ac_try_echo=$ac_try;;
30055 esac
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057   (eval "$ac_try") 2>&5
30058   ac_status=$?
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); }; } &&
30061          { ac_try='test -s conftest.$ac_objext'
30062   { (case "(($ac_try" in
30063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064   *) ac_try_echo=$ac_try;;
30065 esac
30066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067   (eval "$ac_try") 2>&5
30068   ac_status=$?
30069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070   (exit $ac_status); }; }; then
30071   ac_header_compiler=yes
30072 else
30073   echo "$as_me: failed program was:" >&5
30074 sed 's/^/| /' conftest.$ac_ext >&5
30075
30076         ac_header_compiler=no
30077 fi
30078
30079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30081 echo "${ECHO_T}$ac_header_compiler" >&6; }
30082
30083 # Is the header present?
30084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30086 cat >conftest.$ac_ext <<_ACEOF
30087 /* confdefs.h.  */
30088 _ACEOF
30089 cat confdefs.h >>conftest.$ac_ext
30090 cat >>conftest.$ac_ext <<_ACEOF
30091 /* end confdefs.h.  */
30092 #include <$ac_header>
30093 _ACEOF
30094 if { (ac_try="$ac_cpp conftest.$ac_ext"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } >/dev/null; then
30107   if test -s conftest.err; then
30108     ac_cpp_err=$ac_c_preproc_warn_flag
30109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30110   else
30111     ac_cpp_err=
30112   fi
30113 else
30114   ac_cpp_err=yes
30115 fi
30116 if test -z "$ac_cpp_err"; then
30117   ac_header_preproc=yes
30118 else
30119   echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30121
30122   ac_header_preproc=no
30123 fi
30124
30125 rm -f conftest.err conftest.$ac_ext
30126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30127 echo "${ECHO_T}$ac_header_preproc" >&6; }
30128
30129 # So?  What about this header?
30130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30131   yes:no: )
30132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30136     ac_header_preproc=yes
30137     ;;
30138   no:yes:* )
30139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30151     ( cat <<\_ASBOX
30152 ## ----------------------------------- ##
30153 ## Report this to llvmbugs@cs.uiuc.edu ##
30154 ## ----------------------------------- ##
30155 _ASBOX
30156      ) | sed "s/^/$as_me: WARNING:     /" >&2
30157     ;;
30158 esac
30159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162   echo $ECHO_N "(cached) $ECHO_C" >&6
30163 else
30164   eval "$as_ac_Header=\$ac_header_preproc"
30165 fi
30166 ac_res=`eval echo '${'$as_ac_Header'}'`
30167                { echo "$as_me:$LINENO: result: $ac_res" >&5
30168 echo "${ECHO_T}$ac_res" >&6; }
30169
30170 fi
30171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30172   cat >>confdefs.h <<_ACEOF
30173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30174 _ACEOF
30175
30176 fi
30177
30178 done
30179
30180 if test "$ENABLE_THREADS" -eq 1 ; then
30181
30182 for ac_header in pthread.h
30183 do
30184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30186   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30189   echo $ECHO_N "(cached) $ECHO_C" >&6
30190 fi
30191 ac_res=`eval echo '${'$as_ac_Header'}'`
30192                { echo "$as_me:$LINENO: result: $ac_res" >&5
30193 echo "${ECHO_T}$ac_res" >&6; }
30194 else
30195   # Is the header compilable?
30196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30198 cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h.  */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h.  */
30204 $ac_includes_default
30205 #include <$ac_header>
30206 _ACEOF
30207 rm -f conftest.$ac_objext
30208 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30215   ac_status=$?
30216   grep -v '^ *+' conftest.er1 >conftest.err
30217   rm -f conftest.er1
30218   cat conftest.err >&5
30219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220   (exit $ac_status); } &&
30221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30222   { (case "(($ac_try" in
30223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224   *) ac_try_echo=$ac_try;;
30225 esac
30226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227   (eval "$ac_try") 2>&5
30228   ac_status=$?
30229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230   (exit $ac_status); }; } &&
30231          { ac_try='test -s conftest.$ac_objext'
30232   { (case "(($ac_try" in
30233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234   *) ac_try_echo=$ac_try;;
30235 esac
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237   (eval "$ac_try") 2>&5
30238   ac_status=$?
30239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240   (exit $ac_status); }; }; then
30241   ac_header_compiler=yes
30242 else
30243   echo "$as_me: failed program was:" >&5
30244 sed 's/^/| /' conftest.$ac_ext >&5
30245
30246         ac_header_compiler=no
30247 fi
30248
30249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30251 echo "${ECHO_T}$ac_header_compiler" >&6; }
30252
30253 # Is the header present?
30254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30256 cat >conftest.$ac_ext <<_ACEOF
30257 /* confdefs.h.  */
30258 _ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h.  */
30262 #include <$ac_header>
30263 _ACEOF
30264 if { (ac_try="$ac_cpp conftest.$ac_ext"
30265 case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30271   ac_status=$?
30272   grep -v '^ *+' conftest.er1 >conftest.err
30273   rm -f conftest.er1
30274   cat conftest.err >&5
30275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276   (exit $ac_status); } >/dev/null; then
30277   if test -s conftest.err; then
30278     ac_cpp_err=$ac_c_preproc_warn_flag
30279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30280   else
30281     ac_cpp_err=
30282   fi
30283 else
30284   ac_cpp_err=yes
30285 fi
30286 if test -z "$ac_cpp_err"; then
30287   ac_header_preproc=yes
30288 else
30289   echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30291
30292   ac_header_preproc=no
30293 fi
30294
30295 rm -f conftest.err conftest.$ac_ext
30296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30297 echo "${ECHO_T}$ac_header_preproc" >&6; }
30298
30299 # So?  What about this header?
30300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30301   yes:no: )
30302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30306     ac_header_preproc=yes
30307     ;;
30308   no:yes:* )
30309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30321     ( cat <<\_ASBOX
30322 ## ----------------------------------- ##
30323 ## Report this to llvmbugs@cs.uiuc.edu ##
30324 ## ----------------------------------- ##
30325 _ASBOX
30326      ) | sed "s/^/$as_me: WARNING:     /" >&2
30327     ;;
30328 esac
30329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332   echo $ECHO_N "(cached) $ECHO_C" >&6
30333 else
30334   eval "$as_ac_Header=\$ac_header_preproc"
30335 fi
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337                { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30339
30340 fi
30341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30342   cat >>confdefs.h <<_ACEOF
30343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30344 _ACEOF
30345  HAVE_PTHREAD=1
30346
30347 else
30348   HAVE_PTHREAD=0
30349
30350 fi
30351
30352 done
30353
30354 else
30355   HAVE_PTHREAD=0
30356
30357 fi
30358
30359 if test "$llvm_cv_enable_libffi" = "yes" ; then
30360
30361
30362 for ac_header in ffi.h ffi/ffi.h
30363 do
30364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30369   echo $ECHO_N "(cached) $ECHO_C" >&6
30370 fi
30371 ac_res=`eval echo '${'$as_ac_Header'}'`
30372                { echo "$as_me:$LINENO: result: $ac_res" >&5
30373 echo "${ECHO_T}$ac_res" >&6; }
30374 else
30375   # Is the header compilable?
30376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30378 cat >conftest.$ac_ext <<_ACEOF
30379 /* confdefs.h.  */
30380 _ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h.  */
30384 $ac_includes_default
30385 #include <$ac_header>
30386 _ACEOF
30387 rm -f conftest.$ac_objext
30388 if { (ac_try="$ac_compile"
30389 case "(($ac_try" in
30390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391   *) ac_try_echo=$ac_try;;
30392 esac
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394   (eval "$ac_compile") 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } &&
30401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30402   { (case "(($ac_try" in
30403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404   *) ac_try_echo=$ac_try;;
30405 esac
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407   (eval "$ac_try") 2>&5
30408   ac_status=$?
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); }; } &&
30411          { ac_try='test -s conftest.$ac_objext'
30412   { (case "(($ac_try" in
30413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414   *) ac_try_echo=$ac_try;;
30415 esac
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417   (eval "$ac_try") 2>&5
30418   ac_status=$?
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); }; }; then
30421   ac_header_compiler=yes
30422 else
30423   echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.$ac_ext >&5
30425
30426         ac_header_compiler=no
30427 fi
30428
30429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30431 echo "${ECHO_T}$ac_header_compiler" >&6; }
30432
30433 # Is the header present?
30434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30436 cat >conftest.$ac_ext <<_ACEOF
30437 /* confdefs.h.  */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h.  */
30442 #include <$ac_header>
30443 _ACEOF
30444 if { (ac_try="$ac_cpp conftest.$ac_ext"
30445 case "(($ac_try" in
30446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447   *) ac_try_echo=$ac_try;;
30448 esac
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30451   ac_status=$?
30452   grep -v '^ *+' conftest.er1 >conftest.err
30453   rm -f conftest.er1
30454   cat conftest.err >&5
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); } >/dev/null; then
30457   if test -s conftest.err; then
30458     ac_cpp_err=$ac_c_preproc_warn_flag
30459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30460   else
30461     ac_cpp_err=
30462   fi
30463 else
30464   ac_cpp_err=yes
30465 fi
30466 if test -z "$ac_cpp_err"; then
30467   ac_header_preproc=yes
30468 else
30469   echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472   ac_header_preproc=no
30473 fi
30474
30475 rm -f conftest.err conftest.$ac_ext
30476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30477 echo "${ECHO_T}$ac_header_preproc" >&6; }
30478
30479 # So?  What about this header?
30480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30481   yes:no: )
30482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30486     ac_header_preproc=yes
30487     ;;
30488   no:yes:* )
30489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30501     ( cat <<\_ASBOX
30502 ## ----------------------------------- ##
30503 ## Report this to llvmbugs@cs.uiuc.edu ##
30504 ## ----------------------------------- ##
30505 _ASBOX
30506      ) | sed "s/^/$as_me: WARNING:     /" >&2
30507     ;;
30508 esac
30509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30512   echo $ECHO_N "(cached) $ECHO_C" >&6
30513 else
30514   eval "$as_ac_Header=\$ac_header_preproc"
30515 fi
30516 ac_res=`eval echo '${'$as_ac_Header'}'`
30517                { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30519
30520 fi
30521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30522   cat >>confdefs.h <<_ACEOF
30523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30524 _ACEOF
30525
30526 fi
30527
30528 done
30529
30530 fi
30531
30532
30533
30534   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30535 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30536 if test "${ac_cv_huge_val_sanity+set}" = set; then
30537   echo $ECHO_N "(cached) $ECHO_C" >&6
30538 else
30539
30540     ac_ext=cpp
30541 ac_cpp='$CXXCPP $CPPFLAGS'
30542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30545
30546     CXXFLAGS=-pedantic
30547     if test "$cross_compiling" = yes; then
30548   ac_cv_huge_val_sanity=yes
30549 else
30550   cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556 #include <math.h>
30557 int
30558 main ()
30559 {
30560 double x = HUGE_VAL; return x != x;
30561   ;
30562   return 0;
30563 }
30564 _ACEOF
30565 rm -f conftest$ac_exeext
30566 if { (ac_try="$ac_link"
30567 case "(($ac_try" in
30568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569   *) ac_try_echo=$ac_try;;
30570 esac
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572   (eval "$ac_link") 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30576   { (case "(($ac_try" in
30577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578   *) ac_try_echo=$ac_try;;
30579 esac
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581   (eval "$ac_try") 2>&5
30582   ac_status=$?
30583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584   (exit $ac_status); }; }; then
30585   ac_cv_huge_val_sanity=yes
30586 else
30587   echo "$as_me: program exited with status $ac_status" >&5
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30590
30591 ( exit $ac_status )
30592 ac_cv_huge_val_sanity=no
30593 fi
30594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30595 fi
30596
30597
30598     ac_ext=c
30599 ac_cpp='$CPP $CPPFLAGS'
30600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30603
30604
30605 fi
30606 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30607 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30608   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30609
30610
30611 { echo "$as_me:$LINENO: checking for pid_t" >&5
30612 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30613 if test "${ac_cv_type_pid_t+set}" = set; then
30614   echo $ECHO_N "(cached) $ECHO_C" >&6
30615 else
30616   cat >conftest.$ac_ext <<_ACEOF
30617 /* confdefs.h.  */
30618 _ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h.  */
30622 $ac_includes_default
30623 typedef pid_t ac__type_new_;
30624 int
30625 main ()
30626 {
30627 if ((ac__type_new_ *) 0)
30628   return 0;
30629 if (sizeof (ac__type_new_))
30630   return 0;
30631   ;
30632   return 0;
30633 }
30634 _ACEOF
30635 rm -f conftest.$ac_objext
30636 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30643   ac_status=$?
30644   grep -v '^ *+' conftest.er1 >conftest.err
30645   rm -f conftest.er1
30646   cat conftest.err >&5
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); } &&
30649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30650   { (case "(($ac_try" in
30651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652   *) ac_try_echo=$ac_try;;
30653 esac
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655   (eval "$ac_try") 2>&5
30656   ac_status=$?
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); }; } &&
30659          { ac_try='test -s conftest.$ac_objext'
30660   { (case "(($ac_try" in
30661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662   *) ac_try_echo=$ac_try;;
30663 esac
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665   (eval "$ac_try") 2>&5
30666   ac_status=$?
30667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); }; }; then
30669   ac_cv_type_pid_t=yes
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674         ac_cv_type_pid_t=no
30675 fi
30676
30677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30678 fi
30679 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30680 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30681 if test $ac_cv_type_pid_t = yes; then
30682   :
30683 else
30684
30685 cat >>confdefs.h <<_ACEOF
30686 #define pid_t int
30687 _ACEOF
30688
30689 fi
30690
30691 { echo "$as_me:$LINENO: checking for size_t" >&5
30692 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30693 if test "${ac_cv_type_size_t+set}" = set; then
30694   echo $ECHO_N "(cached) $ECHO_C" >&6
30695 else
30696   cat >conftest.$ac_ext <<_ACEOF
30697 /* confdefs.h.  */
30698 _ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h.  */
30702 $ac_includes_default
30703 typedef size_t ac__type_new_;
30704 int
30705 main ()
30706 {
30707 if ((ac__type_new_ *) 0)
30708   return 0;
30709 if (sizeof (ac__type_new_))
30710   return 0;
30711   ;
30712   return 0;
30713 }
30714 _ACEOF
30715 rm -f conftest.$ac_objext
30716 if { (ac_try="$ac_compile"
30717 case "(($ac_try" in
30718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719   *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722   (eval "$ac_compile") 2>conftest.er1
30723   ac_status=$?
30724   grep -v '^ *+' conftest.er1 >conftest.err
30725   rm -f conftest.er1
30726   cat conftest.err >&5
30727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728   (exit $ac_status); } &&
30729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30730   { (case "(($ac_try" in
30731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732   *) ac_try_echo=$ac_try;;
30733 esac
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735   (eval "$ac_try") 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); }; } &&
30739          { ac_try='test -s conftest.$ac_objext'
30740   { (case "(($ac_try" in
30741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742   *) ac_try_echo=$ac_try;;
30743 esac
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745   (eval "$ac_try") 2>&5
30746   ac_status=$?
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); }; }; then
30749   ac_cv_type_size_t=yes
30750 else
30751   echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30753
30754         ac_cv_type_size_t=no
30755 fi
30756
30757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30758 fi
30759 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30760 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30761 if test $ac_cv_type_size_t = yes; then
30762   :
30763 else
30764
30765 cat >>confdefs.h <<_ACEOF
30766 #define size_t unsigned int
30767 _ACEOF
30768
30769 fi
30770
30771 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30772 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30773 if test "${ac_cv_type_signal+set}" = set; then
30774   echo $ECHO_N "(cached) $ECHO_C" >&6
30775 else
30776   cat >conftest.$ac_ext <<_ACEOF
30777 /* confdefs.h.  */
30778 _ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h.  */
30782 #include <sys/types.h>
30783 #include <signal.h>
30784
30785 int
30786 main ()
30787 {
30788 return *(signal (0, 0)) (0) == 1;
30789   ;
30790   return 0;
30791 }
30792 _ACEOF
30793 rm -f conftest.$ac_objext
30794 if { (ac_try="$ac_compile"
30795 case "(($ac_try" in
30796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797   *) ac_try_echo=$ac_try;;
30798 esac
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800   (eval "$ac_compile") 2>conftest.er1
30801   ac_status=$?
30802   grep -v '^ *+' conftest.er1 >conftest.err
30803   rm -f conftest.er1
30804   cat conftest.err >&5
30805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806   (exit $ac_status); } &&
30807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30808   { (case "(($ac_try" in
30809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810   *) ac_try_echo=$ac_try;;
30811 esac
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813   (eval "$ac_try") 2>&5
30814   ac_status=$?
30815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816   (exit $ac_status); }; } &&
30817          { ac_try='test -s conftest.$ac_objext'
30818   { (case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_try") 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; }; then
30827   ac_cv_type_signal=int
30828 else
30829   echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30831
30832         ac_cv_type_signal=void
30833 fi
30834
30835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836 fi
30837 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30838 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30839
30840 cat >>confdefs.h <<_ACEOF
30841 #define RETSIGTYPE $ac_cv_type_signal
30842 _ACEOF
30843
30844
30845 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30846 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30847 if test "${ac_cv_struct_tm+set}" = set; then
30848   echo $ECHO_N "(cached) $ECHO_C" >&6
30849 else
30850   cat >conftest.$ac_ext <<_ACEOF
30851 /* confdefs.h.  */
30852 _ACEOF
30853 cat confdefs.h >>conftest.$ac_ext
30854 cat >>conftest.$ac_ext <<_ACEOF
30855 /* end confdefs.h.  */
30856 #include <sys/types.h>
30857 #include <time.h>
30858
30859 int
30860 main ()
30861 {
30862 struct tm *tp; tp->tm_sec;
30863   ;
30864   return 0;
30865 }
30866 _ACEOF
30867 rm -f conftest.$ac_objext
30868 if { (ac_try="$ac_compile"
30869 case "(($ac_try" in
30870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871   *) ac_try_echo=$ac_try;;
30872 esac
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874   (eval "$ac_compile") 2>conftest.er1
30875   ac_status=$?
30876   grep -v '^ *+' conftest.er1 >conftest.err
30877   rm -f conftest.er1
30878   cat conftest.err >&5
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); } &&
30881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882   { (case "(($ac_try" in
30883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884   *) ac_try_echo=$ac_try;;
30885 esac
30886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887   (eval "$ac_try") 2>&5
30888   ac_status=$?
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); }; } &&
30891          { ac_try='test -s conftest.$ac_objext'
30892   { (case "(($ac_try" in
30893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894   *) ac_try_echo=$ac_try;;
30895 esac
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897   (eval "$ac_try") 2>&5
30898   ac_status=$?
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); }; }; then
30901   ac_cv_struct_tm=time.h
30902 else
30903   echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30905
30906         ac_cv_struct_tm=sys/time.h
30907 fi
30908
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910 fi
30911 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30912 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30913 if test $ac_cv_struct_tm = sys/time.h; then
30914
30915 cat >>confdefs.h <<\_ACEOF
30916 #define TM_IN_SYS_TIME 1
30917 _ACEOF
30918
30919 fi
30920
30921 { echo "$as_me:$LINENO: checking for int64_t" >&5
30922 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30923 if test "${ac_cv_type_int64_t+set}" = set; then
30924   echo $ECHO_N "(cached) $ECHO_C" >&6
30925 else
30926   cat >conftest.$ac_ext <<_ACEOF
30927 /* confdefs.h.  */
30928 _ACEOF
30929 cat confdefs.h >>conftest.$ac_ext
30930 cat >>conftest.$ac_ext <<_ACEOF
30931 /* end confdefs.h.  */
30932 $ac_includes_default
30933 typedef int64_t ac__type_new_;
30934 int
30935 main ()
30936 {
30937 if ((ac__type_new_ *) 0)
30938   return 0;
30939 if (sizeof (ac__type_new_))
30940   return 0;
30941   ;
30942   return 0;
30943 }
30944 _ACEOF
30945 rm -f conftest.$ac_objext
30946 if { (ac_try="$ac_compile"
30947 case "(($ac_try" in
30948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949   *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952   (eval "$ac_compile") 2>conftest.er1
30953   ac_status=$?
30954   grep -v '^ *+' conftest.er1 >conftest.err
30955   rm -f conftest.er1
30956   cat conftest.err >&5
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); } &&
30959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30960   { (case "(($ac_try" in
30961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962   *) ac_try_echo=$ac_try;;
30963 esac
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965   (eval "$ac_try") 2>&5
30966   ac_status=$?
30967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968   (exit $ac_status); }; } &&
30969          { ac_try='test -s conftest.$ac_objext'
30970   { (case "(($ac_try" in
30971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972   *) ac_try_echo=$ac_try;;
30973 esac
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975   (eval "$ac_try") 2>&5
30976   ac_status=$?
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); }; }; then
30979   ac_cv_type_int64_t=yes
30980 else
30981   echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30983
30984         ac_cv_type_int64_t=no
30985 fi
30986
30987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30988 fi
30989 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30990 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30991 if test $ac_cv_type_int64_t = yes; then
30992
30993 cat >>confdefs.h <<_ACEOF
30994 #define HAVE_INT64_T 1
30995 _ACEOF
30996
30997
30998 else
30999   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31000 echo "$as_me: error: Type int64_t required but not found" >&2;}
31001    { (exit 1); exit 1; }; }
31002 fi
31003
31004 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31005 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31006 if test "${ac_cv_type_uint64_t+set}" = set; then
31007   echo $ECHO_N "(cached) $ECHO_C" >&6
31008 else
31009   cat >conftest.$ac_ext <<_ACEOF
31010 /* confdefs.h.  */
31011 _ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h.  */
31015 $ac_includes_default
31016 typedef uint64_t ac__type_new_;
31017 int
31018 main ()
31019 {
31020 if ((ac__type_new_ *) 0)
31021   return 0;
31022 if (sizeof (ac__type_new_))
31023   return 0;
31024   ;
31025   return 0;
31026 }
31027 _ACEOF
31028 rm -f conftest.$ac_objext
31029 if { (ac_try="$ac_compile"
31030 case "(($ac_try" in
31031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032   *) ac_try_echo=$ac_try;;
31033 esac
31034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035   (eval "$ac_compile") 2>conftest.er1
31036   ac_status=$?
31037   grep -v '^ *+' conftest.er1 >conftest.err
31038   rm -f conftest.er1
31039   cat conftest.err >&5
31040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); } &&
31042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31043   { (case "(($ac_try" in
31044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045   *) ac_try_echo=$ac_try;;
31046 esac
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048   (eval "$ac_try") 2>&5
31049   ac_status=$?
31050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051   (exit $ac_status); }; } &&
31052          { ac_try='test -s conftest.$ac_objext'
31053   { (case "(($ac_try" in
31054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055   *) ac_try_echo=$ac_try;;
31056 esac
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058   (eval "$ac_try") 2>&5
31059   ac_status=$?
31060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061   (exit $ac_status); }; }; then
31062   ac_cv_type_uint64_t=yes
31063 else
31064   echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.$ac_ext >&5
31066
31067         ac_cv_type_uint64_t=no
31068 fi
31069
31070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31071 fi
31072 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31073 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31074 if test $ac_cv_type_uint64_t = yes; then
31075
31076 cat >>confdefs.h <<_ACEOF
31077 #define HAVE_UINT64_T 1
31078 _ACEOF
31079
31080
31081 else
31082   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31083 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31084 if test "${ac_cv_type_u_int64_t+set}" = set; then
31085   echo $ECHO_N "(cached) $ECHO_C" >&6
31086 else
31087   cat >conftest.$ac_ext <<_ACEOF
31088 /* confdefs.h.  */
31089 _ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h.  */
31093 $ac_includes_default
31094 typedef u_int64_t ac__type_new_;
31095 int
31096 main ()
31097 {
31098 if ((ac__type_new_ *) 0)
31099   return 0;
31100 if (sizeof (ac__type_new_))
31101   return 0;
31102   ;
31103   return 0;
31104 }
31105 _ACEOF
31106 rm -f conftest.$ac_objext
31107 if { (ac_try="$ac_compile"
31108 case "(($ac_try" in
31109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110   *) ac_try_echo=$ac_try;;
31111 esac
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113   (eval "$ac_compile") 2>conftest.er1
31114   ac_status=$?
31115   grep -v '^ *+' conftest.er1 >conftest.err
31116   rm -f conftest.er1
31117   cat conftest.err >&5
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); } &&
31120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31121   { (case "(($ac_try" in
31122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123   *) ac_try_echo=$ac_try;;
31124 esac
31125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31126   (eval "$ac_try") 2>&5
31127   ac_status=$?
31128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129   (exit $ac_status); }; } &&
31130          { ac_try='test -s conftest.$ac_objext'
31131   { (case "(($ac_try" in
31132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133   *) ac_try_echo=$ac_try;;
31134 esac
31135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136   (eval "$ac_try") 2>&5
31137   ac_status=$?
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); }; }; then
31140   ac_cv_type_u_int64_t=yes
31141 else
31142   echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31144
31145         ac_cv_type_u_int64_t=no
31146 fi
31147
31148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31149 fi
31150 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31151 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31152 if test $ac_cv_type_u_int64_t = yes; then
31153
31154 cat >>confdefs.h <<_ACEOF
31155 #define HAVE_U_INT64_T 1
31156 _ACEOF
31157
31158
31159 else
31160   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31161 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31162    { (exit 1); exit 1; }; }
31163 fi
31164
31165 fi
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31177 do
31178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31182   echo $ECHO_N "(cached) $ECHO_C" >&6
31183 else
31184   cat >conftest.$ac_ext <<_ACEOF
31185 /* confdefs.h.  */
31186 _ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h.  */
31190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31192 #define $ac_func innocuous_$ac_func
31193
31194 /* System header to define __stub macros and hopefully few prototypes,
31195     which can conflict with char $ac_func (); below.
31196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31197     <limits.h> exists even on freestanding compilers.  */
31198
31199 #ifdef __STDC__
31200 # include <limits.h>
31201 #else
31202 # include <assert.h>
31203 #endif
31204
31205 #undef $ac_func
31206
31207 /* Override any GCC internal prototype to avoid an error.
31208    Use char because int might match the return type of a GCC
31209    builtin and then its argument prototype would still apply.  */
31210 #ifdef __cplusplus
31211 extern "C"
31212 #endif
31213 char $ac_func ();
31214 /* The GNU C library defines this for functions which it implements
31215     to always fail with ENOSYS.  Some functions are actually named
31216     something starting with __ and the normal name is an alias.  */
31217 #if defined __stub_$ac_func || defined __stub___$ac_func
31218 choke me
31219 #endif
31220
31221 int
31222 main ()
31223 {
31224 return $ac_func ();
31225   ;
31226   return 0;
31227 }
31228 _ACEOF
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (ac_try="$ac_link"
31231 case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_link") 2>conftest.er1
31237   ac_status=$?
31238   grep -v '^ *+' conftest.er1 >conftest.err
31239   rm -f conftest.er1
31240   cat conftest.err >&5
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); } &&
31243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31244   { (case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_try") 2>&5
31250   ac_status=$?
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); }; } &&
31253          { ac_try='test -s conftest$ac_exeext'
31254   { (case "(($ac_try" in
31255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256   *) ac_try_echo=$ac_try;;
31257 esac
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259   (eval "$ac_try") 2>&5
31260   ac_status=$?
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); }; }; then
31263   eval "$as_ac_var=yes"
31264 else
31265   echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31267
31268         eval "$as_ac_var=no"
31269 fi
31270
31271 rm -f core conftest.err conftest.$ac_objext \
31272       conftest$ac_exeext conftest.$ac_ext
31273 fi
31274 ac_res=`eval echo '${'$as_ac_var'}'`
31275                { echo "$as_me:$LINENO: result: $ac_res" >&5
31276 echo "${ECHO_T}$ac_res" >&6; }
31277 if test `eval echo '${'$as_ac_var'}'` = yes; then
31278   cat >>confdefs.h <<_ACEOF
31279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31280 _ACEOF
31281
31282 fi
31283 done
31284
31285
31286
31287
31288
31289 for ac_func in powf fmodf strtof round
31290 do
31291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31295   echo $ECHO_N "(cached) $ECHO_C" >&6
31296 else
31297   cat >conftest.$ac_ext <<_ACEOF
31298 /* confdefs.h.  */
31299 _ACEOF
31300 cat confdefs.h >>conftest.$ac_ext
31301 cat >>conftest.$ac_ext <<_ACEOF
31302 /* end confdefs.h.  */
31303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31305 #define $ac_func innocuous_$ac_func
31306
31307 /* System header to define __stub macros and hopefully few prototypes,
31308     which can conflict with char $ac_func (); below.
31309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31310     <limits.h> exists even on freestanding compilers.  */
31311
31312 #ifdef __STDC__
31313 # include <limits.h>
31314 #else
31315 # include <assert.h>
31316 #endif
31317
31318 #undef $ac_func
31319
31320 /* Override any GCC internal prototype to avoid an error.
31321    Use char because int might match the return type of a GCC
31322    builtin and then its argument prototype would still apply.  */
31323 #ifdef __cplusplus
31324 extern "C"
31325 #endif
31326 char $ac_func ();
31327 /* The GNU C library defines this for functions which it implements
31328     to always fail with ENOSYS.  Some functions are actually named
31329     something starting with __ and the normal name is an alias.  */
31330 #if defined __stub_$ac_func || defined __stub___$ac_func
31331 choke me
31332 #endif
31333
31334 int
31335 main ()
31336 {
31337 return $ac_func ();
31338   ;
31339   return 0;
31340 }
31341 _ACEOF
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (ac_try="$ac_link"
31344 case "(($ac_try" in
31345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346   *) ac_try_echo=$ac_try;;
31347 esac
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349   (eval "$ac_link") 2>conftest.er1
31350   ac_status=$?
31351   grep -v '^ *+' conftest.er1 >conftest.err
31352   rm -f conftest.er1
31353   cat conftest.err >&5
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); } &&
31356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357   { (case "(($ac_try" in
31358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359   *) ac_try_echo=$ac_try;;
31360 esac
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362   (eval "$ac_try") 2>&5
31363   ac_status=$?
31364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365   (exit $ac_status); }; } &&
31366          { ac_try='test -s conftest$ac_exeext'
31367   { (case "(($ac_try" in
31368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369   *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372   (eval "$ac_try") 2>&5
31373   ac_status=$?
31374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375   (exit $ac_status); }; }; then
31376   eval "$as_ac_var=yes"
31377 else
31378   echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31380
31381         eval "$as_ac_var=no"
31382 fi
31383
31384 rm -f core conftest.err conftest.$ac_objext \
31385       conftest$ac_exeext conftest.$ac_ext
31386 fi
31387 ac_res=`eval echo '${'$as_ac_var'}'`
31388                { echo "$as_me:$LINENO: result: $ac_res" >&5
31389 echo "${ECHO_T}$ac_res" >&6; }
31390 if test `eval echo '${'$as_ac_var'}'` = yes; then
31391   cat >>confdefs.h <<_ACEOF
31392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31393 _ACEOF
31394
31395 fi
31396 done
31397
31398
31399
31400
31401
31402
31403 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31404 do
31405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31409   echo $ECHO_N "(cached) $ECHO_C" >&6
31410 else
31411   cat >conftest.$ac_ext <<_ACEOF
31412 /* confdefs.h.  */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h.  */
31417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31419 #define $ac_func innocuous_$ac_func
31420
31421 /* System header to define __stub macros and hopefully few prototypes,
31422     which can conflict with char $ac_func (); below.
31423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31424     <limits.h> exists even on freestanding compilers.  */
31425
31426 #ifdef __STDC__
31427 # include <limits.h>
31428 #else
31429 # include <assert.h>
31430 #endif
31431
31432 #undef $ac_func
31433
31434 /* Override any GCC internal prototype to avoid an error.
31435    Use char because int might match the return type of a GCC
31436    builtin and then its argument prototype would still apply.  */
31437 #ifdef __cplusplus
31438 extern "C"
31439 #endif
31440 char $ac_func ();
31441 /* The GNU C library defines this for functions which it implements
31442     to always fail with ENOSYS.  Some functions are actually named
31443     something starting with __ and the normal name is an alias.  */
31444 #if defined __stub_$ac_func || defined __stub___$ac_func
31445 choke me
31446 #endif
31447
31448 int
31449 main ()
31450 {
31451 return $ac_func ();
31452   ;
31453   return 0;
31454 }
31455 _ACEOF
31456 rm -f conftest.$ac_objext conftest$ac_exeext
31457 if { (ac_try="$ac_link"
31458 case "(($ac_try" in
31459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460   *) ac_try_echo=$ac_try;;
31461 esac
31462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463   (eval "$ac_link") 2>conftest.er1
31464   ac_status=$?
31465   grep -v '^ *+' conftest.er1 >conftest.err
31466   rm -f conftest.er1
31467   cat conftest.err >&5
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); } &&
31470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31471   { (case "(($ac_try" in
31472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473   *) ac_try_echo=$ac_try;;
31474 esac
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476   (eval "$ac_try") 2>&5
31477   ac_status=$?
31478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479   (exit $ac_status); }; } &&
31480          { ac_try='test -s conftest$ac_exeext'
31481   { (case "(($ac_try" in
31482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483   *) ac_try_echo=$ac_try;;
31484 esac
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486   (eval "$ac_try") 2>&5
31487   ac_status=$?
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); }; }; then
31490   eval "$as_ac_var=yes"
31491 else
31492   echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31494
31495         eval "$as_ac_var=no"
31496 fi
31497
31498 rm -f core conftest.err conftest.$ac_objext \
31499       conftest$ac_exeext conftest.$ac_ext
31500 fi
31501 ac_res=`eval echo '${'$as_ac_var'}'`
31502                { echo "$as_me:$LINENO: result: $ac_res" >&5
31503 echo "${ECHO_T}$ac_res" >&6; }
31504 if test `eval echo '${'$as_ac_var'}'` = yes; then
31505   cat >>confdefs.h <<_ACEOF
31506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31507 _ACEOF
31508
31509 fi
31510 done
31511
31512
31513
31514
31515 for ac_func in isatty mkdtemp mkstemp
31516 do
31517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31521   echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523   cat >conftest.$ac_ext <<_ACEOF
31524 /* confdefs.h.  */
31525 _ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h.  */
31529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31531 #define $ac_func innocuous_$ac_func
31532
31533 /* System header to define __stub macros and hopefully few prototypes,
31534     which can conflict with char $ac_func (); below.
31535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31536     <limits.h> exists even on freestanding compilers.  */
31537
31538 #ifdef __STDC__
31539 # include <limits.h>
31540 #else
31541 # include <assert.h>
31542 #endif
31543
31544 #undef $ac_func
31545
31546 /* Override any GCC internal prototype to avoid an error.
31547    Use char because int might match the return type of a GCC
31548    builtin and then its argument prototype would still apply.  */
31549 #ifdef __cplusplus
31550 extern "C"
31551 #endif
31552 char $ac_func ();
31553 /* The GNU C library defines this for functions which it implements
31554     to always fail with ENOSYS.  Some functions are actually named
31555     something starting with __ and the normal name is an alias.  */
31556 #if defined __stub_$ac_func || defined __stub___$ac_func
31557 choke me
31558 #endif
31559
31560 int
31561 main ()
31562 {
31563 return $ac_func ();
31564   ;
31565   return 0;
31566 }
31567 _ACEOF
31568 rm -f conftest.$ac_objext conftest$ac_exeext
31569 if { (ac_try="$ac_link"
31570 case "(($ac_try" in
31571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572   *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575   (eval "$ac_link") 2>conftest.er1
31576   ac_status=$?
31577   grep -v '^ *+' conftest.er1 >conftest.err
31578   rm -f conftest.er1
31579   cat conftest.err >&5
31580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581   (exit $ac_status); } &&
31582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31583   { (case "(($ac_try" in
31584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585   *) ac_try_echo=$ac_try;;
31586 esac
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588   (eval "$ac_try") 2>&5
31589   ac_status=$?
31590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591   (exit $ac_status); }; } &&
31592          { ac_try='test -s conftest$ac_exeext'
31593   { (case "(($ac_try" in
31594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595   *) ac_try_echo=$ac_try;;
31596 esac
31597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598   (eval "$ac_try") 2>&5
31599   ac_status=$?
31600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601   (exit $ac_status); }; }; then
31602   eval "$as_ac_var=yes"
31603 else
31604   echo "$as_me: failed program was:" >&5
31605 sed 's/^/| /' conftest.$ac_ext >&5
31606
31607         eval "$as_ac_var=no"
31608 fi
31609
31610 rm -f core conftest.err conftest.$ac_objext \
31611       conftest$ac_exeext conftest.$ac_ext
31612 fi
31613 ac_res=`eval echo '${'$as_ac_var'}'`
31614                { echo "$as_me:$LINENO: result: $ac_res" >&5
31615 echo "${ECHO_T}$ac_res" >&6; }
31616 if test `eval echo '${'$as_ac_var'}'` = yes; then
31617   cat >>confdefs.h <<_ACEOF
31618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31619 _ACEOF
31620
31621 fi
31622 done
31623
31624
31625
31626
31627
31628
31629 for ac_func in mktemp realpath sbrk setrlimit strdup
31630 do
31631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31635   echo $ECHO_N "(cached) $ECHO_C" >&6
31636 else
31637   cat >conftest.$ac_ext <<_ACEOF
31638 /* confdefs.h.  */
31639 _ACEOF
31640 cat confdefs.h >>conftest.$ac_ext
31641 cat >>conftest.$ac_ext <<_ACEOF
31642 /* end confdefs.h.  */
31643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31645 #define $ac_func innocuous_$ac_func
31646
31647 /* System header to define __stub macros and hopefully few prototypes,
31648     which can conflict with char $ac_func (); below.
31649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31650     <limits.h> exists even on freestanding compilers.  */
31651
31652 #ifdef __STDC__
31653 # include <limits.h>
31654 #else
31655 # include <assert.h>
31656 #endif
31657
31658 #undef $ac_func
31659
31660 /* Override any GCC internal prototype to avoid an error.
31661    Use char because int might match the return type of a GCC
31662    builtin and then its argument prototype would still apply.  */
31663 #ifdef __cplusplus
31664 extern "C"
31665 #endif
31666 char $ac_func ();
31667 /* The GNU C library defines this for functions which it implements
31668     to always fail with ENOSYS.  Some functions are actually named
31669     something starting with __ and the normal name is an alias.  */
31670 #if defined __stub_$ac_func || defined __stub___$ac_func
31671 choke me
31672 #endif
31673
31674 int
31675 main ()
31676 {
31677 return $ac_func ();
31678   ;
31679   return 0;
31680 }
31681 _ACEOF
31682 rm -f conftest.$ac_objext conftest$ac_exeext
31683 if { (ac_try="$ac_link"
31684 case "(($ac_try" in
31685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686   *) ac_try_echo=$ac_try;;
31687 esac
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689   (eval "$ac_link") 2>conftest.er1
31690   ac_status=$?
31691   grep -v '^ *+' conftest.er1 >conftest.err
31692   rm -f conftest.er1
31693   cat conftest.err >&5
31694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695   (exit $ac_status); } &&
31696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31697   { (case "(($ac_try" in
31698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699   *) ac_try_echo=$ac_try;;
31700 esac
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702   (eval "$ac_try") 2>&5
31703   ac_status=$?
31704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705   (exit $ac_status); }; } &&
31706          { ac_try='test -s conftest$ac_exeext'
31707   { (case "(($ac_try" in
31708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709   *) ac_try_echo=$ac_try;;
31710 esac
31711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712   (eval "$ac_try") 2>&5
31713   ac_status=$?
31714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715   (exit $ac_status); }; }; then
31716   eval "$as_ac_var=yes"
31717 else
31718   echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31720
31721         eval "$as_ac_var=no"
31722 fi
31723
31724 rm -f core conftest.err conftest.$ac_objext \
31725       conftest$ac_exeext conftest.$ac_ext
31726 fi
31727 ac_res=`eval echo '${'$as_ac_var'}'`
31728                { echo "$as_me:$LINENO: result: $ac_res" >&5
31729 echo "${ECHO_T}$ac_res" >&6; }
31730 if test `eval echo '${'$as_ac_var'}'` = yes; then
31731   cat >>confdefs.h <<_ACEOF
31732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31733 _ACEOF
31734
31735 fi
31736 done
31737
31738
31739
31740
31741 for ac_func in strerror strerror_r strerror_s
31742 do
31743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31747   echo $ECHO_N "(cached) $ECHO_C" >&6
31748 else
31749   cat >conftest.$ac_ext <<_ACEOF
31750 /* confdefs.h.  */
31751 _ACEOF
31752 cat confdefs.h >>conftest.$ac_ext
31753 cat >>conftest.$ac_ext <<_ACEOF
31754 /* end confdefs.h.  */
31755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31757 #define $ac_func innocuous_$ac_func
31758
31759 /* System header to define __stub macros and hopefully few prototypes,
31760     which can conflict with char $ac_func (); below.
31761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762     <limits.h> exists even on freestanding compilers.  */
31763
31764 #ifdef __STDC__
31765 # include <limits.h>
31766 #else
31767 # include <assert.h>
31768 #endif
31769
31770 #undef $ac_func
31771
31772 /* Override any GCC internal prototype to avoid an error.
31773    Use char because int might match the return type of a GCC
31774    builtin and then its argument prototype would still apply.  */
31775 #ifdef __cplusplus
31776 extern "C"
31777 #endif
31778 char $ac_func ();
31779 /* The GNU C library defines this for functions which it implements
31780     to always fail with ENOSYS.  Some functions are actually named
31781     something starting with __ and the normal name is an alias.  */
31782 #if defined __stub_$ac_func || defined __stub___$ac_func
31783 choke me
31784 #endif
31785
31786 int
31787 main ()
31788 {
31789 return $ac_func ();
31790   ;
31791   return 0;
31792 }
31793 _ACEOF
31794 rm -f conftest.$ac_objext conftest$ac_exeext
31795 if { (ac_try="$ac_link"
31796 case "(($ac_try" in
31797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798   *) ac_try_echo=$ac_try;;
31799 esac
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801   (eval "$ac_link") 2>conftest.er1
31802   ac_status=$?
31803   grep -v '^ *+' conftest.er1 >conftest.err
31804   rm -f conftest.er1
31805   cat conftest.err >&5
31806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807   (exit $ac_status); } &&
31808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809   { (case "(($ac_try" in
31810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811   *) ac_try_echo=$ac_try;;
31812 esac
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814   (eval "$ac_try") 2>&5
31815   ac_status=$?
31816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817   (exit $ac_status); }; } &&
31818          { ac_try='test -s conftest$ac_exeext'
31819   { (case "(($ac_try" in
31820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821   *) ac_try_echo=$ac_try;;
31822 esac
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824   (eval "$ac_try") 2>&5
31825   ac_status=$?
31826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827   (exit $ac_status); }; }; then
31828   eval "$as_ac_var=yes"
31829 else
31830   echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31832
31833         eval "$as_ac_var=no"
31834 fi
31835
31836 rm -f core conftest.err conftest.$ac_objext \
31837       conftest$ac_exeext conftest.$ac_ext
31838 fi
31839 ac_res=`eval echo '${'$as_ac_var'}'`
31840                { echo "$as_me:$LINENO: result: $ac_res" >&5
31841 echo "${ECHO_T}$ac_res" >&6; }
31842 if test `eval echo '${'$as_ac_var'}'` = yes; then
31843   cat >>confdefs.h <<_ACEOF
31844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31845 _ACEOF
31846
31847 fi
31848 done
31849
31850
31851
31852
31853
31854 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31855 do
31856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31860   echo $ECHO_N "(cached) $ECHO_C" >&6
31861 else
31862   cat >conftest.$ac_ext <<_ACEOF
31863 /* confdefs.h.  */
31864 _ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h.  */
31868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31870 #define $ac_func innocuous_$ac_func
31871
31872 /* System header to define __stub macros and hopefully few prototypes,
31873     which can conflict with char $ac_func (); below.
31874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875     <limits.h> exists even on freestanding compilers.  */
31876
31877 #ifdef __STDC__
31878 # include <limits.h>
31879 #else
31880 # include <assert.h>
31881 #endif
31882
31883 #undef $ac_func
31884
31885 /* Override any GCC internal prototype to avoid an error.
31886    Use char because int might match the return type of a GCC
31887    builtin and then its argument prototype would still apply.  */
31888 #ifdef __cplusplus
31889 extern "C"
31890 #endif
31891 char $ac_func ();
31892 /* The GNU C library defines this for functions which it implements
31893     to always fail with ENOSYS.  Some functions are actually named
31894     something starting with __ and the normal name is an alias.  */
31895 #if defined __stub_$ac_func || defined __stub___$ac_func
31896 choke me
31897 #endif
31898
31899 int
31900 main ()
31901 {
31902 return $ac_func ();
31903   ;
31904   return 0;
31905 }
31906 _ACEOF
31907 rm -f conftest.$ac_objext conftest$ac_exeext
31908 if { (ac_try="$ac_link"
31909 case "(($ac_try" in
31910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911   *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914   (eval "$ac_link") 2>conftest.er1
31915   ac_status=$?
31916   grep -v '^ *+' conftest.er1 >conftest.err
31917   rm -f conftest.er1
31918   cat conftest.err >&5
31919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); } &&
31921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31922   { (case "(($ac_try" in
31923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924   *) ac_try_echo=$ac_try;;
31925 esac
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927   (eval "$ac_try") 2>&5
31928   ac_status=$?
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); }; } &&
31931          { ac_try='test -s conftest$ac_exeext'
31932   { (case "(($ac_try" in
31933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934   *) ac_try_echo=$ac_try;;
31935 esac
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937   (eval "$ac_try") 2>&5
31938   ac_status=$?
31939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940   (exit $ac_status); }; }; then
31941   eval "$as_ac_var=yes"
31942 else
31943   echo "$as_me: failed program was:" >&5
31944 sed 's/^/| /' conftest.$ac_ext >&5
31945
31946         eval "$as_ac_var=no"
31947 fi
31948
31949 rm -f core conftest.err conftest.$ac_objext \
31950       conftest$ac_exeext conftest.$ac_ext
31951 fi
31952 ac_res=`eval echo '${'$as_ac_var'}'`
31953                { echo "$as_me:$LINENO: result: $ac_res" >&5
31954 echo "${ECHO_T}$ac_res" >&6; }
31955 if test `eval echo '${'$as_ac_var'}'` = yes; then
31956   cat >>confdefs.h <<_ACEOF
31957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31958 _ACEOF
31959
31960 fi
31961 done
31962
31963
31964
31965
31966
31967 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31968 do
31969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975   cat >conftest.$ac_ext <<_ACEOF
31976 /* confdefs.h.  */
31977 _ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h.  */
31981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31983 #define $ac_func innocuous_$ac_func
31984
31985 /* System header to define __stub macros and hopefully few prototypes,
31986     which can conflict with char $ac_func (); below.
31987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31988     <limits.h> exists even on freestanding compilers.  */
31989
31990 #ifdef __STDC__
31991 # include <limits.h>
31992 #else
31993 # include <assert.h>
31994 #endif
31995
31996 #undef $ac_func
31997
31998 /* Override any GCC internal prototype to avoid an error.
31999    Use char because int might match the return type of a GCC
32000    builtin and then its argument prototype would still apply.  */
32001 #ifdef __cplusplus
32002 extern "C"
32003 #endif
32004 char $ac_func ();
32005 /* The GNU C library defines this for functions which it implements
32006     to always fail with ENOSYS.  Some functions are actually named
32007     something starting with __ and the normal name is an alias.  */
32008 #if defined __stub_$ac_func || defined __stub___$ac_func
32009 choke me
32010 #endif
32011
32012 int
32013 main ()
32014 {
32015 return $ac_func ();
32016   ;
32017   return 0;
32018 }
32019 _ACEOF
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (ac_try="$ac_link"
32022 case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_link") 2>conftest.er1
32028   ac_status=$?
32029   grep -v '^ *+' conftest.er1 >conftest.err
32030   rm -f conftest.er1
32031   cat conftest.err >&5
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); } &&
32034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32035   { (case "(($ac_try" in
32036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037   *) ac_try_echo=$ac_try;;
32038 esac
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040   (eval "$ac_try") 2>&5
32041   ac_status=$?
32042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043   (exit $ac_status); }; } &&
32044          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32054   eval "$as_ac_var=yes"
32055 else
32056   echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32058
32059         eval "$as_ac_var=no"
32060 fi
32061
32062 rm -f core conftest.err conftest.$ac_objext \
32063       conftest$ac_exeext conftest.$ac_ext
32064 fi
32065 ac_res=`eval echo '${'$as_ac_var'}'`
32066                { echo "$as_me:$LINENO: result: $ac_res" >&5
32067 echo "${ECHO_T}$ac_res" >&6; }
32068 if test `eval echo '${'$as_ac_var'}'` = yes; then
32069   cat >>confdefs.h <<_ACEOF
32070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32071 _ACEOF
32072
32073 fi
32074 done
32075
32076 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32077 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32078 if test "${llvm_cv_c_printf_a+set}" = set; then
32079   echo $ECHO_N "(cached) $ECHO_C" >&6
32080 else
32081   ac_ext=c
32082 ac_cpp='$CPP $CPPFLAGS'
32083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32086
32087  if test "$cross_compiling" = yes; then
32088   llvmac_cv_c_printf_a=no
32089 else
32090   cat >conftest.$ac_ext <<_ACEOF
32091
32092   /* confdefs.h.  */
32093 _ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h.  */
32097
32098 #include <stdio.h>
32099 #include <stdlib.h>
32100
32101 int
32102 main ()
32103 {
32104
32105 volatile double A, B;
32106 char Buffer[100];
32107 A = 1;
32108 A /= 10.0;
32109 sprintf(Buffer, "%a", A);
32110 B = atof(Buffer);
32111 if (A != B)
32112   return (1);
32113 if (A != 0x1.999999999999ap-4)
32114   return (1);
32115 return (0);
32116   ;
32117   return 0;
32118 }
32119 _ACEOF
32120 rm -f conftest$ac_exeext
32121 if { (ac_try="$ac_link"
32122 case "(($ac_try" in
32123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124   *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127   (eval "$ac_link") 2>&5
32128   ac_status=$?
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32131   { (case "(($ac_try" in
32132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133   *) ac_try_echo=$ac_try;;
32134 esac
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136   (eval "$ac_try") 2>&5
32137   ac_status=$?
32138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139   (exit $ac_status); }; }; then
32140   llvm_cv_c_printf_a=yes
32141 else
32142   echo "$as_me: program exited with status $ac_status" >&5
32143 echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32145
32146 ( exit $ac_status )
32147 llvmac_cv_c_printf_a=no
32148 fi
32149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32150 fi
32151
32152
32153  ac_ext=c
32154 ac_cpp='$CPP $CPPFLAGS'
32155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32158
32159 fi
32160 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32161 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32162  if test "$llvm_cv_c_printf_a" = "yes"; then
32163
32164 cat >>confdefs.h <<\_ACEOF
32165 #define HAVE_PRINTF_A 1
32166 _ACEOF
32167
32168  fi
32169
32170 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32171 # for constant arguments.  Useless!
32172 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32173 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32174 if test "${ac_cv_working_alloca_h+set}" = set; then
32175   echo $ECHO_N "(cached) $ECHO_C" >&6
32176 else
32177   cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183 #include <alloca.h>
32184 int
32185 main ()
32186 {
32187 char *p = (char *) alloca (2 * sizeof (int));
32188                           if (p) return 0;
32189   ;
32190   return 0;
32191 }
32192 _ACEOF
32193 rm -f conftest.$ac_objext conftest$ac_exeext
32194 if { (ac_try="$ac_link"
32195 case "(($ac_try" in
32196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197   *) ac_try_echo=$ac_try;;
32198 esac
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200   (eval "$ac_link") 2>conftest.er1
32201   ac_status=$?
32202   grep -v '^ *+' conftest.er1 >conftest.err
32203   rm -f conftest.er1
32204   cat conftest.err >&5
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } &&
32207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32208   { (case "(($ac_try" in
32209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210   *) ac_try_echo=$ac_try;;
32211 esac
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213   (eval "$ac_try") 2>&5
32214   ac_status=$?
32215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216   (exit $ac_status); }; } &&
32217          { ac_try='test -s conftest$ac_exeext'
32218   { (case "(($ac_try" in
32219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220   *) ac_try_echo=$ac_try;;
32221 esac
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223   (eval "$ac_try") 2>&5
32224   ac_status=$?
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); }; }; then
32227   ac_cv_working_alloca_h=yes
32228 else
32229   echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32231
32232         ac_cv_working_alloca_h=no
32233 fi
32234
32235 rm -f core conftest.err conftest.$ac_objext \
32236       conftest$ac_exeext conftest.$ac_ext
32237 fi
32238 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32239 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32240 if test $ac_cv_working_alloca_h = yes; then
32241
32242 cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_ALLOCA_H 1
32244 _ACEOF
32245
32246 fi
32247
32248 { echo "$as_me:$LINENO: checking for alloca" >&5
32249 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32250 if test "${ac_cv_func_alloca_works+set}" = set; then
32251   echo $ECHO_N "(cached) $ECHO_C" >&6
32252 else
32253   cat >conftest.$ac_ext <<_ACEOF
32254 /* confdefs.h.  */
32255 _ACEOF
32256 cat confdefs.h >>conftest.$ac_ext
32257 cat >>conftest.$ac_ext <<_ACEOF
32258 /* end confdefs.h.  */
32259 #ifdef __GNUC__
32260 # define alloca __builtin_alloca
32261 #else
32262 # ifdef _MSC_VER
32263 #  include <malloc.h>
32264 #  define alloca _alloca
32265 # else
32266 #  if HAVE_ALLOCA_H
32267 #   include <alloca.h>
32268 #  else
32269 #   ifdef _AIX
32270  #pragma alloca
32271 #   else
32272 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32273 char *alloca ();
32274 #    endif
32275 #   endif
32276 #  endif
32277 # endif
32278 #endif
32279
32280 int
32281 main ()
32282 {
32283 char *p = (char *) alloca (1);
32284                                     if (p) return 0;
32285   ;
32286   return 0;
32287 }
32288 _ACEOF
32289 rm -f conftest.$ac_objext conftest$ac_exeext
32290 if { (ac_try="$ac_link"
32291 case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_link") 2>conftest.er1
32297   ac_status=$?
32298   grep -v '^ *+' conftest.er1 >conftest.err
32299   rm -f conftest.er1
32300   cat conftest.err >&5
32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302   (exit $ac_status); } &&
32303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32304   { (case "(($ac_try" in
32305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306   *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309   (eval "$ac_try") 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; } &&
32313          { ac_try='test -s conftest$ac_exeext'
32314   { (case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_try") 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; }; then
32323   ac_cv_func_alloca_works=yes
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32327
32328         ac_cv_func_alloca_works=no
32329 fi
32330
32331 rm -f core conftest.err conftest.$ac_objext \
32332       conftest$ac_exeext conftest.$ac_ext
32333 fi
32334 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32335 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32336
32337 if test $ac_cv_func_alloca_works = yes; then
32338
32339 cat >>confdefs.h <<\_ACEOF
32340 #define HAVE_ALLOCA 1
32341 _ACEOF
32342
32343 else
32344   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32345 # that cause trouble.  Some versions do not even contain alloca or
32346 # contain a buggy version.  If you still want to use their alloca,
32347 # use ar to extract alloca.o from them instead of compiling alloca.c.
32348
32349 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32350
32351 cat >>confdefs.h <<\_ACEOF
32352 #define C_ALLOCA 1
32353 _ACEOF
32354
32355
32356 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32357 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32358 if test "${ac_cv_os_cray+set}" = set; then
32359   echo $ECHO_N "(cached) $ECHO_C" >&6
32360 else
32361   cat >conftest.$ac_ext <<_ACEOF
32362 /* confdefs.h.  */
32363 _ACEOF
32364 cat confdefs.h >>conftest.$ac_ext
32365 cat >>conftest.$ac_ext <<_ACEOF
32366 /* end confdefs.h.  */
32367 #if defined CRAY && ! defined CRAY2
32368 webecray
32369 #else
32370 wenotbecray
32371 #endif
32372
32373 _ACEOF
32374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32375   $EGREP "webecray" >/dev/null 2>&1; then
32376   ac_cv_os_cray=yes
32377 else
32378   ac_cv_os_cray=no
32379 fi
32380 rm -f conftest*
32381
32382 fi
32383 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32384 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32385 if test $ac_cv_os_cray = yes; then
32386   for ac_func in _getb67 GETB67 getb67; do
32387     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32391   echo $ECHO_N "(cached) $ECHO_C" >&6
32392 else
32393   cat >conftest.$ac_ext <<_ACEOF
32394 /* confdefs.h.  */
32395 _ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h.  */
32399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32401 #define $ac_func innocuous_$ac_func
32402
32403 /* System header to define __stub macros and hopefully few prototypes,
32404     which can conflict with char $ac_func (); below.
32405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32406     <limits.h> exists even on freestanding compilers.  */
32407
32408 #ifdef __STDC__
32409 # include <limits.h>
32410 #else
32411 # include <assert.h>
32412 #endif
32413
32414 #undef $ac_func
32415
32416 /* Override any GCC internal prototype to avoid an error.
32417    Use char because int might match the return type of a GCC
32418    builtin and then its argument prototype would still apply.  */
32419 #ifdef __cplusplus
32420 extern "C"
32421 #endif
32422 char $ac_func ();
32423 /* The GNU C library defines this for functions which it implements
32424     to always fail with ENOSYS.  Some functions are actually named
32425     something starting with __ and the normal name is an alias.  */
32426 #if defined __stub_$ac_func || defined __stub___$ac_func
32427 choke me
32428 #endif
32429
32430 int
32431 main ()
32432 {
32433 return $ac_func ();
32434   ;
32435   return 0;
32436 }
32437 _ACEOF
32438 rm -f conftest.$ac_objext conftest$ac_exeext
32439 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32446   ac_status=$?
32447   grep -v '^ *+' conftest.er1 >conftest.err
32448   rm -f conftest.er1
32449   cat conftest.err >&5
32450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451   (exit $ac_status); } &&
32452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32453   { (case "(($ac_try" in
32454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455   *) ac_try_echo=$ac_try;;
32456 esac
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458   (eval "$ac_try") 2>&5
32459   ac_status=$?
32460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461   (exit $ac_status); }; } &&
32462          { ac_try='test -s conftest$ac_exeext'
32463   { (case "(($ac_try" in
32464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465   *) ac_try_echo=$ac_try;;
32466 esac
32467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468   (eval "$ac_try") 2>&5
32469   ac_status=$?
32470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471   (exit $ac_status); }; }; then
32472   eval "$as_ac_var=yes"
32473 else
32474   echo "$as_me: failed program was:" >&5
32475 sed 's/^/| /' conftest.$ac_ext >&5
32476
32477         eval "$as_ac_var=no"
32478 fi
32479
32480 rm -f core conftest.err conftest.$ac_objext \
32481       conftest$ac_exeext conftest.$ac_ext
32482 fi
32483 ac_res=`eval echo '${'$as_ac_var'}'`
32484                { echo "$as_me:$LINENO: result: $ac_res" >&5
32485 echo "${ECHO_T}$ac_res" >&6; }
32486 if test `eval echo '${'$as_ac_var'}'` = yes; then
32487
32488 cat >>confdefs.h <<_ACEOF
32489 #define CRAY_STACKSEG_END $ac_func
32490 _ACEOF
32491
32492     break
32493 fi
32494
32495   done
32496 fi
32497
32498 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32499 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32500 if test "${ac_cv_c_stack_direction+set}" = set; then
32501   echo $ECHO_N "(cached) $ECHO_C" >&6
32502 else
32503   if test "$cross_compiling" = yes; then
32504   ac_cv_c_stack_direction=0
32505 else
32506   cat >conftest.$ac_ext <<_ACEOF
32507 /* confdefs.h.  */
32508 _ACEOF
32509 cat confdefs.h >>conftest.$ac_ext
32510 cat >>conftest.$ac_ext <<_ACEOF
32511 /* end confdefs.h.  */
32512 $ac_includes_default
32513 int
32514 find_stack_direction ()
32515 {
32516   static char *addr = 0;
32517   auto char dummy;
32518   if (addr == 0)
32519     {
32520       addr = &dummy;
32521       return find_stack_direction ();
32522     }
32523   else
32524     return (&dummy > addr) ? 1 : -1;
32525 }
32526
32527 int
32528 main ()
32529 {
32530   return find_stack_direction () < 0;
32531 }
32532 _ACEOF
32533 rm -f conftest$ac_exeext
32534 if { (ac_try="$ac_link"
32535 case "(($ac_try" in
32536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32537   *) ac_try_echo=$ac_try;;
32538 esac
32539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32540   (eval "$ac_link") 2>&5
32541   ac_status=$?
32542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32544   { (case "(($ac_try" in
32545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546   *) ac_try_echo=$ac_try;;
32547 esac
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549   (eval "$ac_try") 2>&5
32550   ac_status=$?
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); }; }; then
32553   ac_cv_c_stack_direction=1
32554 else
32555   echo "$as_me: program exited with status $ac_status" >&5
32556 echo "$as_me: failed program was:" >&5
32557 sed 's/^/| /' conftest.$ac_ext >&5
32558
32559 ( exit $ac_status )
32560 ac_cv_c_stack_direction=-1
32561 fi
32562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32563 fi
32564
32565
32566 fi
32567 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32568 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32569
32570 cat >>confdefs.h <<_ACEOF
32571 #define STACK_DIRECTION $ac_cv_c_stack_direction
32572 _ACEOF
32573
32574
32575 fi
32576
32577
32578 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32579 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32580 if test "${ac_cv_func_rand48+set}" = set; then
32581   echo $ECHO_N "(cached) $ECHO_C" >&6
32582 else
32583   ac_ext=cpp
32584 ac_cpp='$CXXCPP $CPPFLAGS'
32585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32588
32589    cat >conftest.$ac_ext <<_ACEOF
32590 /* confdefs.h.  */
32591 _ACEOF
32592 cat confdefs.h >>conftest.$ac_ext
32593 cat >>conftest.$ac_ext <<_ACEOF
32594 /* end confdefs.h.  */
32595 #include <stdlib.h>
32596 int
32597 main ()
32598 {
32599 srand48(0);lrand48();drand48();
32600   ;
32601   return 0;
32602 }
32603 _ACEOF
32604 rm -f conftest.$ac_objext
32605 if { (ac_try="$ac_compile"
32606 case "(($ac_try" in
32607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608   *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611   (eval "$ac_compile") 2>conftest.er1
32612   ac_status=$?
32613   grep -v '^ *+' conftest.er1 >conftest.err
32614   rm -f conftest.er1
32615   cat conftest.err >&5
32616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617   (exit $ac_status); } &&
32618          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32619   { (case "(($ac_try" in
32620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621   *) ac_try_echo=$ac_try;;
32622 esac
32623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624   (eval "$ac_try") 2>&5
32625   ac_status=$?
32626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627   (exit $ac_status); }; } &&
32628          { ac_try='test -s conftest.$ac_objext'
32629   { (case "(($ac_try" in
32630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631   *) ac_try_echo=$ac_try;;
32632 esac
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634   (eval "$ac_try") 2>&5
32635   ac_status=$?
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); }; }; then
32638   ac_cv_func_rand48=yes
32639 else
32640   echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32642
32643         ac_cv_func_rand48=no
32644 fi
32645
32646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32647   ac_ext=c
32648 ac_cpp='$CPP $CPPFLAGS'
32649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652
32653 fi
32654 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32655 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32656
32657 if test "$ac_cv_func_rand48" = "yes" ; then
32658
32659 cat >>confdefs.h <<\_ACEOF
32660 #define HAVE_RAND48 1
32661 _ACEOF
32662
32663 fi
32664
32665
32666 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32667 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32668 if test "${ac_cv_cxx_namespaces+set}" = set; then
32669   echo $ECHO_N "(cached) $ECHO_C" >&6
32670 else
32671   ac_ext=cpp
32672 ac_cpp='$CXXCPP $CPPFLAGS'
32673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32676
32677  cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h.  */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h.  */
32683 namespace Outer { namespace Inner { int i = 0; }}
32684 int
32685 main ()
32686 {
32687 using namespace Outer::Inner; return i;
32688   ;
32689   return 0;
32690 }
32691 _ACEOF
32692 rm -f conftest.$ac_objext
32693 if { (ac_try="$ac_compile"
32694 case "(($ac_try" in
32695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696   *) ac_try_echo=$ac_try;;
32697 esac
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699   (eval "$ac_compile") 2>conftest.er1
32700   ac_status=$?
32701   grep -v '^ *+' conftest.er1 >conftest.err
32702   rm -f conftest.er1
32703   cat conftest.err >&5
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); } &&
32706          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707   { (case "(($ac_try" in
32708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709   *) ac_try_echo=$ac_try;;
32710 esac
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712   (eval "$ac_try") 2>&5
32713   ac_status=$?
32714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715   (exit $ac_status); }; } &&
32716          { ac_try='test -s conftest.$ac_objext'
32717   { (case "(($ac_try" in
32718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719   *) ac_try_echo=$ac_try;;
32720 esac
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722   (eval "$ac_try") 2>&5
32723   ac_status=$?
32724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725   (exit $ac_status); }; }; then
32726   ac_cv_cxx_namespaces=yes
32727 else
32728   echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32730
32731         ac_cv_cxx_namespaces=no
32732 fi
32733
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735  ac_ext=c
32736 ac_cpp='$CPP $CPPFLAGS'
32737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740
32741
32742 fi
32743 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32744 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32745 if test "$ac_cv_cxx_namespaces" = yes; then
32746
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_NAMESPACES
32749 _ACEOF
32750
32751 fi
32752
32753 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32754 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32755 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32756   echo $ECHO_N "(cached) $ECHO_C" >&6
32757 else
32758
32759   ac_ext=cpp
32760 ac_cpp='$CXXCPP $CPPFLAGS'
32761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32764
32765   cat >conftest.$ac_ext <<_ACEOF
32766 /* confdefs.h.  */
32767 _ACEOF
32768 cat confdefs.h >>conftest.$ac_ext
32769 cat >>conftest.$ac_ext <<_ACEOF
32770 /* end confdefs.h.  */
32771 #include <iterator>
32772 #ifdef HAVE_NAMESPACES
32773 using namespace std;
32774 #endif
32775 int
32776 main ()
32777 {
32778 iterator<int,int,int> t; return 0;
32779   ;
32780   return 0;
32781 }
32782 _ACEOF
32783 rm -f conftest.$ac_objext
32784 if { (ac_try="$ac_compile"
32785 case "(($ac_try" in
32786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787   *) ac_try_echo=$ac_try;;
32788 esac
32789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790   (eval "$ac_compile") 2>conftest.er1
32791   ac_status=$?
32792   grep -v '^ *+' conftest.er1 >conftest.err
32793   rm -f conftest.er1
32794   cat conftest.err >&5
32795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796   (exit $ac_status); } &&
32797          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32798   { (case "(($ac_try" in
32799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800   *) ac_try_echo=$ac_try;;
32801 esac
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803   (eval "$ac_try") 2>&5
32804   ac_status=$?
32805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806   (exit $ac_status); }; } &&
32807          { ac_try='test -s conftest.$ac_objext'
32808   { (case "(($ac_try" in
32809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810   *) ac_try_echo=$ac_try;;
32811 esac
32812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813   (eval "$ac_try") 2>&5
32814   ac_status=$?
32815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816   (exit $ac_status); }; }; then
32817   ac_cv_cxx_have_std_iterator=yes
32818 else
32819   echo "$as_me: failed program was:" >&5
32820 sed 's/^/| /' conftest.$ac_ext >&5
32821
32822         ac_cv_cxx_have_std_iterator=no
32823 fi
32824
32825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32826   ac_ext=c
32827 ac_cpp='$CPP $CPPFLAGS'
32828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32831
32832
32833 fi
32834 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32835 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32836 if test "$ac_cv_cxx_have_std_iterator" = yes
32837 then
32838
32839 cat >>confdefs.h <<\_ACEOF
32840 #define HAVE_STD_ITERATOR 1
32841 _ACEOF
32842
32843 else
32844
32845 cat >>confdefs.h <<\_ACEOF
32846 #define HAVE_STD_ITERATOR 0
32847 _ACEOF
32848
32849 fi
32850
32851 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32852 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32853 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32854   echo $ECHO_N "(cached) $ECHO_C" >&6
32855 else
32856
32857   ac_ext=cpp
32858 ac_cpp='$CXXCPP $CPPFLAGS'
32859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32862
32863   cat >conftest.$ac_ext <<_ACEOF
32864 /* confdefs.h.  */
32865 _ACEOF
32866 cat confdefs.h >>conftest.$ac_ext
32867 cat >>conftest.$ac_ext <<_ACEOF
32868 /* end confdefs.h.  */
32869 #include <iterator>
32870 #ifdef HAVE_NAMESPACES
32871 using namespace std;
32872 #endif
32873 int
32874 main ()
32875 {
32876 bidirectional_iterator<int,int> t; return 0;
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_cxx_have_bi_iterator=yes
32916 else
32917   echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32919
32920         ac_cv_cxx_have_bi_iterator=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
32931 fi
32932 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32933 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32934 if test "$ac_cv_cxx_have_bi_iterator" = yes
32935 then
32936
32937 cat >>confdefs.h <<\_ACEOF
32938 #define HAVE_BI_ITERATOR 1
32939 _ACEOF
32940
32941 else
32942
32943 cat >>confdefs.h <<\_ACEOF
32944 #define HAVE_BI_ITERATOR 0
32945 _ACEOF
32946
32947 fi
32948
32949 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32950 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32951 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32952   echo $ECHO_N "(cached) $ECHO_C" >&6
32953 else
32954
32955   ac_ext=cpp
32956 ac_cpp='$CXXCPP $CPPFLAGS'
32957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32960
32961   cat >conftest.$ac_ext <<_ACEOF
32962 /* confdefs.h.  */
32963 _ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h.  */
32967 #include <iterator>
32968 #ifdef HAVE_NAMESPACES
32969 using namespace std;
32970 #endif
32971 int
32972 main ()
32973 {
32974 forward_iterator<int,int> t; return 0;
32975   ;
32976   return 0;
32977 }
32978 _ACEOF
32979 rm -f conftest.$ac_objext
32980 if { (ac_try="$ac_compile"
32981 case "(($ac_try" in
32982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983   *) ac_try_echo=$ac_try;;
32984 esac
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986   (eval "$ac_compile") 2>conftest.er1
32987   ac_status=$?
32988   grep -v '^ *+' conftest.er1 >conftest.err
32989   rm -f conftest.er1
32990   cat conftest.err >&5
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); } &&
32993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33003          { ac_try='test -s conftest.$ac_objext'
33004   { (case "(($ac_try" in
33005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006   *) ac_try_echo=$ac_try;;
33007 esac
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009   (eval "$ac_try") 2>&5
33010   ac_status=$?
33011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012   (exit $ac_status); }; }; then
33013   ac_cv_cxx_have_fwd_iterator=yes
33014 else
33015   echo "$as_me: failed program was:" >&5
33016 sed 's/^/| /' conftest.$ac_ext >&5
33017
33018         ac_cv_cxx_have_fwd_iterator=no
33019 fi
33020
33021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33022   ac_ext=c
33023 ac_cpp='$CPP $CPPFLAGS'
33024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33027
33028
33029 fi
33030 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33031 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33032 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33033 then
33034
33035 cat >>confdefs.h <<\_ACEOF
33036 #define HAVE_FWD_ITERATOR 1
33037 _ACEOF
33038
33039 else
33040
33041 cat >>confdefs.h <<\_ACEOF
33042 #define HAVE_FWD_ITERATOR 0
33043 _ACEOF
33044
33045 fi
33046
33047
33048 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33049 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33050 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33051   echo $ECHO_N "(cached) $ECHO_C" >&6
33052 else
33053   ac_ext=cpp
33054 ac_cpp='$CXXCPP $CPPFLAGS'
33055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33058
33059    cat >conftest.$ac_ext <<_ACEOF
33060 /* confdefs.h.  */
33061 _ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h.  */
33065 #include <math.h>
33066 int
33067 main ()
33068 {
33069 float f; isnan(f);
33070   ;
33071   return 0;
33072 }
33073 _ACEOF
33074 rm -f conftest.$ac_objext
33075 if { (ac_try="$ac_compile"
33076 case "(($ac_try" in
33077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078   *) ac_try_echo=$ac_try;;
33079 esac
33080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081   (eval "$ac_compile") 2>conftest.er1
33082   ac_status=$?
33083   grep -v '^ *+' conftest.er1 >conftest.err
33084   rm -f conftest.er1
33085   cat conftest.err >&5
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); } &&
33088          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33089   { (case "(($ac_try" in
33090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091   *) ac_try_echo=$ac_try;;
33092 esac
33093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094   (eval "$ac_try") 2>&5
33095   ac_status=$?
33096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097   (exit $ac_status); }; } &&
33098          { ac_try='test -s conftest.$ac_objext'
33099   { (case "(($ac_try" in
33100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101   *) ac_try_echo=$ac_try;;
33102 esac
33103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33104   (eval "$ac_try") 2>&5
33105   ac_status=$?
33106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107   (exit $ac_status); }; }; then
33108   ac_cv_func_isnan_in_math_h=yes
33109 else
33110   echo "$as_me: failed program was:" >&5
33111 sed 's/^/| /' conftest.$ac_ext >&5
33112
33113         ac_cv_func_isnan_in_math_h=no
33114 fi
33115
33116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33117   ac_ext=c
33118 ac_cpp='$CPP $CPPFLAGS'
33119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33122
33123 fi
33124 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33125 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33126
33127
33128 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33129
33130 cat >>confdefs.h <<\_ACEOF
33131 #define HAVE_ISNAN_IN_MATH_H 1
33132 _ACEOF
33133
33134 fi
33135
33136 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33137 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33138 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33139   echo $ECHO_N "(cached) $ECHO_C" >&6
33140 else
33141   ac_ext=cpp
33142 ac_cpp='$CXXCPP $CPPFLAGS'
33143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33146
33147    cat >conftest.$ac_ext <<_ACEOF
33148 /* confdefs.h.  */
33149 _ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h.  */
33153 #include <cmath>
33154 int
33155 main ()
33156 {
33157 float f; isnan(f);
33158   ;
33159   return 0;
33160 }
33161 _ACEOF
33162 rm -f conftest.$ac_objext
33163 if { (ac_try="$ac_compile"
33164 case "(($ac_try" in
33165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166   *) ac_try_echo=$ac_try;;
33167 esac
33168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169   (eval "$ac_compile") 2>conftest.er1
33170   ac_status=$?
33171   grep -v '^ *+' conftest.er1 >conftest.err
33172   rm -f conftest.er1
33173   cat conftest.err >&5
33174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175   (exit $ac_status); } &&
33176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177   { (case "(($ac_try" in
33178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179   *) ac_try_echo=$ac_try;;
33180 esac
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182   (eval "$ac_try") 2>&5
33183   ac_status=$?
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); }; } &&
33186          { ac_try='test -s conftest.$ac_objext'
33187   { (case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_try") 2>&5
33193   ac_status=$?
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   (exit $ac_status); }; }; then
33196   ac_cv_func_isnan_in_cmath=yes
33197 else
33198   echo "$as_me: failed program was:" >&5
33199 sed 's/^/| /' conftest.$ac_ext >&5
33200
33201         ac_cv_func_isnan_in_cmath=no
33202 fi
33203
33204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33205   ac_ext=c
33206 ac_cpp='$CPP $CPPFLAGS'
33207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33210
33211 fi
33212 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33213 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33214
33215 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33216
33217 cat >>confdefs.h <<\_ACEOF
33218 #define HAVE_ISNAN_IN_CMATH 1
33219 _ACEOF
33220
33221 fi
33222
33223 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33224 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33225 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33226   echo $ECHO_N "(cached) $ECHO_C" >&6
33227 else
33228   ac_ext=cpp
33229 ac_cpp='$CXXCPP $CPPFLAGS'
33230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33233
33234    cat >conftest.$ac_ext <<_ACEOF
33235 /* confdefs.h.  */
33236 _ACEOF
33237 cat confdefs.h >>conftest.$ac_ext
33238 cat >>conftest.$ac_ext <<_ACEOF
33239 /* end confdefs.h.  */
33240 #include <cmath>
33241 int
33242 main ()
33243 {
33244 float f; std::isnan(f);
33245   ;
33246   return 0;
33247 }
33248 _ACEOF
33249 rm -f conftest.$ac_objext
33250 if { (ac_try="$ac_compile"
33251 case "(($ac_try" in
33252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253   *) ac_try_echo=$ac_try;;
33254 esac
33255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256   (eval "$ac_compile") 2>conftest.er1
33257   ac_status=$?
33258   grep -v '^ *+' conftest.er1 >conftest.err
33259   rm -f conftest.er1
33260   cat conftest.err >&5
33261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262   (exit $ac_status); } &&
33263          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33264   { (case "(($ac_try" in
33265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266   *) ac_try_echo=$ac_try;;
33267 esac
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269   (eval "$ac_try") 2>&5
33270   ac_status=$?
33271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272   (exit $ac_status); }; } &&
33273          { ac_try='test -s conftest.$ac_objext'
33274   { (case "(($ac_try" in
33275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276   *) ac_try_echo=$ac_try;;
33277 esac
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279   (eval "$ac_try") 2>&5
33280   ac_status=$?
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); }; }; then
33283   ac_cv_func_std_isnan_in_cmath=yes
33284 else
33285   echo "$as_me: failed program was:" >&5
33286 sed 's/^/| /' conftest.$ac_ext >&5
33287
33288         ac_cv_func_std_isnan_in_cmath=no
33289 fi
33290
33291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33292   ac_ext=c
33293 ac_cpp='$CPP $CPPFLAGS'
33294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33297
33298 fi
33299 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33300 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33301
33302 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33303
33304 cat >>confdefs.h <<\_ACEOF
33305 #define HAVE_STD_ISNAN_IN_CMATH 1
33306 _ACEOF
33307
33308 fi
33309
33310
33311 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33312 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33313 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33314   echo $ECHO_N "(cached) $ECHO_C" >&6
33315 else
33316   ac_ext=cpp
33317 ac_cpp='$CXXCPP $CPPFLAGS'
33318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33321
33322    cat >conftest.$ac_ext <<_ACEOF
33323 /* confdefs.h.  */
33324 _ACEOF
33325 cat confdefs.h >>conftest.$ac_ext
33326 cat >>conftest.$ac_ext <<_ACEOF
33327 /* end confdefs.h.  */
33328 #include <math.h>
33329 int
33330 main ()
33331 {
33332 float f; isinf(f);
33333   ;
33334   return 0;
33335 }
33336 _ACEOF
33337 rm -f conftest.$ac_objext
33338 if { (ac_try="$ac_compile"
33339 case "(($ac_try" in
33340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33341   *) ac_try_echo=$ac_try;;
33342 esac
33343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33344   (eval "$ac_compile") 2>conftest.er1
33345   ac_status=$?
33346   grep -v '^ *+' conftest.er1 >conftest.err
33347   rm -f conftest.er1
33348   cat conftest.err >&5
33349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350   (exit $ac_status); } &&
33351          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33352   { (case "(($ac_try" in
33353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354   *) ac_try_echo=$ac_try;;
33355 esac
33356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357   (eval "$ac_try") 2>&5
33358   ac_status=$?
33359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360   (exit $ac_status); }; } &&
33361          { ac_try='test -s conftest.$ac_objext'
33362   { (case "(($ac_try" in
33363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364   *) ac_try_echo=$ac_try;;
33365 esac
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367   (eval "$ac_try") 2>&5
33368   ac_status=$?
33369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); }; }; then
33371   ac_cv_func_isinf_in_math_h=yes
33372 else
33373   echo "$as_me: failed program was:" >&5
33374 sed 's/^/| /' conftest.$ac_ext >&5
33375
33376         ac_cv_func_isinf_in_math_h=no
33377 fi
33378
33379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33380   ac_ext=c
33381 ac_cpp='$CPP $CPPFLAGS'
33382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33385
33386 fi
33387 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33388 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33389
33390 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33391
33392 cat >>confdefs.h <<\_ACEOF
33393 #define HAVE_ISINF_IN_MATH_H 1
33394 _ACEOF
33395
33396 fi
33397
33398 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33399 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33400 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33401   echo $ECHO_N "(cached) $ECHO_C" >&6
33402 else
33403   ac_ext=cpp
33404 ac_cpp='$CXXCPP $CPPFLAGS'
33405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33408
33409    cat >conftest.$ac_ext <<_ACEOF
33410 /* confdefs.h.  */
33411 _ACEOF
33412 cat confdefs.h >>conftest.$ac_ext
33413 cat >>conftest.$ac_ext <<_ACEOF
33414 /* end confdefs.h.  */
33415 #include <cmath>
33416 int
33417 main ()
33418 {
33419 float f; isinf(f);
33420   ;
33421   return 0;
33422 }
33423 _ACEOF
33424 rm -f conftest.$ac_objext
33425 if { (ac_try="$ac_compile"
33426 case "(($ac_try" in
33427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428   *) ac_try_echo=$ac_try;;
33429 esac
33430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431   (eval "$ac_compile") 2>conftest.er1
33432   ac_status=$?
33433   grep -v '^ *+' conftest.er1 >conftest.err
33434   rm -f conftest.er1
33435   cat conftest.err >&5
33436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); } &&
33438          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33439   { (case "(($ac_try" in
33440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441   *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444   (eval "$ac_try") 2>&5
33445   ac_status=$?
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); }; } &&
33448          { ac_try='test -s conftest.$ac_objext'
33449   { (case "(($ac_try" in
33450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451   *) ac_try_echo=$ac_try;;
33452 esac
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454   (eval "$ac_try") 2>&5
33455   ac_status=$?
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; }; then
33458   ac_cv_func_isinf_in_cmath=yes
33459 else
33460   echo "$as_me: failed program was:" >&5
33461 sed 's/^/| /' conftest.$ac_ext >&5
33462
33463         ac_cv_func_isinf_in_cmath=no
33464 fi
33465
33466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33467   ac_ext=c
33468 ac_cpp='$CPP $CPPFLAGS'
33469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33472
33473 fi
33474 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33475 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33476
33477 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33478
33479 cat >>confdefs.h <<\_ACEOF
33480 #define HAVE_ISINF_IN_CMATH 1
33481 _ACEOF
33482
33483 fi
33484
33485 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33486 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33487 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33488   echo $ECHO_N "(cached) $ECHO_C" >&6
33489 else
33490   ac_ext=cpp
33491 ac_cpp='$CXXCPP $CPPFLAGS'
33492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33495
33496    cat >conftest.$ac_ext <<_ACEOF
33497 /* confdefs.h.  */
33498 _ACEOF
33499 cat confdefs.h >>conftest.$ac_ext
33500 cat >>conftest.$ac_ext <<_ACEOF
33501 /* end confdefs.h.  */
33502 #include <cmath>
33503 int
33504 main ()
33505 {
33506 float f; std::isinf(f)}
33507   ;
33508   return 0;
33509 }
33510 _ACEOF
33511 rm -f conftest.$ac_objext
33512 if { (ac_try="$ac_compile"
33513 case "(($ac_try" in
33514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515   *) ac_try_echo=$ac_try;;
33516 esac
33517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518   (eval "$ac_compile") 2>conftest.er1
33519   ac_status=$?
33520   grep -v '^ *+' conftest.er1 >conftest.err
33521   rm -f conftest.er1
33522   cat conftest.err >&5
33523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524   (exit $ac_status); } &&
33525          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33526   { (case "(($ac_try" in
33527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528   *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531   (eval "$ac_try") 2>&5
33532   ac_status=$?
33533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534   (exit $ac_status); }; } &&
33535          { ac_try='test -s conftest.$ac_objext'
33536   { (case "(($ac_try" in
33537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538   *) ac_try_echo=$ac_try;;
33539 esac
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541   (eval "$ac_try") 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); }; }; then
33545   ac_cv_func_std_isinf_in_cmath=yes
33546 else
33547   echo "$as_me: failed program was:" >&5
33548 sed 's/^/| /' conftest.$ac_ext >&5
33549
33550         ac_cv_func_std_isinf_in_cmath=no
33551 fi
33552
33553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33554   ac_ext=c
33555 ac_cpp='$CPP $CPPFLAGS'
33556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33559
33560 fi
33561 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33562 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33563
33564 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33565
33566 cat >>confdefs.h <<\_ACEOF
33567 #define HAVE_STD_ISINF_IN_CMATH 1
33568 _ACEOF
33569
33570 fi
33571
33572 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33573 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33574 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33575   echo $ECHO_N "(cached) $ECHO_C" >&6
33576 else
33577   ac_ext=cpp
33578 ac_cpp='$CXXCPP $CPPFLAGS'
33579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33582
33583    cat >conftest.$ac_ext <<_ACEOF
33584 /* confdefs.h.  */
33585 _ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h.  */
33589 #include <ieeefp.h>
33590 int
33591 main ()
33592 {
33593 float f; finite(f);
33594   ;
33595   return 0;
33596 }
33597 _ACEOF
33598 rm -f conftest.$ac_objext
33599 if { (ac_try="$ac_compile"
33600 case "(($ac_try" in
33601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602   *) ac_try_echo=$ac_try;;
33603 esac
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605   (eval "$ac_compile") 2>conftest.er1
33606   ac_status=$?
33607   grep -v '^ *+' conftest.er1 >conftest.err
33608   rm -f conftest.er1
33609   cat conftest.err >&5
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); } &&
33612          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33613   { (case "(($ac_try" in
33614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615   *) ac_try_echo=$ac_try;;
33616 esac
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618   (eval "$ac_try") 2>&5
33619   ac_status=$?
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); }; } &&
33622          { ac_try='test -s conftest.$ac_objext'
33623   { (case "(($ac_try" in
33624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625   *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628   (eval "$ac_try") 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); }; }; then
33632   ac_cv_func_finite_in_ieeefp_h=yes
33633 else
33634   echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33636
33637         ac_cv_func_finite_in_ieeefp_h=no
33638 fi
33639
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33641   ac_ext=c
33642 ac_cpp='$CPP $CPPFLAGS'
33643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33646
33647 fi
33648 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33649 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33650
33651 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33652
33653 cat >>confdefs.h <<\_ACEOF
33654 #define HAVE_FINITE_IN_IEEEFP_H 1
33655 _ACEOF
33656
33657 fi
33658
33659
33660
33661 if test "$llvm_cv_platform_type" = "Unix" ; then
33662
33663
33664 for ac_header in stdlib.h unistd.h
33665 do
33666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33671   echo $ECHO_N "(cached) $ECHO_C" >&6
33672 fi
33673 ac_res=`eval echo '${'$as_ac_Header'}'`
33674                { echo "$as_me:$LINENO: result: $ac_res" >&5
33675 echo "${ECHO_T}$ac_res" >&6; }
33676 else
33677   # Is the header compilable?
33678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33680 cat >conftest.$ac_ext <<_ACEOF
33681 /* confdefs.h.  */
33682 _ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h.  */
33686 $ac_includes_default
33687 #include <$ac_header>
33688 _ACEOF
33689 rm -f conftest.$ac_objext
33690 if { (ac_try="$ac_compile"
33691 case "(($ac_try" in
33692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33693   *) ac_try_echo=$ac_try;;
33694 esac
33695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33696   (eval "$ac_compile") 2>conftest.er1
33697   ac_status=$?
33698   grep -v '^ *+' conftest.er1 >conftest.err
33699   rm -f conftest.er1
33700   cat conftest.err >&5
33701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702   (exit $ac_status); } &&
33703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33704   { (case "(($ac_try" in
33705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706   *) ac_try_echo=$ac_try;;
33707 esac
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709   (eval "$ac_try") 2>&5
33710   ac_status=$?
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); }; } &&
33713          { ac_try='test -s conftest.$ac_objext'
33714   { (case "(($ac_try" in
33715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716   *) ac_try_echo=$ac_try;;
33717 esac
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719   (eval "$ac_try") 2>&5
33720   ac_status=$?
33721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722   (exit $ac_status); }; }; then
33723   ac_header_compiler=yes
33724 else
33725   echo "$as_me: failed program was:" >&5
33726 sed 's/^/| /' conftest.$ac_ext >&5
33727
33728         ac_header_compiler=no
33729 fi
33730
33731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33733 echo "${ECHO_T}$ac_header_compiler" >&6; }
33734
33735 # Is the header present?
33736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33738 cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h.  */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h.  */
33744 #include <$ac_header>
33745 _ACEOF
33746 if { (ac_try="$ac_cpp conftest.$ac_ext"
33747 case "(($ac_try" in
33748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749   *) ac_try_echo=$ac_try;;
33750 esac
33751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33753   ac_status=$?
33754   grep -v '^ *+' conftest.er1 >conftest.err
33755   rm -f conftest.er1
33756   cat conftest.err >&5
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); } >/dev/null; then
33759   if test -s conftest.err; then
33760     ac_cpp_err=$ac_c_preproc_warn_flag
33761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33762   else
33763     ac_cpp_err=
33764   fi
33765 else
33766   ac_cpp_err=yes
33767 fi
33768 if test -z "$ac_cpp_err"; then
33769   ac_header_preproc=yes
33770 else
33771   echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33773
33774   ac_header_preproc=no
33775 fi
33776
33777 rm -f conftest.err conftest.$ac_ext
33778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33779 echo "${ECHO_T}$ac_header_preproc" >&6; }
33780
33781 # So?  What about this header?
33782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33783   yes:no: )
33784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33788     ac_header_preproc=yes
33789     ;;
33790   no:yes:* )
33791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33803     ( cat <<\_ASBOX
33804 ## ----------------------------------- ##
33805 ## Report this to llvmbugs@cs.uiuc.edu ##
33806 ## ----------------------------------- ##
33807 _ASBOX
33808      ) | sed "s/^/$as_me: WARNING:     /" >&2
33809     ;;
33810 esac
33811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33814   echo $ECHO_N "(cached) $ECHO_C" >&6
33815 else
33816   eval "$as_ac_Header=\$ac_header_preproc"
33817 fi
33818 ac_res=`eval echo '${'$as_ac_Header'}'`
33819                { echo "$as_me:$LINENO: result: $ac_res" >&5
33820 echo "${ECHO_T}$ac_res" >&6; }
33821
33822 fi
33823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33824   cat >>confdefs.h <<_ACEOF
33825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33826 _ACEOF
33827
33828 fi
33829
33830 done
33831
33832
33833 for ac_func in getpagesize
33834 do
33835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33839   echo $ECHO_N "(cached) $ECHO_C" >&6
33840 else
33841   cat >conftest.$ac_ext <<_ACEOF
33842 /* confdefs.h.  */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h.  */
33847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33849 #define $ac_func innocuous_$ac_func
33850
33851 /* System header to define __stub macros and hopefully few prototypes,
33852     which can conflict with char $ac_func (); below.
33853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33854     <limits.h> exists even on freestanding compilers.  */
33855
33856 #ifdef __STDC__
33857 # include <limits.h>
33858 #else
33859 # include <assert.h>
33860 #endif
33861
33862 #undef $ac_func
33863
33864 /* Override any GCC internal prototype to avoid an error.
33865    Use char because int might match the return type of a GCC
33866    builtin and then its argument prototype would still apply.  */
33867 #ifdef __cplusplus
33868 extern "C"
33869 #endif
33870 char $ac_func ();
33871 /* The GNU C library defines this for functions which it implements
33872     to always fail with ENOSYS.  Some functions are actually named
33873     something starting with __ and the normal name is an alias.  */
33874 #if defined __stub_$ac_func || defined __stub___$ac_func
33875 choke me
33876 #endif
33877
33878 int
33879 main ()
33880 {
33881 return $ac_func ();
33882   ;
33883   return 0;
33884 }
33885 _ACEOF
33886 rm -f conftest.$ac_objext conftest$ac_exeext
33887 if { (ac_try="$ac_link"
33888 case "(($ac_try" in
33889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890   *) ac_try_echo=$ac_try;;
33891 esac
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893   (eval "$ac_link") 2>conftest.er1
33894   ac_status=$?
33895   grep -v '^ *+' conftest.er1 >conftest.err
33896   rm -f conftest.er1
33897   cat conftest.err >&5
33898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899   (exit $ac_status); } &&
33900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33901   { (case "(($ac_try" in
33902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903   *) ac_try_echo=$ac_try;;
33904 esac
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906   (eval "$ac_try") 2>&5
33907   ac_status=$?
33908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909   (exit $ac_status); }; } &&
33910          { ac_try='test -s conftest$ac_exeext'
33911   { (case "(($ac_try" in
33912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913   *) ac_try_echo=$ac_try;;
33914 esac
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916   (eval "$ac_try") 2>&5
33917   ac_status=$?
33918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919   (exit $ac_status); }; }; then
33920   eval "$as_ac_var=yes"
33921 else
33922   echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.$ac_ext >&5
33924
33925         eval "$as_ac_var=no"
33926 fi
33927
33928 rm -f core conftest.err conftest.$ac_objext \
33929       conftest$ac_exeext conftest.$ac_ext
33930 fi
33931 ac_res=`eval echo '${'$as_ac_var'}'`
33932                { echo "$as_me:$LINENO: result: $ac_res" >&5
33933 echo "${ECHO_T}$ac_res" >&6; }
33934 if test `eval echo '${'$as_ac_var'}'` = yes; then
33935   cat >>confdefs.h <<_ACEOF
33936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33937 _ACEOF
33938
33939 fi
33940 done
33941
33942 { echo "$as_me:$LINENO: checking for working mmap" >&5
33943 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33944 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33945   echo $ECHO_N "(cached) $ECHO_C" >&6
33946 else
33947   if test "$cross_compiling" = yes; then
33948   ac_cv_func_mmap_fixed_mapped=no
33949 else
33950   cat >conftest.$ac_ext <<_ACEOF
33951 /* confdefs.h.  */
33952 _ACEOF
33953 cat confdefs.h >>conftest.$ac_ext
33954 cat >>conftest.$ac_ext <<_ACEOF
33955 /* end confdefs.h.  */
33956 $ac_includes_default
33957 /* malloc might have been renamed as rpl_malloc. */
33958 #undef malloc
33959
33960 /* Thanks to Mike Haertel and Jim Avera for this test.
33961    Here is a matrix of mmap possibilities:
33962         mmap private not fixed
33963         mmap private fixed at somewhere currently unmapped
33964         mmap private fixed at somewhere already mapped
33965         mmap shared not fixed
33966         mmap shared fixed at somewhere currently unmapped
33967         mmap shared fixed at somewhere already mapped
33968    For private mappings, we should verify that changes cannot be read()
33969    back from the file, nor mmap's back from the file at a different
33970    address.  (There have been systems where private was not correctly
33971    implemented like the infamous i386 svr4.0, and systems where the
33972    VM page cache was not coherent with the file system buffer cache
33973    like early versions of FreeBSD and possibly contemporary NetBSD.)
33974    For shared mappings, we should conversely verify that changes get
33975    propagated back to all the places they're supposed to be.
33976
33977    Grep wants private fixed already mapped.
33978    The main things grep needs to know about mmap are:
33979    * does it exist and is it safe to write into the mmap'd area
33980    * how to use it (BSD variants)  */
33981
33982 #include <fcntl.h>
33983 #include <sys/mman.h>
33984
33985 #if !STDC_HEADERS && !HAVE_STDLIB_H
33986 char *malloc ();
33987 #endif
33988
33989 /* This mess was copied from the GNU getpagesize.h.  */
33990 #if !HAVE_GETPAGESIZE
33991 /* Assume that all systems that can run configure have sys/param.h.  */
33992 # if !HAVE_SYS_PARAM_H
33993 #  define HAVE_SYS_PARAM_H 1
33994 # endif
33995
33996 # ifdef _SC_PAGESIZE
33997 #  define getpagesize() sysconf(_SC_PAGESIZE)
33998 # else /* no _SC_PAGESIZE */
33999 #  if HAVE_SYS_PARAM_H
34000 #   include <sys/param.h>
34001 #   ifdef EXEC_PAGESIZE
34002 #    define getpagesize() EXEC_PAGESIZE
34003 #   else /* no EXEC_PAGESIZE */
34004 #    ifdef NBPG
34005 #     define getpagesize() NBPG * CLSIZE
34006 #     ifndef CLSIZE
34007 #      define CLSIZE 1
34008 #     endif /* no CLSIZE */
34009 #    else /* no NBPG */
34010 #     ifdef NBPC
34011 #      define getpagesize() NBPC
34012 #     else /* no NBPC */
34013 #      ifdef PAGESIZE
34014 #       define getpagesize() PAGESIZE
34015 #      endif /* PAGESIZE */
34016 #     endif /* no NBPC */
34017 #    endif /* no NBPG */
34018 #   endif /* no EXEC_PAGESIZE */
34019 #  else /* no HAVE_SYS_PARAM_H */
34020 #   define getpagesize() 8192   /* punt totally */
34021 #  endif /* no HAVE_SYS_PARAM_H */
34022 # endif /* no _SC_PAGESIZE */
34023
34024 #endif /* no HAVE_GETPAGESIZE */
34025
34026 int
34027 main ()
34028 {
34029   char *data, *data2, *data3;
34030   int i, pagesize;
34031   int fd;
34032
34033   pagesize = getpagesize ();
34034
34035   /* First, make a file with some known garbage in it. */
34036   data = (char *) malloc (pagesize);
34037   if (!data)
34038     return 1;
34039   for (i = 0; i < pagesize; ++i)
34040     *(data + i) = rand ();
34041   umask (0);
34042   fd = creat ("conftest.mmap", 0600);
34043   if (fd < 0)
34044     return 1;
34045   if (write (fd, data, pagesize) != pagesize)
34046     return 1;
34047   close (fd);
34048
34049   /* Next, try to mmap the file at a fixed address which already has
34050      something else allocated at it.  If we can, also make sure that
34051      we see the same garbage.  */
34052   fd = open ("conftest.mmap", O_RDWR);
34053   if (fd < 0)
34054     return 1;
34055   data2 = (char *) malloc (2 * pagesize);
34056   if (!data2)
34057     return 1;
34058   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34059   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34060                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34061     return 1;
34062   for (i = 0; i < pagesize; ++i)
34063     if (*(data + i) != *(data2 + i))
34064       return 1;
34065
34066   /* Finally, make sure that changes to the mapped area do not
34067      percolate back to the file as seen by read().  (This is a bug on
34068      some variants of i386 svr4.0.)  */
34069   for (i = 0; i < pagesize; ++i)
34070     *(data2 + i) = *(data2 + i) + 1;
34071   data3 = (char *) malloc (pagesize);
34072   if (!data3)
34073     return 1;
34074   if (read (fd, data3, pagesize) != pagesize)
34075     return 1;
34076   for (i = 0; i < pagesize; ++i)
34077     if (*(data + i) != *(data3 + i))
34078       return 1;
34079   close (fd);
34080   return 0;
34081 }
34082 _ACEOF
34083 rm -f conftest$ac_exeext
34084 if { (ac_try="$ac_link"
34085 case "(($ac_try" in
34086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087   *) ac_try_echo=$ac_try;;
34088 esac
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090   (eval "$ac_link") 2>&5
34091   ac_status=$?
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34094   { (case "(($ac_try" in
34095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096   *) ac_try_echo=$ac_try;;
34097 esac
34098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099   (eval "$ac_try") 2>&5
34100   ac_status=$?
34101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102   (exit $ac_status); }; }; then
34103   ac_cv_func_mmap_fixed_mapped=yes
34104 else
34105   echo "$as_me: program exited with status $ac_status" >&5
34106 echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34108
34109 ( exit $ac_status )
34110 ac_cv_func_mmap_fixed_mapped=no
34111 fi
34112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34113 fi
34114
34115
34116 fi
34117 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34118 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34119 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34120
34121 cat >>confdefs.h <<\_ACEOF
34122 #define HAVE_MMAP 1
34123 _ACEOF
34124
34125 fi
34126 rm -f conftest.mmap
34127
34128   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34129 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34130 if test "${ac_cv_func_mmap_file+set}" = set; then
34131   echo $ECHO_N "(cached) $ECHO_C" >&6
34132 else
34133    ac_ext=c
34134 ac_cpp='$CPP $CPPFLAGS'
34135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34138
34139   if test "$cross_compiling" = yes; then
34140   ac_cv_func_mmap_file=no
34141 else
34142   cat >conftest.$ac_ext <<_ACEOF
34143
34144     /* confdefs.h.  */
34145 _ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h.  */
34149
34150 #include <sys/types.h>
34151 #include <sys/mman.h>
34152 #include <fcntl.h>
34153
34154 int
34155 main ()
34156 {
34157
34158   int fd;
34159   fd = creat ("foo",0777);
34160   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34161   unlink ("foo");
34162   return (fd != (int) MAP_FAILED);
34163   ;
34164   return 0;
34165 }
34166 _ACEOF
34167 rm -f conftest$ac_exeext
34168 if { (ac_try="$ac_link"
34169 case "(($ac_try" in
34170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34171   *) ac_try_echo=$ac_try;;
34172 esac
34173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34174   (eval "$ac_link") 2>&5
34175   ac_status=$?
34176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34178   { (case "(($ac_try" in
34179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180   *) ac_try_echo=$ac_try;;
34181 esac
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183   (eval "$ac_try") 2>&5
34184   ac_status=$?
34185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186   (exit $ac_status); }; }; then
34187   ac_cv_func_mmap_file=yes
34188 else
34189   echo "$as_me: program exited with status $ac_status" >&5
34190 echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34192
34193 ( exit $ac_status )
34194 ac_cv_func_mmap_file=no
34195 fi
34196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34197 fi
34198
34199
34200   ac_ext=c
34201 ac_cpp='$CPP $CPPFLAGS'
34202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34205
34206
34207 fi
34208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34209 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34210 if test "$ac_cv_func_mmap_file" = yes; then
34211
34212 cat >>confdefs.h <<\_ACEOF
34213 #define HAVE_MMAP_FILE
34214 _ACEOF
34215
34216    MMAP_FILE=yes
34217
34218 fi
34219
34220   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34221 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34222 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34223   echo $ECHO_N "(cached) $ECHO_C" >&6
34224 else
34225   if test "$llvm_cv_os_type" = "Interix" ; then
34226    ac_cv_need_dev_zero_for_mmap=yes
34227  else
34228    ac_cv_need_dev_zero_for_mmap=no
34229  fi
34230
34231 fi
34232 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34233 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34234 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34235
34236 cat >>confdefs.h <<\_ACEOF
34237 #define NEED_DEV_ZERO_FOR_MMAP 1
34238 _ACEOF
34239
34240 fi
34241
34242   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34243   then
34244     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34245 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34246   fi
34247   if test "$ac_cv_func_mmap_file" = "no"
34248   then
34249     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34250 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34251   fi
34252 fi
34253
34254 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34255 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34256 cat >conftest.$ac_ext <<_ACEOF
34257 /* confdefs.h.  */
34258 _ACEOF
34259 cat confdefs.h >>conftest.$ac_ext
34260 cat >>conftest.$ac_ext <<_ACEOF
34261 /* end confdefs.h.  */
34262 int main() {
34263         volatile unsigned long val = 1;
34264         __sync_synchronize();
34265         __sync_val_compare_and_swap(&val, 1, 0);
34266         __sync_add_and_fetch(&val, 1);
34267         __sync_sub_and_fetch(&val, 1);
34268         return 0;
34269       }
34270
34271 _ACEOF
34272 rm -f conftest.$ac_objext conftest$ac_exeext
34273 if { (ac_try="$ac_link"
34274 case "(($ac_try" in
34275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276   *) ac_try_echo=$ac_try;;
34277 esac
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279   (eval "$ac_link") 2>conftest.er1
34280   ac_status=$?
34281   grep -v '^ *+' conftest.er1 >conftest.err
34282   rm -f conftest.er1
34283   cat conftest.err >&5
34284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285   (exit $ac_status); } &&
34286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34287   { (case "(($ac_try" in
34288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34289   *) ac_try_echo=$ac_try;;
34290 esac
34291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34292   (eval "$ac_try") 2>&5
34293   ac_status=$?
34294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295   (exit $ac_status); }; } &&
34296          { ac_try='test -s conftest$ac_exeext'
34297   { (case "(($ac_try" in
34298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34299   *) ac_try_echo=$ac_try;;
34300 esac
34301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34302   (eval "$ac_try") 2>&5
34303   ac_status=$?
34304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305   (exit $ac_status); }; }; then
34306   { echo "$as_me:$LINENO: result: yes" >&5
34307 echo "${ECHO_T}yes" >&6; }
34308
34309 cat >>confdefs.h <<\_ACEOF
34310 #define LLVM_MULTITHREADED 1
34311 _ACEOF
34312
34313 else
34314   echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34316
34317         { echo "$as_me:$LINENO: result: no" >&5
34318 echo "${ECHO_T}no" >&6; }
34319
34320 cat >>confdefs.h <<\_ACEOF
34321 #define LLVM_MULTITHREADED 0
34322 _ACEOF
34323
34324   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34325 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34326 fi
34327
34328 rm -f core conftest.err conftest.$ac_objext \
34329       conftest$ac_exeext conftest.$ac_ext
34330
34331
34332
34333
34334 for ac_func in __dso_handle
34335 do
34336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34340   echo $ECHO_N "(cached) $ECHO_C" >&6
34341 else
34342   cat >conftest.$ac_ext <<_ACEOF
34343 /* confdefs.h.  */
34344 _ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h.  */
34348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34350 #define $ac_func innocuous_$ac_func
34351
34352 /* System header to define __stub macros and hopefully few prototypes,
34353     which can conflict with char $ac_func (); below.
34354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34355     <limits.h> exists even on freestanding compilers.  */
34356
34357 #ifdef __STDC__
34358 # include <limits.h>
34359 #else
34360 # include <assert.h>
34361 #endif
34362
34363 #undef $ac_func
34364
34365 /* Override any GCC internal prototype to avoid an error.
34366    Use char because int might match the return type of a GCC
34367    builtin and then its argument prototype would still apply.  */
34368 #ifdef __cplusplus
34369 extern "C"
34370 #endif
34371 char $ac_func ();
34372 /* The GNU C library defines this for functions which it implements
34373     to always fail with ENOSYS.  Some functions are actually named
34374     something starting with __ and the normal name is an alias.  */
34375 #if defined __stub_$ac_func || defined __stub___$ac_func
34376 choke me
34377 #endif
34378
34379 int
34380 main ()
34381 {
34382 return $ac_func ();
34383   ;
34384   return 0;
34385 }
34386 _ACEOF
34387 rm -f conftest.$ac_objext conftest$ac_exeext
34388 if { (ac_try="$ac_link"
34389 case "(($ac_try" in
34390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391   *) ac_try_echo=$ac_try;;
34392 esac
34393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34394   (eval "$ac_link") 2>conftest.er1
34395   ac_status=$?
34396   grep -v '^ *+' conftest.er1 >conftest.err
34397   rm -f conftest.er1
34398   cat conftest.err >&5
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); } &&
34401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34402   { (case "(($ac_try" in
34403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34404   *) ac_try_echo=$ac_try;;
34405 esac
34406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34407   (eval "$ac_try") 2>&5
34408   ac_status=$?
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); }; } &&
34411          { ac_try='test -s conftest$ac_exeext'
34412   { (case "(($ac_try" in
34413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34414   *) ac_try_echo=$ac_try;;
34415 esac
34416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34417   (eval "$ac_try") 2>&5
34418   ac_status=$?
34419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420   (exit $ac_status); }; }; then
34421   eval "$as_ac_var=yes"
34422 else
34423   echo "$as_me: failed program was:" >&5
34424 sed 's/^/| /' conftest.$ac_ext >&5
34425
34426         eval "$as_ac_var=no"
34427 fi
34428
34429 rm -f core conftest.err conftest.$ac_objext \
34430       conftest$ac_exeext conftest.$ac_ext
34431 fi
34432 ac_res=`eval echo '${'$as_ac_var'}'`
34433                { echo "$as_me:$LINENO: result: $ac_res" >&5
34434 echo "${ECHO_T}$ac_res" >&6; }
34435 if test `eval echo '${'$as_ac_var'}'` = yes; then
34436   cat >>confdefs.h <<_ACEOF
34437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34438 _ACEOF
34439
34440 fi
34441 done
34442
34443
34444 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34445 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34446 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34447   echo $ECHO_N "(cached) $ECHO_C" >&6
34448 else
34449   llvm_cv_llvmgcc_sanity="no"
34450 if test -x "$LLVMGCC" ; then
34451   cp /dev/null conftest.c
34452   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34453       grep 'target datalayout =' > /dev/null 2>&1
34454   if test $? -eq 0 ; then
34455     llvm_cv_llvmgcc_sanity="yes"
34456   fi
34457   rm conftest.c
34458 fi
34459 fi
34460 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34461 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34462
34463 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34464   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34465 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34466   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34467   LLVMCC1=$llvmcc1path
34468
34469   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34470   LLVMCC1PLUS=$llvmcc1pluspath
34471
34472   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34473   LLVMGCCDIR=$llvmgccdir
34474
34475   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34476   LLVMGCCLIBEXEC=$llvmgcclibexec
34477
34478   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34479   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34480   LLVMGCC_VERSION=$llvmgccversion
34481
34482   LLVMGCC_MAJVERS=$llvmgccmajvers
34483
34484   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34485   LLVMGCC_LANGS=$llvmgcclangs
34486
34487   { echo "$as_me:$LINENO: result: ok" >&5
34488 echo "${ECHO_T}ok" >&6; }
34489 fi
34490
34491 SHLIBEXT=$libltdl_cv_shlibext
34492
34493
34494 # Translate the various configuration directories and other basic
34495 # information into substitutions that will end up in Makefile.config.in
34496 # that these configured values can be used by the makefiles
34497 if test "${prefix}" = "NONE" ; then
34498   prefix="/usr/local"
34499 fi
34500 eval LLVM_PREFIX="${prefix}";
34501 eval LLVM_BINDIR="${prefix}/bin";
34502 eval LLVM_LIBDIR="${prefix}/lib";
34503 eval LLVM_DATADIR="${prefix}/share/llvm";
34504 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34505 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34506 eval LLVM_INCLUDEDIR="${prefix}/include";
34507 eval LLVM_INFODIR="${prefix}/info";
34508 eval LLVM_MANDIR="${prefix}/man";
34509 LLVM_CONFIGTIME=`date`
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521 # Place the various directores into the config.h file as #defines so that we
34522 # can know about the installation paths within LLVM.
34523
34524 cat >>confdefs.h <<_ACEOF
34525 #define LLVM_PREFIX "$LLVM_PREFIX"
34526 _ACEOF
34527
34528
34529 cat >>confdefs.h <<_ACEOF
34530 #define LLVM_BINDIR "$LLVM_BINDIR"
34531 _ACEOF
34532
34533
34534 cat >>confdefs.h <<_ACEOF
34535 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34536 _ACEOF
34537
34538
34539 cat >>confdefs.h <<_ACEOF
34540 #define LLVM_DATADIR "$LLVM_DATADIR"
34541 _ACEOF
34542
34543
34544 cat >>confdefs.h <<_ACEOF
34545 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34546 _ACEOF
34547
34548
34549 cat >>confdefs.h <<_ACEOF
34550 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34551 _ACEOF
34552
34553
34554 cat >>confdefs.h <<_ACEOF
34555 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34556 _ACEOF
34557
34558
34559 cat >>confdefs.h <<_ACEOF
34560 #define LLVM_INFODIR "$LLVM_INFODIR"
34561 _ACEOF
34562
34563
34564 cat >>confdefs.h <<_ACEOF
34565 #define LLVM_MANDIR "$LLVM_MANDIR"
34566 _ACEOF
34567
34568
34569 cat >>confdefs.h <<_ACEOF
34570 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34571 _ACEOF
34572
34573
34574 cat >>confdefs.h <<_ACEOF
34575 #define LLVM_HOSTTRIPLE "$host"
34576 _ACEOF
34577
34578
34579 # Determine which bindings to build.
34580 if test "$BINDINGS_TO_BUILD" = auto ; then
34581   BINDINGS_TO_BUILD=""
34582   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34583     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34584   fi
34585 fi
34586 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34587
34588
34589 # This isn't really configurey, but it avoids having to repeat the list in
34590 # other files.
34591 ALL_BINDINGS=ocaml
34592
34593
34594 # Do any work necessary to ensure that bindings have what they need.
34595 binding_prereqs_failed=0
34596 for a_binding in $BINDINGS_TO_BUILD ; do
34597   case "$a_binding" in
34598   ocaml)
34599     if test "x$OCAMLC" = x ; then
34600       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34601 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34602       binding_prereqs_failed=1
34603     fi
34604     if test "x$OCAMLDEP" = x ; then
34605       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34606 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34607       binding_prereqs_failed=1
34608     fi
34609     if test "x$OCAMLOPT" = x ; then
34610       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34611 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34612           fi
34613     if test "x$with_ocaml_libdir" != xauto ; then
34614       OCAML_LIBDIR=$with_ocaml_libdir
34615
34616     else
34617       ocaml_stdlib="`"$OCAMLC" -where`"
34618       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34619       then
34620         # ocaml stdlib is beneath our prefix; use stdlib
34621         OCAML_LIBDIR=$ocaml_stdlib
34622
34623       else
34624         # ocaml stdlib is outside our prefix; use libdir/ocaml
34625         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34626
34627       fi
34628     fi
34629     ;;
34630   esac
34631 done
34632 if test "$binding_prereqs_failed" = 1 ; then
34633   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34634 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34635    { (exit 1); exit 1; }; }
34636 fi
34637
34638 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34639 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34640 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34641   echo $ECHO_N "(cached) $ECHO_C" >&6
34642 else
34643    ac_ext=cpp
34644 ac_cpp='$CXXCPP $CPPFLAGS'
34645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34648
34649   oldcxxflags="$CXXFLAGS"
34650   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34651   cat >conftest.$ac_ext <<_ACEOF
34652 /* confdefs.h.  */
34653 _ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h.  */
34657
34658 int
34659 main ()
34660 {
34661
34662   ;
34663   return 0;
34664 }
34665 _ACEOF
34666 rm -f conftest.$ac_objext
34667 if { (ac_try="$ac_compile"
34668 case "(($ac_try" in
34669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34670   *) ac_try_echo=$ac_try;;
34671 esac
34672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34673   (eval "$ac_compile") 2>conftest.er1
34674   ac_status=$?
34675   grep -v '^ *+' conftest.er1 >conftest.err
34676   rm -f conftest.er1
34677   cat conftest.err >&5
34678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679   (exit $ac_status); } &&
34680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34681   { (case "(($ac_try" in
34682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683   *) ac_try_echo=$ac_try;;
34684 esac
34685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34686   (eval "$ac_try") 2>&5
34687   ac_status=$?
34688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689   (exit $ac_status); }; } &&
34690          { ac_try='test -s conftest.$ac_objext'
34691   { (case "(($ac_try" in
34692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693   *) ac_try_echo=$ac_try;;
34694 esac
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696   (eval "$ac_try") 2>&5
34697   ac_status=$?
34698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699   (exit $ac_status); }; }; then
34700   llvm_cv_cxx_visibility_inlines_hidden=yes
34701 else
34702   echo "$as_me: failed program was:" >&5
34703 sed 's/^/| /' conftest.$ac_ext >&5
34704
34705         llvm_cv_cxx_visibility_inlines_hidden=no
34706 fi
34707
34708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34709   CXXFLAGS="$oldcxxflags"
34710   ac_ext=c
34711 ac_cpp='$CPP $CPPFLAGS'
34712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34715
34716
34717 fi
34718 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34719 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34720 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34721   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34722
34723 else
34724   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34725
34726 fi
34727
34728
34729 if test "$llvm_cv_link_use_r" = "yes" ; then
34730   RPATH="-Wl,-R"
34731 else
34732   RPATH="-Wl,-rpath"
34733 fi
34734
34735
34736 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34737   RDYNAMIC="-Wl,-export-dynamic"
34738 else
34739   RDYNAMIC=""
34740 fi
34741
34742
34743
34744 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34745
34746 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34747
34748 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34749
34750 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34751
34752 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34753
34754
34755 ac_config_files="$ac_config_files Makefile.config"
34756
34757
34758 ac_config_files="$ac_config_files llvm.spec"
34759
34760
34761 ac_config_files="$ac_config_files docs/doxygen.cfg"
34762
34763
34764 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34765
34766
34767 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34768
34769
34770 ac_config_commands="$ac_config_commands setup"
34771
34772 ac_config_commands="$ac_config_commands Makefile"
34773
34774
34775 ac_config_commands="$ac_config_commands Makefile.common"
34776
34777
34778 ac_config_commands="$ac_config_commands examples/Makefile"
34779
34780
34781 ac_config_commands="$ac_config_commands lib/Makefile"
34782
34783
34784 ac_config_commands="$ac_config_commands runtime/Makefile"
34785
34786
34787 ac_config_commands="$ac_config_commands test/Makefile"
34788
34789
34790 ac_config_commands="$ac_config_commands test/Makefile.tests"
34791
34792
34793 ac_config_commands="$ac_config_commands unittests/Makefile"
34794
34795
34796 ac_config_commands="$ac_config_commands tools/Makefile"
34797
34798
34799 ac_config_commands="$ac_config_commands utils/Makefile"
34800
34801
34802 ac_config_commands="$ac_config_commands projects/Makefile"
34803
34804
34805 ac_config_commands="$ac_config_commands bindings/Makefile"
34806
34807
34808 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34809
34810
34811
34812 cat >confcache <<\_ACEOF
34813 # This file is a shell script that caches the results of configure
34814 # tests run on this system so they can be shared between configure
34815 # scripts and configure runs, see configure's option --config-cache.
34816 # It is not useful on other systems.  If it contains results you don't
34817 # want to keep, you may remove or edit it.
34818 #
34819 # config.status only pays attention to the cache file if you give it
34820 # the --recheck option to rerun configure.
34821 #
34822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34824 # following values.
34825
34826 _ACEOF
34827
34828 # The following way of writing the cache mishandles newlines in values,
34829 # but we know of no workaround that is simple, portable, and efficient.
34830 # So, we kill variables containing newlines.
34831 # Ultrix sh set writes to stderr and can't be redirected directly,
34832 # and sets the high bit in the cache file unless we assign to the vars.
34833 (
34834   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34835     eval ac_val=\$$ac_var
34836     case $ac_val in #(
34837     *${as_nl}*)
34838       case $ac_var in #(
34839       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34840 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34841       esac
34842       case $ac_var in #(
34843       _ | IFS | as_nl) ;; #(
34844       *) $as_unset $ac_var ;;
34845       esac ;;
34846     esac
34847   done
34848
34849   (set) 2>&1 |
34850     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34851     *${as_nl}ac_space=\ *)
34852       # `set' does not quote correctly, so add quotes (double-quote
34853       # substitution turns \\\\ into \\, and sed turns \\ into \).
34854       sed -n \
34855         "s/'/'\\\\''/g;
34856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34857       ;; #(
34858     *)
34859       # `set' quotes correctly as required by POSIX, so do not add quotes.
34860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34861       ;;
34862     esac |
34863     sort
34864 ) |
34865   sed '
34866      /^ac_cv_env_/b end
34867      t clear
34868      :clear
34869      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34870      t end
34871      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34872      :end' >>confcache
34873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34874   if test -w "$cache_file"; then
34875     test "x$cache_file" != "x/dev/null" &&
34876       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34877 echo "$as_me: updating cache $cache_file" >&6;}
34878     cat confcache >$cache_file
34879   else
34880     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34881 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34882   fi
34883 fi
34884 rm -f confcache
34885
34886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34887 # Let make expand exec_prefix.
34888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34889
34890 DEFS=-DHAVE_CONFIG_H
34891
34892 ac_libobjs=
34893 ac_ltlibobjs=
34894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34895   # 1. Remove the extension, and $U if already installed.
34896   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34897   ac_i=`echo "$ac_i" | sed "$ac_script"`
34898   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34899   #    will be set to the directory where LIBOBJS objects are built.
34900   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34901   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34902 done
34903 LIBOBJS=$ac_libobjs
34904
34905 LTLIBOBJS=$ac_ltlibobjs
34906
34907
34908 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34909   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34910 Usually this means the macro was only invoked conditionally." >&5
34911 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34912 Usually this means the macro was only invoked conditionally." >&2;}
34913    { (exit 1); exit 1; }; }
34914 fi
34915 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34916   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34917 Usually this means the macro was only invoked conditionally." >&5
34918 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34919 Usually this means the macro was only invoked conditionally." >&2;}
34920    { (exit 1); exit 1; }; }
34921 fi
34922
34923 : ${CONFIG_STATUS=./config.status}
34924 ac_clean_files_save=$ac_clean_files
34925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34928 cat >$CONFIG_STATUS <<_ACEOF
34929 #! $SHELL
34930 # Generated by $as_me.
34931 # Run this file to recreate the current configuration.
34932 # Compiler output produced by configure, useful for debugging
34933 # configure, is in config.log if it exists.
34934
34935 debug=false
34936 ac_cs_recheck=false
34937 ac_cs_silent=false
34938 SHELL=\${CONFIG_SHELL-$SHELL}
34939 _ACEOF
34940
34941 cat >>$CONFIG_STATUS <<\_ACEOF
34942 ## --------------------- ##
34943 ## M4sh Initialization.  ##
34944 ## --------------------- ##
34945
34946 # Be Bourne compatible
34947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34948   emulate sh
34949   NULLCMD=:
34950   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34951   # is contrary to our usage.  Disable this feature.
34952   alias -g '${1+"$@"}'='"$@"'
34953   setopt NO_GLOB_SUBST
34954 else
34955   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34956 fi
34957 BIN_SH=xpg4; export BIN_SH # for Tru64
34958 DUALCASE=1; export DUALCASE # for MKS sh
34959
34960
34961 # PATH needs CR
34962 # Avoid depending upon Character Ranges.
34963 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34964 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34965 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34966 as_cr_digits='0123456789'
34967 as_cr_alnum=$as_cr_Letters$as_cr_digits
34968
34969 # The user is always right.
34970 if test "${PATH_SEPARATOR+set}" != set; then
34971   echo "#! /bin/sh" >conf$$.sh
34972   echo  "exit 0"   >>conf$$.sh
34973   chmod +x conf$$.sh
34974   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34975     PATH_SEPARATOR=';'
34976   else
34977     PATH_SEPARATOR=:
34978   fi
34979   rm -f conf$$.sh
34980 fi
34981
34982 # Support unset when possible.
34983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34984   as_unset=unset
34985 else
34986   as_unset=false
34987 fi
34988
34989
34990 # IFS
34991 # We need space, tab and new line, in precisely that order.  Quoting is
34992 # there to prevent editors from complaining about space-tab.
34993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34994 # splitting by setting IFS to empty value.)
34995 as_nl='
34996 '
34997 IFS=" ""        $as_nl"
34998
34999 # Find who we are.  Look in the path if we contain no directory separator.
35000 case $0 in
35001   *[\\/]* ) as_myself=$0 ;;
35002   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35003 for as_dir in $PATH
35004 do
35005   IFS=$as_save_IFS
35006   test -z "$as_dir" && as_dir=.
35007   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35008 done
35009 IFS=$as_save_IFS
35010
35011      ;;
35012 esac
35013 # We did not find ourselves, most probably we were run as `sh COMMAND'
35014 # in which case we are not to be found in the path.
35015 if test "x$as_myself" = x; then
35016   as_myself=$0
35017 fi
35018 if test ! -f "$as_myself"; then
35019   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35020   { (exit 1); exit 1; }
35021 fi
35022
35023 # Work around bugs in pre-3.0 UWIN ksh.
35024 for as_var in ENV MAIL MAILPATH
35025 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35026 done
35027 PS1='$ '
35028 PS2='> '
35029 PS4='+ '
35030
35031 # NLS nuisances.
35032 for as_var in \
35033   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35034   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35035   LC_TELEPHONE LC_TIME
35036 do
35037   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35038     eval $as_var=C; export $as_var
35039   else
35040     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35041   fi
35042 done
35043
35044 # Required to use basename.
35045 if expr a : '\(a\)' >/dev/null 2>&1 &&
35046    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35047   as_expr=expr
35048 else
35049   as_expr=false
35050 fi
35051
35052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35053   as_basename=basename
35054 else
35055   as_basename=false
35056 fi
35057
35058
35059 # Name of the executable.
35060 as_me=`$as_basename -- "$0" ||
35061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35062          X"$0" : 'X\(//\)$' \| \
35063          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35064 echo X/"$0" |
35065     sed '/^.*\/\([^/][^/]*\)\/*$/{
35066             s//\1/
35067             q
35068           }
35069           /^X\/\(\/\/\)$/{
35070             s//\1/
35071             q
35072           }
35073           /^X\/\(\/\).*/{
35074             s//\1/
35075             q
35076           }
35077           s/.*/./; q'`
35078
35079 # CDPATH.
35080 $as_unset CDPATH
35081
35082
35083
35084   as_lineno_1=$LINENO
35085   as_lineno_2=$LINENO
35086   test "x$as_lineno_1" != "x$as_lineno_2" &&
35087   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35088
35089   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35090   # uniformly replaced by the line number.  The first 'sed' inserts a
35091   # line-number line after each line using $LINENO; the second 'sed'
35092   # does the real work.  The second script uses 'N' to pair each
35093   # line-number line with the line containing $LINENO, and appends
35094   # trailing '-' during substitution so that $LINENO is not a special
35095   # case at line end.
35096   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35097   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35098   # E. McMahon (1931-1989) for sed's syntax.  :-)
35099   sed -n '
35100     p
35101     /[$]LINENO/=
35102   ' <$as_myself |
35103     sed '
35104       s/[$]LINENO.*/&-/
35105       t lineno
35106       b
35107       :lineno
35108       N
35109       :loop
35110       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35111       t loop
35112       s/-\n.*//
35113     ' >$as_me.lineno &&
35114   chmod +x "$as_me.lineno" ||
35115     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35116    { (exit 1); exit 1; }; }
35117
35118   # Don't try to exec as it changes $[0], causing all sort of problems
35119   # (the dirname of $[0] is not the place where we might find the
35120   # original and so on.  Autoconf is especially sensitive to this).
35121   . "./$as_me.lineno"
35122   # Exit status is that of the last command.
35123   exit
35124 }
35125
35126
35127 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35128   as_dirname=dirname
35129 else
35130   as_dirname=false
35131 fi
35132
35133 ECHO_C= ECHO_N= ECHO_T=
35134 case `echo -n x` in
35135 -n*)
35136   case `echo 'x\c'` in
35137   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35138   *)   ECHO_C='\c';;
35139   esac;;
35140 *)
35141   ECHO_N='-n';;
35142 esac
35143
35144 if expr a : '\(a\)' >/dev/null 2>&1 &&
35145    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35146   as_expr=expr
35147 else
35148   as_expr=false
35149 fi
35150
35151 rm -f conf$$ conf$$.exe conf$$.file
35152 if test -d conf$$.dir; then
35153   rm -f conf$$.dir/conf$$.file
35154 else
35155   rm -f conf$$.dir
35156   mkdir conf$$.dir
35157 fi
35158 echo >conf$$.file
35159 if ln -s conf$$.file conf$$ 2>/dev/null; then
35160   as_ln_s='ln -s'
35161   # ... but there are two gotchas:
35162   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35163   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35164   # In both cases, we have to default to `cp -p'.
35165   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35166     as_ln_s='cp -p'
35167 elif ln conf$$.file conf$$ 2>/dev/null; then
35168   as_ln_s=ln
35169 else
35170   as_ln_s='cp -p'
35171 fi
35172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35173 rmdir conf$$.dir 2>/dev/null
35174
35175 if mkdir -p . 2>/dev/null; then
35176   as_mkdir_p=:
35177 else
35178   test -d ./-p && rmdir ./-p
35179   as_mkdir_p=false
35180 fi
35181
35182 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35183 # systems may use methods other than mode bits to determine executability.
35184 cat >conf$$.file <<_ASEOF
35185 #! /bin/sh
35186 exit 0
35187 _ASEOF
35188 chmod +x conf$$.file
35189 if test -x conf$$.file >/dev/null 2>&1; then
35190   as_executable_p="test -x"
35191 else
35192   as_executable_p=:
35193 fi
35194 rm -f conf$$.file
35195
35196 # Sed expression to map a string onto a valid CPP name.
35197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35198
35199 # Sed expression to map a string onto a valid variable name.
35200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35201
35202
35203 exec 6>&1
35204
35205 # Save the log message, to keep $[0] and so on meaningful, and to
35206 # report actual input values of CONFIG_FILES etc. instead of their
35207 # values after options handling.
35208 ac_log="
35209 This file was extended by llvm $as_me 2.6svn, which was
35210 generated by GNU Autoconf 2.60.  Invocation command line was
35211
35212   CONFIG_FILES    = $CONFIG_FILES
35213   CONFIG_HEADERS  = $CONFIG_HEADERS
35214   CONFIG_LINKS    = $CONFIG_LINKS
35215   CONFIG_COMMANDS = $CONFIG_COMMANDS
35216   $ $0 $@
35217
35218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35219 "
35220
35221 _ACEOF
35222
35223 cat >>$CONFIG_STATUS <<_ACEOF
35224 # Files that config.status was made for.
35225 config_files="$ac_config_files"
35226 config_headers="$ac_config_headers"
35227 config_commands="$ac_config_commands"
35228
35229 _ACEOF
35230
35231 cat >>$CONFIG_STATUS <<\_ACEOF
35232 ac_cs_usage="\
35233 \`$as_me' instantiates files from templates according to the
35234 current configuration.
35235
35236 Usage: $0 [OPTIONS] [FILE]...
35237
35238   -h, --help       print this help, then exit
35239   -V, --version    print version number, then exit
35240   -q, --quiet      do not print progress messages
35241   -d, --debug      don't remove temporary files
35242       --recheck    update $as_me by reconfiguring in the same conditions
35243   --file=FILE[:TEMPLATE]
35244                    instantiate the configuration file FILE
35245   --header=FILE[:TEMPLATE]
35246                    instantiate the configuration header FILE
35247
35248 Configuration files:
35249 $config_files
35250
35251 Configuration headers:
35252 $config_headers
35253
35254 Configuration commands:
35255 $config_commands
35256
35257 Report bugs to <bug-autoconf@gnu.org>."
35258
35259 _ACEOF
35260 cat >>$CONFIG_STATUS <<_ACEOF
35261 ac_cs_version="\\
35262 llvm config.status 2.6svn
35263 configured by $0, generated by GNU Autoconf 2.60,
35264   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35265
35266 Copyright (C) 2006 Free Software Foundation, Inc.
35267 This config.status script is free software; the Free Software Foundation
35268 gives unlimited permission to copy, distribute and modify it."
35269
35270 ac_pwd='$ac_pwd'
35271 srcdir='$srcdir'
35272 INSTALL='$INSTALL'
35273 _ACEOF
35274
35275 cat >>$CONFIG_STATUS <<\_ACEOF
35276 # If no file are specified by the user, then we need to provide default
35277 # value.  By we need to know if files were specified by the user.
35278 ac_need_defaults=:
35279 while test $# != 0
35280 do
35281   case $1 in
35282   --*=*)
35283     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35284     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35285     ac_shift=:
35286     ;;
35287   *)
35288     ac_option=$1
35289     ac_optarg=$2
35290     ac_shift=shift
35291     ;;
35292   esac
35293
35294   case $ac_option in
35295   # Handling of the options.
35296   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35297     ac_cs_recheck=: ;;
35298   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35299     echo "$ac_cs_version"; exit ;;
35300   --debug | --debu | --deb | --de | --d | -d )
35301     debug=: ;;
35302   --file | --fil | --fi | --f )
35303     $ac_shift
35304     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35305     ac_need_defaults=false;;
35306   --header | --heade | --head | --hea )
35307     $ac_shift
35308     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35309     ac_need_defaults=false;;
35310   --he | --h)
35311     # Conflict between --help and --header
35312     { echo "$as_me: error: ambiguous option: $1
35313 Try \`$0 --help' for more information." >&2
35314    { (exit 1); exit 1; }; };;
35315   --help | --hel | -h )
35316     echo "$ac_cs_usage"; exit ;;
35317   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35318   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35319     ac_cs_silent=: ;;
35320
35321   # This is an error.
35322   -*) { echo "$as_me: error: unrecognized option: $1
35323 Try \`$0 --help' for more information." >&2
35324    { (exit 1); exit 1; }; } ;;
35325
35326   *) ac_config_targets="$ac_config_targets $1"
35327      ac_need_defaults=false ;;
35328
35329   esac
35330   shift
35331 done
35332
35333 ac_configure_extra_args=
35334
35335 if $ac_cs_silent; then
35336   exec 6>/dev/null
35337   ac_configure_extra_args="$ac_configure_extra_args --silent"
35338 fi
35339
35340 _ACEOF
35341 cat >>$CONFIG_STATUS <<_ACEOF
35342 if \$ac_cs_recheck; then
35343   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35344   CONFIG_SHELL=$SHELL
35345   export CONFIG_SHELL
35346   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35347 fi
35348
35349 _ACEOF
35350 cat >>$CONFIG_STATUS <<\_ACEOF
35351 exec 5>>config.log
35352 {
35353   echo
35354   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35355 ## Running $as_me. ##
35356 _ASBOX
35357   echo "$ac_log"
35358 } >&5
35359
35360 _ACEOF
35361 cat >>$CONFIG_STATUS <<_ACEOF
35362 #
35363 # INIT-COMMANDS
35364 #
35365 llvm_src="${srcdir}"
35366
35367 _ACEOF
35368
35369 cat >>$CONFIG_STATUS <<\_ACEOF
35370
35371 # Handling of arguments.
35372 for ac_config_target in $ac_config_targets
35373 do
35374   case $ac_config_target in
35375     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35376     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35377     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35378     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35379     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35380     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35381     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35382     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35383     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35384     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35385     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35386     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35387     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35388     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35389     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35390     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35391     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35392     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35393     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35394     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35395     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35396     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35397     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35398     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35399
35400   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35401 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35402    { (exit 1); exit 1; }; };;
35403   esac
35404 done
35405
35406
35407 # If the user did not use the arguments to specify the items to instantiate,
35408 # then the envvar interface is used.  Set only those that are not.
35409 # We use the long form for the default assignment because of an extremely
35410 # bizarre bug on SunOS 4.1.3.
35411 if $ac_need_defaults; then
35412   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35413   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35414   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35415 fi
35416
35417 # Have a temporary directory for convenience.  Make it in the build tree
35418 # simply because there is no reason against having it here, and in addition,
35419 # creating and moving files from /tmp can sometimes cause problems.
35420 # Hook for its removal unless debugging.
35421 # Note that there is a small window in which the directory will not be cleaned:
35422 # after its creation but before its name has been assigned to `$tmp'.
35423 $debug ||
35424 {
35425   tmp=
35426   trap 'exit_status=$?
35427   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35428 ' 0
35429   trap '{ (exit 1); exit 1; }' 1 2 13 15
35430 }
35431 # Create a (secure) tmp directory for tmp files.
35432
35433 {
35434   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35435   test -n "$tmp" && test -d "$tmp"
35436 }  ||
35437 {
35438   tmp=./conf$$-$RANDOM
35439   (umask 077 && mkdir "$tmp")
35440 } ||
35441 {
35442    echo "$me: cannot create a temporary directory in ." >&2
35443    { (exit 1); exit 1; }
35444 }
35445
35446 #
35447 # Set up the sed scripts for CONFIG_FILES section.
35448 #
35449
35450 # No need to generate the scripts if there are no CONFIG_FILES.
35451 # This happens for instance when ./config.status config.h
35452 if test -n "$CONFIG_FILES"; then
35453
35454 _ACEOF
35455
35456
35457
35458 ac_delim='%!_!# '
35459 for ac_last_try in false false false false false :; do
35460   cat >conf$$subs.sed <<_ACEOF
35461 SHELL!$SHELL$ac_delim
35462 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35463 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35464 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35465 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35466 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35467 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35468 exec_prefix!$exec_prefix$ac_delim
35469 prefix!$prefix$ac_delim
35470 program_transform_name!$program_transform_name$ac_delim
35471 bindir!$bindir$ac_delim
35472 sbindir!$sbindir$ac_delim
35473 libexecdir!$libexecdir$ac_delim
35474 datarootdir!$datarootdir$ac_delim
35475 datadir!$datadir$ac_delim
35476 sysconfdir!$sysconfdir$ac_delim
35477 sharedstatedir!$sharedstatedir$ac_delim
35478 localstatedir!$localstatedir$ac_delim
35479 includedir!$includedir$ac_delim
35480 oldincludedir!$oldincludedir$ac_delim
35481 docdir!$docdir$ac_delim
35482 infodir!$infodir$ac_delim
35483 htmldir!$htmldir$ac_delim
35484 dvidir!$dvidir$ac_delim
35485 pdfdir!$pdfdir$ac_delim
35486 psdir!$psdir$ac_delim
35487 libdir!$libdir$ac_delim
35488 localedir!$localedir$ac_delim
35489 mandir!$mandir$ac_delim
35490 DEFS!$DEFS$ac_delim
35491 ECHO_C!$ECHO_C$ac_delim
35492 ECHO_N!$ECHO_N$ac_delim
35493 ECHO_T!$ECHO_T$ac_delim
35494 LIBS!$LIBS$ac_delim
35495 build_alias!$build_alias$ac_delim
35496 host_alias!$host_alias$ac_delim
35497 target_alias!$target_alias$ac_delim
35498 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35499 subdirs!$subdirs$ac_delim
35500 build!$build$ac_delim
35501 build_cpu!$build_cpu$ac_delim
35502 build_vendor!$build_vendor$ac_delim
35503 build_os!$build_os$ac_delim
35504 host!$host$ac_delim
35505 host_cpu!$host_cpu$ac_delim
35506 host_vendor!$host_vendor$ac_delim
35507 host_os!$host_os$ac_delim
35508 target!$target$ac_delim
35509 target_cpu!$target_cpu$ac_delim
35510 target_vendor!$target_vendor$ac_delim
35511 target_os!$target_os$ac_delim
35512 OS!$OS$ac_delim
35513 LINKALL!$LINKALL$ac_delim
35514 NOLINKALL!$NOLINKALL$ac_delim
35515 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35516 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35517 ARCH!$ARCH$ac_delim
35518 ENDIAN!$ENDIAN$ac_delim
35519 CC!$CC$ac_delim
35520 CFLAGS!$CFLAGS$ac_delim
35521 LDFLAGS!$LDFLAGS$ac_delim
35522 CPPFLAGS!$CPPFLAGS$ac_delim
35523 ac_ct_CC!$ac_ct_CC$ac_delim
35524 EXEEXT!$EXEEXT$ac_delim
35525 OBJEXT!$OBJEXT$ac_delim
35526 CPP!$CPP$ac_delim
35527 GREP!$GREP$ac_delim
35528 EGREP!$EGREP$ac_delim
35529 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35530 BUILD_CC!$BUILD_CC$ac_delim
35531 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35532 BUILD_CXX!$BUILD_CXX$ac_delim
35533 CVSBUILD!$CVSBUILD$ac_delim
35534 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35535 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35536 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35537 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35538 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35539 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35540 JIT!$JIT$ac_delim
35541 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35542 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35543 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35544 ENABLE_PIC!$ENABLE_PIC$ac_delim
35545 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35546 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35547 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35548 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35549 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35550 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35551 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
35552 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
35553 CXX!$CXX$ac_delim
35554 CXXFLAGS!$CXXFLAGS$ac_delim
35555 ac_ct_CXX!$ac_ct_CXX$ac_delim
35556 NM!$NM$ac_delim
35557 ifGNUmake!$ifGNUmake$ac_delim
35558 _ACEOF
35559
35560   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35561     break
35562   elif $ac_last_try; then
35563     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35565    { (exit 1); exit 1; }; }
35566   else
35567     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35568   fi
35569 done
35570
35571 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35572 if test -n "$ac_eof"; then
35573   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35574   ac_eof=`expr $ac_eof + 1`
35575 fi
35576
35577 cat >>$CONFIG_STATUS <<_ACEOF
35578 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35580 _ACEOF
35581 sed '
35582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35583 s/^/s,@/; s/!/@,|#_!!_#|/
35584 :n
35585 t n
35586 s/'"$ac_delim"'$/,g/; t
35587 s/$/\\/; p
35588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35589 ' >>$CONFIG_STATUS <conf$$subs.sed
35590 rm -f conf$$subs.sed
35591 cat >>$CONFIG_STATUS <<_ACEOF
35592 CEOF$ac_eof
35593 _ACEOF
35594
35595
35596 ac_delim='%!_!# '
35597 for ac_last_try in false false false false false :; do
35598   cat >conf$$subs.sed <<_ACEOF
35599 LN_S!$LN_S$ac_delim
35600 CMP!$CMP$ac_delim
35601 CP!$CP$ac_delim
35602 DATE!$DATE$ac_delim
35603 FIND!$FIND$ac_delim
35604 MKDIR!$MKDIR$ac_delim
35605 MV!$MV$ac_delim
35606 RANLIB!$RANLIB$ac_delim
35607 RM!$RM$ac_delim
35608 SED!$SED$ac_delim
35609 TAR!$TAR$ac_delim
35610 BINPWD!$BINPWD$ac_delim
35611 GRAPHVIZ!$GRAPHVIZ$ac_delim
35612 DOT!$DOT$ac_delim
35613 FDP!$FDP$ac_delim
35614 NEATO!$NEATO$ac_delim
35615 TWOPI!$TWOPI$ac_delim
35616 CIRCO!$CIRCO$ac_delim
35617 GV!$GV$ac_delim
35618 DOTTY!$DOTTY$ac_delim
35619 PERL!$PERL$ac_delim
35620 HAVE_PERL!$HAVE_PERL$ac_delim
35621 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35622 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35623 INSTALL_DATA!$INSTALL_DATA$ac_delim
35624 BZIP2!$BZIP2$ac_delim
35625 DOXYGEN!$DOXYGEN$ac_delim
35626 GROFF!$GROFF$ac_delim
35627 GZIP!$GZIP$ac_delim
35628 POD2HTML!$POD2HTML$ac_delim
35629 POD2MAN!$POD2MAN$ac_delim
35630 RUNTEST!$RUNTEST$ac_delim
35631 TCLSH!$TCLSH$ac_delim
35632 ZIP!$ZIP$ac_delim
35633 OCAMLC!$OCAMLC$ac_delim
35634 OCAMLOPT!$OCAMLOPT$ac_delim
35635 OCAMLDEP!$OCAMLDEP$ac_delim
35636 OCAMLDOC!$OCAMLDOC$ac_delim
35637 GAS!$GAS$ac_delim
35638 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35639 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35640 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35641 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35642 LIBADD_DL!$LIBADD_DL$ac_delim
35643 ECHO!$ECHO$ac_delim
35644 AR!$AR$ac_delim
35645 STRIP!$STRIP$ac_delim
35646 CXXCPP!$CXXCPP$ac_delim
35647 F77!$F77$ac_delim
35648 FFLAGS!$FFLAGS$ac_delim
35649 ac_ct_F77!$ac_ct_F77$ac_delim
35650 LIBTOOL!$LIBTOOL$ac_delim
35651 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35652 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35653 LLVMGCC!$LLVMGCC$ac_delim
35654 LLVMGXX!$LLVMGXX$ac_delim
35655 USE_UDIS86!$USE_UDIS86$ac_delim
35656 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35657 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35658 ALLOCA!$ALLOCA$ac_delim
35659 MMAP_FILE!$MMAP_FILE$ac_delim
35660 LLVMCC1!$LLVMCC1$ac_delim
35661 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35662 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35663 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35664 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35665 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35666 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35667 SHLIBEXT!$SHLIBEXT$ac_delim
35668 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35669 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35670 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35671 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35672 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35673 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35674 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35675 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35676 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35677 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35678 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35679 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35680 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35681 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35682 RPATH!$RPATH$ac_delim
35683 RDYNAMIC!$RDYNAMIC$ac_delim
35684 LIBOBJS!$LIBOBJS$ac_delim
35685 LTLIBOBJS!$LTLIBOBJS$ac_delim
35686 _ACEOF
35687
35688   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
35689     break
35690   elif $ac_last_try; then
35691     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35692 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35693    { (exit 1); exit 1; }; }
35694   else
35695     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35696   fi
35697 done
35698
35699 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35700 if test -n "$ac_eof"; then
35701   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35702   ac_eof=`expr $ac_eof + 1`
35703 fi
35704
35705 cat >>$CONFIG_STATUS <<_ACEOF
35706 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35708 _ACEOF
35709 sed '
35710 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35711 s/^/s,@/; s/!/@,|#_!!_#|/
35712 :n
35713 t n
35714 s/'"$ac_delim"'$/,g/; t
35715 s/$/\\/; p
35716 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35717 ' >>$CONFIG_STATUS <conf$$subs.sed
35718 rm -f conf$$subs.sed
35719 cat >>$CONFIG_STATUS <<_ACEOF
35720 :end
35721 s/|#_!!_#|//g
35722 CEOF$ac_eof
35723 _ACEOF
35724
35725
35726 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35727 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35728 # trailing colons and then remove the whole line if VPATH becomes empty
35729 # (actually we leave an empty line to preserve line numbers).
35730 if test "x$srcdir" = x.; then
35731   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35732 s/:*\$(srcdir):*/:/
35733 s/:*\${srcdir}:*/:/
35734 s/:*@srcdir@:*/:/
35735 s/^\([^=]*=[     ]*\):*/\1/
35736 s/:*$//
35737 s/^[^=]*=[       ]*$//
35738 }'
35739 fi
35740
35741 cat >>$CONFIG_STATUS <<\_ACEOF
35742 fi # test -n "$CONFIG_FILES"
35743
35744
35745 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35746 do
35747   case $ac_tag in
35748   :[FHLC]) ac_mode=$ac_tag; continue;;
35749   esac
35750   case $ac_mode$ac_tag in
35751   :[FHL]*:*);;
35752   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35753 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35754    { (exit 1); exit 1; }; };;
35755   :[FH]-) ac_tag=-:-;;
35756   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35757   esac
35758   ac_save_IFS=$IFS
35759   IFS=:
35760   set x $ac_tag
35761   IFS=$ac_save_IFS
35762   shift
35763   ac_file=$1
35764   shift
35765
35766   case $ac_mode in
35767   :L) ac_source=$1;;
35768   :[FH])
35769     ac_file_inputs=
35770     for ac_f
35771     do
35772       case $ac_f in
35773       -) ac_f="$tmp/stdin";;
35774       *) # Look for the file first in the build tree, then in the source tree
35775          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35776          # because $ac_f cannot contain `:'.
35777          test -f "$ac_f" ||
35778            case $ac_f in
35779            [\\/$]*) false;;
35780            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35781            esac ||
35782            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35783 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35784    { (exit 1); exit 1; }; };;
35785       esac
35786       ac_file_inputs="$ac_file_inputs $ac_f"
35787     done
35788
35789     # Let's still pretend it is `configure' which instantiates (i.e., don't
35790     # use $as_me), people would be surprised to read:
35791     #    /* config.h.  Generated by config.status.  */
35792     configure_input="Generated from "`IFS=:
35793           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35794     if test x"$ac_file" != x-; then
35795       configure_input="$ac_file.  $configure_input"
35796       { echo "$as_me:$LINENO: creating $ac_file" >&5
35797 echo "$as_me: creating $ac_file" >&6;}
35798     fi
35799
35800     case $ac_tag in
35801     *:-:* | *:-) cat >"$tmp/stdin";;
35802     esac
35803     ;;
35804   esac
35805
35806   ac_dir=`$as_dirname -- "$ac_file" ||
35807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35808          X"$ac_file" : 'X\(//\)[^/]' \| \
35809          X"$ac_file" : 'X\(//\)$' \| \
35810          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35811 echo X"$ac_file" |
35812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35813             s//\1/
35814             q
35815           }
35816           /^X\(\/\/\)[^/].*/{
35817             s//\1/
35818             q
35819           }
35820           /^X\(\/\/\)$/{
35821             s//\1/
35822             q
35823           }
35824           /^X\(\/\).*/{
35825             s//\1/
35826             q
35827           }
35828           s/.*/./; q'`
35829   { as_dir="$ac_dir"
35830   case $as_dir in #(
35831   -*) as_dir=./$as_dir;;
35832   esac
35833   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35834     as_dirs=
35835     while :; do
35836       case $as_dir in #(
35837       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35838       *) as_qdir=$as_dir;;
35839       esac
35840       as_dirs="'$as_qdir' $as_dirs"
35841       as_dir=`$as_dirname -- "$as_dir" ||
35842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35843          X"$as_dir" : 'X\(//\)[^/]' \| \
35844          X"$as_dir" : 'X\(//\)$' \| \
35845          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35846 echo X"$as_dir" |
35847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35848             s//\1/
35849             q
35850           }
35851           /^X\(\/\/\)[^/].*/{
35852             s//\1/
35853             q
35854           }
35855           /^X\(\/\/\)$/{
35856             s//\1/
35857             q
35858           }
35859           /^X\(\/\).*/{
35860             s//\1/
35861             q
35862           }
35863           s/.*/./; q'`
35864       test -d "$as_dir" && break
35865     done
35866     test -z "$as_dirs" || eval "mkdir $as_dirs"
35867   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35868 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35869    { (exit 1); exit 1; }; }; }
35870   ac_builddir=.
35871
35872 case "$ac_dir" in
35873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35874 *)
35875   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35876   # A ".." for each directory in $ac_dir_suffix.
35877   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35878   case $ac_top_builddir_sub in
35879   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35880   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35881   esac ;;
35882 esac
35883 ac_abs_top_builddir=$ac_pwd
35884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35885 # for backward compatibility:
35886 ac_top_builddir=$ac_top_build_prefix
35887
35888 case $srcdir in
35889   .)  # We are building in place.
35890     ac_srcdir=.
35891     ac_top_srcdir=$ac_top_builddir_sub
35892     ac_abs_top_srcdir=$ac_pwd ;;
35893   [\\/]* | ?:[\\/]* )  # Absolute name.
35894     ac_srcdir=$srcdir$ac_dir_suffix;
35895     ac_top_srcdir=$srcdir
35896     ac_abs_top_srcdir=$srcdir ;;
35897   *) # Relative name.
35898     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35899     ac_top_srcdir=$ac_top_build_prefix$srcdir
35900     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35901 esac
35902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35903
35904
35905   case $ac_mode in
35906   :F)
35907   #
35908   # CONFIG_FILE
35909   #
35910
35911   case $INSTALL in
35912   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35913   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35914   esac
35915 _ACEOF
35916
35917 cat >>$CONFIG_STATUS <<\_ACEOF
35918 # If the template does not know about datarootdir, expand it.
35919 # FIXME: This hack should be removed a few years after 2.60.
35920 ac_datarootdir_hack=; ac_datarootdir_seen=
35921
35922 case `sed -n '/datarootdir/ {
35923   p
35924   q
35925 }
35926 /@datadir@/p
35927 /@docdir@/p
35928 /@infodir@/p
35929 /@localedir@/p
35930 /@mandir@/p
35931 ' $ac_file_inputs` in
35932 *datarootdir*) ac_datarootdir_seen=yes;;
35933 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35934   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35935 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35936 _ACEOF
35937 cat >>$CONFIG_STATUS <<_ACEOF
35938   ac_datarootdir_hack='
35939   s&@datadir@&$datadir&g
35940   s&@docdir@&$docdir&g
35941   s&@infodir@&$infodir&g
35942   s&@localedir@&$localedir&g
35943   s&@mandir@&$mandir&g
35944     s&\\\${datarootdir}&$datarootdir&g' ;;
35945 esac
35946 _ACEOF
35947
35948 # Neutralize VPATH when `$srcdir' = `.'.
35949 # Shell code in configure.ac might set extrasub.
35950 # FIXME: do we really want to maintain this feature?
35951 cat >>$CONFIG_STATUS <<_ACEOF
35952   sed "$ac_vpsub
35953 $extrasub
35954 _ACEOF
35955 cat >>$CONFIG_STATUS <<\_ACEOF
35956 :t
35957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35958 s&@configure_input@&$configure_input&;t t
35959 s&@top_builddir@&$ac_top_builddir_sub&;t t
35960 s&@srcdir@&$ac_srcdir&;t t
35961 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35962 s&@top_srcdir@&$ac_top_srcdir&;t t
35963 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35964 s&@builddir@&$ac_builddir&;t t
35965 s&@abs_builddir@&$ac_abs_builddir&;t t
35966 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35967 s&@INSTALL@&$ac_INSTALL&;t t
35968 $ac_datarootdir_hack
35969 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35970
35971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35972   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35973   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35974   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35975 which seems to be undefined.  Please make sure it is defined." >&5
35976 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35977 which seems to be undefined.  Please make sure it is defined." >&2;}
35978
35979   rm -f "$tmp/stdin"
35980   case $ac_file in
35981   -) cat "$tmp/out"; rm -f "$tmp/out";;
35982   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35983   esac
35984  ;;
35985   :H)
35986   #
35987   # CONFIG_HEADER
35988   #
35989 _ACEOF
35990
35991 # Transform confdefs.h into a sed script `conftest.defines', that
35992 # substitutes the proper values into config.h.in to produce config.h.
35993 rm -f conftest.defines conftest.tail
35994 # First, append a space to every undef/define line, to ease matching.
35995 echo 's/$/ /' >conftest.defines
35996 # Then, protect against being on the right side of a sed subst, or in
35997 # an unquoted here document, in config.status.  If some macros were
35998 # called several times there might be several #defines for the same
35999 # symbol, which is useless.  But do not sort them, since the last
36000 # AC_DEFINE must be honored.
36001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36002 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36003 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36004 # PARAMS is the parameter list in the macro definition--in most cases, it's
36005 # just an empty string.
36006 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36007 ac_dB='\\)[      (].*,\\1define\\2'
36008 ac_dC=' '
36009 ac_dD=' ,'
36010
36011 uniq confdefs.h |
36012   sed -n '
36013         t rset
36014         :rset
36015         s/^[     ]*#[    ]*define[       ][      ]*//
36016         t ok
36017         d
36018         :ok
36019         s/[\\&,]/\\&/g
36020         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36021         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36022   ' >>conftest.defines
36023
36024 # Remove the space that was appended to ease matching.
36025 # Then replace #undef with comments.  This is necessary, for
36026 # example, in the case of _POSIX_SOURCE, which is predefined and required
36027 # on some systems where configure will not decide to define it.
36028 # (The regexp can be short, since the line contains either #define or #undef.)
36029 echo 's/ $//
36030 s,^[     #]*u.*,/* & */,' >>conftest.defines
36031
36032 # Break up conftest.defines:
36033 ac_max_sed_lines=50
36034
36035 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36036 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36037 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36038 # et cetera.
36039 ac_in='$ac_file_inputs'
36040 ac_out='"$tmp/out1"'
36041 ac_nxt='"$tmp/out2"'
36042
36043 while :
36044 do
36045   # Write a here document:
36046     cat >>$CONFIG_STATUS <<_ACEOF
36047     # First, check the format of the line:
36048     cat >"\$tmp/defines.sed" <<\\CEOF
36049 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36050 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36051 b
36052 :def
36053 _ACEOF
36054   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36055   echo 'CEOF
36056     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36057   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36058   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36059   grep . conftest.tail >/dev/null || break
36060   rm -f conftest.defines
36061   mv conftest.tail conftest.defines
36062 done
36063 rm -f conftest.defines conftest.tail
36064
36065 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36066 cat >>$CONFIG_STATUS <<\_ACEOF
36067   if test x"$ac_file" != x-; then
36068     echo "/* $configure_input  */" >"$tmp/config.h"
36069     cat "$ac_result" >>"$tmp/config.h"
36070     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36071       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36072 echo "$as_me: $ac_file is unchanged" >&6;}
36073     else
36074       rm -f $ac_file
36075       mv "$tmp/config.h" $ac_file
36076     fi
36077   else
36078     echo "/* $configure_input  */"
36079     cat "$ac_result"
36080   fi
36081   rm -f "$tmp/out12"
36082  ;;
36083
36084   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36085 echo "$as_me: executing $ac_file commands" >&6;}
36086  ;;
36087   esac
36088
36089
36090   case $ac_file$ac_mode in
36091     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36092    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36093     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36094    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36095     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36096    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36097     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36098    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36099     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36100    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36101     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36102    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36103     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36104    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36105     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36106    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36107     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36108    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36109     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36110    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36111     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36112    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36113     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36114    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36115     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36116    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36117
36118   esac
36119 done # for ac_tag
36120
36121
36122 { (exit 0); exit 0; }
36123 _ACEOF
36124 chmod +x $CONFIG_STATUS
36125 ac_clean_files=$ac_clean_files_save
36126
36127
36128 # configure is writing to config.log, and then calls config.status.
36129 # config.status does its own redirection, appending to config.log.
36130 # Unfortunately, on DOS this fails, as config.log is still kept open
36131 # by configure, so config.status won't be able to write to it; its
36132 # output is simply discarded.  So we exec the FD to /dev/null,
36133 # effectively closing config.log, so it can be properly (re)opened and
36134 # appended to by config.status.  When coming back to configure, we
36135 # need to make the FD available again.
36136 if test "$no_create" != yes; then
36137   ac_cs_success=:
36138   ac_config_status_args=
36139   test "$silent" = yes &&
36140     ac_config_status_args="$ac_config_status_args --quiet"
36141   exec 5>/dev/null
36142   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36143   exec 5>>config.log
36144   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36145   # would make configure fail if this is the last instruction.
36146   $ac_cs_success || { (exit 1); exit 1; }
36147 fi
36148
36149 #
36150 # CONFIG_SUBDIRS section.
36151 #
36152 if test "$no_recursion" != yes; then
36153
36154   # Remove --cache-file and --srcdir arguments so they do not pile up.
36155   ac_sub_configure_args=
36156   ac_prev=
36157   eval "set x $ac_configure_args"
36158   shift
36159   for ac_arg
36160   do
36161     if test -n "$ac_prev"; then
36162       ac_prev=
36163       continue
36164     fi
36165     case $ac_arg in
36166     -cache-file | --cache-file | --cache-fil | --cache-fi \
36167     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36168       ac_prev=cache_file ;;
36169     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36170     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36171     | --c=*)
36172       ;;
36173     --config-cache | -C)
36174       ;;
36175     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36176       ac_prev=srcdir ;;
36177     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36178       ;;
36179     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36180       ac_prev=prefix ;;
36181     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36182       ;;
36183     *)
36184       case $ac_arg in
36185       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36186       esac
36187       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36188     esac
36189   done
36190
36191   # Always prepend --prefix to ensure using the same prefix
36192   # in subdir configurations.
36193   ac_arg="--prefix=$prefix"
36194   case $ac_arg in
36195   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36196   esac
36197   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36198
36199   ac_popdir=`pwd`
36200   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36201
36202     # Do not complain, so a configure script can configure whichever
36203     # parts of a large source tree are present.
36204     test -d "$srcdir/$ac_dir" || continue
36205
36206     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36207     echo "$as_me:$LINENO: $ac_msg" >&5
36208     echo "$ac_msg" >&6
36209     { as_dir="$ac_dir"
36210   case $as_dir in #(
36211   -*) as_dir=./$as_dir;;
36212   esac
36213   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36214     as_dirs=
36215     while :; do
36216       case $as_dir in #(
36217       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36218       *) as_qdir=$as_dir;;
36219       esac
36220       as_dirs="'$as_qdir' $as_dirs"
36221       as_dir=`$as_dirname -- "$as_dir" ||
36222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36223          X"$as_dir" : 'X\(//\)[^/]' \| \
36224          X"$as_dir" : 'X\(//\)$' \| \
36225          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36226 echo X"$as_dir" |
36227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36228             s//\1/
36229             q
36230           }
36231           /^X\(\/\/\)[^/].*/{
36232             s//\1/
36233             q
36234           }
36235           /^X\(\/\/\)$/{
36236             s//\1/
36237             q
36238           }
36239           /^X\(\/\).*/{
36240             s//\1/
36241             q
36242           }
36243           s/.*/./; q'`
36244       test -d "$as_dir" && break
36245     done
36246     test -z "$as_dirs" || eval "mkdir $as_dirs"
36247   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36248 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36249    { (exit 1); exit 1; }; }; }
36250     ac_builddir=.
36251
36252 case "$ac_dir" in
36253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36254 *)
36255   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36256   # A ".." for each directory in $ac_dir_suffix.
36257   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36258   case $ac_top_builddir_sub in
36259   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36260   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36261   esac ;;
36262 esac
36263 ac_abs_top_builddir=$ac_pwd
36264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36265 # for backward compatibility:
36266 ac_top_builddir=$ac_top_build_prefix
36267
36268 case $srcdir in
36269   .)  # We are building in place.
36270     ac_srcdir=.
36271     ac_top_srcdir=$ac_top_builddir_sub
36272     ac_abs_top_srcdir=$ac_pwd ;;
36273   [\\/]* | ?:[\\/]* )  # Absolute name.
36274     ac_srcdir=$srcdir$ac_dir_suffix;
36275     ac_top_srcdir=$srcdir
36276     ac_abs_top_srcdir=$srcdir ;;
36277   *) # Relative name.
36278     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36279     ac_top_srcdir=$ac_top_build_prefix$srcdir
36280     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36281 esac
36282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36283
36284
36285     cd "$ac_dir"
36286
36287     # Check for guested configure; otherwise get Cygnus style configure.
36288     if test -f "$ac_srcdir/configure.gnu"; then
36289       ac_sub_configure=$ac_srcdir/configure.gnu
36290     elif test -f "$ac_srcdir/configure"; then
36291       ac_sub_configure=$ac_srcdir/configure
36292     elif test -f "$ac_srcdir/configure.in"; then
36293       # This should be Cygnus configure.
36294       ac_sub_configure=$ac_aux_dir/configure
36295     else
36296       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36297 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36298       ac_sub_configure=
36299     fi
36300
36301     # The recursion is here.
36302     if test -n "$ac_sub_configure"; then
36303       # Make the cache file name correct relative to the subdirectory.
36304       case $cache_file in
36305       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36306       *) # Relative name.
36307         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36308       esac
36309
36310       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36311 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36312       # The eval makes quoting arguments work.
36313       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36314            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36315         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36316 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36317    { (exit 1); exit 1; }; }
36318     fi
36319
36320     cd "$ac_popdir"
36321   done
36322 fi
36323