Regenerate.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.1cvs.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.1cvs'
719 PACKAGE_STRING='llvm 2.1cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 DEBUG_RUNTIME
834 JIT
835 TARGET_HAS_JIT
836 ENABLE_DOXYGEN
837 ENABLE_THREADS
838 ENABLE_PIC
839 TARGETS_TO_BUILD
840 ENABLE_CBE_PRINTF_A
841 EXTRA_OPTIONS
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 LEX
846 LEXLIB
847 LEX_OUTPUT_ROOT
848 FLEX
849 YACC
850 YFLAGS
851 BISON
852 NM
853 ifGNUmake
854 LN_S
855 CMP
856 CP
857 DATE
858 FIND
859 MKDIR
860 MV
861 RANLIB
862 RM
863 SED
864 TAR
865 BINPWD
866 GRAPHVIZ
867 DOT
868 GV
869 DOTTY
870 PERL
871 HAVE_PERL
872 INSTALL_PROGRAM
873 INSTALL_SCRIPT
874 INSTALL_DATA
875 BZIP2
876 DOXYGEN
877 GROFF
878 GZIP
879 POD2HTML
880 POD2MAN
881 RUNTEST
882 TCLSH
883 ZIP
884 INSTALL_LTDL_TRUE
885 INSTALL_LTDL_FALSE
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
888 LIBADD_DL
889 ECHO
890 AR
891 STRIP
892 CXXCPP
893 F77
894 FFLAGS
895 ac_ct_F77
896 LIBTOOL
897 ETAGSFLAGS
898 LLVMGCC
899 LLVMGXX
900 USE_UDIS86
901 HAVE_PTHREAD
902 HUGE_VAL_SANITY
903 ALLOCA
904 MMAP_FILE
905 LLVMCC1
906 LLVMCC1PLUS
907 LLVMGCCDIR
908 LLVMGCCLIBEXEC
909 LLVMGCC_VERSION
910 LLVMGCC_MAJVERS
911 LLVMGCC_LANGS
912 SHLIBEXT
913 LLVM_PREFIX
914 LLVM_BINDIR
915 LLVM_LIBDIR
916 LLVM_DATADIR
917 LLVM_DOCSDIR
918 LLVM_ETCDIR
919 LLVM_INCLUDEDIR
920 LLVM_INFODIR
921 LLVM_MANDIR
922 LLVM_CONFIGTIME
923 LIBOBJS
924 LTLIBOBJS'
925 ac_subst_files=''
926       ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 CPPFLAGS
933 CPP
934 CXX
935 CXXFLAGS
936 CCC
937 YACC
938 YFLAGS
939 CXXCPP
940 F77
941 FFLAGS'
942 ac_subdirs_all='projects/sample
943 projects/privbracket
944 projects/llvm-stacker
945 projects/llvm-test
946 projects/llvm-reopt
947 projects/llvm-gcc
948 projects/llvm-java
949 projects/llvm-tv
950 projects/llvm-poolalloc
951 projects/llvm-kernel'
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
972
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
998
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1002 do
1003   # If the previous option needs an argument, assign it.
1004   if test -n "$ac_prev"; then
1005     eval $ac_prev=\$ac_option
1006     ac_prev=
1007     continue
1008   fi
1009
1010   case $ac_option in
1011   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012   *)    ac_optarg=yes ;;
1013   esac
1014
1015   # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017   case $ac_dashdash$ac_option in
1018   --)
1019     ac_dashdash=yes ;;
1020
1021   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022     ac_prev=bindir ;;
1023   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024     bindir=$ac_optarg ;;
1025
1026   -build | --build | --buil | --bui | --bu)
1027     ac_prev=build_alias ;;
1028   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029     build_alias=$ac_optarg ;;
1030
1031   -cache-file | --cache-file | --cache-fil | --cache-fi \
1032   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033     ac_prev=cache_file ;;
1034   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036     cache_file=$ac_optarg ;;
1037
1038   --config-cache | -C)
1039     cache_file=config.cache ;;
1040
1041   -datadir | --datadir | --datadi | --datad)
1042     ac_prev=datadir ;;
1043   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044     datadir=$ac_optarg ;;
1045
1046   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047   | --dataroo | --dataro | --datar)
1048     ac_prev=datarootdir ;;
1049   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051     datarootdir=$ac_optarg ;;
1052
1053   -disable-* | --disable-*)
1054     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1057       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058    { (exit 1); exit 1; }; }
1059     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1060     eval enable_$ac_feature=no ;;
1061
1062   -docdir | --docdir | --docdi | --doc | --do)
1063     ac_prev=docdir ;;
1064   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065     docdir=$ac_optarg ;;
1066
1067   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068     ac_prev=dvidir ;;
1069   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070     dvidir=$ac_optarg ;;
1071
1072   -enable-* | --enable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1079     eval enable_$ac_feature=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273       { echo "$as_me: error: invalid package name: $ac_package" >&2
1274    { (exit 1); exit 1; }; }
1275     ac_package=`echo $ac_package| sed 's/-/_/g'`
1276     eval with_$ac_package=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid package name: $ac_package" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_package=`echo $ac_package | sed 's/-/_/g'`
1285     eval with_$ac_package=no ;;
1286
1287   --x)
1288     # Obsolete; use --with-x.
1289     with_x=yes ;;
1290
1291   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292   | --x-incl | --x-inc | --x-in | --x-i)
1293     ac_prev=x_includes ;;
1294   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296     x_includes=$ac_optarg ;;
1297
1298   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300     ac_prev=x_libraries ;;
1301   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303     x_libraries=$ac_optarg ;;
1304
1305   -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307    { (exit 1); exit 1; }; }
1308     ;;
1309
1310   *=*)
1311     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312     # Reject names that are not valid shell variable names.
1313     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315    { (exit 1); exit 1; }; }
1316     eval $ac_envvar=\$ac_optarg
1317     export $ac_envvar ;;
1318
1319   *)
1320     # FIXME: should be removed in autoconf 3.0.
1321     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325     ;;
1326
1327   esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332   { echo "$as_me: error: missing argument to $ac_option" >&2
1333    { (exit 1); exit 1; }; }
1334 fi
1335
1336 # Be sure to have absolute directory names.
1337 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338                 datadir sysconfdir sharedstatedir localstatedir includedir \
1339                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340                 libdir localedir mandir
1341 do
1342   eval ac_val=\$$ac_var
1343   case $ac_val in
1344     [\\/$]* | ?:[\\/]* )  continue;;
1345     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346   esac
1347   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348    { (exit 1); exit 1; }; }
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360   if test "x$build_alias" = x; then
1361     cross_compiling=maybe
1362     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363     If a cross compiler is detected then cross compile mode will be used." >&2
1364   elif test "x$build_alias" != "x$host_alias"; then
1365     cross_compiling=yes
1366   fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378   { echo "$as_me: error: Working directory cannot be determined" >&2
1379    { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381   { echo "$as_me: error: pwd does not report name of working directory" >&2
1382    { (exit 1); exit 1; }; }
1383
1384
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387   ac_srcdir_defaulted=yes
1388   # Try the directory containing this script, then the parent directory.
1389   ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391          X"$0" : 'X\(//\)[^/]' \| \
1392          X"$0" : 'X\(//\)$' \| \
1393          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 echo X"$0" |
1395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)[^/].*/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\).*/{
1408             s//\1/
1409             q
1410           }
1411           s/.*/./; q'`
1412   srcdir=$ac_confdir
1413   if test ! -r "$srcdir/$ac_unique_file"; then
1414     srcdir=..
1415   fi
1416 else
1417   ac_srcdir_defaulted=no
1418 fi
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427    { (exit 1); exit 1; }; }
1428         pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431   srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_env_${ac_var}_value=\$${ac_var}
1442   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450   # Omit some internal or obsolete options to make the list less imposing.
1451   # This message is too long to be a string in the A/UX 3.1 sh.
1452   cat <<_ACEOF
1453 \`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463   -h, --help              display this help and exit
1464       --help=short        display options specific to this package
1465       --help=recursive    display the short help of all the included packages
1466   -V, --version           display version information and exit
1467   -q, --quiet, --silent   do not print \`checking...' messages
1468       --cache-file=FILE   cache test results in FILE [disabled]
1469   -C, --config-cache      alias for \`--cache-file=config.cache'
1470   -n, --no-create         do not create output files
1471       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474   --prefix=PREFIX         install architecture-independent files in PREFIX
1475                           [$ac_default_prefix]
1476   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477                           [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487   --bindir=DIR           user executables [EPREFIX/bin]
1488   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1489   --libexecdir=DIR       program executables [EPREFIX/libexec]
1490   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1491   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1492   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1493   --libdir=DIR           object code libraries [EPREFIX/lib]
1494   --includedir=DIR       C header files [PREFIX/include]
1495   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1496   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1497   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1498   --infodir=DIR          info documentation [DATAROOTDIR/info]
1499   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1500   --mandir=DIR           man documentation [DATAROOTDIR/man]
1501   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1502   --htmldir=DIR          html documentation [DOCDIR]
1503   --dvidir=DIR           dvi documentation [DOCDIR]
1504   --pdfdir=DIR           pdf documentation [DOCDIR]
1505   --psdir=DIR            ps documentation [DOCDIR]
1506 _ACEOF
1507
1508   cat <<\_ACEOF
1509
1510 System types:
1511   --build=BUILD     configure for building on BUILD [guessed]
1512   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513   --target=TARGET   configure for building compilers for TARGET [HOST]
1514 _ACEOF
1515 fi
1516
1517 if test -n "$ac_init_help"; then
1518   case $ac_init_help in
1519      short | recursive ) echo "Configuration of llvm 2.1cvs:";;
1520    esac
1521   cat <<\_ACEOF
1522
1523 Optional Features:
1524   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1525   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1526   --enable-optimized
1527   --enable-assertions
1528   --enable-debug-runtime
1529   --enable-jit            Enable Just In Time Compiling (default is YES)
1530   --enable-doxygen        Build doxygen documentation (default is NO)
1531   --enable-threads        Use threads if available (default is YES)
1532   --enable-pic            Build LLVM with Position Independent Code (default
1533                           is NO)
1534   --enable-targets        Build specific host targets:
1535                           all,host-only,{target-name} (default=all)
1536   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1537                           %a (default is YES)
1538   --enable-ltdl-install   install libltdl
1539   --enable-shared[=PKGS]  build shared libraries
1540                           [default=enable_shared_default]
1541   --enable-static[=PKGS]  build static libraries
1542                           [default=enable_static_default]
1543   --enable-fast-install[=PKGS]
1544                           optimize for fast installation
1545                           [default=enable_Fast_install_default]
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547
1548 Optional Packages:
1549   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1552                           searches PATH)
1553   --with-extra-options    Specify addtional options to compile LLVM with
1554   --with-tclinclude       directory where tcl headers are
1555   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556   --with-pic              try to use only PIC/non-PIC objects [default=use
1557                           both]
1558   --with-tags[=TAGS]      include additional configurations [automatic]
1559   --with-udis86=<path>    Use udis86 external x86 disassembler library
1560
1561 Some influential environment variables:
1562   CC          C compiler command
1563   CFLAGS      C compiler flags
1564   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565               nonstandard directory <lib dir>
1566   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CPP         C preprocessor
1569   CXX         C++ compiler command
1570   CXXFLAGS    C++ compiler flags
1571   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1572               the first program found out of: `bison -y', `byacc', `yacc'.
1573   YFLAGS      The list of arguments that will be passed by default to $YACC.
1574               This script will default YFLAGS to the empty string to avoid a
1575               default value of `-d' given by some make applications.
1576   CXXCPP      C++ preprocessor
1577   F77         Fortran 77 compiler command
1578   FFLAGS      Fortran 77 compiler flags
1579
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to <llvmbugs@cs.uiuc.edu>.
1584 _ACEOF
1585 ac_status=$?
1586 fi
1587
1588 if test "$ac_init_help" = "recursive"; then
1589   # If there are subdirs, report their specific --help.
1590   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591     test -d "$ac_dir" || continue
1592     ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1598   # A ".." for each directory in $ac_dir_suffix.
1599   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600   case $ac_top_builddir_sub in
1601   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603   esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611   .)  # We are building in place.
1612     ac_srcdir=.
1613     ac_top_srcdir=$ac_top_builddir_sub
1614     ac_abs_top_srcdir=$ac_pwd ;;
1615   [\\/]* | ?:[\\/]* )  # Absolute name.
1616     ac_srcdir=$srcdir$ac_dir_suffix;
1617     ac_top_srcdir=$srcdir
1618     ac_abs_top_srcdir=$srcdir ;;
1619   *) # Relative name.
1620     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621     ac_top_srcdir=$ac_top_build_prefix$srcdir
1622     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626     cd "$ac_dir" || { ac_status=$?; continue; }
1627     # Check for guested configure.
1628     if test -f "$ac_srcdir/configure.gnu"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631     elif test -f "$ac_srcdir/configure"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure" --help=recursive
1634     else
1635       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636     fi || ac_status=$?
1637     cd "$ac_pwd" || { ac_status=$?; break; }
1638   done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643   cat <<\_ACEOF
1644 llvm configure 2.1cvs
1645 generated by GNU Autoconf 2.60
1646
1647 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1648 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1649 This configure script is free software; the Free Software Foundation
1650 gives unlimited permission to copy, distribute and modify it.
1651
1652 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1653 _ACEOF
1654   exit
1655 fi
1656 cat >config.log <<_ACEOF
1657 This file contains any messages produced by compilers while
1658 running configure, to aid debugging if configure makes a mistake.
1659
1660 It was created by llvm $as_me 2.1cvs, which was
1661 generated by GNU Autoconf 2.60.  Invocation command line was
1662
1663   $ $0 $@
1664
1665 _ACEOF
1666 exec 5>>config.log
1667 {
1668 cat <<_ASUNAME
1669 ## --------- ##
1670 ## Platform. ##
1671 ## --------- ##
1672
1673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1681
1682 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1683 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1685 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1686 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1687 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1688 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1689
1690 _ASUNAME
1691
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1694 do
1695   IFS=$as_save_IFS
1696   test -z "$as_dir" && as_dir=.
1697   echo "PATH: $as_dir"
1698 done
1699 IFS=$as_save_IFS
1700
1701 } >&5
1702
1703 cat >&5 <<_ACEOF
1704
1705
1706 ## ----------- ##
1707 ## Core tests. ##
1708 ## ----------- ##
1709
1710 _ACEOF
1711
1712
1713 # Keep a trace of the command line.
1714 # Strip out --no-create and --no-recursion so they do not pile up.
1715 # Strip out --silent because we don't want to record it for future runs.
1716 # Also quote any args containing shell meta-characters.
1717 # Make two passes to allow for proper duplicate-argument suppression.
1718 ac_configure_args=
1719 ac_configure_args0=
1720 ac_configure_args1=
1721 ac_must_keep_next=false
1722 for ac_pass in 1 2
1723 do
1724   for ac_arg
1725   do
1726     case $ac_arg in
1727     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729     | -silent | --silent | --silen | --sile | --sil)
1730       continue ;;
1731     *\'*)
1732       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733     esac
1734     case $ac_pass in
1735     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736     2)
1737       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738       if test $ac_must_keep_next = true; then
1739         ac_must_keep_next=false # Got value, back to normal.
1740       else
1741         case $ac_arg in
1742           *=* | --config-cache | -C | -disable-* | --disable-* \
1743           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745           | -with-* | --with-* | -without-* | --without-* | --x)
1746             case "$ac_configure_args0 " in
1747               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748             esac
1749             ;;
1750           -* ) ac_must_keep_next=true ;;
1751         esac
1752       fi
1753       ac_configure_args="$ac_configure_args '$ac_arg'"
1754       ;;
1755     esac
1756   done
1757 done
1758 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
1761 # When interrupted or exit'd, cleanup temporary files, and complete
1762 # config.log.  We remove comments because anyway the quotes in there
1763 # would cause problems or look ugly.
1764 # WARNING: Use '\'' to represent an apostrophe within the trap.
1765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1766 trap 'exit_status=$?
1767   # Save into config.log some information that might help in debugging.
1768   {
1769     echo
1770
1771     cat <<\_ASBOX
1772 ## ---------------- ##
1773 ## Cache variables. ##
1774 ## ---------------- ##
1775 _ASBOX
1776     echo
1777     # The following way of writing the cache mishandles newlines in values,
1778 (
1779   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780     eval ac_val=\$$ac_var
1781     case $ac_val in #(
1782     *${as_nl}*)
1783       case $ac_var in #(
1784       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1786       esac
1787       case $ac_var in #(
1788       _ | IFS | as_nl) ;; #(
1789       *) $as_unset $ac_var ;;
1790       esac ;;
1791     esac
1792   done
1793   (set) 2>&1 |
1794     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795     *${as_nl}ac_space=\ *)
1796       sed -n \
1797         "s/'\''/'\''\\\\'\'''\''/g;
1798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799       ;; #(
1800     *)
1801       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802       ;;
1803     esac |
1804     sort
1805 )
1806     echo
1807
1808     cat <<\_ASBOX
1809 ## ----------------- ##
1810 ## Output variables. ##
1811 ## ----------------- ##
1812 _ASBOX
1813     echo
1814     for ac_var in $ac_subst_vars
1815     do
1816       eval ac_val=\$$ac_var
1817       case $ac_val in
1818       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819       esac
1820       echo "$ac_var='\''$ac_val'\''"
1821     done | sort
1822     echo
1823
1824     if test -n "$ac_subst_files"; then
1825       cat <<\_ASBOX
1826 ## ------------------- ##
1827 ## File substitutions. ##
1828 ## ------------------- ##
1829 _ASBOX
1830       echo
1831       for ac_var in $ac_subst_files
1832       do
1833         eval ac_val=\$$ac_var
1834         case $ac_val in
1835         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836         esac
1837         echo "$ac_var='\''$ac_val'\''"
1838       done | sort
1839       echo
1840     fi
1841
1842     if test -s confdefs.h; then
1843       cat <<\_ASBOX
1844 ## ----------- ##
1845 ## confdefs.h. ##
1846 ## ----------- ##
1847 _ASBOX
1848       echo
1849       cat confdefs.h
1850       echo
1851     fi
1852     test "$ac_signal" != 0 &&
1853       echo "$as_me: caught signal $ac_signal"
1854     echo "$as_me: exit $exit_status"
1855   } >&5
1856   rm -f core *.core core.conftest.* &&
1857     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858     exit $exit_status
1859 ' 0
1860 for ac_signal in 1 2 13 15; do
1861   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 done
1863 ac_signal=0
1864
1865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1866 rm -f -r conftest* confdefs.h
1867
1868 # Predefined preprocessor variables.
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 _ACEOF
1893
1894
1895 # Let the site file select an alternate cache file if it wants to.
1896 # Prefer explicitly selected file to automatically selected ones.
1897 if test -n "$CONFIG_SITE"; then
1898   set x "$CONFIG_SITE"
1899 elif test "x$prefix" != xNONE; then
1900   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901 else
1902   set x "$ac_default_prefix/share/config.site" \
1903         "$ac_default_prefix/etc/config.site"
1904 fi
1905 shift
1906 for ac_site_file
1907 do
1908   if test -r "$ac_site_file"; then
1909     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 echo "$as_me: loading site script $ac_site_file" >&6;}
1911     sed 's/^/| /' "$ac_site_file" >&5
1912     . "$ac_site_file"
1913   fi
1914 done
1915
1916 if test -r "$cache_file"; then
1917   # Some versions of bash will fail to source /dev/null (special
1918   # files actually), so we avoid doing that.
1919   if test -f "$cache_file"; then
1920     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 echo "$as_me: loading cache $cache_file" >&6;}
1922     case $cache_file in
1923       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924       *)                      . "./$cache_file";;
1925     esac
1926   fi
1927 else
1928   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 echo "$as_me: creating cache $cache_file" >&6;}
1930   >$cache_file
1931 fi
1932
1933 # Check that the precious variables saved in the cache have kept the same
1934 # value.
1935 ac_cache_corrupted=false
1936 for ac_var in $ac_precious_vars; do
1937   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938   eval ac_new_set=\$ac_env_${ac_var}_set
1939   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940   eval ac_new_val=\$ac_env_${ac_var}_value
1941   case $ac_old_set,$ac_new_set in
1942     set,)
1943       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945       ac_cache_corrupted=: ;;
1946     ,set)
1947       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949       ac_cache_corrupted=: ;;
1950     ,);;
1951     *)
1952       if test "x$ac_old_val" != "x$ac_new_val"; then
1953         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1954 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1955         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1956 echo "$as_me:   former value:  $ac_old_val" >&2;}
1957         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1958 echo "$as_me:   current value: $ac_new_val" >&2;}
1959         ac_cache_corrupted=:
1960       fi;;
1961   esac
1962   # Pass precious variables to config.status.
1963   if test "$ac_new_set" = set; then
1964     case $ac_new_val in
1965     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966     *) ac_arg=$ac_var=$ac_new_val ;;
1967     esac
1968     case " $ac_configure_args " in
1969       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1970       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971     esac
1972   fi
1973 done
1974 if $ac_cache_corrupted; then
1975   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013
2014 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2015
2016
2017
2018
2019
2020
2021
2022 ac_aux_dir=
2023 for ac_dir in autoconf "$srcdir"/autoconf; do
2024   if test -f "$ac_dir/install-sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install-sh -c"
2027     break
2028   elif test -f "$ac_dir/install.sh"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/install.sh -c"
2031     break
2032   elif test -f "$ac_dir/shtool"; then
2033     ac_aux_dir=$ac_dir
2034     ac_install_sh="$ac_aux_dir/shtool install -c"
2035     break
2036   fi
2037 done
2038 if test -z "$ac_aux_dir"; then
2039   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2040 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 # These three variables are undocumented and unsupported,
2045 # and are intended to be withdrawn in a future Autoconf release.
2046 # They can cause serious problems if a builder's source tree is in a directory
2047 # whose full name contains unusual characters.
2048 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2049 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2050 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2051
2052
2053
2054 if test ${srcdir} != "." ; then
2055   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2056     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2057 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2058    { (exit 1); exit 1; }; }
2059   fi
2060 fi
2061
2062 for i in `ls ${srcdir}/projects`
2063 do
2064   if test -d ${srcdir}/projects/${i} ; then
2065     case ${i} in
2066       CVS) ;;
2067       sample)       subdirs="$subdirs projects/sample"
2068     ;;
2069       privbracket)  subdirs="$subdirs projects/privbracket"
2070  ;;
2071       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2072  ;;
2073       llvm-test)    subdirs="$subdirs projects/llvm-test"
2074  ;;
2075       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2076 ;;
2077       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2078   ;;
2079       llvm-java)    subdirs="$subdirs projects/llvm-java"
2080  ;;
2081       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2082    ;;
2083       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2084  ;;
2085       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2086  ;;
2087       *)
2088         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2089 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2090         ;;
2091     esac
2092   fi
2093 done
2094
2095
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100    { (exit 1); exit 1; }; }
2101
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113    { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117    { (exit 1); exit 1; }; }
2118
2119 fi
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126    { (exit 1); exit 1; }; };;
2127 esac
2128 build=$ac_cv_build
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_build
2131 shift
2132 build_cpu=$1
2133 build_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 build_os=$*
2138 IFS=$ac_save_IFS
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140
2141
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test "x$host_alias" = x; then
2148   ac_cv_host=$ac_cv_build
2149 else
2150   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153    { (exit 1); exit 1; }; }
2154 fi
2155
2156 fi
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2159 case $ac_cv_host in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163    { (exit 1); exit 1; }; };;
2164 esac
2165 host=$ac_cv_host
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_host
2168 shift
2169 host_cpu=$1
2170 host_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 host_os=$*
2175 IFS=$ac_save_IFS
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177
2178
2179 { echo "$as_me:$LINENO: checking target system type" >&5
2180 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_target+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test "x$target_alias" = x; then
2185   ac_cv_target=$ac_cv_host
2186 else
2187   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 fi
2194 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195 echo "${ECHO_T}$ac_cv_target" >&6; }
2196 case $ac_cv_target in
2197 *-*-*) ;;
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199 echo "$as_me: error: invalid value of canonical target" >&2;}
2200    { (exit 1); exit 1; }; };;
2201 esac
2202 target=$ac_cv_target
2203 ac_save_IFS=$IFS; IFS='-'
2204 set x $ac_cv_target
2205 shift
2206 target_cpu=$1
2207 target_vendor=$2
2208 shift; shift
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2211 target_os=$*
2212 IFS=$ac_save_IFS
2213 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2214
2215
2216 # The aliases save the names the user supplied, while $host etc.
2217 # will get canonicalized.
2218 test -n "$target_alias" &&
2219   test "$program_prefix$program_suffix$program_transform_name" = \
2220     NONENONEs,x,x, &&
2221   program_prefix=${target_alias}-
2222
2223 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2224 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2225 if test "${llvm_cv_os_type+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   case $host in
2229   *-*-aix*)
2230     llvm_cv_link_all_option="-Wl,--whole-archive"
2231     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232     llvm_cv_os_type="AIX"
2233     llvm_cv_platform_type="Unix" ;;
2234   *-*-irix*)
2235     llvm_cv_link_all_option="-Wl,--whole-archive"
2236     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237     llvm_cv_os_type="IRIX"
2238     llvm_cv_platform_type="Unix" ;;
2239   *-*-cygwin*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="Cygwin"
2243     llvm_cv_platform_type="Unix" ;;
2244   *-*-darwin*)
2245     llvm_cv_link_all_option="-Wl,-all_load"
2246     llvm_cv_link_all_option="-Wl,-noall_load"
2247     llvm_cv_os_type="Darwin"
2248     llvm_cv_platform_type="Unix" ;;
2249   *-*-freebsd*)
2250     llvm_cv_link_all_option="-Wl,--whole-archive"
2251     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252     llvm_cv_os_type="FreeBSD"
2253     llvm_cv_platform_type="Unix" ;;
2254   *-*-openbsd*)
2255     llvm_cv_link_all_option="-Wl,--whole-archive"
2256     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257     llvm_cv_os_type="OpenBSD"
2258     llvm_cv_platform_type="Unix" ;;
2259   *-*-netbsd*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="NetBSD"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-hpux*)
2265     llvm_cv_link_all_option="-Wl,--whole-archive"
2266     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267     llvm_cv_os_type="HP-UX"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-interix*)
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="Interix"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-linux*)
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="Linux"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-solaris*)
2280     llvm_cv_link_all_option="-Wl,-z,allextract"
2281     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2282     llvm_cv_os_type="SunOS"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-win32*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="Win32"
2288     llvm_cv_platform_type="Win32" ;;
2289   *-*-mingw*)
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="MingW"
2293     llvm_cv_platform_type="Win32" ;;
2294   *)
2295     llvm_cv_link_all_option=""
2296     llvm_cv_no_link_all_option=""
2297     llvm_cv_os_type="Unknown"
2298     llvm_cv_platform_type="Unknown" ;;
2299 esac
2300 fi
2301 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2303
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307    { (exit 1); exit 1; }; }
2308 fi
2309
2310 OS=$llvm_cv_os_type
2311
2312
2313 LINKALL=$llvm_cv_link_all_option
2314
2315 NOLINKALL=$llvm_cv_no_link_all_option
2316
2317
2318 case $llvm_cv_platform_type in
2319   Unix)
2320
2321 cat >>confdefs.h <<\_ACEOF
2322 #define LLVM_ON_UNIX 1
2323 _ACEOF
2324
2325     LLVM_ON_UNIX=1
2326
2327     LLVM_ON_WIN32=0
2328
2329     ;;
2330   Win32)
2331
2332 cat >>confdefs.h <<\_ACEOF
2333 #define LLVM_ON_WIN32 1
2334 _ACEOF
2335
2336     LLVM_ON_UNIX=0
2337
2338     LLVM_ON_WIN32=1
2339
2340     ;;
2341 esac
2342
2343 { echo "$as_me:$LINENO: checking target architecture" >&5
2344 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2345 if test "${llvm_cv_target_arch+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   case $target in
2349   i?86-*)                 llvm_cv_target_arch="x86" ;;
2350   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2351   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2352   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2353   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2354   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2355   arm-*)                  llvm_cv_target_arch="ARM" ;;
2356   *)                      llvm_cv_target_arch="Unknown" ;;
2357 esac
2358 fi
2359 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2360 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2361
2362 if test "$llvm_cv_target_arch" = "Unknown" ; then
2363   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2364 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2365 fi
2366
2367 ARCH=$llvm_cv_target_arch
2368
2369
2370 ac_ext=c
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375 if test -n "$ac_tool_prefix"; then
2376   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_CC+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   if test -n "$CC"; then
2384   ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391   for ac_exec_ext in '' $ac_executable_extensions; do
2392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2393     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396   fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 CC=$ac_cv_prog_CC
2404 if test -n "$CC"; then
2405   { echo "$as_me:$LINENO: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6; }
2407 else
2408   { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 fi
2411
2412
2413 fi
2414 if test -z "$ac_cv_prog_CC"; then
2415   ac_ct_CC=$CC
2416   # Extract the first word of "gcc", so it can be a program name with args.
2417 set dummy gcc; ac_word=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   if test -n "$ac_ct_CC"; then
2424   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429   IFS=$as_save_IFS
2430   test -z "$as_dir" && as_dir=.
2431   for ac_exec_ext in '' $ac_executable_extensions; do
2432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433     ac_cv_prog_ac_ct_CC="gcc"
2434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435     break 2
2436   fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 echo "${ECHO_T}$ac_ct_CC" >&6; }
2447 else
2448   { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2450 fi
2451
2452   if test "x$ac_ct_CC" = x; then
2453     CC=""
2454   else
2455     case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458 whose name does not start with the host triplet.  If you think this
2459 configuration is useful to you, please write to autoconf@gnu.org." >&5
2460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461 whose name does not start with the host triplet.  If you think this
2462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463 ac_tool_warned=yes ;;
2464 esac
2465     CC=$ac_ct_CC
2466   fi
2467 else
2468   CC="$ac_cv_prog_CC"
2469 fi
2470
2471 if test -z "$CC"; then
2472           if test -n "$ac_tool_prefix"; then
2473     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}cc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   if test -n "$CC"; then
2481   ac_cv_prog_CC="$CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_CC="${ac_tool_prefix}cc"
2491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 CC=$ac_cv_prog_CC
2501 if test -n "$CC"; then
2502   { echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6; }
2504 else
2505   { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509
2510   fi
2511 fi
2512 if test -z "$CC"; then
2513   # Extract the first word of "cc", so it can be a program name with args.
2514 set dummy cc; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$CC"; then
2521   ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523   ac_prog_rejected=no
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532        ac_prog_rejected=yes
2533        continue
2534      fi
2535     ac_cv_prog_CC="cc"
2536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 if test $ac_prog_rejected = yes; then
2544   # We found a bogon in the path, so make sure we never use it.
2545   set dummy $ac_cv_prog_CC
2546   shift
2547   if test $# != 0; then
2548     # We chose a different compiler from the bogus one.
2549     # However, it has the same basename, so the bogon will be chosen
2550     # first if we set CC to just the basename; use the full file name.
2551     shift
2552     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553   fi
2554 fi
2555 fi
2556 fi
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559   { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2561 else
2562   { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$CC"; then
2569   if test -n "$ac_tool_prefix"; then
2570   for ac_prog in cl.exe
2571   do
2572     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587   for ac_exec_ext in '' $ac_executable_extensions; do
2588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601   { echo "$as_me:$LINENO: result: $CC" >&5
2602 echo "${ECHO_T}$CC" >&6; }
2603 else
2604   { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2606 fi
2607
2608
2609     test -n "$CC" && break
2610   done
2611 fi
2612 if test -z "$CC"; then
2613   ac_ct_CC=$CC
2614   for ac_prog in cl.exe
2615 do
2616   # Extract the first word of "$ac_prog", so it can be a program name with args.
2617 set dummy $ac_prog; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   if test -n "$ac_ct_CC"; then
2624   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_ac_ct_CC="$ac_prog"
2634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644 if test -n "$ac_ct_CC"; then
2645   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2646 echo "${ECHO_T}$ac_ct_CC" >&6; }
2647 else
2648   { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2650 fi
2651
2652
2653   test -n "$ac_ct_CC" && break
2654 done
2655
2656   if test "x$ac_ct_CC" = x; then
2657     CC=""
2658   else
2659     case $cross_compiling:$ac_tool_warned in
2660 yes:)
2661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662 whose name does not start with the host triplet.  If you think this
2663 configuration is useful to you, please write to autoconf@gnu.org." >&5
2664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     CC=$ac_ct_CC
2670   fi
2671 fi
2672
2673 fi
2674
2675
2676 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: no acceptable C compiler found in \$PATH
2679 See \`config.log' for more details." >&2;}
2680    { (exit 1); exit 1; }; }
2681
2682 # Provide some information about the compiler.
2683 echo "$as_me:$LINENO: checking for C compiler version" >&5
2684 ac_compiler=`set X $ac_compile; echo $2`
2685 { (ac_try="$ac_compiler --version >&5"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compiler --version >&5") 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695 { (ac_try="$ac_compiler -v >&5"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701   (eval "$ac_compiler -v >&5") 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }
2705 { (ac_try="$ac_compiler -V >&5"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compiler -V >&5") 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }
2715
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722
2723 int
2724 main ()
2725 {
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 ac_clean_files_save=$ac_clean_files
2732 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2733 # Try to create an executable without -o first, disregard a.out.
2734 # It will help us diagnose broken compilers, and finding out an intuition
2735 # of exeext.
2736 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2739 #
2740 # List of possible output files, starting from the most likely.
2741 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2742 # only as a last resort.  b.out is created by i960 compilers.
2743 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2744 #
2745 # The IRIX 6 linker writes into existing files which may not be
2746 # executable, retaining their permissions.  Remove them first so a
2747 # subsequent execution test works.
2748 ac_rmfiles=
2749 for ac_file in $ac_files
2750 do
2751   case $ac_file in
2752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754   esac
2755 done
2756 rm -f $ac_rmfiles
2757
2758 if { (ac_try="$ac_link_default"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764   (eval "$ac_link_default") 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; then
2768   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2771 # so that the user can short-circuit this test for compilers unknown to
2772 # Autoconf.
2773 for ac_file in $ac_files
2774 do
2775   test -f "$ac_file" || continue
2776   case $ac_file in
2777     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2778         ;;
2779     [ab].out )
2780         # We found the default executable, but exeext='' is most
2781         # certainly right.
2782         break;;
2783     *.* )
2784         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785         then :; else
2786            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787         fi
2788         # We set ac_cv_exeext here because the later test for it is not
2789         # safe: cross compilers may not add the suffix if given an `-o'
2790         # argument, so we may need to know it at that point already.
2791         # Even if this section looks crufty: it has the advantage of
2792         # actually working.
2793         break;;
2794     * )
2795         break;;
2796   esac
2797 done
2798 test "$ac_cv_exeext" = no && ac_cv_exeext=
2799
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: C compiler cannot create executables
2807 See \`config.log' for more details." >&2;}
2808    { (exit 77); exit 77; }; }
2809 fi
2810
2811 ac_exeext=$ac_cv_exeext
2812 { echo "$as_me:$LINENO: result: $ac_file" >&5
2813 echo "${ECHO_T}$ac_file" >&6; }
2814
2815 # Check that the compiler produces executables we can run.  If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2819 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820 # If not cross compiling, check that we can run a simple program.
2821 if test "$cross_compiling" != yes; then
2822   if { ac_try='./$ac_file'
2823   { (case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_try") 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832     cross_compiling=no
2833   else
2834     if test "$cross_compiling" = maybe; then
2835         cross_compiling=yes
2836     else
2837         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2838 If you meant to cross compile, use \`--host'.
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: cannot run C compiled programs.
2841 If you meant to cross compile, use \`--host'.
2842 See \`config.log' for more details." >&2;}
2843    { (exit 1); exit 1; }; }
2844     fi
2845   fi
2846 fi
2847 { echo "$as_me:$LINENO: result: yes" >&5
2848 echo "${ECHO_T}yes" >&6; }
2849
2850 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2851 ac_clean_files=$ac_clean_files_save
2852 # Check that the compiler produces executables we can run.  If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2856 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857 echo "${ECHO_T}$cross_compiling" >&6; }
2858
2859 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2861 if { (ac_try="$ac_link"
2862 case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867   (eval "$ac_link") 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; then
2871   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2873 # work properly (i.e., refer to `conftest.exe'), while it won't with
2874 # `rm'.
2875 for ac_file in conftest.exe conftest conftest.*; do
2876   test -f "$ac_file" || continue
2877   case $ac_file in
2878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880           break;;
2881     * ) break;;
2882   esac
2883 done
2884 else
2885   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&5
2887 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888 See \`config.log' for more details." >&2;}
2889    { (exit 1); exit 1; }; }
2890 fi
2891
2892 rm -f conftest$ac_cv_exeext
2893 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2895
2896 rm -f conftest.$ac_ext
2897 EXEEXT=$ac_cv_exeext
2898 ac_exeext=$EXEEXT
2899 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2901 if test "${ac_cv_objext+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.o conftest.obj
2920 if { (ac_try="$ac_compile"
2921 case "(($ac_try" in
2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923   *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926   (eval "$ac_compile") 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }; then
2930   for ac_file in conftest.o conftest.obj conftest.*; do
2931   test -f "$ac_file" || continue;
2932   case $ac_file in
2933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2934     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935        break;;
2936   esac
2937 done
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945 See \`config.log' for more details." >&2;}
2946    { (exit 1); exit 1; }; }
2947 fi
2948
2949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2950 fi
2951 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2952 echo "${ECHO_T}$ac_cv_objext" >&6; }
2953 OBJEXT=$ac_cv_objext
2954 ac_objext=$OBJEXT
2955 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2956 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2957 if test "${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
2971        choke me
2972 #endif
2973
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_compile") 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993   { (case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_try") 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; } &&
3002          { ac_try='test -s conftest.$ac_objext'
3003   { (case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_try") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; }; then
3012   ac_compiler_gnu=yes
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017         ac_compiler_gnu=no
3018 fi
3019
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022
3023 fi
3024 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3026 GCC=`test $ac_compiler_gnu = yes && echo yes`
3027 ac_test_CFLAGS=${CFLAGS+set}
3028 ac_save_CFLAGS=$CFLAGS
3029 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3031 if test "${ac_cv_prog_cc_g+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_save_c_werror_flag=$ac_c_werror_flag
3035    ac_c_werror_flag=yes
3036    ac_cv_prog_cc_g=no
3037    CFLAGS="-g"
3038    cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_compile") 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068   { (case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_try") 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; } &&
3077          { ac_try='test -s conftest.$ac_objext'
3078   { (case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; }; then
3087   ac_cv_prog_cc_g=yes
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092         CFLAGS=""
3093       cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compile") 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } &&
3122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123   { (case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_try") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         ac_c_werror_flag=$ac_save_c_werror_flag
3148          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 fi
3208
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213    ac_c_werror_flag=$ac_save_c_werror_flag
3214 fi
3215 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218   CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220   if test "$GCC" = yes; then
3221     CFLAGS="-g -O2"
3222   else
3223     CFLAGS="-g"
3224   fi
3225 else
3226   if test "$GCC" = yes; then
3227     CFLAGS="-O2"
3228   else
3229     CFLAGS=
3230   fi
3231 fi
3232 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   ac_cv_prog_cc_c89=no
3238 ac_save_CC=$CC
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #include <stdarg.h>
3246 #include <stdio.h>
3247 #include <sys/types.h>
3248 #include <sys/stat.h>
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3253      char **p;
3254      int i;
3255 {
3256   return p[i];
3257 }
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3259 {
3260   char *s;
3261   va_list v;
3262   va_start (v,p);
3263   s = g (p, va_arg (v,int));
3264   va_end (v);
3265   return s;
3266 }
3267
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3269    function prototypes and stuff, but not '\xHH' hex character constants.
3270    These don't provoke an error unfortunately, instead are silently treated
3271    as 'x'.  The following induces an error, until -std is added to get
3272    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3273    array size at least.  It's necessary to write '\x00'==0 to get something
3274    that's true only with -std.  */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278    inside strings and character constants.  */
3279 #define FOO(x) 'x'
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 int argc;
3287 char **argv;
3288 int
3289 main ()
3290 {
3291 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298 do
3299   CC="$ac_save_CC $ac_arg"
3300   rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_compile") 2>conftest.er1
3308   ac_status=$?
3309   grep -v '^ *+' conftest.er1 >conftest.err
3310   rm -f conftest.er1
3311   cat conftest.err >&5
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); } &&
3314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315   { (case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_try") 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }; } &&
3324          { ac_try='test -s conftest.$ac_objext'
3325   { (case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_try") 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; }; then
3334   ac_cv_prog_cc_c89=$ac_arg
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339
3340 fi
3341
3342 rm -f core conftest.err conftest.$ac_objext
3343   test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 done
3345 rm -f conftest.$ac_ext
3346 CC=$ac_save_CC
3347
3348 fi
3349 # AC_CACHE_VAL
3350 case "x$ac_cv_prog_cc_c89" in
3351   x)
3352     { echo "$as_me:$LINENO: result: none needed" >&5
3353 echo "${ECHO_T}none needed" >&6; } ;;
3354   xno)
3355     { echo "$as_me:$LINENO: result: unsupported" >&5
3356 echo "${ECHO_T}unsupported" >&6; } ;;
3357   *)
3358     CC="$CC $ac_cv_prog_cc_c89"
3359     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3361 esac
3362
3363
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3380   CPP=
3381 fi
3382 if test -z "$CPP"; then
3383   if test "${ac_cv_prog_CPP+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386       # Double quotes because CPP needs to be expanded
3387     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388     do
3389       ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3391 do
3392   # Use a header file that comes with gcc, so configuring glibc
3393   # with a fresh cross-compiler works.
3394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395   # <limits.h> exists even on freestanding compilers.
3396   # On the NeXT, cc -E runs the code through the compiler's parser,
3397   # not just through cpp. "Syntax error" is here to catch this case.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409                      Syntax error
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } >/dev/null; then
3424   if test -s conftest.err; then
3425     ac_cpp_err=$ac_c_preproc_warn_flag
3426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427   else
3428     ac_cpp_err=
3429   fi
3430 else
3431   ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434   :
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439   # Broken: fails on valid input.
3440 continue
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445   # OK, works on sane cases.  Now check whether nonexistent headers
3446   # can be detected and how.
3447   cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h.  */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h.  */
3453 #include <ac_nonexistent.h>
3454 _ACEOF
3455 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462   ac_status=$?
3463   grep -v '^ *+' conftest.er1 >conftest.err
3464   rm -f conftest.er1
3465   cat conftest.err >&5
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } >/dev/null; then
3468   if test -s conftest.err; then
3469     ac_cpp_err=$ac_c_preproc_warn_flag
3470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471   else
3472     ac_cpp_err=
3473   fi
3474 else
3475   ac_cpp_err=yes
3476 fi
3477 if test -z "$ac_cpp_err"; then
3478   # Broken: success on invalid input.
3479 continue
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484   # Passes both tests.
3485 ac_preproc_ok=:
3486 break
3487 fi
3488
3489 rm -f conftest.err conftest.$ac_ext
3490
3491 done
3492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493 rm -f conftest.err conftest.$ac_ext
3494 if $ac_preproc_ok; then
3495   break
3496 fi
3497
3498     done
3499     ac_cv_prog_CPP=$CPP
3500
3501 fi
3502   CPP=$ac_cv_prog_CPP
3503 else
3504   ac_cv_prog_CPP=$CPP
3505 fi
3506 { echo "$as_me:$LINENO: result: $CPP" >&5
3507 echo "${ECHO_T}$CPP" >&6; }
3508 ac_preproc_ok=false
3509 for ac_c_preproc_warn_flag in '' yes
3510 do
3511   # Use a header file that comes with gcc, so configuring glibc
3512   # with a fresh cross-compiler works.
3513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514   # <limits.h> exists even on freestanding compilers.
3515   # On the NeXT, cc -E runs the code through the compiler's parser,
3516   # not just through cpp. "Syntax error" is here to catch this case.
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #ifdef __STDC__
3524 # include <limits.h>
3525 #else
3526 # include <assert.h>
3527 #endif
3528                      Syntax error
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537   ac_status=$?
3538   grep -v '^ *+' conftest.er1 >conftest.err
3539   rm -f conftest.er1
3540   cat conftest.err >&5
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } >/dev/null; then
3543   if test -s conftest.err; then
3544     ac_cpp_err=$ac_c_preproc_warn_flag
3545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546   else
3547     ac_cpp_err=
3548   fi
3549 else
3550   ac_cpp_err=yes
3551 fi
3552 if test -z "$ac_cpp_err"; then
3553   :
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558   # Broken: fails on valid input.
3559 continue
3560 fi
3561
3562 rm -f conftest.err conftest.$ac_ext
3563
3564   # OK, works on sane cases.  Now check whether nonexistent headers
3565   # can be detected and how.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #include <ac_nonexistent.h>
3573 _ACEOF
3574 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } >/dev/null; then
3587   if test -s conftest.err; then
3588     ac_cpp_err=$ac_c_preproc_warn_flag
3589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590   else
3591     ac_cpp_err=
3592   fi
3593 else
3594   ac_cpp_err=yes
3595 fi
3596 if test -z "$ac_cpp_err"; then
3597   # Broken: success on invalid input.
3598 continue
3599 else
3600   echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603   # Passes both tests.
3604 ac_preproc_ok=:
3605 break
3606 fi
3607
3608 rm -f conftest.err conftest.$ac_ext
3609
3610 done
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then
3614   :
3615 else
3616   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619 See \`config.log' for more details." >&2;}
3620    { (exit 1); exit 1; }; }
3621 fi
3622
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629
3630 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3631 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3632 if test "${ac_cv_path_GREP+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   # Extract the first word of "grep ggrep" to use in msg output
3636 if test -z "$GREP"; then
3637 set dummy grep ggrep; ac_prog_name=$2
3638 if test "${ac_cv_path_GREP+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   ac_path_GREP_found=false
3642 # Loop through the user's path and test for each of PROGNAME-LIST
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3645 do
3646   IFS=$as_save_IFS
3647   test -z "$as_dir" && as_dir=.
3648   for ac_prog in grep ggrep; do
3649   for ac_exec_ext in '' $ac_executable_extensions; do
3650     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3651     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3652     # Check for GNU ac_path_GREP and select it if it is found.
3653   # Check for GNU $ac_path_GREP
3654 case `"$ac_path_GREP" --version 2>&1` in
3655 *GNU*)
3656   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3657 *)
3658   ac_count=0
3659   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3660   while :
3661   do
3662     cat "conftest.in" "conftest.in" >"conftest.tmp"
3663     mv "conftest.tmp" "conftest.in"
3664     cp "conftest.in" "conftest.nl"
3665     echo 'GREP' >> "conftest.nl"
3666     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668     ac_count=`expr $ac_count + 1`
3669     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670       # Best one so far, save it but keep looking for a better one
3671       ac_cv_path_GREP="$ac_path_GREP"
3672       ac_path_GREP_max=$ac_count
3673     fi
3674     # 10*(2^10) chars as input seems more than enough
3675     test $ac_count -gt 10 && break
3676   done
3677   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678 esac
3679
3680
3681     $ac_path_GREP_found && break 3
3682   done
3683 done
3684
3685 done
3686 IFS=$as_save_IFS
3687
3688
3689 fi
3690
3691 GREP="$ac_cv_path_GREP"
3692 if test -z "$GREP"; then
3693   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695    { (exit 1); exit 1; }; }
3696 fi
3697
3698 else
3699   ac_cv_path_GREP=$GREP
3700 fi
3701
3702
3703 fi
3704 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3705 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3706  GREP="$ac_cv_path_GREP"
3707
3708
3709 { echo "$as_me:$LINENO: checking for egrep" >&5
3710 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3715    then ac_cv_path_EGREP="$GREP -E"
3716    else
3717      # Extract the first word of "egrep" to use in msg output
3718 if test -z "$EGREP"; then
3719 set dummy egrep; ac_prog_name=$2
3720 if test "${ac_cv_path_EGREP+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   ac_path_EGREP_found=false
3724 # Loop through the user's path and test for each of PROGNAME-LIST
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727 do
3728   IFS=$as_save_IFS
3729   test -z "$as_dir" && as_dir=.
3730   for ac_prog in egrep; do
3731   for ac_exec_ext in '' $ac_executable_extensions; do
3732     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3733     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3734     # Check for GNU ac_path_EGREP and select it if it is found.
3735   # Check for GNU $ac_path_EGREP
3736 case `"$ac_path_EGREP" --version 2>&1` in
3737 *GNU*)
3738   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3739 *)
3740   ac_count=0
3741   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3742   while :
3743   do
3744     cat "conftest.in" "conftest.in" >"conftest.tmp"
3745     mv "conftest.tmp" "conftest.in"
3746     cp "conftest.in" "conftest.nl"
3747     echo 'EGREP' >> "conftest.nl"
3748     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750     ac_count=`expr $ac_count + 1`
3751     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752       # Best one so far, save it but keep looking for a better one
3753       ac_cv_path_EGREP="$ac_path_EGREP"
3754       ac_path_EGREP_max=$ac_count
3755     fi
3756     # 10*(2^10) chars as input seems more than enough
3757     test $ac_count -gt 10 && break
3758   done
3759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760 esac
3761
3762
3763     $ac_path_EGREP_found && break 3
3764   done
3765 done
3766
3767 done
3768 IFS=$as_save_IFS
3769
3770
3771 fi
3772
3773 EGREP="$ac_cv_path_EGREP"
3774 if test -z "$EGREP"; then
3775   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3777    { (exit 1); exit 1; }; }
3778 fi
3779
3780 else
3781   ac_cv_path_EGREP=$EGREP
3782 fi
3783
3784
3785    fi
3786 fi
3787 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3788 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3789  EGREP="$ac_cv_path_EGREP"
3790
3791
3792 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3794 if test "${ac_cv_header_stdc+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 #include <stdlib.h>
3804 #include <stdarg.h>
3805 #include <string.h>
3806 #include <float.h>
3807
3808 int
3809 main ()
3810 {
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823   (eval "$ac_compile") 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } &&
3830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3831   { (case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836   (eval "$ac_try") 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; } &&
3840          { ac_try='test -s conftest.$ac_objext'
3841   { (case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_try") 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   ac_cv_header_stdc=yes
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855         ac_cv_header_stdc=no
3856 fi
3857
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859
3860 if test $ac_cv_header_stdc = yes; then
3861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #include <string.h>
3869
3870 _ACEOF
3871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872   $EGREP "memchr" >/dev/null 2>&1; then
3873   :
3874 else
3875   ac_cv_header_stdc=no
3876 fi
3877 rm -f conftest*
3878
3879 fi
3880
3881 if test $ac_cv_header_stdc = yes; then
3882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3883   cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h.  */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h.  */
3889 #include <stdlib.h>
3890
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893   $EGREP "free" >/dev/null 2>&1; then
3894   :
3895 else
3896   ac_cv_header_stdc=no
3897 fi
3898 rm -f conftest*
3899
3900 fi
3901
3902 if test $ac_cv_header_stdc = yes; then
3903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904   if test "$cross_compiling" = yes; then
3905   :
3906 else
3907   cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913 #include <ctype.h>
3914 #include <stdlib.h>
3915 #if ((' ' & 0x0FF) == 0x020)
3916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918 #else
3919 # define ISLOWER(c) \
3920                    (('a' <= (c) && (c) <= 'i') \
3921                      || ('j' <= (c) && (c) <= 'r') \
3922                      || ('s' <= (c) && (c) <= 'z'))
3923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924 #endif
3925
3926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927 int
3928 main ()
3929 {
3930   int i;
3931   for (i = 0; i < 256; i++)
3932     if (XOR (islower (i), ISLOWER (i))
3933         || toupper (i) != TOUPPER (i))
3934       return 2;
3935   return 0;
3936 }
3937 _ACEOF
3938 rm -f conftest$ac_exeext
3939 if { (ac_try="$ac_link"
3940 case "(($ac_try" in
3941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942   *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945   (eval "$ac_link") 2>&5
3946   ac_status=$?
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3949   { (case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954   (eval "$ac_try") 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); }; }; then
3958   :
3959 else
3960   echo "$as_me: program exited with status $ac_status" >&5
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 ( exit $ac_status )
3965 ac_cv_header_stdc=no
3966 fi
3967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3968 fi
3969
3970
3971 fi
3972 fi
3973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3975 if test $ac_cv_header_stdc = yes; then
3976
3977 cat >>confdefs.h <<\_ACEOF
3978 #define STDC_HEADERS 1
3979 _ACEOF
3980
3981 fi
3982
3983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3994                   inttypes.h stdint.h unistd.h
3995 do
3996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 $ac_includes_default
4009
4010 #include <$ac_header>
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_compile") 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027   { (case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_try") 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; } &&
4036          { ac_try='test -s conftest.$ac_objext'
4037   { (case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042   (eval "$ac_try") 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; }; then
4046   eval "$as_ac_Header=yes"
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051         eval "$as_ac_Header=no"
4052 fi
4053
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 ac_res=`eval echo '${'$as_ac_Header'}'`
4057                { echo "$as_me:$LINENO: result: $ac_res" >&5
4058 echo "${ECHO_T}$ac_res" >&6; }
4059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060   cat >>confdefs.h <<_ACEOF
4061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062 _ACEOF
4063
4064 fi
4065
4066 done
4067
4068
4069 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4070 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4071 if test "${ac_cv_c_bigendian+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   # See if sys/param.h defines the BYTE_ORDER macro.
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <sys/types.h>
4082 #include <sys/param.h>
4083
4084 int
4085 main ()
4086 {
4087 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4088  bogus endian macros
4089 #endif
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4097 case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_compile") 2>conftest.er1
4103   ac_status=$?
4104   grep -v '^ *+' conftest.er1 >conftest.err
4105   rm -f conftest.er1
4106   cat conftest.err >&5
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); } &&
4109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110   { (case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115   (eval "$ac_try") 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); }; } &&
4119          { ac_try='test -s conftest.$ac_objext'
4120   { (case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125   (eval "$ac_try") 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; }; then
4129   # It does; now see whether it defined to BIG_ENDIAN or not.
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4138
4139 int
4140 main ()
4141 {
4142 #if BYTE_ORDER != BIG_ENDIAN
4143  not big endian
4144 #endif
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157   (eval "$ac_compile") 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165   { (case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_try") 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; } &&
4174          { ac_try='test -s conftest.$ac_objext'
4175   { (case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180   (eval "$ac_try") 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   ac_cv_c_bigendian=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189         ac_cv_c_bigendian=no
4190 fi
4191
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197         # It does not; compile a test program.
4198 if test "$cross_compiling" = yes; then
4199   # try to guess the endianness by grepping values into an object file
4200   ac_cv_c_bigendian=unknown
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4213 int
4214 main ()
4215 {
4216  _ascii (); _ebcdic ();
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } &&
4235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236   { (case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241   (eval "$ac_try") 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; } &&
4245          { ac_try='test -s conftest.$ac_objext'
4246   { (case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; }; then
4255   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4256   ac_cv_c_bigendian=yes
4257 fi
4258 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4259   if test "$ac_cv_c_bigendian" = unknown; then
4260     ac_cv_c_bigendian=no
4261   else
4262     # finding both strings is unlikely to happen, but who knows?
4263     ac_cv_c_bigendian=unknown
4264   fi
4265 fi
4266 else
4267   echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270
4271 fi
4272
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 $ac_includes_default
4282 int
4283 main ()
4284 {
4285
4286   /* Are we little or big endian?  From Harbison&Steele.  */
4287   union
4288   {
4289     long int l;
4290     char c[sizeof (long int)];
4291   } u;
4292   u.l = 1;
4293   return u.c[sizeof (long int) - 1] == 1;
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest$ac_exeext
4300 if { (ac_try="$ac_link"
4301 case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_link") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310   { (case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315   (eval "$ac_try") 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   ac_cv_c_bigendian=no
4320 else
4321   echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 ( exit $ac_status )
4326 ac_cv_c_bigendian=yes
4327 fi
4328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329 fi
4330
4331
4332 fi
4333
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4337 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4338 case $ac_cv_c_bigendian in
4339   yes)
4340     ENDIAN=big
4341  ;;
4342   no)
4343     ENDIAN=little
4344  ;;
4345   *)
4346     { { echo "$as_me:$LINENO: error: unknown endianness
4347 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4348 echo "$as_me: error: unknown endianness
4349 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4350    { (exit 1); exit 1; }; } ;;
4351 esac
4352
4353
4354 if test "$cross_compiling" = yes; then
4355   LLVM_CROSS_COMPILING=1
4356
4357
4358 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4359 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4360 if test "${ac_cv_build_exeext+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4364   ac_cv_build_exeext=.exe
4365 else
4366   ac_build_prefix=${build_alias}-
4367
4368   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4369 set dummy ${ac_build_prefix}gcc; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   if test -n "$BUILD_CC"; then
4376   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 fi
4394 fi
4395 BUILD_CC=$ac_cv_prog_BUILD_CC
4396 if test -n "$BUILD_CC"; then
4397   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4398 echo "${ECHO_T}$BUILD_CC" >&6; }
4399 else
4400   { echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6; }
4402 fi
4403
4404
4405   if test -z "$BUILD_CC"; then
4406      # Extract the first word of "gcc", so it can be a program name with args.
4407 set dummy gcc; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   if test -n "$BUILD_CC"; then
4414   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421   for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_prog_BUILD_CC="gcc"
4424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431 fi
4432 fi
4433 BUILD_CC=$ac_cv_prog_BUILD_CC
4434 if test -n "$BUILD_CC"; then
4435   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4436 echo "${ECHO_T}$BUILD_CC" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440 fi
4441
4442
4443      if test -z "$BUILD_CC"; then
4444        # Extract the first word of "cc", so it can be a program name with args.
4445 set dummy cc; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   if test -n "$BUILD_CC"; then
4452   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453 else
4454   ac_prog_rejected=no
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4463        ac_prog_rejected=yes
4464        continue
4465      fi
4466     ac_cv_prog_BUILD_CC="cc"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474 if test $ac_prog_rejected = yes; then
4475   # We found a bogon in the path, so make sure we never use it.
4476   set dummy $ac_cv_prog_BUILD_CC
4477   shift
4478   if test $# != 0; then
4479     # We chose a different compiler from the bogus one.
4480     # However, it has the same basename, so the bogon will be chosen
4481     # first if we set BUILD_CC to just the basename; use the full file name.
4482     shift
4483     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4484   fi
4485 fi
4486 fi
4487 fi
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6; }
4492 else
4493   { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 fi
4496
4497
4498      fi
4499   fi
4500   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4501 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4502    { (exit 1); exit 1; }; }
4503   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4504   rm -f conftest*
4505   echo 'int main () { return 0; }' > conftest.$ac_ext
4506   ac_cv_build_exeext=
4507   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4508   (eval $ac_build_link) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; then
4512     for file in conftest.*; do
4513       case $file in
4514       *.c | *.o | *.obj) ;;
4515       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4516       esac
4517     done
4518   else
4519     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4520 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4521    { (exit 1); exit 1; }; }
4522   fi
4523   rm -f conftest*
4524   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4525 fi
4526 fi
4527
4528 BUILD_EXEEXT=""
4529 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4530 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4531 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4532 ac_build_exeext=$BUILD_EXEEXT
4533
4534 else
4535   LLVM_CROSS_COMPILING=0
4536
4537 fi
4538
4539 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4540   cvsbuild="yes"
4541   optimize="no"
4542   CVSBUILD=CVSBUILD=1
4543
4544 else
4545   cvsbuild="no"
4546   optimize="yes"
4547 fi
4548
4549
4550 # Check whether --enable-optimized was given.
4551 if test "${enable_optimized+set}" = set; then
4552   enableval=$enable_optimized;
4553 else
4554   enableval=$optimize
4555 fi
4556
4557 if test ${enableval} = "no" ; then
4558   ENABLE_OPTIMIZED=
4559
4560 else
4561   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4562
4563 fi
4564
4565 # Check whether --enable-assertions was given.
4566 if test "${enable_assertions+set}" = set; then
4567   enableval=$enable_assertions;
4568 else
4569   enableval="yes"
4570 fi
4571
4572 if test ${enableval} = "yes" ; then
4573   DISABLE_ASSERTIONS=
4574
4575 else
4576   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4577
4578 fi
4579
4580 # Check whether --enable-debug-runtime was given.
4581 if test "${enable_debug_runtime+set}" = set; then
4582   enableval=$enable_debug_runtime;
4583 else
4584   enableval=no
4585 fi
4586
4587 if test ${enableval} = "no" ; then
4588   DEBUG_RUNTIME=
4589
4590 else
4591   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4592
4593 fi
4594
4595 # Check whether --enable-jit was given.
4596 if test "${enable_jit+set}" = set; then
4597   enableval=$enable_jit;
4598 else
4599   enableval=default
4600 fi
4601
4602 if test ${enableval} = "no"
4603 then
4604   JIT=
4605
4606 else
4607   case "$llvm_cv_target_arch" in
4608     x86)     TARGET_HAS_JIT=1
4609  ;;
4610     Sparc)   TARGET_HAS_JIT=0
4611  ;;
4612     PowerPC) TARGET_HAS_JIT=1
4613  ;;
4614     x86_64)  TARGET_HAS_JIT=1
4615  ;;
4616     Alpha)   TARGET_HAS_JIT=1
4617  ;;
4618     IA64)    TARGET_HAS_JIT=0
4619  ;;
4620     ARM)     TARGET_HAS_JIT=0
4621  ;;
4622     *)       TARGET_HAS_JIT=0
4623  ;;
4624   esac
4625 fi
4626
4627 # Check whether --enable-doxygen was given.
4628 if test "${enable_doxygen+set}" = set; then
4629   enableval=$enable_doxygen;
4630 else
4631   enableval=default
4632 fi
4633
4634 case "$enableval" in
4635   yes) ENABLE_DOXYGEN=1
4636  ;;
4637   no)  ENABLE_DOXYGEN=0
4638  ;;
4639   default) ENABLE_DOXYGEN=0
4640  ;;
4641   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4642 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4643    { (exit 1); exit 1; }; } ;;
4644 esac
4645
4646 # Check whether --enable-threads was given.
4647 if test "${enable_threads+set}" = set; then
4648   enableval=$enable_threads;
4649 else
4650   enableval=default
4651 fi
4652
4653 case "$enableval" in
4654   yes) ENABLE_THREADS=1
4655  ;;
4656   no)  ENABLE_THREADS=0
4657  ;;
4658   default) ENABLE_THREADS=1
4659  ;;
4660   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4661 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4662    { (exit 1); exit 1; }; } ;;
4663 esac
4664
4665 cat >>confdefs.h <<_ACEOF
4666 #define ENABLE_THREADS $ENABLE_THREADS
4667 _ACEOF
4668
4669
4670 # Check whether --enable-pic was given.
4671 if test "${enable_pic+set}" = set; then
4672   enableval=$enable_pic;
4673 else
4674   enableval=default
4675 fi
4676
4677 case "$enableval" in
4678   yes) ENABLE_PIC=1
4679  ;;
4680   no)  ENABLE_PIC=0
4681  ;;
4682   default) ENABLE_PIC=0
4683  ;;
4684   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4686    { (exit 1); exit 1; }; } ;;
4687 esac
4688
4689 cat >>confdefs.h <<_ACEOF
4690 #define ENABLE_PIC $ENABLE_PIC
4691 _ACEOF
4692
4693
4694 TARGETS_TO_BUILD=""
4695 # Check whether --enable-targets was given.
4696 if test "${enable_targets+set}" = set; then
4697   enableval=$enable_targets;
4698 else
4699   enableval=all
4700 fi
4701
4702 case "$enableval" in
4703   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4704   host-only)
4705     case "$llvm_cv_target_arch" in
4706       x86)     TARGETS_TO_BUILD="X86" ;;
4707       x86_64)  TARGETS_TO_BUILD="X86" ;;
4708       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4709       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4710       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4711       IA64)    TARGETS_TO_BUILD="IA64" ;;
4712       ARM)     TARGETS_TO_BUILD="ARM" ;;
4713       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4714 echo "$as_me: error: Can not set target to build" >&2;}
4715    { (exit 1); exit 1; }; } ;;
4716     esac
4717     ;;
4718   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4719       case "$a_target" in
4720         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4722         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4723         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4724         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4725         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4726         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4727         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4728 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4729    { (exit 1); exit 1; }; } ;;
4730       esac
4731   done
4732   ;;
4733 esac
4734 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4735 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4736
4737
4738 # Check whether --enable-cbe-printf-a was given.
4739 if test "${enable_cbe_printf_a+set}" = set; then
4740   enableval=$enable_cbe_printf_a;
4741 else
4742   enableval=default
4743 fi
4744
4745 case "$enableval" in
4746   yes) ENABLE_CBE_PRINTF_A=1
4747  ;;
4748   no)  ENABLE_CBE_PRINTF_A=0
4749  ;;
4750   default)  ENABLE_CBE_PRINTF_A=1
4751  ;;
4752   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4753 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4754    { (exit 1); exit 1; }; } ;;
4755 esac
4756
4757 cat >>confdefs.h <<_ACEOF
4758 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4759 _ACEOF
4760
4761
4762
4763 # Check whether --with-llvmgccdir was given.
4764 if test "${with_llvmgccdir+set}" = set; then
4765   withval=$with_llvmgccdir;
4766 else
4767   withval=default
4768 fi
4769
4770 case "$withval" in
4771   default) WITH_LLVMGCCDIR=default ;;
4772   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4773   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4774 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4775    { (exit 1); exit 1; }; } ;;
4776 esac
4777
4778
4779 # Check whether --with-extra-options was given.
4780 if test "${with_extra_options+set}" = set; then
4781   withval=$with_extra_options;
4782 else
4783   withval=default
4784 fi
4785
4786 case "$withval" in
4787   default) EXTRA_OPTIONS= ;;
4788   *) EXTRA_OPTIONS=$withval ;;
4789 esac
4790 EXTRA_OPTIONS=$EXTRA_OPTIONS
4791
4792
4793
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4800 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4801 # On Suns, sometimes $CPP names a directory.
4802 if test -n "$CPP" && test -d "$CPP"; then
4803   CPP=
4804 fi
4805 if test -z "$CPP"; then
4806   if test "${ac_cv_prog_CPP+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809       # Double quotes because CPP needs to be expanded
4810     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811     do
4812       ac_preproc_ok=false
4813 for ac_c_preproc_warn_flag in '' yes
4814 do
4815   # Use a header file that comes with gcc, so configuring glibc
4816   # with a fresh cross-compiler works.
4817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818   # <limits.h> exists even on freestanding compilers.
4819   # On the NeXT, cc -E runs the code through the compiler's parser,
4820   # not just through cpp. "Syntax error" is here to catch this case.
4821   cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h.  */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h.  */
4827 #ifdef __STDC__
4828 # include <limits.h>
4829 #else
4830 # include <assert.h>
4831 #endif
4832                      Syntax error
4833 _ACEOF
4834 if { (ac_try="$ac_cpp conftest.$ac_ext"
4835 case "(($ac_try" in
4836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837   *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841   ac_status=$?
4842   grep -v '^ *+' conftest.er1 >conftest.err
4843   rm -f conftest.er1
4844   cat conftest.err >&5
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } >/dev/null; then
4847   if test -s conftest.err; then
4848     ac_cpp_err=$ac_c_preproc_warn_flag
4849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850   else
4851     ac_cpp_err=
4852   fi
4853 else
4854   ac_cpp_err=yes
4855 fi
4856 if test -z "$ac_cpp_err"; then
4857   :
4858 else
4859   echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862   # Broken: fails on valid input.
4863 continue
4864 fi
4865
4866 rm -f conftest.err conftest.$ac_ext
4867
4868   # OK, works on sane cases.  Now check whether nonexistent headers
4869   # can be detected and how.
4870   cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876 #include <ac_nonexistent.h>
4877 _ACEOF
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } >/dev/null; then
4891   if test -s conftest.err; then
4892     ac_cpp_err=$ac_c_preproc_warn_flag
4893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4894   else
4895     ac_cpp_err=
4896   fi
4897 else
4898   ac_cpp_err=yes
4899 fi
4900 if test -z "$ac_cpp_err"; then
4901   # Broken: success on invalid input.
4902 continue
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907   # Passes both tests.
4908 ac_preproc_ok=:
4909 break
4910 fi
4911
4912 rm -f conftest.err conftest.$ac_ext
4913
4914 done
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.$ac_ext
4917 if $ac_preproc_ok; then
4918   break
4919 fi
4920
4921     done
4922     ac_cv_prog_CPP=$CPP
4923
4924 fi
4925   CPP=$ac_cv_prog_CPP
4926 else
4927   ac_cv_prog_CPP=$CPP
4928 fi
4929 { echo "$as_me:$LINENO: result: $CPP" >&5
4930 echo "${ECHO_T}$CPP" >&6; }
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4933 do
4934   # Use a header file that comes with gcc, so configuring glibc
4935   # with a fresh cross-compiler works.
4936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937   # <limits.h> exists even on freestanding compilers.
4938   # On the NeXT, cc -E runs the code through the compiler's parser,
4939   # not just through cpp. "Syntax error" is here to catch this case.
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #ifdef __STDC__
4947 # include <limits.h>
4948 #else
4949 # include <assert.h>
4950 #endif
4951                      Syntax error
4952 _ACEOF
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 case "(($ac_try" in
4955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956   *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960   ac_status=$?
4961   grep -v '^ *+' conftest.er1 >conftest.err
4962   rm -f conftest.er1
4963   cat conftest.err >&5
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); } >/dev/null; then
4966   if test -s conftest.err; then
4967     ac_cpp_err=$ac_c_preproc_warn_flag
4968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4969   else
4970     ac_cpp_err=
4971   fi
4972 else
4973   ac_cpp_err=yes
4974 fi
4975 if test -z "$ac_cpp_err"; then
4976   :
4977 else
4978   echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981   # Broken: fails on valid input.
4982 continue
4983 fi
4984
4985 rm -f conftest.err conftest.$ac_ext
4986
4987   # OK, works on sane cases.  Now check whether nonexistent headers
4988   # can be detected and how.
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #include <ac_nonexistent.h>
4996 _ACEOF
4997 if { (ac_try="$ac_cpp conftest.$ac_ext"
4998 case "(($ac_try" in
4999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000   *) ac_try_echo=$ac_try;;
5001 esac
5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } >/dev/null; then
5010   if test -s conftest.err; then
5011     ac_cpp_err=$ac_c_preproc_warn_flag
5012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013   else
5014     ac_cpp_err=
5015   fi
5016 else
5017   ac_cpp_err=yes
5018 fi
5019 if test -z "$ac_cpp_err"; then
5020   # Broken: success on invalid input.
5021 continue
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026   # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5029 fi
5030
5031 rm -f conftest.err conftest.$ac_ext
5032
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then
5037   :
5038 else
5039   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5042 See \`config.log' for more details." >&2;}
5043    { (exit 1); exit 1; }; }
5044 fi
5045
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 if test -n "$ac_tool_prefix"; then
5058   for ac_prog in gcc
5059   do
5060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_CC+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if test -n "$CC"; then
5068   ac_cv_prog_CC="$CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085 fi
5086 fi
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089   { echo "$as_me:$LINENO: result: $CC" >&5
5090 echo "${ECHO_T}$CC" >&6; }
5091 else
5092   { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5094 fi
5095
5096
5097     test -n "$CC" && break
5098   done
5099 fi
5100 if test -z "$CC"; then
5101   ac_ct_CC=$CC
5102   for ac_prog in gcc
5103 do
5104   # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy $ac_prog; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5109   echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111   if test -n "$ac_ct_CC"; then
5112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119   for ac_exec_ext in '' $ac_executable_extensions; do
5120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5121     ac_cv_prog_ac_ct_CC="$ac_prog"
5122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123     break 2
5124   fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134 echo "${ECHO_T}$ac_ct_CC" >&6; }
5135 else
5136   { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141   test -n "$ac_ct_CC" && break
5142 done
5143
5144   if test "x$ac_ct_CC" = x; then
5145     CC=""
5146   else
5147     case $cross_compiling:$ac_tool_warned in
5148 yes:)
5149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5150 whose name does not start with the host triplet.  If you think this
5151 configuration is useful to you, please write to autoconf@gnu.org." >&5
5152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5153 whose name does not start with the host triplet.  If you think this
5154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157     CC=$ac_ct_CC
5158   fi
5159 fi
5160
5161
5162 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5163 See \`config.log' for more details." >&5
5164 echo "$as_me: error: no acceptable C compiler found in \$PATH
5165 See \`config.log' for more details." >&2;}
5166    { (exit 1); exit 1; }; }
5167
5168 # Provide some information about the compiler.
5169 echo "$as_me:$LINENO: checking for C compiler version" >&5
5170 ac_compiler=`set X $ac_compile; echo $2`
5171 { (ac_try="$ac_compiler --version >&5"
5172 case "(($ac_try" in
5173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174   *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177   (eval "$ac_compiler --version >&5") 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }
5181 { (ac_try="$ac_compiler -v >&5"
5182 case "(($ac_try" in
5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184   *) ac_try_echo=$ac_try;;
5185 esac
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187   (eval "$ac_compiler -v >&5") 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); }
5191 { (ac_try="$ac_compiler -V >&5"
5192 case "(($ac_try" in
5193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194   *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197   (eval "$ac_compiler -V >&5") 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }
5201
5202 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5203 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h.  */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h.  */
5213
5214 int
5215 main ()
5216 {
5217 #ifndef __GNUC__
5218        choke me
5219 #endif
5220
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5227 case "(($ac_try" in
5228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229   *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232   (eval "$ac_compile") 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } &&
5239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240   { (case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245   (eval "$ac_try") 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; } &&
5249          { ac_try='test -s conftest.$ac_objext'
5250   { (case "(($ac_try" in
5251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252   *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255   (eval "$ac_try") 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; }; then
5259   ac_compiler_gnu=yes
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264         ac_compiler_gnu=no
5265 fi
5266
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5269
5270 fi
5271 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273 GCC=`test $ac_compiler_gnu = yes && echo yes`
5274 ac_test_CFLAGS=${CFLAGS+set}
5275 ac_save_CFLAGS=$CFLAGS
5276 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_cc_g+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   ac_save_c_werror_flag=$ac_c_werror_flag
5282    ac_c_werror_flag=yes
5283    ac_cv_prog_cc_g=no
5284    CFLAGS="-g"
5285    cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291
5292 int
5293 main ()
5294 {
5295
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_compile") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315   { (case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_try") 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; } &&
5324          { ac_try='test -s conftest.$ac_objext'
5325   { (case "(($ac_try" in
5326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327   *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330   (eval "$ac_try") 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_cv_prog_cc_g=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339         CFLAGS=""
5340       cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346
5347 int
5348 main ()
5349 {
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5357 case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362   (eval "$ac_compile") 2>conftest.er1
5363   ac_status=$?
5364   grep -v '^ *+' conftest.er1 >conftest.err
5365   rm -f conftest.er1
5366   cat conftest.err >&5
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } &&
5369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370   { (case "(($ac_try" in
5371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372   *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375   (eval "$ac_try") 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; } &&
5379          { ac_try='test -s conftest.$ac_objext'
5380   { (case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_try") 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; }; then
5389   :
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394         ac_c_werror_flag=$ac_save_c_werror_flag
5395          CFLAGS="-g"
5396          cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402
5403 int
5404 main ()
5405 {
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (ac_try="$ac_compile"
5413 case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_compile") 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } &&
5425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426   { (case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_try") 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441   (eval "$ac_try") 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   ac_cv_prog_cc_g=yes
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450
5451 fi
5452
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 fi
5455
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 fi
5458
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460    ac_c_werror_flag=$ac_save_c_werror_flag
5461 fi
5462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465   CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467   if test "$GCC" = yes; then
5468     CFLAGS="-g -O2"
5469   else
5470     CFLAGS="-g"
5471   fi
5472 else
5473   if test "$GCC" = yes; then
5474     CFLAGS="-O2"
5475   else
5476     CFLAGS=
5477   fi
5478 fi
5479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_cc_c89+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   ac_cv_prog_cc_c89=no
5485 ac_save_CC=$CC
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h.  */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h.  */
5492 #include <stdarg.h>
5493 #include <stdio.h>
5494 #include <sys/types.h>
5495 #include <sys/stat.h>
5496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5497 struct buf { int x; };
5498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499 static char *e (p, i)
5500      char **p;
5501      int i;
5502 {
5503   return p[i];
5504 }
5505 static char *f (char * (*g) (char **, int), char **p, ...)
5506 {
5507   char *s;
5508   va_list v;
5509   va_start (v,p);
5510   s = g (p, va_arg (v,int));
5511   va_end (v);
5512   return s;
5513 }
5514
5515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5516    function prototypes and stuff, but not '\xHH' hex character constants.
5517    These don't provoke an error unfortunately, instead are silently treated
5518    as 'x'.  The following induces an error, until -std is added to get
5519    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5520    array size at least.  It's necessary to write '\x00'==0 to get something
5521    that's true only with -std.  */
5522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5523
5524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525    inside strings and character constants.  */
5526 #define FOO(x) 'x'
5527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5528
5529 int test (int i, double x);
5530 struct s1 {int (*f) (int a);};
5531 struct s2 {int (*f) (double a);};
5532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533 int argc;
5534 char **argv;
5535 int
5536 main ()
5537 {
5538 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5545 do
5546   CC="$ac_save_CC $ac_arg"
5547   rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554   (eval "$ac_compile") 2>conftest.er1
5555   ac_status=$?
5556   grep -v '^ *+' conftest.er1 >conftest.err
5557   rm -f conftest.er1
5558   cat conftest.err >&5
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); } &&
5561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562   { (case "(($ac_try" in
5563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564   *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567   (eval "$ac_try") 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; } &&
5571          { ac_try='test -s conftest.$ac_objext'
5572   { (case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_try") 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   ac_cv_prog_cc_c89=$ac_arg
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext
5590   test "x$ac_cv_prog_cc_c89" != "xno" && break
5591 done
5592 rm -f conftest.$ac_ext
5593 CC=$ac_save_CC
5594
5595 fi
5596 # AC_CACHE_VAL
5597 case "x$ac_cv_prog_cc_c89" in
5598   x)
5599     { echo "$as_me:$LINENO: result: none needed" >&5
5600 echo "${ECHO_T}none needed" >&6; } ;;
5601   xno)
5602     { echo "$as_me:$LINENO: result: unsupported" >&5
5603 echo "${ECHO_T}unsupported" >&6; } ;;
5604   *)
5605     CC="$CC $ac_cv_prog_cc_c89"
5606     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5607 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5608 esac
5609
5610
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616
5617 ac_ext=cpp
5618 ac_cpp='$CXXCPP $CPPFLAGS'
5619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622 if test -z "$CXX"; then
5623   if test -n "$CCC"; then
5624     CXX=$CCC
5625   else
5626     if test -n "$ac_tool_prefix"; then
5627   for ac_prog in g++
5628   do
5629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_CXX+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   if test -n "$CXX"; then
5637   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644   for ac_exec_ext in '' $ac_executable_extensions; do
5645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5646     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 CXX=$ac_cv_prog_CXX
5657 if test -n "$CXX"; then
5658   { echo "$as_me:$LINENO: result: $CXX" >&5
5659 echo "${ECHO_T}$CXX" >&6; }
5660 else
5661   { echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6; }
5663 fi
5664
5665
5666     test -n "$CXX" && break
5667   done
5668 fi
5669 if test -z "$CXX"; then
5670   ac_ct_CXX=$CXX
5671   for ac_prog in g++
5672 do
5673   # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy $ac_prog; ac_word=$2
5675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   if test -n "$ac_ct_CXX"; then
5681   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688   for ac_exec_ext in '' $ac_executable_extensions; do
5689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5690     ac_cv_prog_ac_ct_CXX="$ac_prog"
5691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5701 if test -n "$ac_ct_CXX"; then
5702   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5703 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5704 else
5705   { echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6; }
5707 fi
5708
5709
5710   test -n "$ac_ct_CXX" && break
5711 done
5712
5713   if test "x$ac_ct_CXX" = x; then
5714     CXX="g++"
5715   else
5716     case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5719 whose name does not start with the host triplet.  If you think this
5720 configuration is useful to you, please write to autoconf@gnu.org." >&5
5721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5722 whose name does not start with the host triplet.  If you think this
5723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726     CXX=$ac_ct_CXX
5727   fi
5728 fi
5729
5730   fi
5731 fi
5732 # Provide some information about the compiler.
5733 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5734 ac_compiler=`set X $ac_compile; echo $2`
5735 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }
5745 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5752   ac_status=$?
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); }
5755 { (ac_try="$ac_compiler -V >&5"
5756 case "(($ac_try" in
5757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758   *) ac_try_echo=$ac_try;;
5759 esac
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761   (eval "$ac_compiler -V >&5") 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }
5765
5766 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5767 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5768 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h.  */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h.  */
5777
5778 int
5779 main ()
5780 {
5781 #ifndef __GNUC__
5782        choke me
5783 #endif
5784
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5804   { (case "(($ac_try" in
5805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806   *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809   (eval "$ac_try") 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; } &&
5813          { ac_try='test -s conftest.$ac_objext'
5814   { (case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_try") 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_compiler_gnu=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828         ac_compiler_gnu=no
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
5834 fi
5835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837 GXX=`test $ac_compiler_gnu = yes && echo yes`
5838 ac_test_CXXFLAGS=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS=$CXXFLAGS
5840 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842 if test "${ac_cv_prog_cxx_g+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846    ac_cxx_werror_flag=yes
5847    ac_cv_prog_cxx_g=no
5848    CXXFLAGS="-g"
5849    cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855
5856 int
5857 main ()
5858 {
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_compile") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879   { (case "(($ac_try" in
5880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881   *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884   (eval "$ac_try") 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_try") 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; }; then
5898   ac_cv_prog_cxx_g=yes
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903         CXXFLAGS=""
5904       cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 int
5912 main ()
5913 {
5914
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926   (eval "$ac_compile") 2>conftest.er1
5927   ac_status=$?
5928   grep -v '^ *+' conftest.er1 >conftest.err
5929   rm -f conftest.er1
5930   cat conftest.err >&5
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); } &&
5933          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5934   { (case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_try") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest.$ac_objext'
5944   { (case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_try") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; }; then
5953   :
5954 else
5955   echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5959          CXXFLAGS="-g"
5960          cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h.  */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h.  */
5966
5967 int
5968 main ()
5969 {
5970
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_compile") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990   { (case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_try") 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_try") 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_prog_cxx_g=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 fi
6022
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6028 if test "$ac_test_CXXFLAGS" = set; then
6029   CXXFLAGS=$ac_save_CXXFLAGS
6030 elif test $ac_cv_prog_cxx_g = yes; then
6031   if test "$GXX" = yes; then
6032     CXXFLAGS="-g -O2"
6033   else
6034     CXXFLAGS="-g"
6035   fi
6036 else
6037   if test "$GXX" = yes; then
6038     CXXFLAGS="-O2"
6039   else
6040     CXXFLAGS=
6041   fi
6042 fi
6043 ac_ext=c
6044 ac_cpp='$CPP $CPPFLAGS'
6045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049 { echo "$as_me:$LINENO: checking " >&5
6050 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6051 if test "${ac_cv_has_flex+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   for ac_prog in flex lex
6055 do
6056   # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_prog_LEX+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   if test -n "$LEX"; then
6064   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071   for ac_exec_ext in '' $ac_executable_extensions; do
6072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073     ac_cv_prog_LEX="$ac_prog"
6074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 LEX=$ac_cv_prog_LEX
6084 if test -n "$LEX"; then
6085   { echo "$as_me:$LINENO: result: $LEX" >&5
6086 echo "${ECHO_T}$LEX" >&6; }
6087 else
6088   { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090 fi
6091
6092
6093   test -n "$LEX" && break
6094 done
6095 test -n "$LEX" || LEX=":"
6096
6097 if test -z "$LEXLIB"
6098 then
6099   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6100 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6101 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   ac_check_lib_save_LIBS=$LIBS
6105 LIBS="-lfl  $LIBS"
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112
6113 /* Override any GCC internal prototype to avoid an error.
6114    Use char because int might match the return type of a GCC
6115    builtin and then its argument prototype would still apply.  */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 char yywrap ();
6120 int
6121 main ()
6122 {
6123 return yywrap ();
6124   ;
6125   return 0;
6126 }
6127 _ACEOF
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (ac_try="$ac_link"
6130 case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_link") 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } &&
6142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143   { (case "(($ac_try" in
6144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145   *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148   (eval "$ac_try") 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; } &&
6152          { ac_try='test -s conftest$ac_exeext'
6153   { (case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_try") 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   ac_cv_lib_fl_yywrap=yes
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167         ac_cv_lib_fl_yywrap=no
6168 fi
6169
6170 rm -f core conftest.err conftest.$ac_objext \
6171       conftest$ac_exeext conftest.$ac_ext
6172 LIBS=$ac_check_lib_save_LIBS
6173 fi
6174 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6175 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6176 if test $ac_cv_lib_fl_yywrap = yes; then
6177   LEXLIB="-lfl"
6178 else
6179   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6180 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6181 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-ll  $LIBS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194    Use char because int might match the return type of a GCC
6195    builtin and then its argument prototype would still apply.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char yywrap ();
6200 int
6201 main ()
6202 {
6203 return yywrap ();
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (ac_try="$ac_link"
6210 case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_link") 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223   { (case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228   (eval "$ac_try") 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; } &&
6232          { ac_try='test -s conftest$ac_exeext'
6233   { (case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238   (eval "$ac_try") 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_cv_lib_l_yywrap=yes
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247         ac_cv_lib_l_yywrap=no
6248 fi
6249
6250 rm -f core conftest.err conftest.$ac_objext \
6251       conftest$ac_exeext conftest.$ac_ext
6252 LIBS=$ac_check_lib_save_LIBS
6253 fi
6254 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6255 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6256 if test $ac_cv_lib_l_yywrap = yes; then
6257   LEXLIB="-ll"
6258 fi
6259
6260 fi
6261
6262 fi
6263
6264 if test "x$LEX" != "x:"; then
6265   { echo "$as_me:$LINENO: checking lex output file root" >&5
6266 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_lex_root+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   # The minimal lex program is just a single line: %%.  But some broken lexes
6271 # (Solaris, I think it was) want two %% lines, so accommodate them.
6272 cat >conftest.l <<_ACEOF
6273 %%
6274 %%
6275 _ACEOF
6276 { (ac_try="$LEX conftest.l"
6277 case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$LEX conftest.l") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }
6286 if test -f lex.yy.c; then
6287   ac_cv_prog_lex_root=lex.yy
6288 elif test -f lexyy.c; then
6289   ac_cv_prog_lex_root=lexyy
6290 else
6291   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6292 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6293    { (exit 1); exit 1; }; }
6294 fi
6295 fi
6296 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6297 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6298 rm -f conftest.l
6299 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6300
6301 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6302 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   # POSIX says lex can declare yytext either as a pointer or an array; the
6307 # default is implementation-dependent. Figure out which it is, since
6308 # not all implementations provide the %pointer and %array declarations.
6309 ac_cv_prog_lex_yytext_pointer=no
6310 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6311 ac_save_LIBS=$LIBS
6312 LIBS="$LIBS $LEXLIB"
6313 cat >conftest.$ac_ext <<_ACEOF
6314 `cat $LEX_OUTPUT_ROOT.c`
6315 _ACEOF
6316 rm -f conftest.$ac_objext conftest$ac_exeext
6317 if { (ac_try="$ac_link"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_link") 2>conftest.er1
6324   ac_status=$?
6325   grep -v '^ *+' conftest.er1 >conftest.err
6326   rm -f conftest.er1
6327   cat conftest.err >&5
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6331   { (case "(($ac_try" in
6332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333   *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336   (eval "$ac_try") 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }; } &&
6340          { ac_try='test -s conftest$ac_exeext'
6341   { (case "(($ac_try" in
6342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343   *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346   (eval "$ac_try") 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; }; then
6350   ac_cv_prog_lex_yytext_pointer=yes
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355
6356 fi
6357
6358 rm -f core conftest.err conftest.$ac_objext \
6359       conftest$ac_exeext conftest.$ac_ext
6360 LIBS=$ac_save_LIBS
6361 rm -f "${LEX_OUTPUT_ROOT}.c"
6362
6363 fi
6364 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6365 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6366 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6367
6368 cat >>confdefs.h <<\_ACEOF
6369 #define YYTEXT_POINTER 1
6370 _ACEOF
6371
6372 fi
6373
6374 fi
6375
6376 fi
6377 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6378 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6379 if test "$LEX" != "flex"; then
6380   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6381 echo "$as_me: error: flex not found but required" >&2;}
6382    { (exit 1); exit 1; }; }
6383 else
6384   FLEX=flex
6385
6386 fi
6387
6388 { echo "$as_me:$LINENO: checking " >&5
6389 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6390 if test "${llvm_cv_has_bison+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   for ac_prog in 'bison -y' byacc
6394 do
6395   # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_YACC+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   if test -n "$YACC"; then
6403   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410   for ac_exec_ext in '' $ac_executable_extensions; do
6411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412     ac_cv_prog_YACC="$ac_prog"
6413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 YACC=$ac_cv_prog_YACC
6423 if test -n "$YACC"; then
6424   { echo "$as_me:$LINENO: result: $YACC" >&5
6425 echo "${ECHO_T}$YACC" >&6; }
6426 else
6427   { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6429 fi
6430
6431
6432   test -n "$YACC" && break
6433 done
6434 test -n "$YACC" || YACC="yacc"
6435
6436 fi
6437 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6438 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6439 if test "$YACC" != "bison -y"; then
6440
6441   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6442 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6443 else
6444   BISON=bison
6445
6446 fi
6447
6448 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6449 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6450 if test "${lt_cv_path_NM+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   if test -n "$NM"; then
6454   # Let the user override the test.
6455   lt_cv_path_NM="$NM"
6456 else
6457   lt_nm_to_check="${ac_tool_prefix}nm"
6458   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6459     lt_nm_to_check="$lt_nm_to_check nm"
6460   fi
6461   for lt_tmp_nm in $lt_nm_to_check; do
6462     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6464       IFS="$lt_save_ifs"
6465       test -z "$ac_dir" && ac_dir=.
6466       tmp_nm="$ac_dir/$lt_tmp_nm"
6467       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6468         # Check to see if the nm accepts a BSD-compat flag.
6469         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6470         #   nm: unknown option "B" ignored
6471         # Tru64's nm complains that /dev/null is an invalid object file
6472         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6473         */dev/null* | *'Invalid file or object type'*)
6474           lt_cv_path_NM="$tmp_nm -B"
6475           break
6476           ;;
6477         *)
6478           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6479           */dev/null*)
6480             lt_cv_path_NM="$tmp_nm -p"
6481             break
6482             ;;
6483           *)
6484             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485             continue # so that we can try to find one that supports BSD flags
6486             ;;
6487           esac
6488           ;;
6489         esac
6490       fi
6491     done
6492     IFS="$lt_save_ifs"
6493   done
6494   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6495 fi
6496 fi
6497 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6498 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6499 NM="$lt_cv_path_NM"
6500
6501
6502
6503 { echo "$as_me:$LINENO: checking for GNU make" >&5
6504 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6505 if test "${llvm_cv_gnu_make_command+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   llvm_cv_gnu_make_command=''
6509  for a in "$MAKE" make gmake gnumake ; do
6510   if test -z "$a" ; then continue ; fi ;
6511   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6512   then
6513    llvm_cv_gnu_make_command=$a ;
6514    break;
6515   fi
6516  done
6517 fi
6518 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6519 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6520  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6521    ifGNUmake='' ;
6522  else
6523    ifGNUmake='#' ;
6524    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6525 echo "${ECHO_T}\"Not found\"" >&6; };
6526  fi
6527
6528
6529 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6530 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6531 LN_S=$as_ln_s
6532 if test "$LN_S" = "ln -s"; then
6533   { echo "$as_me:$LINENO: result: yes" >&5
6534 echo "${ECHO_T}yes" >&6; }
6535 else
6536   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6537 echo "${ECHO_T}no, using $LN_S" >&6; }
6538 fi
6539
6540 # Extract the first word of "cmp", so it can be a program name with args.
6541 set dummy cmp; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_CMP+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   case $CMP in
6548   [\\/]* | ?:[\\/]*)
6549   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6550   ;;
6551   *)
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6568   ;;
6569 esac
6570 fi
6571 CMP=$ac_cv_path_CMP
6572 if test -n "$CMP"; then
6573   { echo "$as_me:$LINENO: result: $CMP" >&5
6574 echo "${ECHO_T}$CMP" >&6; }
6575 else
6576   { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6578 fi
6579
6580
6581 # Extract the first word of "cp", so it can be a program name with args.
6582 set dummy cp; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_CP+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   case $CP in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6609   ;;
6610 esac
6611 fi
6612 CP=$ac_cv_path_CP
6613 if test -n "$CP"; then
6614   { echo "$as_me:$LINENO: result: $CP" >&5
6615 echo "${ECHO_T}$CP" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621
6622 # Extract the first word of "date", so it can be a program name with args.
6623 set dummy date; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_DATE+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   case $DATE in
6630   [\\/]* | ?:[\\/]*)
6631   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6632   ;;
6633   *)
6634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6650   ;;
6651 esac
6652 fi
6653 DATE=$ac_cv_path_DATE
6654 if test -n "$DATE"; then
6655   { echo "$as_me:$LINENO: result: $DATE" >&5
6656 echo "${ECHO_T}$DATE" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 # Extract the first word of "find", so it can be a program name with args.
6664 set dummy find; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_FIND+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   case $FIND in
6671   [\\/]* | ?:[\\/]*)
6672   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6673   ;;
6674   *)
6675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6691   ;;
6692 esac
6693 fi
6694 FIND=$ac_cv_path_FIND
6695 if test -n "$FIND"; then
6696   { echo "$as_me:$LINENO: result: $FIND" >&5
6697 echo "${ECHO_T}$FIND" >&6; }
6698 else
6699   { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704 # Extract the first word of "grep", so it can be a program name with args.
6705 set dummy grep; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_GREP+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $GREP in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6732   ;;
6733 esac
6734 fi
6735 GREP=$ac_cv_path_GREP
6736 if test -n "$GREP"; then
6737   { echo "$as_me:$LINENO: result: $GREP" >&5
6738 echo "${ECHO_T}$GREP" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 # Extract the first word of "mkdir", so it can be a program name with args.
6746 set dummy mkdir; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_MKDIR+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   case $MKDIR in
6753   [\\/]* | ?:[\\/]*)
6754   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6755   ;;
6756   *)
6757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6773   ;;
6774 esac
6775 fi
6776 MKDIR=$ac_cv_path_MKDIR
6777 if test -n "$MKDIR"; then
6778   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6779 echo "${ECHO_T}$MKDIR" >&6; }
6780 else
6781   { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6783 fi
6784
6785
6786 # Extract the first word of "mv", so it can be a program name with args.
6787 set dummy mv; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_MV+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   case $MV in
6794   [\\/]* | ?:[\\/]*)
6795   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6796   ;;
6797   *)
6798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803   for ac_exec_ext in '' $ac_executable_extensions; do
6804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6814   ;;
6815 esac
6816 fi
6817 MV=$ac_cv_path_MV
6818 if test -n "$MV"; then
6819   { echo "$as_me:$LINENO: result: $MV" >&5
6820 echo "${ECHO_T}$MV" >&6; }
6821 else
6822   { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6824 fi
6825
6826
6827 if test -n "$ac_tool_prefix"; then
6828   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_prog_RANLIB+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   if test -n "$RANLIB"; then
6836   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843   for ac_exec_ext in '' $ac_executable_extensions; do
6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 RANLIB=$ac_cv_prog_RANLIB
6856 if test -n "$RANLIB"; then
6857   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6858 echo "${ECHO_T}$RANLIB" >&6; }
6859 else
6860   { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6862 fi
6863
6864
6865 fi
6866 if test -z "$ac_cv_prog_RANLIB"; then
6867   ac_ct_RANLIB=$RANLIB
6868   # Extract the first word of "ranlib", so it can be a program name with args.
6869 set dummy ranlib; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   if test -n "$ac_ct_RANLIB"; then
6876   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883   for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_prog_ac_ct_RANLIB="ranlib"
6886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6896 if test -n "$ac_ct_RANLIB"; then
6897   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6898 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904   if test "x$ac_ct_RANLIB" = x; then
6905     RANLIB=":"
6906   else
6907     case $cross_compiling:$ac_tool_warned in
6908 yes:)
6909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet.  If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&5
6912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913 whose name does not start with the host triplet.  If you think this
6914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917     RANLIB=$ac_ct_RANLIB
6918   fi
6919 else
6920   RANLIB="$ac_cv_prog_RANLIB"
6921 fi
6922
6923 # Extract the first word of "rm", so it can be a program name with args.
6924 set dummy rm; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_RM+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $RM in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6951   ;;
6952 esac
6953 fi
6954 RM=$ac_cv_path_RM
6955 if test -n "$RM"; then
6956   { echo "$as_me:$LINENO: result: $RM" >&5
6957 echo "${ECHO_T}$RM" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963
6964 # Extract the first word of "sed", so it can be a program name with args.
6965 set dummy sed; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_SED+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   case $SED in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981   for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6992   ;;
6993 esac
6994 fi
6995 SED=$ac_cv_path_SED
6996 if test -n "$SED"; then
6997   { echo "$as_me:$LINENO: result: $SED" >&5
6998 echo "${ECHO_T}$SED" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004
7005 # Extract the first word of "tar", so it can be a program name with args.
7006 set dummy tar; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_TAR+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   case $TAR in
7013   [\\/]* | ?:[\\/]*)
7014   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7015   ;;
7016   *)
7017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7033   ;;
7034 esac
7035 fi
7036 TAR=$ac_cv_path_TAR
7037 if test -n "$TAR"; then
7038   { echo "$as_me:$LINENO: result: $TAR" >&5
7039 echo "${ECHO_T}$TAR" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045
7046 # Extract the first word of "pwd", so it can be a program name with args.
7047 set dummy pwd; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_BINPWD+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   case $BINPWD in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063   for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7074   ;;
7075 esac
7076 fi
7077 BINPWD=$ac_cv_path_BINPWD
7078 if test -n "$BINPWD"; then
7079   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7080 echo "${ECHO_T}$BINPWD" >&6; }
7081 else
7082   { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7084 fi
7085
7086
7087
7088 # Extract the first word of "Graphviz", so it can be a program name with args.
7089 set dummy Graphviz; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   case $GRAPHVIZ in
7096   [\\/]* | ?:[\\/]*)
7097   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7098   ;;
7099   *)
7100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7116   ;;
7117 esac
7118 fi
7119 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7120 if test -n "$GRAPHVIZ"; then
7121   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7122 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128
7129 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7130
7131 cat >>confdefs.h <<\_ACEOF
7132 #define HAVE_GRAPHVIZ 1
7133 _ACEOF
7134
7135     if test "$llvm_cv_os_type" = "MingW" ; then
7136     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137   fi
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7141 _ACEOF
7142
7143 fi
7144 # Extract the first word of "dot", so it can be a program name with args.
7145 set dummy dot; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOT+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   case $DOT in
7152   [\\/]* | ?:[\\/]*)
7153   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7154   ;;
7155   *)
7156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161   for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7172   ;;
7173 esac
7174 fi
7175 DOT=$ac_cv_path_DOT
7176 if test -n "$DOT"; then
7177   { echo "$as_me:$LINENO: result: $DOT" >&5
7178 echo "${ECHO_T}$DOT" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 if test "$DOT" != "echo dot" ; then
7186
7187 cat >>confdefs.h <<\_ACEOF
7188 #define HAVE_DOT 1
7189 _ACEOF
7190
7191     if test "$llvm_cv_os_type" = "MingW" ; then
7192     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7193   fi
7194
7195 cat >>confdefs.h <<_ACEOF
7196 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7197 _ACEOF
7198
7199 fi
7200 for ac_prog in gv gsview32
7201 do
7202   # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GV+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $GV in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 GV=$ac_cv_path_GV
7233 if test -n "$GV"; then
7234   { echo "$as_me:$LINENO: result: $GV" >&5
7235 echo "${ECHO_T}$GV" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242   test -n "$GV" && break
7243 done
7244 test -n "$GV" || GV="echo gv"
7245
7246 if test "$GV" != "echo gv" ; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_GV 1
7250 _ACEOF
7251
7252     if test "$llvm_cv_os_type" = "MingW" ; then
7253     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7254   fi
7255
7256 cat >>confdefs.h <<_ACEOF
7257 #define LLVM_PATH_GV "$GV${EXEEXT}"
7258 _ACEOF
7259
7260 fi
7261 # Extract the first word of "dotty", so it can be a program name with args.
7262 set dummy dotty; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_DOTTY+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $DOTTY in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7271   ;;
7272   *)
7273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7289   ;;
7290 esac
7291 fi
7292 DOTTY=$ac_cv_path_DOTTY
7293 if test -n "$DOTTY"; then
7294   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7295 echo "${ECHO_T}$DOTTY" >&6; }
7296 else
7297   { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7299 fi
7300
7301
7302 if test "$DOTTY" != "echo dotty" ; then
7303
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_DOTTY 1
7306 _ACEOF
7307
7308     if test "$llvm_cv_os_type" = "MingW" ; then
7309     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7310   fi
7311
7312 cat >>confdefs.h <<_ACEOF
7313 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7314 _ACEOF
7315
7316 fi
7317
7318
7319 # Extract the first word of "perl", so it can be a program name with args.
7320 set dummy perl; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_PERL+set}" = set; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   case $PERL in
7327   [\\/]* | ?:[\\/]*)
7328   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7329   ;;
7330   *)
7331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7347   ;;
7348 esac
7349 fi
7350 PERL=$ac_cv_path_PERL
7351 if test -n "$PERL"; then
7352   { echo "$as_me:$LINENO: result: $PERL" >&5
7353 echo "${ECHO_T}$PERL" >&6; }
7354 else
7355   { echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6; }
7357 fi
7358
7359
7360 if test "$PERL" != "none"; then
7361   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7362 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7363   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7364     { echo "$as_me:$LINENO: result: yes" >&5
7365 echo "${ECHO_T}yes" >&6; }
7366   else
7367     PERL=none
7368     { echo "$as_me:$LINENO: result: not found" >&5
7369 echo "${ECHO_T}not found" >&6; }
7370   fi
7371 fi
7372
7373
7374 if test x"$PERL" = xnone; then
7375    HAVE_PERL=0
7376
7377    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7378 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7379    { (exit 1); exit 1; }; }
7380 else
7381    HAVE_PERL=1
7382
7383 fi
7384
7385 # Find a good install program.  We prefer a C program (faster),
7386 # so one script is as good as another.  But avoid the broken or
7387 # incompatible versions:
7388 # SysV /etc/install, /usr/sbin/install
7389 # SunOS /usr/etc/install
7390 # IRIX /sbin/install
7391 # AIX /bin/install
7392 # AmigaOS /C/install, which installs bootblocks on floppy discs
7393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7396 # OS/2's system install, which has a completely different semantic
7397 # ./install, which can be erroneously created by make from ./install.sh.
7398 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7400 if test -z "$INSTALL"; then
7401 if test "${ac_cv_path_install+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   # Account for people who put trailing slashes in PATH elements.
7410 case $as_dir/ in
7411   ./ | .// | /cC/* | \
7412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7413   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7414   /usr/ucb/* ) ;;
7415   *)
7416     # OSF1 and SCO ODT 3.0 have their own names for install.
7417     # Don't use installbsd from OSF since it installs stuff as root
7418     # by default.
7419     for ac_prog in ginstall scoinst install; do
7420       for ac_exec_ext in '' $ac_executable_extensions; do
7421         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7422           if test $ac_prog = install &&
7423             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7424             # AIX install.  It has an incompatible calling convention.
7425             :
7426           elif test $ac_prog = install &&
7427             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7428             # program-specific install script used by HP pwplus--don't use.
7429             :
7430           else
7431             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7432             break 3
7433           fi
7434         fi
7435       done
7436     done
7437     ;;
7438 esac
7439 done
7440 IFS=$as_save_IFS
7441
7442
7443 fi
7444   if test "${ac_cv_path_install+set}" = set; then
7445     INSTALL=$ac_cv_path_install
7446   else
7447     # As a last resort, use the slow shell script.  Don't cache a
7448     # value for INSTALL within a source directory, because that will
7449     # break other packages using the cache if that directory is
7450     # removed, or if the value is a relative name.
7451     INSTALL=$ac_install_sh
7452   fi
7453 fi
7454 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7455 echo "${ECHO_T}$INSTALL" >&6; }
7456
7457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7458 # It thinks the first close brace ends the variable substitution.
7459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7460
7461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7462
7463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7464
7465
7466 # Extract the first word of "bzip2", so it can be a program name with args.
7467 set dummy bzip2; ac_word=$2
7468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470 if test "${ac_cv_path_BZIP2+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   case $BZIP2 in
7474   [\\/]* | ?:[\\/]*)
7475   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7476   ;;
7477   *)
7478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483   for ac_exec_ext in '' $ac_executable_extensions; do
7484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7485     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7494   ;;
7495 esac
7496 fi
7497 BZIP2=$ac_cv_path_BZIP2
7498 if test -n "$BZIP2"; then
7499   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7500 echo "${ECHO_T}$BZIP2" >&6; }
7501 else
7502   { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7504 fi
7505
7506
7507 # Extract the first word of "doxygen", so it can be a program name with args.
7508 set dummy doxygen; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   case $DOXYGEN in
7515   [\\/]* | ?:[\\/]*)
7516   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7517   ;;
7518   *)
7519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7535   ;;
7536 esac
7537 fi
7538 DOXYGEN=$ac_cv_path_DOXYGEN
7539 if test -n "$DOXYGEN"; then
7540   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7541 echo "${ECHO_T}$DOXYGEN" >&6; }
7542 else
7543   { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7545 fi
7546
7547
7548 # Extract the first word of "groff", so it can be a program name with args.
7549 set dummy groff; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_GROFF+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   case $GROFF in
7556   [\\/]* | ?:[\\/]*)
7557   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7558   ;;
7559   *)
7560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7576   ;;
7577 esac
7578 fi
7579 GROFF=$ac_cv_path_GROFF
7580 if test -n "$GROFF"; then
7581   { echo "$as_me:$LINENO: result: $GROFF" >&5
7582 echo "${ECHO_T}$GROFF" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588
7589 # Extract the first word of "gzip", so it can be a program name with args.
7590 set dummy gzip; ac_word=$2
7591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593 if test "${ac_cv_path_GZIP+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   case $GZIP in
7597   [\\/]* | ?:[\\/]*)
7598   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7599   ;;
7600   *)
7601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606   for ac_exec_ext in '' $ac_executable_extensions; do
7607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7608     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7617   ;;
7618 esac
7619 fi
7620 GZIP=$ac_cv_path_GZIP
7621 if test -n "$GZIP"; then
7622   { echo "$as_me:$LINENO: result: $GZIP" >&5
7623 echo "${ECHO_T}$GZIP" >&6; }
7624 else
7625   { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7627 fi
7628
7629
7630 # Extract the first word of "pod2html", so it can be a program name with args.
7631 set dummy pod2html; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_POD2HTML+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   case $POD2HTML in
7638   [\\/]* | ?:[\\/]*)
7639   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7640   ;;
7641   *)
7642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7658   ;;
7659 esac
7660 fi
7661 POD2HTML=$ac_cv_path_POD2HTML
7662 if test -n "$POD2HTML"; then
7663   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7664 echo "${ECHO_T}$POD2HTML" >&6; }
7665 else
7666   { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7668 fi
7669
7670
7671 # Extract the first word of "pod2man", so it can be a program name with args.
7672 set dummy pod2man; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_POD2MAN+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   case $POD2MAN in
7679   [\\/]* | ?:[\\/]*)
7680   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7681   ;;
7682   *)
7683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688   for ac_exec_ext in '' $ac_executable_extensions; do
7689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7699   ;;
7700 esac
7701 fi
7702 POD2MAN=$ac_cv_path_POD2MAN
7703 if test -n "$POD2MAN"; then
7704   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7705 echo "${ECHO_T}$POD2MAN" >&6; }
7706 else
7707   { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7709 fi
7710
7711
7712 # Extract the first word of "runtest", so it can be a program name with args.
7713 set dummy runtest; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_RUNTEST+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   case $RUNTEST in
7720   [\\/]* | ?:[\\/]*)
7721   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7722   ;;
7723   *)
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729   for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7740   ;;
7741 esac
7742 fi
7743 RUNTEST=$ac_cv_path_RUNTEST
7744 if test -n "$RUNTEST"; then
7745   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7746 echo "${ECHO_T}$RUNTEST" >&6; }
7747 else
7748   { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7750 fi
7751
7752
7753
7754 no_itcl=true
7755 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7756 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7757
7758 # Check whether --with-tclinclude was given.
7759 if test "${with_tclinclude+set}" = set; then
7760   withval=$with_tclinclude; with_tclinclude=${withval}
7761 else
7762   with_tclinclude=''
7763 fi
7764
7765 if test "${ac_cv_path_tclsh+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768
7769 if test x"${with_tclinclude}" != x ; then
7770   if test -f ${with_tclinclude}/tclsh ; then
7771     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7772   elif test -f ${with_tclinclude}/src/tclsh ; then
7773     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7774   else
7775     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7776 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7777    { (exit 1); exit 1; }; }
7778   fi
7779 fi
7780
7781 if test x"${ac_cv_path_tclsh}" = x ; then
7782   { echo "$as_me:$LINENO: result: none" >&5
7783 echo "${ECHO_T}none" >&6; }
7784   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
7785 do
7786   # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_TCLSH+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   case $TCLSH in
7794   [\\/]* | ?:[\\/]*)
7795   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7796   ;;
7797   *)
7798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803   for ac_exec_ext in '' $ac_executable_extensions; do
7804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813   ;;
7814 esac
7815 fi
7816 TCLSH=$ac_cv_path_TCLSH
7817 if test -n "$TCLSH"; then
7818   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7819 echo "${ECHO_T}$TCLSH" >&6; }
7820 else
7821   { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7823 fi
7824
7825
7826   test -n "$TCLSH" && break
7827 done
7828
7829   if test x"${TCLSH}" = x ; then
7830     ac_cv_path_tclsh='';
7831   else
7832     ac_cv_path_tclsh="${TCLSH}";
7833   fi
7834 else
7835   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7836 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7837   TCLSH="${ac_cv_path_tclsh}"
7838
7839 fi
7840
7841 fi
7842
7843 # Extract the first word of "zip", so it can be a program name with args.
7844 set dummy zip; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_ZIP+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   case $ZIP in
7851   [\\/]* | ?:[\\/]*)
7852   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7853   ;;
7854   *)
7855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860   for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7871   ;;
7872 esac
7873 fi
7874 ZIP=$ac_cv_path_ZIP
7875 if test -n "$ZIP"; then
7876   { echo "$as_me:$LINENO: result: $ZIP" >&5
7877 echo "${ECHO_T}$ZIP" >&6; }
7878 else
7879   { echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6; }
7881 fi
7882
7883
7884
7885 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7886 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7887 if test "${llvm_cv_link_use_r+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890    ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896   oldcflags="$CFLAGS"
7897   CFLAGS="$CFLAGS -Wl,-R."
7898   cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904
7905 int
7906 main ()
7907 {
7908 int main() { return 0; }
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest.$ac_objext conftest$ac_exeext
7914 if { (ac_try="$ac_link"
7915 case "(($ac_try" in
7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917   *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920   (eval "$ac_link") 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7928   { (case "(($ac_try" in
7929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930   *) ac_try_echo=$ac_try;;
7931 esac
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933   (eval "$ac_try") 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; } &&
7937          { ac_try='test -s conftest$ac_exeext'
7938   { (case "(($ac_try" in
7939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940   *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943   (eval "$ac_try") 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   llvm_cv_link_use_r=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952         llvm_cv_link_use_r=no
7953 fi
7954
7955 rm -f core conftest.err conftest.$ac_objext \
7956       conftest$ac_exeext conftest.$ac_ext
7957   CFLAGS="$oldcflags"
7958   ac_ext=c
7959 ac_cpp='$CPP $CPPFLAGS'
7960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964
7965 fi
7966 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7967 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7968 if test "$llvm_cv_link_use_r" = yes ; then
7969
7970 cat >>confdefs.h <<\_ACEOF
7971 #define HAVE_LINK_R 1
7972 _ACEOF
7973
7974   fi
7975
7976
7977
7978
7979 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7981 if test "${ac_cv_c_const+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990
7991 int
7992 main ()
7993 {
7994 /* FIXME: Include the comments suggested by Paul. */
7995 #ifndef __cplusplus
7996   /* Ultrix mips cc rejects this.  */
7997   typedef int charset[2];
7998   const charset x;
7999   /* SunOS 4.1.1 cc rejects this.  */
8000   char const *const *ccp;
8001   char **p;
8002   /* NEC SVR4.0.2 mips cc rejects this.  */
8003   struct point {int x, y;};
8004   static struct point const zero = {0,0};
8005   /* AIX XL C 1.02.0.0 rejects this.
8006      It does not let you subtract one const X* pointer from another in
8007      an arm of an if-expression whose if-part is not a constant
8008      expression */
8009   const char *g = "string";
8010   ccp = &g + (g ? g-g : 0);
8011   /* HPUX 7.0 cc rejects these. */
8012   ++ccp;
8013   p = (char**) ccp;
8014   ccp = (char const *const *) p;
8015   { /* SCO 3.2v4 cc rejects this.  */
8016     char *t;
8017     char const *s = 0 ? (char *) 0 : (char const *) 0;
8018
8019     *t++ = 0;
8020     if (s) return 0;
8021   }
8022   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8023     int x[] = {25, 17};
8024     const int *foo = &x[0];
8025     ++foo;
8026   }
8027   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8028     typedef const int *iptr;
8029     iptr p = 0;
8030     ++p;
8031   }
8032   { /* AIX XL C 1.02.0.0 rejects this saying
8033        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8034     struct s { int j; const int *ap[3]; };
8035     struct s *b; b->j = 5;
8036   }
8037   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038     const int foo = 10;
8039     if (!foo) return 0;
8040   }
8041   return !x[0] && !zero.x;
8042 #endif
8043
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_compile") 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest.$ac_objext'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   ac_cv_c_const=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         ac_cv_c_const=no
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 fi
8092 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8093 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8094 if test $ac_cv_c_const = no; then
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define const
8098 _ACEOF
8099
8100 fi
8101
8102
8103
8104
8105
8106
8107 ac_header_dirent=no
8108 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8109   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8110 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8111 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <sys/types.h>
8122 #include <$ac_hdr>
8123
8124 int
8125 main ()
8126 {
8127 if ((DIR *) 0)
8128 return 0;
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_compile") 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148   { (case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153   (eval "$ac_try") 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; } &&
8157          { ac_try='test -s conftest.$ac_objext'
8158   { (case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_try") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   eval "$as_ac_Header=yes"
8168 else
8169   echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172         eval "$as_ac_Header=no"
8173 fi
8174
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177 ac_res=`eval echo '${'$as_ac_Header'}'`
8178                { echo "$as_me:$LINENO: result: $ac_res" >&5
8179 echo "${ECHO_T}$ac_res" >&6; }
8180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8181   cat >>confdefs.h <<_ACEOF
8182 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8183 _ACEOF
8184
8185 ac_header_dirent=$ac_hdr; break
8186 fi
8187
8188 done
8189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8190 if test $ac_header_dirent = dirent.h; then
8191   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8193 if test "${ac_cv_search_opendir+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   ac_func_search_save_LIBS=$LIBS
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203
8204 /* Override any GCC internal prototype to avoid an error.
8205    Use char because int might match the return type of a GCC
8206    builtin and then its argument prototype would still apply.  */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 char opendir ();
8211 int
8212 main ()
8213 {
8214 return opendir ();
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 for ac_lib in '' dir; do
8220   if test -z "$ac_lib"; then
8221     ac_res="none required"
8222   else
8223     ac_res=-l$ac_lib
8224     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8225   fi
8226   rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8241   { (case "(($ac_try" in
8242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243   *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246   (eval "$ac_try") 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256   (eval "$ac_try") 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_cv_search_opendir=$ac_res
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265
8266 fi
8267
8268 rm -f core conftest.err conftest.$ac_objext \
8269       conftest$ac_exeext
8270   if test "${ac_cv_search_opendir+set}" = set; then
8271   break
8272 fi
8273 done
8274 if test "${ac_cv_search_opendir+set}" = set; then
8275   :
8276 else
8277   ac_cv_search_opendir=no
8278 fi
8279 rm conftest.$ac_ext
8280 LIBS=$ac_func_search_save_LIBS
8281 fi
8282 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8283 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8284 ac_res=$ac_cv_search_opendir
8285 if test "$ac_res" != no; then
8286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8287
8288 fi
8289
8290 else
8291   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294   echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296   ac_func_search_save_LIBS=$LIBS
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303
8304 /* Override any GCC internal prototype to avoid an error.
8305    Use char because int might match the return type of a GCC
8306    builtin and then its argument prototype would still apply.  */
8307 #ifdef __cplusplus
8308 extern "C"
8309 #endif
8310 char opendir ();
8311 int
8312 main ()
8313 {
8314 return opendir ();
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 for ac_lib in '' x; do
8320   if test -z "$ac_lib"; then
8321     ac_res="none required"
8322   else
8323     ac_res=-l$ac_lib
8324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8325   fi
8326   rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_link") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; } &&
8350          { ac_try='test -s conftest$ac_exeext'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   ac_cv_search_opendir=$ac_res
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365
8366 fi
8367
8368 rm -f core conftest.err conftest.$ac_objext \
8369       conftest$ac_exeext
8370   if test "${ac_cv_search_opendir+set}" = set; then
8371   break
8372 fi
8373 done
8374 if test "${ac_cv_search_opendir+set}" = set; then
8375   :
8376 else
8377   ac_cv_search_opendir=no
8378 fi
8379 rm conftest.$ac_ext
8380 LIBS=$ac_func_search_save_LIBS
8381 fi
8382 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8383 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8384 ac_res=$ac_cv_search_opendir
8385 if test "$ac_res" != no; then
8386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8387
8388 fi
8389
8390 fi
8391
8392
8393 for ac_header in dlfcn.h
8394 do
8395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 fi
8402 ac_res=`eval echo '${'$as_ac_Header'}'`
8403                { echo "$as_me:$LINENO: result: $ac_res" >&5
8404 echo "${ECHO_T}$ac_res" >&6; }
8405 else
8406   # Is the header compilable?
8407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415 $ac_includes_default
8416 #include <$ac_header>
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compile") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433   { (case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_header_compiler=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457         ac_header_compiler=no
8458 fi
8459
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462 echo "${ECHO_T}$ac_header_compiler" >&6; }
8463
8464 # Is the header present?
8465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 #include <$ac_header>
8474 _ACEOF
8475 if { (ac_try="$ac_cpp conftest.$ac_ext"
8476 case "(($ac_try" in
8477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478   *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } >/dev/null; then
8488   if test -s conftest.err; then
8489     ac_cpp_err=$ac_c_preproc_warn_flag
8490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491   else
8492     ac_cpp_err=
8493   fi
8494 else
8495   ac_cpp_err=yes
8496 fi
8497 if test -z "$ac_cpp_err"; then
8498   ac_header_preproc=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503   ac_header_preproc=no
8504 fi
8505
8506 rm -f conftest.err conftest.$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508 echo "${ECHO_T}$ac_header_preproc" >&6; }
8509
8510 # So?  What about this header?
8511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512   yes:no: )
8513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517     ac_header_preproc=yes
8518     ;;
8519   no:yes:* )
8520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532     ( cat <<\_ASBOX
8533 ## ----------------------------------- ##
8534 ## Report this to llvmbugs@cs.uiuc.edu ##
8535 ## ----------------------------------- ##
8536 _ASBOX
8537      ) | sed "s/^/$as_me: WARNING:     /" >&2
8538     ;;
8539 esac
8540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   eval "$as_ac_Header=\$ac_header_preproc"
8546 fi
8547 ac_res=`eval echo '${'$as_ac_Header'}'`
8548                { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8550
8551 fi
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553   cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8556
8557 fi
8558
8559 done
8560
8561 # Check whether --enable-ltdl-install was given.
8562 if test "${enable_ltdl_install+set}" = set; then
8563   enableval=$enable_ltdl_install;
8564 fi
8565
8566
8567
8568
8569 if test x"${enable_ltdl_install-no}" != xno; then
8570   INSTALL_LTDL_TRUE=
8571   INSTALL_LTDL_FALSE='#'
8572 else
8573   INSTALL_LTDL_TRUE='#'
8574   INSTALL_LTDL_FALSE=
8575 fi
8576
8577
8578
8579 if test x"${enable_ltdl_convenience-no}" != xno; then
8580   CONVENIENCE_LTDL_TRUE=
8581   CONVENIENCE_LTDL_FALSE='#'
8582 else
8583   CONVENIENCE_LTDL_TRUE='#'
8584   CONVENIENCE_LTDL_FALSE=
8585 fi
8586
8587
8588 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8590 library_names_spec=
8591 libname_spec='lib$name'
8592 soname_spec=
8593 shrext_cmds=".so"
8594 postinstall_cmds=
8595 postuninstall_cmds=
8596 finish_cmds=
8597 finish_eval=
8598 shlibpath_var=
8599 shlibpath_overrides_runpath=unknown
8600 version_type=none
8601 dynamic_linker="$host_os ld.so"
8602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8603 if test "$GCC" = yes; then
8604   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8606     # if the path contains ";" then we assume it to be the separator
8607     # otherwise default to the standard path separator (i.e. ":") - it is
8608     # assumed that no part of a normal pathname contains ";" but that should
8609     # okay in the real world where ";" in dirpaths is itself problematic.
8610     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611   else
8612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8613   fi
8614 else
8615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8616 fi
8617 need_lib_prefix=unknown
8618 hardcode_into_libs=no
8619
8620 # when you set need_version to no, make sure it does not cause -set_version
8621 # flags to be left without arguments
8622 need_version=unknown
8623
8624 case $host_os in
8625 aix3*)
8626   version_type=linux
8627   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8628   shlibpath_var=LIBPATH
8629
8630   # AIX 3 has no versioning support, so we append a major version to the name.
8631   soname_spec='${libname}${release}${shared_ext}$major'
8632   ;;
8633
8634 aix4* | aix5*)
8635   version_type=linux
8636   need_lib_prefix=no
8637   need_version=no
8638   hardcode_into_libs=yes
8639   if test "$host_cpu" = ia64; then
8640     # AIX 5 supports IA64
8641     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8642     shlibpath_var=LD_LIBRARY_PATH
8643   else
8644     # With GCC up to 2.95.x, collect2 would create an import file
8645     # for dependence libraries.  The import file would start with
8646     # the line `#! .'.  This would cause the generated library to
8647     # depend on `.', always an invalid library.  This was fixed in
8648     # development snapshots of GCC prior to 3.0.
8649     case $host_os in
8650       aix4 | aix4.[01] | aix4.[01].*)
8651       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8652            echo ' yes '
8653            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8654         :
8655       else
8656         can_build_shared=no
8657       fi
8658       ;;
8659     esac
8660     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8661     # soname into executable. Probably we can add versioning support to
8662     # collect2, so additional links can be useful in future.
8663     if test "$aix_use_runtimelinking" = yes; then
8664       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8665       # instead of lib<name>.a to let people know that these are not
8666       # typical AIX shared libraries.
8667       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668     else
8669       # We preserve .a as extension for shared libraries through AIX4.2
8670       # and later when we are not doing run time linking.
8671       library_names_spec='${libname}${release}.a $libname.a'
8672       soname_spec='${libname}${release}${shared_ext}$major'
8673     fi
8674     shlibpath_var=LIBPATH
8675   fi
8676   ;;
8677
8678 amigaos*)
8679   library_names_spec='$libname.ixlibrary $libname.a'
8680   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8681   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'
8682   ;;
8683
8684 beos*)
8685   library_names_spec='${libname}${shared_ext}'
8686   dynamic_linker="$host_os ld.so"
8687   shlibpath_var=LIBRARY_PATH
8688   ;;
8689
8690 bsdi[45]*)
8691   version_type=linux
8692   need_version=no
8693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694   soname_spec='${libname}${release}${shared_ext}$major'
8695   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8696   shlibpath_var=LD_LIBRARY_PATH
8697   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8698   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8699   # the default ld.so.conf also contains /usr/contrib/lib and
8700   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8701   # libtool to hard-code these into programs
8702   ;;
8703
8704 cygwin* | mingw* | pw32*)
8705   version_type=windows
8706   shrext_cmds=".dll"
8707   need_version=no
8708   need_lib_prefix=no
8709
8710   case $GCC,$host_os in
8711   yes,cygwin* | yes,mingw* | yes,pw32*)
8712     library_names_spec='$libname.dll.a'
8713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8714     postinstall_cmds='base_file=`basename \${file}`~
8715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8716       dldir=$destdir/`dirname \$dlpath`~
8717       test -d \$dldir || mkdir -p \$dldir~
8718       $install_prog $dir/$dlname \$dldir/$dlname~
8719       chmod a+x \$dldir/$dlname'
8720     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8721       dlpath=$dir/\$dldll~
8722        $rm \$dlpath'
8723     shlibpath_overrides_runpath=yes
8724
8725     case $host_os in
8726     cygwin*)
8727       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8728       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8730       ;;
8731     mingw*)
8732       # MinGW DLLs use traditional 'lib' prefix
8733       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8735       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8736         # It is most probably a Windows format PATH printed by
8737         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8738         # path with ; separators, and with drive letters. We can handle the
8739         # drive letters (cygwin fileutils understands them), so leave them,
8740         # especially as we might pass files found there to a mingw objdump,
8741         # which wouldn't understand a cygwinified path. Ahh.
8742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8743       else
8744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8745       fi
8746       ;;
8747     pw32*)
8748       # pw32 DLLs use 'pw' prefix rather than 'lib'
8749       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8750       ;;
8751     esac
8752     ;;
8753
8754   *)
8755     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8756     ;;
8757   esac
8758   dynamic_linker='Win32 ld.exe'
8759   # FIXME: first we should search . and the directory the executable is in
8760   shlibpath_var=PATH
8761   ;;
8762
8763 darwin* | rhapsody*)
8764   dynamic_linker="$host_os dyld"
8765   version_type=darwin
8766   need_lib_prefix=no
8767   need_version=no
8768   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8769   soname_spec='${libname}${release}${major}$shared_ext'
8770   shlibpath_overrides_runpath=yes
8771   shlibpath_var=DYLD_LIBRARY_PATH
8772   shrext_cmds='.dylib'
8773   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8774   if test "$GCC" = yes; then
8775     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"`
8776   else
8777     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8778   fi
8779   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8780   ;;
8781
8782 dgux*)
8783   version_type=linux
8784   need_lib_prefix=no
8785   need_version=no
8786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787   soname_spec='${libname}${release}${shared_ext}$major'
8788   shlibpath_var=LD_LIBRARY_PATH
8789   ;;
8790
8791 freebsd1*)
8792   dynamic_linker=no
8793   ;;
8794
8795 kfreebsd*-gnu)
8796   version_type=linux
8797   need_lib_prefix=no
8798   need_version=no
8799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800   soname_spec='${libname}${release}${shared_ext}$major'
8801   shlibpath_var=LD_LIBRARY_PATH
8802   shlibpath_overrides_runpath=no
8803   hardcode_into_libs=yes
8804   dynamic_linker='GNU ld.so'
8805   ;;
8806
8807 freebsd* | dragonfly*)
8808   # DragonFly does not have aout.  When/if they implement a new
8809   # versioning mechanism, adjust this.
8810   if test -x /usr/bin/objformat; then
8811     objformat=`/usr/bin/objformat`
8812   else
8813     case $host_os in
8814     freebsd[123]*) objformat=aout ;;
8815     *) objformat=elf ;;
8816     esac
8817   fi
8818   version_type=freebsd-$objformat
8819   case $version_type in
8820     freebsd-elf*)
8821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822       need_version=no
8823       need_lib_prefix=no
8824       ;;
8825     freebsd-*)
8826       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827       need_version=yes
8828       ;;
8829   esac
8830   shlibpath_var=LD_LIBRARY_PATH
8831   case $host_os in
8832   freebsd2*)
8833     shlibpath_overrides_runpath=yes
8834     ;;
8835   freebsd3.[01]* | freebsdelf3.[01]*)
8836     shlibpath_overrides_runpath=yes
8837     hardcode_into_libs=yes
8838     ;;
8839   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8841     shlibpath_overrides_runpath=no
8842     hardcode_into_libs=yes
8843     ;;
8844   freebsd*) # from 4.6 on
8845     shlibpath_overrides_runpath=yes
8846     hardcode_into_libs=yes
8847     ;;
8848   esac
8849   ;;
8850
8851 gnu*)
8852   version_type=linux
8853   need_lib_prefix=no
8854   need_version=no
8855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856   soname_spec='${libname}${release}${shared_ext}$major'
8857   shlibpath_var=LD_LIBRARY_PATH
8858   hardcode_into_libs=yes
8859   ;;
8860
8861 hpux9* | hpux10* | hpux11*)
8862   # Give a soname corresponding to the major version so that dld.sl refuses to
8863   # link against other versions.
8864   version_type=sunos
8865   need_lib_prefix=no
8866   need_version=no
8867   case $host_cpu in
8868   ia64*)
8869     shrext_cmds='.so'
8870     hardcode_into_libs=yes
8871     dynamic_linker="$host_os dld.so"
8872     shlibpath_var=LD_LIBRARY_PATH
8873     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875     soname_spec='${libname}${release}${shared_ext}$major'
8876     if test "X$HPUX_IA64_MODE" = X32; then
8877       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8878     else
8879       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8880     fi
8881     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882     ;;
8883    hppa*64*)
8884      shrext_cmds='.sl'
8885      hardcode_into_libs=yes
8886      dynamic_linker="$host_os dld.sl"
8887      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890      soname_spec='${libname}${release}${shared_ext}$major'
8891      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893      ;;
8894    *)
8895     shrext_cmds='.sl'
8896     dynamic_linker="$host_os dld.sl"
8897     shlibpath_var=SHLIB_PATH
8898     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900     soname_spec='${libname}${release}${shared_ext}$major'
8901     ;;
8902   esac
8903   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904   postinstall_cmds='chmod 555 $lib'
8905   ;;
8906
8907 interix3*)
8908   version_type=linux
8909   need_lib_prefix=no
8910   need_version=no
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912   soname_spec='${libname}${release}${shared_ext}$major'
8913   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914   shlibpath_var=LD_LIBRARY_PATH
8915   shlibpath_overrides_runpath=no
8916   hardcode_into_libs=yes
8917   ;;
8918
8919 irix5* | irix6* | nonstopux*)
8920   case $host_os in
8921     nonstopux*) version_type=nonstopux ;;
8922     *)
8923         if test "$lt_cv_prog_gnu_ld" = yes; then
8924                 version_type=linux
8925         else
8926                 version_type=irix
8927         fi ;;
8928   esac
8929   need_lib_prefix=no
8930   need_version=no
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8933   case $host_os in
8934   irix5* | nonstopux*)
8935     libsuff= shlibsuff=
8936     ;;
8937   *)
8938     case $LD in # libtool.m4 will add one of these switches to LD
8939     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940       libsuff= shlibsuff= libmagic=32-bit;;
8941     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942       libsuff=32 shlibsuff=N32 libmagic=N32;;
8943     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945     *) libsuff= shlibsuff= libmagic=never-match;;
8946     esac
8947     ;;
8948   esac
8949   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950   shlibpath_overrides_runpath=no
8951   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953   hardcode_into_libs=yes
8954   ;;
8955
8956 # No shared lib support for Linux oldld, aout, or coff.
8957 linux*oldld* | linux*aout* | linux*coff*)
8958   dynamic_linker=no
8959   ;;
8960
8961 # This must be Linux ELF.
8962 linux*)
8963   version_type=linux
8964   need_lib_prefix=no
8965   need_version=no
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967   soname_spec='${libname}${release}${shared_ext}$major'
8968   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=no
8971   # This implies no fast_install, which is unacceptable.
8972   # Some rework will be needed to allow for fast_install
8973   # before this can be enabled.
8974   hardcode_into_libs=yes
8975
8976   # Append ld.so.conf contents to the search path
8977   if test -f /etc/ld.so.conf; then
8978     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' ' '`
8979     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8980   fi
8981
8982   # We used to test for /lib/ld.so.1 and disable shared libraries on
8983   # powerpc, because MkLinux only supported shared libraries with the
8984   # GNU dynamic linker.  Since this was broken with cross compilers,
8985   # most powerpc-linux boxes support dynamic linking these days and
8986   # people can always --disable-shared, the test was removed, and we
8987   # assume the GNU/Linux dynamic linker is in use.
8988   dynamic_linker='GNU/Linux ld.so'
8989   ;;
8990
8991 knetbsd*-gnu)
8992   version_type=linux
8993   need_lib_prefix=no
8994   need_version=no
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996   soname_spec='${libname}${release}${shared_ext}$major'
8997   shlibpath_var=LD_LIBRARY_PATH
8998   shlibpath_overrides_runpath=no
8999   hardcode_into_libs=yes
9000   dynamic_linker='GNU ld.so'
9001   ;;
9002
9003 netbsd*)
9004   version_type=sunos
9005   need_lib_prefix=no
9006   need_version=no
9007   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9010     dynamic_linker='NetBSD (a.out) ld.so'
9011   else
9012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9013     soname_spec='${libname}${release}${shared_ext}$major'
9014     dynamic_linker='NetBSD ld.elf_so'
9015   fi
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=yes
9018   hardcode_into_libs=yes
9019   ;;
9020
9021 newsos6)
9022   version_type=linux
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   shlibpath_overrides_runpath=yes
9026   ;;
9027
9028 nto-qnx*)
9029   version_type=linux
9030   need_lib_prefix=no
9031   need_version=no
9032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033   soname_spec='${libname}${release}${shared_ext}$major'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   shlibpath_overrides_runpath=yes
9036   ;;
9037
9038 openbsd*)
9039   version_type=sunos
9040   sys_lib_dlsearch_path_spec="/usr/lib"
9041   need_lib_prefix=no
9042   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9043   case $host_os in
9044     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9045     *)                         need_version=no  ;;
9046   esac
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9051     case $host_os in
9052       openbsd2.[89] | openbsd2.[89].*)
9053         shlibpath_overrides_runpath=no
9054         ;;
9055       *)
9056         shlibpath_overrides_runpath=yes
9057         ;;
9058       esac
9059   else
9060     shlibpath_overrides_runpath=yes
9061   fi
9062   ;;
9063
9064 os2*)
9065   libname_spec='$name'
9066   shrext_cmds=".dll"
9067   need_lib_prefix=no
9068   library_names_spec='$libname${shared_ext} $libname.a'
9069   dynamic_linker='OS/2 ld.exe'
9070   shlibpath_var=LIBPATH
9071   ;;
9072
9073 osf3* | osf4* | osf5*)
9074   version_type=osf
9075   need_lib_prefix=no
9076   need_version=no
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079   shlibpath_var=LD_LIBRARY_PATH
9080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9081   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9082   ;;
9083
9084 solaris*)
9085   version_type=linux
9086   need_lib_prefix=no
9087   need_version=no
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089   soname_spec='${libname}${release}${shared_ext}$major'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   shlibpath_overrides_runpath=yes
9092   hardcode_into_libs=yes
9093   # ldd complains unless libraries are executable
9094   postinstall_cmds='chmod +x $lib'
9095   ;;
9096
9097 sunos4*)
9098   version_type=sunos
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   shlibpath_overrides_runpath=yes
9103   if test "$with_gnu_ld" = yes; then
9104     need_lib_prefix=no
9105   fi
9106   need_version=yes
9107   ;;
9108
9109 sysv4 | sysv4.3*)
9110   version_type=linux
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112   soname_spec='${libname}${release}${shared_ext}$major'
9113   shlibpath_var=LD_LIBRARY_PATH
9114   case $host_vendor in
9115     sni)
9116       shlibpath_overrides_runpath=no
9117       need_lib_prefix=no
9118       export_dynamic_flag_spec='${wl}-Blargedynsym'
9119       runpath_var=LD_RUN_PATH
9120       ;;
9121     siemens)
9122       need_lib_prefix=no
9123       ;;
9124     motorola)
9125       need_lib_prefix=no
9126       need_version=no
9127       shlibpath_overrides_runpath=no
9128       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9129       ;;
9130   esac
9131   ;;
9132
9133 sysv4*MP*)
9134   if test -d /usr/nec ;then
9135     version_type=linux
9136     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9137     soname_spec='$libname${shared_ext}.$major'
9138     shlibpath_var=LD_LIBRARY_PATH
9139   fi
9140   ;;
9141
9142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9143   version_type=freebsd-elf
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   hardcode_into_libs=yes
9150   if test "$with_gnu_ld" = yes; then
9151     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9152     shlibpath_overrides_runpath=no
9153   else
9154     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9155     shlibpath_overrides_runpath=yes
9156     case $host_os in
9157       sco3.2v5*)
9158         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9159         ;;
9160     esac
9161   fi
9162   sys_lib_dlsearch_path_spec='/usr/lib'
9163   ;;
9164
9165 uts4*)
9166   version_type=linux
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   ;;
9171
9172 *)
9173   dynamic_linker=no
9174   ;;
9175 esac
9176 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9177 echo "${ECHO_T}$dynamic_linker" >&6; }
9178 test "$dynamic_linker" = no && can_build_shared=no
9179
9180 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9181 if test "$GCC" = yes; then
9182   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9183 fi
9184
9185
9186 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9187 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9188 if test "${libltdl_cv_shlibext+set}" = set; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191
9192 module=yes
9193 eval libltdl_cv_shlibext=$shrext_cmds
9194
9195 fi
9196 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9197 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9198 if test -n "$libltdl_cv_shlibext"; then
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9202 _ACEOF
9203
9204 fi
9205
9206
9207 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9208 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9209 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   libltdl_cv_shlibpath_var="$shlibpath_var"
9213 fi
9214 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9215 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9216 if test -n "$libltdl_cv_shlibpath_var"; then
9217
9218 cat >>confdefs.h <<_ACEOF
9219 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9220 _ACEOF
9221
9222 fi
9223
9224
9225 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9226 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9227 if test "${libltdl_cv_sys_search_path+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9231 fi
9232 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9233 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9234 if test -n "$libltdl_cv_sys_search_path"; then
9235   sys_search_path=
9236   for dir in $libltdl_cv_sys_search_path; do
9237     if test -z "$sys_search_path"; then
9238       sys_search_path="$dir"
9239     else
9240       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9241     fi
9242   done
9243
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9246 _ACEOF
9247
9248 fi
9249
9250 { echo "$as_me:$LINENO: checking for objdir" >&5
9251 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9252 if test "${libltdl_cv_objdir+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   libltdl_cv_objdir="$objdir"
9256   if test -n "$objdir"; then
9257     :
9258   else
9259     rm -f .libs 2>/dev/null
9260     mkdir .libs 2>/dev/null
9261     if test -d .libs; then
9262       libltdl_cv_objdir=.libs
9263     else
9264       # MS-DOS does not allow filenames that begin with a dot.
9265       libltdl_cv_objdir=_libs
9266     fi
9267   rmdir .libs 2>/dev/null
9268   fi
9269
9270 fi
9271 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9272 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9273
9274 cat >>confdefs.h <<_ACEOF
9275 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9276 _ACEOF
9277
9278
9279
9280
9281
9282
9283 # Check for command to grab the raw symbol name followed by C symbol from nm.
9284 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9285 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9286 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289
9290 # These are sane defaults that work on at least a few old systems.
9291 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9292
9293 # Character class describing NM global symbol codes.
9294 symcode='[BCDEGRST]'
9295
9296 # Regexp to match symbols that can be accessed directly from C.
9297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9298
9299 # Transform an extracted symbol line into a proper C declaration
9300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9301
9302 # Transform an extracted symbol line into symbol name and symbol address
9303 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'"
9304
9305 # Define system-specific variables.
9306 case $host_os in
9307 aix*)
9308   symcode='[BCDT]'
9309   ;;
9310 cygwin* | mingw* | pw32*)
9311   symcode='[ABCDGISTW]'
9312   ;;
9313 hpux*) # Its linker distinguishes data from code symbols
9314   if test "$host_cpu" = ia64; then
9315     symcode='[ABCDEGRST]'
9316   fi
9317   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318   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'"
9319   ;;
9320 linux*)
9321   if test "$host_cpu" = ia64; then
9322     symcode='[ABCDGIRSTW]'
9323     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324     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'"
9325   fi
9326   ;;
9327 irix* | nonstopux*)
9328   symcode='[BCDEGRST]'
9329   ;;
9330 osf*)
9331   symcode='[BCDEGQRST]'
9332   ;;
9333 solaris*)
9334   symcode='[BDRT]'
9335   ;;
9336 sco3.2v5*)
9337   symcode='[DT]'
9338   ;;
9339 sysv4.2uw2*)
9340   symcode='[DT]'
9341   ;;
9342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9343   symcode='[ABDT]'
9344   ;;
9345 sysv4)
9346   symcode='[DFNSTU]'
9347   ;;
9348 esac
9349
9350 # Handle CRLF in mingw tool chain
9351 opt_cr=
9352 case $build_os in
9353 mingw*)
9354   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9355   ;;
9356 esac
9357
9358 # If we're using GNU nm, then use its standard symbol codes.
9359 case `$NM -V 2>&1` in
9360 *GNU* | *'with BFD'*)
9361   symcode='[ABCDGIRSTW]' ;;
9362 esac
9363
9364 # Try without a prefix undercore, then with it.
9365 for ac_symprfx in "" "_"; do
9366
9367   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9368   symxfrm="\\1 $ac_symprfx\\2 \\2"
9369
9370   # Write the raw and C identifiers.
9371   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9372
9373   # Check to see that the pipe works correctly.
9374   pipe_works=no
9375
9376   rm -f conftest*
9377   cat > conftest.$ac_ext <<EOF
9378 #ifdef __cplusplus
9379 extern "C" {
9380 #endif
9381 char nm_test_var;
9382 void nm_test_func(){}
9383 #ifdef __cplusplus
9384 }
9385 #endif
9386 int main(){nm_test_var='a';nm_test_func();return(0);}
9387 EOF
9388
9389   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390   (eval $ac_compile) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; then
9394     # Now try to grab the symbols.
9395     nlist=conftest.nm
9396     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9397   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } && test -s "$nlist"; then
9401       # Try sorting and uniquifying the output.
9402       if sort "$nlist" | uniq > "$nlist"T; then
9403         mv -f "$nlist"T "$nlist"
9404       else
9405         rm -f "$nlist"T
9406       fi
9407
9408       # Make sure that we snagged all the symbols we need.
9409       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9410         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9411           cat <<EOF > conftest.$ac_ext
9412 #ifdef __cplusplus
9413 extern "C" {
9414 #endif
9415
9416 EOF
9417           # Now generate the symbol file.
9418           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9419
9420           cat <<EOF >> conftest.$ac_ext
9421 #if defined (__STDC__) && __STDC__
9422 # define lt_ptr_t void *
9423 #else
9424 # define lt_ptr_t char *
9425 # define const
9426 #endif
9427
9428 /* The mapping between symbol names and symbols. */
9429 const struct {
9430   const char *name;
9431   lt_ptr_t address;
9432 }
9433 lt_preloaded_symbols[] =
9434 {
9435 EOF
9436           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9437           cat <<\EOF >> conftest.$ac_ext
9438   {0, (lt_ptr_t) 0}
9439 };
9440
9441 #ifdef __cplusplus
9442 }
9443 #endif
9444 EOF
9445           # Now try linking the two files.
9446           mv conftest.$ac_objext conftstm.$ac_objext
9447           lt_save_LIBS="$LIBS"
9448           lt_save_CFLAGS="$CFLAGS"
9449           LIBS="conftstm.$ac_objext"
9450           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9451           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452   (eval $ac_link) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9456             pipe_works=yes
9457           fi
9458           LIBS="$lt_save_LIBS"
9459           CFLAGS="$lt_save_CFLAGS"
9460         else
9461           echo "cannot find nm_test_func in $nlist" >&5
9462         fi
9463       else
9464         echo "cannot find nm_test_var in $nlist" >&5
9465       fi
9466     else
9467       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9468     fi
9469   else
9470     echo "$progname: failed program was:" >&5
9471     cat conftest.$ac_ext >&5
9472   fi
9473   rm -f conftest* conftst*
9474
9475   # Do not use the global_symbol_pipe unless it works.
9476   if test "$pipe_works" = yes; then
9477     break
9478   else
9479     lt_cv_sys_global_symbol_pipe=
9480   fi
9481 done
9482
9483 fi
9484
9485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9486   lt_cv_sys_global_symbol_to_cdecl=
9487 fi
9488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9489   { echo "$as_me:$LINENO: result: failed" >&5
9490 echo "${ECHO_T}failed" >&6; }
9491 else
9492   { echo "$as_me:$LINENO: result: ok" >&5
9493 echo "${ECHO_T}ok" >&6; }
9494 fi
9495
9496
9497 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9498 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9499 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9503     libltdl_cv_preloaded_symbols=yes
9504   else
9505     libltdl_cv_preloaded_symbols=no
9506   fi
9507
9508 fi
9509 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9510 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9511 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9512
9513 cat >>confdefs.h <<\_ACEOF
9514 #define HAVE_PRELOADED_SYMBOLS 1
9515 _ACEOF
9516
9517 fi
9518
9519 LIBADD_DL=
9520
9521 ac_ext=c
9522 ac_cpp='$CPP $CPPFLAGS'
9523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9526
9527
9528 { echo "$as_me:$LINENO: checking for shl_load" >&5
9529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9530 if test "${ac_cv_func_shl_load+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9541 #define shl_load innocuous_shl_load
9542
9543 /* System header to define __stub macros and hopefully few prototypes,
9544     which can conflict with char shl_load (); below.
9545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9546     <limits.h> exists even on freestanding compilers.  */
9547
9548 #ifdef __STDC__
9549 # include <limits.h>
9550 #else
9551 # include <assert.h>
9552 #endif
9553
9554 #undef shl_load
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char shl_load ();
9563 /* The GNU C library defines this for functions which it implements
9564     to always fail with ENOSYS.  Some functions are actually named
9565     something starting with __ and the normal name is an alias.  */
9566 #if defined __stub_shl_load || defined __stub___shl_load
9567 choke me
9568 #endif
9569
9570 int
9571 main ()
9572 {
9573 return shl_load ();
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9580 case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585   (eval "$ac_link") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } &&
9592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593   { (case "(($ac_try" in
9594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595   *) ac_try_echo=$ac_try;;
9596 esac
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598   (eval "$ac_try") 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; } &&
9602          { ac_try='test -s conftest$ac_exeext'
9603   { (case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_try") 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   ac_cv_func_shl_load=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617         ac_cv_func_shl_load=no
9618 fi
9619
9620 rm -f core conftest.err conftest.$ac_objext \
9621       conftest$ac_exeext conftest.$ac_ext
9622 fi
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9625 if test $ac_cv_func_shl_load = yes; then
9626
9627 cat >>confdefs.h <<\_ACEOF
9628 #define HAVE_SHL_LOAD 1
9629 _ACEOF
9630
9631 else
9632   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9633 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9634 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-ldld  $LIBS"
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645
9646 /* Override any GCC internal prototype to avoid an error.
9647    Use char because int might match the return type of a GCC
9648    builtin and then its argument prototype would still apply.  */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char shl_load ();
9653 int
9654 main ()
9655 {
9656 return shl_load ();
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9663 case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668   (eval "$ac_link") 2>conftest.er1
9669   ac_status=$?
9670   grep -v '^ *+' conftest.er1 >conftest.err
9671   rm -f conftest.er1
9672   cat conftest.err >&5
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676   { (case "(($ac_try" in
9677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678   *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681   (eval "$ac_try") 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_lib_dld_shl_load=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700         ac_cv_lib_dld_shl_load=no
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9708 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9709 if test $ac_cv_lib_dld_shl_load = yes; then
9710
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_SHL_LOAD 1
9713 _ACEOF
9714
9715         LIBADD_DL="$LIBADD_DL -ldld"
9716 else
9717   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ldl  $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732    Use char because int might match the return type of a GCC
9733    builtin and then its argument prototype would still apply.  */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char dlopen ();
9738 int
9739 main ()
9740 {
9741 return dlopen ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_link") 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761   { (case "(($ac_try" in
9762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763   *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766   (eval "$ac_try") 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_try") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780   ac_cv_lib_dl_dlopen=yes
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785         ac_cv_lib_dl_dlopen=no
9786 fi
9787
9788 rm -f core conftest.err conftest.$ac_objext \
9789       conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9791 fi
9792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9795
9796 cat >>confdefs.h <<\_ACEOF
9797 #define HAVE_LIBDL 1
9798 _ACEOF
9799
9800                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9801 else
9802   cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808 #if HAVE_DLFCN_H
9809 #  include <dlfcn.h>
9810 #endif
9811
9812 int
9813 main ()
9814 {
9815 dlopen(0, 0);
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824   *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827   (eval "$ac_link") 2>conftest.er1
9828   ac_status=$?
9829   grep -v '^ *+' conftest.er1 >conftest.err
9830   rm -f conftest.er1
9831   cat conftest.err >&5
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835   { (case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_try") 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; } &&
9844          { ac_try='test -s conftest$ac_exeext'
9845   { (case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_try") 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_LIBDL 1
9857 _ACEOF
9858  libltdl_cv_func_dlopen="yes"
9859 else
9860   echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9864 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-lsvld  $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878    Use char because int might match the return type of a GCC
9879    builtin and then its argument prototype would still apply.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char dlopen ();
9884 int
9885 main ()
9886 {
9887 return dlopen ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_link") 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907   { (case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_try") 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_lib_svld_dlopen=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_lib_svld_dlopen=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9940 if test $ac_cv_lib_svld_dlopen = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9944 _ACEOF
9945
9946                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9947 else
9948   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9949 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9950 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-ldld  $LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961
9962 /* Override any GCC internal prototype to avoid an error.
9963    Use char because int might match the return type of a GCC
9964    builtin and then its argument prototype would still apply.  */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 char dld_link ();
9969 int
9970 main ()
9971 {
9972 return dld_link ();
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_link") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest$ac_exeext'
10002   { (case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_try") 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011   ac_cv_lib_dld_dld_link=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016         ac_cv_lib_dld_dld_link=no
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext \
10020       conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10022 fi
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10025 if test $ac_cv_lib_dld_dld_link = yes; then
10026
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_DLD 1
10029 _ACEOF
10030
10031                 LIBADD_DL="$LIBADD_DL -ldld"
10032 else
10033   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10034 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10035 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10046 #define _dyld_func_lookup innocuous__dyld_func_lookup
10047
10048 /* System header to define __stub macros and hopefully few prototypes,
10049     which can conflict with char _dyld_func_lookup (); below.
10050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10051     <limits.h> exists even on freestanding compilers.  */
10052
10053 #ifdef __STDC__
10054 # include <limits.h>
10055 #else
10056 # include <assert.h>
10057 #endif
10058
10059 #undef _dyld_func_lookup
10060
10061 /* Override any GCC internal prototype to avoid an error.
10062    Use char because int might match the return type of a GCC
10063    builtin and then its argument prototype would still apply.  */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 char _dyld_func_lookup ();
10068 /* The GNU C library defines this for functions which it implements
10069     to always fail with ENOSYS.  Some functions are actually named
10070     something starting with __ and the normal name is an alias.  */
10071 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10072 choke me
10073 #endif
10074
10075 int
10076 main ()
10077 {
10078 return _dyld_func_lookup ();
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087   *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090   (eval "$ac_link") 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } &&
10097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098   { (case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_try") 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; } &&
10107          { ac_try='test -s conftest$ac_exeext'
10108   { (case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_try") 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; }; then
10117   ac_cv_func__dyld_func_lookup=yes
10118 else
10119   echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122         ac_cv_func__dyld_func_lookup=no
10123 fi
10124
10125 rm -f core conftest.err conftest.$ac_objext \
10126       conftest$ac_exeext conftest.$ac_ext
10127 fi
10128 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10129 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10130 if test $ac_cv_func__dyld_func_lookup = yes; then
10131
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_DYLD 1
10134 _ACEOF
10135
10136 fi
10137
10138
10139 fi
10140
10141
10142 fi
10143
10144
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext \
10148       conftest$ac_exeext conftest.$ac_ext
10149
10150 fi
10151
10152
10153 fi
10154
10155
10156 fi
10157
10158
10159 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10160 then
10161   lt_save_LIBS="$LIBS"
10162   LIBS="$LIBS $LIBADD_DL"
10163
10164 for ac_func in dlerror
10165 do
10166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10180 #define $ac_func innocuous_$ac_func
10181
10182 /* System header to define __stub macros and hopefully few prototypes,
10183     which can conflict with char $ac_func (); below.
10184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185     <limits.h> exists even on freestanding compilers.  */
10186
10187 #ifdef __STDC__
10188 # include <limits.h>
10189 #else
10190 # include <assert.h>
10191 #endif
10192
10193 #undef $ac_func
10194
10195 /* Override any GCC internal prototype to avoid an error.
10196    Use char because int might match the return type of a GCC
10197    builtin and then its argument prototype would still apply.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char $ac_func ();
10202 /* The GNU C library defines this for functions which it implements
10203     to always fail with ENOSYS.  Some functions are actually named
10204     something starting with __ and the normal name is an alias.  */
10205 #if defined __stub_$ac_func || defined __stub___$ac_func
10206 choke me
10207 #endif
10208
10209 int
10210 main ()
10211 {
10212 return $ac_func ();
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   eval "$as_ac_var=yes"
10252 else
10253   echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10255
10256         eval "$as_ac_var=no"
10257 fi
10258
10259 rm -f core conftest.err conftest.$ac_objext \
10260       conftest$ac_exeext conftest.$ac_ext
10261 fi
10262 ac_res=`eval echo '${'$as_ac_var'}'`
10263                { echo "$as_me:$LINENO: result: $ac_res" >&5
10264 echo "${ECHO_T}$ac_res" >&6; }
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10266   cat >>confdefs.h <<_ACEOF
10267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10268 _ACEOF
10269
10270 fi
10271 done
10272
10273   LIBS="$lt_save_LIBS"
10274 fi
10275 ac_ext=c
10276 ac_cpp='$CPP $CPPFLAGS'
10277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280
10281
10282
10283 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10284 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10285 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   ac_cv_sys_symbol_underscore=no
10289   cat > conftest.$ac_ext <<EOF
10290 void nm_test_func(){}
10291 int main(){nm_test_func;return 0;}
10292 EOF
10293   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294   (eval $ac_compile) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; then
10298     # Now try to grab the symbols.
10299     ac_nlist=conftest.nm
10300     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10301   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } && test -s "$ac_nlist"; then
10305       # See whether the symbols have a leading underscore.
10306       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10307         ac_cv_sys_symbol_underscore=yes
10308       else
10309         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10310           :
10311         else
10312           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10313         fi
10314       fi
10315     else
10316       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10317     fi
10318   else
10319     echo "configure: failed program was:" >&5
10320     cat conftest.c >&5
10321   fi
10322   rm -rf conftest*
10323
10324 fi
10325 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10326 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10327
10328
10329 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10330   if test x"$libltdl_cv_func_dlopen" = xyes ||
10331      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10332         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10333 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10334 if test "${libltdl_cv_need_uscore+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   libltdl_cv_need_uscore=unknown
10338           save_LIBS="$LIBS"
10339           LIBS="$LIBS $LIBADD_DL"
10340           if test "$cross_compiling" = yes; then :
10341   libltdl_cv_need_uscore=cross
10342 else
10343   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344   lt_status=$lt_dlunknown
10345   cat > conftest.$ac_ext <<EOF
10346 #line 10346 "configure"
10347 #include "confdefs.h"
10348
10349 #if HAVE_DLFCN_H
10350 #include <dlfcn.h>
10351 #endif
10352
10353 #include <stdio.h>
10354
10355 #ifdef RTLD_GLOBAL
10356 #  define LT_DLGLOBAL           RTLD_GLOBAL
10357 #else
10358 #  ifdef DL_GLOBAL
10359 #    define LT_DLGLOBAL         DL_GLOBAL
10360 #  else
10361 #    define LT_DLGLOBAL         0
10362 #  endif
10363 #endif
10364
10365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366    find out it does not work in some platform. */
10367 #ifndef LT_DLLAZY_OR_NOW
10368 #  ifdef RTLD_LAZY
10369 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10370 #  else
10371 #    ifdef DL_LAZY
10372 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10373 #    else
10374 #      ifdef RTLD_NOW
10375 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10376 #      else
10377 #        ifdef DL_NOW
10378 #          define LT_DLLAZY_OR_NOW      DL_NOW
10379 #        else
10380 #          define LT_DLLAZY_OR_NOW      0
10381 #        endif
10382 #      endif
10383 #    endif
10384 #  endif
10385 #endif
10386
10387 #ifdef __cplusplus
10388 extern "C" void exit (int);
10389 #endif
10390
10391 void fnord() { int i=42;}
10392 int main ()
10393 {
10394   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395   int status = $lt_dlunknown;
10396
10397   if (self)
10398     {
10399       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10400       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401       /* dlclose (self); */
10402     }
10403   else
10404     puts (dlerror ());
10405
10406     exit (status);
10407 }
10408 EOF
10409   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410   (eval $ac_link) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10414     (./conftest; exit; ) >&5 2>/dev/null
10415     lt_status=$?
10416     case x$lt_status in
10417       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10418       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10419       x$lt_dlunknown|x*)  ;;
10420     esac
10421   else :
10422     # compilation failed
10423
10424   fi
10425 fi
10426 rm -fr conftest*
10427
10428           LIBS="$save_LIBS"
10429
10430 fi
10431 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10432 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10433   fi
10434 fi
10435
10436 if test x"$libltdl_cv_need_uscore" = xyes; then
10437
10438 cat >>confdefs.h <<\_ACEOF
10439 #define NEED_USCORE 1
10440 _ACEOF
10441
10442 fi
10443
10444
10445 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10446 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10447 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   # PORTME does your system automatically load deplibs for dlopen?
10451   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10452   # For now, we just catch OSes we know something about -- in the
10453   # future, we'll try test this programmatically.
10454   libltdl_cv_sys_dlopen_deplibs=unknown
10455   case "$host_os" in
10456   aix3*|aix4.1.*|aix4.2.*)
10457     # Unknown whether this is true for these versions of AIX, but
10458     # we want this `case' here to explicitly catch those versions.
10459     libltdl_cv_sys_dlopen_deplibs=unknown
10460     ;;
10461   aix[45]*)
10462     libltdl_cv_sys_dlopen_deplibs=yes
10463     ;;
10464   darwin*)
10465     # Assuming the user has installed a libdl from somewhere, this is true
10466     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10467     libltdl_cv_sys_dlopen_deplibs=yes
10468     ;;
10469   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10470     # GNU and its variants, using gnu ld.so (Glibc)
10471     libltdl_cv_sys_dlopen_deplibs=yes
10472     ;;
10473   hpux10*|hpux11*)
10474     libltdl_cv_sys_dlopen_deplibs=yes
10475     ;;
10476   interix*)
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   irix[12345]*|irix6.[01]*)
10480     # Catch all versions of IRIX before 6.2, and indicate that we don't
10481     # know how it worked for any of those versions.
10482     libltdl_cv_sys_dlopen_deplibs=unknown
10483     ;;
10484   irix*)
10485     # The case above catches anything before 6.2, and it's known that
10486     # at 6.2 and later dlopen does load deplibs.
10487     libltdl_cv_sys_dlopen_deplibs=yes
10488     ;;
10489   netbsd*)
10490     libltdl_cv_sys_dlopen_deplibs=yes
10491     ;;
10492   openbsd*)
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   osf[1234]*)
10496     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10497     # it did *not* use an RPATH in a shared library to find objects the
10498     # library depends on, so we explictly say `no'.
10499     libltdl_cv_sys_dlopen_deplibs=no
10500     ;;
10501   osf5.0|osf5.0a|osf5.1)
10502     # dlopen *does* load deplibs and with the right loader patch applied
10503     # it even uses RPATH in a shared library to search for shared objects
10504     # that the library depends on, but there's no easy way to know if that
10505     # patch is installed.  Since this is the case, all we can really
10506     # say is unknown -- it depends on the patch being installed.  If
10507     # it is, this changes to `yes'.  Without it, it would be `no'.
10508     libltdl_cv_sys_dlopen_deplibs=unknown
10509     ;;
10510   osf*)
10511     # the two cases above should catch all versions of osf <= 5.1.  Read
10512     # the comments above for what we know about them.
10513     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10514     # is used to find them so we can finally say `yes'.
10515     libltdl_cv_sys_dlopen_deplibs=yes
10516     ;;
10517   solaris*)
10518     libltdl_cv_sys_dlopen_deplibs=yes
10519     ;;
10520   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10521     libltdl_cv_sys_dlopen_deplibs=yes
10522     ;;
10523   esac
10524
10525 fi
10526 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10527 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10528 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10529
10530 cat >>confdefs.h <<\_ACEOF
10531 #define LTDL_DLOPEN_DEPLIBS 1
10532 _ACEOF
10533
10534 fi
10535
10536
10537 for ac_header in argz.h
10538 do
10539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 fi
10546 ac_res=`eval echo '${'$as_ac_Header'}'`
10547                { echo "$as_me:$LINENO: result: $ac_res" >&5
10548 echo "${ECHO_T}$ac_res" >&6; }
10549 else
10550   # Is the header compilable?
10551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 $ac_includes_default
10560 #include <$ac_header>
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566   *) ac_try_echo=$ac_try;;
10567 esac
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569   (eval "$ac_compile") 2>conftest.er1
10570   ac_status=$?
10571   grep -v '^ *+' conftest.er1 >conftest.err
10572   rm -f conftest.er1
10573   cat conftest.err >&5
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); } &&
10576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10577   { (case "(($ac_try" in
10578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579   *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582   (eval "$ac_try") 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; } &&
10586          { ac_try='test -s conftest.$ac_objext'
10587   { (case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_try") 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; }; then
10596   ac_header_compiler=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601         ac_header_compiler=no
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10607
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617 #include <$ac_header>
10618 _ACEOF
10619 if { (ac_try="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } >/dev/null; then
10632   if test -s conftest.err; then
10633     ac_cpp_err=$ac_c_preproc_warn_flag
10634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10635   else
10636     ac_cpp_err=
10637   fi
10638 else
10639   ac_cpp_err=yes
10640 fi
10641 if test -z "$ac_cpp_err"; then
10642   ac_header_preproc=yes
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647   ac_header_preproc=no
10648 fi
10649
10650 rm -f conftest.err conftest.$ac_ext
10651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10652 echo "${ECHO_T}$ac_header_preproc" >&6; }
10653
10654 # So?  What about this header?
10655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10656   yes:no: )
10657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10661     ac_header_preproc=yes
10662     ;;
10663   no:yes:* )
10664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10676     ( cat <<\_ASBOX
10677 ## ----------------------------------- ##
10678 ## Report this to llvmbugs@cs.uiuc.edu ##
10679 ## ----------------------------------- ##
10680 _ASBOX
10681      ) | sed "s/^/$as_me: WARNING:     /" >&2
10682     ;;
10683 esac
10684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   eval "$as_ac_Header=\$ac_header_preproc"
10690 fi
10691 ac_res=`eval echo '${'$as_ac_Header'}'`
10692                { echo "$as_me:$LINENO: result: $ac_res" >&5
10693 echo "${ECHO_T}$ac_res" >&6; }
10694
10695 fi
10696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10697   cat >>confdefs.h <<_ACEOF
10698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10699 _ACEOF
10700
10701 fi
10702
10703 done
10704
10705
10706 { echo "$as_me:$LINENO: checking for error_t" >&5
10707 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10708 if test "${ac_cv_type_error_t+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717 #if HAVE_ARGZ_H
10718 #  include <argz.h>
10719 #endif
10720
10721 typedef error_t ac__type_new_;
10722 int
10723 main ()
10724 {
10725 if ((ac__type_new_ *) 0)
10726   return 0;
10727 if (sizeof (ac__type_new_))
10728   return 0;
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_compile") 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748   { (case "(($ac_try" in
10749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750   *) ac_try_echo=$ac_try;;
10751 esac
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753   (eval "$ac_try") 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; } &&
10757          { ac_try='test -s conftest.$ac_objext'
10758   { (case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_try") 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   ac_cv_type_error_t=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772         ac_cv_type_error_t=no
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 fi
10777 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10778 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10779 if test $ac_cv_type_error_t = yes; then
10780
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_ERROR_T 1
10783 _ACEOF
10784
10785
10786 else
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define error_t int
10790 _ACEOF
10791
10792 fi
10793
10794
10795
10796
10797
10798
10799
10800 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10801 do
10802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10816 #define $ac_func innocuous_$ac_func
10817
10818 /* System header to define __stub macros and hopefully few prototypes,
10819     which can conflict with char $ac_func (); below.
10820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821     <limits.h> exists even on freestanding compilers.  */
10822
10823 #ifdef __STDC__
10824 # include <limits.h>
10825 #else
10826 # include <assert.h>
10827 #endif
10828
10829 #undef $ac_func
10830
10831 /* Override any GCC internal prototype to avoid an error.
10832    Use char because int might match the return type of a GCC
10833    builtin and then its argument prototype would still apply.  */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char $ac_func ();
10838 /* The GNU C library defines this for functions which it implements
10839     to always fail with ENOSYS.  Some functions are actually named
10840     something starting with __ and the normal name is an alias.  */
10841 #if defined __stub_$ac_func || defined __stub___$ac_func
10842 choke me
10843 #endif
10844
10845 int
10846 main ()
10847 {
10848 return $ac_func ();
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_link") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest$ac_exeext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   eval "$as_ac_var=yes"
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         eval "$as_ac_var=no"
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext \
10896       conftest$ac_exeext conftest.$ac_ext
10897 fi
10898 ac_res=`eval echo '${'$as_ac_var'}'`
10899                { echo "$as_me:$LINENO: result: $ac_res" >&5
10900 echo "${ECHO_T}$ac_res" >&6; }
10901 if test `eval echo '${'$as_ac_var'}'` = yes; then
10902   cat >>confdefs.h <<_ACEOF
10903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10904 _ACEOF
10905
10906 fi
10907 done
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10937                   stdio.h unistd.h
10938 do
10939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 fi
10946 ac_res=`eval echo '${'$as_ac_Header'}'`
10947                { echo "$as_me:$LINENO: result: $ac_res" >&5
10948 echo "${ECHO_T}$ac_res" >&6; }
10949 else
10950   # Is the header compilable?
10951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 $ac_includes_default
10960 #include <$ac_header>
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969   (eval "$ac_compile") 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977   { (case "(($ac_try" in
10978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979   *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982   (eval "$ac_try") 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; } &&
10986          { ac_try='test -s conftest.$ac_objext'
10987   { (case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_try") 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; }; then
10996   ac_header_compiler=yes
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001         ac_header_compiler=no
11002 fi
11003
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006 echo "${ECHO_T}$ac_header_compiler" >&6; }
11007
11008 # Is the header present?
11009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <$ac_header>
11018 _ACEOF
11019 if { (ac_try="$ac_cpp conftest.$ac_ext"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } >/dev/null; then
11032   if test -s conftest.err; then
11033     ac_cpp_err=$ac_c_preproc_warn_flag
11034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11035   else
11036     ac_cpp_err=
11037   fi
11038 else
11039   ac_cpp_err=yes
11040 fi
11041 if test -z "$ac_cpp_err"; then
11042   ac_header_preproc=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047   ac_header_preproc=no
11048 fi
11049
11050 rm -f conftest.err conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6; }
11053
11054 # So?  What about this header?
11055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11056   yes:no: )
11057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061     ac_header_preproc=yes
11062     ;;
11063   no:yes:* )
11064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11076     ( cat <<\_ASBOX
11077 ## ----------------------------------- ##
11078 ## Report this to llvmbugs@cs.uiuc.edu ##
11079 ## ----------------------------------- ##
11080 _ASBOX
11081      ) | sed "s/^/$as_me: WARNING:     /" >&2
11082     ;;
11083 esac
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   eval "$as_ac_Header=\$ac_header_preproc"
11090 fi
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092                { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094
11095 fi
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097   cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099 _ACEOF
11100
11101 fi
11102
11103 done
11104
11105
11106
11107
11108
11109 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11110 do
11111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 fi
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119                { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 else
11122   # Is the header compilable?
11123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 $ac_includes_default
11132 #include <$ac_header>
11133 _ACEOF
11134 rm -f conftest.$ac_objext
11135 if { (ac_try="$ac_compile"
11136 case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_compile") 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149   { (case "(($ac_try" in
11150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151   *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154   (eval "$ac_try") 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; } &&
11158          { ac_try='test -s conftest.$ac_objext'
11159   { (case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_try") 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; }; then
11168   ac_header_compiler=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173         ac_header_compiler=no
11174 fi
11175
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178 echo "${ECHO_T}$ac_header_compiler" >&6; }
11179
11180 # Is the header present?
11181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 #include <$ac_header>
11190 _ACEOF
11191 if { (ac_try="$ac_cpp conftest.$ac_ext"
11192 case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } >/dev/null; then
11204   if test -s conftest.err; then
11205     ac_cpp_err=$ac_c_preproc_warn_flag
11206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11207   else
11208     ac_cpp_err=
11209   fi
11210 else
11211   ac_cpp_err=yes
11212 fi
11213 if test -z "$ac_cpp_err"; then
11214   ac_header_preproc=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219   ac_header_preproc=no
11220 fi
11221
11222 rm -f conftest.err conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 echo "${ECHO_T}$ac_header_preproc" >&6; }
11225
11226 # So?  What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228   yes:no: )
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233     ac_header_preproc=yes
11234     ;;
11235   no:yes:* )
11236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248     ( cat <<\_ASBOX
11249 ## ----------------------------------- ##
11250 ## Report this to llvmbugs@cs.uiuc.edu ##
11251 ## ----------------------------------- ##
11252 _ASBOX
11253      ) | sed "s/^/$as_me: WARNING:     /" >&2
11254     ;;
11255 esac
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   eval "$as_ac_Header=\$ac_header_preproc"
11262 fi
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264                { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11266
11267 fi
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269   cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11271 _ACEOF
11272
11273 fi
11274
11275 done
11276
11277
11278
11279 for ac_header in string.h strings.h
11280 do
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 fi
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289                { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 else
11292   # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 $ac_includes_default
11302 #include <$ac_header>
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_compile") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319   { (case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_try") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest.$ac_objext'
11329   { (case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_try") 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; }; then
11338   ac_header_compiler=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343         ac_header_compiler=no
11344 fi
11345
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11349
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <$ac_header>
11360 _ACEOF
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368   ac_status=$?
11369   grep -v '^ *+' conftest.er1 >conftest.err
11370   rm -f conftest.er1
11371   cat conftest.err >&5
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } >/dev/null; then
11374   if test -s conftest.err; then
11375     ac_cpp_err=$ac_c_preproc_warn_flag
11376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377   else
11378     ac_cpp_err=
11379   fi
11380 else
11381   ac_cpp_err=yes
11382 fi
11383 if test -z "$ac_cpp_err"; then
11384   ac_header_preproc=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389   ac_header_preproc=no
11390 fi
11391
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418     ( cat <<\_ASBOX
11419 ## ----------------------------------- ##
11420 ## Report this to llvmbugs@cs.uiuc.edu ##
11421 ## ----------------------------------- ##
11422 _ASBOX
11423      ) | sed "s/^/$as_me: WARNING:     /" >&2
11424     ;;
11425 esac
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434                { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436
11437 fi
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439   cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 _ACEOF
11442  break
11443 fi
11444
11445 done
11446
11447
11448
11449
11450 for ac_func in strchr index
11451 do
11452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11466 #define $ac_func innocuous_$ac_func
11467
11468 /* System header to define __stub macros and hopefully few prototypes,
11469     which can conflict with char $ac_func (); below.
11470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471     <limits.h> exists even on freestanding compilers.  */
11472
11473 #ifdef __STDC__
11474 # include <limits.h>
11475 #else
11476 # include <assert.h>
11477 #endif
11478
11479 #undef $ac_func
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char $ac_func ();
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined __stub_$ac_func || defined __stub___$ac_func
11492 choke me
11493 #endif
11494
11495 int
11496 main ()
11497 {
11498 return $ac_func ();
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (ac_try="$ac_link"
11505 case "(($ac_try" in
11506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507   *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510   (eval "$ac_link") 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518   { (case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_try") 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest$ac_exeext'
11528   { (case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_try") 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; }; then
11537   eval "$as_ac_var=yes"
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542         eval "$as_ac_var=no"
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext \
11546       conftest$ac_exeext conftest.$ac_ext
11547 fi
11548 ac_res=`eval echo '${'$as_ac_var'}'`
11549                { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 if test `eval echo '${'$as_ac_var'}'` = yes; then
11552   cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554 _ACEOF
11555  break
11556 fi
11557 done
11558
11559
11560
11561 for ac_func in strrchr rindex
11562 do
11563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11577 #define $ac_func innocuous_$ac_func
11578
11579 /* System header to define __stub macros and hopefully few prototypes,
11580     which can conflict with char $ac_func (); below.
11581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582     <limits.h> exists even on freestanding compilers.  */
11583
11584 #ifdef __STDC__
11585 # include <limits.h>
11586 #else
11587 # include <assert.h>
11588 #endif
11589
11590 #undef $ac_func
11591
11592 /* Override any GCC internal prototype to avoid an error.
11593    Use char because int might match the return type of a GCC
11594    builtin and then its argument prototype would still apply.  */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char $ac_func ();
11599 /* The GNU C library defines this for functions which it implements
11600     to always fail with ENOSYS.  Some functions are actually named
11601     something starting with __ and the normal name is an alias.  */
11602 #if defined __stub_$ac_func || defined __stub___$ac_func
11603 choke me
11604 #endif
11605
11606 int
11607 main ()
11608 {
11609 return $ac_func ();
11610   ;
11611   return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_link") 2>conftest.er1
11622   ac_status=$?
11623   grep -v '^ *+' conftest.er1 >conftest.err
11624   rm -f conftest.er1
11625   cat conftest.err >&5
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); } &&
11628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629   { (case "(($ac_try" in
11630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631   *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634   (eval "$ac_try") 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_try") 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   eval "$as_ac_var=yes"
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653         eval "$as_ac_var=no"
11654 fi
11655
11656 rm -f core conftest.err conftest.$ac_objext \
11657       conftest$ac_exeext conftest.$ac_ext
11658 fi
11659 ac_res=`eval echo '${'$as_ac_var'}'`
11660                { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11662 if test `eval echo '${'$as_ac_var'}'` = yes; then
11663   cat >>confdefs.h <<_ACEOF
11664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665 _ACEOF
11666  break
11667 fi
11668 done
11669
11670
11671
11672 for ac_func in memcpy bcopy
11673 do
11674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11688 #define $ac_func innocuous_$ac_func
11689
11690 /* System header to define __stub macros and hopefully few prototypes,
11691     which can conflict with char $ac_func (); below.
11692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693     <limits.h> exists even on freestanding compilers.  */
11694
11695 #ifdef __STDC__
11696 # include <limits.h>
11697 #else
11698 # include <assert.h>
11699 #endif
11700
11701 #undef $ac_func
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704    Use char because int might match the return type of a GCC
11705    builtin and then its argument prototype would still apply.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char $ac_func ();
11710 /* The GNU C library defines this for functions which it implements
11711     to always fail with ENOSYS.  Some functions are actually named
11712     something starting with __ and the normal name is an alias.  */
11713 #if defined __stub_$ac_func || defined __stub___$ac_func
11714 choke me
11715 #endif
11716
11717 int
11718 main ()
11719 {
11720 return $ac_func ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (ac_try="$ac_link"
11727 case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_link") 2>conftest.er1
11733   ac_status=$?
11734   grep -v '^ *+' conftest.er1 >conftest.err
11735   rm -f conftest.er1
11736   cat conftest.err >&5
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740   { (case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_try") 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; } &&
11749          { ac_try='test -s conftest$ac_exeext'
11750   { (case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_try") 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; }; then
11759   eval "$as_ac_var=yes"
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764         eval "$as_ac_var=no"
11765 fi
11766
11767 rm -f core conftest.err conftest.$ac_objext \
11768       conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 ac_res=`eval echo '${'$as_ac_var'}'`
11771                { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774   cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11776 _ACEOF
11777  break
11778 fi
11779 done
11780
11781
11782
11783 for ac_func in memmove strcmp
11784 do
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11799 #define $ac_func innocuous_$ac_func
11800
11801 /* System header to define __stub macros and hopefully few prototypes,
11802     which can conflict with char $ac_func (); below.
11803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804     <limits.h> exists even on freestanding compilers.  */
11805
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11811
11812 #undef $ac_func
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 choke me
11826 #endif
11827
11828 int
11829 main ()
11830 {
11831 return $ac_func ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_link") 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; } &&
11860          { ac_try='test -s conftest$ac_exeext'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   eval "$as_ac_var=yes"
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875         eval "$as_ac_var=no"
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext \
11879       conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882                { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885   cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 fi
11890 done
11891
11892
11893
11894
11895 for ac_func in closedir opendir readdir
11896 do
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h.  */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h.  */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11911 #define $ac_func innocuous_$ac_func
11912
11913 /* System header to define __stub macros and hopefully few prototypes,
11914     which can conflict with char $ac_func (); below.
11915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916     <limits.h> exists even on freestanding compilers.  */
11917
11918 #ifdef __STDC__
11919 # include <limits.h>
11920 #else
11921 # include <assert.h>
11922 #endif
11923
11924 #undef $ac_func
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927    Use char because int might match the return type of a GCC
11928    builtin and then its argument prototype would still apply.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char $ac_func ();
11933 /* The GNU C library defines this for functions which it implements
11934     to always fail with ENOSYS.  Some functions are actually named
11935     something starting with __ and the normal name is an alias.  */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 choke me
11938 #endif
11939
11940 int
11941 main ()
11942 {
11943 return $ac_func ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_link") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963   { (case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_try") 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; } &&
11972          { ac_try='test -s conftest$ac_exeext'
11973   { (case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_try") 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; }; then
11982   eval "$as_ac_var=yes"
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         eval "$as_ac_var=no"
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext \
11991       conftest$ac_exeext conftest.$ac_ext
11992 fi
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994                { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997   cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001 fi
12002 done
12003
12004
12005 # Check whether --enable-shared was given.
12006 if test "${enable_shared+set}" = set; then
12007   enableval=$enable_shared; p=${PACKAGE-default}
12008     case $enableval in
12009     yes) enable_shared=yes ;;
12010     no) enable_shared=no ;;
12011     *)
12012       enable_shared=no
12013       # Look at the argument we got.  We use all the common list separators.
12014       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12015       for pkg in $enableval; do
12016         IFS="$lt_save_ifs"
12017         if test "X$pkg" = "X$p"; then
12018           enable_shared=yes
12019         fi
12020       done
12021       IFS="$lt_save_ifs"
12022       ;;
12023     esac
12024 else
12025   enable_shared=yes
12026 fi
12027
12028
12029 # Check whether --enable-static was given.
12030 if test "${enable_static+set}" = set; then
12031   enableval=$enable_static; p=${PACKAGE-default}
12032     case $enableval in
12033     yes) enable_static=yes ;;
12034     no) enable_static=no ;;
12035     *)
12036      enable_static=no
12037       # Look at the argument we got.  We use all the common list separators.
12038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039       for pkg in $enableval; do
12040         IFS="$lt_save_ifs"
12041         if test "X$pkg" = "X$p"; then
12042           enable_static=yes
12043         fi
12044       done
12045       IFS="$lt_save_ifs"
12046       ;;
12047     esac
12048 else
12049   enable_static=yes
12050 fi
12051
12052
12053 # Check whether --enable-fast-install was given.
12054 if test "${enable_fast_install+set}" = set; then
12055   enableval=$enable_fast_install; p=${PACKAGE-default}
12056     case $enableval in
12057     yes) enable_fast_install=yes ;;
12058     no) enable_fast_install=no ;;
12059     *)
12060       enable_fast_install=no
12061       # Look at the argument we got.  We use all the common list separators.
12062       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12063       for pkg in $enableval; do
12064         IFS="$lt_save_ifs"
12065         if test "X$pkg" = "X$p"; then
12066           enable_fast_install=yes
12067         fi
12068       done
12069       IFS="$lt_save_ifs"
12070       ;;
12071     esac
12072 else
12073   enable_fast_install=yes
12074 fi
12075
12076
12077 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12078 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12079 if test "${lt_cv_path_SED+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   # Loop through the user's path and test for sed and gsed.
12083 # Then use that list of sed's as ones to test for truncation.
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087   IFS=$as_save_IFS
12088   test -z "$as_dir" && as_dir=.
12089   for lt_ac_prog in sed gsed; do
12090     for ac_exec_ext in '' $ac_executable_extensions; do
12091       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12092         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12093       fi
12094     done
12095   done
12096 done
12097 lt_ac_max=0
12098 lt_ac_count=0
12099 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12100 # along with /bin/sed that truncates output.
12101 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12102   test ! -f $lt_ac_sed && continue
12103   cat /dev/null > conftest.in
12104   lt_ac_count=0
12105   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12106   # Check for GNU sed and select it if it is found.
12107   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12108     lt_cv_path_SED=$lt_ac_sed
12109     break
12110   fi
12111   while true; do
12112     cat conftest.in conftest.in >conftest.tmp
12113     mv conftest.tmp conftest.in
12114     cp conftest.in conftest.nl
12115     echo >>conftest.nl
12116     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12117     cmp -s conftest.out conftest.nl || break
12118     # 10000 chars as input seems more than enough
12119     test $lt_ac_count -gt 10 && break
12120     lt_ac_count=`expr $lt_ac_count + 1`
12121     if test $lt_ac_count -gt $lt_ac_max; then
12122       lt_ac_max=$lt_ac_count
12123       lt_cv_path_SED=$lt_ac_sed
12124     fi
12125   done
12126 done
12127
12128 fi
12129
12130 SED=$lt_cv_path_SED
12131 { echo "$as_me:$LINENO: result: $SED" >&5
12132 echo "${ECHO_T}$SED" >&6; }
12133
12134
12135 # Check whether --with-gnu-ld was given.
12136 if test "${with_gnu_ld+set}" = set; then
12137   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12138 else
12139   with_gnu_ld=no
12140 fi
12141
12142 ac_prog=ld
12143 if test "$GCC" = yes; then
12144   # Check if gcc -print-prog-name=ld gives a path.
12145   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12146 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12147   case $host in
12148   *-*-mingw*)
12149     # gcc leaves a trailing carriage return which upsets mingw
12150     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12151   *)
12152     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12153   esac
12154   case $ac_prog in
12155     # Accept absolute paths.
12156     [\\/]* | ?:[\\/]*)
12157       re_direlt='/[^/][^/]*/\.\./'
12158       # Canonicalize the pathname of ld
12159       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12160       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12161         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12162       done
12163       test -z "$LD" && LD="$ac_prog"
12164       ;;
12165   "")
12166     # If it fails, then pretend we aren't using GCC.
12167     ac_prog=ld
12168     ;;
12169   *)
12170     # If it is relative, then search for the first ld in PATH.
12171     with_gnu_ld=unknown
12172     ;;
12173   esac
12174 elif test "$with_gnu_ld" = yes; then
12175   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12176 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12177 else
12178   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12179 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12180 fi
12181 if test "${lt_cv_path_LD+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   if test -z "$LD"; then
12185   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12186   for ac_dir in $PATH; do
12187     IFS="$lt_save_ifs"
12188     test -z "$ac_dir" && ac_dir=.
12189     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12190       lt_cv_path_LD="$ac_dir/$ac_prog"
12191       # Check to see if the program is GNU ld.  I'd rather use --version,
12192       # but apparently some variants of GNU ld only accept -v.
12193       # Break only if it was the GNU/non-GNU ld that we prefer.
12194       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12195       *GNU* | *'with BFD'*)
12196         test "$with_gnu_ld" != no && break
12197         ;;
12198       *)
12199         test "$with_gnu_ld" != yes && break
12200         ;;
12201       esac
12202     fi
12203   done
12204   IFS="$lt_save_ifs"
12205 else
12206   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12207 fi
12208 fi
12209
12210 LD="$lt_cv_path_LD"
12211 if test -n "$LD"; then
12212   { echo "$as_me:$LINENO: result: $LD" >&5
12213 echo "${ECHO_T}$LD" >&6; }
12214 else
12215   { echo "$as_me:$LINENO: result: no" >&5
12216 echo "${ECHO_T}no" >&6; }
12217 fi
12218 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12219 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12220    { (exit 1); exit 1; }; }
12221 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12222 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12223 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12227 case `$LD -v 2>&1 </dev/null` in
12228 *GNU* | *'with BFD'*)
12229   lt_cv_prog_gnu_ld=yes
12230   ;;
12231 *)
12232   lt_cv_prog_gnu_ld=no
12233   ;;
12234 esac
12235 fi
12236 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12238 with_gnu_ld=$lt_cv_prog_gnu_ld
12239
12240
12241 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12243 if test "${lt_cv_ld_reload_flag+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   lt_cv_ld_reload_flag='-r'
12247 fi
12248 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12250 reload_flag=$lt_cv_ld_reload_flag
12251 case $reload_flag in
12252 "" | " "*) ;;
12253 *) reload_flag=" $reload_flag" ;;
12254 esac
12255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12256 case $host_os in
12257   darwin*)
12258     if test "$GCC" = yes; then
12259       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12260     else
12261       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12262     fi
12263     ;;
12264 esac
12265
12266 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12267 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12268 if test "${lt_cv_deplibs_check_method+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   lt_cv_file_magic_cmd='$MAGIC_CMD'
12272 lt_cv_file_magic_test_file=
12273 lt_cv_deplibs_check_method='unknown'
12274 # Need to set the preceding variable on all platforms that support
12275 # interlibrary dependencies.
12276 # 'none' -- dependencies not supported.
12277 # `unknown' -- same as none, but documents that we really don't know.
12278 # 'pass_all' -- all dependencies passed with no checks.
12279 # 'test_compile' -- check by making test program.
12280 # 'file_magic [[regex]]' -- check by looking for files in library path
12281 # which responds to the $file_magic_cmd with a given extended regex.
12282 # If you have `file' or equivalent on your system and you're not sure
12283 # whether `pass_all' will *always* work, you probably want this one.
12284
12285 case $host_os in
12286 aix4* | aix5*)
12287   lt_cv_deplibs_check_method=pass_all
12288   ;;
12289
12290 beos*)
12291   lt_cv_deplibs_check_method=pass_all
12292   ;;
12293
12294 bsdi[45]*)
12295   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12296   lt_cv_file_magic_cmd='/usr/bin/file -L'
12297   lt_cv_file_magic_test_file=/shlib/libc.so
12298   ;;
12299
12300 cygwin*)
12301   # func_win32_libid is a shell function defined in ltmain.sh
12302   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12303   lt_cv_file_magic_cmd='func_win32_libid'
12304   ;;
12305
12306 mingw* | pw32*)
12307   # Base MSYS/MinGW do not provide the 'file' command needed by
12308   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12309   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12310   lt_cv_file_magic_cmd='$OBJDUMP -f'
12311   ;;
12312
12313 darwin* | rhapsody*)
12314   lt_cv_deplibs_check_method=pass_all
12315   ;;
12316
12317 freebsd* | kfreebsd*-gnu | dragonfly*)
12318   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12319     case $host_cpu in
12320     i*86 )
12321       # Not sure whether the presence of OpenBSD here was a mistake.
12322       # Let's accept both of them until this is cleared up.
12323       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12324       lt_cv_file_magic_cmd=/usr/bin/file
12325       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12326       ;;
12327     esac
12328   else
12329     lt_cv_deplibs_check_method=pass_all
12330   fi
12331   ;;
12332
12333 gnu*)
12334   lt_cv_deplibs_check_method=pass_all
12335   ;;
12336
12337 hpux10.20* | hpux11*)
12338   lt_cv_file_magic_cmd=/usr/bin/file
12339   case $host_cpu in
12340   ia64*)
12341     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12342     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12343     ;;
12344   hppa*64*)
12345     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]'
12346     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12347     ;;
12348   *)
12349     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12350     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12351     ;;
12352   esac
12353   ;;
12354
12355 interix3*)
12356   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12357   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12358   ;;
12359
12360 irix5* | irix6* | nonstopux*)
12361   case $LD in
12362   *-32|*"-32 ") libmagic=32-bit;;
12363   *-n32|*"-n32 ") libmagic=N32;;
12364   *-64|*"-64 ") libmagic=64-bit;;
12365   *) libmagic=never-match;;
12366   esac
12367   lt_cv_deplibs_check_method=pass_all
12368   ;;
12369
12370 # This must be Linux ELF.
12371 linux*)
12372   lt_cv_deplibs_check_method=pass_all
12373   ;;
12374
12375 netbsd*)
12376   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12377     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12378   else
12379     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12380   fi
12381   ;;
12382
12383 newos6*)
12384   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12385   lt_cv_file_magic_cmd=/usr/bin/file
12386   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12387   ;;
12388
12389 nto-qnx*)
12390   lt_cv_deplibs_check_method=unknown
12391   ;;
12392
12393 openbsd*)
12394   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12395     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12396   else
12397     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12398   fi
12399   ;;
12400
12401 osf3* | osf4* | osf5*)
12402   lt_cv_deplibs_check_method=pass_all
12403   ;;
12404
12405 solaris*)
12406   lt_cv_deplibs_check_method=pass_all
12407   ;;
12408
12409 sysv4 | sysv4.3*)
12410   case $host_vendor in
12411   motorola)
12412     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]'
12413     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12414     ;;
12415   ncr)
12416     lt_cv_deplibs_check_method=pass_all
12417     ;;
12418   sequent)
12419     lt_cv_file_magic_cmd='/bin/file'
12420     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12421     ;;
12422   sni)
12423     lt_cv_file_magic_cmd='/bin/file'
12424     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12425     lt_cv_file_magic_test_file=/lib/libc.so
12426     ;;
12427   siemens)
12428     lt_cv_deplibs_check_method=pass_all
12429     ;;
12430   pc)
12431     lt_cv_deplibs_check_method=pass_all
12432     ;;
12433   esac
12434   ;;
12435
12436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12437   lt_cv_deplibs_check_method=pass_all
12438   ;;
12439 esac
12440
12441 fi
12442 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12443 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12444 file_magic_cmd=$lt_cv_file_magic_cmd
12445 deplibs_check_method=$lt_cv_deplibs_check_method
12446 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12447
12448
12449
12450 # If no C compiler was specified, use CC.
12451 LTCC=${LTCC-"$CC"}
12452
12453 # If no C compiler flags were specified, use CFLAGS.
12454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12455
12456 # Allow CC to be a program name with arguments.
12457 compiler=$CC
12458
12459 # Check whether --enable-libtool-lock was given.
12460 if test "${enable_libtool_lock+set}" = set; then
12461   enableval=$enable_libtool_lock;
12462 fi
12463
12464 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12465
12466 # Some flags need to be propagated to the compiler or linker for good
12467 # libtool support.
12468 case $host in
12469 ia64-*-hpux*)
12470   # Find out which ABI we are using.
12471   echo 'int i;' > conftest.$ac_ext
12472   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473   (eval $ac_compile) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; then
12477     case `/usr/bin/file conftest.$ac_objext` in
12478     *ELF-32*)
12479       HPUX_IA64_MODE="32"
12480       ;;
12481     *ELF-64*)
12482       HPUX_IA64_MODE="64"
12483       ;;
12484     esac
12485   fi
12486   rm -rf conftest*
12487   ;;
12488 *-*-irix6*)
12489   # Find out which ABI we are using.
12490   echo '#line 12490 "configure"' > conftest.$ac_ext
12491   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492   (eval $ac_compile) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; then
12496    if test "$lt_cv_prog_gnu_ld" = yes; then
12497     case `/usr/bin/file conftest.$ac_objext` in
12498     *32-bit*)
12499       LD="${LD-ld} -melf32bsmip"
12500       ;;
12501     *N32*)
12502       LD="${LD-ld} -melf32bmipn32"
12503       ;;
12504     *64-bit*)
12505       LD="${LD-ld} -melf64bmip"
12506       ;;
12507     esac
12508    else
12509     case `/usr/bin/file conftest.$ac_objext` in
12510     *32-bit*)
12511       LD="${LD-ld} -32"
12512       ;;
12513     *N32*)
12514       LD="${LD-ld} -n32"
12515       ;;
12516     *64-bit*)
12517       LD="${LD-ld} -64"
12518       ;;
12519     esac
12520    fi
12521   fi
12522   rm -rf conftest*
12523   ;;
12524
12525 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12526   # Find out which ABI we are using.
12527   echo 'int i;' > conftest.$ac_ext
12528   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); }; then
12533     case `/usr/bin/file conftest.o` in
12534     *32-bit*)
12535       case $host in
12536         x86_64-*linux*)
12537           LD="${LD-ld} -m elf_i386"
12538           ;;
12539         ppc64-*linux*|powerpc64-*linux*)
12540           LD="${LD-ld} -m elf32ppclinux"
12541           ;;
12542         s390x-*linux*)
12543           LD="${LD-ld} -m elf_s390"
12544           ;;
12545         sparc64-*linux*)
12546           LD="${LD-ld} -m elf32_sparc"
12547           ;;
12548       esac
12549       ;;
12550     *64-bit*)
12551       case $host in
12552         x86_64-*linux*)
12553           LD="${LD-ld} -m elf_x86_64"
12554           ;;
12555         ppc*-*linux*|powerpc*-*linux*)
12556           LD="${LD-ld} -m elf64ppc"
12557           ;;
12558         s390*-*linux*)
12559           LD="${LD-ld} -m elf64_s390"
12560           ;;
12561         sparc*-*linux*)
12562           LD="${LD-ld} -m elf64_sparc"
12563           ;;
12564       esac
12565       ;;
12566     esac
12567   fi
12568   rm -rf conftest*
12569   ;;
12570
12571 *-*-sco3.2v5*)
12572   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12573   SAVE_CFLAGS="$CFLAGS"
12574   CFLAGS="$CFLAGS -belf"
12575   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12576 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12577 if test "${lt_cv_cc_needs_belf+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   ac_ext=c
12581 ac_cpp='$CPP $CPPFLAGS'
12582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12585
12586      cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h.  */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h.  */
12592
12593 int
12594 main ()
12595 {
12596
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_link") 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } &&
12615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12616   { (case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621   (eval "$ac_try") 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; } &&
12625          { ac_try='test -s conftest$ac_exeext'
12626   { (case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_try") 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; }; then
12635   lt_cv_cc_needs_belf=yes
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640         lt_cv_cc_needs_belf=no
12641 fi
12642
12643 rm -f core conftest.err conftest.$ac_objext \
12644       conftest$ac_exeext conftest.$ac_ext
12645      ac_ext=c
12646 ac_cpp='$CPP $CPPFLAGS'
12647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650
12651 fi
12652 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12653 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12654   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12655     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12656     CFLAGS="$SAVE_CFLAGS"
12657   fi
12658   ;;
12659 sparc*-*solaris*)
12660   # Find out which ABI we are using.
12661   echo 'int i;' > conftest.$ac_ext
12662   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663   (eval $ac_compile) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; then
12667     case `/usr/bin/file conftest.o` in
12668     *64-bit*)
12669       case $lt_cv_prog_gnu_ld in
12670       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12671       *)    LD="${LD-ld} -64" ;;
12672       esac
12673       ;;
12674     esac
12675   fi
12676   rm -rf conftest*
12677   ;;
12678
12679
12680 esac
12681
12682 need_locks="$enable_libtool_lock"
12683
12684
12685
12686
12687 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12688     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12689     (test "X$CXX" != "Xg++"))) ; then
12690   ac_ext=cpp
12691 ac_cpp='$CXXCPP $CPPFLAGS'
12692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12695 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12696 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12697 if test -z "$CXXCPP"; then
12698   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701       # Double quotes because CXXCPP needs to be expanded
12702     for CXXCPP in "$CXX -E" "/lib/cpp"
12703     do
12704       ac_preproc_ok=false
12705 for ac_cxx_preproc_warn_flag in '' yes
12706 do
12707   # Use a header file that comes with gcc, so configuring glibc
12708   # with a fresh cross-compiler works.
12709   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12710   # <limits.h> exists even on freestanding compilers.
12711   # On the NeXT, cc -E runs the code through the compiler's parser,
12712   # not just through cpp. "Syntax error" is here to catch this case.
12713   cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719 #ifdef __STDC__
12720 # include <limits.h>
12721 #else
12722 # include <assert.h>
12723 #endif
12724                      Syntax error
12725 _ACEOF
12726 if { (ac_try="$ac_cpp conftest.$ac_ext"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } >/dev/null; then
12739   if test -s conftest.err; then
12740     ac_cpp_err=$ac_cxx_preproc_warn_flag
12741     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12742   else
12743     ac_cpp_err=
12744   fi
12745 else
12746   ac_cpp_err=yes
12747 fi
12748 if test -z "$ac_cpp_err"; then
12749   :
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754   # Broken: fails on valid input.
12755 continue
12756 fi
12757
12758 rm -f conftest.err conftest.$ac_ext
12759
12760   # OK, works on sane cases.  Now check whether nonexistent headers
12761   # can be detected and how.
12762   cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h.  */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h.  */
12768 #include <ac_nonexistent.h>
12769 _ACEOF
12770 if { (ac_try="$ac_cpp conftest.$ac_ext"
12771 case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } >/dev/null; then
12783   if test -s conftest.err; then
12784     ac_cpp_err=$ac_cxx_preproc_warn_flag
12785     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12786   else
12787     ac_cpp_err=
12788   fi
12789 else
12790   ac_cpp_err=yes
12791 fi
12792 if test -z "$ac_cpp_err"; then
12793   # Broken: success on invalid input.
12794 continue
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799   # Passes both tests.
12800 ac_preproc_ok=:
12801 break
12802 fi
12803
12804 rm -f conftest.err conftest.$ac_ext
12805
12806 done
12807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12808 rm -f conftest.err conftest.$ac_ext
12809 if $ac_preproc_ok; then
12810   break
12811 fi
12812
12813     done
12814     ac_cv_prog_CXXCPP=$CXXCPP
12815
12816 fi
12817   CXXCPP=$ac_cv_prog_CXXCPP
12818 else
12819   ac_cv_prog_CXXCPP=$CXXCPP
12820 fi
12821 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12822 echo "${ECHO_T}$CXXCPP" >&6; }
12823 ac_preproc_ok=false
12824 for ac_cxx_preproc_warn_flag in '' yes
12825 do
12826   # Use a header file that comes with gcc, so configuring glibc
12827   # with a fresh cross-compiler works.
12828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829   # <limits.h> exists even on freestanding compilers.
12830   # On the NeXT, cc -E runs the code through the compiler's parser,
12831   # not just through cpp. "Syntax error" is here to catch this case.
12832   cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838 #ifdef __STDC__
12839 # include <limits.h>
12840 #else
12841 # include <assert.h>
12842 #endif
12843                      Syntax error
12844 _ACEOF
12845 if { (ac_try="$ac_cpp conftest.$ac_ext"
12846 case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12852   ac_status=$?
12853   grep -v '^ *+' conftest.er1 >conftest.err
12854   rm -f conftest.er1
12855   cat conftest.err >&5
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } >/dev/null; then
12858   if test -s conftest.err; then
12859     ac_cpp_err=$ac_cxx_preproc_warn_flag
12860     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12861   else
12862     ac_cpp_err=
12863   fi
12864 else
12865   ac_cpp_err=yes
12866 fi
12867 if test -z "$ac_cpp_err"; then
12868   :
12869 else
12870   echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12872
12873   # Broken: fails on valid input.
12874 continue
12875 fi
12876
12877 rm -f conftest.err conftest.$ac_ext
12878
12879   # OK, works on sane cases.  Now check whether nonexistent headers
12880   # can be detected and how.
12881   cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887 #include <ac_nonexistent.h>
12888 _ACEOF
12889 if { (ac_try="$ac_cpp conftest.$ac_ext"
12890 case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } >/dev/null; then
12902   if test -s conftest.err; then
12903     ac_cpp_err=$ac_cxx_preproc_warn_flag
12904     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12905   else
12906     ac_cpp_err=
12907   fi
12908 else
12909   ac_cpp_err=yes
12910 fi
12911 if test -z "$ac_cpp_err"; then
12912   # Broken: success on invalid input.
12913 continue
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918   # Passes both tests.
12919 ac_preproc_ok=:
12920 break
12921 fi
12922
12923 rm -f conftest.err conftest.$ac_ext
12924
12925 done
12926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12927 rm -f conftest.err conftest.$ac_ext
12928 if $ac_preproc_ok; then
12929   :
12930 else
12931   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12932 See \`config.log' for more details." >&5
12933 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12934 See \`config.log' for more details." >&2;}
12935    { (exit 1); exit 1; }; }
12936 fi
12937
12938 ac_ext=cpp
12939 ac_cpp='$CXXCPP $CPPFLAGS'
12940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12943
12944 fi
12945
12946
12947 ac_ext=f
12948 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12949 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12951 if test -n "$ac_tool_prefix"; then
12952   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
12953   do
12954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_F77+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   if test -n "$F77"; then
12962   ac_cv_prog_F77="$F77" # Let the user override the test.
12963 else
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12966 do
12967   IFS=$as_save_IFS
12968   test -z "$as_dir" && as_dir=.
12969   for ac_exec_ext in '' $ac_executable_extensions; do
12970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12971     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12973     break 2
12974   fi
12975 done
12976 done
12977 IFS=$as_save_IFS
12978
12979 fi
12980 fi
12981 F77=$ac_cv_prog_F77
12982 if test -n "$F77"; then
12983   { echo "$as_me:$LINENO: result: $F77" >&5
12984 echo "${ECHO_T}$F77" >&6; }
12985 else
12986   { echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6; }
12988 fi
12989
12990
12991     test -n "$F77" && break
12992   done
12993 fi
12994 if test -z "$F77"; then
12995   ac_ct_F77=$F77
12996   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
12997 do
12998   # Extract the first word of "$ac_prog", so it can be a program name with args.
12999 set dummy $ac_prog; ac_word=$2
13000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13002 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   if test -n "$ac_ct_F77"; then
13006   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13007 else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013   for ac_exec_ext in '' $ac_executable_extensions; do
13014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13015     ac_cv_prog_ac_ct_F77="$ac_prog"
13016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017     break 2
13018   fi
13019 done
13020 done
13021 IFS=$as_save_IFS
13022
13023 fi
13024 fi
13025 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13026 if test -n "$ac_ct_F77"; then
13027   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13028 echo "${ECHO_T}$ac_ct_F77" >&6; }
13029 else
13030   { echo "$as_me:$LINENO: result: no" >&5
13031 echo "${ECHO_T}no" >&6; }
13032 fi
13033
13034
13035   test -n "$ac_ct_F77" && break
13036 done
13037
13038   if test "x$ac_ct_F77" = x; then
13039     F77=""
13040   else
13041     case $cross_compiling:$ac_tool_warned in
13042 yes:)
13043 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13044 whose name does not start with the host triplet.  If you think this
13045 configuration is useful to you, please write to autoconf@gnu.org." >&5
13046 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13047 whose name does not start with the host triplet.  If you think this
13048 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13049 ac_tool_warned=yes ;;
13050 esac
13051     F77=$ac_ct_F77
13052   fi
13053 fi
13054
13055
13056 # Provide some information about the compiler.
13057 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13058 ac_compiler=`set X $ac_compile; echo $2`
13059 { (ac_try="$ac_compiler --version >&5"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_compiler --version >&5") 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }
13069 { (ac_try="$ac_compiler -v >&5"
13070 case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_compiler -v >&5") 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }
13079 { (ac_try="$ac_compiler -V >&5"
13080 case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_compiler -V >&5") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }
13089 rm -f a.out
13090
13091 # If we don't use `.F' as extension, the preprocessor is not run on the
13092 # input file.  (Note that this only needs to work for GNU compilers.)
13093 ac_save_ext=$ac_ext
13094 ac_ext=F
13095 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13096 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13097 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   cat >conftest.$ac_ext <<_ACEOF
13101       program main
13102 #ifndef __GNUC__
13103        choke me
13104 #endif
13105
13106       end
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_compile") 2>conftest.er1
13116   ac_status=$?
13117   grep -v '^ *+' conftest.er1 >conftest.err
13118   rm -f conftest.er1
13119   cat conftest.err >&5
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13123   { (case "(($ac_try" in
13124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125   *) ac_try_echo=$ac_try;;
13126 esac
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128   (eval "$ac_try") 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; } &&
13132          { ac_try='test -s conftest.$ac_objext'
13133   { (case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_try") 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_compiler_gnu=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147         ac_compiler_gnu=no
13148 fi
13149
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13152
13153 fi
13154 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13155 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13156 ac_ext=$ac_save_ext
13157 ac_test_FFLAGS=${FFLAGS+set}
13158 ac_save_FFLAGS=$FFLAGS
13159 FFLAGS=
13160 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13161 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13162 if test "${ac_cv_prog_f77_g+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   FFLAGS=-g
13166 cat >conftest.$ac_ext <<_ACEOF
13167       program main
13168
13169       end
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175   *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178   (eval "$ac_compile") 2>conftest.er1
13179   ac_status=$?
13180   grep -v '^ *+' conftest.er1 >conftest.err
13181   rm -f conftest.er1
13182   cat conftest.err >&5
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } &&
13185          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13186   { (case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_try") 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; } &&
13195          { ac_try='test -s conftest.$ac_objext'
13196   { (case "(($ac_try" in
13197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198   *) ac_try_echo=$ac_try;;
13199 esac
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201   (eval "$ac_try") 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; }; then
13205   ac_cv_prog_f77_g=yes
13206 else
13207   echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210         ac_cv_prog_f77_g=no
13211 fi
13212
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214
13215 fi
13216 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13217 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13218 if test "$ac_test_FFLAGS" = set; then
13219   FFLAGS=$ac_save_FFLAGS
13220 elif test $ac_cv_prog_f77_g = yes; then
13221   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13222     FFLAGS="-g -O2"
13223   else
13224     FFLAGS="-g"
13225   fi
13226 else
13227   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13228     FFLAGS="-O2"
13229   else
13230     FFLAGS=
13231   fi
13232 fi
13233
13234 G77=`test $ac_compiler_gnu = yes && echo yes`
13235 ac_ext=c
13236 ac_cpp='$CPP $CPPFLAGS'
13237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240
13241
13242
13243 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13244
13245 # find the maximum length of command line arguments
13246 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13247 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13248 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251     i=0
13252   teststring="ABCD"
13253
13254   case $build_os in
13255   msdosdjgpp*)
13256     # On DJGPP, this test can blow up pretty badly due to problems in libc
13257     # (any single argument exceeding 2000 bytes causes a buffer overrun
13258     # during glob expansion).  Even if it were fixed, the result of this
13259     # check would be larger than it should be.
13260     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13261     ;;
13262
13263   gnu*)
13264     # Under GNU Hurd, this test is not required because there is
13265     # no limit to the length of command line arguments.
13266     # Libtool will interpret -1 as no limit whatsoever
13267     lt_cv_sys_max_cmd_len=-1;
13268     ;;
13269
13270   cygwin* | mingw*)
13271     # On Win9x/ME, this test blows up -- it succeeds, but takes
13272     # about 5 minutes as the teststring grows exponentially.
13273     # Worse, since 9x/ME are not pre-emptively multitasking,
13274     # you end up with a "frozen" computer, even though with patience
13275     # the test eventually succeeds (with a max line length of 256k).
13276     # Instead, let's just punt: use the minimum linelength reported by
13277     # all of the supported platforms: 8192 (on NT/2K/XP).
13278     lt_cv_sys_max_cmd_len=8192;
13279     ;;
13280
13281   amigaos*)
13282     # On AmigaOS with pdksh, this test takes hours, literally.
13283     # So we just punt and use a minimum line length of 8192.
13284     lt_cv_sys_max_cmd_len=8192;
13285     ;;
13286
13287   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13288     # This has been around since 386BSD, at least.  Likely further.
13289     if test -x /sbin/sysctl; then
13290       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13291     elif test -x /usr/sbin/sysctl; then
13292       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13293     else
13294       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13295     fi
13296     # And add a safety zone
13297     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13298     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13299     ;;
13300
13301   interix*)
13302     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13303     lt_cv_sys_max_cmd_len=196608
13304     ;;
13305
13306   osf*)
13307     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13308     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13309     # nice to cause kernel panics so lets avoid the loop below.
13310     # First set a reasonable default.
13311     lt_cv_sys_max_cmd_len=16384
13312     #
13313     if test -x /sbin/sysconfig; then
13314       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13315         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13316       esac
13317     fi
13318     ;;
13319   sco3.2v5*)
13320     lt_cv_sys_max_cmd_len=102400
13321     ;;
13322   sysv5* | sco5v6* | sysv4.2uw2*)
13323     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13324     if test -n "$kargmax"; then
13325       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13326     else
13327       lt_cv_sys_max_cmd_len=32768
13328     fi
13329     ;;
13330   *)
13331     # If test is not a shell built-in, we'll probably end up computing a
13332     # maximum length that is only half of the actual maximum length, but
13333     # we can't tell.
13334     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13335     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13336                = "XX$teststring") >/dev/null 2>&1 &&
13337             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13338             lt_cv_sys_max_cmd_len=$new_result &&
13339             test $i != 17 # 1/2 MB should be enough
13340     do
13341       i=`expr $i + 1`
13342       teststring=$teststring$teststring
13343     done
13344     teststring=
13345     # Add a significant safety factor because C++ compilers can tack on massive
13346     # amounts of additional arguments before passing them to the linker.
13347     # It appears as though 1/2 is a usable value.
13348     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13349     ;;
13350   esac
13351
13352 fi
13353
13354 if test -n $lt_cv_sys_max_cmd_len ; then
13355   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13356 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13357 else
13358   { echo "$as_me:$LINENO: result: none" >&5
13359 echo "${ECHO_T}none" >&6; }
13360 fi
13361
13362
13363
13364
13365 # Check for command to grab the raw symbol name followed by C symbol from nm.
13366 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13367 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13368 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371
13372 # These are sane defaults that work on at least a few old systems.
13373 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13374
13375 # Character class describing NM global symbol codes.
13376 symcode='[BCDEGRST]'
13377
13378 # Regexp to match symbols that can be accessed directly from C.
13379 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13380
13381 # Transform an extracted symbol line into a proper C declaration
13382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13383
13384 # Transform an extracted symbol line into symbol name and symbol address
13385 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'"
13386
13387 # Define system-specific variables.
13388 case $host_os in
13389 aix*)
13390   symcode='[BCDT]'
13391   ;;
13392 cygwin* | mingw* | pw32*)
13393   symcode='[ABCDGISTW]'
13394   ;;
13395 hpux*) # Its linker distinguishes data from code symbols
13396   if test "$host_cpu" = ia64; then
13397     symcode='[ABCDEGRST]'
13398   fi
13399   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13400   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'"
13401   ;;
13402 linux*)
13403   if test "$host_cpu" = ia64; then
13404     symcode='[ABCDGIRSTW]'
13405     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13406     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'"
13407   fi
13408   ;;
13409 irix* | nonstopux*)
13410   symcode='[BCDEGRST]'
13411   ;;
13412 osf*)
13413   symcode='[BCDEGQRST]'
13414   ;;
13415 solaris*)
13416   symcode='[BDRT]'
13417   ;;
13418 sco3.2v5*)
13419   symcode='[DT]'
13420   ;;
13421 sysv4.2uw2*)
13422   symcode='[DT]'
13423   ;;
13424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13425   symcode='[ABDT]'
13426   ;;
13427 sysv4)
13428   symcode='[DFNSTU]'
13429   ;;
13430 esac
13431
13432 # Handle CRLF in mingw tool chain
13433 opt_cr=
13434 case $build_os in
13435 mingw*)
13436   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13437   ;;
13438 esac
13439
13440 # If we're using GNU nm, then use its standard symbol codes.
13441 case `$NM -V 2>&1` in
13442 *GNU* | *'with BFD'*)
13443   symcode='[ABCDGIRSTW]' ;;
13444 esac
13445
13446 # Try without a prefix undercore, then with it.
13447 for ac_symprfx in "" "_"; do
13448
13449   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13450   symxfrm="\\1 $ac_symprfx\\2 \\2"
13451
13452   # Write the raw and C identifiers.
13453   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13454
13455   # Check to see that the pipe works correctly.
13456   pipe_works=no
13457
13458   rm -f conftest*
13459   cat > conftest.$ac_ext <<EOF
13460 #ifdef __cplusplus
13461 extern "C" {
13462 #endif
13463 char nm_test_var;
13464 void nm_test_func(){}
13465 #ifdef __cplusplus
13466 }
13467 #endif
13468 int main(){nm_test_var='a';nm_test_func();return(0);}
13469 EOF
13470
13471   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13472   (eval $ac_compile) 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }; then
13476     # Now try to grab the symbols.
13477     nlist=conftest.nm
13478     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13479   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } && test -s "$nlist"; then
13483       # Try sorting and uniquifying the output.
13484       if sort "$nlist" | uniq > "$nlist"T; then
13485         mv -f "$nlist"T "$nlist"
13486       else
13487         rm -f "$nlist"T
13488       fi
13489
13490       # Make sure that we snagged all the symbols we need.
13491       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13492         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13493           cat <<EOF > conftest.$ac_ext
13494 #ifdef __cplusplus
13495 extern "C" {
13496 #endif
13497
13498 EOF
13499           # Now generate the symbol file.
13500           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13501
13502           cat <<EOF >> conftest.$ac_ext
13503 #if defined (__STDC__) && __STDC__
13504 # define lt_ptr_t void *
13505 #else
13506 # define lt_ptr_t char *
13507 # define const
13508 #endif
13509
13510 /* The mapping between symbol names and symbols. */
13511 const struct {
13512   const char *name;
13513   lt_ptr_t address;
13514 }
13515 lt_preloaded_symbols[] =
13516 {
13517 EOF
13518           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13519           cat <<\EOF >> conftest.$ac_ext
13520   {0, (lt_ptr_t) 0}
13521 };
13522
13523 #ifdef __cplusplus
13524 }
13525 #endif
13526 EOF
13527           # Now try linking the two files.
13528           mv conftest.$ac_objext conftstm.$ac_objext
13529           lt_save_LIBS="$LIBS"
13530           lt_save_CFLAGS="$CFLAGS"
13531           LIBS="conftstm.$ac_objext"
13532           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13533           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534   (eval $ac_link) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13538             pipe_works=yes
13539           fi
13540           LIBS="$lt_save_LIBS"
13541           CFLAGS="$lt_save_CFLAGS"
13542         else
13543           echo "cannot find nm_test_func in $nlist" >&5
13544         fi
13545       else
13546         echo "cannot find nm_test_var in $nlist" >&5
13547       fi
13548     else
13549       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13550     fi
13551   else
13552     echo "$progname: failed program was:" >&5
13553     cat conftest.$ac_ext >&5
13554   fi
13555   rm -f conftest* conftst*
13556
13557   # Do not use the global_symbol_pipe unless it works.
13558   if test "$pipe_works" = yes; then
13559     break
13560   else
13561     lt_cv_sys_global_symbol_pipe=
13562   fi
13563 done
13564
13565 fi
13566
13567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13568   lt_cv_sys_global_symbol_to_cdecl=
13569 fi
13570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13571   { echo "$as_me:$LINENO: result: failed" >&5
13572 echo "${ECHO_T}failed" >&6; }
13573 else
13574   { echo "$as_me:$LINENO: result: ok" >&5
13575 echo "${ECHO_T}ok" >&6; }
13576 fi
13577
13578 { echo "$as_me:$LINENO: checking for objdir" >&5
13579 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13580 if test "${lt_cv_objdir+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   rm -f .libs 2>/dev/null
13584 mkdir .libs 2>/dev/null
13585 if test -d .libs; then
13586   lt_cv_objdir=.libs
13587 else
13588   # MS-DOS does not allow filenames that begin with a dot.
13589   lt_cv_objdir=_libs
13590 fi
13591 rmdir .libs 2>/dev/null
13592 fi
13593 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13594 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13595 objdir=$lt_cv_objdir
13596
13597
13598
13599
13600
13601 case $host_os in
13602 aix3*)
13603   # AIX sometimes has problems with the GCC collect2 program.  For some
13604   # reason, if we set the COLLECT_NAMES environment variable, the problems
13605   # vanish in a puff of smoke.
13606   if test "X${COLLECT_NAMES+set}" != Xset; then
13607     COLLECT_NAMES=
13608     export COLLECT_NAMES
13609   fi
13610   ;;
13611 esac
13612
13613 # Sed substitution that helps us do robust quoting.  It backslashifies
13614 # metacharacters that are still active within double-quoted strings.
13615 Xsed='sed -e 1s/^X//'
13616 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13617
13618 # Same as above, but do not quote variable references.
13619 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13620
13621 # Sed substitution to delay expansion of an escaped shell variable in a
13622 # double_quote_subst'ed string.
13623 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13624
13625 # Sed substitution to avoid accidental globbing in evaled expressions
13626 no_glob_subst='s/\*/\\\*/g'
13627
13628 # Constants:
13629 rm="rm -f"
13630
13631 # Global variables:
13632 default_ofile=mklib
13633 can_build_shared=yes
13634
13635 # All known linkers require a `.a' archive for static linking (except MSVC,
13636 # which needs '.lib').
13637 libext=a
13638 ltmain="$ac_aux_dir/ltmain.sh"
13639 ofile="$default_ofile"
13640 with_gnu_ld="$lt_cv_prog_gnu_ld"
13641
13642 if test -n "$ac_tool_prefix"; then
13643   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13644 set dummy ${ac_tool_prefix}ar; ac_word=$2
13645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13647 if test "${ac_cv_prog_AR+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   if test -n "$AR"; then
13651   ac_cv_prog_AR="$AR" # Let the user override the test.
13652 else
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13655 do
13656   IFS=$as_save_IFS
13657   test -z "$as_dir" && as_dir=.
13658   for ac_exec_ext in '' $ac_executable_extensions; do
13659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13660     ac_cv_prog_AR="${ac_tool_prefix}ar"
13661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13662     break 2
13663   fi
13664 done
13665 done
13666 IFS=$as_save_IFS
13667
13668 fi
13669 fi
13670 AR=$ac_cv_prog_AR
13671 if test -n "$AR"; then
13672   { echo "$as_me:$LINENO: result: $AR" >&5
13673 echo "${ECHO_T}$AR" >&6; }
13674 else
13675   { echo "$as_me:$LINENO: result: no" >&5
13676 echo "${ECHO_T}no" >&6; }
13677 fi
13678
13679
13680 fi
13681 if test -z "$ac_cv_prog_AR"; then
13682   ac_ct_AR=$AR
13683   # Extract the first word of "ar", so it can be a program name with args.
13684 set dummy ar; ac_word=$2
13685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13687 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690   if test -n "$ac_ct_AR"; then
13691   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13695 do
13696   IFS=$as_save_IFS
13697   test -z "$as_dir" && as_dir=.
13698   for ac_exec_ext in '' $ac_executable_extensions; do
13699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13700     ac_cv_prog_ac_ct_AR="ar"
13701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13702     break 2
13703   fi
13704 done
13705 done
13706 IFS=$as_save_IFS
13707
13708 fi
13709 fi
13710 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13711 if test -n "$ac_ct_AR"; then
13712   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13713 echo "${ECHO_T}$ac_ct_AR" >&6; }
13714 else
13715   { echo "$as_me:$LINENO: result: no" >&5
13716 echo "${ECHO_T}no" >&6; }
13717 fi
13718
13719   if test "x$ac_ct_AR" = x; then
13720     AR="false"
13721   else
13722     case $cross_compiling:$ac_tool_warned in
13723 yes:)
13724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13725 whose name does not start with the host triplet.  If you think this
13726 configuration is useful to you, please write to autoconf@gnu.org." >&5
13727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13728 whose name does not start with the host triplet.  If you think this
13729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13730 ac_tool_warned=yes ;;
13731 esac
13732     AR=$ac_ct_AR
13733   fi
13734 else
13735   AR="$ac_cv_prog_AR"
13736 fi
13737
13738 if test -n "$ac_tool_prefix"; then
13739   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13743 if test "${ac_cv_prog_RANLIB+set}" = set; then
13744   echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746   if test -n "$RANLIB"; then
13747   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13748 else
13749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750 for as_dir in $PATH
13751 do
13752   IFS=$as_save_IFS
13753   test -z "$as_dir" && as_dir=.
13754   for ac_exec_ext in '' $ac_executable_extensions; do
13755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13756     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13758     break 2
13759   fi
13760 done
13761 done
13762 IFS=$as_save_IFS
13763
13764 fi
13765 fi
13766 RANLIB=$ac_cv_prog_RANLIB
13767 if test -n "$RANLIB"; then
13768   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13769 echo "${ECHO_T}$RANLIB" >&6; }
13770 else
13771   { echo "$as_me:$LINENO: result: no" >&5
13772 echo "${ECHO_T}no" >&6; }
13773 fi
13774
13775
13776 fi
13777 if test -z "$ac_cv_prog_RANLIB"; then
13778   ac_ct_RANLIB=$RANLIB
13779   # Extract the first word of "ranlib", so it can be a program name with args.
13780 set dummy ranlib; ac_word=$2
13781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13783 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13784   echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786   if test -n "$ac_ct_RANLIB"; then
13787   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13788 else
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792   IFS=$as_save_IFS
13793   test -z "$as_dir" && as_dir=.
13794   for ac_exec_ext in '' $ac_executable_extensions; do
13795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13796     ac_cv_prog_ac_ct_RANLIB="ranlib"
13797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13798     break 2
13799   fi
13800 done
13801 done
13802 IFS=$as_save_IFS
13803
13804 fi
13805 fi
13806 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13807 if test -n "$ac_ct_RANLIB"; then
13808   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13809 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13810 else
13811   { echo "$as_me:$LINENO: result: no" >&5
13812 echo "${ECHO_T}no" >&6; }
13813 fi
13814
13815   if test "x$ac_ct_RANLIB" = x; then
13816     RANLIB=":"
13817   else
13818     case $cross_compiling:$ac_tool_warned in
13819 yes:)
13820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13821 whose name does not start with the host triplet.  If you think this
13822 configuration is useful to you, please write to autoconf@gnu.org." >&5
13823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13824 whose name does not start with the host triplet.  If you think this
13825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13826 ac_tool_warned=yes ;;
13827 esac
13828     RANLIB=$ac_ct_RANLIB
13829   fi
13830 else
13831   RANLIB="$ac_cv_prog_RANLIB"
13832 fi
13833
13834 if test -n "$ac_tool_prefix"; then
13835   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13836 set dummy ${ac_tool_prefix}strip; ac_word=$2
13837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13839 if test "${ac_cv_prog_STRIP+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   if test -n "$STRIP"; then
13843   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13844 else
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13847 do
13848   IFS=$as_save_IFS
13849   test -z "$as_dir" && as_dir=.
13850   for ac_exec_ext in '' $ac_executable_extensions; do
13851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13852     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854     break 2
13855   fi
13856 done
13857 done
13858 IFS=$as_save_IFS
13859
13860 fi
13861 fi
13862 STRIP=$ac_cv_prog_STRIP
13863 if test -n "$STRIP"; then
13864   { echo "$as_me:$LINENO: result: $STRIP" >&5
13865 echo "${ECHO_T}$STRIP" >&6; }
13866 else
13867   { echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6; }
13869 fi
13870
13871
13872 fi
13873 if test -z "$ac_cv_prog_STRIP"; then
13874   ac_ct_STRIP=$STRIP
13875   # Extract the first word of "strip", so it can be a program name with args.
13876 set dummy strip; ac_word=$2
13877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13879 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13880   echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882   if test -n "$ac_ct_STRIP"; then
13883   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13887 do
13888   IFS=$as_save_IFS
13889   test -z "$as_dir" && as_dir=.
13890   for ac_exec_ext in '' $ac_executable_extensions; do
13891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13892     ac_cv_prog_ac_ct_STRIP="strip"
13893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13894     break 2
13895   fi
13896 done
13897 done
13898 IFS=$as_save_IFS
13899
13900 fi
13901 fi
13902 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13903 if test -n "$ac_ct_STRIP"; then
13904   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13905 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13906 else
13907   { echo "$as_me:$LINENO: result: no" >&5
13908 echo "${ECHO_T}no" >&6; }
13909 fi
13910
13911   if test "x$ac_ct_STRIP" = x; then
13912     STRIP=":"
13913   else
13914     case $cross_compiling:$ac_tool_warned in
13915 yes:)
13916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13917 whose name does not start with the host triplet.  If you think this
13918 configuration is useful to you, please write to autoconf@gnu.org." >&5
13919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13920 whose name does not start with the host triplet.  If you think this
13921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13922 ac_tool_warned=yes ;;
13923 esac
13924     STRIP=$ac_ct_STRIP
13925   fi
13926 else
13927   STRIP="$ac_cv_prog_STRIP"
13928 fi
13929
13930
13931 old_CC="$CC"
13932 old_CFLAGS="$CFLAGS"
13933
13934 # Set sane defaults for various variables
13935 test -z "$AR" && AR=ar
13936 test -z "$AR_FLAGS" && AR_FLAGS=cru
13937 test -z "$AS" && AS=as
13938 test -z "$CC" && CC=cc
13939 test -z "$LTCC" && LTCC=$CC
13940 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13941 test -z "$DLLTOOL" && DLLTOOL=dlltool
13942 test -z "$LD" && LD=ld
13943 test -z "$LN_S" && LN_S="ln -s"
13944 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13945 test -z "$NM" && NM=nm
13946 test -z "$SED" && SED=sed
13947 test -z "$OBJDUMP" && OBJDUMP=objdump
13948 test -z "$RANLIB" && RANLIB=:
13949 test -z "$STRIP" && STRIP=:
13950 test -z "$ac_objext" && ac_objext=o
13951
13952 # Determine commands to create old-style static archives.
13953 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13954 old_postinstall_cmds='chmod 644 $oldlib'
13955 old_postuninstall_cmds=
13956
13957 if test -n "$RANLIB"; then
13958   case $host_os in
13959   openbsd*)
13960     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13961     ;;
13962   *)
13963     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13964     ;;
13965   esac
13966   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13967 fi
13968
13969 for cc_temp in $compiler""; do
13970   case $cc_temp in
13971     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13972     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13973     \-*) ;;
13974     *) break;;
13975   esac
13976 done
13977 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13978
13979
13980 # Only perform the check for file, if the check method requires it
13981 case $deplibs_check_method in
13982 file_magic*)
13983   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13984     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13985 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   case $MAGIC_CMD in
13990 [\\/*] |  ?:[\\/]*)
13991   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13992   ;;
13993 *)
13994   lt_save_MAGIC_CMD="$MAGIC_CMD"
13995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13997   for ac_dir in $ac_dummy; do
13998     IFS="$lt_save_ifs"
13999     test -z "$ac_dir" && ac_dir=.
14000     if test -f $ac_dir/${ac_tool_prefix}file; then
14001       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14002       if test -n "$file_magic_test_file"; then
14003         case $deplibs_check_method in
14004         "file_magic "*)
14005           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14006           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14007           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14008             $EGREP "$file_magic_regex" > /dev/null; then
14009             :
14010           else
14011             cat <<EOF 1>&2
14012
14013 *** Warning: the command libtool uses to detect shared libraries,
14014 *** $file_magic_cmd, produces output that libtool cannot recognize.
14015 *** The result is that libtool may fail to recognize shared libraries
14016 *** as such.  This will affect the creation of libtool libraries that
14017 *** depend on shared libraries, but programs linked with such libtool
14018 *** libraries will work regardless of this problem.  Nevertheless, you
14019 *** may want to report the problem to your system manager and/or to
14020 *** bug-libtool@gnu.org
14021
14022 EOF
14023           fi ;;
14024         esac
14025       fi
14026       break
14027     fi
14028   done
14029   IFS="$lt_save_ifs"
14030   MAGIC_CMD="$lt_save_MAGIC_CMD"
14031   ;;
14032 esac
14033 fi
14034
14035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14036 if test -n "$MAGIC_CMD"; then
14037   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14038 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14039 else
14040   { echo "$as_me:$LINENO: result: no" >&5
14041 echo "${ECHO_T}no" >&6; }
14042 fi
14043
14044 if test -z "$lt_cv_path_MAGIC_CMD"; then
14045   if test -n "$ac_tool_prefix"; then
14046     { echo "$as_me:$LINENO: checking for file" >&5
14047 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14048 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   case $MAGIC_CMD in
14052 [\\/*] |  ?:[\\/]*)
14053   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14054   ;;
14055 *)
14056   lt_save_MAGIC_CMD="$MAGIC_CMD"
14057   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14058   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14059   for ac_dir in $ac_dummy; do
14060     IFS="$lt_save_ifs"
14061     test -z "$ac_dir" && ac_dir=.
14062     if test -f $ac_dir/file; then
14063       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14064       if test -n "$file_magic_test_file"; then
14065         case $deplibs_check_method in
14066         "file_magic "*)
14067           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14068           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14069           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14070             $EGREP "$file_magic_regex" > /dev/null; then
14071             :
14072           else
14073             cat <<EOF 1>&2
14074
14075 *** Warning: the command libtool uses to detect shared libraries,
14076 *** $file_magic_cmd, produces output that libtool cannot recognize.
14077 *** The result is that libtool may fail to recognize shared libraries
14078 *** as such.  This will affect the creation of libtool libraries that
14079 *** depend on shared libraries, but programs linked with such libtool
14080 *** libraries will work regardless of this problem.  Nevertheless, you
14081 *** may want to report the problem to your system manager and/or to
14082 *** bug-libtool@gnu.org
14083
14084 EOF
14085           fi ;;
14086         esac
14087       fi
14088       break
14089     fi
14090   done
14091   IFS="$lt_save_ifs"
14092   MAGIC_CMD="$lt_save_MAGIC_CMD"
14093   ;;
14094 esac
14095 fi
14096
14097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14098 if test -n "$MAGIC_CMD"; then
14099   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14100 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14101 else
14102   { echo "$as_me:$LINENO: result: no" >&5
14103 echo "${ECHO_T}no" >&6; }
14104 fi
14105
14106   else
14107     MAGIC_CMD=:
14108   fi
14109 fi
14110
14111   fi
14112   ;;
14113 esac
14114
14115 enable_dlopen=yes
14116 enable_win32_dll=no
14117
14118 # Check whether --enable-libtool-lock was given.
14119 if test "${enable_libtool_lock+set}" = set; then
14120   enableval=$enable_libtool_lock;
14121 fi
14122
14123 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14124
14125
14126 # Check whether --with-pic was given.
14127 if test "${with_pic+set}" = set; then
14128   withval=$with_pic; pic_mode="$withval"
14129 else
14130   pic_mode=default
14131 fi
14132
14133 test -z "$pic_mode" && pic_mode=default
14134
14135 # Use C for the default configuration in the libtool script
14136 tagname=
14137 lt_save_CC="$CC"
14138 ac_ext=c
14139 ac_cpp='$CPP $CPPFLAGS'
14140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14143
14144
14145 # Source file extension for C test sources.
14146 ac_ext=c
14147
14148 # Object file extension for compiled C test sources.
14149 objext=o
14150 objext=$objext
14151
14152 # Code to be used in simple compile tests
14153 lt_simple_compile_test_code="int some_variable = 0;\n"
14154
14155 # Code to be used in simple link tests
14156 lt_simple_link_test_code='int main(){return(0);}\n'
14157
14158
14159 # If no C compiler was specified, use CC.
14160 LTCC=${LTCC-"$CC"}
14161
14162 # If no C compiler flags were specified, use CFLAGS.
14163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14164
14165 # Allow CC to be a program name with arguments.
14166 compiler=$CC
14167
14168
14169 # save warnings/boilerplate of simple test code
14170 ac_outfile=conftest.$ac_objext
14171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14173 _lt_compiler_boilerplate=`cat conftest.err`
14174 $rm conftest*
14175
14176 ac_outfile=conftest.$ac_objext
14177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14179 _lt_linker_boilerplate=`cat conftest.err`
14180 $rm conftest*
14181
14182
14183
14184 lt_prog_compiler_no_builtin_flag=
14185
14186 if test "$GCC" = yes; then
14187   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14188
14189
14190 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14191 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14192 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   lt_cv_prog_compiler_rtti_exceptions=no
14196   ac_outfile=conftest.$ac_objext
14197    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14198    lt_compiler_flag="-fno-rtti -fno-exceptions"
14199    # Insert the option either (1) after the last *FLAGS variable, or
14200    # (2) before a word containing "conftest.", or (3) at the end.
14201    # Note that $ac_compile itself does not contain backslashes and begins
14202    # with a dollar sign (not a hyphen), so the echo should work correctly.
14203    # The option is referenced via a variable to avoid confusing sed.
14204    lt_compile=`echo "$ac_compile" | $SED \
14205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14207    -e 's:$: $lt_compiler_flag:'`
14208    (eval echo "\"\$as_me:14208: $lt_compile\"" >&5)
14209    (eval "$lt_compile" 2>conftest.err)
14210    ac_status=$?
14211    cat conftest.err >&5
14212    echo "$as_me:14212: \$? = $ac_status" >&5
14213    if (exit $ac_status) && test -s "$ac_outfile"; then
14214      # The compiler can only warn and ignore the option if not recognized
14215      # So say no if there are warnings other than the usual output.
14216      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14217      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14218      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14219        lt_cv_prog_compiler_rtti_exceptions=yes
14220      fi
14221    fi
14222    $rm conftest*
14223
14224 fi
14225 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14226 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14227
14228 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14229     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14230 else
14231     :
14232 fi
14233
14234 fi
14235
14236 lt_prog_compiler_wl=
14237 lt_prog_compiler_pic=
14238 lt_prog_compiler_static=
14239
14240 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14241 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14242
14243   if test "$GCC" = yes; then
14244     lt_prog_compiler_wl='-Wl,'
14245     lt_prog_compiler_static='-static'
14246
14247     case $host_os in
14248       aix*)
14249       # All AIX code is PIC.
14250       if test "$host_cpu" = ia64; then
14251         # AIX 5 now supports IA64 processor
14252         lt_prog_compiler_static='-Bstatic'
14253       fi
14254       ;;
14255
14256     amigaos*)
14257       # FIXME: we need at least 68020 code to build shared libraries, but
14258       # adding the `-m68020' flag to GCC prevents building anything better,
14259       # like `-m68040'.
14260       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14261       ;;
14262
14263     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14264       # PIC is the default for these OSes.
14265       ;;
14266
14267     mingw* | pw32* | os2*)
14268       # This hack is so that the source file can tell whether it is being
14269       # built for inclusion in a dll (and should export symbols for example).
14270       lt_prog_compiler_pic='-DDLL_EXPORT'
14271       ;;
14272
14273     darwin* | rhapsody*)
14274       # PIC is the default on this platform
14275       # Common symbols not allowed in MH_DYLIB files
14276       lt_prog_compiler_pic='-fno-common'
14277       ;;
14278
14279     interix3*)
14280       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14281       # Instead, we relocate shared libraries at runtime.
14282       ;;
14283
14284     msdosdjgpp*)
14285       # Just because we use GCC doesn't mean we suddenly get shared libraries
14286       # on systems that don't support them.
14287       lt_prog_compiler_can_build_shared=no
14288       enable_shared=no
14289       ;;
14290
14291     sysv4*MP*)
14292       if test -d /usr/nec; then
14293         lt_prog_compiler_pic=-Kconform_pic
14294       fi
14295       ;;
14296
14297     hpux*)
14298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14299       # not for PA HP-UX.
14300       case $host_cpu in
14301       hppa*64*|ia64*)
14302         # +Z the default
14303         ;;
14304       *)
14305         lt_prog_compiler_pic='-fPIC'
14306         ;;
14307       esac
14308       ;;
14309
14310     *)
14311       lt_prog_compiler_pic='-fPIC'
14312       ;;
14313     esac
14314   else
14315     # PORTME Check for flag to pass linker flags through the system compiler.
14316     case $host_os in
14317     aix*)
14318       lt_prog_compiler_wl='-Wl,'
14319       if test "$host_cpu" = ia64; then
14320         # AIX 5 now supports IA64 processor
14321         lt_prog_compiler_static='-Bstatic'
14322       else
14323         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14324       fi
14325       ;;
14326       darwin*)
14327         # PIC is the default on this platform
14328         # Common symbols not allowed in MH_DYLIB files
14329        case $cc_basename in
14330          xlc*)
14331          lt_prog_compiler_pic='-qnocommon'
14332          lt_prog_compiler_wl='-Wl,'
14333          ;;
14334        esac
14335        ;;
14336
14337     mingw* | pw32* | os2*)
14338       # This hack is so that the source file can tell whether it is being
14339       # built for inclusion in a dll (and should export symbols for example).
14340       lt_prog_compiler_pic='-DDLL_EXPORT'
14341       ;;
14342
14343     hpux9* | hpux10* | hpux11*)
14344       lt_prog_compiler_wl='-Wl,'
14345       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14346       # not for PA HP-UX.
14347       case $host_cpu in
14348       hppa*64*|ia64*)
14349         # +Z the default
14350         ;;
14351       *)
14352         lt_prog_compiler_pic='+Z'
14353         ;;
14354       esac
14355       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14356       lt_prog_compiler_static='${wl}-a ${wl}archive'
14357       ;;
14358
14359     irix5* | irix6* | nonstopux*)
14360       lt_prog_compiler_wl='-Wl,'
14361       # PIC (with -KPIC) is the default.
14362       lt_prog_compiler_static='-non_shared'
14363       ;;
14364
14365     newsos6)
14366       lt_prog_compiler_pic='-KPIC'
14367       lt_prog_compiler_static='-Bstatic'
14368       ;;
14369
14370     linux*)
14371       case $cc_basename in
14372       icc* | ecc*)
14373         lt_prog_compiler_wl='-Wl,'
14374         lt_prog_compiler_pic='-KPIC'
14375         lt_prog_compiler_static='-static'
14376         ;;
14377       pgcc* | pgf77* | pgf90* | pgf95*)
14378         # Portland Group compilers (*not* the Pentium gcc compiler,
14379         # which looks to be a dead project)
14380         lt_prog_compiler_wl='-Wl,'
14381         lt_prog_compiler_pic='-fpic'
14382         lt_prog_compiler_static='-Bstatic'
14383         ;;
14384       ccc*)
14385         lt_prog_compiler_wl='-Wl,'
14386         # All Alpha code is PIC.
14387         lt_prog_compiler_static='-non_shared'
14388         ;;
14389       esac
14390       ;;
14391
14392     osf3* | osf4* | osf5*)
14393       lt_prog_compiler_wl='-Wl,'
14394       # All OSF/1 code is PIC.
14395       lt_prog_compiler_static='-non_shared'
14396       ;;
14397
14398     solaris*)
14399       lt_prog_compiler_pic='-KPIC'
14400       lt_prog_compiler_static='-Bstatic'
14401       case $cc_basename in
14402       f77* | f90* | f95*)
14403         lt_prog_compiler_wl='-Qoption ld ';;
14404       *)
14405         lt_prog_compiler_wl='-Wl,';;
14406       esac
14407       ;;
14408
14409     sunos4*)
14410       lt_prog_compiler_wl='-Qoption ld '
14411       lt_prog_compiler_pic='-PIC'
14412       lt_prog_compiler_static='-Bstatic'
14413       ;;
14414
14415     sysv4 | sysv4.2uw2* | sysv4.3*)
14416       lt_prog_compiler_wl='-Wl,'
14417       lt_prog_compiler_pic='-KPIC'
14418       lt_prog_compiler_static='-Bstatic'
14419       ;;
14420
14421     sysv4*MP*)
14422       if test -d /usr/nec ;then
14423         lt_prog_compiler_pic='-Kconform_pic'
14424         lt_prog_compiler_static='-Bstatic'
14425       fi
14426       ;;
14427
14428     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14429       lt_prog_compiler_wl='-Wl,'
14430       lt_prog_compiler_pic='-KPIC'
14431       lt_prog_compiler_static='-Bstatic'
14432       ;;
14433
14434     unicos*)
14435       lt_prog_compiler_wl='-Wl,'
14436       lt_prog_compiler_can_build_shared=no
14437       ;;
14438
14439     uts4*)
14440       lt_prog_compiler_pic='-pic'
14441       lt_prog_compiler_static='-Bstatic'
14442       ;;
14443
14444     *)
14445       lt_prog_compiler_can_build_shared=no
14446       ;;
14447     esac
14448   fi
14449
14450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14451 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14452
14453 #
14454 # Check to make sure the PIC flag actually works.
14455 #
14456 if test -n "$lt_prog_compiler_pic"; then
14457
14458 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14460 if test "${lt_prog_compiler_pic_works+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   lt_prog_compiler_pic_works=no
14464   ac_outfile=conftest.$ac_objext
14465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14466    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14467    # Insert the option either (1) after the last *FLAGS variable, or
14468    # (2) before a word containing "conftest.", or (3) at the end.
14469    # Note that $ac_compile itself does not contain backslashes and begins
14470    # with a dollar sign (not a hyphen), so the echo should work correctly.
14471    # The option is referenced via a variable to avoid confusing sed.
14472    lt_compile=`echo "$ac_compile" | $SED \
14473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475    -e 's:$: $lt_compiler_flag:'`
14476    (eval echo "\"\$as_me:14476: $lt_compile\"" >&5)
14477    (eval "$lt_compile" 2>conftest.err)
14478    ac_status=$?
14479    cat conftest.err >&5
14480    echo "$as_me:14480: \$? = $ac_status" >&5
14481    if (exit $ac_status) && test -s "$ac_outfile"; then
14482      # The compiler can only warn and ignore the option if not recognized
14483      # So say no if there are warnings other than the usual output.
14484      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14485      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14487        lt_prog_compiler_pic_works=yes
14488      fi
14489    fi
14490    $rm conftest*
14491
14492 fi
14493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14494 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14495
14496 if test x"$lt_prog_compiler_pic_works" = xyes; then
14497     case $lt_prog_compiler_pic in
14498      "" | " "*) ;;
14499      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14500      esac
14501 else
14502     lt_prog_compiler_pic=
14503      lt_prog_compiler_can_build_shared=no
14504 fi
14505
14506 fi
14507 case $host_os in
14508   # For platforms which do not support PIC, -DPIC is meaningless:
14509   *djgpp*)
14510     lt_prog_compiler_pic=
14511     ;;
14512   *)
14513     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14514     ;;
14515 esac
14516
14517 #
14518 # Check to make sure the static flag actually works.
14519 #
14520 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14521 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14523 if test "${lt_prog_compiler_static_works+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   lt_prog_compiler_static_works=no
14527    save_LDFLAGS="$LDFLAGS"
14528    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14530    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531      # The linker can only warn and ignore the option if not recognized
14532      # So say no if there are warnings
14533      if test -s conftest.err; then
14534        # Append any errors to the config.log.
14535        cat conftest.err 1>&5
14536        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14537        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538        if diff conftest.exp conftest.er2 >/dev/null; then
14539          lt_prog_compiler_static_works=yes
14540        fi
14541      else
14542        lt_prog_compiler_static_works=yes
14543      fi
14544    fi
14545    $rm conftest*
14546    LDFLAGS="$save_LDFLAGS"
14547
14548 fi
14549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14550 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14551
14552 if test x"$lt_prog_compiler_static_works" = xyes; then
14553     :
14554 else
14555     lt_prog_compiler_static=
14556 fi
14557
14558
14559 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14561 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   lt_cv_prog_compiler_c_o=no
14565    $rm -r conftest 2>/dev/null
14566    mkdir conftest
14567    cd conftest
14568    mkdir out
14569    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14570
14571    lt_compiler_flag="-o out/conftest2.$ac_objext"
14572    # Insert the option either (1) after the last *FLAGS variable, or
14573    # (2) before a word containing "conftest.", or (3) at the end.
14574    # Note that $ac_compile itself does not contain backslashes and begins
14575    # with a dollar sign (not a hyphen), so the echo should work correctly.
14576    lt_compile=`echo "$ac_compile" | $SED \
14577    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579    -e 's:$: $lt_compiler_flag:'`
14580    (eval echo "\"\$as_me:14580: $lt_compile\"" >&5)
14581    (eval "$lt_compile" 2>out/conftest.err)
14582    ac_status=$?
14583    cat out/conftest.err >&5
14584    echo "$as_me:14584: \$? = $ac_status" >&5
14585    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14586    then
14587      # The compiler can only warn and ignore the option if not recognized
14588      # So say no if there are warnings
14589      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14590      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14591      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14592        lt_cv_prog_compiler_c_o=yes
14593      fi
14594    fi
14595    chmod u+w . 2>&5
14596    $rm conftest*
14597    # SGI C++ compiler will create directory out/ii_files/ for
14598    # template instantiation
14599    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14600    $rm out/* && rmdir out
14601    cd ..
14602    rmdir conftest
14603    $rm conftest*
14604
14605 fi
14606 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14608
14609
14610 hard_links="nottested"
14611 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14612   # do not overwrite the value of need_locks provided by the user
14613   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14615   hard_links=yes
14616   $rm conftest*
14617   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618   touch conftest.a
14619   ln conftest.a conftest.b 2>&5 || hard_links=no
14620   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14621   { echo "$as_me:$LINENO: result: $hard_links" >&5
14622 echo "${ECHO_T}$hard_links" >&6; }
14623   if test "$hard_links" = no; then
14624     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14626     need_locks=warn
14627   fi
14628 else
14629   need_locks=no
14630 fi
14631
14632 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14634
14635   runpath_var=
14636   allow_undefined_flag=
14637   enable_shared_with_static_runtimes=no
14638   archive_cmds=
14639   archive_expsym_cmds=
14640   old_archive_From_new_cmds=
14641   old_archive_from_expsyms_cmds=
14642   export_dynamic_flag_spec=
14643   whole_archive_flag_spec=
14644   thread_safe_flag_spec=
14645   hardcode_libdir_flag_spec=
14646   hardcode_libdir_flag_spec_ld=
14647   hardcode_libdir_separator=
14648   hardcode_direct=no
14649   hardcode_minus_L=no
14650   hardcode_shlibpath_var=unsupported
14651   link_all_deplibs=unknown
14652   hardcode_automatic=no
14653   module_cmds=
14654   module_expsym_cmds=
14655   always_export_symbols=no
14656   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14657   # include_expsyms should be a list of space-separated symbols to be *always*
14658   # included in the symbol list
14659   include_expsyms=
14660   # exclude_expsyms can be an extended regexp of symbols to exclude
14661   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14662   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14663   # as well as any symbol that contains `d'.
14664   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14665   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14666   # platforms (ab)use it in PIC code, but their linkers get confused if
14667   # the symbol is explicitly referenced.  Since portable code cannot
14668   # rely on this symbol name, it's probably fine to never include it in
14669   # preloaded symbol tables.
14670   extract_expsyms_cmds=
14671   # Just being paranoid about ensuring that cc_basename is set.
14672   for cc_temp in $compiler""; do
14673   case $cc_temp in
14674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14676     \-*) ;;
14677     *) break;;
14678   esac
14679 done
14680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14681
14682   case $host_os in
14683   cygwin* | mingw* | pw32*)
14684     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14685     # When not using gcc, we currently assume that we are using
14686     # Microsoft Visual C++.
14687     if test "$GCC" != yes; then
14688       with_gnu_ld=no
14689     fi
14690     ;;
14691   interix*)
14692     # we just hope/assume this is gcc and not c89 (= MSVC++)
14693     with_gnu_ld=yes
14694     ;;
14695   openbsd*)
14696     with_gnu_ld=no
14697     ;;
14698   esac
14699
14700   ld_shlibs=yes
14701   if test "$with_gnu_ld" = yes; then
14702     # If archive_cmds runs LD, not CC, wlarc should be empty
14703     wlarc='${wl}'
14704
14705     # Set some defaults for GNU ld with shared library support. These
14706     # are reset later if shared libraries are not supported. Putting them
14707     # here allows them to be overridden if necessary.
14708     runpath_var=LD_RUN_PATH
14709     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14710     export_dynamic_flag_spec='${wl}--export-dynamic'
14711     # ancient GNU ld didn't support --whole-archive et. al.
14712     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14713         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14714       else
14715         whole_archive_flag_spec=
14716     fi
14717     supports_anon_versioning=no
14718     case `$LD -v 2>/dev/null` in
14719       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14720       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14721       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14722       *\ 2.11.*) ;; # other 2.11 versions
14723       *) supports_anon_versioning=yes ;;
14724     esac
14725
14726     # See if GNU ld supports shared libraries.
14727     case $host_os in
14728     aix3* | aix4* | aix5*)
14729       # On AIX/PPC, the GNU linker is very broken
14730       if test "$host_cpu" != ia64; then
14731         ld_shlibs=no
14732         cat <<EOF 1>&2
14733
14734 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14735 *** to be unable to reliably create shared libraries on AIX.
14736 *** Therefore, libtool is disabling shared libraries support.  If you
14737 *** really care for shared libraries, you may want to modify your PATH
14738 *** so that a non-GNU linker is found, and then restart.
14739
14740 EOF
14741       fi
14742       ;;
14743
14744     amigaos*)
14745       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)'
14746       hardcode_libdir_flag_spec='-L$libdir'
14747       hardcode_minus_L=yes
14748
14749       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14750       # that the semantics of dynamic libraries on AmigaOS, at least up
14751       # to version 4, is to share data among multiple programs linked
14752       # with the same dynamic library.  Since this doesn't match the
14753       # behavior of shared libraries on other platforms, we can't use
14754       # them.
14755       ld_shlibs=no
14756       ;;
14757
14758     beos*)
14759       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14760         allow_undefined_flag=unsupported
14761         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14762         # support --undefined.  This deserves some investigation.  FIXME
14763         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14764       else
14765         ld_shlibs=no
14766       fi
14767       ;;
14768
14769     cygwin* | mingw* | pw32*)
14770       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14771       # as there is no search path for DLLs.
14772       hardcode_libdir_flag_spec='-L$libdir'
14773       allow_undefined_flag=unsupported
14774       always_export_symbols=no
14775       enable_shared_with_static_runtimes=yes
14776       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14777
14778       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14779         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780         # If the export-symbols file already is a .def file (1st line
14781         # is EXPORTS), use it as is; otherwise, prepend...
14782         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14783           cp $export_symbols $output_objdir/$soname.def;
14784         else
14785           echo EXPORTS > $output_objdir/$soname.def;
14786           cat $export_symbols >> $output_objdir/$soname.def;
14787         fi~
14788         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789       else
14790         ld_shlibs=no
14791       fi
14792       ;;
14793
14794     interix3*)
14795       hardcode_direct=no
14796       hardcode_shlibpath_var=no
14797       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14798       export_dynamic_flag_spec='${wl}-E'
14799       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14800       # Instead, shared libraries are loaded at an image base (0x10000000 by
14801       # default) and relocated if they conflict, which is a slow very memory
14802       # consuming and fragmenting process.  To avoid this, we pick a random,
14803       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14804       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14805       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14806       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'
14807       ;;
14808
14809     linux*)
14810       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14811         tmp_addflag=
14812         case $cc_basename,$host_cpu in
14813         pgcc*)                          # Portland Group C compiler
14814           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'
14815           tmp_addflag=' $pic_flag'
14816           ;;
14817         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14818           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'
14819           tmp_addflag=' $pic_flag -Mnomain' ;;
14820         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14821           tmp_addflag=' -i_dynamic' ;;
14822         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14823           tmp_addflag=' -i_dynamic -nofor_main' ;;
14824         ifc* | ifort*)                  # Intel Fortran compiler
14825           tmp_addflag=' -nofor_main' ;;
14826         esac
14827         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14828
14829         if test $supports_anon_versioning = yes; then
14830           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14831   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14832   $echo "local: *; };" >> $output_objdir/$libname.ver~
14833           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14834         fi
14835       else
14836         ld_shlibs=no
14837       fi
14838       ;;
14839
14840     netbsd*)
14841       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14842         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14843         wlarc=
14844       else
14845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14847       fi
14848       ;;
14849
14850     solaris*)
14851       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14852         ld_shlibs=no
14853         cat <<EOF 1>&2
14854
14855 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14856 *** create shared libraries on Solaris systems.  Therefore, libtool
14857 *** is disabling shared libraries support.  We urge you to upgrade GNU
14858 *** binutils to release 2.9.1 or newer.  Another option is to modify
14859 *** your PATH or compiler configuration so that the native linker is
14860 *** used, and then restart.
14861
14862 EOF
14863       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14864         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14865         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14866       else
14867         ld_shlibs=no
14868       fi
14869       ;;
14870
14871     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14872       case `$LD -v 2>&1` in
14873         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14874         ld_shlibs=no
14875         cat <<_LT_EOF 1>&2
14876
14877 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14878 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14879 *** is disabling shared libraries support.  We urge you to upgrade GNU
14880 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14881 *** your PATH or compiler configuration so that the native linker is
14882 *** used, and then restart.
14883
14884 _LT_EOF
14885         ;;
14886         *)
14887           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14888             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14889             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14890             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14891           else
14892             ld_shlibs=no
14893           fi
14894         ;;
14895       esac
14896       ;;
14897
14898     sunos4*)
14899       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14900       wlarc=
14901       hardcode_direct=yes
14902       hardcode_shlibpath_var=no
14903       ;;
14904
14905     *)
14906       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14907         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14909       else
14910         ld_shlibs=no
14911       fi
14912       ;;
14913     esac
14914
14915     if test "$ld_shlibs" = no; then
14916       runpath_var=
14917       hardcode_libdir_flag_spec=
14918       export_dynamic_flag_spec=
14919       whole_archive_flag_spec=
14920     fi
14921   else
14922     # PORTME fill in a description of your system's linker (not GNU ld)
14923     case $host_os in
14924     aix3*)
14925       allow_undefined_flag=unsupported
14926       always_export_symbols=yes
14927       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'
14928       # Note: this linker hardcodes the directories in LIBPATH if there
14929       # are no directories specified by -L.
14930       hardcode_minus_L=yes
14931       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14932         # Neither direct hardcoding nor static linking is supported with a
14933         # broken collect2.
14934         hardcode_direct=unsupported
14935       fi
14936       ;;
14937
14938     aix4* | aix5*)
14939       if test "$host_cpu" = ia64; then
14940         # On IA64, the linker does run time linking by default, so we don't
14941         # have to do anything special.
14942         aix_use_runtimelinking=no
14943         exp_sym_flag='-Bexport'
14944         no_entry_flag=""
14945       else
14946         # If we're using GNU nm, then we don't want the "-C" option.
14947         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14948         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14949           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'
14950         else
14951           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'
14952         fi
14953         aix_use_runtimelinking=no
14954
14955         # Test if we are trying to use run time linking or normal
14956         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14957         # need to do runtime linking.
14958         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14959           for ld_flag in $LDFLAGS; do
14960           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14961             aix_use_runtimelinking=yes
14962             break
14963           fi
14964           done
14965           ;;
14966         esac
14967
14968         exp_sym_flag='-bexport'
14969         no_entry_flag='-bnoentry'
14970       fi
14971
14972       # When large executables or shared objects are built, AIX ld can
14973       # have problems creating the table of contents.  If linking a library
14974       # or program results in "error TOC overflow" add -mminimal-toc to
14975       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14976       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14977
14978       archive_cmds=''
14979       hardcode_direct=yes
14980       hardcode_libdir_separator=':'
14981       link_all_deplibs=yes
14982
14983       if test "$GCC" = yes; then
14984         case $host_os in aix4.[012]|aix4.[012].*)
14985         # We only want to do this on AIX 4.2 and lower, the check
14986         # below for broken collect2 doesn't work under 4.3+
14987           collect2name=`${CC} -print-prog-name=collect2`
14988           if test -f "$collect2name" && \
14989            strings "$collect2name" | grep resolve_lib_name >/dev/null
14990           then
14991           # We have reworked collect2
14992           hardcode_direct=yes
14993           else
14994           # We have old collect2
14995           hardcode_direct=unsupported
14996           # It fails to find uninstalled libraries when the uninstalled
14997           # path is not listed in the libpath.  Setting hardcode_minus_L
14998           # to unsupported forces relinking
14999           hardcode_minus_L=yes
15000           hardcode_libdir_flag_spec='-L$libdir'
15001           hardcode_libdir_separator=
15002           fi
15003           ;;
15004         esac
15005         shared_flag='-shared'
15006         if test "$aix_use_runtimelinking" = yes; then
15007           shared_flag="$shared_flag "'${wl}-G'
15008         fi
15009       else
15010         # not using gcc
15011         if test "$host_cpu" = ia64; then
15012         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15013         # chokes on -Wl,-G. The following line is correct:
15014           shared_flag='-G'
15015         else
15016           if test "$aix_use_runtimelinking" = yes; then
15017             shared_flag='${wl}-G'
15018           else
15019             shared_flag='${wl}-bM:SRE'
15020           fi
15021         fi
15022       fi
15023
15024       # It seems that -bexpall does not export symbols beginning with
15025       # underscore (_), so it is better to generate a list of symbols to export.
15026       always_export_symbols=yes
15027       if test "$aix_use_runtimelinking" = yes; then
15028         # Warning - without using the other runtime loading flags (-brtl),
15029         # -berok will link without error, but may produce a broken library.
15030         allow_undefined_flag='-berok'
15031        # Determine the default libpath from the value encoded in an empty executable.
15032        cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038
15039 int
15040 main ()
15041 {
15042
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_link") 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062   { (case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_try") 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest$ac_exeext'
15072   { (case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_try") 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081
15082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15083 }'`
15084 # Check for a 64-bit object if we didn't find anything.
15085 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; }
15086 }'`; fi
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext \
15095       conftest$ac_exeext conftest.$ac_ext
15096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15097
15098        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15099         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"
15100        else
15101         if test "$host_cpu" = ia64; then
15102           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15103           allow_undefined_flag="-z nodefs"
15104           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"
15105         else
15106          # Determine the default libpath from the value encoded in an empty executable.
15107          cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113
15114 int
15115 main ()
15116 {
15117
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126   *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129   (eval "$ac_link") 2>conftest.er1
15130   ac_status=$?
15131   grep -v '^ *+' conftest.er1 >conftest.err
15132   rm -f conftest.er1
15133   cat conftest.err >&5
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } &&
15136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137   { (case "(($ac_try" in
15138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139   *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142   (eval "$ac_try") 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; } &&
15146          { ac_try='test -s conftest$ac_exeext'
15147   { (case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152   (eval "$ac_try") 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156
15157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15158 }'`
15159 # Check for a 64-bit object if we didn't find anything.
15160 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; }
15161 }'`; fi
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166
15167 fi
15168
15169 rm -f core conftest.err conftest.$ac_objext \
15170       conftest$ac_exeext conftest.$ac_ext
15171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15172
15173          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15174           # Warning - without using the other run time loading flags,
15175           # -berok will link without error, but may produce a broken library.
15176           no_undefined_flag=' ${wl}-bernotok'
15177           allow_undefined_flag=' ${wl}-berok'
15178           # Exported symbols can be pulled into shared objects from archives
15179           whole_archive_flag_spec='$convenience'
15180           archive_cmds_need_lc=yes
15181           # This is similar to how AIX traditionally builds its shared libraries.
15182           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'
15183         fi
15184       fi
15185       ;;
15186
15187     amigaos*)
15188       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)'
15189       hardcode_libdir_flag_spec='-L$libdir'
15190       hardcode_minus_L=yes
15191       # see comment about different semantics on the GNU ld section
15192       ld_shlibs=no
15193       ;;
15194
15195     bsdi[45]*)
15196       export_dynamic_flag_spec=-rdynamic
15197       ;;
15198
15199     cygwin* | mingw* | pw32*)
15200       # When not using gcc, we currently assume that we are using
15201       # Microsoft Visual C++.
15202       # hardcode_libdir_flag_spec is actually meaningless, as there is
15203       # no search path for DLLs.
15204       hardcode_libdir_flag_spec=' '
15205       allow_undefined_flag=unsupported
15206       # Tell ltmain to make .lib files, not .a files.
15207       libext=lib
15208       # Tell ltmain to make .dll files, not .so files.
15209       shrext_cmds=".dll"
15210       # FIXME: Setting linknames here is a bad hack.
15211       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15212       # The linker will automatically build a .lib file if we build a DLL.
15213       old_archive_From_new_cmds='true'
15214       # FIXME: Should let the user specify the lib program.
15215       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15216       fix_srcfile_path='`cygpath -w "$srcfile"`'
15217       enable_shared_with_static_runtimes=yes
15218       ;;
15219
15220     darwin* | rhapsody*)
15221       case $host_os in
15222         rhapsody* | darwin1.[012])
15223          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15224          ;;
15225        *) # Darwin 1.3 on
15226          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15227            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228          else
15229            case ${MACOSX_DEPLOYMENT_TARGET} in
15230              10.[012])
15231                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15232                ;;
15233              10.*)
15234                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15235                ;;
15236            esac
15237          fi
15238          ;;
15239       esac
15240       archive_cmds_need_lc=no
15241       hardcode_direct=no
15242       hardcode_automatic=yes
15243       hardcode_shlibpath_var=unsupported
15244       whole_archive_flag_spec=''
15245       link_all_deplibs=yes
15246     if test "$GCC" = yes ; then
15247         output_verbose_link_cmd='echo'
15248         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15249       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15250       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15251       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}'
15252       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}'
15253     else
15254       case $cc_basename in
15255         xlc*)
15256          output_verbose_link_cmd='echo'
15257          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15258          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15259           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15260          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}'
15261           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}'
15262           ;;
15263        *)
15264          ld_shlibs=no
15265           ;;
15266       esac
15267     fi
15268       ;;
15269
15270     dgux*)
15271       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272       hardcode_libdir_flag_spec='-L$libdir'
15273       hardcode_shlibpath_var=no
15274       ;;
15275
15276     freebsd1*)
15277       ld_shlibs=no
15278       ;;
15279
15280     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15281     # support.  Future versions do this automatically, but an explicit c++rt0.o
15282     # does not break anything, and helps significantly (at the cost of a little
15283     # extra space).
15284     freebsd2.2*)
15285       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15286       hardcode_libdir_flag_spec='-R$libdir'
15287       hardcode_direct=yes
15288       hardcode_shlibpath_var=no
15289       ;;
15290
15291     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15292     freebsd2*)
15293       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15294       hardcode_direct=yes
15295       hardcode_minus_L=yes
15296       hardcode_shlibpath_var=no
15297       ;;
15298
15299     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15300     freebsd* | kfreebsd*-gnu | dragonfly*)
15301       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15302       hardcode_libdir_flag_spec='-R$libdir'
15303       hardcode_direct=yes
15304       hardcode_shlibpath_var=no
15305       ;;
15306
15307     hpux9*)
15308       if test "$GCC" = yes; then
15309         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'
15310       else
15311         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'
15312       fi
15313       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15314       hardcode_libdir_separator=:
15315       hardcode_direct=yes
15316
15317       # hardcode_minus_L: Not really in the search PATH,
15318       # but as the default location of the library.
15319       hardcode_minus_L=yes
15320       export_dynamic_flag_spec='${wl}-E'
15321       ;;
15322
15323     hpux10*)
15324       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15325         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15326       else
15327         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15328       fi
15329       if test "$with_gnu_ld" = no; then
15330         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15331         hardcode_libdir_separator=:
15332
15333         hardcode_direct=yes
15334         export_dynamic_flag_spec='${wl}-E'
15335
15336         # hardcode_minus_L: Not really in the search PATH,
15337         # but as the default location of the library.
15338         hardcode_minus_L=yes
15339       fi
15340       ;;
15341
15342     hpux11*)
15343       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15344         case $host_cpu in
15345         hppa*64*)
15346           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15347           ;;
15348         ia64*)
15349           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15350           ;;
15351         *)
15352           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15353           ;;
15354         esac
15355       else
15356         case $host_cpu in
15357         hppa*64*)
15358           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15359           ;;
15360         ia64*)
15361           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15362           ;;
15363         *)
15364           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15365           ;;
15366         esac
15367       fi
15368       if test "$with_gnu_ld" = no; then
15369         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15370         hardcode_libdir_separator=:
15371
15372         case $host_cpu in
15373         hppa*64*|ia64*)
15374           hardcode_libdir_flag_spec_ld='+b $libdir'
15375           hardcode_direct=no
15376           hardcode_shlibpath_var=no
15377           ;;
15378         *)
15379           hardcode_direct=yes
15380           export_dynamic_flag_spec='${wl}-E'
15381
15382           # hardcode_minus_L: Not really in the search PATH,
15383           # but as the default location of the library.
15384           hardcode_minus_L=yes
15385           ;;
15386         esac
15387       fi
15388       ;;
15389
15390     irix5* | irix6* | nonstopux*)
15391       if test "$GCC" = yes; then
15392         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'
15393       else
15394         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'
15395         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15396       fi
15397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15398       hardcode_libdir_separator=:
15399       link_all_deplibs=yes
15400       ;;
15401
15402     netbsd*)
15403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15404         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15405       else
15406         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15407       fi
15408       hardcode_libdir_flag_spec='-R$libdir'
15409       hardcode_direct=yes
15410       hardcode_shlibpath_var=no
15411       ;;
15412
15413     newsos6)
15414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415       hardcode_direct=yes
15416       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15417       hardcode_libdir_separator=:
15418       hardcode_shlibpath_var=no
15419       ;;
15420
15421     openbsd*)
15422       hardcode_direct=yes
15423       hardcode_shlibpath_var=no
15424       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15425         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15426         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15427         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15428         export_dynamic_flag_spec='${wl}-E'
15429       else
15430        case $host_os in
15431          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15432            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15433            hardcode_libdir_flag_spec='-R$libdir'
15434            ;;
15435          *)
15436            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15437            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15438            ;;
15439        esac
15440       fi
15441       ;;
15442
15443     os2*)
15444       hardcode_libdir_flag_spec='-L$libdir'
15445       hardcode_minus_L=yes
15446       allow_undefined_flag=unsupported
15447       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'
15448       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15449       ;;
15450
15451     osf3*)
15452       if test "$GCC" = yes; then
15453         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15454         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'
15455       else
15456         allow_undefined_flag=' -expect_unresolved \*'
15457         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'
15458       fi
15459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15460       hardcode_libdir_separator=:
15461       ;;
15462
15463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15464       if test "$GCC" = yes; then
15465         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15466         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'
15467         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15468       else
15469         allow_undefined_flag=' -expect_unresolved \*'
15470         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'
15471         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15472         $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'
15473
15474         # Both c and cxx compiler support -rpath directly
15475         hardcode_libdir_flag_spec='-rpath $libdir'
15476       fi
15477       hardcode_libdir_separator=:
15478       ;;
15479
15480     solaris*)
15481       no_undefined_flag=' -z text'
15482       if test "$GCC" = yes; then
15483         wlarc='${wl}'
15484         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15485         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15486           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15487       else
15488         wlarc=''
15489         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15491         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15492       fi
15493       hardcode_libdir_flag_spec='-R$libdir'
15494       hardcode_shlibpath_var=no
15495       case $host_os in
15496       solaris2.[0-5] | solaris2.[0-5].*) ;;
15497       *)
15498         # The compiler driver will combine linker options so we
15499         # cannot just pass the convience library names through
15500         # without $wl, iff we do not link with $LD.
15501         # Luckily, gcc supports the same syntax we need for Sun Studio.
15502         # Supported since Solaris 2.6 (maybe 2.5.1?)
15503         case $wlarc in
15504         '')
15505           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15506         *)
15507           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' ;;
15508         esac ;;
15509       esac
15510       link_all_deplibs=yes
15511       ;;
15512
15513     sunos4*)
15514       if test "x$host_vendor" = xsequent; then
15515         # Use $CC to link under sequent, because it throws in some extra .o
15516         # files that make .init and .fini sections work.
15517         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15518       else
15519         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15520       fi
15521       hardcode_libdir_flag_spec='-L$libdir'
15522       hardcode_direct=yes
15523       hardcode_minus_L=yes
15524       hardcode_shlibpath_var=no
15525       ;;
15526
15527     sysv4)
15528       case $host_vendor in
15529         sni)
15530           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531           hardcode_direct=yes # is this really true???
15532         ;;
15533         siemens)
15534           ## LD is ld it makes a PLAMLIB
15535           ## CC just makes a GrossModule.
15536           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15537           reload_cmds='$CC -r -o $output$reload_objs'
15538           hardcode_direct=no
15539         ;;
15540         motorola)
15541           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15543         ;;
15544       esac
15545       runpath_var='LD_RUN_PATH'
15546       hardcode_shlibpath_var=no
15547       ;;
15548
15549     sysv4.3*)
15550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15551       hardcode_shlibpath_var=no
15552       export_dynamic_flag_spec='-Bexport'
15553       ;;
15554
15555     sysv4*MP*)
15556       if test -d /usr/nec; then
15557         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558         hardcode_shlibpath_var=no
15559         runpath_var=LD_RUN_PATH
15560         hardcode_runpath_var=yes
15561         ld_shlibs=yes
15562       fi
15563       ;;
15564
15565     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15566       no_undefined_flag='${wl}-z,text'
15567       archive_cmds_need_lc=no
15568       hardcode_shlibpath_var=no
15569       runpath_var='LD_RUN_PATH'
15570
15571       if test "$GCC" = yes; then
15572         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15574       else
15575         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15577       fi
15578       ;;
15579
15580     sysv5* | sco3.2v5* | sco5v6*)
15581       # Note: We can NOT use -z defs as we might desire, because we do not
15582       # link with -lc, and that would cause any symbols used from libc to
15583       # always be unresolved, which means just about no library would
15584       # ever link correctly.  If we're not using GNU ld we use -z text
15585       # though, which does catch some bad symbols but isn't as heavy-handed
15586       # as -z defs.
15587       no_undefined_flag='${wl}-z,text'
15588       allow_undefined_flag='${wl}-z,nodefs'
15589       archive_cmds_need_lc=no
15590       hardcode_shlibpath_var=no
15591       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15592       hardcode_libdir_separator=':'
15593       link_all_deplibs=yes
15594       export_dynamic_flag_spec='${wl}-Bexport'
15595       runpath_var='LD_RUN_PATH'
15596
15597       if test "$GCC" = yes; then
15598         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600       else
15601         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603       fi
15604       ;;
15605
15606     uts4*)
15607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608       hardcode_libdir_flag_spec='-L$libdir'
15609       hardcode_shlibpath_var=no
15610       ;;
15611
15612     *)
15613       ld_shlibs=no
15614       ;;
15615     esac
15616   fi
15617
15618 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15619 echo "${ECHO_T}$ld_shlibs" >&6; }
15620 test "$ld_shlibs" = no && can_build_shared=no
15621
15622 #
15623 # Do we need to explicitly link libc?
15624 #
15625 case "x$archive_cmds_need_lc" in
15626 x|xyes)
15627   # Assume -lc should be added
15628   archive_cmds_need_lc=yes
15629
15630   if test "$enable_shared" = yes && test "$GCC" = yes; then
15631     case $archive_cmds in
15632     *'~'*)
15633       # FIXME: we may have to deal with multi-command sequences.
15634       ;;
15635     '$CC '*)
15636       # Test whether the compiler implicitly links with -lc since on some
15637       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15638       # to ld, don't add -lc before -lgcc.
15639       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15640 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15641       $rm conftest*
15642       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15643
15644       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15645   (eval $ac_compile) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } 2>conftest.err; then
15649         soname=conftest
15650         lib=conftest
15651         libobjs=conftest.$ac_objext
15652         deplibs=
15653         wl=$lt_prog_compiler_wl
15654         pic_flag=$lt_prog_compiler_pic
15655         compiler_flags=-v
15656         linker_flags=-v
15657         verstring=
15658         output_objdir=.
15659         libname=conftest
15660         lt_save_allow_undefined_flag=$allow_undefined_flag
15661         allow_undefined_flag=
15662         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15663   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }
15667         then
15668           archive_cmds_need_lc=no
15669         else
15670           archive_cmds_need_lc=yes
15671         fi
15672         allow_undefined_flag=$lt_save_allow_undefined_flag
15673       else
15674         cat conftest.err 1>&5
15675       fi
15676       $rm conftest*
15677       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15678 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15679       ;;
15680     esac
15681   fi
15682   ;;
15683 esac
15684
15685 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15687 library_names_spec=
15688 libname_spec='lib$name'
15689 soname_spec=
15690 shrext_cmds=".so"
15691 postinstall_cmds=
15692 postuninstall_cmds=
15693 finish_cmds=
15694 finish_eval=
15695 shlibpath_var=
15696 shlibpath_overrides_runpath=unknown
15697 version_type=none
15698 dynamic_linker="$host_os ld.so"
15699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15700 if test "$GCC" = yes; then
15701   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15702   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15703     # if the path contains ";" then we assume it to be the separator
15704     # otherwise default to the standard path separator (i.e. ":") - it is
15705     # assumed that no part of a normal pathname contains ";" but that should
15706     # okay in the real world where ";" in dirpaths is itself problematic.
15707     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15708   else
15709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15710   fi
15711 else
15712   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15713 fi
15714 need_lib_prefix=unknown
15715 hardcode_into_libs=no
15716
15717 # when you set need_version to no, make sure it does not cause -set_version
15718 # flags to be left without arguments
15719 need_version=unknown
15720
15721 case $host_os in
15722 aix3*)
15723   version_type=linux
15724   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15725   shlibpath_var=LIBPATH
15726
15727   # AIX 3 has no versioning support, so we append a major version to the name.
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   ;;
15730
15731 aix4* | aix5*)
15732   version_type=linux
15733   need_lib_prefix=no
15734   need_version=no
15735   hardcode_into_libs=yes
15736   if test "$host_cpu" = ia64; then
15737     # AIX 5 supports IA64
15738     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15739     shlibpath_var=LD_LIBRARY_PATH
15740   else
15741     # With GCC up to 2.95.x, collect2 would create an import file
15742     # for dependence libraries.  The import file would start with
15743     # the line `#! .'.  This would cause the generated library to
15744     # depend on `.', always an invalid library.  This was fixed in
15745     # development snapshots of GCC prior to 3.0.
15746     case $host_os in
15747       aix4 | aix4.[01] | aix4.[01].*)
15748       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15749            echo ' yes '
15750            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15751         :
15752       else
15753         can_build_shared=no
15754       fi
15755       ;;
15756     esac
15757     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15758     # soname into executable. Probably we can add versioning support to
15759     # collect2, so additional links can be useful in future.
15760     if test "$aix_use_runtimelinking" = yes; then
15761       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15762       # instead of lib<name>.a to let people know that these are not
15763       # typical AIX shared libraries.
15764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765     else
15766       # We preserve .a as extension for shared libraries through AIX4.2
15767       # and later when we are not doing run time linking.
15768       library_names_spec='${libname}${release}.a $libname.a'
15769       soname_spec='${libname}${release}${shared_ext}$major'
15770     fi
15771     shlibpath_var=LIBPATH
15772   fi
15773   ;;
15774
15775 amigaos*)
15776   library_names_spec='$libname.ixlibrary $libname.a'
15777   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15778   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'
15779   ;;
15780
15781 beos*)
15782   library_names_spec='${libname}${shared_ext}'
15783   dynamic_linker="$host_os ld.so"
15784   shlibpath_var=LIBRARY_PATH
15785   ;;
15786
15787 bsdi[45]*)
15788   version_type=linux
15789   need_version=no
15790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791   soname_spec='${libname}${release}${shared_ext}$major'
15792   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15793   shlibpath_var=LD_LIBRARY_PATH
15794   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15795   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15796   # the default ld.so.conf also contains /usr/contrib/lib and
15797   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15798   # libtool to hard-code these into programs
15799   ;;
15800
15801 cygwin* | mingw* | pw32*)
15802   version_type=windows
15803   shrext_cmds=".dll"
15804   need_version=no
15805   need_lib_prefix=no
15806
15807   case $GCC,$host_os in
15808   yes,cygwin* | yes,mingw* | yes,pw32*)
15809     library_names_spec='$libname.dll.a'
15810     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15811     postinstall_cmds='base_file=`basename \${file}`~
15812       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15813       dldir=$destdir/`dirname \$dlpath`~
15814       test -d \$dldir || mkdir -p \$dldir~
15815       $install_prog $dir/$dlname \$dldir/$dlname~
15816       chmod a+x \$dldir/$dlname'
15817     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15818       dlpath=$dir/\$dldll~
15819        $rm \$dlpath'
15820     shlibpath_overrides_runpath=yes
15821
15822     case $host_os in
15823     cygwin*)
15824       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15825       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15826       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15827       ;;
15828     mingw*)
15829       # MinGW DLLs use traditional 'lib' prefix
15830       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15831       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15832       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15833         # It is most probably a Windows format PATH printed by
15834         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15835         # path with ; separators, and with drive letters. We can handle the
15836         # drive letters (cygwin fileutils understands them), so leave them,
15837         # especially as we might pass files found there to a mingw objdump,
15838         # which wouldn't understand a cygwinified path. Ahh.
15839         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15840       else
15841         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15842       fi
15843       ;;
15844     pw32*)
15845       # pw32 DLLs use 'pw' prefix rather than 'lib'
15846       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15847       ;;
15848     esac
15849     ;;
15850
15851   *)
15852     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15853     ;;
15854   esac
15855   dynamic_linker='Win32 ld.exe'
15856   # FIXME: first we should search . and the directory the executable is in
15857   shlibpath_var=PATH
15858   ;;
15859
15860 darwin* | rhapsody*)
15861   dynamic_linker="$host_os dyld"
15862   version_type=darwin
15863   need_lib_prefix=no
15864   need_version=no
15865   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15866   soname_spec='${libname}${release}${major}$shared_ext'
15867   shlibpath_overrides_runpath=yes
15868   shlibpath_var=DYLD_LIBRARY_PATH
15869   shrext_cmds='.dylib'
15870   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15871   if test "$GCC" = yes; then
15872     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"`
15873   else
15874     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15875   fi
15876   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15877   ;;
15878
15879 dgux*)
15880   version_type=linux
15881   need_lib_prefix=no
15882   need_version=no
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   shlibpath_var=LD_LIBRARY_PATH
15886   ;;
15887
15888 freebsd1*)
15889   dynamic_linker=no
15890   ;;
15891
15892 kfreebsd*-gnu)
15893   version_type=linux
15894   need_lib_prefix=no
15895   need_version=no
15896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15897   soname_spec='${libname}${release}${shared_ext}$major'
15898   shlibpath_var=LD_LIBRARY_PATH
15899   shlibpath_overrides_runpath=no
15900   hardcode_into_libs=yes
15901   dynamic_linker='GNU ld.so'
15902   ;;
15903
15904 freebsd* | dragonfly*)
15905   # DragonFly does not have aout.  When/if they implement a new
15906   # versioning mechanism, adjust this.
15907   if test -x /usr/bin/objformat; then
15908     objformat=`/usr/bin/objformat`
15909   else
15910     case $host_os in
15911     freebsd[123]*) objformat=aout ;;
15912     *) objformat=elf ;;
15913     esac
15914   fi
15915   version_type=freebsd-$objformat
15916   case $version_type in
15917     freebsd-elf*)
15918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15919       need_version=no
15920       need_lib_prefix=no
15921       ;;
15922     freebsd-*)
15923       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15924       need_version=yes
15925       ;;
15926   esac
15927   shlibpath_var=LD_LIBRARY_PATH
15928   case $host_os in
15929   freebsd2*)
15930     shlibpath_overrides_runpath=yes
15931     ;;
15932   freebsd3.[01]* | freebsdelf3.[01]*)
15933     shlibpath_overrides_runpath=yes
15934     hardcode_into_libs=yes
15935     ;;
15936   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15937   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15938     shlibpath_overrides_runpath=no
15939     hardcode_into_libs=yes
15940     ;;
15941   freebsd*) # from 4.6 on
15942     shlibpath_overrides_runpath=yes
15943     hardcode_into_libs=yes
15944     ;;
15945   esac
15946   ;;
15947
15948 gnu*)
15949   version_type=linux
15950   need_lib_prefix=no
15951   need_version=no
15952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   hardcode_into_libs=yes
15956   ;;
15957
15958 hpux9* | hpux10* | hpux11*)
15959   # Give a soname corresponding to the major version so that dld.sl refuses to
15960   # link against other versions.
15961   version_type=sunos
15962   need_lib_prefix=no
15963   need_version=no
15964   case $host_cpu in
15965   ia64*)
15966     shrext_cmds='.so'
15967     hardcode_into_libs=yes
15968     dynamic_linker="$host_os dld.so"
15969     shlibpath_var=LD_LIBRARY_PATH
15970     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972     soname_spec='${libname}${release}${shared_ext}$major'
15973     if test "X$HPUX_IA64_MODE" = X32; then
15974       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15975     else
15976       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15977     fi
15978     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15979     ;;
15980    hppa*64*)
15981      shrext_cmds='.sl'
15982      hardcode_into_libs=yes
15983      dynamic_linker="$host_os dld.sl"
15984      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15985      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15986      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987      soname_spec='${libname}${release}${shared_ext}$major'
15988      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15989      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15990      ;;
15991    *)
15992     shrext_cmds='.sl'
15993     dynamic_linker="$host_os dld.sl"
15994     shlibpath_var=SHLIB_PATH
15995     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997     soname_spec='${libname}${release}${shared_ext}$major'
15998     ;;
15999   esac
16000   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16001   postinstall_cmds='chmod 555 $lib'
16002   ;;
16003
16004 interix3*)
16005   version_type=linux
16006   need_lib_prefix=no
16007   need_version=no
16008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16009   soname_spec='${libname}${release}${shared_ext}$major'
16010   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   shlibpath_overrides_runpath=no
16013   hardcode_into_libs=yes
16014   ;;
16015
16016 irix5* | irix6* | nonstopux*)
16017   case $host_os in
16018     nonstopux*) version_type=nonstopux ;;
16019     *)
16020         if test "$lt_cv_prog_gnu_ld" = yes; then
16021                 version_type=linux
16022         else
16023                 version_type=irix
16024         fi ;;
16025   esac
16026   need_lib_prefix=no
16027   need_version=no
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16030   case $host_os in
16031   irix5* | nonstopux*)
16032     libsuff= shlibsuff=
16033     ;;
16034   *)
16035     case $LD in # libtool.m4 will add one of these switches to LD
16036     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16037       libsuff= shlibsuff= libmagic=32-bit;;
16038     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16039       libsuff=32 shlibsuff=N32 libmagic=N32;;
16040     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16041       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16042     *) libsuff= shlibsuff= libmagic=never-match;;
16043     esac
16044     ;;
16045   esac
16046   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16047   shlibpath_overrides_runpath=no
16048   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16049   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16050   hardcode_into_libs=yes
16051   ;;
16052
16053 # No shared lib support for Linux oldld, aout, or coff.
16054 linux*oldld* | linux*aout* | linux*coff*)
16055   dynamic_linker=no
16056   ;;
16057
16058 # This must be Linux ELF.
16059 linux*)
16060   version_type=linux
16061   need_lib_prefix=no
16062   need_version=no
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   shlibpath_overrides_runpath=no
16068   # This implies no fast_install, which is unacceptable.
16069   # Some rework will be needed to allow for fast_install
16070   # before this can be enabled.
16071   hardcode_into_libs=yes
16072
16073   # Append ld.so.conf contents to the search path
16074   if test -f /etc/ld.so.conf; then
16075     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' ' '`
16076     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16077   fi
16078
16079   # We used to test for /lib/ld.so.1 and disable shared libraries on
16080   # powerpc, because MkLinux only supported shared libraries with the
16081   # GNU dynamic linker.  Since this was broken with cross compilers,
16082   # most powerpc-linux boxes support dynamic linking these days and
16083   # people can always --disable-shared, the test was removed, and we
16084   # assume the GNU/Linux dynamic linker is in use.
16085   dynamic_linker='GNU/Linux ld.so'
16086   ;;
16087
16088 knetbsd*-gnu)
16089   version_type=linux
16090   need_lib_prefix=no
16091   need_version=no
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16093   soname_spec='${libname}${release}${shared_ext}$major'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   shlibpath_overrides_runpath=no
16096   hardcode_into_libs=yes
16097   dynamic_linker='GNU ld.so'
16098   ;;
16099
16100 netbsd*)
16101   version_type=sunos
16102   need_lib_prefix=no
16103   need_version=no
16104   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16106     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16107     dynamic_linker='NetBSD (a.out) ld.so'
16108   else
16109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16110     soname_spec='${libname}${release}${shared_ext}$major'
16111     dynamic_linker='NetBSD ld.elf_so'
16112   fi
16113   shlibpath_var=LD_LIBRARY_PATH
16114   shlibpath_overrides_runpath=yes
16115   hardcode_into_libs=yes
16116   ;;
16117
16118 newsos6)
16119   version_type=linux
16120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121   shlibpath_var=LD_LIBRARY_PATH
16122   shlibpath_overrides_runpath=yes
16123   ;;
16124
16125 nto-qnx*)
16126   version_type=linux
16127   need_lib_prefix=no
16128   need_version=no
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   shlibpath_overrides_runpath=yes
16133   ;;
16134
16135 openbsd*)
16136   version_type=sunos
16137   sys_lib_dlsearch_path_spec="/usr/lib"
16138   need_lib_prefix=no
16139   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16140   case $host_os in
16141     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16142     *)                         need_version=no  ;;
16143   esac
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16148     case $host_os in
16149       openbsd2.[89] | openbsd2.[89].*)
16150         shlibpath_overrides_runpath=no
16151         ;;
16152       *)
16153         shlibpath_overrides_runpath=yes
16154         ;;
16155       esac
16156   else
16157     shlibpath_overrides_runpath=yes
16158   fi
16159   ;;
16160
16161 os2*)
16162   libname_spec='$name'
16163   shrext_cmds=".dll"
16164   need_lib_prefix=no
16165   library_names_spec='$libname${shared_ext} $libname.a'
16166   dynamic_linker='OS/2 ld.exe'
16167   shlibpath_var=LIBPATH
16168   ;;
16169
16170 osf3* | osf4* | osf5*)
16171   version_type=osf
16172   need_lib_prefix=no
16173   need_version=no
16174   soname_spec='${libname}${release}${shared_ext}$major'
16175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176   shlibpath_var=LD_LIBRARY_PATH
16177   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16178   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16179   ;;
16180
16181 solaris*)
16182   version_type=linux
16183   need_lib_prefix=no
16184   need_version=no
16185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186   soname_spec='${libname}${release}${shared_ext}$major'
16187   shlibpath_var=LD_LIBRARY_PATH
16188   shlibpath_overrides_runpath=yes
16189   hardcode_into_libs=yes
16190   # ldd complains unless libraries are executable
16191   postinstall_cmds='chmod +x $lib'
16192   ;;
16193
16194 sunos4*)
16195   version_type=sunos
16196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16197   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16198   shlibpath_var=LD_LIBRARY_PATH
16199   shlibpath_overrides_runpath=yes
16200   if test "$with_gnu_ld" = yes; then
16201     need_lib_prefix=no
16202   fi
16203   need_version=yes
16204   ;;
16205
16206 sysv4 | sysv4.3*)
16207   version_type=linux
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209   soname_spec='${libname}${release}${shared_ext}$major'
16210   shlibpath_var=LD_LIBRARY_PATH
16211   case $host_vendor in
16212     sni)
16213       shlibpath_overrides_runpath=no
16214       need_lib_prefix=no
16215       export_dynamic_flag_spec='${wl}-Blargedynsym'
16216       runpath_var=LD_RUN_PATH
16217       ;;
16218     siemens)
16219       need_lib_prefix=no
16220       ;;
16221     motorola)
16222       need_lib_prefix=no
16223       need_version=no
16224       shlibpath_overrides_runpath=no
16225       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16226       ;;
16227   esac
16228   ;;
16229
16230 sysv4*MP*)
16231   if test -d /usr/nec ;then
16232     version_type=linux
16233     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16234     soname_spec='$libname${shared_ext}.$major'
16235     shlibpath_var=LD_LIBRARY_PATH
16236   fi
16237   ;;
16238
16239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16240   version_type=freebsd-elf
16241   need_lib_prefix=no
16242   need_version=no
16243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16244   soname_spec='${libname}${release}${shared_ext}$major'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   hardcode_into_libs=yes
16247   if test "$with_gnu_ld" = yes; then
16248     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16249     shlibpath_overrides_runpath=no
16250   else
16251     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16252     shlibpath_overrides_runpath=yes
16253     case $host_os in
16254       sco3.2v5*)
16255         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16256         ;;
16257     esac
16258   fi
16259   sys_lib_dlsearch_path_spec='/usr/lib'
16260   ;;
16261
16262 uts4*)
16263   version_type=linux
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265   soname_spec='${libname}${release}${shared_ext}$major'
16266   shlibpath_var=LD_LIBRARY_PATH
16267   ;;
16268
16269 *)
16270   dynamic_linker=no
16271   ;;
16272 esac
16273 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16274 echo "${ECHO_T}$dynamic_linker" >&6; }
16275 test "$dynamic_linker" = no && can_build_shared=no
16276
16277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16278 if test "$GCC" = yes; then
16279   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16280 fi
16281
16282 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16283 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16284 hardcode_action=
16285 if test -n "$hardcode_libdir_flag_spec" || \
16286    test -n "$runpath_var" || \
16287    test "X$hardcode_automatic" = "Xyes" ; then
16288
16289   # We can hardcode non-existant directories.
16290   if test "$hardcode_direct" != no &&
16291      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16292      # have to relink, otherwise we might link with an installed library
16293      # when we should be linking with a yet-to-be-installed one
16294      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16295      test "$hardcode_minus_L" != no; then
16296     # Linking always hardcodes the temporary library directory.
16297     hardcode_action=relink
16298   else
16299     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16300     hardcode_action=immediate
16301   fi
16302 else
16303   # We cannot hardcode anything, or else we can only hardcode existing
16304   # directories.
16305   hardcode_action=unsupported
16306 fi
16307 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16308 echo "${ECHO_T}$hardcode_action" >&6; }
16309
16310 if test "$hardcode_action" = relink; then
16311   # Fast installation is not supported
16312   enable_fast_install=no
16313 elif test "$shlibpath_overrides_runpath" = yes ||
16314      test "$enable_shared" = no; then
16315   # Fast installation is not necessary
16316   enable_fast_install=needless
16317 fi
16318
16319 striplib=
16320 old_striplib=
16321 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16322 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16323 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16324   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16325   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16326   { echo "$as_me:$LINENO: result: yes" >&5
16327 echo "${ECHO_T}yes" >&6; }
16328 else
16329 # FIXME - insert some real tests, host_os isn't really good enough
16330   case $host_os in
16331    darwin*)
16332        if test -n "$STRIP" ; then
16333          striplib="$STRIP -x"
16334          { echo "$as_me:$LINENO: result: yes" >&5
16335 echo "${ECHO_T}yes" >&6; }
16336        else
16337   { echo "$as_me:$LINENO: result: no" >&5
16338 echo "${ECHO_T}no" >&6; }
16339 fi
16340        ;;
16341    *)
16342   { echo "$as_me:$LINENO: result: no" >&5
16343 echo "${ECHO_T}no" >&6; }
16344     ;;
16345   esac
16346 fi
16347
16348 if test "x$enable_dlopen" != xyes; then
16349   enable_dlopen=unknown
16350   enable_dlopen_self=unknown
16351   enable_dlopen_self_static=unknown
16352 else
16353   lt_cv_dlopen=no
16354   lt_cv_dlopen_libs=
16355
16356   case $host_os in
16357   beos*)
16358     lt_cv_dlopen="load_add_on"
16359     lt_cv_dlopen_libs=
16360     lt_cv_dlopen_self=yes
16361     ;;
16362
16363   mingw* | pw32*)
16364     lt_cv_dlopen="LoadLibrary"
16365     lt_cv_dlopen_libs=
16366    ;;
16367
16368   cygwin*)
16369     lt_cv_dlopen="dlopen"
16370     lt_cv_dlopen_libs=
16371    ;;
16372
16373   darwin*)
16374   # if libdl is installed we need to link against it
16375     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16376 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16378   echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380   ac_check_lib_save_LIBS=$LIBS
16381 LIBS="-ldl  $LIBS"
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388
16389 /* Override any GCC internal prototype to avoid an error.
16390    Use char because int might match the return type of a GCC
16391    builtin and then its argument prototype would still apply.  */
16392 #ifdef __cplusplus
16393 extern "C"
16394 #endif
16395 char dlopen ();
16396 int
16397 main ()
16398 {
16399 return dlopen ();
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 rm -f conftest.$ac_objext conftest$ac_exeext
16405 if { (ac_try="$ac_link"
16406 case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_link") 2>conftest.er1
16412   ac_status=$?
16413   grep -v '^ *+' conftest.er1 >conftest.err
16414   rm -f conftest.er1
16415   cat conftest.err >&5
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); } &&
16418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419   { (case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_try") 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest$ac_exeext'
16429   { (case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_try") 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_cv_lib_dl_dlopen=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443         ac_cv_lib_dl_dlopen=no
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext \
16447       conftest$ac_exeext conftest.$ac_ext
16448 LIBS=$ac_check_lib_save_LIBS
16449 fi
16450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16452 if test $ac_cv_lib_dl_dlopen = yes; then
16453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16454 else
16455
16456     lt_cv_dlopen="dyld"
16457     lt_cv_dlopen_libs=
16458     lt_cv_dlopen_self=yes
16459
16460 fi
16461
16462    ;;
16463
16464   *)
16465     { echo "$as_me:$LINENO: checking for shl_load" >&5
16466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16467 if test "${ac_cv_func_shl_load+set}" = set; then
16468   echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470   cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16478 #define shl_load innocuous_shl_load
16479
16480 /* System header to define __stub macros and hopefully few prototypes,
16481     which can conflict with char shl_load (); below.
16482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16483     <limits.h> exists even on freestanding compilers.  */
16484
16485 #ifdef __STDC__
16486 # include <limits.h>
16487 #else
16488 # include <assert.h>
16489 #endif
16490
16491 #undef shl_load
16492
16493 /* Override any GCC internal prototype to avoid an error.
16494    Use char because int might match the return type of a GCC
16495    builtin and then its argument prototype would still apply.  */
16496 #ifdef __cplusplus
16497 extern "C"
16498 #endif
16499 char shl_load ();
16500 /* The GNU C library defines this for functions which it implements
16501     to always fail with ENOSYS.  Some functions are actually named
16502     something starting with __ and the normal name is an alias.  */
16503 #if defined __stub_shl_load || defined __stub___shl_load
16504 choke me
16505 #endif
16506
16507 int
16508 main ()
16509 {
16510 return shl_load ();
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_link") 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530   { (case "(($ac_try" in
16531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532   *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535   (eval "$ac_try") 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; } &&
16539          { ac_try='test -s conftest$ac_exeext'
16540   { (case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_try") 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); }; }; then
16549   ac_cv_func_shl_load=yes
16550 else
16551   echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16553
16554         ac_cv_func_shl_load=no
16555 fi
16556
16557 rm -f core conftest.err conftest.$ac_objext \
16558       conftest$ac_exeext conftest.$ac_ext
16559 fi
16560 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16561 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16562 if test $ac_cv_func_shl_load = yes; then
16563   lt_cv_dlopen="shl_load"
16564 else
16565   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16566 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-ldld  $LIBS"
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h.  */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h.  */
16578
16579 /* Override any GCC internal prototype to avoid an error.
16580    Use char because int might match the return type of a GCC
16581    builtin and then its argument prototype would still apply.  */
16582 #ifdef __cplusplus
16583 extern "C"
16584 #endif
16585 char shl_load ();
16586 int
16587 main ()
16588 {
16589 return shl_load ();
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_link") 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609   { (case "(($ac_try" in
16610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611   *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614   (eval "$ac_try") 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; } &&
16618          { ac_try='test -s conftest$ac_exeext'
16619   { (case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_try") 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   ac_cv_lib_dld_shl_load=yes
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633         ac_cv_lib_dld_shl_load=no
16634 fi
16635
16636 rm -f core conftest.err conftest.$ac_objext \
16637       conftest$ac_exeext conftest.$ac_ext
16638 LIBS=$ac_check_lib_save_LIBS
16639 fi
16640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16641 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16642 if test $ac_cv_lib_dld_shl_load = yes; then
16643   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16644 else
16645   { echo "$as_me:$LINENO: checking for dlopen" >&5
16646 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16647 if test "${ac_cv_func_dlopen+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16658 #define dlopen innocuous_dlopen
16659
16660 /* System header to define __stub macros and hopefully few prototypes,
16661     which can conflict with char dlopen (); below.
16662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16663     <limits.h> exists even on freestanding compilers.  */
16664
16665 #ifdef __STDC__
16666 # include <limits.h>
16667 #else
16668 # include <assert.h>
16669 #endif
16670
16671 #undef dlopen
16672
16673 /* Override any GCC internal prototype to avoid an error.
16674    Use char because int might match the return type of a GCC
16675    builtin and then its argument prototype would still apply.  */
16676 #ifdef __cplusplus
16677 extern "C"
16678 #endif
16679 char dlopen ();
16680 /* The GNU C library defines this for functions which it implements
16681     to always fail with ENOSYS.  Some functions are actually named
16682     something starting with __ and the normal name is an alias.  */
16683 #if defined __stub_dlopen || defined __stub___dlopen
16684 choke me
16685 #endif
16686
16687 int
16688 main ()
16689 {
16690 return dlopen ();
16691   ;
16692   return 0;
16693 }
16694 _ACEOF
16695 rm -f conftest.$ac_objext conftest$ac_exeext
16696 if { (ac_try="$ac_link"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_link") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest$ac_exeext'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_cv_func_dlopen=yes
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_cv_func_dlopen=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext \
16738       conftest$ac_exeext conftest.$ac_ext
16739 fi
16740 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16741 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16742 if test $ac_cv_func_dlopen = yes; then
16743   lt_cv_dlopen="dlopen"
16744 else
16745   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   ac_check_lib_save_LIBS=$LIBS
16751 LIBS="-ldl  $LIBS"
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758
16759 /* Override any GCC internal prototype to avoid an error.
16760    Use char because int might match the return type of a GCC
16761    builtin and then its argument prototype would still apply.  */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 char dlopen ();
16766 int
16767 main ()
16768 {
16769 return dlopen ();
16770   ;
16771   return 0;
16772 }
16773 _ACEOF
16774 rm -f conftest.$ac_objext conftest$ac_exeext
16775 if { (ac_try="$ac_link"
16776 case "(($ac_try" in
16777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778   *) ac_try_echo=$ac_try;;
16779 esac
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781   (eval "$ac_link") 2>conftest.er1
16782   ac_status=$?
16783   grep -v '^ *+' conftest.er1 >conftest.err
16784   rm -f conftest.er1
16785   cat conftest.err >&5
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); } &&
16788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789   { (case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_try") 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; } &&
16798          { ac_try='test -s conftest$ac_exeext'
16799   { (case "(($ac_try" in
16800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801   *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804   (eval "$ac_try") 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; }; then
16808   ac_cv_lib_dl_dlopen=yes
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813         ac_cv_lib_dl_dlopen=no
16814 fi
16815
16816 rm -f core conftest.err conftest.$ac_objext \
16817       conftest$ac_exeext conftest.$ac_ext
16818 LIBS=$ac_check_lib_save_LIBS
16819 fi
16820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16822 if test $ac_cv_lib_dl_dlopen = yes; then
16823   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16824 else
16825   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lsvld  $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838
16839 /* Override any GCC internal prototype to avoid an error.
16840    Use char because int might match the return type of a GCC
16841    builtin and then its argument prototype would still apply.  */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char dlopen ();
16846 int
16847 main ()
16848 {
16849 return dlopen ();
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_link") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869   { (case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_try") 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; } &&
16878          { ac_try='test -s conftest$ac_exeext'
16879   { (case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_try") 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   ac_cv_lib_svld_dlopen=yes
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893         ac_cv_lib_svld_dlopen=no
16894 fi
16895
16896 rm -f core conftest.err conftest.$ac_objext \
16897       conftest$ac_exeext conftest.$ac_ext
16898 LIBS=$ac_check_lib_save_LIBS
16899 fi
16900 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16901 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16902 if test $ac_cv_lib_svld_dlopen = yes; then
16903   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16904 else
16905   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16906 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910   ac_check_lib_save_LIBS=$LIBS
16911 LIBS="-ldld  $LIBS"
16912 cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h.  */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h.  */
16918
16919 /* Override any GCC internal prototype to avoid an error.
16920    Use char because int might match the return type of a GCC
16921    builtin and then its argument prototype would still apply.  */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 char dld_link ();
16926 int
16927 main ()
16928 {
16929 return dld_link ();
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 rm -f conftest.$ac_objext conftest$ac_exeext
16935 if { (ac_try="$ac_link"
16936 case "(($ac_try" in
16937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938   *) ac_try_echo=$ac_try;;
16939 esac
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941   (eval "$ac_link") 2>conftest.er1
16942   ac_status=$?
16943   grep -v '^ *+' conftest.er1 >conftest.err
16944   rm -f conftest.er1
16945   cat conftest.err >&5
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); } &&
16948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16949   { (case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_try") 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; } &&
16958          { ac_try='test -s conftest$ac_exeext'
16959   { (case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_try") 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   ac_cv_lib_dld_dld_link=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973         ac_cv_lib_dld_dld_link=no
16974 fi
16975
16976 rm -f core conftest.err conftest.$ac_objext \
16977       conftest$ac_exeext conftest.$ac_ext
16978 LIBS=$ac_check_lib_save_LIBS
16979 fi
16980 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16981 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16982 if test $ac_cv_lib_dld_dld_link = yes; then
16983   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16984 fi
16985
16986
16987 fi
16988
16989
16990 fi
16991
16992
16993 fi
16994
16995
16996 fi
16997
16998
16999 fi
17000
17001     ;;
17002   esac
17003
17004   if test "x$lt_cv_dlopen" != xno; then
17005     enable_dlopen=yes
17006   else
17007     enable_dlopen=no
17008   fi
17009
17010   case $lt_cv_dlopen in
17011   dlopen)
17012     save_CPPFLAGS="$CPPFLAGS"
17013     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17014
17015     save_LDFLAGS="$LDFLAGS"
17016     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17017
17018     save_LIBS="$LIBS"
17019     LIBS="$lt_cv_dlopen_libs $LIBS"
17020
17021     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17022 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17023 if test "${lt_cv_dlopen_self+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026           if test "$cross_compiling" = yes; then :
17027   lt_cv_dlopen_self=cross
17028 else
17029   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17030   lt_status=$lt_dlunknown
17031   cat > conftest.$ac_ext <<EOF
17032 #line 17032 "configure"
17033 #include "confdefs.h"
17034
17035 #if HAVE_DLFCN_H
17036 #include <dlfcn.h>
17037 #endif
17038
17039 #include <stdio.h>
17040
17041 #ifdef RTLD_GLOBAL
17042 #  define LT_DLGLOBAL           RTLD_GLOBAL
17043 #else
17044 #  ifdef DL_GLOBAL
17045 #    define LT_DLGLOBAL         DL_GLOBAL
17046 #  else
17047 #    define LT_DLGLOBAL         0
17048 #  endif
17049 #endif
17050
17051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17052    find out it does not work in some platform. */
17053 #ifndef LT_DLLAZY_OR_NOW
17054 #  ifdef RTLD_LAZY
17055 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17056 #  else
17057 #    ifdef DL_LAZY
17058 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17059 #    else
17060 #      ifdef RTLD_NOW
17061 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17062 #      else
17063 #        ifdef DL_NOW
17064 #          define LT_DLLAZY_OR_NOW      DL_NOW
17065 #        else
17066 #          define LT_DLLAZY_OR_NOW      0
17067 #        endif
17068 #      endif
17069 #    endif
17070 #  endif
17071 #endif
17072
17073 #ifdef __cplusplus
17074 extern "C" void exit (int);
17075 #endif
17076
17077 void fnord() { int i=42;}
17078 int main ()
17079 {
17080   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17081   int status = $lt_dlunknown;
17082
17083   if (self)
17084     {
17085       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17086       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17087       /* dlclose (self); */
17088     }
17089   else
17090     puts (dlerror ());
17091
17092     exit (status);
17093 }
17094 EOF
17095   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17096   (eval $ac_link) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17100     (./conftest; exit; ) >&5 2>/dev/null
17101     lt_status=$?
17102     case x$lt_status in
17103       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17104       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17105       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17106     esac
17107   else :
17108     # compilation failed
17109     lt_cv_dlopen_self=no
17110   fi
17111 fi
17112 rm -fr conftest*
17113
17114
17115 fi
17116 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17117 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17118
17119     if test "x$lt_cv_dlopen_self" = xyes; then
17120       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17121       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17122 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17123 if test "${lt_cv_dlopen_self_static+set}" = set; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126           if test "$cross_compiling" = yes; then :
17127   lt_cv_dlopen_self_static=cross
17128 else
17129   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17130   lt_status=$lt_dlunknown
17131   cat > conftest.$ac_ext <<EOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17134
17135 #if HAVE_DLFCN_H
17136 #include <dlfcn.h>
17137 #endif
17138
17139 #include <stdio.h>
17140
17141 #ifdef RTLD_GLOBAL
17142 #  define LT_DLGLOBAL           RTLD_GLOBAL
17143 #else
17144 #  ifdef DL_GLOBAL
17145 #    define LT_DLGLOBAL         DL_GLOBAL
17146 #  else
17147 #    define LT_DLGLOBAL         0
17148 #  endif
17149 #endif
17150
17151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17152    find out it does not work in some platform. */
17153 #ifndef LT_DLLAZY_OR_NOW
17154 #  ifdef RTLD_LAZY
17155 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17156 #  else
17157 #    ifdef DL_LAZY
17158 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17159 #    else
17160 #      ifdef RTLD_NOW
17161 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17162 #      else
17163 #        ifdef DL_NOW
17164 #          define LT_DLLAZY_OR_NOW      DL_NOW
17165 #        else
17166 #          define LT_DLLAZY_OR_NOW      0
17167 #        endif
17168 #      endif
17169 #    endif
17170 #  endif
17171 #endif
17172
17173 #ifdef __cplusplus
17174 extern "C" void exit (int);
17175 #endif
17176
17177 void fnord() { int i=42;}
17178 int main ()
17179 {
17180   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17181   int status = $lt_dlunknown;
17182
17183   if (self)
17184     {
17185       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17186       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17187       /* dlclose (self); */
17188     }
17189   else
17190     puts (dlerror ());
17191
17192     exit (status);
17193 }
17194 EOF
17195   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196   (eval $ac_link) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17200     (./conftest; exit; ) >&5 2>/dev/null
17201     lt_status=$?
17202     case x$lt_status in
17203       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17204       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17205       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17206     esac
17207   else :
17208     # compilation failed
17209     lt_cv_dlopen_self_static=no
17210   fi
17211 fi
17212 rm -fr conftest*
17213
17214
17215 fi
17216 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17217 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17218     fi
17219
17220     CPPFLAGS="$save_CPPFLAGS"
17221     LDFLAGS="$save_LDFLAGS"
17222     LIBS="$save_LIBS"
17223     ;;
17224   esac
17225
17226   case $lt_cv_dlopen_self in
17227   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17228   *) enable_dlopen_self=unknown ;;
17229   esac
17230
17231   case $lt_cv_dlopen_self_static in
17232   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17233   *) enable_dlopen_self_static=unknown ;;
17234   esac
17235 fi
17236
17237
17238 # Report which library types will actually be built
17239 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17240 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17241 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17242 echo "${ECHO_T}$can_build_shared" >&6; }
17243
17244 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17245 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17246 test "$can_build_shared" = "no" && enable_shared=no
17247
17248 # On AIX, shared libraries and static libraries use the same namespace, and
17249 # are all built from PIC.
17250 case $host_os in
17251 aix3*)
17252   test "$enable_shared" = yes && enable_static=no
17253   if test -n "$RANLIB"; then
17254     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17255     postinstall_cmds='$RANLIB $lib'
17256   fi
17257   ;;
17258
17259 aix4* | aix5*)
17260   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17261     test "$enable_shared" = yes && enable_static=no
17262   fi
17263     ;;
17264 esac
17265 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17266 echo "${ECHO_T}$enable_shared" >&6; }
17267
17268 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17269 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17270 # Make sure either enable_shared or enable_static is yes.
17271 test "$enable_shared" = yes || enable_static=yes
17272 { echo "$as_me:$LINENO: result: $enable_static" >&5
17273 echo "${ECHO_T}$enable_static" >&6; }
17274
17275 # The else clause should only fire when bootstrapping the
17276 # libtool distribution, otherwise you forgot to ship ltmain.sh
17277 # with your package, and you will get complaints that there are
17278 # no rules to generate ltmain.sh.
17279 if test -f "$ltmain"; then
17280   # See if we are running on zsh, and set the options which allow our commands through
17281   # without removal of \ escapes.
17282   if test -n "${ZSH_VERSION+set}" ; then
17283     setopt NO_GLOB_SUBST
17284   fi
17285   # Now quote all the things that may contain metacharacters while being
17286   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17287   # variables and quote the copies for generation of the libtool script.
17288   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17289     SED SHELL STRIP \
17290     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17291     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17292     deplibs_check_method reload_flag reload_cmds need_locks \
17293     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17294     lt_cv_sys_global_symbol_to_c_name_address \
17295     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17296     old_postinstall_cmds old_postuninstall_cmds \
17297     compiler \
17298     CC \
17299     LD \
17300     lt_prog_compiler_wl \
17301     lt_prog_compiler_pic \
17302     lt_prog_compiler_static \
17303     lt_prog_compiler_no_builtin_flag \
17304     export_dynamic_flag_spec \
17305     thread_safe_flag_spec \
17306     whole_archive_flag_spec \
17307     enable_shared_with_static_runtimes \
17308     old_archive_cmds \
17309     old_archive_from_new_cmds \
17310     predep_objects \
17311     postdep_objects \
17312     predeps \
17313     postdeps \
17314     compiler_lib_search_path \
17315     archive_cmds \
17316     archive_expsym_cmds \
17317     postinstall_cmds \
17318     postuninstall_cmds \
17319     old_archive_from_expsyms_cmds \
17320     allow_undefined_flag \
17321     no_undefined_flag \
17322     export_symbols_cmds \
17323     hardcode_libdir_flag_spec \
17324     hardcode_libdir_flag_spec_ld \
17325     hardcode_libdir_separator \
17326     hardcode_automatic \
17327     module_cmds \
17328     module_expsym_cmds \
17329     lt_cv_prog_compiler_c_o \
17330     exclude_expsyms \
17331     include_expsyms; do
17332
17333     case $var in
17334     old_archive_cmds | \
17335     old_archive_from_new_cmds | \
17336     archive_cmds | \
17337     archive_expsym_cmds | \
17338     module_cmds | \
17339     module_expsym_cmds | \
17340     old_archive_from_expsyms_cmds | \
17341     export_symbols_cmds | \
17342     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17343     postinstall_cmds | postuninstall_cmds | \
17344     old_postinstall_cmds | old_postuninstall_cmds | \
17345     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17346       # Double-quote double-evaled strings.
17347       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17348       ;;
17349     *)
17350       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17351       ;;
17352     esac
17353   done
17354
17355   case $lt_echo in
17356   *'\$0 --fallback-echo"')
17357     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17358     ;;
17359   esac
17360
17361 cfgfile="${ofile}T"
17362   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17363   $rm -f "$cfgfile"
17364   { echo "$as_me:$LINENO: creating $ofile" >&5
17365 echo "$as_me: creating $ofile" >&6;}
17366
17367   cat <<__EOF__ >> "$cfgfile"
17368 #! $SHELL
17369
17370 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17371 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17373 #
17374 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17375 # Free Software Foundation, Inc.
17376 #
17377 # This file is part of GNU Libtool:
17378 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17379 #
17380 # This program is free software; you can redistribute it and/or modify
17381 # it under the terms of the GNU General Public License as published by
17382 # the Free Software Foundation; either version 2 of the License, or
17383 # (at your option) any later version.
17384 #
17385 # This program is distributed in the hope that it will be useful, but
17386 # WITHOUT ANY WARRANTY; without even the implied warranty of
17387 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17388 # General Public License for more details.
17389 #
17390 # You should have received a copy of the GNU General Public License
17391 # along with this program; if not, write to the Free Software
17392 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17393 #
17394 # As a special exception to the GNU General Public License, if you
17395 # distribute this file as part of a program that contains a
17396 # configuration script generated by Autoconf, you may include it under
17397 # the same distribution terms that you use for the rest of that program.
17398
17399 # A sed program that does not truncate output.
17400 SED=$lt_SED
17401
17402 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17403 Xsed="$SED -e 1s/^X//"
17404
17405 # The HP-UX ksh and POSIX shell print the target directory to stdout
17406 # if CDPATH is set.
17407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17408
17409 # The names of the tagged configurations supported by this script.
17410 available_tags=
17411
17412 # ### BEGIN LIBTOOL CONFIG
17413
17414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17415
17416 # Shell to use when invoking shell scripts.
17417 SHELL=$lt_SHELL
17418
17419 # Whether or not to build shared libraries.
17420 build_libtool_libs=$enable_shared
17421
17422 # Whether or not to build static libraries.
17423 build_old_libs=$enable_static
17424
17425 # Whether or not to add -lc for building shared libraries.
17426 build_libtool_need_lc=$archive_cmds_need_lc
17427
17428 # Whether or not to disallow shared libs when runtime libs are static
17429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17430
17431 # Whether or not to optimize for fast installation.
17432 fast_install=$enable_fast_install
17433
17434 # The host system.
17435 host_alias=$host_alias
17436 host=$host
17437 host_os=$host_os
17438
17439 # The build system.
17440 build_alias=$build_alias
17441 build=$build
17442 build_os=$build_os
17443
17444 # An echo program that does not interpret backslashes.
17445 echo=$lt_echo
17446
17447 # The archiver.
17448 AR=$lt_AR
17449 AR_FLAGS=$lt_AR_FLAGS
17450
17451 # A C compiler.
17452 LTCC=$lt_LTCC
17453
17454 # LTCC compiler flags.
17455 LTCFLAGS=$lt_LTCFLAGS
17456
17457 # A language-specific compiler.
17458 CC=$lt_compiler
17459
17460 # Is the compiler the GNU C compiler?
17461 with_gcc=$GCC
17462
17463 # An ERE matcher.
17464 EGREP=$lt_EGREP
17465
17466 # The linker used to build libraries.
17467 LD=$lt_LD
17468
17469 # Whether we need hard or soft links.
17470 LN_S=$lt_LN_S
17471
17472 # A BSD-compatible nm program.
17473 NM=$lt_NM
17474
17475 # A symbol stripping program
17476 STRIP=$lt_STRIP
17477
17478 # Used to examine libraries when file_magic_cmd begins "file"
17479 MAGIC_CMD=$MAGIC_CMD
17480
17481 # Used on cygwin: DLL creation program.
17482 DLLTOOL="$DLLTOOL"
17483
17484 # Used on cygwin: object dumper.
17485 OBJDUMP="$OBJDUMP"
17486
17487 # Used on cygwin: assembler.
17488 AS="$AS"
17489
17490 # The name of the directory that contains temporary libtool files.
17491 objdir=$objdir
17492
17493 # How to create reloadable object files.
17494 reload_flag=$lt_reload_flag
17495 reload_cmds=$lt_reload_cmds
17496
17497 # How to pass a linker flag through the compiler.
17498 wl=$lt_lt_prog_compiler_wl
17499
17500 # Object file suffix (normally "o").
17501 objext="$ac_objext"
17502
17503 # Old archive suffix (normally "a").
17504 libext="$libext"
17505
17506 # Shared library suffix (normally ".so").
17507 shrext_cmds='$shrext_cmds'
17508
17509 # Executable file suffix (normally "").
17510 exeext="$exeext"
17511
17512 # Additional compiler flags for building library objects.
17513 pic_flag=$lt_lt_prog_compiler_pic
17514 pic_mode=$pic_mode
17515
17516 # What is the maximum length of a command?
17517 max_cmd_len=$lt_cv_sys_max_cmd_len
17518
17519 # Does compiler simultaneously support -c and -o options?
17520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17521
17522 # Must we lock files when doing compilation?
17523 need_locks=$lt_need_locks
17524
17525 # Do we need the lib prefix for modules?
17526 need_lib_prefix=$need_lib_prefix
17527
17528 # Do we need a version for libraries?
17529 need_version=$need_version
17530
17531 # Whether dlopen is supported.
17532 dlopen_support=$enable_dlopen
17533
17534 # Whether dlopen of programs is supported.
17535 dlopen_self=$enable_dlopen_self
17536
17537 # Whether dlopen of statically linked programs is supported.
17538 dlopen_self_static=$enable_dlopen_self_static
17539
17540 # Compiler flag to prevent dynamic linking.
17541 link_static_flag=$lt_lt_prog_compiler_static
17542
17543 # Compiler flag to turn off builtin functions.
17544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17545
17546 # Compiler flag to allow reflexive dlopens.
17547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17548
17549 # Compiler flag to generate shared objects directly from archives.
17550 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17551
17552 # Compiler flag to generate thread-safe objects.
17553 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17554
17555 # Library versioning type.
17556 version_type=$version_type
17557
17558 # Format of library name prefix.
17559 libname_spec=$lt_libname_spec
17560
17561 # List of archive names.  First name is the real one, the rest are links.
17562 # The last name is the one that the linker finds with -lNAME.
17563 library_names_spec=$lt_library_names_spec
17564
17565 # The coded name of the library, if different from the real name.
17566 soname_spec=$lt_soname_spec
17567
17568 # Commands used to build and install an old-style archive.
17569 RANLIB=$lt_RANLIB
17570 old_archive_cmds=$lt_old_archive_cmds
17571 old_postinstall_cmds=$lt_old_postinstall_cmds
17572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17573
17574 # Create an old-style archive from a shared archive.
17575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17576
17577 # Create a temporary old-style archive to link instead of a shared archive.
17578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17579
17580 # Commands used to build and install a shared archive.
17581 archive_cmds=$lt_archive_cmds
17582 archive_expsym_cmds=$lt_archive_expsym_cmds
17583 postinstall_cmds=$lt_postinstall_cmds
17584 postuninstall_cmds=$lt_postuninstall_cmds
17585
17586 # Commands used to build a loadable module (assumed same as above if empty)
17587 module_cmds=$lt_module_cmds
17588 module_expsym_cmds=$lt_module_expsym_cmds
17589
17590 # Commands to strip libraries.
17591 old_striplib=$lt_old_striplib
17592 striplib=$lt_striplib
17593
17594 # Dependencies to place before the objects being linked to create a
17595 # shared library.
17596 predep_objects=$lt_predep_objects
17597
17598 # Dependencies to place after the objects being linked to create a
17599 # shared library.
17600 postdep_objects=$lt_postdep_objects
17601
17602 # Dependencies to place before the objects being linked to create a
17603 # shared library.
17604 predeps=$lt_predeps
17605
17606 # Dependencies to place after the objects being linked to create a
17607 # shared library.
17608 postdeps=$lt_postdeps
17609
17610 # The library search path used internally by the compiler when linking
17611 # a shared library.
17612 compiler_lib_search_path=$lt_compiler_lib_search_path
17613
17614 # Method to check whether dependent libraries are shared objects.
17615 deplibs_check_method=$lt_deplibs_check_method
17616
17617 # Command to use when deplibs_check_method == file_magic.
17618 file_magic_cmd=$lt_file_magic_cmd
17619
17620 # Flag that allows shared libraries with undefined symbols to be built.
17621 allow_undefined_flag=$lt_allow_undefined_flag
17622
17623 # Flag that forces no undefined symbols.
17624 no_undefined_flag=$lt_no_undefined_flag
17625
17626 # Commands used to finish a libtool library installation in a directory.
17627 finish_cmds=$lt_finish_cmds
17628
17629 # Same as above, but a single script fragment to be evaled but not shown.
17630 finish_eval=$lt_finish_eval
17631
17632 # Take the output of nm and produce a listing of raw symbols and C names.
17633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17634
17635 # Transform the output of nm in a proper C declaration
17636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17637
17638 # Transform the output of nm in a C name address pair
17639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17640
17641 # This is the shared library runtime path variable.
17642 runpath_var=$runpath_var
17643
17644 # This is the shared library path variable.
17645 shlibpath_var=$shlibpath_var
17646
17647 # Is shlibpath searched before the hard-coded library search path?
17648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17649
17650 # How to hardcode a shared library path into an executable.
17651 hardcode_action=$hardcode_action
17652
17653 # Whether we should hardcode library paths into libraries.
17654 hardcode_into_libs=$hardcode_into_libs
17655
17656 # Flag to hardcode \$libdir into a binary during linking.
17657 # This must work even if \$libdir does not exist.
17658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17659
17660 # If ld is used when linking, flag to hardcode \$libdir into
17661 # a binary during linking. This must work even if \$libdir does
17662 # not exist.
17663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17664
17665 # Whether we need a single -rpath flag with a separated argument.
17666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17667
17668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17669 # resulting binary.
17670 hardcode_direct=$hardcode_direct
17671
17672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17673 # resulting binary.
17674 hardcode_minus_L=$hardcode_minus_L
17675
17676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17677 # the resulting binary.
17678 hardcode_shlibpath_var=$hardcode_shlibpath_var
17679
17680 # Set to yes if building a shared library automatically hardcodes DIR into the library
17681 # and all subsequent libraries and executables linked against it.
17682 hardcode_automatic=$hardcode_automatic
17683
17684 # Variables whose values should be saved in libtool wrapper scripts and
17685 # restored at relink time.
17686 variables_saved_for_relink="$variables_saved_for_relink"
17687
17688 # Whether libtool must link a program against all its dependency libraries.
17689 link_all_deplibs=$link_all_deplibs
17690
17691 # Compile-time system search path for libraries
17692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17693
17694 # Run-time system search path for libraries
17695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17696
17697 # Fix the shell variable \$srcfile for the compiler.
17698 fix_srcfile_path="$fix_srcfile_path"
17699
17700 # Set to yes if exported symbols are required.
17701 always_export_symbols=$always_export_symbols
17702
17703 # The commands to list exported symbols.
17704 export_symbols_cmds=$lt_export_symbols_cmds
17705
17706 # The commands to extract the exported symbol list from a shared archive.
17707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17708
17709 # Symbols that should not be listed in the preloaded symbols.
17710 exclude_expsyms=$lt_exclude_expsyms
17711
17712 # Symbols that must always be exported.
17713 include_expsyms=$lt_include_expsyms
17714
17715 # ### END LIBTOOL CONFIG
17716
17717 __EOF__
17718
17719
17720   case $host_os in
17721   aix3*)
17722     cat <<\EOF >> "$cfgfile"
17723
17724 # AIX sometimes has problems with the GCC collect2 program.  For some
17725 # reason, if we set the COLLECT_NAMES environment variable, the problems
17726 # vanish in a puff of smoke.
17727 if test "X${COLLECT_NAMES+set}" != Xset; then
17728   COLLECT_NAMES=
17729   export COLLECT_NAMES
17730 fi
17731 EOF
17732     ;;
17733   esac
17734
17735   # We use sed instead of cat because bash on DJGPP gets confused if
17736   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17737   # text mode, it properly converts lines to CR/LF.  This bash problem
17738   # is reportedly fixed, but why not run on old versions too?
17739   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17740
17741   mv -f "$cfgfile" "$ofile" || \
17742     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17743   chmod +x "$ofile"
17744
17745 else
17746   # If there is no Makefile yet, we rely on a make rule to execute
17747   # `config.status --recheck' to rerun these tests and create the
17748   # libtool script then.
17749   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17750   if test -f "$ltmain_in"; then
17751     test -f Makefile && make "$ltmain"
17752   fi
17753 fi
17754
17755
17756 ac_ext=c
17757 ac_cpp='$CPP $CPPFLAGS'
17758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761
17762 CC="$lt_save_CC"
17763
17764
17765 # Check whether --with-tags was given.
17766 if test "${with_tags+set}" = set; then
17767   withval=$with_tags; tagnames="$withval"
17768 fi
17769
17770
17771 if test -f "$ltmain" && test -n "$tagnames"; then
17772   if test ! -f "${ofile}"; then
17773     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17774 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17775   fi
17776
17777   if test -z "$LTCC"; then
17778     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17779     if test -z "$LTCC"; then
17780       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17781 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17782     else
17783       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17784 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17785     fi
17786   fi
17787   if test -z "$LTCFLAGS"; then
17788     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17789   fi
17790
17791   # Extract list of available tagged configurations in $ofile.
17792   # Note that this assumes the entire list is on one line.
17793   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17794
17795   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17796   for tagname in $tagnames; do
17797     IFS="$lt_save_ifs"
17798     # Check whether tagname contains only valid characters
17799     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17800     "") ;;
17801     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17802 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17803    { (exit 1); exit 1; }; }
17804         ;;
17805     esac
17806
17807     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17808     then
17809       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17810 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17811    { (exit 1); exit 1; }; }
17812     fi
17813
17814     # Update the list of available tags.
17815     if test -n "$tagname"; then
17816       echo appending configuration tag \"$tagname\" to $ofile
17817
17818       case $tagname in
17819       CXX)
17820         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17821             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17822             (test "X$CXX" != "Xg++"))) ; then
17823           ac_ext=cpp
17824 ac_cpp='$CXXCPP $CPPFLAGS'
17825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17828
17829
17830
17831
17832 archive_cmds_need_lc_CXX=no
17833 allow_undefined_flag_CXX=
17834 always_export_symbols_CXX=no
17835 archive_expsym_cmds_CXX=
17836 export_dynamic_flag_spec_CXX=
17837 hardcode_direct_CXX=no
17838 hardcode_libdir_flag_spec_CXX=
17839 hardcode_libdir_flag_spec_ld_CXX=
17840 hardcode_libdir_separator_CXX=
17841 hardcode_minus_L_CXX=no
17842 hardcode_shlibpath_var_CXX=unsupported
17843 hardcode_automatic_CXX=no
17844 module_cmds_CXX=
17845 module_expsym_cmds_CXX=
17846 link_all_deplibs_CXX=unknown
17847 old_archive_cmds_CXX=$old_archive_cmds
17848 no_undefined_flag_CXX=
17849 whole_archive_flag_spec_CXX=
17850 enable_shared_with_static_runtimes_CXX=no
17851
17852 # Dependencies to place before and after the object being linked:
17853 predep_objects_CXX=
17854 postdep_objects_CXX=
17855 predeps_CXX=
17856 postdeps_CXX=
17857 compiler_lib_search_path_CXX=
17858
17859 # Source file extension for C++ test sources.
17860 ac_ext=cpp
17861
17862 # Object file extension for compiled C++ test sources.
17863 objext=o
17864 objext_CXX=$objext
17865
17866 # Code to be used in simple compile tests
17867 lt_simple_compile_test_code="int some_variable = 0;\n"
17868
17869 # Code to be used in simple link tests
17870 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17871
17872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17873
17874 # If no C compiler was specified, use CC.
17875 LTCC=${LTCC-"$CC"}
17876
17877 # If no C compiler flags were specified, use CFLAGS.
17878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17879
17880 # Allow CC to be a program name with arguments.
17881 compiler=$CC
17882
17883
17884 # save warnings/boilerplate of simple test code
17885 ac_outfile=conftest.$ac_objext
17886 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17887 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17888 _lt_compiler_boilerplate=`cat conftest.err`
17889 $rm conftest*
17890
17891 ac_outfile=conftest.$ac_objext
17892 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17893 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17894 _lt_linker_boilerplate=`cat conftest.err`
17895 $rm conftest*
17896
17897
17898 # Allow CC to be a program name with arguments.
17899 lt_save_CC=$CC
17900 lt_save_LD=$LD
17901 lt_save_GCC=$GCC
17902 GCC=$GXX
17903 lt_save_with_gnu_ld=$with_gnu_ld
17904 lt_save_path_LD=$lt_cv_path_LD
17905 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17906   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17907 else
17908   $as_unset lt_cv_prog_gnu_ld
17909 fi
17910 if test -n "${lt_cv_path_LDCXX+set}"; then
17911   lt_cv_path_LD=$lt_cv_path_LDCXX
17912 else
17913   $as_unset lt_cv_path_LD
17914 fi
17915 test -z "${LDCXX+set}" || LD=$LDCXX
17916 CC=${CXX-"c++"}
17917 compiler=$CC
17918 compiler_CXX=$CC
17919 for cc_temp in $compiler""; do
17920   case $cc_temp in
17921     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17922     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17923     \-*) ;;
17924     *) break;;
17925   esac
17926 done
17927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17928
17929
17930 # We don't want -fno-exception wen compiling C++ code, so set the
17931 # no_builtin_flag separately
17932 if test "$GXX" = yes; then
17933   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17934 else
17935   lt_prog_compiler_no_builtin_flag_CXX=
17936 fi
17937
17938 if test "$GXX" = yes; then
17939   # Set up default GNU C++ configuration
17940
17941
17942 # Check whether --with-gnu-ld was given.
17943 if test "${with_gnu_ld+set}" = set; then
17944   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17945 else
17946   with_gnu_ld=no
17947 fi
17948
17949 ac_prog=ld
17950 if test "$GCC" = yes; then
17951   # Check if gcc -print-prog-name=ld gives a path.
17952   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17953 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17954   case $host in
17955   *-*-mingw*)
17956     # gcc leaves a trailing carriage return which upsets mingw
17957     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17958   *)
17959     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17960   esac
17961   case $ac_prog in
17962     # Accept absolute paths.
17963     [\\/]* | ?:[\\/]*)
17964       re_direlt='/[^/][^/]*/\.\./'
17965       # Canonicalize the pathname of ld
17966       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17967       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17968         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17969       done
17970       test -z "$LD" && LD="$ac_prog"
17971       ;;
17972   "")
17973     # If it fails, then pretend we aren't using GCC.
17974     ac_prog=ld
17975     ;;
17976   *)
17977     # If it is relative, then search for the first ld in PATH.
17978     with_gnu_ld=unknown
17979     ;;
17980   esac
17981 elif test "$with_gnu_ld" = yes; then
17982   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17983 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17984 else
17985   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17986 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17987 fi
17988 if test "${lt_cv_path_LD+set}" = set; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991   if test -z "$LD"; then
17992   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17993   for ac_dir in $PATH; do
17994     IFS="$lt_save_ifs"
17995     test -z "$ac_dir" && ac_dir=.
17996     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17997       lt_cv_path_LD="$ac_dir/$ac_prog"
17998       # Check to see if the program is GNU ld.  I'd rather use --version,
17999       # but apparently some variants of GNU ld only accept -v.
18000       # Break only if it was the GNU/non-GNU ld that we prefer.
18001       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18002       *GNU* | *'with BFD'*)
18003         test "$with_gnu_ld" != no && break
18004         ;;
18005       *)
18006         test "$with_gnu_ld" != yes && break
18007         ;;
18008       esac
18009     fi
18010   done
18011   IFS="$lt_save_ifs"
18012 else
18013   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18014 fi
18015 fi
18016
18017 LD="$lt_cv_path_LD"
18018 if test -n "$LD"; then
18019   { echo "$as_me:$LINENO: result: $LD" >&5
18020 echo "${ECHO_T}$LD" >&6; }
18021 else
18022   { echo "$as_me:$LINENO: result: no" >&5
18023 echo "${ECHO_T}no" >&6; }
18024 fi
18025 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18026 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18027    { (exit 1); exit 1; }; }
18028 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18029 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18030 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18034 case `$LD -v 2>&1 </dev/null` in
18035 *GNU* | *'with BFD'*)
18036   lt_cv_prog_gnu_ld=yes
18037   ;;
18038 *)
18039   lt_cv_prog_gnu_ld=no
18040   ;;
18041 esac
18042 fi
18043 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18044 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18045 with_gnu_ld=$lt_cv_prog_gnu_ld
18046
18047
18048
18049   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18050   # archiving commands below assume that GNU ld is being used.
18051   if test "$with_gnu_ld" = yes; then
18052     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18053     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'
18054
18055     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18056     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18057
18058     # If archive_cmds runs LD, not CC, wlarc should be empty
18059     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18060     #     investigate it a little bit more. (MM)
18061     wlarc='${wl}'
18062
18063     # ancient GNU ld didn't support --whole-archive et. al.
18064     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18065         grep 'no-whole-archive' > /dev/null; then
18066       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18067     else
18068       whole_archive_flag_spec_CXX=
18069     fi
18070   else
18071     with_gnu_ld=no
18072     wlarc=
18073
18074     # A generic and very simple default shared library creation
18075     # command for GNU C++ for the case where it uses the native
18076     # linker, instead of GNU ld.  If possible, this setting should
18077     # overridden to take advantage of the native linker features on
18078     # the platform it is being used on.
18079     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18080   fi
18081
18082   # Commands to make compiler produce verbose output that lists
18083   # what "hidden" libraries, object files and flags are used when
18084   # linking a shared library.
18085   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18086
18087 else
18088   GXX=no
18089   with_gnu_ld=no
18090   wlarc=
18091 fi
18092
18093 # PORTME: fill in a description of your system's C++ link characteristics
18094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18096 ld_shlibs_CXX=yes
18097 case $host_os in
18098   aix3*)
18099     # FIXME: insert proper C++ library support
18100     ld_shlibs_CXX=no
18101     ;;
18102   aix4* | aix5*)
18103     if test "$host_cpu" = ia64; then
18104       # On IA64, the linker does run time linking by default, so we don't
18105       # have to do anything special.
18106       aix_use_runtimelinking=no
18107       exp_sym_flag='-Bexport'
18108       no_entry_flag=""
18109     else
18110       aix_use_runtimelinking=no
18111
18112       # Test if we are trying to use run time linking or normal
18113       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18114       # need to do runtime linking.
18115       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18116         for ld_flag in $LDFLAGS; do
18117           case $ld_flag in
18118           *-brtl*)
18119             aix_use_runtimelinking=yes
18120             break
18121             ;;
18122           esac
18123         done
18124         ;;
18125       esac
18126
18127       exp_sym_flag='-bexport'
18128       no_entry_flag='-bnoentry'
18129     fi
18130
18131     # When large executables or shared objects are built, AIX ld can
18132     # have problems creating the table of contents.  If linking a library
18133     # or program results in "error TOC overflow" add -mminimal-toc to
18134     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18135     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18136
18137     archive_cmds_CXX=''
18138     hardcode_direct_CXX=yes
18139     hardcode_libdir_separator_CXX=':'
18140     link_all_deplibs_CXX=yes
18141
18142     if test "$GXX" = yes; then
18143       case $host_os in aix4.[012]|aix4.[012].*)
18144       # We only want to do this on AIX 4.2 and lower, the check
18145       # below for broken collect2 doesn't work under 4.3+
18146         collect2name=`${CC} -print-prog-name=collect2`
18147         if test -f "$collect2name" && \
18148            strings "$collect2name" | grep resolve_lib_name >/dev/null
18149         then
18150           # We have reworked collect2
18151           hardcode_direct_CXX=yes
18152         else
18153           # We have old collect2
18154           hardcode_direct_CXX=unsupported
18155           # It fails to find uninstalled libraries when the uninstalled
18156           # path is not listed in the libpath.  Setting hardcode_minus_L
18157           # to unsupported forces relinking
18158           hardcode_minus_L_CXX=yes
18159           hardcode_libdir_flag_spec_CXX='-L$libdir'
18160           hardcode_libdir_separator_CXX=
18161         fi
18162         ;;
18163       esac
18164       shared_flag='-shared'
18165       if test "$aix_use_runtimelinking" = yes; then
18166         shared_flag="$shared_flag "'${wl}-G'
18167       fi
18168     else
18169       # not using gcc
18170       if test "$host_cpu" = ia64; then
18171         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18172         # chokes on -Wl,-G. The following line is correct:
18173         shared_flag='-G'
18174       else
18175         if test "$aix_use_runtimelinking" = yes; then
18176           shared_flag='${wl}-G'
18177         else
18178           shared_flag='${wl}-bM:SRE'
18179         fi
18180       fi
18181     fi
18182
18183     # It seems that -bexpall does not export symbols beginning with
18184     # underscore (_), so it is better to generate a list of symbols to export.
18185     always_export_symbols_CXX=yes
18186     if test "$aix_use_runtimelinking" = yes; then
18187       # Warning - without using the other runtime loading flags (-brtl),
18188       # -berok will link without error, but may produce a broken library.
18189       allow_undefined_flag_CXX='-berok'
18190       # Determine the default libpath from the value encoded in an empty executable.
18191       cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h.  */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h.  */
18197
18198 int
18199 main ()
18200 {
18201
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
18208 case "(($ac_try" in
18209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210   *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213   (eval "$ac_link") 2>conftest.er1
18214   ac_status=$?
18215   grep -v '^ *+' conftest.er1 >conftest.err
18216   rm -f conftest.er1
18217   cat conftest.err >&5
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } &&
18220          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18221   { (case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_try") 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); }; } &&
18230          { ac_try='test -s conftest$ac_exeext'
18231   { (case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236   (eval "$ac_try") 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; }; then
18240
18241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18242 }'`
18243 # Check for a 64-bit object if we didn't find anything.
18244 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; }
18245 }'`; fi
18246 else
18247   echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18249
18250
18251 fi
18252
18253 rm -f core conftest.err conftest.$ac_objext \
18254       conftest$ac_exeext conftest.$ac_ext
18255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18256
18257       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18258
18259       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"
18260      else
18261       if test "$host_cpu" = ia64; then
18262         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18263         allow_undefined_flag_CXX="-z nodefs"
18264         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"
18265       else
18266         # Determine the default libpath from the value encoded in an empty executable.
18267         cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273
18274 int
18275 main ()
18276 {
18277
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (ac_try="$ac_link"
18284 case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_link") 2>conftest.er1
18290   ac_status=$?
18291   grep -v '^ *+' conftest.er1 >conftest.err
18292   rm -f conftest.er1
18293   cat conftest.err >&5
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); } &&
18296          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18297   { (case "(($ac_try" in
18298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299   *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302   (eval "$ac_try") 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; } &&
18306          { ac_try='test -s conftest$ac_exeext'
18307   { (case "(($ac_try" in
18308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309   *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312   (eval "$ac_try") 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; }; then
18316
18317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18318 }'`
18319 # Check for a 64-bit object if we didn't find anything.
18320 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; }
18321 }'`; fi
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326
18327 fi
18328
18329 rm -f core conftest.err conftest.$ac_objext \
18330       conftest$ac_exeext conftest.$ac_ext
18331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18332
18333         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18334         # Warning - without using the other run time loading flags,
18335         # -berok will link without error, but may produce a broken library.
18336         no_undefined_flag_CXX=' ${wl}-bernotok'
18337         allow_undefined_flag_CXX=' ${wl}-berok'
18338         # Exported symbols can be pulled into shared objects from archives
18339         whole_archive_flag_spec_CXX='$convenience'
18340         archive_cmds_need_lc_CXX=yes
18341         # This is similar to how AIX traditionally builds its shared libraries.
18342         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'
18343       fi
18344     fi
18345     ;;
18346
18347   beos*)
18348     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18349       allow_undefined_flag_CXX=unsupported
18350       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18351       # support --undefined.  This deserves some investigation.  FIXME
18352       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353     else
18354       ld_shlibs_CXX=no
18355     fi
18356     ;;
18357
18358   chorus*)
18359     case $cc_basename in
18360       *)
18361         # FIXME: insert proper C++ library support
18362         ld_shlibs_CXX=no
18363         ;;
18364     esac
18365     ;;
18366
18367   cygwin* | mingw* | pw32*)
18368     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18369     # as there is no search path for DLLs.
18370     hardcode_libdir_flag_spec_CXX='-L$libdir'
18371     allow_undefined_flag_CXX=unsupported
18372     always_export_symbols_CXX=no
18373     enable_shared_with_static_runtimes_CXX=yes
18374
18375     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18376       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'
18377       # If the export-symbols file already is a .def file (1st line
18378       # is EXPORTS), use it as is; otherwise, prepend...
18379       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18380         cp $export_symbols $output_objdir/$soname.def;
18381       else
18382         echo EXPORTS > $output_objdir/$soname.def;
18383         cat $export_symbols >> $output_objdir/$soname.def;
18384       fi~
18385       $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'
18386     else
18387       ld_shlibs_CXX=no
18388     fi
18389   ;;
18390       darwin* | rhapsody*)
18391         case $host_os in
18392         rhapsody* | darwin1.[012])
18393          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18394          ;;
18395        *) # Darwin 1.3 on
18396          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18397            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18398          else
18399            case ${MACOSX_DEPLOYMENT_TARGET} in
18400              10.[012])
18401                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18402                ;;
18403              10.*)
18404                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18405                ;;
18406            esac
18407          fi
18408          ;;
18409         esac
18410       archive_cmds_need_lc_CXX=no
18411       hardcode_direct_CXX=no
18412       hardcode_automatic_CXX=yes
18413       hardcode_shlibpath_var_CXX=unsupported
18414       whole_archive_flag_spec_CXX=''
18415       link_all_deplibs_CXX=yes
18416
18417     if test "$GXX" = yes ; then
18418       lt_int_apple_cc_single_mod=no
18419       output_verbose_link_cmd='echo'
18420       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18421        lt_int_apple_cc_single_mod=yes
18422       fi
18423       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18424        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18425       else
18426           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'
18427         fi
18428         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18429         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18430           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18431             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}'
18432           else
18433             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}'
18434           fi
18435             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}'
18436       else
18437       case $cc_basename in
18438         xlc*)
18439          output_verbose_link_cmd='echo'
18440           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'
18441           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18442           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18443           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}'
18444           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}'
18445           ;;
18446        *)
18447          ld_shlibs_CXX=no
18448           ;;
18449       esac
18450       fi
18451         ;;
18452
18453   dgux*)
18454     case $cc_basename in
18455       ec++*)
18456         # FIXME: insert proper C++ library support
18457         ld_shlibs_CXX=no
18458         ;;
18459       ghcx*)
18460         # Green Hills C++ Compiler
18461         # FIXME: insert proper C++ library support
18462         ld_shlibs_CXX=no
18463         ;;
18464       *)
18465         # FIXME: insert proper C++ library support
18466         ld_shlibs_CXX=no
18467         ;;
18468     esac
18469     ;;
18470   freebsd[12]*)
18471     # C++ shared libraries reported to be fairly broken before switch to ELF
18472     ld_shlibs_CXX=no
18473     ;;
18474   freebsd-elf*)
18475     archive_cmds_need_lc_CXX=no
18476     ;;
18477   freebsd* | kfreebsd*-gnu | dragonfly*)
18478     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18479     # conventions
18480     ld_shlibs_CXX=yes
18481     ;;
18482   gnu*)
18483     ;;
18484   hpux9*)
18485     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18486     hardcode_libdir_separator_CXX=:
18487     export_dynamic_flag_spec_CXX='${wl}-E'
18488     hardcode_direct_CXX=yes
18489     hardcode_minus_L_CXX=yes # Not in the search PATH,
18490                                 # but as the default
18491                                 # location of the library.
18492
18493     case $cc_basename in
18494     CC*)
18495       # FIXME: insert proper C++ library support
18496       ld_shlibs_CXX=no
18497       ;;
18498     aCC*)
18499       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'
18500       # Commands to make compiler produce verbose output that lists
18501       # what "hidden" libraries, object files and flags are used when
18502       # linking a shared library.
18503       #
18504       # There doesn't appear to be a way to prevent this compiler from
18505       # explicitly linking system object files so we need to strip them
18506       # from the output so that they don't get included in the library
18507       # dependencies.
18508       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'
18509       ;;
18510     *)
18511       if test "$GXX" = yes; then
18512         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'
18513       else
18514         # FIXME: insert proper C++ library support
18515         ld_shlibs_CXX=no
18516       fi
18517       ;;
18518     esac
18519     ;;
18520   hpux10*|hpux11*)
18521     if test $with_gnu_ld = no; then
18522       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18523       hardcode_libdir_separator_CXX=:
18524
18525       case $host_cpu in
18526       hppa*64*|ia64*)
18527         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18528         ;;
18529       *)
18530         export_dynamic_flag_spec_CXX='${wl}-E'
18531         ;;
18532       esac
18533     fi
18534     case $host_cpu in
18535     hppa*64*|ia64*)
18536       hardcode_direct_CXX=no
18537       hardcode_shlibpath_var_CXX=no
18538       ;;
18539     *)
18540       hardcode_direct_CXX=yes
18541       hardcode_minus_L_CXX=yes # Not in the search PATH,
18542                                               # but as the default
18543                                               # location of the library.
18544       ;;
18545     esac
18546
18547     case $cc_basename in
18548       CC*)
18549         # FIXME: insert proper C++ library support
18550         ld_shlibs_CXX=no
18551         ;;
18552       aCC*)
18553         case $host_cpu in
18554         hppa*64*)
18555           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18556           ;;
18557         ia64*)
18558           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18559           ;;
18560         *)
18561           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18562           ;;
18563         esac
18564         # Commands to make compiler produce verbose output that lists
18565         # what "hidden" libraries, object files and flags are used when
18566         # linking a shared library.
18567         #
18568         # There doesn't appear to be a way to prevent this compiler from
18569         # explicitly linking system object files so we need to strip them
18570         # from the output so that they don't get included in the library
18571         # dependencies.
18572         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'
18573         ;;
18574       *)
18575         if test "$GXX" = yes; then
18576           if test $with_gnu_ld = no; then
18577             case $host_cpu in
18578             hppa*64*)
18579               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18580               ;;
18581             ia64*)
18582               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18583               ;;
18584             *)
18585               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'
18586               ;;
18587             esac
18588           fi
18589         else
18590           # FIXME: insert proper C++ library support
18591           ld_shlibs_CXX=no
18592         fi
18593         ;;
18594     esac
18595     ;;
18596   interix3*)
18597     hardcode_direct_CXX=no
18598     hardcode_shlibpath_var_CXX=no
18599     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18600     export_dynamic_flag_spec_CXX='${wl}-E'
18601     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18602     # Instead, shared libraries are loaded at an image base (0x10000000 by
18603     # default) and relocated if they conflict, which is a slow very memory
18604     # consuming and fragmenting process.  To avoid this, we pick a random,
18605     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18606     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18607     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'
18608     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'
18609     ;;
18610   irix5* | irix6*)
18611     case $cc_basename in
18612       CC*)
18613         # SGI C++
18614         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'
18615
18616         # Archives containing C++ object files must be created using
18617         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18618         # necessary to make sure instantiated templates are included
18619         # in the archive.
18620         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18621         ;;
18622       *)
18623         if test "$GXX" = yes; then
18624           if test "$with_gnu_ld" = no; then
18625             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'
18626           else
18627             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'
18628           fi
18629         fi
18630         link_all_deplibs_CXX=yes
18631         ;;
18632     esac
18633     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18634     hardcode_libdir_separator_CXX=:
18635     ;;
18636   linux*)
18637     case $cc_basename in
18638       KCC*)
18639         # Kuck and Associates, Inc. (KAI) C++ Compiler
18640
18641         # KCC will only create a shared library if the output file
18642         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18643         # to its proper name (with version) after linking.
18644         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'
18645         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'
18646         # Commands to make compiler produce verbose output that lists
18647         # what "hidden" libraries, object files and flags are used when
18648         # linking a shared library.
18649         #
18650         # There doesn't appear to be a way to prevent this compiler from
18651         # explicitly linking system object files so we need to strip them
18652         # from the output so that they don't get included in the library
18653         # dependencies.
18654         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'
18655
18656         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18657         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18658
18659         # Archives containing C++ object files must be created using
18660         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18661         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18662         ;;
18663       icpc*)
18664         # Intel C++
18665         with_gnu_ld=yes
18666         # version 8.0 and above of icpc choke on multiply defined symbols
18667         # if we add $predep_objects and $postdep_objects, however 7.1 and
18668         # earlier do not add the objects themselves.
18669         case `$CC -V 2>&1` in
18670         *"Version 7."*)
18671           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18672           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'
18673           ;;
18674         *)  # Version 8.0 or newer
18675           tmp_idyn=
18676           case $host_cpu in
18677             ia64*) tmp_idyn=' -i_dynamic';;
18678           esac
18679           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18680           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'
18681           ;;
18682         esac
18683         archive_cmds_need_lc_CXX=no
18684         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18685         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18686         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18687         ;;
18688       pgCC*)
18689         # Portland Group C++ compiler
18690         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18691         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'
18692
18693         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18694         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18695         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'
18696         ;;
18697       cxx*)
18698         # Compaq C++
18699         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18700         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'
18701
18702         runpath_var=LD_RUN_PATH
18703         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18704         hardcode_libdir_separator_CXX=:
18705
18706         # Commands to make compiler produce verbose output that lists
18707         # what "hidden" libraries, object files and flags are used when
18708         # linking a shared library.
18709         #
18710         # There doesn't appear to be a way to prevent this compiler from
18711         # explicitly linking system object files so we need to strip them
18712         # from the output so that they don't get included in the library
18713         # dependencies.
18714         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'
18715         ;;
18716     esac
18717     ;;
18718   lynxos*)
18719     # FIXME: insert proper C++ library support
18720     ld_shlibs_CXX=no
18721     ;;
18722   m88k*)
18723     # FIXME: insert proper C++ library support
18724     ld_shlibs_CXX=no
18725     ;;
18726   mvs*)
18727     case $cc_basename in
18728       cxx*)
18729         # FIXME: insert proper C++ library support
18730         ld_shlibs_CXX=no
18731         ;;
18732       *)
18733         # FIXME: insert proper C++ library support
18734         ld_shlibs_CXX=no
18735         ;;
18736     esac
18737     ;;
18738   netbsd*)
18739     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18740       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18741       wlarc=
18742       hardcode_libdir_flag_spec_CXX='-R$libdir'
18743       hardcode_direct_CXX=yes
18744       hardcode_shlibpath_var_CXX=no
18745     fi
18746     # Workaround some broken pre-1.5 toolchains
18747     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18748     ;;
18749   openbsd2*)
18750     # C++ shared libraries are fairly broken
18751     ld_shlibs_CXX=no
18752     ;;
18753   openbsd*)
18754     hardcode_direct_CXX=yes
18755     hardcode_shlibpath_var_CXX=no
18756     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18757     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18758     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18759       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18760       export_dynamic_flag_spec_CXX='${wl}-E'
18761       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18762     fi
18763     output_verbose_link_cmd='echo'
18764     ;;
18765   osf3*)
18766     case $cc_basename in
18767       KCC*)
18768         # Kuck and Associates, Inc. (KAI) C++ Compiler
18769
18770         # KCC will only create a shared library if the output file
18771         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18772         # to its proper name (with version) after linking.
18773         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'
18774
18775         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18776         hardcode_libdir_separator_CXX=:
18777
18778         # Archives containing C++ object files must be created using
18779         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18780         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18781
18782         ;;
18783       RCC*)
18784         # Rational C++ 2.4.1
18785         # FIXME: insert proper C++ library support
18786         ld_shlibs_CXX=no
18787         ;;
18788       cxx*)
18789         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18790         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'
18791
18792         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18793         hardcode_libdir_separator_CXX=:
18794
18795         # Commands to make compiler produce verbose output that lists
18796         # what "hidden" libraries, object files and flags are used when
18797         # linking a shared library.
18798         #
18799         # There doesn't appear to be a way to prevent this compiler from
18800         # explicitly linking system object files so we need to strip them
18801         # from the output so that they don't get included in the library
18802         # dependencies.
18803         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'
18804         ;;
18805       *)
18806         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18807           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18808           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'
18809
18810           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18811           hardcode_libdir_separator_CXX=:
18812
18813           # Commands to make compiler produce verbose output that lists
18814           # what "hidden" libraries, object files and flags are used when
18815           # linking a shared library.
18816           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18817
18818         else
18819           # FIXME: insert proper C++ library support
18820           ld_shlibs_CXX=no
18821         fi
18822         ;;
18823     esac
18824     ;;
18825   osf4* | osf5*)
18826     case $cc_basename in
18827       KCC*)
18828         # Kuck and Associates, Inc. (KAI) C++ Compiler
18829
18830         # KCC will only create a shared library if the output file
18831         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18832         # to its proper name (with version) after linking.
18833         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'
18834
18835         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18836         hardcode_libdir_separator_CXX=:
18837
18838         # Archives containing C++ object files must be created using
18839         # the KAI C++ compiler.
18840         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18841         ;;
18842       RCC*)
18843         # Rational C++ 2.4.1
18844         # FIXME: insert proper C++ library support
18845         ld_shlibs_CXX=no
18846         ;;
18847       cxx*)
18848         allow_undefined_flag_CXX=' -expect_unresolved \*'
18849         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'
18850         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18851           echo "-hidden">> $lib.exp~
18852           $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~
18853           $rm $lib.exp'
18854
18855         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18856         hardcode_libdir_separator_CXX=:
18857
18858         # Commands to make compiler produce verbose output that lists
18859         # what "hidden" libraries, object files and flags are used when
18860         # linking a shared library.
18861         #
18862         # There doesn't appear to be a way to prevent this compiler from
18863         # explicitly linking system object files so we need to strip them
18864         # from the output so that they don't get included in the library
18865         # dependencies.
18866         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'
18867         ;;
18868       *)
18869         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18870           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18871          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'
18872
18873           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18874           hardcode_libdir_separator_CXX=:
18875
18876           # Commands to make compiler produce verbose output that lists
18877           # what "hidden" libraries, object files and flags are used when
18878           # linking a shared library.
18879           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18880
18881         else
18882           # FIXME: insert proper C++ library support
18883           ld_shlibs_CXX=no
18884         fi
18885         ;;
18886     esac
18887     ;;
18888   psos*)
18889     # FIXME: insert proper C++ library support
18890     ld_shlibs_CXX=no
18891     ;;
18892   sunos4*)
18893     case $cc_basename in
18894       CC*)
18895         # Sun C++ 4.x
18896         # FIXME: insert proper C++ library support
18897         ld_shlibs_CXX=no
18898         ;;
18899       lcc*)
18900         # Lucid
18901         # FIXME: insert proper C++ library support
18902         ld_shlibs_CXX=no
18903         ;;
18904       *)
18905         # FIXME: insert proper C++ library support
18906         ld_shlibs_CXX=no
18907         ;;
18908     esac
18909     ;;
18910   solaris*)
18911     case $cc_basename in
18912       CC*)
18913         # Sun C++ 4.2, 5.x and Centerline C++
18914         archive_cmds_need_lc_CXX=yes
18915         no_undefined_flag_CXX=' -zdefs'
18916         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18917         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18918         $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'
18919
18920         hardcode_libdir_flag_spec_CXX='-R$libdir'
18921         hardcode_shlibpath_var_CXX=no
18922         case $host_os in
18923           solaris2.[0-5] | solaris2.[0-5].*) ;;
18924           *)
18925             # The C++ compiler is used as linker so we must use $wl
18926             # flag to pass the commands to the underlying system
18927             # linker. We must also pass each convience library through
18928             # to the system linker between allextract/defaultextract.
18929             # The C++ compiler will combine linker options so we
18930             # cannot just pass the convience library names through
18931             # without $wl.
18932             # Supported since Solaris 2.6 (maybe 2.5.1?)
18933             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'
18934             ;;
18935         esac
18936         link_all_deplibs_CXX=yes
18937
18938         output_verbose_link_cmd='echo'
18939
18940         # Archives containing C++ object files must be created using
18941         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18942         # necessary to make sure instantiated templates are included
18943         # in the archive.
18944         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18945         ;;
18946       gcx*)
18947         # Green Hills C++ Compiler
18948         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18949
18950         # The C++ compiler must be used to create the archive.
18951         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18952         ;;
18953       *)
18954         # GNU C++ compiler with Solaris linker
18955         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18956           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18957           if $CC --version | grep -v '^2\.7' > /dev/null; then
18958             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18959             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18960                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18961
18962             # Commands to make compiler produce verbose output that lists
18963             # what "hidden" libraries, object files and flags are used when
18964             # linking a shared library.
18965             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18966           else
18967             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18968             # platform.
18969             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18970             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18971                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18972
18973             # Commands to make compiler produce verbose output that lists
18974             # what "hidden" libraries, object files and flags are used when
18975             # linking a shared library.
18976             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18977           fi
18978
18979           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18980         fi
18981         ;;
18982     esac
18983     ;;
18984   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18985     no_undefined_flag_CXX='${wl}-z,text'
18986     archive_cmds_need_lc_CXX=no
18987     hardcode_shlibpath_var_CXX=no
18988     runpath_var='LD_RUN_PATH'
18989
18990     case $cc_basename in
18991       CC*)
18992         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994         ;;
18995       *)
18996         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18997         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18998         ;;
18999     esac
19000     ;;
19001   sysv5* | sco3.2v5* | sco5v6*)
19002     # Note: We can NOT use -z defs as we might desire, because we do not
19003     # link with -lc, and that would cause any symbols used from libc to
19004     # always be unresolved, which means just about no library would
19005     # ever link correctly.  If we're not using GNU ld we use -z text
19006     # though, which does catch some bad symbols but isn't as heavy-handed
19007     # as -z defs.
19008     # For security reasons, it is highly recommended that you always
19009     # use absolute paths for naming shared libraries, and exclude the
19010     # DT_RUNPATH tag from executables and libraries.  But doing so
19011     # requires that you compile everything twice, which is a pain.
19012     # So that behaviour is only enabled if SCOABSPATH is set to a
19013     # non-empty value in the environment.  Most likely only useful for
19014     # creating official distributions of packages.
19015     # This is a hack until libtool officially supports absolute path
19016     # names for shared libraries.
19017     no_undefined_flag_CXX='${wl}-z,text'
19018     allow_undefined_flag_CXX='${wl}-z,nodefs'
19019     archive_cmds_need_lc_CXX=no
19020     hardcode_shlibpath_var_CXX=no
19021     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19022     hardcode_libdir_separator_CXX=':'
19023     link_all_deplibs_CXX=yes
19024     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19025     runpath_var='LD_RUN_PATH'
19026
19027     case $cc_basename in
19028       CC*)
19029         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031         ;;
19032       *)
19033         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19034         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19035         ;;
19036     esac
19037     ;;
19038   tandem*)
19039     case $cc_basename in
19040       NCC*)
19041         # NonStop-UX NCC 3.20
19042         # FIXME: insert proper C++ library support
19043         ld_shlibs_CXX=no
19044         ;;
19045       *)
19046         # FIXME: insert proper C++ library support
19047         ld_shlibs_CXX=no
19048         ;;
19049     esac
19050     ;;
19051   vxworks*)
19052     # FIXME: insert proper C++ library support
19053     ld_shlibs_CXX=no
19054     ;;
19055   *)
19056     # FIXME: insert proper C++ library support
19057     ld_shlibs_CXX=no
19058     ;;
19059 esac
19060 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19061 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19062 test "$ld_shlibs_CXX" = no && can_build_shared=no
19063
19064 GCC_CXX="$GXX"
19065 LD_CXX="$LD"
19066
19067
19068 cat > conftest.$ac_ext <<EOF
19069 class Foo
19070 {
19071 public:
19072   Foo (void) { a = 0; }
19073 private:
19074   int a;
19075 };
19076 EOF
19077
19078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19079   (eval $ac_compile) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; then
19083   # Parse the compiler output and extract the necessary
19084   # objects, libraries and library flags.
19085
19086   # Sentinel used to keep track of whether or not we are before
19087   # the conftest object file.
19088   pre_test_object_deps_done=no
19089
19090   # The `*' in the case matches for architectures that use `case' in
19091   # $output_verbose_cmd can trigger glob expansion during the loop
19092   # eval without this substitution.
19093   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19094
19095   for p in `eval $output_verbose_link_cmd`; do
19096     case $p in
19097
19098     -L* | -R* | -l*)
19099        # Some compilers place space between "-{L,R}" and the path.
19100        # Remove the space.
19101        if test $p = "-L" \
19102           || test $p = "-R"; then
19103          prev=$p
19104          continue
19105        else
19106          prev=
19107        fi
19108
19109        if test "$pre_test_object_deps_done" = no; then
19110          case $p in
19111          -L* | -R*)
19112            # Internal compiler library paths should come after those
19113            # provided the user.  The postdeps already come after the
19114            # user supplied libs so there is no need to process them.
19115            if test -z "$compiler_lib_search_path_CXX"; then
19116              compiler_lib_search_path_CXX="${prev}${p}"
19117            else
19118              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19119            fi
19120            ;;
19121          # The "-l" case would never come before the object being
19122          # linked, so don't bother handling this case.
19123          esac
19124        else
19125          if test -z "$postdeps_CXX"; then
19126            postdeps_CXX="${prev}${p}"
19127          else
19128            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19129          fi
19130        fi
19131        ;;
19132
19133     *.$objext)
19134        # This assumes that the test object file only shows up
19135        # once in the compiler output.
19136        if test "$p" = "conftest.$objext"; then
19137          pre_test_object_deps_done=yes
19138          continue
19139        fi
19140
19141        if test "$pre_test_object_deps_done" = no; then
19142          if test -z "$predep_objects_CXX"; then
19143            predep_objects_CXX="$p"
19144          else
19145            predep_objects_CXX="$predep_objects_CXX $p"
19146          fi
19147        else
19148          if test -z "$postdep_objects_CXX"; then
19149            postdep_objects_CXX="$p"
19150          else
19151            postdep_objects_CXX="$postdep_objects_CXX $p"
19152          fi
19153        fi
19154        ;;
19155
19156     *) ;; # Ignore the rest.
19157
19158     esac
19159   done
19160
19161   # Clean up.
19162   rm -f a.out a.exe
19163 else
19164   echo "libtool.m4: error: problem compiling CXX test program"
19165 fi
19166
19167 $rm -f confest.$objext
19168
19169 # PORTME: override above test on systems where it is broken
19170 case $host_os in
19171 interix3*)
19172   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19173   # hack all around it, let's just trust "g++" to DTRT.
19174   predep_objects_CXX=
19175   postdep_objects_CXX=
19176   postdeps_CXX=
19177   ;;
19178
19179 solaris*)
19180   case $cc_basename in
19181   CC*)
19182     # Adding this requires a known-good setup of shared libraries for
19183     # Sun compiler versions before 5.6, else PIC objects from an old
19184     # archive will be linked into the output, leading to subtle bugs.
19185     postdeps_CXX='-lCstd -lCrun'
19186     ;;
19187   esac
19188   ;;
19189 esac
19190
19191
19192 case " $postdeps_CXX " in
19193 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19194 esac
19195
19196 lt_prog_compiler_wl_CXX=
19197 lt_prog_compiler_pic_CXX=
19198 lt_prog_compiler_static_CXX=
19199
19200 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19201 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19202
19203   # C++ specific cases for pic, static, wl, etc.
19204   if test "$GXX" = yes; then
19205     lt_prog_compiler_wl_CXX='-Wl,'
19206     lt_prog_compiler_static_CXX='-static'
19207
19208     case $host_os in
19209     aix*)
19210       # All AIX code is PIC.
19211       if test "$host_cpu" = ia64; then
19212         # AIX 5 now supports IA64 processor
19213         lt_prog_compiler_static_CXX='-Bstatic'
19214       fi
19215       ;;
19216     amigaos*)
19217       # FIXME: we need at least 68020 code to build shared libraries, but
19218       # adding the `-m68020' flag to GCC prevents building anything better,
19219       # like `-m68040'.
19220       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19221       ;;
19222     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19223       # PIC is the default for these OSes.
19224       ;;
19225     mingw* | os2* | pw32*)
19226       # This hack is so that the source file can tell whether it is being
19227       # built for inclusion in a dll (and should export symbols for example).
19228       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19229       ;;
19230     darwin* | rhapsody*)
19231       # PIC is the default on this platform
19232       # Common symbols not allowed in MH_DYLIB files
19233       lt_prog_compiler_pic_CXX='-fno-common'
19234       ;;
19235     *djgpp*)
19236       # DJGPP does not support shared libraries at all
19237       lt_prog_compiler_pic_CXX=
19238       ;;
19239     interix3*)
19240       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19241       # Instead, we relocate shared libraries at runtime.
19242       ;;
19243     sysv4*MP*)
19244       if test -d /usr/nec; then
19245         lt_prog_compiler_pic_CXX=-Kconform_pic
19246       fi
19247       ;;
19248     hpux*)
19249       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19250       # not for PA HP-UX.
19251       case $host_cpu in
19252       hppa*64*|ia64*)
19253         ;;
19254       *)
19255         lt_prog_compiler_pic_CXX='-fPIC'
19256         ;;
19257       esac
19258       ;;
19259     *)
19260       lt_prog_compiler_pic_CXX='-fPIC'
19261       ;;
19262     esac
19263   else
19264     case $host_os in
19265       aix4* | aix5*)
19266         # All AIX code is PIC.
19267         if test "$host_cpu" = ia64; then
19268           # AIX 5 now supports IA64 processor
19269           lt_prog_compiler_static_CXX='-Bstatic'
19270         else
19271           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19272         fi
19273         ;;
19274       chorus*)
19275         case $cc_basename in
19276         cxch68*)
19277           # Green Hills C++ Compiler
19278           # _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"
19279           ;;
19280         esac
19281         ;;
19282        darwin*)
19283          # PIC is the default on this platform
19284          # Common symbols not allowed in MH_DYLIB files
19285          case $cc_basename in
19286            xlc*)
19287            lt_prog_compiler_pic_CXX='-qnocommon'
19288            lt_prog_compiler_wl_CXX='-Wl,'
19289            ;;
19290          esac
19291        ;;
19292       dgux*)
19293         case $cc_basename in
19294           ec++*)
19295             lt_prog_compiler_pic_CXX='-KPIC'
19296             ;;
19297           ghcx*)
19298             # Green Hills C++ Compiler
19299             lt_prog_compiler_pic_CXX='-pic'
19300             ;;
19301           *)
19302             ;;
19303         esac
19304         ;;
19305       freebsd* | kfreebsd*-gnu | dragonfly*)
19306         # FreeBSD uses GNU C++
19307         ;;
19308       hpux9* | hpux10* | hpux11*)
19309         case $cc_basename in
19310           CC*)
19311             lt_prog_compiler_wl_CXX='-Wl,'
19312             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19313             if test "$host_cpu" != ia64; then
19314               lt_prog_compiler_pic_CXX='+Z'
19315             fi
19316             ;;
19317           aCC*)
19318             lt_prog_compiler_wl_CXX='-Wl,'
19319             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19320             case $host_cpu in
19321             hppa*64*|ia64*)
19322               # +Z the default
19323               ;;
19324             *)
19325               lt_prog_compiler_pic_CXX='+Z'
19326               ;;
19327             esac
19328             ;;
19329           *)
19330             ;;
19331         esac
19332         ;;
19333       interix*)
19334         # This is c89, which is MS Visual C++ (no shared libs)
19335         # Anyone wants to do a port?
19336         ;;
19337       irix5* | irix6* | nonstopux*)
19338         case $cc_basename in
19339           CC*)
19340             lt_prog_compiler_wl_CXX='-Wl,'
19341             lt_prog_compiler_static_CXX='-non_shared'
19342             # CC pic flag -KPIC is the default.
19343             ;;
19344           *)
19345             ;;
19346         esac
19347         ;;
19348       linux*)
19349         case $cc_basename in
19350           KCC*)
19351             # KAI C++ Compiler
19352             lt_prog_compiler_wl_CXX='--backend -Wl,'
19353             lt_prog_compiler_pic_CXX='-fPIC'
19354             ;;
19355           icpc* | ecpc*)
19356             # Intel C++
19357             lt_prog_compiler_wl_CXX='-Wl,'
19358             lt_prog_compiler_pic_CXX='-KPIC'
19359             lt_prog_compiler_static_CXX='-static'
19360             ;;
19361           pgCC*)
19362             # Portland Group C++ compiler.
19363             lt_prog_compiler_wl_CXX='-Wl,'
19364             lt_prog_compiler_pic_CXX='-fpic'
19365             lt_prog_compiler_static_CXX='-Bstatic'
19366             ;;
19367           cxx*)
19368             # Compaq C++
19369             # Make sure the PIC flag is empty.  It appears that all Alpha
19370             # Linux and Compaq Tru64 Unix objects are PIC.
19371             lt_prog_compiler_pic_CXX=
19372             lt_prog_compiler_static_CXX='-non_shared'
19373             ;;
19374           *)
19375             ;;
19376         esac
19377         ;;
19378       lynxos*)
19379         ;;
19380       m88k*)
19381         ;;
19382       mvs*)
19383         case $cc_basename in
19384           cxx*)
19385             lt_prog_compiler_pic_CXX='-W c,exportall'
19386             ;;
19387           *)
19388             ;;
19389         esac
19390         ;;
19391       netbsd*)
19392         ;;
19393       osf3* | osf4* | osf5*)
19394         case $cc_basename in
19395           KCC*)
19396             lt_prog_compiler_wl_CXX='--backend -Wl,'
19397             ;;
19398           RCC*)
19399             # Rational C++ 2.4.1
19400             lt_prog_compiler_pic_CXX='-pic'
19401             ;;
19402           cxx*)
19403             # Digital/Compaq C++
19404             lt_prog_compiler_wl_CXX='-Wl,'
19405             # Make sure the PIC flag is empty.  It appears that all Alpha
19406             # Linux and Compaq Tru64 Unix objects are PIC.
19407             lt_prog_compiler_pic_CXX=
19408             lt_prog_compiler_static_CXX='-non_shared'
19409             ;;
19410           *)
19411             ;;
19412         esac
19413         ;;
19414       psos*)
19415         ;;
19416       solaris*)
19417         case $cc_basename in
19418           CC*)
19419             # Sun C++ 4.2, 5.x and Centerline C++
19420             lt_prog_compiler_pic_CXX='-KPIC'
19421             lt_prog_compiler_static_CXX='-Bstatic'
19422             lt_prog_compiler_wl_CXX='-Qoption ld '
19423             ;;
19424           gcx*)
19425             # Green Hills C++ Compiler
19426             lt_prog_compiler_pic_CXX='-PIC'
19427             ;;
19428           *)
19429             ;;
19430         esac
19431         ;;
19432       sunos4*)
19433         case $cc_basename in
19434           CC*)
19435             # Sun C++ 4.x
19436             lt_prog_compiler_pic_CXX='-pic'
19437             lt_prog_compiler_static_CXX='-Bstatic'
19438             ;;
19439           lcc*)
19440             # Lucid
19441             lt_prog_compiler_pic_CXX='-pic'
19442             ;;
19443           *)
19444             ;;
19445         esac
19446         ;;
19447       tandem*)
19448         case $cc_basename in
19449           NCC*)
19450             # NonStop-UX NCC 3.20
19451             lt_prog_compiler_pic_CXX='-KPIC'
19452             ;;
19453           *)
19454             ;;
19455         esac
19456         ;;
19457       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19458         case $cc_basename in
19459           CC*)
19460             lt_prog_compiler_wl_CXX='-Wl,'
19461             lt_prog_compiler_pic_CXX='-KPIC'
19462             lt_prog_compiler_static_CXX='-Bstatic'
19463             ;;
19464         esac
19465         ;;
19466       vxworks*)
19467         ;;
19468       *)
19469         lt_prog_compiler_can_build_shared_CXX=no
19470         ;;
19471     esac
19472   fi
19473
19474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19475 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19476
19477 #
19478 # Check to make sure the PIC flag actually works.
19479 #
19480 if test -n "$lt_prog_compiler_pic_CXX"; then
19481
19482 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19483 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19484 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   lt_prog_compiler_pic_works_CXX=no
19488   ac_outfile=conftest.$ac_objext
19489    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19490    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19491    # Insert the option either (1) after the last *FLAGS variable, or
19492    # (2) before a word containing "conftest.", or (3) at the end.
19493    # Note that $ac_compile itself does not contain backslashes and begins
19494    # with a dollar sign (not a hyphen), so the echo should work correctly.
19495    # The option is referenced via a variable to avoid confusing sed.
19496    lt_compile=`echo "$ac_compile" | $SED \
19497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19499    -e 's:$: $lt_compiler_flag:'`
19500    (eval echo "\"\$as_me:19500: $lt_compile\"" >&5)
19501    (eval "$lt_compile" 2>conftest.err)
19502    ac_status=$?
19503    cat conftest.err >&5
19504    echo "$as_me:19504: \$? = $ac_status" >&5
19505    if (exit $ac_status) && test -s "$ac_outfile"; then
19506      # The compiler can only warn and ignore the option if not recognized
19507      # So say no if there are warnings other than the usual output.
19508      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19509      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19510      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19511        lt_prog_compiler_pic_works_CXX=yes
19512      fi
19513    fi
19514    $rm conftest*
19515
19516 fi
19517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19518 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19519
19520 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19521     case $lt_prog_compiler_pic_CXX in
19522      "" | " "*) ;;
19523      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19524      esac
19525 else
19526     lt_prog_compiler_pic_CXX=
19527      lt_prog_compiler_can_build_shared_CXX=no
19528 fi
19529
19530 fi
19531 case $host_os in
19532   # For platforms which do not support PIC, -DPIC is meaningless:
19533   *djgpp*)
19534     lt_prog_compiler_pic_CXX=
19535     ;;
19536   *)
19537     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19538     ;;
19539 esac
19540
19541 #
19542 # Check to make sure the static flag actually works.
19543 #
19544 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19545 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19546 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19547 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   lt_prog_compiler_static_works_CXX=no
19551    save_LDFLAGS="$LDFLAGS"
19552    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19553    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19554    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19555      # The linker can only warn and ignore the option if not recognized
19556      # So say no if there are warnings
19557      if test -s conftest.err; then
19558        # Append any errors to the config.log.
19559        cat conftest.err 1>&5
19560        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19561        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19562        if diff conftest.exp conftest.er2 >/dev/null; then
19563          lt_prog_compiler_static_works_CXX=yes
19564        fi
19565      else
19566        lt_prog_compiler_static_works_CXX=yes
19567      fi
19568    fi
19569    $rm conftest*
19570    LDFLAGS="$save_LDFLAGS"
19571
19572 fi
19573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19574 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19575
19576 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19577     :
19578 else
19579     lt_prog_compiler_static_CXX=
19580 fi
19581
19582
19583 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19585 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   lt_cv_prog_compiler_c_o_CXX=no
19589    $rm -r conftest 2>/dev/null
19590    mkdir conftest
19591    cd conftest
19592    mkdir out
19593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19594
19595    lt_compiler_flag="-o out/conftest2.$ac_objext"
19596    # Insert the option either (1) after the last *FLAGS variable, or
19597    # (2) before a word containing "conftest.", or (3) at the end.
19598    # Note that $ac_compile itself does not contain backslashes and begins
19599    # with a dollar sign (not a hyphen), so the echo should work correctly.
19600    lt_compile=`echo "$ac_compile" | $SED \
19601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19603    -e 's:$: $lt_compiler_flag:'`
19604    (eval echo "\"\$as_me:19604: $lt_compile\"" >&5)
19605    (eval "$lt_compile" 2>out/conftest.err)
19606    ac_status=$?
19607    cat out/conftest.err >&5
19608    echo "$as_me:19608: \$? = $ac_status" >&5
19609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19610    then
19611      # The compiler can only warn and ignore the option if not recognized
19612      # So say no if there are warnings
19613      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19614      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19615      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19616        lt_cv_prog_compiler_c_o_CXX=yes
19617      fi
19618    fi
19619    chmod u+w . 2>&5
19620    $rm conftest*
19621    # SGI C++ compiler will create directory out/ii_files/ for
19622    # template instantiation
19623    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19624    $rm out/* && rmdir out
19625    cd ..
19626    rmdir conftest
19627    $rm conftest*
19628
19629 fi
19630 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19631 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19632
19633
19634 hard_links="nottested"
19635 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19636   # do not overwrite the value of need_locks provided by the user
19637   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19638 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19639   hard_links=yes
19640   $rm conftest*
19641   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642   touch conftest.a
19643   ln conftest.a conftest.b 2>&5 || hard_links=no
19644   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19645   { echo "$as_me:$LINENO: result: $hard_links" >&5
19646 echo "${ECHO_T}$hard_links" >&6; }
19647   if test "$hard_links" = no; then
19648     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19649 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19650     need_locks=warn
19651   fi
19652 else
19653   need_locks=no
19654 fi
19655
19656 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19657 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19658
19659   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19660   case $host_os in
19661   aix4* | aix5*)
19662     # If we're using GNU nm, then we don't want the "-C" option.
19663     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19664     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19665       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'
19666     else
19667       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'
19668     fi
19669     ;;
19670   pw32*)
19671     export_symbols_cmds_CXX="$ltdll_cmds"
19672   ;;
19673   cygwin* | mingw*)
19674     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'
19675   ;;
19676   *)
19677     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19678   ;;
19679   esac
19680
19681 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19682 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19683 test "$ld_shlibs_CXX" = no && can_build_shared=no
19684
19685 #
19686 # Do we need to explicitly link libc?
19687 #
19688 case "x$archive_cmds_need_lc_CXX" in
19689 x|xyes)
19690   # Assume -lc should be added
19691   archive_cmds_need_lc_CXX=yes
19692
19693   if test "$enable_shared" = yes && test "$GCC" = yes; then
19694     case $archive_cmds_CXX in
19695     *'~'*)
19696       # FIXME: we may have to deal with multi-command sequences.
19697       ;;
19698     '$CC '*)
19699       # Test whether the compiler implicitly links with -lc since on some
19700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19701       # to ld, don't add -lc before -lgcc.
19702       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19703 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19704       $rm conftest*
19705       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19706
19707       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708   (eval $ac_compile) 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } 2>conftest.err; then
19712         soname=conftest
19713         lib=conftest
19714         libobjs=conftest.$ac_objext
19715         deplibs=
19716         wl=$lt_prog_compiler_wl_CXX
19717         pic_flag=$lt_prog_compiler_pic_CXX
19718         compiler_flags=-v
19719         linker_flags=-v
19720         verstring=
19721         output_objdir=.
19722         libname=conftest
19723         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19724         allow_undefined_flag_CXX=
19725         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19726   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }
19730         then
19731           archive_cmds_need_lc_CXX=no
19732         else
19733           archive_cmds_need_lc_CXX=yes
19734         fi
19735         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19736       else
19737         cat conftest.err 1>&5
19738       fi
19739       $rm conftest*
19740       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19741 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19742       ;;
19743     esac
19744   fi
19745   ;;
19746 esac
19747
19748 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19749 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19750 library_names_spec=
19751 libname_spec='lib$name'
19752 soname_spec=
19753 shrext_cmds=".so"
19754 postinstall_cmds=
19755 postuninstall_cmds=
19756 finish_cmds=
19757 finish_eval=
19758 shlibpath_var=
19759 shlibpath_overrides_runpath=unknown
19760 version_type=none
19761 dynamic_linker="$host_os ld.so"
19762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19763 if test "$GCC" = yes; then
19764   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19765   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19766     # if the path contains ";" then we assume it to be the separator
19767     # otherwise default to the standard path separator (i.e. ":") - it is
19768     # assumed that no part of a normal pathname contains ";" but that should
19769     # okay in the real world where ";" in dirpaths is itself problematic.
19770     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19771   else
19772     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19773   fi
19774 else
19775   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19776 fi
19777 need_lib_prefix=unknown
19778 hardcode_into_libs=no
19779
19780 # when you set need_version to no, make sure it does not cause -set_version
19781 # flags to be left without arguments
19782 need_version=unknown
19783
19784 case $host_os in
19785 aix3*)
19786   version_type=linux
19787   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19788   shlibpath_var=LIBPATH
19789
19790   # AIX 3 has no versioning support, so we append a major version to the name.
19791   soname_spec='${libname}${release}${shared_ext}$major'
19792   ;;
19793
19794 aix4* | aix5*)
19795   version_type=linux
19796   need_lib_prefix=no
19797   need_version=no
19798   hardcode_into_libs=yes
19799   if test "$host_cpu" = ia64; then
19800     # AIX 5 supports IA64
19801     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19802     shlibpath_var=LD_LIBRARY_PATH
19803   else
19804     # With GCC up to 2.95.x, collect2 would create an import file
19805     # for dependence libraries.  The import file would start with
19806     # the line `#! .'.  This would cause the generated library to
19807     # depend on `.', always an invalid library.  This was fixed in
19808     # development snapshots of GCC prior to 3.0.
19809     case $host_os in
19810       aix4 | aix4.[01] | aix4.[01].*)
19811       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19812            echo ' yes '
19813            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19814         :
19815       else
19816         can_build_shared=no
19817       fi
19818       ;;
19819     esac
19820     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19821     # soname into executable. Probably we can add versioning support to
19822     # collect2, so additional links can be useful in future.
19823     if test "$aix_use_runtimelinking" = yes; then
19824       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19825       # instead of lib<name>.a to let people know that these are not
19826       # typical AIX shared libraries.
19827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19828     else
19829       # We preserve .a as extension for shared libraries through AIX4.2
19830       # and later when we are not doing run time linking.
19831       library_names_spec='${libname}${release}.a $libname.a'
19832       soname_spec='${libname}${release}${shared_ext}$major'
19833     fi
19834     shlibpath_var=LIBPATH
19835   fi
19836   ;;
19837
19838 amigaos*)
19839   library_names_spec='$libname.ixlibrary $libname.a'
19840   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19841   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'
19842   ;;
19843
19844 beos*)
19845   library_names_spec='${libname}${shared_ext}'
19846   dynamic_linker="$host_os ld.so"
19847   shlibpath_var=LIBRARY_PATH
19848   ;;
19849
19850 bsdi[45]*)
19851   version_type=linux
19852   need_version=no
19853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19854   soname_spec='${libname}${release}${shared_ext}$major'
19855   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19856   shlibpath_var=LD_LIBRARY_PATH
19857   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19858   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19859   # the default ld.so.conf also contains /usr/contrib/lib and
19860   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19861   # libtool to hard-code these into programs
19862   ;;
19863
19864 cygwin* | mingw* | pw32*)
19865   version_type=windows
19866   shrext_cmds=".dll"
19867   need_version=no
19868   need_lib_prefix=no
19869
19870   case $GCC,$host_os in
19871   yes,cygwin* | yes,mingw* | yes,pw32*)
19872     library_names_spec='$libname.dll.a'
19873     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19874     postinstall_cmds='base_file=`basename \${file}`~
19875       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19876       dldir=$destdir/`dirname \$dlpath`~
19877       test -d \$dldir || mkdir -p \$dldir~
19878       $install_prog $dir/$dlname \$dldir/$dlname~
19879       chmod a+x \$dldir/$dlname'
19880     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19881       dlpath=$dir/\$dldll~
19882        $rm \$dlpath'
19883     shlibpath_overrides_runpath=yes
19884
19885     case $host_os in
19886     cygwin*)
19887       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19888       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19889       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19890       ;;
19891     mingw*)
19892       # MinGW DLLs use traditional 'lib' prefix
19893       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19894       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19895       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19896         # It is most probably a Windows format PATH printed by
19897         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19898         # path with ; separators, and with drive letters. We can handle the
19899         # drive letters (cygwin fileutils understands them), so leave them,
19900         # especially as we might pass files found there to a mingw objdump,
19901         # which wouldn't understand a cygwinified path. Ahh.
19902         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19903       else
19904         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19905       fi
19906       ;;
19907     pw32*)
19908       # pw32 DLLs use 'pw' prefix rather than 'lib'
19909       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19910       ;;
19911     esac
19912     ;;
19913
19914   *)
19915     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19916     ;;
19917   esac
19918   dynamic_linker='Win32 ld.exe'
19919   # FIXME: first we should search . and the directory the executable is in
19920   shlibpath_var=PATH
19921   ;;
19922
19923 darwin* | rhapsody*)
19924   dynamic_linker="$host_os dyld"
19925   version_type=darwin
19926   need_lib_prefix=no
19927   need_version=no
19928   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19929   soname_spec='${libname}${release}${major}$shared_ext'
19930   shlibpath_overrides_runpath=yes
19931   shlibpath_var=DYLD_LIBRARY_PATH
19932   shrext_cmds='.dylib'
19933   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19934   if test "$GCC" = yes; then
19935     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"`
19936   else
19937     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19938   fi
19939   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19940   ;;
19941
19942 dgux*)
19943   version_type=linux
19944   need_lib_prefix=no
19945   need_version=no
19946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19947   soname_spec='${libname}${release}${shared_ext}$major'
19948   shlibpath_var=LD_LIBRARY_PATH
19949   ;;
19950
19951 freebsd1*)
19952   dynamic_linker=no
19953   ;;
19954
19955 kfreebsd*-gnu)
19956   version_type=linux
19957   need_lib_prefix=no
19958   need_version=no
19959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19960   soname_spec='${libname}${release}${shared_ext}$major'
19961   shlibpath_var=LD_LIBRARY_PATH
19962   shlibpath_overrides_runpath=no
19963   hardcode_into_libs=yes
19964   dynamic_linker='GNU ld.so'
19965   ;;
19966
19967 freebsd* | dragonfly*)
19968   # DragonFly does not have aout.  When/if they implement a new
19969   # versioning mechanism, adjust this.
19970   if test -x /usr/bin/objformat; then
19971     objformat=`/usr/bin/objformat`
19972   else
19973     case $host_os in
19974     freebsd[123]*) objformat=aout ;;
19975     *) objformat=elf ;;
19976     esac
19977   fi
19978   version_type=freebsd-$objformat
19979   case $version_type in
19980     freebsd-elf*)
19981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19982       need_version=no
19983       need_lib_prefix=no
19984       ;;
19985     freebsd-*)
19986       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19987       need_version=yes
19988       ;;
19989   esac
19990   shlibpath_var=LD_LIBRARY_PATH
19991   case $host_os in
19992   freebsd2*)
19993     shlibpath_overrides_runpath=yes
19994     ;;
19995   freebsd3.[01]* | freebsdelf3.[01]*)
19996     shlibpath_overrides_runpath=yes
19997     hardcode_into_libs=yes
19998     ;;
19999   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20000   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20001     shlibpath_overrides_runpath=no
20002     hardcode_into_libs=yes
20003     ;;
20004   freebsd*) # from 4.6 on
20005     shlibpath_overrides_runpath=yes
20006     hardcode_into_libs=yes
20007     ;;
20008   esac
20009   ;;
20010
20011 gnu*)
20012   version_type=linux
20013   need_lib_prefix=no
20014   need_version=no
20015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20016   soname_spec='${libname}${release}${shared_ext}$major'
20017   shlibpath_var=LD_LIBRARY_PATH
20018   hardcode_into_libs=yes
20019   ;;
20020
20021 hpux9* | hpux10* | hpux11*)
20022   # Give a soname corresponding to the major version so that dld.sl refuses to
20023   # link against other versions.
20024   version_type=sunos
20025   need_lib_prefix=no
20026   need_version=no
20027   case $host_cpu in
20028   ia64*)
20029     shrext_cmds='.so'
20030     hardcode_into_libs=yes
20031     dynamic_linker="$host_os dld.so"
20032     shlibpath_var=LD_LIBRARY_PATH
20033     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20035     soname_spec='${libname}${release}${shared_ext}$major'
20036     if test "X$HPUX_IA64_MODE" = X32; then
20037       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20038     else
20039       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20040     fi
20041     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20042     ;;
20043    hppa*64*)
20044      shrext_cmds='.sl'
20045      hardcode_into_libs=yes
20046      dynamic_linker="$host_os dld.sl"
20047      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20048      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20049      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050      soname_spec='${libname}${release}${shared_ext}$major'
20051      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20052      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20053      ;;
20054    *)
20055     shrext_cmds='.sl'
20056     dynamic_linker="$host_os dld.sl"
20057     shlibpath_var=SHLIB_PATH
20058     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20060     soname_spec='${libname}${release}${shared_ext}$major'
20061     ;;
20062   esac
20063   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20064   postinstall_cmds='chmod 555 $lib'
20065   ;;
20066
20067 interix3*)
20068   version_type=linux
20069   need_lib_prefix=no
20070   need_version=no
20071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20072   soname_spec='${libname}${release}${shared_ext}$major'
20073   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20074   shlibpath_var=LD_LIBRARY_PATH
20075   shlibpath_overrides_runpath=no
20076   hardcode_into_libs=yes
20077   ;;
20078
20079 irix5* | irix6* | nonstopux*)
20080   case $host_os in
20081     nonstopux*) version_type=nonstopux ;;
20082     *)
20083         if test "$lt_cv_prog_gnu_ld" = yes; then
20084                 version_type=linux
20085         else
20086                 version_type=irix
20087         fi ;;
20088   esac
20089   need_lib_prefix=no
20090   need_version=no
20091   soname_spec='${libname}${release}${shared_ext}$major'
20092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20093   case $host_os in
20094   irix5* | nonstopux*)
20095     libsuff= shlibsuff=
20096     ;;
20097   *)
20098     case $LD in # libtool.m4 will add one of these switches to LD
20099     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20100       libsuff= shlibsuff= libmagic=32-bit;;
20101     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20102       libsuff=32 shlibsuff=N32 libmagic=N32;;
20103     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20104       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20105     *) libsuff= shlibsuff= libmagic=never-match;;
20106     esac
20107     ;;
20108   esac
20109   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20110   shlibpath_overrides_runpath=no
20111   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20112   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20113   hardcode_into_libs=yes
20114   ;;
20115
20116 # No shared lib support for Linux oldld, aout, or coff.
20117 linux*oldld* | linux*aout* | linux*coff*)
20118   dynamic_linker=no
20119   ;;
20120
20121 # This must be Linux ELF.
20122 linux*)
20123   version_type=linux
20124   need_lib_prefix=no
20125   need_version=no
20126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20127   soname_spec='${libname}${release}${shared_ext}$major'
20128   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20129   shlibpath_var=LD_LIBRARY_PATH
20130   shlibpath_overrides_runpath=no
20131   # This implies no fast_install, which is unacceptable.
20132   # Some rework will be needed to allow for fast_install
20133   # before this can be enabled.
20134   hardcode_into_libs=yes
20135
20136   # Append ld.so.conf contents to the search path
20137   if test -f /etc/ld.so.conf; then
20138     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' ' '`
20139     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20140   fi
20141
20142   # We used to test for /lib/ld.so.1 and disable shared libraries on
20143   # powerpc, because MkLinux only supported shared libraries with the
20144   # GNU dynamic linker.  Since this was broken with cross compilers,
20145   # most powerpc-linux boxes support dynamic linking these days and
20146   # people can always --disable-shared, the test was removed, and we
20147   # assume the GNU/Linux dynamic linker is in use.
20148   dynamic_linker='GNU/Linux ld.so'
20149   ;;
20150
20151 knetbsd*-gnu)
20152   version_type=linux
20153   need_lib_prefix=no
20154   need_version=no
20155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20156   soname_spec='${libname}${release}${shared_ext}$major'
20157   shlibpath_var=LD_LIBRARY_PATH
20158   shlibpath_overrides_runpath=no
20159   hardcode_into_libs=yes
20160   dynamic_linker='GNU ld.so'
20161   ;;
20162
20163 netbsd*)
20164   version_type=sunos
20165   need_lib_prefix=no
20166   need_version=no
20167   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20169     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20170     dynamic_linker='NetBSD (a.out) ld.so'
20171   else
20172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20173     soname_spec='${libname}${release}${shared_ext}$major'
20174     dynamic_linker='NetBSD ld.elf_so'
20175   fi
20176   shlibpath_var=LD_LIBRARY_PATH
20177   shlibpath_overrides_runpath=yes
20178   hardcode_into_libs=yes
20179   ;;
20180
20181 newsos6)
20182   version_type=linux
20183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20184   shlibpath_var=LD_LIBRARY_PATH
20185   shlibpath_overrides_runpath=yes
20186   ;;
20187
20188 nto-qnx*)
20189   version_type=linux
20190   need_lib_prefix=no
20191   need_version=no
20192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20193   soname_spec='${libname}${release}${shared_ext}$major'
20194   shlibpath_var=LD_LIBRARY_PATH
20195   shlibpath_overrides_runpath=yes
20196   ;;
20197
20198 openbsd*)
20199   version_type=sunos
20200   sys_lib_dlsearch_path_spec="/usr/lib"
20201   need_lib_prefix=no
20202   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20203   case $host_os in
20204     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20205     *)                         need_version=no  ;;
20206   esac
20207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20209   shlibpath_var=LD_LIBRARY_PATH
20210   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20211     case $host_os in
20212       openbsd2.[89] | openbsd2.[89].*)
20213         shlibpath_overrides_runpath=no
20214         ;;
20215       *)
20216         shlibpath_overrides_runpath=yes
20217         ;;
20218       esac
20219   else
20220     shlibpath_overrides_runpath=yes
20221   fi
20222   ;;
20223
20224 os2*)
20225   libname_spec='$name'
20226   shrext_cmds=".dll"
20227   need_lib_prefix=no
20228   library_names_spec='$libname${shared_ext} $libname.a'
20229   dynamic_linker='OS/2 ld.exe'
20230   shlibpath_var=LIBPATH
20231   ;;
20232
20233 osf3* | osf4* | osf5*)
20234   version_type=osf
20235   need_lib_prefix=no
20236   need_version=no
20237   soname_spec='${libname}${release}${shared_ext}$major'
20238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20239   shlibpath_var=LD_LIBRARY_PATH
20240   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20241   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20242   ;;
20243
20244 solaris*)
20245   version_type=linux
20246   need_lib_prefix=no
20247   need_version=no
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249   soname_spec='${libname}${release}${shared_ext}$major'
20250   shlibpath_var=LD_LIBRARY_PATH
20251   shlibpath_overrides_runpath=yes
20252   hardcode_into_libs=yes
20253   # ldd complains unless libraries are executable
20254   postinstall_cmds='chmod +x $lib'
20255   ;;
20256
20257 sunos4*)
20258   version_type=sunos
20259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20260   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20261   shlibpath_var=LD_LIBRARY_PATH
20262   shlibpath_overrides_runpath=yes
20263   if test "$with_gnu_ld" = yes; then
20264     need_lib_prefix=no
20265   fi
20266   need_version=yes
20267   ;;
20268
20269 sysv4 | sysv4.3*)
20270   version_type=linux
20271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272   soname_spec='${libname}${release}${shared_ext}$major'
20273   shlibpath_var=LD_LIBRARY_PATH
20274   case $host_vendor in
20275     sni)
20276       shlibpath_overrides_runpath=no
20277       need_lib_prefix=no
20278       export_dynamic_flag_spec='${wl}-Blargedynsym'
20279       runpath_var=LD_RUN_PATH
20280       ;;
20281     siemens)
20282       need_lib_prefix=no
20283       ;;
20284     motorola)
20285       need_lib_prefix=no
20286       need_version=no
20287       shlibpath_overrides_runpath=no
20288       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20289       ;;
20290   esac
20291   ;;
20292
20293 sysv4*MP*)
20294   if test -d /usr/nec ;then
20295     version_type=linux
20296     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20297     soname_spec='$libname${shared_ext}.$major'
20298     shlibpath_var=LD_LIBRARY_PATH
20299   fi
20300   ;;
20301
20302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20303   version_type=freebsd-elf
20304   need_lib_prefix=no
20305   need_version=no
20306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20307   soname_spec='${libname}${release}${shared_ext}$major'
20308   shlibpath_var=LD_LIBRARY_PATH
20309   hardcode_into_libs=yes
20310   if test "$with_gnu_ld" = yes; then
20311     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20312     shlibpath_overrides_runpath=no
20313   else
20314     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20315     shlibpath_overrides_runpath=yes
20316     case $host_os in
20317       sco3.2v5*)
20318         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20319         ;;
20320     esac
20321   fi
20322   sys_lib_dlsearch_path_spec='/usr/lib'
20323   ;;
20324
20325 uts4*)
20326   version_type=linux
20327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328   soname_spec='${libname}${release}${shared_ext}$major'
20329   shlibpath_var=LD_LIBRARY_PATH
20330   ;;
20331
20332 *)
20333   dynamic_linker=no
20334   ;;
20335 esac
20336 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20337 echo "${ECHO_T}$dynamic_linker" >&6; }
20338 test "$dynamic_linker" = no && can_build_shared=no
20339
20340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20341 if test "$GCC" = yes; then
20342   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20343 fi
20344
20345 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20346 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20347 hardcode_action_CXX=
20348 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20349    test -n "$runpath_var_CXX" || \
20350    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20351
20352   # We can hardcode non-existant directories.
20353   if test "$hardcode_direct_CXX" != no &&
20354      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20355      # have to relink, otherwise we might link with an installed library
20356      # when we should be linking with a yet-to-be-installed one
20357      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20358      test "$hardcode_minus_L_CXX" != no; then
20359     # Linking always hardcodes the temporary library directory.
20360     hardcode_action_CXX=relink
20361   else
20362     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20363     hardcode_action_CXX=immediate
20364   fi
20365 else
20366   # We cannot hardcode anything, or else we can only hardcode existing
20367   # directories.
20368   hardcode_action_CXX=unsupported
20369 fi
20370 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20371 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20372
20373 if test "$hardcode_action_CXX" = relink; then
20374   # Fast installation is not supported
20375   enable_fast_install=no
20376 elif test "$shlibpath_overrides_runpath" = yes ||
20377      test "$enable_shared" = no; then
20378   # Fast installation is not necessary
20379   enable_fast_install=needless
20380 fi
20381
20382
20383 # The else clause should only fire when bootstrapping the
20384 # libtool distribution, otherwise you forgot to ship ltmain.sh
20385 # with your package, and you will get complaints that there are
20386 # no rules to generate ltmain.sh.
20387 if test -f "$ltmain"; then
20388   # See if we are running on zsh, and set the options which allow our commands through
20389   # without removal of \ escapes.
20390   if test -n "${ZSH_VERSION+set}" ; then
20391     setopt NO_GLOB_SUBST
20392   fi
20393   # Now quote all the things that may contain metacharacters while being
20394   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20395   # variables and quote the copies for generation of the libtool script.
20396   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20397     SED SHELL STRIP \
20398     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20399     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20400     deplibs_check_method reload_flag reload_cmds need_locks \
20401     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20402     lt_cv_sys_global_symbol_to_c_name_address \
20403     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20404     old_postinstall_cmds old_postuninstall_cmds \
20405     compiler_CXX \
20406     CC_CXX \
20407     LD_CXX \
20408     lt_prog_compiler_wl_CXX \
20409     lt_prog_compiler_pic_CXX \
20410     lt_prog_compiler_static_CXX \
20411     lt_prog_compiler_no_builtin_flag_CXX \
20412     export_dynamic_flag_spec_CXX \
20413     thread_safe_flag_spec_CXX \
20414     whole_archive_flag_spec_CXX \
20415     enable_shared_with_static_runtimes_CXX \
20416     old_archive_cmds_CXX \
20417     old_archive_from_new_cmds_CXX \
20418     predep_objects_CXX \
20419     postdep_objects_CXX \
20420     predeps_CXX \
20421     postdeps_CXX \
20422     compiler_lib_search_path_CXX \
20423     archive_cmds_CXX \
20424     archive_expsym_cmds_CXX \
20425     postinstall_cmds_CXX \
20426     postuninstall_cmds_CXX \
20427     old_archive_from_expsyms_cmds_CXX \
20428     allow_undefined_flag_CXX \
20429     no_undefined_flag_CXX \
20430     export_symbols_cmds_CXX \
20431     hardcode_libdir_flag_spec_CXX \
20432     hardcode_libdir_flag_spec_ld_CXX \
20433     hardcode_libdir_separator_CXX \
20434     hardcode_automatic_CXX \
20435     module_cmds_CXX \
20436     module_expsym_cmds_CXX \
20437     lt_cv_prog_compiler_c_o_CXX \
20438     exclude_expsyms_CXX \
20439     include_expsyms_CXX; do
20440
20441     case $var in
20442     old_archive_cmds_CXX | \
20443     old_archive_from_new_cmds_CXX | \
20444     archive_cmds_CXX | \
20445     archive_expsym_cmds_CXX | \
20446     module_cmds_CXX | \
20447     module_expsym_cmds_CXX | \
20448     old_archive_from_expsyms_cmds_CXX | \
20449     export_symbols_cmds_CXX | \
20450     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20451     postinstall_cmds | postuninstall_cmds | \
20452     old_postinstall_cmds | old_postuninstall_cmds | \
20453     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20454       # Double-quote double-evaled strings.
20455       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20456       ;;
20457     *)
20458       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20459       ;;
20460     esac
20461   done
20462
20463   case $lt_echo in
20464   *'\$0 --fallback-echo"')
20465     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20466     ;;
20467   esac
20468
20469 cfgfile="$ofile"
20470
20471   cat <<__EOF__ >> "$cfgfile"
20472 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20473
20474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20475
20476 # Shell to use when invoking shell scripts.
20477 SHELL=$lt_SHELL
20478
20479 # Whether or not to build shared libraries.
20480 build_libtool_libs=$enable_shared
20481
20482 # Whether or not to build static libraries.
20483 build_old_libs=$enable_static
20484
20485 # Whether or not to add -lc for building shared libraries.
20486 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20487
20488 # Whether or not to disallow shared libs when runtime libs are static
20489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20490
20491 # Whether or not to optimize for fast installation.
20492 fast_install=$enable_fast_install
20493
20494 # The host system.
20495 host_alias=$host_alias
20496 host=$host
20497 host_os=$host_os
20498
20499 # The build system.
20500 build_alias=$build_alias
20501 build=$build
20502 build_os=$build_os
20503
20504 # An echo program that does not interpret backslashes.
20505 echo=$lt_echo
20506
20507 # The archiver.
20508 AR=$lt_AR
20509 AR_FLAGS=$lt_AR_FLAGS
20510
20511 # A C compiler.
20512 LTCC=$lt_LTCC
20513
20514 # LTCC compiler flags.
20515 LTCFLAGS=$lt_LTCFLAGS
20516
20517 # A language-specific compiler.
20518 CC=$lt_compiler_CXX
20519
20520 # Is the compiler the GNU C compiler?
20521 with_gcc=$GCC_CXX
20522
20523 # An ERE matcher.
20524 EGREP=$lt_EGREP
20525
20526 # The linker used to build libraries.
20527 LD=$lt_LD_CXX
20528
20529 # Whether we need hard or soft links.
20530 LN_S=$lt_LN_S
20531
20532 # A BSD-compatible nm program.
20533 NM=$lt_NM
20534
20535 # A symbol stripping program
20536 STRIP=$lt_STRIP
20537
20538 # Used to examine libraries when file_magic_cmd begins "file"
20539 MAGIC_CMD=$MAGIC_CMD
20540
20541 # Used on cygwin: DLL creation program.
20542 DLLTOOL="$DLLTOOL"
20543
20544 # Used on cygwin: object dumper.
20545 OBJDUMP="$OBJDUMP"
20546
20547 # Used on cygwin: assembler.
20548 AS="$AS"
20549
20550 # The name of the directory that contains temporary libtool files.
20551 objdir=$objdir
20552
20553 # How to create reloadable object files.
20554 reload_flag=$lt_reload_flag
20555 reload_cmds=$lt_reload_cmds
20556
20557 # How to pass a linker flag through the compiler.
20558 wl=$lt_lt_prog_compiler_wl_CXX
20559
20560 # Object file suffix (normally "o").
20561 objext="$ac_objext"
20562
20563 # Old archive suffix (normally "a").
20564 libext="$libext"
20565
20566 # Shared library suffix (normally ".so").
20567 shrext_cmds='$shrext_cmds'
20568
20569 # Executable file suffix (normally "").
20570 exeext="$exeext"
20571
20572 # Additional compiler flags for building library objects.
20573 pic_flag=$lt_lt_prog_compiler_pic_CXX
20574 pic_mode=$pic_mode
20575
20576 # What is the maximum length of a command?
20577 max_cmd_len=$lt_cv_sys_max_cmd_len
20578
20579 # Does compiler simultaneously support -c and -o options?
20580 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20581
20582 # Must we lock files when doing compilation?
20583 need_locks=$lt_need_locks
20584
20585 # Do we need the lib prefix for modules?
20586 need_lib_prefix=$need_lib_prefix
20587
20588 # Do we need a version for libraries?
20589 need_version=$need_version
20590
20591 # Whether dlopen is supported.
20592 dlopen_support=$enable_dlopen
20593
20594 # Whether dlopen of programs is supported.
20595 dlopen_self=$enable_dlopen_self
20596
20597 # Whether dlopen of statically linked programs is supported.
20598 dlopen_self_static=$enable_dlopen_self_static
20599
20600 # Compiler flag to prevent dynamic linking.
20601 link_static_flag=$lt_lt_prog_compiler_static_CXX
20602
20603 # Compiler flag to turn off builtin functions.
20604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20605
20606 # Compiler flag to allow reflexive dlopens.
20607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20608
20609 # Compiler flag to generate shared objects directly from archives.
20610 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20611
20612 # Compiler flag to generate thread-safe objects.
20613 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20614
20615 # Library versioning type.
20616 version_type=$version_type
20617
20618 # Format of library name prefix.
20619 libname_spec=$lt_libname_spec
20620
20621 # List of archive names.  First name is the real one, the rest are links.
20622 # The last name is the one that the linker finds with -lNAME.
20623 library_names_spec=$lt_library_names_spec
20624
20625 # The coded name of the library, if different from the real name.
20626 soname_spec=$lt_soname_spec
20627
20628 # Commands used to build and install an old-style archive.
20629 RANLIB=$lt_RANLIB
20630 old_archive_cmds=$lt_old_archive_cmds_CXX
20631 old_postinstall_cmds=$lt_old_postinstall_cmds
20632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20633
20634 # Create an old-style archive from a shared archive.
20635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20636
20637 # Create a temporary old-style archive to link instead of a shared archive.
20638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20639
20640 # Commands used to build and install a shared archive.
20641 archive_cmds=$lt_archive_cmds_CXX
20642 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20643 postinstall_cmds=$lt_postinstall_cmds
20644 postuninstall_cmds=$lt_postuninstall_cmds
20645
20646 # Commands used to build a loadable module (assumed same as above if empty)
20647 module_cmds=$lt_module_cmds_CXX
20648 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20649
20650 # Commands to strip libraries.
20651 old_striplib=$lt_old_striplib
20652 striplib=$lt_striplib
20653
20654 # Dependencies to place before the objects being linked to create a
20655 # shared library.
20656 predep_objects=$lt_predep_objects_CXX
20657
20658 # Dependencies to place after the objects being linked to create a
20659 # shared library.
20660 postdep_objects=$lt_postdep_objects_CXX
20661
20662 # Dependencies to place before the objects being linked to create a
20663 # shared library.
20664 predeps=$lt_predeps_CXX
20665
20666 # Dependencies to place after the objects being linked to create a
20667 # shared library.
20668 postdeps=$lt_postdeps_CXX
20669
20670 # The library search path used internally by the compiler when linking
20671 # a shared library.
20672 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20673
20674 # Method to check whether dependent libraries are shared objects.
20675 deplibs_check_method=$lt_deplibs_check_method
20676
20677 # Command to use when deplibs_check_method == file_magic.
20678 file_magic_cmd=$lt_file_magic_cmd
20679
20680 # Flag that allows shared libraries with undefined symbols to be built.
20681 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20682
20683 # Flag that forces no undefined symbols.
20684 no_undefined_flag=$lt_no_undefined_flag_CXX
20685
20686 # Commands used to finish a libtool library installation in a directory.
20687 finish_cmds=$lt_finish_cmds
20688
20689 # Same as above, but a single script fragment to be evaled but not shown.
20690 finish_eval=$lt_finish_eval
20691
20692 # Take the output of nm and produce a listing of raw symbols and C names.
20693 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20694
20695 # Transform the output of nm in a proper C declaration
20696 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20697
20698 # Transform the output of nm in a C name address pair
20699 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20700
20701 # This is the shared library runtime path variable.
20702 runpath_var=$runpath_var
20703
20704 # This is the shared library path variable.
20705 shlibpath_var=$shlibpath_var
20706
20707 # Is shlibpath searched before the hard-coded library search path?
20708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20709
20710 # How to hardcode a shared library path into an executable.
20711 hardcode_action=$hardcode_action_CXX
20712
20713 # Whether we should hardcode library paths into libraries.
20714 hardcode_into_libs=$hardcode_into_libs
20715
20716 # Flag to hardcode \$libdir into a binary during linking.
20717 # This must work even if \$libdir does not exist.
20718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20719
20720 # If ld is used when linking, flag to hardcode \$libdir into
20721 # a binary during linking. This must work even if \$libdir does
20722 # not exist.
20723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20724
20725 # Whether we need a single -rpath flag with a separated argument.
20726 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20727
20728 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20729 # resulting binary.
20730 hardcode_direct=$hardcode_direct_CXX
20731
20732 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20733 # resulting binary.
20734 hardcode_minus_L=$hardcode_minus_L_CXX
20735
20736 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20737 # the resulting binary.
20738 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20739
20740 # Set to yes if building a shared library automatically hardcodes DIR into the library
20741 # and all subsequent libraries and executables linked against it.
20742 hardcode_automatic=$hardcode_automatic_CXX
20743
20744 # Variables whose values should be saved in libtool wrapper scripts and
20745 # restored at relink time.
20746 variables_saved_for_relink="$variables_saved_for_relink"
20747
20748 # Whether libtool must link a program against all its dependency libraries.
20749 link_all_deplibs=$link_all_deplibs_CXX
20750
20751 # Compile-time system search path for libraries
20752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20753
20754 # Run-time system search path for libraries
20755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20756
20757 # Fix the shell variable \$srcfile for the compiler.
20758 fix_srcfile_path="$fix_srcfile_path_CXX"
20759
20760 # Set to yes if exported symbols are required.
20761 always_export_symbols=$always_export_symbols_CXX
20762
20763 # The commands to list exported symbols.
20764 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20765
20766 # The commands to extract the exported symbol list from a shared archive.
20767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20768
20769 # Symbols that should not be listed in the preloaded symbols.
20770 exclude_expsyms=$lt_exclude_expsyms_CXX
20771
20772 # Symbols that must always be exported.
20773 include_expsyms=$lt_include_expsyms_CXX
20774
20775 # ### END LIBTOOL TAG CONFIG: $tagname
20776
20777 __EOF__
20778
20779
20780 else
20781   # If there is no Makefile yet, we rely on a make rule to execute
20782   # `config.status --recheck' to rerun these tests and create the
20783   # libtool script then.
20784   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20785   if test -f "$ltmain_in"; then
20786     test -f Makefile && make "$ltmain"
20787   fi
20788 fi
20789
20790
20791 ac_ext=c
20792 ac_cpp='$CPP $CPPFLAGS'
20793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20796
20797 CC=$lt_save_CC
20798 LDCXX=$LD
20799 LD=$lt_save_LD
20800 GCC=$lt_save_GCC
20801 with_gnu_ldcxx=$with_gnu_ld
20802 with_gnu_ld=$lt_save_with_gnu_ld
20803 lt_cv_path_LDCXX=$lt_cv_path_LD
20804 lt_cv_path_LD=$lt_save_path_LD
20805 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20806 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20807
20808         else
20809           tagname=""
20810         fi
20811         ;;
20812
20813       F77)
20814         if test -n "$F77" && test "X$F77" != "Xno"; then
20815
20816 ac_ext=f
20817 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20818 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20820
20821
20822 archive_cmds_need_lc_F77=no
20823 allow_undefined_flag_F77=
20824 always_export_symbols_F77=no
20825 archive_expsym_cmds_F77=
20826 export_dynamic_flag_spec_F77=
20827 hardcode_direct_F77=no
20828 hardcode_libdir_flag_spec_F77=
20829 hardcode_libdir_flag_spec_ld_F77=
20830 hardcode_libdir_separator_F77=
20831 hardcode_minus_L_F77=no
20832 hardcode_automatic_F77=no
20833 module_cmds_F77=
20834 module_expsym_cmds_F77=
20835 link_all_deplibs_F77=unknown
20836 old_archive_cmds_F77=$old_archive_cmds
20837 no_undefined_flag_F77=
20838 whole_archive_flag_spec_F77=
20839 enable_shared_with_static_runtimes_F77=no
20840
20841 # Source file extension for f77 test sources.
20842 ac_ext=f
20843
20844 # Object file extension for compiled f77 test sources.
20845 objext=o
20846 objext_F77=$objext
20847
20848 # Code to be used in simple compile tests
20849 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20850
20851 # Code to be used in simple link tests
20852 lt_simple_link_test_code="      program t\n      end\n"
20853
20854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20855
20856 # If no C compiler was specified, use CC.
20857 LTCC=${LTCC-"$CC"}
20858
20859 # If no C compiler flags were specified, use CFLAGS.
20860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20861
20862 # Allow CC to be a program name with arguments.
20863 compiler=$CC
20864
20865
20866 # save warnings/boilerplate of simple test code
20867 ac_outfile=conftest.$ac_objext
20868 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20870 _lt_compiler_boilerplate=`cat conftest.err`
20871 $rm conftest*
20872
20873 ac_outfile=conftest.$ac_objext
20874 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20876 _lt_linker_boilerplate=`cat conftest.err`
20877 $rm conftest*
20878
20879
20880 # Allow CC to be a program name with arguments.
20881 lt_save_CC="$CC"
20882 CC=${F77-"f77"}
20883 compiler=$CC
20884 compiler_F77=$CC
20885 for cc_temp in $compiler""; do
20886   case $cc_temp in
20887     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20888     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20889     \-*) ;;
20890     *) break;;
20891   esac
20892 done
20893 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20894
20895
20896 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20897 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20898 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20899 echo "${ECHO_T}$can_build_shared" >&6; }
20900
20901 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20902 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20903 test "$can_build_shared" = "no" && enable_shared=no
20904
20905 # On AIX, shared libraries and static libraries use the same namespace, and
20906 # are all built from PIC.
20907 case $host_os in
20908 aix3*)
20909   test "$enable_shared" = yes && enable_static=no
20910   if test -n "$RANLIB"; then
20911     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20912     postinstall_cmds='$RANLIB $lib'
20913   fi
20914   ;;
20915 aix4* | aix5*)
20916   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20917     test "$enable_shared" = yes && enable_static=no
20918   fi
20919   ;;
20920 esac
20921 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20922 echo "${ECHO_T}$enable_shared" >&6; }
20923
20924 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20925 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20926 # Make sure either enable_shared or enable_static is yes.
20927 test "$enable_shared" = yes || enable_static=yes
20928 { echo "$as_me:$LINENO: result: $enable_static" >&5
20929 echo "${ECHO_T}$enable_static" >&6; }
20930
20931 GCC_F77="$G77"
20932 LD_F77="$LD"
20933
20934 lt_prog_compiler_wl_F77=
20935 lt_prog_compiler_pic_F77=
20936 lt_prog_compiler_static_F77=
20937
20938 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20939 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20940
20941   if test "$GCC" = yes; then
20942     lt_prog_compiler_wl_F77='-Wl,'
20943     lt_prog_compiler_static_F77='-static'
20944
20945     case $host_os in
20946       aix*)
20947       # All AIX code is PIC.
20948       if test "$host_cpu" = ia64; then
20949         # AIX 5 now supports IA64 processor
20950         lt_prog_compiler_static_F77='-Bstatic'
20951       fi
20952       ;;
20953
20954     amigaos*)
20955       # FIXME: we need at least 68020 code to build shared libraries, but
20956       # adding the `-m68020' flag to GCC prevents building anything better,
20957       # like `-m68040'.
20958       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20959       ;;
20960
20961     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20962       # PIC is the default for these OSes.
20963       ;;
20964
20965     mingw* | pw32* | os2*)
20966       # This hack is so that the source file can tell whether it is being
20967       # built for inclusion in a dll (and should export symbols for example).
20968       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20969       ;;
20970
20971     darwin* | rhapsody*)
20972       # PIC is the default on this platform
20973       # Common symbols not allowed in MH_DYLIB files
20974       lt_prog_compiler_pic_F77='-fno-common'
20975       ;;
20976
20977     interix3*)
20978       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20979       # Instead, we relocate shared libraries at runtime.
20980       ;;
20981
20982     msdosdjgpp*)
20983       # Just because we use GCC doesn't mean we suddenly get shared libraries
20984       # on systems that don't support them.
20985       lt_prog_compiler_can_build_shared_F77=no
20986       enable_shared=no
20987       ;;
20988
20989     sysv4*MP*)
20990       if test -d /usr/nec; then
20991         lt_prog_compiler_pic_F77=-Kconform_pic
20992       fi
20993       ;;
20994
20995     hpux*)
20996       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20997       # not for PA HP-UX.
20998       case $host_cpu in
20999       hppa*64*|ia64*)
21000         # +Z the default
21001         ;;
21002       *)
21003         lt_prog_compiler_pic_F77='-fPIC'
21004         ;;
21005       esac
21006       ;;
21007
21008     *)
21009       lt_prog_compiler_pic_F77='-fPIC'
21010       ;;
21011     esac
21012   else
21013     # PORTME Check for flag to pass linker flags through the system compiler.
21014     case $host_os in
21015     aix*)
21016       lt_prog_compiler_wl_F77='-Wl,'
21017       if test "$host_cpu" = ia64; then
21018         # AIX 5 now supports IA64 processor
21019         lt_prog_compiler_static_F77='-Bstatic'
21020       else
21021         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21022       fi
21023       ;;
21024       darwin*)
21025         # PIC is the default on this platform
21026         # Common symbols not allowed in MH_DYLIB files
21027        case $cc_basename in
21028          xlc*)
21029          lt_prog_compiler_pic_F77='-qnocommon'
21030          lt_prog_compiler_wl_F77='-Wl,'
21031          ;;
21032        esac
21033        ;;
21034
21035     mingw* | pw32* | os2*)
21036       # This hack is so that the source file can tell whether it is being
21037       # built for inclusion in a dll (and should export symbols for example).
21038       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21039       ;;
21040
21041     hpux9* | hpux10* | hpux11*)
21042       lt_prog_compiler_wl_F77='-Wl,'
21043       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21044       # not for PA HP-UX.
21045       case $host_cpu in
21046       hppa*64*|ia64*)
21047         # +Z the default
21048         ;;
21049       *)
21050         lt_prog_compiler_pic_F77='+Z'
21051         ;;
21052       esac
21053       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21054       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21055       ;;
21056
21057     irix5* | irix6* | nonstopux*)
21058       lt_prog_compiler_wl_F77='-Wl,'
21059       # PIC (with -KPIC) is the default.
21060       lt_prog_compiler_static_F77='-non_shared'
21061       ;;
21062
21063     newsos6)
21064       lt_prog_compiler_pic_F77='-KPIC'
21065       lt_prog_compiler_static_F77='-Bstatic'
21066       ;;
21067
21068     linux*)
21069       case $cc_basename in
21070       icc* | ecc*)
21071         lt_prog_compiler_wl_F77='-Wl,'
21072         lt_prog_compiler_pic_F77='-KPIC'
21073         lt_prog_compiler_static_F77='-static'
21074         ;;
21075       pgcc* | pgf77* | pgf90* | pgf95*)
21076         # Portland Group compilers (*not* the Pentium gcc compiler,
21077         # which looks to be a dead project)
21078         lt_prog_compiler_wl_F77='-Wl,'
21079         lt_prog_compiler_pic_F77='-fpic'
21080         lt_prog_compiler_static_F77='-Bstatic'
21081         ;;
21082       ccc*)
21083         lt_prog_compiler_wl_F77='-Wl,'
21084         # All Alpha code is PIC.
21085         lt_prog_compiler_static_F77='-non_shared'
21086         ;;
21087       esac
21088       ;;
21089
21090     osf3* | osf4* | osf5*)
21091       lt_prog_compiler_wl_F77='-Wl,'
21092       # All OSF/1 code is PIC.
21093       lt_prog_compiler_static_F77='-non_shared'
21094       ;;
21095
21096     solaris*)
21097       lt_prog_compiler_pic_F77='-KPIC'
21098       lt_prog_compiler_static_F77='-Bstatic'
21099       case $cc_basename in
21100       f77* | f90* | f95*)
21101         lt_prog_compiler_wl_F77='-Qoption ld ';;
21102       *)
21103         lt_prog_compiler_wl_F77='-Wl,';;
21104       esac
21105       ;;
21106
21107     sunos4*)
21108       lt_prog_compiler_wl_F77='-Qoption ld '
21109       lt_prog_compiler_pic_F77='-PIC'
21110       lt_prog_compiler_static_F77='-Bstatic'
21111       ;;
21112
21113     sysv4 | sysv4.2uw2* | sysv4.3*)
21114       lt_prog_compiler_wl_F77='-Wl,'
21115       lt_prog_compiler_pic_F77='-KPIC'
21116       lt_prog_compiler_static_F77='-Bstatic'
21117       ;;
21118
21119     sysv4*MP*)
21120       if test -d /usr/nec ;then
21121         lt_prog_compiler_pic_F77='-Kconform_pic'
21122         lt_prog_compiler_static_F77='-Bstatic'
21123       fi
21124       ;;
21125
21126     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21127       lt_prog_compiler_wl_F77='-Wl,'
21128       lt_prog_compiler_pic_F77='-KPIC'
21129       lt_prog_compiler_static_F77='-Bstatic'
21130       ;;
21131
21132     unicos*)
21133       lt_prog_compiler_wl_F77='-Wl,'
21134       lt_prog_compiler_can_build_shared_F77=no
21135       ;;
21136
21137     uts4*)
21138       lt_prog_compiler_pic_F77='-pic'
21139       lt_prog_compiler_static_F77='-Bstatic'
21140       ;;
21141
21142     *)
21143       lt_prog_compiler_can_build_shared_F77=no
21144       ;;
21145     esac
21146   fi
21147
21148 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21149 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21150
21151 #
21152 # Check to make sure the PIC flag actually works.
21153 #
21154 if test -n "$lt_prog_compiler_pic_F77"; then
21155
21156 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21157 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21158 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161   lt_prog_compiler_pic_works_F77=no
21162   ac_outfile=conftest.$ac_objext
21163    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21164    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21165    # Insert the option either (1) after the last *FLAGS variable, or
21166    # (2) before a word containing "conftest.", or (3) at the end.
21167    # Note that $ac_compile itself does not contain backslashes and begins
21168    # with a dollar sign (not a hyphen), so the echo should work correctly.
21169    # The option is referenced via a variable to avoid confusing sed.
21170    lt_compile=`echo "$ac_compile" | $SED \
21171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21173    -e 's:$: $lt_compiler_flag:'`
21174    (eval echo "\"\$as_me:21174: $lt_compile\"" >&5)
21175    (eval "$lt_compile" 2>conftest.err)
21176    ac_status=$?
21177    cat conftest.err >&5
21178    echo "$as_me:21178: \$? = $ac_status" >&5
21179    if (exit $ac_status) && test -s "$ac_outfile"; then
21180      # The compiler can only warn and ignore the option if not recognized
21181      # So say no if there are warnings other than the usual output.
21182      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21183      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21184      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21185        lt_prog_compiler_pic_works_F77=yes
21186      fi
21187    fi
21188    $rm conftest*
21189
21190 fi
21191 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21192 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21193
21194 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21195     case $lt_prog_compiler_pic_F77 in
21196      "" | " "*) ;;
21197      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21198      esac
21199 else
21200     lt_prog_compiler_pic_F77=
21201      lt_prog_compiler_can_build_shared_F77=no
21202 fi
21203
21204 fi
21205 case $host_os in
21206   # For platforms which do not support PIC, -DPIC is meaningless:
21207   *djgpp*)
21208     lt_prog_compiler_pic_F77=
21209     ;;
21210   *)
21211     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21212     ;;
21213 esac
21214
21215 #
21216 # Check to make sure the static flag actually works.
21217 #
21218 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21219 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21220 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21221 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21222   echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224   lt_prog_compiler_static_works_F77=no
21225    save_LDFLAGS="$LDFLAGS"
21226    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21227    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21228    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21229      # The linker can only warn and ignore the option if not recognized
21230      # So say no if there are warnings
21231      if test -s conftest.err; then
21232        # Append any errors to the config.log.
21233        cat conftest.err 1>&5
21234        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21235        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21236        if diff conftest.exp conftest.er2 >/dev/null; then
21237          lt_prog_compiler_static_works_F77=yes
21238        fi
21239      else
21240        lt_prog_compiler_static_works_F77=yes
21241      fi
21242    fi
21243    $rm conftest*
21244    LDFLAGS="$save_LDFLAGS"
21245
21246 fi
21247 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21248 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21249
21250 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21251     :
21252 else
21253     lt_prog_compiler_static_F77=
21254 fi
21255
21256
21257 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21259 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262   lt_cv_prog_compiler_c_o_F77=no
21263    $rm -r conftest 2>/dev/null
21264    mkdir conftest
21265    cd conftest
21266    mkdir out
21267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21268
21269    lt_compiler_flag="-o out/conftest2.$ac_objext"
21270    # Insert the option either (1) after the last *FLAGS variable, or
21271    # (2) before a word containing "conftest.", or (3) at the end.
21272    # Note that $ac_compile itself does not contain backslashes and begins
21273    # with a dollar sign (not a hyphen), so the echo should work correctly.
21274    lt_compile=`echo "$ac_compile" | $SED \
21275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21277    -e 's:$: $lt_compiler_flag:'`
21278    (eval echo "\"\$as_me:21278: $lt_compile\"" >&5)
21279    (eval "$lt_compile" 2>out/conftest.err)
21280    ac_status=$?
21281    cat out/conftest.err >&5
21282    echo "$as_me:21282: \$? = $ac_status" >&5
21283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21284    then
21285      # The compiler can only warn and ignore the option if not recognized
21286      # So say no if there are warnings
21287      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21288      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21289      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21290        lt_cv_prog_compiler_c_o_F77=yes
21291      fi
21292    fi
21293    chmod u+w . 2>&5
21294    $rm conftest*
21295    # SGI C++ compiler will create directory out/ii_files/ for
21296    # template instantiation
21297    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21298    $rm out/* && rmdir out
21299    cd ..
21300    rmdir conftest
21301    $rm conftest*
21302
21303 fi
21304 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21305 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21306
21307
21308 hard_links="nottested"
21309 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21310   # do not overwrite the value of need_locks provided by the user
21311   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21312 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21313   hard_links=yes
21314   $rm conftest*
21315   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21316   touch conftest.a
21317   ln conftest.a conftest.b 2>&5 || hard_links=no
21318   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21319   { echo "$as_me:$LINENO: result: $hard_links" >&5
21320 echo "${ECHO_T}$hard_links" >&6; }
21321   if test "$hard_links" = no; then
21322     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21323 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21324     need_locks=warn
21325   fi
21326 else
21327   need_locks=no
21328 fi
21329
21330 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21331 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21332
21333   runpath_var=
21334   allow_undefined_flag_F77=
21335   enable_shared_with_static_runtimes_F77=no
21336   archive_cmds_F77=
21337   archive_expsym_cmds_F77=
21338   old_archive_From_new_cmds_F77=
21339   old_archive_from_expsyms_cmds_F77=
21340   export_dynamic_flag_spec_F77=
21341   whole_archive_flag_spec_F77=
21342   thread_safe_flag_spec_F77=
21343   hardcode_libdir_flag_spec_F77=
21344   hardcode_libdir_flag_spec_ld_F77=
21345   hardcode_libdir_separator_F77=
21346   hardcode_direct_F77=no
21347   hardcode_minus_L_F77=no
21348   hardcode_shlibpath_var_F77=unsupported
21349   link_all_deplibs_F77=unknown
21350   hardcode_automatic_F77=no
21351   module_cmds_F77=
21352   module_expsym_cmds_F77=
21353   always_export_symbols_F77=no
21354   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21355   # include_expsyms should be a list of space-separated symbols to be *always*
21356   # included in the symbol list
21357   include_expsyms_F77=
21358   # exclude_expsyms can be an extended regexp of symbols to exclude
21359   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21360   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21361   # as well as any symbol that contains `d'.
21362   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21363   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21364   # platforms (ab)use it in PIC code, but their linkers get confused if
21365   # the symbol is explicitly referenced.  Since portable code cannot
21366   # rely on this symbol name, it's probably fine to never include it in
21367   # preloaded symbol tables.
21368   extract_expsyms_cmds=
21369   # Just being paranoid about ensuring that cc_basename is set.
21370   for cc_temp in $compiler""; do
21371   case $cc_temp in
21372     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21373     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21374     \-*) ;;
21375     *) break;;
21376   esac
21377 done
21378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21379
21380   case $host_os in
21381   cygwin* | mingw* | pw32*)
21382     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21383     # When not using gcc, we currently assume that we are using
21384     # Microsoft Visual C++.
21385     if test "$GCC" != yes; then
21386       with_gnu_ld=no
21387     fi
21388     ;;
21389   interix*)
21390     # we just hope/assume this is gcc and not c89 (= MSVC++)
21391     with_gnu_ld=yes
21392     ;;
21393   openbsd*)
21394     with_gnu_ld=no
21395     ;;
21396   esac
21397
21398   ld_shlibs_F77=yes
21399   if test "$with_gnu_ld" = yes; then
21400     # If archive_cmds runs LD, not CC, wlarc should be empty
21401     wlarc='${wl}'
21402
21403     # Set some defaults for GNU ld with shared library support. These
21404     # are reset later if shared libraries are not supported. Putting them
21405     # here allows them to be overridden if necessary.
21406     runpath_var=LD_RUN_PATH
21407     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21408     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21409     # ancient GNU ld didn't support --whole-archive et. al.
21410     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21411         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21412       else
21413         whole_archive_flag_spec_F77=
21414     fi
21415     supports_anon_versioning=no
21416     case `$LD -v 2>/dev/null` in
21417       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21418       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21419       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21420       *\ 2.11.*) ;; # other 2.11 versions
21421       *) supports_anon_versioning=yes ;;
21422     esac
21423
21424     # See if GNU ld supports shared libraries.
21425     case $host_os in
21426     aix3* | aix4* | aix5*)
21427       # On AIX/PPC, the GNU linker is very broken
21428       if test "$host_cpu" != ia64; then
21429         ld_shlibs_F77=no
21430         cat <<EOF 1>&2
21431
21432 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21433 *** to be unable to reliably create shared libraries on AIX.
21434 *** Therefore, libtool is disabling shared libraries support.  If you
21435 *** really care for shared libraries, you may want to modify your PATH
21436 *** so that a non-GNU linker is found, and then restart.
21437
21438 EOF
21439       fi
21440       ;;
21441
21442     amigaos*)
21443       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)'
21444       hardcode_libdir_flag_spec_F77='-L$libdir'
21445       hardcode_minus_L_F77=yes
21446
21447       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21448       # that the semantics of dynamic libraries on AmigaOS, at least up
21449       # to version 4, is to share data among multiple programs linked
21450       # with the same dynamic library.  Since this doesn't match the
21451       # behavior of shared libraries on other platforms, we can't use
21452       # them.
21453       ld_shlibs_F77=no
21454       ;;
21455
21456     beos*)
21457       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21458         allow_undefined_flag_F77=unsupported
21459         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21460         # support --undefined.  This deserves some investigation.  FIXME
21461         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462       else
21463         ld_shlibs_F77=no
21464       fi
21465       ;;
21466
21467     cygwin* | mingw* | pw32*)
21468       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21469       # as there is no search path for DLLs.
21470       hardcode_libdir_flag_spec_F77='-L$libdir'
21471       allow_undefined_flag_F77=unsupported
21472       always_export_symbols_F77=no
21473       enable_shared_with_static_runtimes_F77=yes
21474       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21475
21476       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21477         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21478         # If the export-symbols file already is a .def file (1st line
21479         # is EXPORTS), use it as is; otherwise, prepend...
21480         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21481           cp $export_symbols $output_objdir/$soname.def;
21482         else
21483           echo EXPORTS > $output_objdir/$soname.def;
21484           cat $export_symbols >> $output_objdir/$soname.def;
21485         fi~
21486         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21487       else
21488         ld_shlibs_F77=no
21489       fi
21490       ;;
21491
21492     interix3*)
21493       hardcode_direct_F77=no
21494       hardcode_shlibpath_var_F77=no
21495       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21496       export_dynamic_flag_spec_F77='${wl}-E'
21497       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21498       # Instead, shared libraries are loaded at an image base (0x10000000 by
21499       # default) and relocated if they conflict, which is a slow very memory
21500       # consuming and fragmenting process.  To avoid this, we pick a random,
21501       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21502       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21503       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'
21504       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'
21505       ;;
21506
21507     linux*)
21508       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21509         tmp_addflag=
21510         case $cc_basename,$host_cpu in
21511         pgcc*)                          # Portland Group C compiler
21512           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'
21513           tmp_addflag=' $pic_flag'
21514           ;;
21515         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21516           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'
21517           tmp_addflag=' $pic_flag -Mnomain' ;;
21518         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21519           tmp_addflag=' -i_dynamic' ;;
21520         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21521           tmp_addflag=' -i_dynamic -nofor_main' ;;
21522         ifc* | ifort*)                  # Intel Fortran compiler
21523           tmp_addflag=' -nofor_main' ;;
21524         esac
21525         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21526
21527         if test $supports_anon_versioning = yes; then
21528           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21529   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21530   $echo "local: *; };" >> $output_objdir/$libname.ver~
21531           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21532         fi
21533       else
21534         ld_shlibs_F77=no
21535       fi
21536       ;;
21537
21538     netbsd*)
21539       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21540         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21541         wlarc=
21542       else
21543         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21544         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21545       fi
21546       ;;
21547
21548     solaris*)
21549       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21550         ld_shlibs_F77=no
21551         cat <<EOF 1>&2
21552
21553 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21554 *** create shared libraries on Solaris systems.  Therefore, libtool
21555 *** is disabling shared libraries support.  We urge you to upgrade GNU
21556 *** binutils to release 2.9.1 or newer.  Another option is to modify
21557 *** your PATH or compiler configuration so that the native linker is
21558 *** used, and then restart.
21559
21560 EOF
21561       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21562         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21563         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21564       else
21565         ld_shlibs_F77=no
21566       fi
21567       ;;
21568
21569     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21570       case `$LD -v 2>&1` in
21571         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21572         ld_shlibs_F77=no
21573         cat <<_LT_EOF 1>&2
21574
21575 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21576 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21577 *** is disabling shared libraries support.  We urge you to upgrade GNU
21578 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21579 *** your PATH or compiler configuration so that the native linker is
21580 *** used, and then restart.
21581
21582 _LT_EOF
21583         ;;
21584         *)
21585           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21586             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21587             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21588             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21589           else
21590             ld_shlibs_F77=no
21591           fi
21592         ;;
21593       esac
21594       ;;
21595
21596     sunos4*)
21597       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21598       wlarc=
21599       hardcode_direct_F77=yes
21600       hardcode_shlibpath_var_F77=no
21601       ;;
21602
21603     *)
21604       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21605         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21606         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21607       else
21608         ld_shlibs_F77=no
21609       fi
21610       ;;
21611     esac
21612
21613     if test "$ld_shlibs_F77" = no; then
21614       runpath_var=
21615       hardcode_libdir_flag_spec_F77=
21616       export_dynamic_flag_spec_F77=
21617       whole_archive_flag_spec_F77=
21618     fi
21619   else
21620     # PORTME fill in a description of your system's linker (not GNU ld)
21621     case $host_os in
21622     aix3*)
21623       allow_undefined_flag_F77=unsupported
21624       always_export_symbols_F77=yes
21625       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'
21626       # Note: this linker hardcodes the directories in LIBPATH if there
21627       # are no directories specified by -L.
21628       hardcode_minus_L_F77=yes
21629       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21630         # Neither direct hardcoding nor static linking is supported with a
21631         # broken collect2.
21632         hardcode_direct_F77=unsupported
21633       fi
21634       ;;
21635
21636     aix4* | aix5*)
21637       if test "$host_cpu" = ia64; then
21638         # On IA64, the linker does run time linking by default, so we don't
21639         # have to do anything special.
21640         aix_use_runtimelinking=no
21641         exp_sym_flag='-Bexport'
21642         no_entry_flag=""
21643       else
21644         # If we're using GNU nm, then we don't want the "-C" option.
21645         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21646         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21647           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'
21648         else
21649           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'
21650         fi
21651         aix_use_runtimelinking=no
21652
21653         # Test if we are trying to use run time linking or normal
21654         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21655         # need to do runtime linking.
21656         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21657           for ld_flag in $LDFLAGS; do
21658           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21659             aix_use_runtimelinking=yes
21660             break
21661           fi
21662           done
21663           ;;
21664         esac
21665
21666         exp_sym_flag='-bexport'
21667         no_entry_flag='-bnoentry'
21668       fi
21669
21670       # When large executables or shared objects are built, AIX ld can
21671       # have problems creating the table of contents.  If linking a library
21672       # or program results in "error TOC overflow" add -mminimal-toc to
21673       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21674       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21675
21676       archive_cmds_F77=''
21677       hardcode_direct_F77=yes
21678       hardcode_libdir_separator_F77=':'
21679       link_all_deplibs_F77=yes
21680
21681       if test "$GCC" = yes; then
21682         case $host_os in aix4.[012]|aix4.[012].*)
21683         # We only want to do this on AIX 4.2 and lower, the check
21684         # below for broken collect2 doesn't work under 4.3+
21685           collect2name=`${CC} -print-prog-name=collect2`
21686           if test -f "$collect2name" && \
21687            strings "$collect2name" | grep resolve_lib_name >/dev/null
21688           then
21689           # We have reworked collect2
21690           hardcode_direct_F77=yes
21691           else
21692           # We have old collect2
21693           hardcode_direct_F77=unsupported
21694           # It fails to find uninstalled libraries when the uninstalled
21695           # path is not listed in the libpath.  Setting hardcode_minus_L
21696           # to unsupported forces relinking
21697           hardcode_minus_L_F77=yes
21698           hardcode_libdir_flag_spec_F77='-L$libdir'
21699           hardcode_libdir_separator_F77=
21700           fi
21701           ;;
21702         esac
21703         shared_flag='-shared'
21704         if test "$aix_use_runtimelinking" = yes; then
21705           shared_flag="$shared_flag "'${wl}-G'
21706         fi
21707       else
21708         # not using gcc
21709         if test "$host_cpu" = ia64; then
21710         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21711         # chokes on -Wl,-G. The following line is correct:
21712           shared_flag='-G'
21713         else
21714           if test "$aix_use_runtimelinking" = yes; then
21715             shared_flag='${wl}-G'
21716           else
21717             shared_flag='${wl}-bM:SRE'
21718           fi
21719         fi
21720       fi
21721
21722       # It seems that -bexpall does not export symbols beginning with
21723       # underscore (_), so it is better to generate a list of symbols to export.
21724       always_export_symbols_F77=yes
21725       if test "$aix_use_runtimelinking" = yes; then
21726         # Warning - without using the other runtime loading flags (-brtl),
21727         # -berok will link without error, but may produce a broken library.
21728         allow_undefined_flag_F77='-berok'
21729        # Determine the default libpath from the value encoded in an empty executable.
21730        cat >conftest.$ac_ext <<_ACEOF
21731       program main
21732
21733       end
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_link") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21750   { (case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_try") 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; } &&
21759          { ac_try='test -s conftest$ac_exeext'
21760   { (case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765   (eval "$ac_try") 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; }; then
21769
21770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21771 }'`
21772 # Check for a 64-bit object if we didn't find anything.
21773 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; }
21774 }'`; fi
21775 else
21776   echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779
21780 fi
21781
21782 rm -f core conftest.err conftest.$ac_objext \
21783       conftest$ac_exeext conftest.$ac_ext
21784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21785
21786        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21787         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"
21788        else
21789         if test "$host_cpu" = ia64; then
21790           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21791           allow_undefined_flag_F77="-z nodefs"
21792           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"
21793         else
21794          # Determine the default libpath from the value encoded in an empty executable.
21795          cat >conftest.$ac_ext <<_ACEOF
21796       program main
21797
21798       end
21799 _ACEOF
21800 rm -f conftest.$ac_objext conftest$ac_exeext
21801 if { (ac_try="$ac_link"
21802 case "(($ac_try" in
21803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804   *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807   (eval "$ac_link") 2>conftest.er1
21808   ac_status=$?
21809   grep -v '^ *+' conftest.er1 >conftest.err
21810   rm -f conftest.er1
21811   cat conftest.err >&5
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } &&
21814          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21815   { (case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_try") 2>&5
21821   ac_status=$?
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); }; } &&
21824          { ac_try='test -s conftest$ac_exeext'
21825   { (case "(($ac_try" in
21826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827   *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830   (eval "$ac_try") 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; }; then
21834
21835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21836 }'`
21837 # Check for a 64-bit object if we didn't find anything.
21838 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; }
21839 }'`; fi
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844
21845 fi
21846
21847 rm -f core conftest.err conftest.$ac_objext \
21848       conftest$ac_exeext conftest.$ac_ext
21849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21850
21851          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21852           # Warning - without using the other run time loading flags,
21853           # -berok will link without error, but may produce a broken library.
21854           no_undefined_flag_F77=' ${wl}-bernotok'
21855           allow_undefined_flag_F77=' ${wl}-berok'
21856           # Exported symbols can be pulled into shared objects from archives
21857           whole_archive_flag_spec_F77='$convenience'
21858           archive_cmds_need_lc_F77=yes
21859           # This is similar to how AIX traditionally builds its shared libraries.
21860           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'
21861         fi
21862       fi
21863       ;;
21864
21865     amigaos*)
21866       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)'
21867       hardcode_libdir_flag_spec_F77='-L$libdir'
21868       hardcode_minus_L_F77=yes
21869       # see comment about different semantics on the GNU ld section
21870       ld_shlibs_F77=no
21871       ;;
21872
21873     bsdi[45]*)
21874       export_dynamic_flag_spec_F77=-rdynamic
21875       ;;
21876
21877     cygwin* | mingw* | pw32*)
21878       # When not using gcc, we currently assume that we are using
21879       # Microsoft Visual C++.
21880       # hardcode_libdir_flag_spec is actually meaningless, as there is
21881       # no search path for DLLs.
21882       hardcode_libdir_flag_spec_F77=' '
21883       allow_undefined_flag_F77=unsupported
21884       # Tell ltmain to make .lib files, not .a files.
21885       libext=lib
21886       # Tell ltmain to make .dll files, not .so files.
21887       shrext_cmds=".dll"
21888       # FIXME: Setting linknames here is a bad hack.
21889       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21890       # The linker will automatically build a .lib file if we build a DLL.
21891       old_archive_From_new_cmds_F77='true'
21892       # FIXME: Should let the user specify the lib program.
21893       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21894       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21895       enable_shared_with_static_runtimes_F77=yes
21896       ;;
21897
21898     darwin* | rhapsody*)
21899       case $host_os in
21900         rhapsody* | darwin1.[012])
21901          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21902          ;;
21903        *) # Darwin 1.3 on
21904          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21905            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21906          else
21907            case ${MACOSX_DEPLOYMENT_TARGET} in
21908              10.[012])
21909                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21910                ;;
21911              10.*)
21912                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21913                ;;
21914            esac
21915          fi
21916          ;;
21917       esac
21918       archive_cmds_need_lc_F77=no
21919       hardcode_direct_F77=no
21920       hardcode_automatic_F77=yes
21921       hardcode_shlibpath_var_F77=unsupported
21922       whole_archive_flag_spec_F77=''
21923       link_all_deplibs_F77=yes
21924     if test "$GCC" = yes ; then
21925         output_verbose_link_cmd='echo'
21926         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21927       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21928       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21929       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}'
21930       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}'
21931     else
21932       case $cc_basename in
21933         xlc*)
21934          output_verbose_link_cmd='echo'
21935          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21936          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21937           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21938          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}'
21939           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}'
21940           ;;
21941        *)
21942          ld_shlibs_F77=no
21943           ;;
21944       esac
21945     fi
21946       ;;
21947
21948     dgux*)
21949       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21950       hardcode_libdir_flag_spec_F77='-L$libdir'
21951       hardcode_shlibpath_var_F77=no
21952       ;;
21953
21954     freebsd1*)
21955       ld_shlibs_F77=no
21956       ;;
21957
21958     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21959     # support.  Future versions do this automatically, but an explicit c++rt0.o
21960     # does not break anything, and helps significantly (at the cost of a little
21961     # extra space).
21962     freebsd2.2*)
21963       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21964       hardcode_libdir_flag_spec_F77='-R$libdir'
21965       hardcode_direct_F77=yes
21966       hardcode_shlibpath_var_F77=no
21967       ;;
21968
21969     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21970     freebsd2*)
21971       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21972       hardcode_direct_F77=yes
21973       hardcode_minus_L_F77=yes
21974       hardcode_shlibpath_var_F77=no
21975       ;;
21976
21977     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21978     freebsd* | kfreebsd*-gnu | dragonfly*)
21979       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21980       hardcode_libdir_flag_spec_F77='-R$libdir'
21981       hardcode_direct_F77=yes
21982       hardcode_shlibpath_var_F77=no
21983       ;;
21984
21985     hpux9*)
21986       if test "$GCC" = yes; then
21987         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'
21988       else
21989         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'
21990       fi
21991       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21992       hardcode_libdir_separator_F77=:
21993       hardcode_direct_F77=yes
21994
21995       # hardcode_minus_L: Not really in the search PATH,
21996       # but as the default location of the library.
21997       hardcode_minus_L_F77=yes
21998       export_dynamic_flag_spec_F77='${wl}-E'
21999       ;;
22000
22001     hpux10*)
22002       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22003         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22004       else
22005         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22006       fi
22007       if test "$with_gnu_ld" = no; then
22008         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22009         hardcode_libdir_separator_F77=:
22010
22011         hardcode_direct_F77=yes
22012         export_dynamic_flag_spec_F77='${wl}-E'
22013
22014         # hardcode_minus_L: Not really in the search PATH,
22015         # but as the default location of the library.
22016         hardcode_minus_L_F77=yes
22017       fi
22018       ;;
22019
22020     hpux11*)
22021       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22022         case $host_cpu in
22023         hppa*64*)
22024           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22025           ;;
22026         ia64*)
22027           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22028           ;;
22029         *)
22030           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22031           ;;
22032         esac
22033       else
22034         case $host_cpu in
22035         hppa*64*)
22036           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22037           ;;
22038         ia64*)
22039           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22040           ;;
22041         *)
22042           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22043           ;;
22044         esac
22045       fi
22046       if test "$with_gnu_ld" = no; then
22047         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22048         hardcode_libdir_separator_F77=:
22049
22050         case $host_cpu in
22051         hppa*64*|ia64*)
22052           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22053           hardcode_direct_F77=no
22054           hardcode_shlibpath_var_F77=no
22055           ;;
22056         *)
22057           hardcode_direct_F77=yes
22058           export_dynamic_flag_spec_F77='${wl}-E'
22059
22060           # hardcode_minus_L: Not really in the search PATH,
22061           # but as the default location of the library.
22062           hardcode_minus_L_F77=yes
22063           ;;
22064         esac
22065       fi
22066       ;;
22067
22068     irix5* | irix6* | nonstopux*)
22069       if test "$GCC" = yes; then
22070         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'
22071       else
22072         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'
22073         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22074       fi
22075       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22076       hardcode_libdir_separator_F77=:
22077       link_all_deplibs_F77=yes
22078       ;;
22079
22080     netbsd*)
22081       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22082         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22083       else
22084         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22085       fi
22086       hardcode_libdir_flag_spec_F77='-R$libdir'
22087       hardcode_direct_F77=yes
22088       hardcode_shlibpath_var_F77=no
22089       ;;
22090
22091     newsos6)
22092       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093       hardcode_direct_F77=yes
22094       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22095       hardcode_libdir_separator_F77=:
22096       hardcode_shlibpath_var_F77=no
22097       ;;
22098
22099     openbsd*)
22100       hardcode_direct_F77=yes
22101       hardcode_shlibpath_var_F77=no
22102       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22103         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22104         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22105         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22106         export_dynamic_flag_spec_F77='${wl}-E'
22107       else
22108        case $host_os in
22109          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22110            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22111            hardcode_libdir_flag_spec_F77='-R$libdir'
22112            ;;
22113          *)
22114            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22115            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22116            ;;
22117        esac
22118       fi
22119       ;;
22120
22121     os2*)
22122       hardcode_libdir_flag_spec_F77='-L$libdir'
22123       hardcode_minus_L_F77=yes
22124       allow_undefined_flag_F77=unsupported
22125       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'
22126       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22127       ;;
22128
22129     osf3*)
22130       if test "$GCC" = yes; then
22131         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22132         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'
22133       else
22134         allow_undefined_flag_F77=' -expect_unresolved \*'
22135         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'
22136       fi
22137       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22138       hardcode_libdir_separator_F77=:
22139       ;;
22140
22141     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22142       if test "$GCC" = yes; then
22143         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22144         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'
22145         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22146       else
22147         allow_undefined_flag_F77=' -expect_unresolved \*'
22148         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'
22149         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~
22150         $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'
22151
22152         # Both c and cxx compiler support -rpath directly
22153         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22154       fi
22155       hardcode_libdir_separator_F77=:
22156       ;;
22157
22158     solaris*)
22159       no_undefined_flag_F77=' -z text'
22160       if test "$GCC" = yes; then
22161         wlarc='${wl}'
22162         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22163         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22164           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22165       else
22166         wlarc=''
22167         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22168         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22169         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22170       fi
22171       hardcode_libdir_flag_spec_F77='-R$libdir'
22172       hardcode_shlibpath_var_F77=no
22173       case $host_os in
22174       solaris2.[0-5] | solaris2.[0-5].*) ;;
22175       *)
22176         # The compiler driver will combine linker options so we
22177         # cannot just pass the convience library names through
22178         # without $wl, iff we do not link with $LD.
22179         # Luckily, gcc supports the same syntax we need for Sun Studio.
22180         # Supported since Solaris 2.6 (maybe 2.5.1?)
22181         case $wlarc in
22182         '')
22183           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22184         *)
22185           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' ;;
22186         esac ;;
22187       esac
22188       link_all_deplibs_F77=yes
22189       ;;
22190
22191     sunos4*)
22192       if test "x$host_vendor" = xsequent; then
22193         # Use $CC to link under sequent, because it throws in some extra .o
22194         # files that make .init and .fini sections work.
22195         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22196       else
22197         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22198       fi
22199       hardcode_libdir_flag_spec_F77='-L$libdir'
22200       hardcode_direct_F77=yes
22201       hardcode_minus_L_F77=yes
22202       hardcode_shlibpath_var_F77=no
22203       ;;
22204
22205     sysv4)
22206       case $host_vendor in
22207         sni)
22208           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22209           hardcode_direct_F77=yes # is this really true???
22210         ;;
22211         siemens)
22212           ## LD is ld it makes a PLAMLIB
22213           ## CC just makes a GrossModule.
22214           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22215           reload_cmds_F77='$CC -r -o $output$reload_objs'
22216           hardcode_direct_F77=no
22217         ;;
22218         motorola)
22219           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22220           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22221         ;;
22222       esac
22223       runpath_var='LD_RUN_PATH'
22224       hardcode_shlibpath_var_F77=no
22225       ;;
22226
22227     sysv4.3*)
22228       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22229       hardcode_shlibpath_var_F77=no
22230       export_dynamic_flag_spec_F77='-Bexport'
22231       ;;
22232
22233     sysv4*MP*)
22234       if test -d /usr/nec; then
22235         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22236         hardcode_shlibpath_var_F77=no
22237         runpath_var=LD_RUN_PATH
22238         hardcode_runpath_var=yes
22239         ld_shlibs_F77=yes
22240       fi
22241       ;;
22242
22243     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22244       no_undefined_flag_F77='${wl}-z,text'
22245       archive_cmds_need_lc_F77=no
22246       hardcode_shlibpath_var_F77=no
22247       runpath_var='LD_RUN_PATH'
22248
22249       if test "$GCC" = yes; then
22250         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22251         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22252       else
22253         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22254         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22255       fi
22256       ;;
22257
22258     sysv5* | sco3.2v5* | sco5v6*)
22259       # Note: We can NOT use -z defs as we might desire, because we do not
22260       # link with -lc, and that would cause any symbols used from libc to
22261       # always be unresolved, which means just about no library would
22262       # ever link correctly.  If we're not using GNU ld we use -z text
22263       # though, which does catch some bad symbols but isn't as heavy-handed
22264       # as -z defs.
22265       no_undefined_flag_F77='${wl}-z,text'
22266       allow_undefined_flag_F77='${wl}-z,nodefs'
22267       archive_cmds_need_lc_F77=no
22268       hardcode_shlibpath_var_F77=no
22269       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22270       hardcode_libdir_separator_F77=':'
22271       link_all_deplibs_F77=yes
22272       export_dynamic_flag_spec_F77='${wl}-Bexport'
22273       runpath_var='LD_RUN_PATH'
22274
22275       if test "$GCC" = yes; then
22276         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278       else
22279         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22280         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22281       fi
22282       ;;
22283
22284     uts4*)
22285       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22286       hardcode_libdir_flag_spec_F77='-L$libdir'
22287       hardcode_shlibpath_var_F77=no
22288       ;;
22289
22290     *)
22291       ld_shlibs_F77=no
22292       ;;
22293     esac
22294   fi
22295
22296 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22297 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22298 test "$ld_shlibs_F77" = no && can_build_shared=no
22299
22300 #
22301 # Do we need to explicitly link libc?
22302 #
22303 case "x$archive_cmds_need_lc_F77" in
22304 x|xyes)
22305   # Assume -lc should be added
22306   archive_cmds_need_lc_F77=yes
22307
22308   if test "$enable_shared" = yes && test "$GCC" = yes; then
22309     case $archive_cmds_F77 in
22310     *'~'*)
22311       # FIXME: we may have to deal with multi-command sequences.
22312       ;;
22313     '$CC '*)
22314       # Test whether the compiler implicitly links with -lc since on some
22315       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22316       # to ld, don't add -lc before -lgcc.
22317       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22318 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22319       $rm conftest*
22320       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22321
22322       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323   (eval $ac_compile) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } 2>conftest.err; then
22327         soname=conftest
22328         lib=conftest
22329         libobjs=conftest.$ac_objext
22330         deplibs=
22331         wl=$lt_prog_compiler_wl_F77
22332         pic_flag=$lt_prog_compiler_pic_F77
22333         compiler_flags=-v
22334         linker_flags=-v
22335         verstring=
22336         output_objdir=.
22337         libname=conftest
22338         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22339         allow_undefined_flag_F77=
22340         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22341   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22342   ac_status=$?
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); }
22345         then
22346           archive_cmds_need_lc_F77=no
22347         else
22348           archive_cmds_need_lc_F77=yes
22349         fi
22350         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22351       else
22352         cat conftest.err 1>&5
22353       fi
22354       $rm conftest*
22355       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22356 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22357       ;;
22358     esac
22359   fi
22360   ;;
22361 esac
22362
22363 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22364 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22365 library_names_spec=
22366 libname_spec='lib$name'
22367 soname_spec=
22368 shrext_cmds=".so"
22369 postinstall_cmds=
22370 postuninstall_cmds=
22371 finish_cmds=
22372 finish_eval=
22373 shlibpath_var=
22374 shlibpath_overrides_runpath=unknown
22375 version_type=none
22376 dynamic_linker="$host_os ld.so"
22377 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22378 if test "$GCC" = yes; then
22379   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22380   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22381     # if the path contains ";" then we assume it to be the separator
22382     # otherwise default to the standard path separator (i.e. ":") - it is
22383     # assumed that no part of a normal pathname contains ";" but that should
22384     # okay in the real world where ";" in dirpaths is itself problematic.
22385     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22386   else
22387     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22388   fi
22389 else
22390   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22391 fi
22392 need_lib_prefix=unknown
22393 hardcode_into_libs=no
22394
22395 # when you set need_version to no, make sure it does not cause -set_version
22396 # flags to be left without arguments
22397 need_version=unknown
22398
22399 case $host_os in
22400 aix3*)
22401   version_type=linux
22402   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22403   shlibpath_var=LIBPATH
22404
22405   # AIX 3 has no versioning support, so we append a major version to the name.
22406   soname_spec='${libname}${release}${shared_ext}$major'
22407   ;;
22408
22409 aix4* | aix5*)
22410   version_type=linux
22411   need_lib_prefix=no
22412   need_version=no
22413   hardcode_into_libs=yes
22414   if test "$host_cpu" = ia64; then
22415     # AIX 5 supports IA64
22416     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22417     shlibpath_var=LD_LIBRARY_PATH
22418   else
22419     # With GCC up to 2.95.x, collect2 would create an import file
22420     # for dependence libraries.  The import file would start with
22421     # the line `#! .'.  This would cause the generated library to
22422     # depend on `.', always an invalid library.  This was fixed in
22423     # development snapshots of GCC prior to 3.0.
22424     case $host_os in
22425       aix4 | aix4.[01] | aix4.[01].*)
22426       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22427            echo ' yes '
22428            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22429         :
22430       else
22431         can_build_shared=no
22432       fi
22433       ;;
22434     esac
22435     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22436     # soname into executable. Probably we can add versioning support to
22437     # collect2, so additional links can be useful in future.
22438     if test "$aix_use_runtimelinking" = yes; then
22439       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22440       # instead of lib<name>.a to let people know that these are not
22441       # typical AIX shared libraries.
22442       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22443     else
22444       # We preserve .a as extension for shared libraries through AIX4.2
22445       # and later when we are not doing run time linking.
22446       library_names_spec='${libname}${release}.a $libname.a'
22447       soname_spec='${libname}${release}${shared_ext}$major'
22448     fi
22449     shlibpath_var=LIBPATH
22450   fi
22451   ;;
22452
22453 amigaos*)
22454   library_names_spec='$libname.ixlibrary $libname.a'
22455   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22456   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'
22457   ;;
22458
22459 beos*)
22460   library_names_spec='${libname}${shared_ext}'
22461   dynamic_linker="$host_os ld.so"
22462   shlibpath_var=LIBRARY_PATH
22463   ;;
22464
22465 bsdi[45]*)
22466   version_type=linux
22467   need_version=no
22468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22469   soname_spec='${libname}${release}${shared_ext}$major'
22470   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22471   shlibpath_var=LD_LIBRARY_PATH
22472   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22473   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22474   # the default ld.so.conf also contains /usr/contrib/lib and
22475   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22476   # libtool to hard-code these into programs
22477   ;;
22478
22479 cygwin* | mingw* | pw32*)
22480   version_type=windows
22481   shrext_cmds=".dll"
22482   need_version=no
22483   need_lib_prefix=no
22484
22485   case $GCC,$host_os in
22486   yes,cygwin* | yes,mingw* | yes,pw32*)
22487     library_names_spec='$libname.dll.a'
22488     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22489     postinstall_cmds='base_file=`basename \${file}`~
22490       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22491       dldir=$destdir/`dirname \$dlpath`~
22492       test -d \$dldir || mkdir -p \$dldir~
22493       $install_prog $dir/$dlname \$dldir/$dlname~
22494       chmod a+x \$dldir/$dlname'
22495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22496       dlpath=$dir/\$dldll~
22497        $rm \$dlpath'
22498     shlibpath_overrides_runpath=yes
22499
22500     case $host_os in
22501     cygwin*)
22502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22504       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22505       ;;
22506     mingw*)
22507       # MinGW DLLs use traditional 'lib' prefix
22508       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22509       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22510       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22511         # It is most probably a Windows format PATH printed by
22512         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22513         # path with ; separators, and with drive letters. We can handle the
22514         # drive letters (cygwin fileutils understands them), so leave them,
22515         # especially as we might pass files found there to a mingw objdump,
22516         # which wouldn't understand a cygwinified path. Ahh.
22517         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22518       else
22519         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22520       fi
22521       ;;
22522     pw32*)
22523       # pw32 DLLs use 'pw' prefix rather than 'lib'
22524       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22525       ;;
22526     esac
22527     ;;
22528
22529   *)
22530     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22531     ;;
22532   esac
22533   dynamic_linker='Win32 ld.exe'
22534   # FIXME: first we should search . and the directory the executable is in
22535   shlibpath_var=PATH
22536   ;;
22537
22538 darwin* | rhapsody*)
22539   dynamic_linker="$host_os dyld"
22540   version_type=darwin
22541   need_lib_prefix=no
22542   need_version=no
22543   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22544   soname_spec='${libname}${release}${major}$shared_ext'
22545   shlibpath_overrides_runpath=yes
22546   shlibpath_var=DYLD_LIBRARY_PATH
22547   shrext_cmds='.dylib'
22548   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22549   if test "$GCC" = yes; then
22550     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"`
22551   else
22552     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22553   fi
22554   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22555   ;;
22556
22557 dgux*)
22558   version_type=linux
22559   need_lib_prefix=no
22560   need_version=no
22561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22562   soname_spec='${libname}${release}${shared_ext}$major'
22563   shlibpath_var=LD_LIBRARY_PATH
22564   ;;
22565
22566 freebsd1*)
22567   dynamic_linker=no
22568   ;;
22569
22570 kfreebsd*-gnu)
22571   version_type=linux
22572   need_lib_prefix=no
22573   need_version=no
22574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22575   soname_spec='${libname}${release}${shared_ext}$major'
22576   shlibpath_var=LD_LIBRARY_PATH
22577   shlibpath_overrides_runpath=no
22578   hardcode_into_libs=yes
22579   dynamic_linker='GNU ld.so'
22580   ;;
22581
22582 freebsd* | dragonfly*)
22583   # DragonFly does not have aout.  When/if they implement a new
22584   # versioning mechanism, adjust this.
22585   if test -x /usr/bin/objformat; then
22586     objformat=`/usr/bin/objformat`
22587   else
22588     case $host_os in
22589     freebsd[123]*) objformat=aout ;;
22590     *) objformat=elf ;;
22591     esac
22592   fi
22593   version_type=freebsd-$objformat
22594   case $version_type in
22595     freebsd-elf*)
22596       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22597       need_version=no
22598       need_lib_prefix=no
22599       ;;
22600     freebsd-*)
22601       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22602       need_version=yes
22603       ;;
22604   esac
22605   shlibpath_var=LD_LIBRARY_PATH
22606   case $host_os in
22607   freebsd2*)
22608     shlibpath_overrides_runpath=yes
22609     ;;
22610   freebsd3.[01]* | freebsdelf3.[01]*)
22611     shlibpath_overrides_runpath=yes
22612     hardcode_into_libs=yes
22613     ;;
22614   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22615   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22616     shlibpath_overrides_runpath=no
22617     hardcode_into_libs=yes
22618     ;;
22619   freebsd*) # from 4.6 on
22620     shlibpath_overrides_runpath=yes
22621     hardcode_into_libs=yes
22622     ;;
22623   esac
22624   ;;
22625
22626 gnu*)
22627   version_type=linux
22628   need_lib_prefix=no
22629   need_version=no
22630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22631   soname_spec='${libname}${release}${shared_ext}$major'
22632   shlibpath_var=LD_LIBRARY_PATH
22633   hardcode_into_libs=yes
22634   ;;
22635
22636 hpux9* | hpux10* | hpux11*)
22637   # Give a soname corresponding to the major version so that dld.sl refuses to
22638   # link against other versions.
22639   version_type=sunos
22640   need_lib_prefix=no
22641   need_version=no
22642   case $host_cpu in
22643   ia64*)
22644     shrext_cmds='.so'
22645     hardcode_into_libs=yes
22646     dynamic_linker="$host_os dld.so"
22647     shlibpath_var=LD_LIBRARY_PATH
22648     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650     soname_spec='${libname}${release}${shared_ext}$major'
22651     if test "X$HPUX_IA64_MODE" = X32; then
22652       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22653     else
22654       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22655     fi
22656     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22657     ;;
22658    hppa*64*)
22659      shrext_cmds='.sl'
22660      hardcode_into_libs=yes
22661      dynamic_linker="$host_os dld.sl"
22662      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22663      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22664      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22665      soname_spec='${libname}${release}${shared_ext}$major'
22666      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22667      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22668      ;;
22669    *)
22670     shrext_cmds='.sl'
22671     dynamic_linker="$host_os dld.sl"
22672     shlibpath_var=SHLIB_PATH
22673     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675     soname_spec='${libname}${release}${shared_ext}$major'
22676     ;;
22677   esac
22678   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22679   postinstall_cmds='chmod 555 $lib'
22680   ;;
22681
22682 interix3*)
22683   version_type=linux
22684   need_lib_prefix=no
22685   need_version=no
22686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22687   soname_spec='${libname}${release}${shared_ext}$major'
22688   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22689   shlibpath_var=LD_LIBRARY_PATH
22690   shlibpath_overrides_runpath=no
22691   hardcode_into_libs=yes
22692   ;;
22693
22694 irix5* | irix6* | nonstopux*)
22695   case $host_os in
22696     nonstopux*) version_type=nonstopux ;;
22697     *)
22698         if test "$lt_cv_prog_gnu_ld" = yes; then
22699                 version_type=linux
22700         else
22701                 version_type=irix
22702         fi ;;
22703   esac
22704   need_lib_prefix=no
22705   need_version=no
22706   soname_spec='${libname}${release}${shared_ext}$major'
22707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22708   case $host_os in
22709   irix5* | nonstopux*)
22710     libsuff= shlibsuff=
22711     ;;
22712   *)
22713     case $LD in # libtool.m4 will add one of these switches to LD
22714     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22715       libsuff= shlibsuff= libmagic=32-bit;;
22716     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22717       libsuff=32 shlibsuff=N32 libmagic=N32;;
22718     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22719       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22720     *) libsuff= shlibsuff= libmagic=never-match;;
22721     esac
22722     ;;
22723   esac
22724   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22725   shlibpath_overrides_runpath=no
22726   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22727   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22728   hardcode_into_libs=yes
22729   ;;
22730
22731 # No shared lib support for Linux oldld, aout, or coff.
22732 linux*oldld* | linux*aout* | linux*coff*)
22733   dynamic_linker=no
22734   ;;
22735
22736 # This must be Linux ELF.
22737 linux*)
22738   version_type=linux
22739   need_lib_prefix=no
22740   need_version=no
22741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22742   soname_spec='${libname}${release}${shared_ext}$major'
22743   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22744   shlibpath_var=LD_LIBRARY_PATH
22745   shlibpath_overrides_runpath=no
22746   # This implies no fast_install, which is unacceptable.
22747   # Some rework will be needed to allow for fast_install
22748   # before this can be enabled.
22749   hardcode_into_libs=yes
22750
22751   # Append ld.so.conf contents to the search path
22752   if test -f /etc/ld.so.conf; then
22753     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' ' '`
22754     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22755   fi
22756
22757   # We used to test for /lib/ld.so.1 and disable shared libraries on
22758   # powerpc, because MkLinux only supported shared libraries with the
22759   # GNU dynamic linker.  Since this was broken with cross compilers,
22760   # most powerpc-linux boxes support dynamic linking these days and
22761   # people can always --disable-shared, the test was removed, and we
22762   # assume the GNU/Linux dynamic linker is in use.
22763   dynamic_linker='GNU/Linux ld.so'
22764   ;;
22765
22766 knetbsd*-gnu)
22767   version_type=linux
22768   need_lib_prefix=no
22769   need_version=no
22770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22771   soname_spec='${libname}${release}${shared_ext}$major'
22772   shlibpath_var=LD_LIBRARY_PATH
22773   shlibpath_overrides_runpath=no
22774   hardcode_into_libs=yes
22775   dynamic_linker='GNU ld.so'
22776   ;;
22777
22778 netbsd*)
22779   version_type=sunos
22780   need_lib_prefix=no
22781   need_version=no
22782   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22784     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22785     dynamic_linker='NetBSD (a.out) ld.so'
22786   else
22787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22788     soname_spec='${libname}${release}${shared_ext}$major'
22789     dynamic_linker='NetBSD ld.elf_so'
22790   fi
22791   shlibpath_var=LD_LIBRARY_PATH
22792   shlibpath_overrides_runpath=yes
22793   hardcode_into_libs=yes
22794   ;;
22795
22796 newsos6)
22797   version_type=linux
22798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22799   shlibpath_var=LD_LIBRARY_PATH
22800   shlibpath_overrides_runpath=yes
22801   ;;
22802
22803 nto-qnx*)
22804   version_type=linux
22805   need_lib_prefix=no
22806   need_version=no
22807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808   soname_spec='${libname}${release}${shared_ext}$major'
22809   shlibpath_var=LD_LIBRARY_PATH
22810   shlibpath_overrides_runpath=yes
22811   ;;
22812
22813 openbsd*)
22814   version_type=sunos
22815   sys_lib_dlsearch_path_spec="/usr/lib"
22816   need_lib_prefix=no
22817   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22818   case $host_os in
22819     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22820     *)                         need_version=no  ;;
22821   esac
22822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22824   shlibpath_var=LD_LIBRARY_PATH
22825   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22826     case $host_os in
22827       openbsd2.[89] | openbsd2.[89].*)
22828         shlibpath_overrides_runpath=no
22829         ;;
22830       *)
22831         shlibpath_overrides_runpath=yes
22832         ;;
22833       esac
22834   else
22835     shlibpath_overrides_runpath=yes
22836   fi
22837   ;;
22838
22839 os2*)
22840   libname_spec='$name'
22841   shrext_cmds=".dll"
22842   need_lib_prefix=no
22843   library_names_spec='$libname${shared_ext} $libname.a'
22844   dynamic_linker='OS/2 ld.exe'
22845   shlibpath_var=LIBPATH
22846   ;;
22847
22848 osf3* | osf4* | osf5*)
22849   version_type=osf
22850   need_lib_prefix=no
22851   need_version=no
22852   soname_spec='${libname}${release}${shared_ext}$major'
22853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22854   shlibpath_var=LD_LIBRARY_PATH
22855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22857   ;;
22858
22859 solaris*)
22860   version_type=linux
22861   need_lib_prefix=no
22862   need_version=no
22863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22864   soname_spec='${libname}${release}${shared_ext}$major'
22865   shlibpath_var=LD_LIBRARY_PATH
22866   shlibpath_overrides_runpath=yes
22867   hardcode_into_libs=yes
22868   # ldd complains unless libraries are executable
22869   postinstall_cmds='chmod +x $lib'
22870   ;;
22871
22872 sunos4*)
22873   version_type=sunos
22874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22875   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22876   shlibpath_var=LD_LIBRARY_PATH
22877   shlibpath_overrides_runpath=yes
22878   if test "$with_gnu_ld" = yes; then
22879     need_lib_prefix=no
22880   fi
22881   need_version=yes
22882   ;;
22883
22884 sysv4 | sysv4.3*)
22885   version_type=linux
22886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887   soname_spec='${libname}${release}${shared_ext}$major'
22888   shlibpath_var=LD_LIBRARY_PATH
22889   case $host_vendor in
22890     sni)
22891       shlibpath_overrides_runpath=no
22892       need_lib_prefix=no
22893       export_dynamic_flag_spec='${wl}-Blargedynsym'
22894       runpath_var=LD_RUN_PATH
22895       ;;
22896     siemens)
22897       need_lib_prefix=no
22898       ;;
22899     motorola)
22900       need_lib_prefix=no
22901       need_version=no
22902       shlibpath_overrides_runpath=no
22903       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22904       ;;
22905   esac
22906   ;;
22907
22908 sysv4*MP*)
22909   if test -d /usr/nec ;then
22910     version_type=linux
22911     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22912     soname_spec='$libname${shared_ext}.$major'
22913     shlibpath_var=LD_LIBRARY_PATH
22914   fi
22915   ;;
22916
22917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22918   version_type=freebsd-elf
22919   need_lib_prefix=no
22920   need_version=no
22921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22922   soname_spec='${libname}${release}${shared_ext}$major'
22923   shlibpath_var=LD_LIBRARY_PATH
22924   hardcode_into_libs=yes
22925   if test "$with_gnu_ld" = yes; then
22926     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22927     shlibpath_overrides_runpath=no
22928   else
22929     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22930     shlibpath_overrides_runpath=yes
22931     case $host_os in
22932       sco3.2v5*)
22933         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22934         ;;
22935     esac
22936   fi
22937   sys_lib_dlsearch_path_spec='/usr/lib'
22938   ;;
22939
22940 uts4*)
22941   version_type=linux
22942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943   soname_spec='${libname}${release}${shared_ext}$major'
22944   shlibpath_var=LD_LIBRARY_PATH
22945   ;;
22946
22947 *)
22948   dynamic_linker=no
22949   ;;
22950 esac
22951 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22952 echo "${ECHO_T}$dynamic_linker" >&6; }
22953 test "$dynamic_linker" = no && can_build_shared=no
22954
22955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22956 if test "$GCC" = yes; then
22957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22958 fi
22959
22960 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22962 hardcode_action_F77=
22963 if test -n "$hardcode_libdir_flag_spec_F77" || \
22964    test -n "$runpath_var_F77" || \
22965    test "X$hardcode_automatic_F77" = "Xyes" ; then
22966
22967   # We can hardcode non-existant directories.
22968   if test "$hardcode_direct_F77" != no &&
22969      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22970      # have to relink, otherwise we might link with an installed library
22971      # when we should be linking with a yet-to-be-installed one
22972      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22973      test "$hardcode_minus_L_F77" != no; then
22974     # Linking always hardcodes the temporary library directory.
22975     hardcode_action_F77=relink
22976   else
22977     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22978     hardcode_action_F77=immediate
22979   fi
22980 else
22981   # We cannot hardcode anything, or else we can only hardcode existing
22982   # directories.
22983   hardcode_action_F77=unsupported
22984 fi
22985 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22986 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22987
22988 if test "$hardcode_action_F77" = relink; then
22989   # Fast installation is not supported
22990   enable_fast_install=no
22991 elif test "$shlibpath_overrides_runpath" = yes ||
22992      test "$enable_shared" = no; then
22993   # Fast installation is not necessary
22994   enable_fast_install=needless
22995 fi
22996
22997
22998 # The else clause should only fire when bootstrapping the
22999 # libtool distribution, otherwise you forgot to ship ltmain.sh
23000 # with your package, and you will get complaints that there are
23001 # no rules to generate ltmain.sh.
23002 if test -f "$ltmain"; then
23003   # See if we are running on zsh, and set the options which allow our commands through
23004   # without removal of \ escapes.
23005   if test -n "${ZSH_VERSION+set}" ; then
23006     setopt NO_GLOB_SUBST
23007   fi
23008   # Now quote all the things that may contain metacharacters while being
23009   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23010   # variables and quote the copies for generation of the libtool script.
23011   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23012     SED SHELL STRIP \
23013     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23014     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23015     deplibs_check_method reload_flag reload_cmds need_locks \
23016     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23017     lt_cv_sys_global_symbol_to_c_name_address \
23018     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23019     old_postinstall_cmds old_postuninstall_cmds \
23020     compiler_F77 \
23021     CC_F77 \
23022     LD_F77 \
23023     lt_prog_compiler_wl_F77 \
23024     lt_prog_compiler_pic_F77 \
23025     lt_prog_compiler_static_F77 \
23026     lt_prog_compiler_no_builtin_flag_F77 \
23027     export_dynamic_flag_spec_F77 \
23028     thread_safe_flag_spec_F77 \
23029     whole_archive_flag_spec_F77 \
23030     enable_shared_with_static_runtimes_F77 \
23031     old_archive_cmds_F77 \
23032     old_archive_from_new_cmds_F77 \
23033     predep_objects_F77 \
23034     postdep_objects_F77 \
23035     predeps_F77 \
23036     postdeps_F77 \
23037     compiler_lib_search_path_F77 \
23038     archive_cmds_F77 \
23039     archive_expsym_cmds_F77 \
23040     postinstall_cmds_F77 \
23041     postuninstall_cmds_F77 \
23042     old_archive_from_expsyms_cmds_F77 \
23043     allow_undefined_flag_F77 \
23044     no_undefined_flag_F77 \
23045     export_symbols_cmds_F77 \
23046     hardcode_libdir_flag_spec_F77 \
23047     hardcode_libdir_flag_spec_ld_F77 \
23048     hardcode_libdir_separator_F77 \
23049     hardcode_automatic_F77 \
23050     module_cmds_F77 \
23051     module_expsym_cmds_F77 \
23052     lt_cv_prog_compiler_c_o_F77 \
23053     exclude_expsyms_F77 \
23054     include_expsyms_F77; do
23055
23056     case $var in
23057     old_archive_cmds_F77 | \
23058     old_archive_from_new_cmds_F77 | \
23059     archive_cmds_F77 | \
23060     archive_expsym_cmds_F77 | \
23061     module_cmds_F77 | \
23062     module_expsym_cmds_F77 | \
23063     old_archive_from_expsyms_cmds_F77 | \
23064     export_symbols_cmds_F77 | \
23065     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23066     postinstall_cmds | postuninstall_cmds | \
23067     old_postinstall_cmds | old_postuninstall_cmds | \
23068     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23069       # Double-quote double-evaled strings.
23070       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23071       ;;
23072     *)
23073       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23074       ;;
23075     esac
23076   done
23077
23078   case $lt_echo in
23079   *'\$0 --fallback-echo"')
23080     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23081     ;;
23082   esac
23083
23084 cfgfile="$ofile"
23085
23086   cat <<__EOF__ >> "$cfgfile"
23087 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23088
23089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23090
23091 # Shell to use when invoking shell scripts.
23092 SHELL=$lt_SHELL
23093
23094 # Whether or not to build shared libraries.
23095 build_libtool_libs=$enable_shared
23096
23097 # Whether or not to build static libraries.
23098 build_old_libs=$enable_static
23099
23100 # Whether or not to add -lc for building shared libraries.
23101 build_libtool_need_lc=$archive_cmds_need_lc_F77
23102
23103 # Whether or not to disallow shared libs when runtime libs are static
23104 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23105
23106 # Whether or not to optimize for fast installation.
23107 fast_install=$enable_fast_install
23108
23109 # The host system.
23110 host_alias=$host_alias
23111 host=$host
23112 host_os=$host_os
23113
23114 # The build system.
23115 build_alias=$build_alias
23116 build=$build
23117 build_os=$build_os
23118
23119 # An echo program that does not interpret backslashes.
23120 echo=$lt_echo
23121
23122 # The archiver.
23123 AR=$lt_AR
23124 AR_FLAGS=$lt_AR_FLAGS
23125
23126 # A C compiler.
23127 LTCC=$lt_LTCC
23128
23129 # LTCC compiler flags.
23130 LTCFLAGS=$lt_LTCFLAGS
23131
23132 # A language-specific compiler.
23133 CC=$lt_compiler_F77
23134
23135 # Is the compiler the GNU C compiler?
23136 with_gcc=$GCC_F77
23137
23138 # An ERE matcher.
23139 EGREP=$lt_EGREP
23140
23141 # The linker used to build libraries.
23142 LD=$lt_LD_F77
23143
23144 # Whether we need hard or soft links.
23145 LN_S=$lt_LN_S
23146
23147 # A BSD-compatible nm program.
23148 NM=$lt_NM
23149
23150 # A symbol stripping program
23151 STRIP=$lt_STRIP
23152
23153 # Used to examine libraries when file_magic_cmd begins "file"
23154 MAGIC_CMD=$MAGIC_CMD
23155
23156 # Used on cygwin: DLL creation program.
23157 DLLTOOL="$DLLTOOL"
23158
23159 # Used on cygwin: object dumper.
23160 OBJDUMP="$OBJDUMP"
23161
23162 # Used on cygwin: assembler.
23163 AS="$AS"
23164
23165 # The name of the directory that contains temporary libtool files.
23166 objdir=$objdir
23167
23168 # How to create reloadable object files.
23169 reload_flag=$lt_reload_flag
23170 reload_cmds=$lt_reload_cmds
23171
23172 # How to pass a linker flag through the compiler.
23173 wl=$lt_lt_prog_compiler_wl_F77
23174
23175 # Object file suffix (normally "o").
23176 objext="$ac_objext"
23177
23178 # Old archive suffix (normally "a").
23179 libext="$libext"
23180
23181 # Shared library suffix (normally ".so").
23182 shrext_cmds='$shrext_cmds'
23183
23184 # Executable file suffix (normally "").
23185 exeext="$exeext"
23186
23187 # Additional compiler flags for building library objects.
23188 pic_flag=$lt_lt_prog_compiler_pic_F77
23189 pic_mode=$pic_mode
23190
23191 # What is the maximum length of a command?
23192 max_cmd_len=$lt_cv_sys_max_cmd_len
23193
23194 # Does compiler simultaneously support -c and -o options?
23195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23196
23197 # Must we lock files when doing compilation?
23198 need_locks=$lt_need_locks
23199
23200 # Do we need the lib prefix for modules?
23201 need_lib_prefix=$need_lib_prefix
23202
23203 # Do we need a version for libraries?
23204 need_version=$need_version
23205
23206 # Whether dlopen is supported.
23207 dlopen_support=$enable_dlopen
23208
23209 # Whether dlopen of programs is supported.
23210 dlopen_self=$enable_dlopen_self
23211
23212 # Whether dlopen of statically linked programs is supported.
23213 dlopen_self_static=$enable_dlopen_self_static
23214
23215 # Compiler flag to prevent dynamic linking.
23216 link_static_flag=$lt_lt_prog_compiler_static_F77
23217
23218 # Compiler flag to turn off builtin functions.
23219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23220
23221 # Compiler flag to allow reflexive dlopens.
23222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23223
23224 # Compiler flag to generate shared objects directly from archives.
23225 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23226
23227 # Compiler flag to generate thread-safe objects.
23228 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23229
23230 # Library versioning type.
23231 version_type=$version_type
23232
23233 # Format of library name prefix.
23234 libname_spec=$lt_libname_spec
23235
23236 # List of archive names.  First name is the real one, the rest are links.
23237 # The last name is the one that the linker finds with -lNAME.
23238 library_names_spec=$lt_library_names_spec
23239
23240 # The coded name of the library, if different from the real name.
23241 soname_spec=$lt_soname_spec
23242
23243 # Commands used to build and install an old-style archive.
23244 RANLIB=$lt_RANLIB
23245 old_archive_cmds=$lt_old_archive_cmds_F77
23246 old_postinstall_cmds=$lt_old_postinstall_cmds
23247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23248
23249 # Create an old-style archive from a shared archive.
23250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23251
23252 # Create a temporary old-style archive to link instead of a shared archive.
23253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23254
23255 # Commands used to build and install a shared archive.
23256 archive_cmds=$lt_archive_cmds_F77
23257 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23258 postinstall_cmds=$lt_postinstall_cmds
23259 postuninstall_cmds=$lt_postuninstall_cmds
23260
23261 # Commands used to build a loadable module (assumed same as above if empty)
23262 module_cmds=$lt_module_cmds_F77
23263 module_expsym_cmds=$lt_module_expsym_cmds_F77
23264
23265 # Commands to strip libraries.
23266 old_striplib=$lt_old_striplib
23267 striplib=$lt_striplib
23268
23269 # Dependencies to place before the objects being linked to create a
23270 # shared library.
23271 predep_objects=$lt_predep_objects_F77
23272
23273 # Dependencies to place after the objects being linked to create a
23274 # shared library.
23275 postdep_objects=$lt_postdep_objects_F77
23276
23277 # Dependencies to place before the objects being linked to create a
23278 # shared library.
23279 predeps=$lt_predeps_F77
23280
23281 # Dependencies to place after the objects being linked to create a
23282 # shared library.
23283 postdeps=$lt_postdeps_F77
23284
23285 # The library search path used internally by the compiler when linking
23286 # a shared library.
23287 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23288
23289 # Method to check whether dependent libraries are shared objects.
23290 deplibs_check_method=$lt_deplibs_check_method
23291
23292 # Command to use when deplibs_check_method == file_magic.
23293 file_magic_cmd=$lt_file_magic_cmd
23294
23295 # Flag that allows shared libraries with undefined symbols to be built.
23296 allow_undefined_flag=$lt_allow_undefined_flag_F77
23297
23298 # Flag that forces no undefined symbols.
23299 no_undefined_flag=$lt_no_undefined_flag_F77
23300
23301 # Commands used to finish a libtool library installation in a directory.
23302 finish_cmds=$lt_finish_cmds
23303
23304 # Same as above, but a single script fragment to be evaled but not shown.
23305 finish_eval=$lt_finish_eval
23306
23307 # Take the output of nm and produce a listing of raw symbols and C names.
23308 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23309
23310 # Transform the output of nm in a proper C declaration
23311 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23312
23313 # Transform the output of nm in a C name address pair
23314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23315
23316 # This is the shared library runtime path variable.
23317 runpath_var=$runpath_var
23318
23319 # This is the shared library path variable.
23320 shlibpath_var=$shlibpath_var
23321
23322 # Is shlibpath searched before the hard-coded library search path?
23323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23324
23325 # How to hardcode a shared library path into an executable.
23326 hardcode_action=$hardcode_action_F77
23327
23328 # Whether we should hardcode library paths into libraries.
23329 hardcode_into_libs=$hardcode_into_libs
23330
23331 # Flag to hardcode \$libdir into a binary during linking.
23332 # This must work even if \$libdir does not exist.
23333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23334
23335 # If ld is used when linking, flag to hardcode \$libdir into
23336 # a binary during linking. This must work even if \$libdir does
23337 # not exist.
23338 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23339
23340 # Whether we need a single -rpath flag with a separated argument.
23341 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23342
23343 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23344 # resulting binary.
23345 hardcode_direct=$hardcode_direct_F77
23346
23347 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23348 # resulting binary.
23349 hardcode_minus_L=$hardcode_minus_L_F77
23350
23351 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23352 # the resulting binary.
23353 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23354
23355 # Set to yes if building a shared library automatically hardcodes DIR into the library
23356 # and all subsequent libraries and executables linked against it.
23357 hardcode_automatic=$hardcode_automatic_F77
23358
23359 # Variables whose values should be saved in libtool wrapper scripts and
23360 # restored at relink time.
23361 variables_saved_for_relink="$variables_saved_for_relink"
23362
23363 # Whether libtool must link a program against all its dependency libraries.
23364 link_all_deplibs=$link_all_deplibs_F77
23365
23366 # Compile-time system search path for libraries
23367 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23368
23369 # Run-time system search path for libraries
23370 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23371
23372 # Fix the shell variable \$srcfile for the compiler.
23373 fix_srcfile_path="$fix_srcfile_path_F77"
23374
23375 # Set to yes if exported symbols are required.
23376 always_export_symbols=$always_export_symbols_F77
23377
23378 # The commands to list exported symbols.
23379 export_symbols_cmds=$lt_export_symbols_cmds_F77
23380
23381 # The commands to extract the exported symbol list from a shared archive.
23382 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23383
23384 # Symbols that should not be listed in the preloaded symbols.
23385 exclude_expsyms=$lt_exclude_expsyms_F77
23386
23387 # Symbols that must always be exported.
23388 include_expsyms=$lt_include_expsyms_F77
23389
23390 # ### END LIBTOOL TAG CONFIG: $tagname
23391
23392 __EOF__
23393
23394
23395 else
23396   # If there is no Makefile yet, we rely on a make rule to execute
23397   # `config.status --recheck' to rerun these tests and create the
23398   # libtool script then.
23399   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23400   if test -f "$ltmain_in"; then
23401     test -f Makefile && make "$ltmain"
23402   fi
23403 fi
23404
23405
23406 ac_ext=c
23407 ac_cpp='$CPP $CPPFLAGS'
23408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23411
23412 CC="$lt_save_CC"
23413
23414         else
23415           tagname=""
23416         fi
23417         ;;
23418
23419       GCJ)
23420         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23421           ac_ext=c
23422 ac_cpp='$CPP $CPPFLAGS'
23423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23426
23427
23428 # Source file extension for Java test sources.
23429 ac_ext=java
23430
23431 # Object file extension for compiled Java test sources.
23432 objext=o
23433 objext_GCJ=$objext
23434
23435 # Code to be used in simple compile tests
23436 lt_simple_compile_test_code="class foo {}\n"
23437
23438 # Code to be used in simple link tests
23439 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23440
23441 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23442
23443 # If no C compiler was specified, use CC.
23444 LTCC=${LTCC-"$CC"}
23445
23446 # If no C compiler flags were specified, use CFLAGS.
23447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23448
23449 # Allow CC to be a program name with arguments.
23450 compiler=$CC
23451
23452
23453 # save warnings/boilerplate of simple test code
23454 ac_outfile=conftest.$ac_objext
23455 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23457 _lt_compiler_boilerplate=`cat conftest.err`
23458 $rm conftest*
23459
23460 ac_outfile=conftest.$ac_objext
23461 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23463 _lt_linker_boilerplate=`cat conftest.err`
23464 $rm conftest*
23465
23466
23467 # Allow CC to be a program name with arguments.
23468 lt_save_CC="$CC"
23469 CC=${GCJ-"gcj"}
23470 compiler=$CC
23471 compiler_GCJ=$CC
23472 for cc_temp in $compiler""; do
23473   case $cc_temp in
23474     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23475     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23476     \-*) ;;
23477     *) break;;
23478   esac
23479 done
23480 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23481
23482
23483 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23484 archive_cmds_need_lc_GCJ=no
23485
23486 old_archive_cmds_GCJ=$old_archive_cmds
23487
23488
23489 lt_prog_compiler_no_builtin_flag_GCJ=
23490
23491 if test "$GCC" = yes; then
23492   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23493
23494
23495 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23497 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23498   echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23500   lt_cv_prog_compiler_rtti_exceptions=no
23501   ac_outfile=conftest.$ac_objext
23502    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23503    lt_compiler_flag="-fno-rtti -fno-exceptions"
23504    # Insert the option either (1) after the last *FLAGS variable, or
23505    # (2) before a word containing "conftest.", or (3) at the end.
23506    # Note that $ac_compile itself does not contain backslashes and begins
23507    # with a dollar sign (not a hyphen), so the echo should work correctly.
23508    # The option is referenced via a variable to avoid confusing sed.
23509    lt_compile=`echo "$ac_compile" | $SED \
23510    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23512    -e 's:$: $lt_compiler_flag:'`
23513    (eval echo "\"\$as_me:23513: $lt_compile\"" >&5)
23514    (eval "$lt_compile" 2>conftest.err)
23515    ac_status=$?
23516    cat conftest.err >&5
23517    echo "$as_me:23517: \$? = $ac_status" >&5
23518    if (exit $ac_status) && test -s "$ac_outfile"; then
23519      # The compiler can only warn and ignore the option if not recognized
23520      # So say no if there are warnings other than the usual output.
23521      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23522      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23523      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23524        lt_cv_prog_compiler_rtti_exceptions=yes
23525      fi
23526    fi
23527    $rm conftest*
23528
23529 fi
23530 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23531 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23532
23533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23534     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23535 else
23536     :
23537 fi
23538
23539 fi
23540
23541 lt_prog_compiler_wl_GCJ=
23542 lt_prog_compiler_pic_GCJ=
23543 lt_prog_compiler_static_GCJ=
23544
23545 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23546 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23547
23548   if test "$GCC" = yes; then
23549     lt_prog_compiler_wl_GCJ='-Wl,'
23550     lt_prog_compiler_static_GCJ='-static'
23551
23552     case $host_os in
23553       aix*)
23554       # All AIX code is PIC.
23555       if test "$host_cpu" = ia64; then
23556         # AIX 5 now supports IA64 processor
23557         lt_prog_compiler_static_GCJ='-Bstatic'
23558       fi
23559       ;;
23560
23561     amigaos*)
23562       # FIXME: we need at least 68020 code to build shared libraries, but
23563       # adding the `-m68020' flag to GCC prevents building anything better,
23564       # like `-m68040'.
23565       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23566       ;;
23567
23568     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23569       # PIC is the default for these OSes.
23570       ;;
23571
23572     mingw* | pw32* | os2*)
23573       # This hack is so that the source file can tell whether it is being
23574       # built for inclusion in a dll (and should export symbols for example).
23575       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23576       ;;
23577
23578     darwin* | rhapsody*)
23579       # PIC is the default on this platform
23580       # Common symbols not allowed in MH_DYLIB files
23581       lt_prog_compiler_pic_GCJ='-fno-common'
23582       ;;
23583
23584     interix3*)
23585       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23586       # Instead, we relocate shared libraries at runtime.
23587       ;;
23588
23589     msdosdjgpp*)
23590       # Just because we use GCC doesn't mean we suddenly get shared libraries
23591       # on systems that don't support them.
23592       lt_prog_compiler_can_build_shared_GCJ=no
23593       enable_shared=no
23594       ;;
23595
23596     sysv4*MP*)
23597       if test -d /usr/nec; then
23598         lt_prog_compiler_pic_GCJ=-Kconform_pic
23599       fi
23600       ;;
23601
23602     hpux*)
23603       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23604       # not for PA HP-UX.
23605       case $host_cpu in
23606       hppa*64*|ia64*)
23607         # +Z the default
23608         ;;
23609       *)
23610         lt_prog_compiler_pic_GCJ='-fPIC'
23611         ;;
23612       esac
23613       ;;
23614
23615     *)
23616       lt_prog_compiler_pic_GCJ='-fPIC'
23617       ;;
23618     esac
23619   else
23620     # PORTME Check for flag to pass linker flags through the system compiler.
23621     case $host_os in
23622     aix*)
23623       lt_prog_compiler_wl_GCJ='-Wl,'
23624       if test "$host_cpu" = ia64; then
23625         # AIX 5 now supports IA64 processor
23626         lt_prog_compiler_static_GCJ='-Bstatic'
23627       else
23628         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23629       fi
23630       ;;
23631       darwin*)
23632         # PIC is the default on this platform
23633         # Common symbols not allowed in MH_DYLIB files
23634        case $cc_basename in
23635          xlc*)
23636          lt_prog_compiler_pic_GCJ='-qnocommon'
23637          lt_prog_compiler_wl_GCJ='-Wl,'
23638          ;;
23639        esac
23640        ;;
23641
23642     mingw* | pw32* | os2*)
23643       # This hack is so that the source file can tell whether it is being
23644       # built for inclusion in a dll (and should export symbols for example).
23645       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23646       ;;
23647
23648     hpux9* | hpux10* | hpux11*)
23649       lt_prog_compiler_wl_GCJ='-Wl,'
23650       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23651       # not for PA HP-UX.
23652       case $host_cpu in
23653       hppa*64*|ia64*)
23654         # +Z the default
23655         ;;
23656       *)
23657         lt_prog_compiler_pic_GCJ='+Z'
23658         ;;
23659       esac
23660       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23661       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23662       ;;
23663
23664     irix5* | irix6* | nonstopux*)
23665       lt_prog_compiler_wl_GCJ='-Wl,'
23666       # PIC (with -KPIC) is the default.
23667       lt_prog_compiler_static_GCJ='-non_shared'
23668       ;;
23669
23670     newsos6)
23671       lt_prog_compiler_pic_GCJ='-KPIC'
23672       lt_prog_compiler_static_GCJ='-Bstatic'
23673       ;;
23674
23675     linux*)
23676       case $cc_basename in
23677       icc* | ecc*)
23678         lt_prog_compiler_wl_GCJ='-Wl,'
23679         lt_prog_compiler_pic_GCJ='-KPIC'
23680         lt_prog_compiler_static_GCJ='-static'
23681         ;;
23682       pgcc* | pgf77* | pgf90* | pgf95*)
23683         # Portland Group compilers (*not* the Pentium gcc compiler,
23684         # which looks to be a dead project)
23685         lt_prog_compiler_wl_GCJ='-Wl,'
23686         lt_prog_compiler_pic_GCJ='-fpic'
23687         lt_prog_compiler_static_GCJ='-Bstatic'
23688         ;;
23689       ccc*)
23690         lt_prog_compiler_wl_GCJ='-Wl,'
23691         # All Alpha code is PIC.
23692         lt_prog_compiler_static_GCJ='-non_shared'
23693         ;;
23694       esac
23695       ;;
23696
23697     osf3* | osf4* | osf5*)
23698       lt_prog_compiler_wl_GCJ='-Wl,'
23699       # All OSF/1 code is PIC.
23700       lt_prog_compiler_static_GCJ='-non_shared'
23701       ;;
23702
23703     solaris*)
23704       lt_prog_compiler_pic_GCJ='-KPIC'
23705       lt_prog_compiler_static_GCJ='-Bstatic'
23706       case $cc_basename in
23707       f77* | f90* | f95*)
23708         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23709       *)
23710         lt_prog_compiler_wl_GCJ='-Wl,';;
23711       esac
23712       ;;
23713
23714     sunos4*)
23715       lt_prog_compiler_wl_GCJ='-Qoption ld '
23716       lt_prog_compiler_pic_GCJ='-PIC'
23717       lt_prog_compiler_static_GCJ='-Bstatic'
23718       ;;
23719
23720     sysv4 | sysv4.2uw2* | sysv4.3*)
23721       lt_prog_compiler_wl_GCJ='-Wl,'
23722       lt_prog_compiler_pic_GCJ='-KPIC'
23723       lt_prog_compiler_static_GCJ='-Bstatic'
23724       ;;
23725
23726     sysv4*MP*)
23727       if test -d /usr/nec ;then
23728         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23729         lt_prog_compiler_static_GCJ='-Bstatic'
23730       fi
23731       ;;
23732
23733     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23734       lt_prog_compiler_wl_GCJ='-Wl,'
23735       lt_prog_compiler_pic_GCJ='-KPIC'
23736       lt_prog_compiler_static_GCJ='-Bstatic'
23737       ;;
23738
23739     unicos*)
23740       lt_prog_compiler_wl_GCJ='-Wl,'
23741       lt_prog_compiler_can_build_shared_GCJ=no
23742       ;;
23743
23744     uts4*)
23745       lt_prog_compiler_pic_GCJ='-pic'
23746       lt_prog_compiler_static_GCJ='-Bstatic'
23747       ;;
23748
23749     *)
23750       lt_prog_compiler_can_build_shared_GCJ=no
23751       ;;
23752     esac
23753   fi
23754
23755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23756 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23757
23758 #
23759 # Check to make sure the PIC flag actually works.
23760 #
23761 if test -n "$lt_prog_compiler_pic_GCJ"; then
23762
23763 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23764 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23765 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23766   echo $ECHO_N "(cached) $ECHO_C" >&6
23767 else
23768   lt_prog_compiler_pic_works_GCJ=no
23769   ac_outfile=conftest.$ac_objext
23770    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23771    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23772    # Insert the option either (1) after the last *FLAGS variable, or
23773    # (2) before a word containing "conftest.", or (3) at the end.
23774    # Note that $ac_compile itself does not contain backslashes and begins
23775    # with a dollar sign (not a hyphen), so the echo should work correctly.
23776    # The option is referenced via a variable to avoid confusing sed.
23777    lt_compile=`echo "$ac_compile" | $SED \
23778    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23780    -e 's:$: $lt_compiler_flag:'`
23781    (eval echo "\"\$as_me:23781: $lt_compile\"" >&5)
23782    (eval "$lt_compile" 2>conftest.err)
23783    ac_status=$?
23784    cat conftest.err >&5
23785    echo "$as_me:23785: \$? = $ac_status" >&5
23786    if (exit $ac_status) && test -s "$ac_outfile"; then
23787      # The compiler can only warn and ignore the option if not recognized
23788      # So say no if there are warnings other than the usual output.
23789      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23790      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23791      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23792        lt_prog_compiler_pic_works_GCJ=yes
23793      fi
23794    fi
23795    $rm conftest*
23796
23797 fi
23798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23799 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23800
23801 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23802     case $lt_prog_compiler_pic_GCJ in
23803      "" | " "*) ;;
23804      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23805      esac
23806 else
23807     lt_prog_compiler_pic_GCJ=
23808      lt_prog_compiler_can_build_shared_GCJ=no
23809 fi
23810
23811 fi
23812 case $host_os in
23813   # For platforms which do not support PIC, -DPIC is meaningless:
23814   *djgpp*)
23815     lt_prog_compiler_pic_GCJ=
23816     ;;
23817   *)
23818     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23819     ;;
23820 esac
23821
23822 #
23823 # Check to make sure the static flag actually works.
23824 #
23825 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23826 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23827 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23828 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23829   echo $ECHO_N "(cached) $ECHO_C" >&6
23830 else
23831   lt_prog_compiler_static_works_GCJ=no
23832    save_LDFLAGS="$LDFLAGS"
23833    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23834    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23835    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23836      # The linker can only warn and ignore the option if not recognized
23837      # So say no if there are warnings
23838      if test -s conftest.err; then
23839        # Append any errors to the config.log.
23840        cat conftest.err 1>&5
23841        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23842        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23843        if diff conftest.exp conftest.er2 >/dev/null; then
23844          lt_prog_compiler_static_works_GCJ=yes
23845        fi
23846      else
23847        lt_prog_compiler_static_works_GCJ=yes
23848      fi
23849    fi
23850    $rm conftest*
23851    LDFLAGS="$save_LDFLAGS"
23852
23853 fi
23854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23855 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23856
23857 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23858     :
23859 else
23860     lt_prog_compiler_static_GCJ=
23861 fi
23862
23863
23864 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23866 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869   lt_cv_prog_compiler_c_o_GCJ=no
23870    $rm -r conftest 2>/dev/null
23871    mkdir conftest
23872    cd conftest
23873    mkdir out
23874    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23875
23876    lt_compiler_flag="-o out/conftest2.$ac_objext"
23877    # Insert the option either (1) after the last *FLAGS variable, or
23878    # (2) before a word containing "conftest.", or (3) at the end.
23879    # Note that $ac_compile itself does not contain backslashes and begins
23880    # with a dollar sign (not a hyphen), so the echo should work correctly.
23881    lt_compile=`echo "$ac_compile" | $SED \
23882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23884    -e 's:$: $lt_compiler_flag:'`
23885    (eval echo "\"\$as_me:23885: $lt_compile\"" >&5)
23886    (eval "$lt_compile" 2>out/conftest.err)
23887    ac_status=$?
23888    cat out/conftest.err >&5
23889    echo "$as_me:23889: \$? = $ac_status" >&5
23890    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23891    then
23892      # The compiler can only warn and ignore the option if not recognized
23893      # So say no if there are warnings
23894      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23895      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23896      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23897        lt_cv_prog_compiler_c_o_GCJ=yes
23898      fi
23899    fi
23900    chmod u+w . 2>&5
23901    $rm conftest*
23902    # SGI C++ compiler will create directory out/ii_files/ for
23903    # template instantiation
23904    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23905    $rm out/* && rmdir out
23906    cd ..
23907    rmdir conftest
23908    $rm conftest*
23909
23910 fi
23911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23913
23914
23915 hard_links="nottested"
23916 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23917   # do not overwrite the value of need_locks provided by the user
23918   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23920   hard_links=yes
23921   $rm conftest*
23922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23923   touch conftest.a
23924   ln conftest.a conftest.b 2>&5 || hard_links=no
23925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23926   { echo "$as_me:$LINENO: result: $hard_links" >&5
23927 echo "${ECHO_T}$hard_links" >&6; }
23928   if test "$hard_links" = no; then
23929     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23931     need_locks=warn
23932   fi
23933 else
23934   need_locks=no
23935 fi
23936
23937 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23939
23940   runpath_var=
23941   allow_undefined_flag_GCJ=
23942   enable_shared_with_static_runtimes_GCJ=no
23943   archive_cmds_GCJ=
23944   archive_expsym_cmds_GCJ=
23945   old_archive_From_new_cmds_GCJ=
23946   old_archive_from_expsyms_cmds_GCJ=
23947   export_dynamic_flag_spec_GCJ=
23948   whole_archive_flag_spec_GCJ=
23949   thread_safe_flag_spec_GCJ=
23950   hardcode_libdir_flag_spec_GCJ=
23951   hardcode_libdir_flag_spec_ld_GCJ=
23952   hardcode_libdir_separator_GCJ=
23953   hardcode_direct_GCJ=no
23954   hardcode_minus_L_GCJ=no
23955   hardcode_shlibpath_var_GCJ=unsupported
23956   link_all_deplibs_GCJ=unknown
23957   hardcode_automatic_GCJ=no
23958   module_cmds_GCJ=
23959   module_expsym_cmds_GCJ=
23960   always_export_symbols_GCJ=no
23961   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23962   # include_expsyms should be a list of space-separated symbols to be *always*
23963   # included in the symbol list
23964   include_expsyms_GCJ=
23965   # exclude_expsyms can be an extended regexp of symbols to exclude
23966   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23967   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23968   # as well as any symbol that contains `d'.
23969   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23970   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23971   # platforms (ab)use it in PIC code, but their linkers get confused if
23972   # the symbol is explicitly referenced.  Since portable code cannot
23973   # rely on this symbol name, it's probably fine to never include it in
23974   # preloaded symbol tables.
23975   extract_expsyms_cmds=
23976   # Just being paranoid about ensuring that cc_basename is set.
23977   for cc_temp in $compiler""; do
23978   case $cc_temp in
23979     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23980     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23981     \-*) ;;
23982     *) break;;
23983   esac
23984 done
23985 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23986
23987   case $host_os in
23988   cygwin* | mingw* | pw32*)
23989     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23990     # When not using gcc, we currently assume that we are using
23991     # Microsoft Visual C++.
23992     if test "$GCC" != yes; then
23993       with_gnu_ld=no
23994     fi
23995     ;;
23996   interix*)
23997     # we just hope/assume this is gcc and not c89 (= MSVC++)
23998     with_gnu_ld=yes
23999     ;;
24000   openbsd*)
24001     with_gnu_ld=no
24002     ;;
24003   esac
24004
24005   ld_shlibs_GCJ=yes
24006   if test "$with_gnu_ld" = yes; then
24007     # If archive_cmds runs LD, not CC, wlarc should be empty
24008     wlarc='${wl}'
24009
24010     # Set some defaults for GNU ld with shared library support. These
24011     # are reset later if shared libraries are not supported. Putting them
24012     # here allows them to be overridden if necessary.
24013     runpath_var=LD_RUN_PATH
24014     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24015     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24016     # ancient GNU ld didn't support --whole-archive et. al.
24017     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24018         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24019       else
24020         whole_archive_flag_spec_GCJ=
24021     fi
24022     supports_anon_versioning=no
24023     case `$LD -v 2>/dev/null` in
24024       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24025       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24026       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24027       *\ 2.11.*) ;; # other 2.11 versions
24028       *) supports_anon_versioning=yes ;;
24029     esac
24030
24031     # See if GNU ld supports shared libraries.
24032     case $host_os in
24033     aix3* | aix4* | aix5*)
24034       # On AIX/PPC, the GNU linker is very broken
24035       if test "$host_cpu" != ia64; then
24036         ld_shlibs_GCJ=no
24037         cat <<EOF 1>&2
24038
24039 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24040 *** to be unable to reliably create shared libraries on AIX.
24041 *** Therefore, libtool is disabling shared libraries support.  If you
24042 *** really care for shared libraries, you may want to modify your PATH
24043 *** so that a non-GNU linker is found, and then restart.
24044
24045 EOF
24046       fi
24047       ;;
24048
24049     amigaos*)
24050       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)'
24051       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24052       hardcode_minus_L_GCJ=yes
24053
24054       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24055       # that the semantics of dynamic libraries on AmigaOS, at least up
24056       # to version 4, is to share data among multiple programs linked
24057       # with the same dynamic library.  Since this doesn't match the
24058       # behavior of shared libraries on other platforms, we can't use
24059       # them.
24060       ld_shlibs_GCJ=no
24061       ;;
24062
24063     beos*)
24064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24065         allow_undefined_flag_GCJ=unsupported
24066         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24067         # support --undefined.  This deserves some investigation.  FIXME
24068         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24069       else
24070         ld_shlibs_GCJ=no
24071       fi
24072       ;;
24073
24074     cygwin* | mingw* | pw32*)
24075       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24076       # as there is no search path for DLLs.
24077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24078       allow_undefined_flag_GCJ=unsupported
24079       always_export_symbols_GCJ=no
24080       enable_shared_with_static_runtimes_GCJ=yes
24081       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24082
24083       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24084         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24085         # If the export-symbols file already is a .def file (1st line
24086         # is EXPORTS), use it as is; otherwise, prepend...
24087         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24088           cp $export_symbols $output_objdir/$soname.def;
24089         else
24090           echo EXPORTS > $output_objdir/$soname.def;
24091           cat $export_symbols >> $output_objdir/$soname.def;
24092         fi~
24093         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24094       else
24095         ld_shlibs_GCJ=no
24096       fi
24097       ;;
24098
24099     interix3*)
24100       hardcode_direct_GCJ=no
24101       hardcode_shlibpath_var_GCJ=no
24102       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24103       export_dynamic_flag_spec_GCJ='${wl}-E'
24104       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24105       # Instead, shared libraries are loaded at an image base (0x10000000 by
24106       # default) and relocated if they conflict, which is a slow very memory
24107       # consuming and fragmenting process.  To avoid this, we pick a random,
24108       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24109       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24110       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'
24111       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'
24112       ;;
24113
24114     linux*)
24115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24116         tmp_addflag=
24117         case $cc_basename,$host_cpu in
24118         pgcc*)                          # Portland Group C compiler
24119           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'
24120           tmp_addflag=' $pic_flag'
24121           ;;
24122         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24123           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'
24124           tmp_addflag=' $pic_flag -Mnomain' ;;
24125         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24126           tmp_addflag=' -i_dynamic' ;;
24127         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24128           tmp_addflag=' -i_dynamic -nofor_main' ;;
24129         ifc* | ifort*)                  # Intel Fortran compiler
24130           tmp_addflag=' -nofor_main' ;;
24131         esac
24132         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24133
24134         if test $supports_anon_versioning = yes; then
24135           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24136   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24137   $echo "local: *; };" >> $output_objdir/$libname.ver~
24138           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24139         fi
24140       else
24141         ld_shlibs_GCJ=no
24142       fi
24143       ;;
24144
24145     netbsd*)
24146       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24147         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24148         wlarc=
24149       else
24150         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24151         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24152       fi
24153       ;;
24154
24155     solaris*)
24156       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24157         ld_shlibs_GCJ=no
24158         cat <<EOF 1>&2
24159
24160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24161 *** create shared libraries on Solaris systems.  Therefore, libtool
24162 *** is disabling shared libraries support.  We urge you to upgrade GNU
24163 *** binutils to release 2.9.1 or newer.  Another option is to modify
24164 *** your PATH or compiler configuration so that the native linker is
24165 *** used, and then restart.
24166
24167 EOF
24168       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24169         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24170         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24171       else
24172         ld_shlibs_GCJ=no
24173       fi
24174       ;;
24175
24176     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24177       case `$LD -v 2>&1` in
24178         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24179         ld_shlibs_GCJ=no
24180         cat <<_LT_EOF 1>&2
24181
24182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24183 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24184 *** is disabling shared libraries support.  We urge you to upgrade GNU
24185 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24186 *** your PATH or compiler configuration so that the native linker is
24187 *** used, and then restart.
24188
24189 _LT_EOF
24190         ;;
24191         *)
24192           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24193             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24194             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24195             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24196           else
24197             ld_shlibs_GCJ=no
24198           fi
24199         ;;
24200       esac
24201       ;;
24202
24203     sunos4*)
24204       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24205       wlarc=
24206       hardcode_direct_GCJ=yes
24207       hardcode_shlibpath_var_GCJ=no
24208       ;;
24209
24210     *)
24211       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24212         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24213         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24214       else
24215         ld_shlibs_GCJ=no
24216       fi
24217       ;;
24218     esac
24219
24220     if test "$ld_shlibs_GCJ" = no; then
24221       runpath_var=
24222       hardcode_libdir_flag_spec_GCJ=
24223       export_dynamic_flag_spec_GCJ=
24224       whole_archive_flag_spec_GCJ=
24225     fi
24226   else
24227     # PORTME fill in a description of your system's linker (not GNU ld)
24228     case $host_os in
24229     aix3*)
24230       allow_undefined_flag_GCJ=unsupported
24231       always_export_symbols_GCJ=yes
24232       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'
24233       # Note: this linker hardcodes the directories in LIBPATH if there
24234       # are no directories specified by -L.
24235       hardcode_minus_L_GCJ=yes
24236       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24237         # Neither direct hardcoding nor static linking is supported with a
24238         # broken collect2.
24239         hardcode_direct_GCJ=unsupported
24240       fi
24241       ;;
24242
24243     aix4* | aix5*)
24244       if test "$host_cpu" = ia64; then
24245         # On IA64, the linker does run time linking by default, so we don't
24246         # have to do anything special.
24247         aix_use_runtimelinking=no
24248         exp_sym_flag='-Bexport'
24249         no_entry_flag=""
24250       else
24251         # If we're using GNU nm, then we don't want the "-C" option.
24252         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24253         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24254           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'
24255         else
24256           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'
24257         fi
24258         aix_use_runtimelinking=no
24259
24260         # Test if we are trying to use run time linking or normal
24261         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24262         # need to do runtime linking.
24263         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24264           for ld_flag in $LDFLAGS; do
24265           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24266             aix_use_runtimelinking=yes
24267             break
24268           fi
24269           done
24270           ;;
24271         esac
24272
24273         exp_sym_flag='-bexport'
24274         no_entry_flag='-bnoentry'
24275       fi
24276
24277       # When large executables or shared objects are built, AIX ld can
24278       # have problems creating the table of contents.  If linking a library
24279       # or program results in "error TOC overflow" add -mminimal-toc to
24280       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24281       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24282
24283       archive_cmds_GCJ=''
24284       hardcode_direct_GCJ=yes
24285       hardcode_libdir_separator_GCJ=':'
24286       link_all_deplibs_GCJ=yes
24287
24288       if test "$GCC" = yes; then
24289         case $host_os in aix4.[012]|aix4.[012].*)
24290         # We only want to do this on AIX 4.2 and lower, the check
24291         # below for broken collect2 doesn't work under 4.3+
24292           collect2name=`${CC} -print-prog-name=collect2`
24293           if test -f "$collect2name" && \
24294            strings "$collect2name" | grep resolve_lib_name >/dev/null
24295           then
24296           # We have reworked collect2
24297           hardcode_direct_GCJ=yes
24298           else
24299           # We have old collect2
24300           hardcode_direct_GCJ=unsupported
24301           # It fails to find uninstalled libraries when the uninstalled
24302           # path is not listed in the libpath.  Setting hardcode_minus_L
24303           # to unsupported forces relinking
24304           hardcode_minus_L_GCJ=yes
24305           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24306           hardcode_libdir_separator_GCJ=
24307           fi
24308           ;;
24309         esac
24310         shared_flag='-shared'
24311         if test "$aix_use_runtimelinking" = yes; then
24312           shared_flag="$shared_flag "'${wl}-G'
24313         fi
24314       else
24315         # not using gcc
24316         if test "$host_cpu" = ia64; then
24317         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24318         # chokes on -Wl,-G. The following line is correct:
24319           shared_flag='-G'
24320         else
24321           if test "$aix_use_runtimelinking" = yes; then
24322             shared_flag='${wl}-G'
24323           else
24324             shared_flag='${wl}-bM:SRE'
24325           fi
24326         fi
24327       fi
24328
24329       # It seems that -bexpall does not export symbols beginning with
24330       # underscore (_), so it is better to generate a list of symbols to export.
24331       always_export_symbols_GCJ=yes
24332       if test "$aix_use_runtimelinking" = yes; then
24333         # Warning - without using the other runtime loading flags (-brtl),
24334         # -berok will link without error, but may produce a broken library.
24335         allow_undefined_flag_GCJ='-berok'
24336        # Determine the default libpath from the value encoded in an empty executable.
24337        cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h.  */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h.  */
24343
24344 int
24345 main ()
24346 {
24347
24348   ;
24349   return 0;
24350 }
24351 _ACEOF
24352 rm -f conftest.$ac_objext conftest$ac_exeext
24353 if { (ac_try="$ac_link"
24354 case "(($ac_try" in
24355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356   *) ac_try_echo=$ac_try;;
24357 esac
24358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359   (eval "$ac_link") 2>conftest.er1
24360   ac_status=$?
24361   grep -v '^ *+' conftest.er1 >conftest.err
24362   rm -f conftest.er1
24363   cat conftest.err >&5
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); } &&
24366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24367   { (case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372   (eval "$ac_try") 2>&5
24373   ac_status=$?
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); }; } &&
24376          { ac_try='test -s conftest$ac_exeext'
24377   { (case "(($ac_try" in
24378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379   *) ac_try_echo=$ac_try;;
24380 esac
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382   (eval "$ac_try") 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; }; then
24386
24387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24388 }'`
24389 # Check for a 64-bit object if we didn't find anything.
24390 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; }
24391 }'`; fi
24392 else
24393   echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396
24397 fi
24398
24399 rm -f core conftest.err conftest.$ac_objext \
24400       conftest$ac_exeext conftest.$ac_ext
24401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24402
24403        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24404         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"
24405        else
24406         if test "$host_cpu" = ia64; then
24407           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24408           allow_undefined_flag_GCJ="-z nodefs"
24409           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"
24410         else
24411          # Determine the default libpath from the value encoded in an empty executable.
24412          cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h.  */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h.  */
24418
24419 int
24420 main ()
24421 {
24422
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext conftest$ac_exeext
24428 if { (ac_try="$ac_link"
24429 case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434   (eval "$ac_link") 2>conftest.er1
24435   ac_status=$?
24436   grep -v '^ *+' conftest.er1 >conftest.err
24437   rm -f conftest.er1
24438   cat conftest.err >&5
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); } &&
24441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24442   { (case "(($ac_try" in
24443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444   *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447   (eval "$ac_try") 2>&5
24448   ac_status=$?
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); }; } &&
24451          { ac_try='test -s conftest$ac_exeext'
24452   { (case "(($ac_try" in
24453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454   *) ac_try_echo=$ac_try;;
24455 esac
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457   (eval "$ac_try") 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; }; then
24461
24462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24463 }'`
24464 # Check for a 64-bit object if we didn't find anything.
24465 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; }
24466 }'`; fi
24467 else
24468   echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24470
24471
24472 fi
24473
24474 rm -f core conftest.err conftest.$ac_objext \
24475       conftest$ac_exeext conftest.$ac_ext
24476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24477
24478          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24479           # Warning - without using the other run time loading flags,
24480           # -berok will link without error, but may produce a broken library.
24481           no_undefined_flag_GCJ=' ${wl}-bernotok'
24482           allow_undefined_flag_GCJ=' ${wl}-berok'
24483           # Exported symbols can be pulled into shared objects from archives
24484           whole_archive_flag_spec_GCJ='$convenience'
24485           archive_cmds_need_lc_GCJ=yes
24486           # This is similar to how AIX traditionally builds its shared libraries.
24487           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'
24488         fi
24489       fi
24490       ;;
24491
24492     amigaos*)
24493       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)'
24494       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24495       hardcode_minus_L_GCJ=yes
24496       # see comment about different semantics on the GNU ld section
24497       ld_shlibs_GCJ=no
24498       ;;
24499
24500     bsdi[45]*)
24501       export_dynamic_flag_spec_GCJ=-rdynamic
24502       ;;
24503
24504     cygwin* | mingw* | pw32*)
24505       # When not using gcc, we currently assume that we are using
24506       # Microsoft Visual C++.
24507       # hardcode_libdir_flag_spec is actually meaningless, as there is
24508       # no search path for DLLs.
24509       hardcode_libdir_flag_spec_GCJ=' '
24510       allow_undefined_flag_GCJ=unsupported
24511       # Tell ltmain to make .lib files, not .a files.
24512       libext=lib
24513       # Tell ltmain to make .dll files, not .so files.
24514       shrext_cmds=".dll"
24515       # FIXME: Setting linknames here is a bad hack.
24516       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24517       # The linker will automatically build a .lib file if we build a DLL.
24518       old_archive_From_new_cmds_GCJ='true'
24519       # FIXME: Should let the user specify the lib program.
24520       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24521       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24522       enable_shared_with_static_runtimes_GCJ=yes
24523       ;;
24524
24525     darwin* | rhapsody*)
24526       case $host_os in
24527         rhapsody* | darwin1.[012])
24528          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24529          ;;
24530        *) # Darwin 1.3 on
24531          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24532            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24533          else
24534            case ${MACOSX_DEPLOYMENT_TARGET} in
24535              10.[012])
24536                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24537                ;;
24538              10.*)
24539                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24540                ;;
24541            esac
24542          fi
24543          ;;
24544       esac
24545       archive_cmds_need_lc_GCJ=no
24546       hardcode_direct_GCJ=no
24547       hardcode_automatic_GCJ=yes
24548       hardcode_shlibpath_var_GCJ=unsupported
24549       whole_archive_flag_spec_GCJ=''
24550       link_all_deplibs_GCJ=yes
24551     if test "$GCC" = yes ; then
24552         output_verbose_link_cmd='echo'
24553         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24554       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24555       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24556       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}'
24557       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}'
24558     else
24559       case $cc_basename in
24560         xlc*)
24561          output_verbose_link_cmd='echo'
24562          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24563          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24564           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24565          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}'
24566           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}'
24567           ;;
24568        *)
24569          ld_shlibs_GCJ=no
24570           ;;
24571       esac
24572     fi
24573       ;;
24574
24575     dgux*)
24576       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24577       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24578       hardcode_shlibpath_var_GCJ=no
24579       ;;
24580
24581     freebsd1*)
24582       ld_shlibs_GCJ=no
24583       ;;
24584
24585     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24586     # support.  Future versions do this automatically, but an explicit c++rt0.o
24587     # does not break anything, and helps significantly (at the cost of a little
24588     # extra space).
24589     freebsd2.2*)
24590       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24591       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24592       hardcode_direct_GCJ=yes
24593       hardcode_shlibpath_var_GCJ=no
24594       ;;
24595
24596     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24597     freebsd2*)
24598       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24599       hardcode_direct_GCJ=yes
24600       hardcode_minus_L_GCJ=yes
24601       hardcode_shlibpath_var_GCJ=no
24602       ;;
24603
24604     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24605     freebsd* | kfreebsd*-gnu | dragonfly*)
24606       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24607       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24608       hardcode_direct_GCJ=yes
24609       hardcode_shlibpath_var_GCJ=no
24610       ;;
24611
24612     hpux9*)
24613       if test "$GCC" = yes; then
24614         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'
24615       else
24616         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'
24617       fi
24618       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24619       hardcode_libdir_separator_GCJ=:
24620       hardcode_direct_GCJ=yes
24621
24622       # hardcode_minus_L: Not really in the search PATH,
24623       # but as the default location of the library.
24624       hardcode_minus_L_GCJ=yes
24625       export_dynamic_flag_spec_GCJ='${wl}-E'
24626       ;;
24627
24628     hpux10*)
24629       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24630         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24631       else
24632         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24633       fi
24634       if test "$with_gnu_ld" = no; then
24635         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24636         hardcode_libdir_separator_GCJ=:
24637
24638         hardcode_direct_GCJ=yes
24639         export_dynamic_flag_spec_GCJ='${wl}-E'
24640
24641         # hardcode_minus_L: Not really in the search PATH,
24642         # but as the default location of the library.
24643         hardcode_minus_L_GCJ=yes
24644       fi
24645       ;;
24646
24647     hpux11*)
24648       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24649         case $host_cpu in
24650         hppa*64*)
24651           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24652           ;;
24653         ia64*)
24654           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24655           ;;
24656         *)
24657           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24658           ;;
24659         esac
24660       else
24661         case $host_cpu in
24662         hppa*64*)
24663           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24664           ;;
24665         ia64*)
24666           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24667           ;;
24668         *)
24669           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24670           ;;
24671         esac
24672       fi
24673       if test "$with_gnu_ld" = no; then
24674         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24675         hardcode_libdir_separator_GCJ=:
24676
24677         case $host_cpu in
24678         hppa*64*|ia64*)
24679           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24680           hardcode_direct_GCJ=no
24681           hardcode_shlibpath_var_GCJ=no
24682           ;;
24683         *)
24684           hardcode_direct_GCJ=yes
24685           export_dynamic_flag_spec_GCJ='${wl}-E'
24686
24687           # hardcode_minus_L: Not really in the search PATH,
24688           # but as the default location of the library.
24689           hardcode_minus_L_GCJ=yes
24690           ;;
24691         esac
24692       fi
24693       ;;
24694
24695     irix5* | irix6* | nonstopux*)
24696       if test "$GCC" = yes; then
24697         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'
24698       else
24699         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'
24700         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24701       fi
24702       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24703       hardcode_libdir_separator_GCJ=:
24704       link_all_deplibs_GCJ=yes
24705       ;;
24706
24707     netbsd*)
24708       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24709         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24710       else
24711         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24712       fi
24713       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24714       hardcode_direct_GCJ=yes
24715       hardcode_shlibpath_var_GCJ=no
24716       ;;
24717
24718     newsos6)
24719       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24720       hardcode_direct_GCJ=yes
24721       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24722       hardcode_libdir_separator_GCJ=:
24723       hardcode_shlibpath_var_GCJ=no
24724       ;;
24725
24726     openbsd*)
24727       hardcode_direct_GCJ=yes
24728       hardcode_shlibpath_var_GCJ=no
24729       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24730         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24731         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24732         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24733         export_dynamic_flag_spec_GCJ='${wl}-E'
24734       else
24735        case $host_os in
24736          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24737            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24738            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24739            ;;
24740          *)
24741            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24742            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24743            ;;
24744        esac
24745       fi
24746       ;;
24747
24748     os2*)
24749       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24750       hardcode_minus_L_GCJ=yes
24751       allow_undefined_flag_GCJ=unsupported
24752       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'
24753       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24754       ;;
24755
24756     osf3*)
24757       if test "$GCC" = yes; then
24758         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24759         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'
24760       else
24761         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24762         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'
24763       fi
24764       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24765       hardcode_libdir_separator_GCJ=:
24766       ;;
24767
24768     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24769       if test "$GCC" = yes; then
24770         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24771         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'
24772         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24773       else
24774         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24775         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'
24776         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~
24777         $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'
24778
24779         # Both c and cxx compiler support -rpath directly
24780         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24781       fi
24782       hardcode_libdir_separator_GCJ=:
24783       ;;
24784
24785     solaris*)
24786       no_undefined_flag_GCJ=' -z text'
24787       if test "$GCC" = yes; then
24788         wlarc='${wl}'
24789         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24790         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24791           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24792       else
24793         wlarc=''
24794         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24795         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24796         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24797       fi
24798       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24799       hardcode_shlibpath_var_GCJ=no
24800       case $host_os in
24801       solaris2.[0-5] | solaris2.[0-5].*) ;;
24802       *)
24803         # The compiler driver will combine linker options so we
24804         # cannot just pass the convience library names through
24805         # without $wl, iff we do not link with $LD.
24806         # Luckily, gcc supports the same syntax we need for Sun Studio.
24807         # Supported since Solaris 2.6 (maybe 2.5.1?)
24808         case $wlarc in
24809         '')
24810           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24811         *)
24812           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' ;;
24813         esac ;;
24814       esac
24815       link_all_deplibs_GCJ=yes
24816       ;;
24817
24818     sunos4*)
24819       if test "x$host_vendor" = xsequent; then
24820         # Use $CC to link under sequent, because it throws in some extra .o
24821         # files that make .init and .fini sections work.
24822         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24823       else
24824         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24825       fi
24826       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24827       hardcode_direct_GCJ=yes
24828       hardcode_minus_L_GCJ=yes
24829       hardcode_shlibpath_var_GCJ=no
24830       ;;
24831
24832     sysv4)
24833       case $host_vendor in
24834         sni)
24835           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24836           hardcode_direct_GCJ=yes # is this really true???
24837         ;;
24838         siemens)
24839           ## LD is ld it makes a PLAMLIB
24840           ## CC just makes a GrossModule.
24841           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24842           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24843           hardcode_direct_GCJ=no
24844         ;;
24845         motorola)
24846           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24847           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24848         ;;
24849       esac
24850       runpath_var='LD_RUN_PATH'
24851       hardcode_shlibpath_var_GCJ=no
24852       ;;
24853
24854     sysv4.3*)
24855       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24856       hardcode_shlibpath_var_GCJ=no
24857       export_dynamic_flag_spec_GCJ='-Bexport'
24858       ;;
24859
24860     sysv4*MP*)
24861       if test -d /usr/nec; then
24862         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24863         hardcode_shlibpath_var_GCJ=no
24864         runpath_var=LD_RUN_PATH
24865         hardcode_runpath_var=yes
24866         ld_shlibs_GCJ=yes
24867       fi
24868       ;;
24869
24870     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24871       no_undefined_flag_GCJ='${wl}-z,text'
24872       archive_cmds_need_lc_GCJ=no
24873       hardcode_shlibpath_var_GCJ=no
24874       runpath_var='LD_RUN_PATH'
24875
24876       if test "$GCC" = yes; then
24877         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24878         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24879       else
24880         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24881         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24882       fi
24883       ;;
24884
24885     sysv5* | sco3.2v5* | sco5v6*)
24886       # Note: We can NOT use -z defs as we might desire, because we do not
24887       # link with -lc, and that would cause any symbols used from libc to
24888       # always be unresolved, which means just about no library would
24889       # ever link correctly.  If we're not using GNU ld we use -z text
24890       # though, which does catch some bad symbols but isn't as heavy-handed
24891       # as -z defs.
24892       no_undefined_flag_GCJ='${wl}-z,text'
24893       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24894       archive_cmds_need_lc_GCJ=no
24895       hardcode_shlibpath_var_GCJ=no
24896       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24897       hardcode_libdir_separator_GCJ=':'
24898       link_all_deplibs_GCJ=yes
24899       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24900       runpath_var='LD_RUN_PATH'
24901
24902       if test "$GCC" = yes; then
24903         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905       else
24906         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24907         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24908       fi
24909       ;;
24910
24911     uts4*)
24912       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24913       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24914       hardcode_shlibpath_var_GCJ=no
24915       ;;
24916
24917     *)
24918       ld_shlibs_GCJ=no
24919       ;;
24920     esac
24921   fi
24922
24923 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24924 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24925 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24926
24927 #
24928 # Do we need to explicitly link libc?
24929 #
24930 case "x$archive_cmds_need_lc_GCJ" in
24931 x|xyes)
24932   # Assume -lc should be added
24933   archive_cmds_need_lc_GCJ=yes
24934
24935   if test "$enable_shared" = yes && test "$GCC" = yes; then
24936     case $archive_cmds_GCJ in
24937     *'~'*)
24938       # FIXME: we may have to deal with multi-command sequences.
24939       ;;
24940     '$CC '*)
24941       # Test whether the compiler implicitly links with -lc since on some
24942       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24943       # to ld, don't add -lc before -lgcc.
24944       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24946       $rm conftest*
24947       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24948
24949       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24950   (eval $ac_compile) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); } 2>conftest.err; then
24954         soname=conftest
24955         lib=conftest
24956         libobjs=conftest.$ac_objext
24957         deplibs=
24958         wl=$lt_prog_compiler_wl_GCJ
24959         pic_flag=$lt_prog_compiler_pic_GCJ
24960         compiler_flags=-v
24961         linker_flags=-v
24962         verstring=
24963         output_objdir=.
24964         libname=conftest
24965         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24966         allow_undefined_flag_GCJ=
24967         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24968   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); }
24972         then
24973           archive_cmds_need_lc_GCJ=no
24974         else
24975           archive_cmds_need_lc_GCJ=yes
24976         fi
24977         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24978       else
24979         cat conftest.err 1>&5
24980       fi
24981       $rm conftest*
24982       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24983 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24984       ;;
24985     esac
24986   fi
24987   ;;
24988 esac
24989
24990 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24991 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24992 library_names_spec=
24993 libname_spec='lib$name'
24994 soname_spec=
24995 shrext_cmds=".so"
24996 postinstall_cmds=
24997 postuninstall_cmds=
24998 finish_cmds=
24999 finish_eval=
25000 shlibpath_var=
25001 shlibpath_overrides_runpath=unknown
25002 version_type=none
25003 dynamic_linker="$host_os ld.so"
25004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25005 if test "$GCC" = yes; then
25006   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25007   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25008     # if the path contains ";" then we assume it to be the separator
25009     # otherwise default to the standard path separator (i.e. ":") - it is
25010     # assumed that no part of a normal pathname contains ";" but that should
25011     # okay in the real world where ";" in dirpaths is itself problematic.
25012     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25013   else
25014     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25015   fi
25016 else
25017   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25018 fi
25019 need_lib_prefix=unknown
25020 hardcode_into_libs=no
25021
25022 # when you set need_version to no, make sure it does not cause -set_version
25023 # flags to be left without arguments
25024 need_version=unknown
25025
25026 case $host_os in
25027 aix3*)
25028   version_type=linux
25029   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25030   shlibpath_var=LIBPATH
25031
25032   # AIX 3 has no versioning support, so we append a major version to the name.
25033   soname_spec='${libname}${release}${shared_ext}$major'
25034   ;;
25035
25036 aix4* | aix5*)
25037   version_type=linux
25038   need_lib_prefix=no
25039   need_version=no
25040   hardcode_into_libs=yes
25041   if test "$host_cpu" = ia64; then
25042     # AIX 5 supports IA64
25043     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25044     shlibpath_var=LD_LIBRARY_PATH
25045   else
25046     # With GCC up to 2.95.x, collect2 would create an import file
25047     # for dependence libraries.  The import file would start with
25048     # the line `#! .'.  This would cause the generated library to
25049     # depend on `.', always an invalid library.  This was fixed in
25050     # development snapshots of GCC prior to 3.0.
25051     case $host_os in
25052       aix4 | aix4.[01] | aix4.[01].*)
25053       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25054            echo ' yes '
25055            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25056         :
25057       else
25058         can_build_shared=no
25059       fi
25060       ;;
25061     esac
25062     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25063     # soname into executable. Probably we can add versioning support to
25064     # collect2, so additional links can be useful in future.
25065     if test "$aix_use_runtimelinking" = yes; then
25066       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25067       # instead of lib<name>.a to let people know that these are not
25068       # typical AIX shared libraries.
25069       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25070     else
25071       # We preserve .a as extension for shared libraries through AIX4.2
25072       # and later when we are not doing run time linking.
25073       library_names_spec='${libname}${release}.a $libname.a'
25074       soname_spec='${libname}${release}${shared_ext}$major'
25075     fi
25076     shlibpath_var=LIBPATH
25077   fi
25078   ;;
25079
25080 amigaos*)
25081   library_names_spec='$libname.ixlibrary $libname.a'
25082   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25083   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'
25084   ;;
25085
25086 beos*)
25087   library_names_spec='${libname}${shared_ext}'
25088   dynamic_linker="$host_os ld.so"
25089   shlibpath_var=LIBRARY_PATH
25090   ;;
25091
25092 bsdi[45]*)
25093   version_type=linux
25094   need_version=no
25095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25096   soname_spec='${libname}${release}${shared_ext}$major'
25097   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25098   shlibpath_var=LD_LIBRARY_PATH
25099   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25100   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25101   # the default ld.so.conf also contains /usr/contrib/lib and
25102   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25103   # libtool to hard-code these into programs
25104   ;;
25105
25106 cygwin* | mingw* | pw32*)
25107   version_type=windows
25108   shrext_cmds=".dll"
25109   need_version=no
25110   need_lib_prefix=no
25111
25112   case $GCC,$host_os in
25113   yes,cygwin* | yes,mingw* | yes,pw32*)
25114     library_names_spec='$libname.dll.a'
25115     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25116     postinstall_cmds='base_file=`basename \${file}`~
25117       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25118       dldir=$destdir/`dirname \$dlpath`~
25119       test -d \$dldir || mkdir -p \$dldir~
25120       $install_prog $dir/$dlname \$dldir/$dlname~
25121       chmod a+x \$dldir/$dlname'
25122     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25123       dlpath=$dir/\$dldll~
25124        $rm \$dlpath'
25125     shlibpath_overrides_runpath=yes
25126
25127     case $host_os in
25128     cygwin*)
25129       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25130       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25131       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25132       ;;
25133     mingw*)
25134       # MinGW DLLs use traditional 'lib' prefix
25135       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25136       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25137       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25138         # It is most probably a Windows format PATH printed by
25139         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25140         # path with ; separators, and with drive letters. We can handle the
25141         # drive letters (cygwin fileutils understands them), so leave them,
25142         # especially as we might pass files found there to a mingw objdump,
25143         # which wouldn't understand a cygwinified path. Ahh.
25144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25145       else
25146         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25147       fi
25148       ;;
25149     pw32*)
25150       # pw32 DLLs use 'pw' prefix rather than 'lib'
25151       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25152       ;;
25153     esac
25154     ;;
25155
25156   *)
25157     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25158     ;;
25159   esac
25160   dynamic_linker='Win32 ld.exe'
25161   # FIXME: first we should search . and the directory the executable is in
25162   shlibpath_var=PATH
25163   ;;
25164
25165 darwin* | rhapsody*)
25166   dynamic_linker="$host_os dyld"
25167   version_type=darwin
25168   need_lib_prefix=no
25169   need_version=no
25170   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25171   soname_spec='${libname}${release}${major}$shared_ext'
25172   shlibpath_overrides_runpath=yes
25173   shlibpath_var=DYLD_LIBRARY_PATH
25174   shrext_cmds='.dylib'
25175   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25176   if test "$GCC" = yes; then
25177     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"`
25178   else
25179     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25180   fi
25181   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25182   ;;
25183
25184 dgux*)
25185   version_type=linux
25186   need_lib_prefix=no
25187   need_version=no
25188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25189   soname_spec='${libname}${release}${shared_ext}$major'
25190   shlibpath_var=LD_LIBRARY_PATH
25191   ;;
25192
25193 freebsd1*)
25194   dynamic_linker=no
25195   ;;
25196
25197 kfreebsd*-gnu)
25198   version_type=linux
25199   need_lib_prefix=no
25200   need_version=no
25201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25202   soname_spec='${libname}${release}${shared_ext}$major'
25203   shlibpath_var=LD_LIBRARY_PATH
25204   shlibpath_overrides_runpath=no
25205   hardcode_into_libs=yes
25206   dynamic_linker='GNU ld.so'
25207   ;;
25208
25209 freebsd* | dragonfly*)
25210   # DragonFly does not have aout.  When/if they implement a new
25211   # versioning mechanism, adjust this.
25212   if test -x /usr/bin/objformat; then
25213     objformat=`/usr/bin/objformat`
25214   else
25215     case $host_os in
25216     freebsd[123]*) objformat=aout ;;
25217     *) objformat=elf ;;
25218     esac
25219   fi
25220   version_type=freebsd-$objformat
25221   case $version_type in
25222     freebsd-elf*)
25223       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25224       need_version=no
25225       need_lib_prefix=no
25226       ;;
25227     freebsd-*)
25228       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25229       need_version=yes
25230       ;;
25231   esac
25232   shlibpath_var=LD_LIBRARY_PATH
25233   case $host_os in
25234   freebsd2*)
25235     shlibpath_overrides_runpath=yes
25236     ;;
25237   freebsd3.[01]* | freebsdelf3.[01]*)
25238     shlibpath_overrides_runpath=yes
25239     hardcode_into_libs=yes
25240     ;;
25241   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25242   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25243     shlibpath_overrides_runpath=no
25244     hardcode_into_libs=yes
25245     ;;
25246   freebsd*) # from 4.6 on
25247     shlibpath_overrides_runpath=yes
25248     hardcode_into_libs=yes
25249     ;;
25250   esac
25251   ;;
25252
25253 gnu*)
25254   version_type=linux
25255   need_lib_prefix=no
25256   need_version=no
25257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25258   soname_spec='${libname}${release}${shared_ext}$major'
25259   shlibpath_var=LD_LIBRARY_PATH
25260   hardcode_into_libs=yes
25261   ;;
25262
25263 hpux9* | hpux10* | hpux11*)
25264   # Give a soname corresponding to the major version so that dld.sl refuses to
25265   # link against other versions.
25266   version_type=sunos
25267   need_lib_prefix=no
25268   need_version=no
25269   case $host_cpu in
25270   ia64*)
25271     shrext_cmds='.so'
25272     hardcode_into_libs=yes
25273     dynamic_linker="$host_os dld.so"
25274     shlibpath_var=LD_LIBRARY_PATH
25275     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25277     soname_spec='${libname}${release}${shared_ext}$major'
25278     if test "X$HPUX_IA64_MODE" = X32; then
25279       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25280     else
25281       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25282     fi
25283     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25284     ;;
25285    hppa*64*)
25286      shrext_cmds='.sl'
25287      hardcode_into_libs=yes
25288      dynamic_linker="$host_os dld.sl"
25289      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25290      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25291      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25292      soname_spec='${libname}${release}${shared_ext}$major'
25293      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25294      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25295      ;;
25296    *)
25297     shrext_cmds='.sl'
25298     dynamic_linker="$host_os dld.sl"
25299     shlibpath_var=SHLIB_PATH
25300     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25302     soname_spec='${libname}${release}${shared_ext}$major'
25303     ;;
25304   esac
25305   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25306   postinstall_cmds='chmod 555 $lib'
25307   ;;
25308
25309 interix3*)
25310   version_type=linux
25311   need_lib_prefix=no
25312   need_version=no
25313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25314   soname_spec='${libname}${release}${shared_ext}$major'
25315   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25316   shlibpath_var=LD_LIBRARY_PATH
25317   shlibpath_overrides_runpath=no
25318   hardcode_into_libs=yes
25319   ;;
25320
25321 irix5* | irix6* | nonstopux*)
25322   case $host_os in
25323     nonstopux*) version_type=nonstopux ;;
25324     *)
25325         if test "$lt_cv_prog_gnu_ld" = yes; then
25326                 version_type=linux
25327         else
25328                 version_type=irix
25329         fi ;;
25330   esac
25331   need_lib_prefix=no
25332   need_version=no
25333   soname_spec='${libname}${release}${shared_ext}$major'
25334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25335   case $host_os in
25336   irix5* | nonstopux*)
25337     libsuff= shlibsuff=
25338     ;;
25339   *)
25340     case $LD in # libtool.m4 will add one of these switches to LD
25341     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25342       libsuff= shlibsuff= libmagic=32-bit;;
25343     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25344       libsuff=32 shlibsuff=N32 libmagic=N32;;
25345     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25346       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25347     *) libsuff= shlibsuff= libmagic=never-match;;
25348     esac
25349     ;;
25350   esac
25351   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25352   shlibpath_overrides_runpath=no
25353   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25354   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25355   hardcode_into_libs=yes
25356   ;;
25357
25358 # No shared lib support for Linux oldld, aout, or coff.
25359 linux*oldld* | linux*aout* | linux*coff*)
25360   dynamic_linker=no
25361   ;;
25362
25363 # This must be Linux ELF.
25364 linux*)
25365   version_type=linux
25366   need_lib_prefix=no
25367   need_version=no
25368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25369   soname_spec='${libname}${release}${shared_ext}$major'
25370   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25371   shlibpath_var=LD_LIBRARY_PATH
25372   shlibpath_overrides_runpath=no
25373   # This implies no fast_install, which is unacceptable.
25374   # Some rework will be needed to allow for fast_install
25375   # before this can be enabled.
25376   hardcode_into_libs=yes
25377
25378   # Append ld.so.conf contents to the search path
25379   if test -f /etc/ld.so.conf; then
25380     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' ' '`
25381     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25382   fi
25383
25384   # We used to test for /lib/ld.so.1 and disable shared libraries on
25385   # powerpc, because MkLinux only supported shared libraries with the
25386   # GNU dynamic linker.  Since this was broken with cross compilers,
25387   # most powerpc-linux boxes support dynamic linking these days and
25388   # people can always --disable-shared, the test was removed, and we
25389   # assume the GNU/Linux dynamic linker is in use.
25390   dynamic_linker='GNU/Linux ld.so'
25391   ;;
25392
25393 knetbsd*-gnu)
25394   version_type=linux
25395   need_lib_prefix=no
25396   need_version=no
25397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25398   soname_spec='${libname}${release}${shared_ext}$major'
25399   shlibpath_var=LD_LIBRARY_PATH
25400   shlibpath_overrides_runpath=no
25401   hardcode_into_libs=yes
25402   dynamic_linker='GNU ld.so'
25403   ;;
25404
25405 netbsd*)
25406   version_type=sunos
25407   need_lib_prefix=no
25408   need_version=no
25409   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25411     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25412     dynamic_linker='NetBSD (a.out) ld.so'
25413   else
25414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25415     soname_spec='${libname}${release}${shared_ext}$major'
25416     dynamic_linker='NetBSD ld.elf_so'
25417   fi
25418   shlibpath_var=LD_LIBRARY_PATH
25419   shlibpath_overrides_runpath=yes
25420   hardcode_into_libs=yes
25421   ;;
25422
25423 newsos6)
25424   version_type=linux
25425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25426   shlibpath_var=LD_LIBRARY_PATH
25427   shlibpath_overrides_runpath=yes
25428   ;;
25429
25430 nto-qnx*)
25431   version_type=linux
25432   need_lib_prefix=no
25433   need_version=no
25434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25435   soname_spec='${libname}${release}${shared_ext}$major'
25436   shlibpath_var=LD_LIBRARY_PATH
25437   shlibpath_overrides_runpath=yes
25438   ;;
25439
25440 openbsd*)
25441   version_type=sunos
25442   sys_lib_dlsearch_path_spec="/usr/lib"
25443   need_lib_prefix=no
25444   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25445   case $host_os in
25446     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25447     *)                         need_version=no  ;;
25448   esac
25449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25451   shlibpath_var=LD_LIBRARY_PATH
25452   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25453     case $host_os in
25454       openbsd2.[89] | openbsd2.[89].*)
25455         shlibpath_overrides_runpath=no
25456         ;;
25457       *)
25458         shlibpath_overrides_runpath=yes
25459         ;;
25460       esac
25461   else
25462     shlibpath_overrides_runpath=yes
25463   fi
25464   ;;
25465
25466 os2*)
25467   libname_spec='$name'
25468   shrext_cmds=".dll"
25469   need_lib_prefix=no
25470   library_names_spec='$libname${shared_ext} $libname.a'
25471   dynamic_linker='OS/2 ld.exe'
25472   shlibpath_var=LIBPATH
25473   ;;
25474
25475 osf3* | osf4* | osf5*)
25476   version_type=osf
25477   need_lib_prefix=no
25478   need_version=no
25479   soname_spec='${libname}${release}${shared_ext}$major'
25480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25481   shlibpath_var=LD_LIBRARY_PATH
25482   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25483   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25484   ;;
25485
25486 solaris*)
25487   version_type=linux
25488   need_lib_prefix=no
25489   need_version=no
25490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25491   soname_spec='${libname}${release}${shared_ext}$major'
25492   shlibpath_var=LD_LIBRARY_PATH
25493   shlibpath_overrides_runpath=yes
25494   hardcode_into_libs=yes
25495   # ldd complains unless libraries are executable
25496   postinstall_cmds='chmod +x $lib'
25497   ;;
25498
25499 sunos4*)
25500   version_type=sunos
25501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25502   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25503   shlibpath_var=LD_LIBRARY_PATH
25504   shlibpath_overrides_runpath=yes
25505   if test "$with_gnu_ld" = yes; then
25506     need_lib_prefix=no
25507   fi
25508   need_version=yes
25509   ;;
25510
25511 sysv4 | sysv4.3*)
25512   version_type=linux
25513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25514   soname_spec='${libname}${release}${shared_ext}$major'
25515   shlibpath_var=LD_LIBRARY_PATH
25516   case $host_vendor in
25517     sni)
25518       shlibpath_overrides_runpath=no
25519       need_lib_prefix=no
25520       export_dynamic_flag_spec='${wl}-Blargedynsym'
25521       runpath_var=LD_RUN_PATH
25522       ;;
25523     siemens)
25524       need_lib_prefix=no
25525       ;;
25526     motorola)
25527       need_lib_prefix=no
25528       need_version=no
25529       shlibpath_overrides_runpath=no
25530       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25531       ;;
25532   esac
25533   ;;
25534
25535 sysv4*MP*)
25536   if test -d /usr/nec ;then
25537     version_type=linux
25538     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25539     soname_spec='$libname${shared_ext}.$major'
25540     shlibpath_var=LD_LIBRARY_PATH
25541   fi
25542   ;;
25543
25544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25545   version_type=freebsd-elf
25546   need_lib_prefix=no
25547   need_version=no
25548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25549   soname_spec='${libname}${release}${shared_ext}$major'
25550   shlibpath_var=LD_LIBRARY_PATH
25551   hardcode_into_libs=yes
25552   if test "$with_gnu_ld" = yes; then
25553     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25554     shlibpath_overrides_runpath=no
25555   else
25556     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25557     shlibpath_overrides_runpath=yes
25558     case $host_os in
25559       sco3.2v5*)
25560         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25561         ;;
25562     esac
25563   fi
25564   sys_lib_dlsearch_path_spec='/usr/lib'
25565   ;;
25566
25567 uts4*)
25568   version_type=linux
25569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570   soname_spec='${libname}${release}${shared_ext}$major'
25571   shlibpath_var=LD_LIBRARY_PATH
25572   ;;
25573
25574 *)
25575   dynamic_linker=no
25576   ;;
25577 esac
25578 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25579 echo "${ECHO_T}$dynamic_linker" >&6; }
25580 test "$dynamic_linker" = no && can_build_shared=no
25581
25582 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25583 if test "$GCC" = yes; then
25584   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25585 fi
25586
25587 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25588 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25589 hardcode_action_GCJ=
25590 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25591    test -n "$runpath_var_GCJ" || \
25592    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25593
25594   # We can hardcode non-existant directories.
25595   if test "$hardcode_direct_GCJ" != no &&
25596      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25597      # have to relink, otherwise we might link with an installed library
25598      # when we should be linking with a yet-to-be-installed one
25599      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25600      test "$hardcode_minus_L_GCJ" != no; then
25601     # Linking always hardcodes the temporary library directory.
25602     hardcode_action_GCJ=relink
25603   else
25604     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25605     hardcode_action_GCJ=immediate
25606   fi
25607 else
25608   # We cannot hardcode anything, or else we can only hardcode existing
25609   # directories.
25610   hardcode_action_GCJ=unsupported
25611 fi
25612 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25613 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25614
25615 if test "$hardcode_action_GCJ" = relink; then
25616   # Fast installation is not supported
25617   enable_fast_install=no
25618 elif test "$shlibpath_overrides_runpath" = yes ||
25619      test "$enable_shared" = no; then
25620   # Fast installation is not necessary
25621   enable_fast_install=needless
25622 fi
25623
25624
25625 # The else clause should only fire when bootstrapping the
25626 # libtool distribution, otherwise you forgot to ship ltmain.sh
25627 # with your package, and you will get complaints that there are
25628 # no rules to generate ltmain.sh.
25629 if test -f "$ltmain"; then
25630   # See if we are running on zsh, and set the options which allow our commands through
25631   # without removal of \ escapes.
25632   if test -n "${ZSH_VERSION+set}" ; then
25633     setopt NO_GLOB_SUBST
25634   fi
25635   # Now quote all the things that may contain metacharacters while being
25636   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25637   # variables and quote the copies for generation of the libtool script.
25638   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25639     SED SHELL STRIP \
25640     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25641     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25642     deplibs_check_method reload_flag reload_cmds need_locks \
25643     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25644     lt_cv_sys_global_symbol_to_c_name_address \
25645     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25646     old_postinstall_cmds old_postuninstall_cmds \
25647     compiler_GCJ \
25648     CC_GCJ \
25649     LD_GCJ \
25650     lt_prog_compiler_wl_GCJ \
25651     lt_prog_compiler_pic_GCJ \
25652     lt_prog_compiler_static_GCJ \
25653     lt_prog_compiler_no_builtin_flag_GCJ \
25654     export_dynamic_flag_spec_GCJ \
25655     thread_safe_flag_spec_GCJ \
25656     whole_archive_flag_spec_GCJ \
25657     enable_shared_with_static_runtimes_GCJ \
25658     old_archive_cmds_GCJ \
25659     old_archive_from_new_cmds_GCJ \
25660     predep_objects_GCJ \
25661     postdep_objects_GCJ \
25662     predeps_GCJ \
25663     postdeps_GCJ \
25664     compiler_lib_search_path_GCJ \
25665     archive_cmds_GCJ \
25666     archive_expsym_cmds_GCJ \
25667     postinstall_cmds_GCJ \
25668     postuninstall_cmds_GCJ \
25669     old_archive_from_expsyms_cmds_GCJ \
25670     allow_undefined_flag_GCJ \
25671     no_undefined_flag_GCJ \
25672     export_symbols_cmds_GCJ \
25673     hardcode_libdir_flag_spec_GCJ \
25674     hardcode_libdir_flag_spec_ld_GCJ \
25675     hardcode_libdir_separator_GCJ \
25676     hardcode_automatic_GCJ \
25677     module_cmds_GCJ \
25678     module_expsym_cmds_GCJ \
25679     lt_cv_prog_compiler_c_o_GCJ \
25680     exclude_expsyms_GCJ \
25681     include_expsyms_GCJ; do
25682
25683     case $var in
25684     old_archive_cmds_GCJ | \
25685     old_archive_from_new_cmds_GCJ | \
25686     archive_cmds_GCJ | \
25687     archive_expsym_cmds_GCJ | \
25688     module_cmds_GCJ | \
25689     module_expsym_cmds_GCJ | \
25690     old_archive_from_expsyms_cmds_GCJ | \
25691     export_symbols_cmds_GCJ | \
25692     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25693     postinstall_cmds | postuninstall_cmds | \
25694     old_postinstall_cmds | old_postuninstall_cmds | \
25695     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25696       # Double-quote double-evaled strings.
25697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25698       ;;
25699     *)
25700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25701       ;;
25702     esac
25703   done
25704
25705   case $lt_echo in
25706   *'\$0 --fallback-echo"')
25707     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25708     ;;
25709   esac
25710
25711 cfgfile="$ofile"
25712
25713   cat <<__EOF__ >> "$cfgfile"
25714 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25715
25716 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25717
25718 # Shell to use when invoking shell scripts.
25719 SHELL=$lt_SHELL
25720
25721 # Whether or not to build shared libraries.
25722 build_libtool_libs=$enable_shared
25723
25724 # Whether or not to build static libraries.
25725 build_old_libs=$enable_static
25726
25727 # Whether or not to add -lc for building shared libraries.
25728 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25729
25730 # Whether or not to disallow shared libs when runtime libs are static
25731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25732
25733 # Whether or not to optimize for fast installation.
25734 fast_install=$enable_fast_install
25735
25736 # The host system.
25737 host_alias=$host_alias
25738 host=$host
25739 host_os=$host_os
25740
25741 # The build system.
25742 build_alias=$build_alias
25743 build=$build
25744 build_os=$build_os
25745
25746 # An echo program that does not interpret backslashes.
25747 echo=$lt_echo
25748
25749 # The archiver.
25750 AR=$lt_AR
25751 AR_FLAGS=$lt_AR_FLAGS
25752
25753 # A C compiler.
25754 LTCC=$lt_LTCC
25755
25756 # LTCC compiler flags.
25757 LTCFLAGS=$lt_LTCFLAGS
25758
25759 # A language-specific compiler.
25760 CC=$lt_compiler_GCJ
25761
25762 # Is the compiler the GNU C compiler?
25763 with_gcc=$GCC_GCJ
25764
25765 # An ERE matcher.
25766 EGREP=$lt_EGREP
25767
25768 # The linker used to build libraries.
25769 LD=$lt_LD_GCJ
25770
25771 # Whether we need hard or soft links.
25772 LN_S=$lt_LN_S
25773
25774 # A BSD-compatible nm program.
25775 NM=$lt_NM
25776
25777 # A symbol stripping program
25778 STRIP=$lt_STRIP
25779
25780 # Used to examine libraries when file_magic_cmd begins "file"
25781 MAGIC_CMD=$MAGIC_CMD
25782
25783 # Used on cygwin: DLL creation program.
25784 DLLTOOL="$DLLTOOL"
25785
25786 # Used on cygwin: object dumper.
25787 OBJDUMP="$OBJDUMP"
25788
25789 # Used on cygwin: assembler.
25790 AS="$AS"
25791
25792 # The name of the directory that contains temporary libtool files.
25793 objdir=$objdir
25794
25795 # How to create reloadable object files.
25796 reload_flag=$lt_reload_flag
25797 reload_cmds=$lt_reload_cmds
25798
25799 # How to pass a linker flag through the compiler.
25800 wl=$lt_lt_prog_compiler_wl_GCJ
25801
25802 # Object file suffix (normally "o").
25803 objext="$ac_objext"
25804
25805 # Old archive suffix (normally "a").
25806 libext="$libext"
25807
25808 # Shared library suffix (normally ".so").
25809 shrext_cmds='$shrext_cmds'
25810
25811 # Executable file suffix (normally "").
25812 exeext="$exeext"
25813
25814 # Additional compiler flags for building library objects.
25815 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25816 pic_mode=$pic_mode
25817
25818 # What is the maximum length of a command?
25819 max_cmd_len=$lt_cv_sys_max_cmd_len
25820
25821 # Does compiler simultaneously support -c and -o options?
25822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25823
25824 # Must we lock files when doing compilation?
25825 need_locks=$lt_need_locks
25826
25827 # Do we need the lib prefix for modules?
25828 need_lib_prefix=$need_lib_prefix
25829
25830 # Do we need a version for libraries?
25831 need_version=$need_version
25832
25833 # Whether dlopen is supported.
25834 dlopen_support=$enable_dlopen
25835
25836 # Whether dlopen of programs is supported.
25837 dlopen_self=$enable_dlopen_self
25838
25839 # Whether dlopen of statically linked programs is supported.
25840 dlopen_self_static=$enable_dlopen_self_static
25841
25842 # Compiler flag to prevent dynamic linking.
25843 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25844
25845 # Compiler flag to turn off builtin functions.
25846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25847
25848 # Compiler flag to allow reflexive dlopens.
25849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25850
25851 # Compiler flag to generate shared objects directly from archives.
25852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25853
25854 # Compiler flag to generate thread-safe objects.
25855 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25856
25857 # Library versioning type.
25858 version_type=$version_type
25859
25860 # Format of library name prefix.
25861 libname_spec=$lt_libname_spec
25862
25863 # List of archive names.  First name is the real one, the rest are links.
25864 # The last name is the one that the linker finds with -lNAME.
25865 library_names_spec=$lt_library_names_spec
25866
25867 # The coded name of the library, if different from the real name.
25868 soname_spec=$lt_soname_spec
25869
25870 # Commands used to build and install an old-style archive.
25871 RANLIB=$lt_RANLIB
25872 old_archive_cmds=$lt_old_archive_cmds_GCJ
25873 old_postinstall_cmds=$lt_old_postinstall_cmds
25874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25875
25876 # Create an old-style archive from a shared archive.
25877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25878
25879 # Create a temporary old-style archive to link instead of a shared archive.
25880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25881
25882 # Commands used to build and install a shared archive.
25883 archive_cmds=$lt_archive_cmds_GCJ
25884 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25885 postinstall_cmds=$lt_postinstall_cmds
25886 postuninstall_cmds=$lt_postuninstall_cmds
25887
25888 # Commands used to build a loadable module (assumed same as above if empty)
25889 module_cmds=$lt_module_cmds_GCJ
25890 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25891
25892 # Commands to strip libraries.
25893 old_striplib=$lt_old_striplib
25894 striplib=$lt_striplib
25895
25896 # Dependencies to place before the objects being linked to create a
25897 # shared library.
25898 predep_objects=$lt_predep_objects_GCJ
25899
25900 # Dependencies to place after the objects being linked to create a
25901 # shared library.
25902 postdep_objects=$lt_postdep_objects_GCJ
25903
25904 # Dependencies to place before the objects being linked to create a
25905 # shared library.
25906 predeps=$lt_predeps_GCJ
25907
25908 # Dependencies to place after the objects being linked to create a
25909 # shared library.
25910 postdeps=$lt_postdeps_GCJ
25911
25912 # The library search path used internally by the compiler when linking
25913 # a shared library.
25914 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25915
25916 # Method to check whether dependent libraries are shared objects.
25917 deplibs_check_method=$lt_deplibs_check_method
25918
25919 # Command to use when deplibs_check_method == file_magic.
25920 file_magic_cmd=$lt_file_magic_cmd
25921
25922 # Flag that allows shared libraries with undefined symbols to be built.
25923 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25924
25925 # Flag that forces no undefined symbols.
25926 no_undefined_flag=$lt_no_undefined_flag_GCJ
25927
25928 # Commands used to finish a libtool library installation in a directory.
25929 finish_cmds=$lt_finish_cmds
25930
25931 # Same as above, but a single script fragment to be evaled but not shown.
25932 finish_eval=$lt_finish_eval
25933
25934 # Take the output of nm and produce a listing of raw symbols and C names.
25935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25936
25937 # Transform the output of nm in a proper C declaration
25938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25939
25940 # Transform the output of nm in a C name address pair
25941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25942
25943 # This is the shared library runtime path variable.
25944 runpath_var=$runpath_var
25945
25946 # This is the shared library path variable.
25947 shlibpath_var=$shlibpath_var
25948
25949 # Is shlibpath searched before the hard-coded library search path?
25950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25951
25952 # How to hardcode a shared library path into an executable.
25953 hardcode_action=$hardcode_action_GCJ
25954
25955 # Whether we should hardcode library paths into libraries.
25956 hardcode_into_libs=$hardcode_into_libs
25957
25958 # Flag to hardcode \$libdir into a binary during linking.
25959 # This must work even if \$libdir does not exist.
25960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25961
25962 # If ld is used when linking, flag to hardcode \$libdir into
25963 # a binary during linking. This must work even if \$libdir does
25964 # not exist.
25965 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25966
25967 # Whether we need a single -rpath flag with a separated argument.
25968 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25969
25970 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25971 # resulting binary.
25972 hardcode_direct=$hardcode_direct_GCJ
25973
25974 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25975 # resulting binary.
25976 hardcode_minus_L=$hardcode_minus_L_GCJ
25977
25978 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25979 # the resulting binary.
25980 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25981
25982 # Set to yes if building a shared library automatically hardcodes DIR into the library
25983 # and all subsequent libraries and executables linked against it.
25984 hardcode_automatic=$hardcode_automatic_GCJ
25985
25986 # Variables whose values should be saved in libtool wrapper scripts and
25987 # restored at relink time.
25988 variables_saved_for_relink="$variables_saved_for_relink"
25989
25990 # Whether libtool must link a program against all its dependency libraries.
25991 link_all_deplibs=$link_all_deplibs_GCJ
25992
25993 # Compile-time system search path for libraries
25994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25995
25996 # Run-time system search path for libraries
25997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25998
25999 # Fix the shell variable \$srcfile for the compiler.
26000 fix_srcfile_path="$fix_srcfile_path_GCJ"
26001
26002 # Set to yes if exported symbols are required.
26003 always_export_symbols=$always_export_symbols_GCJ
26004
26005 # The commands to list exported symbols.
26006 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26007
26008 # The commands to extract the exported symbol list from a shared archive.
26009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26010
26011 # Symbols that should not be listed in the preloaded symbols.
26012 exclude_expsyms=$lt_exclude_expsyms_GCJ
26013
26014 # Symbols that must always be exported.
26015 include_expsyms=$lt_include_expsyms_GCJ
26016
26017 # ### END LIBTOOL TAG CONFIG: $tagname
26018
26019 __EOF__
26020
26021
26022 else
26023   # If there is no Makefile yet, we rely on a make rule to execute
26024   # `config.status --recheck' to rerun these tests and create the
26025   # libtool script then.
26026   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26027   if test -f "$ltmain_in"; then
26028     test -f Makefile && make "$ltmain"
26029   fi
26030 fi
26031
26032
26033 ac_ext=c
26034 ac_cpp='$CPP $CPPFLAGS'
26035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26038
26039 CC="$lt_save_CC"
26040
26041         else
26042           tagname=""
26043         fi
26044         ;;
26045
26046       RC)
26047         ac_ext=c
26048 ac_cpp='$CPP $CPPFLAGS'
26049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26052
26053
26054 # Source file extension for RC test sources.
26055 ac_ext=rc
26056
26057 # Object file extension for compiled RC test sources.
26058 objext=o
26059 objext_RC=$objext
26060
26061 # Code to be used in simple compile tests
26062 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26063
26064 # Code to be used in simple link tests
26065 lt_simple_link_test_code="$lt_simple_compile_test_code"
26066
26067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26068
26069 # If no C compiler was specified, use CC.
26070 LTCC=${LTCC-"$CC"}
26071
26072 # If no C compiler flags were specified, use CFLAGS.
26073 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26074
26075 # Allow CC to be a program name with arguments.
26076 compiler=$CC
26077
26078
26079 # save warnings/boilerplate of simple test code
26080 ac_outfile=conftest.$ac_objext
26081 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26082 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26083 _lt_compiler_boilerplate=`cat conftest.err`
26084 $rm conftest*
26085
26086 ac_outfile=conftest.$ac_objext
26087 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26088 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26089 _lt_linker_boilerplate=`cat conftest.err`
26090 $rm conftest*
26091
26092
26093 # Allow CC to be a program name with arguments.
26094 lt_save_CC="$CC"
26095 CC=${RC-"windres"}
26096 compiler=$CC
26097 compiler_RC=$CC
26098 for cc_temp in $compiler""; do
26099   case $cc_temp in
26100     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26101     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26102     \-*) ;;
26103     *) break;;
26104   esac
26105 done
26106 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26107
26108 lt_cv_prog_compiler_c_o_RC=yes
26109
26110 # The else clause should only fire when bootstrapping the
26111 # libtool distribution, otherwise you forgot to ship ltmain.sh
26112 # with your package, and you will get complaints that there are
26113 # no rules to generate ltmain.sh.
26114 if test -f "$ltmain"; then
26115   # See if we are running on zsh, and set the options which allow our commands through
26116   # without removal of \ escapes.
26117   if test -n "${ZSH_VERSION+set}" ; then
26118     setopt NO_GLOB_SUBST
26119   fi
26120   # Now quote all the things that may contain metacharacters while being
26121   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26122   # variables and quote the copies for generation of the libtool script.
26123   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26124     SED SHELL STRIP \
26125     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26126     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26127     deplibs_check_method reload_flag reload_cmds need_locks \
26128     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26129     lt_cv_sys_global_symbol_to_c_name_address \
26130     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26131     old_postinstall_cmds old_postuninstall_cmds \
26132     compiler_RC \
26133     CC_RC \
26134     LD_RC \
26135     lt_prog_compiler_wl_RC \
26136     lt_prog_compiler_pic_RC \
26137     lt_prog_compiler_static_RC \
26138     lt_prog_compiler_no_builtin_flag_RC \
26139     export_dynamic_flag_spec_RC \
26140     thread_safe_flag_spec_RC \
26141     whole_archive_flag_spec_RC \
26142     enable_shared_with_static_runtimes_RC \
26143     old_archive_cmds_RC \
26144     old_archive_from_new_cmds_RC \
26145     predep_objects_RC \
26146     postdep_objects_RC \
26147     predeps_RC \
26148     postdeps_RC \
26149     compiler_lib_search_path_RC \
26150     archive_cmds_RC \
26151     archive_expsym_cmds_RC \
26152     postinstall_cmds_RC \
26153     postuninstall_cmds_RC \
26154     old_archive_from_expsyms_cmds_RC \
26155     allow_undefined_flag_RC \
26156     no_undefined_flag_RC \
26157     export_symbols_cmds_RC \
26158     hardcode_libdir_flag_spec_RC \
26159     hardcode_libdir_flag_spec_ld_RC \
26160     hardcode_libdir_separator_RC \
26161     hardcode_automatic_RC \
26162     module_cmds_RC \
26163     module_expsym_cmds_RC \
26164     lt_cv_prog_compiler_c_o_RC \
26165     exclude_expsyms_RC \
26166     include_expsyms_RC; do
26167
26168     case $var in
26169     old_archive_cmds_RC | \
26170     old_archive_from_new_cmds_RC | \
26171     archive_cmds_RC | \
26172     archive_expsym_cmds_RC | \
26173     module_cmds_RC | \
26174     module_expsym_cmds_RC | \
26175     old_archive_from_expsyms_cmds_RC | \
26176     export_symbols_cmds_RC | \
26177     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26178     postinstall_cmds | postuninstall_cmds | \
26179     old_postinstall_cmds | old_postuninstall_cmds | \
26180     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26181       # Double-quote double-evaled strings.
26182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26183       ;;
26184     *)
26185       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26186       ;;
26187     esac
26188   done
26189
26190   case $lt_echo in
26191   *'\$0 --fallback-echo"')
26192     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26193     ;;
26194   esac
26195
26196 cfgfile="$ofile"
26197
26198   cat <<__EOF__ >> "$cfgfile"
26199 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26200
26201 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26202
26203 # Shell to use when invoking shell scripts.
26204 SHELL=$lt_SHELL
26205
26206 # Whether or not to build shared libraries.
26207 build_libtool_libs=$enable_shared
26208
26209 # Whether or not to build static libraries.
26210 build_old_libs=$enable_static
26211
26212 # Whether or not to add -lc for building shared libraries.
26213 build_libtool_need_lc=$archive_cmds_need_lc_RC
26214
26215 # Whether or not to disallow shared libs when runtime libs are static
26216 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26217
26218 # Whether or not to optimize for fast installation.
26219 fast_install=$enable_fast_install
26220
26221 # The host system.
26222 host_alias=$host_alias
26223 host=$host
26224 host_os=$host_os
26225
26226 # The build system.
26227 build_alias=$build_alias
26228 build=$build
26229 build_os=$build_os
26230
26231 # An echo program that does not interpret backslashes.
26232 echo=$lt_echo
26233
26234 # The archiver.
26235 AR=$lt_AR
26236 AR_FLAGS=$lt_AR_FLAGS
26237
26238 # A C compiler.
26239 LTCC=$lt_LTCC
26240
26241 # LTCC compiler flags.
26242 LTCFLAGS=$lt_LTCFLAGS
26243
26244 # A language-specific compiler.
26245 CC=$lt_compiler_RC
26246
26247 # Is the compiler the GNU C compiler?
26248 with_gcc=$GCC_RC
26249
26250 # An ERE matcher.
26251 EGREP=$lt_EGREP
26252
26253 # The linker used to build libraries.
26254 LD=$lt_LD_RC
26255
26256 # Whether we need hard or soft links.
26257 LN_S=$lt_LN_S
26258
26259 # A BSD-compatible nm program.
26260 NM=$lt_NM
26261
26262 # A symbol stripping program
26263 STRIP=$lt_STRIP
26264
26265 # Used to examine libraries when file_magic_cmd begins "file"
26266 MAGIC_CMD=$MAGIC_CMD
26267
26268 # Used on cygwin: DLL creation program.
26269 DLLTOOL="$DLLTOOL"
26270
26271 # Used on cygwin: object dumper.
26272 OBJDUMP="$OBJDUMP"
26273
26274 # Used on cygwin: assembler.
26275 AS="$AS"
26276
26277 # The name of the directory that contains temporary libtool files.
26278 objdir=$objdir
26279
26280 # How to create reloadable object files.
26281 reload_flag=$lt_reload_flag
26282 reload_cmds=$lt_reload_cmds
26283
26284 # How to pass a linker flag through the compiler.
26285 wl=$lt_lt_prog_compiler_wl_RC
26286
26287 # Object file suffix (normally "o").
26288 objext="$ac_objext"
26289
26290 # Old archive suffix (normally "a").
26291 libext="$libext"
26292
26293 # Shared library suffix (normally ".so").
26294 shrext_cmds='$shrext_cmds'
26295
26296 # Executable file suffix (normally "").
26297 exeext="$exeext"
26298
26299 # Additional compiler flags for building library objects.
26300 pic_flag=$lt_lt_prog_compiler_pic_RC
26301 pic_mode=$pic_mode
26302
26303 # What is the maximum length of a command?
26304 max_cmd_len=$lt_cv_sys_max_cmd_len
26305
26306 # Does compiler simultaneously support -c and -o options?
26307 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26308
26309 # Must we lock files when doing compilation?
26310 need_locks=$lt_need_locks
26311
26312 # Do we need the lib prefix for modules?
26313 need_lib_prefix=$need_lib_prefix
26314
26315 # Do we need a version for libraries?
26316 need_version=$need_version
26317
26318 # Whether dlopen is supported.
26319 dlopen_support=$enable_dlopen
26320
26321 # Whether dlopen of programs is supported.
26322 dlopen_self=$enable_dlopen_self
26323
26324 # Whether dlopen of statically linked programs is supported.
26325 dlopen_self_static=$enable_dlopen_self_static
26326
26327 # Compiler flag to prevent dynamic linking.
26328 link_static_flag=$lt_lt_prog_compiler_static_RC
26329
26330 # Compiler flag to turn off builtin functions.
26331 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26332
26333 # Compiler flag to allow reflexive dlopens.
26334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26335
26336 # Compiler flag to generate shared objects directly from archives.
26337 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26338
26339 # Compiler flag to generate thread-safe objects.
26340 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26341
26342 # Library versioning type.
26343 version_type=$version_type
26344
26345 # Format of library name prefix.
26346 libname_spec=$lt_libname_spec
26347
26348 # List of archive names.  First name is the real one, the rest are links.
26349 # The last name is the one that the linker finds with -lNAME.
26350 library_names_spec=$lt_library_names_spec
26351
26352 # The coded name of the library, if different from the real name.
26353 soname_spec=$lt_soname_spec
26354
26355 # Commands used to build and install an old-style archive.
26356 RANLIB=$lt_RANLIB
26357 old_archive_cmds=$lt_old_archive_cmds_RC
26358 old_postinstall_cmds=$lt_old_postinstall_cmds
26359 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26360
26361 # Create an old-style archive from a shared archive.
26362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26363
26364 # Create a temporary old-style archive to link instead of a shared archive.
26365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26366
26367 # Commands used to build and install a shared archive.
26368 archive_cmds=$lt_archive_cmds_RC
26369 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26370 postinstall_cmds=$lt_postinstall_cmds
26371 postuninstall_cmds=$lt_postuninstall_cmds
26372
26373 # Commands used to build a loadable module (assumed same as above if empty)
26374 module_cmds=$lt_module_cmds_RC
26375 module_expsym_cmds=$lt_module_expsym_cmds_RC
26376
26377 # Commands to strip libraries.
26378 old_striplib=$lt_old_striplib
26379 striplib=$lt_striplib
26380
26381 # Dependencies to place before the objects being linked to create a
26382 # shared library.
26383 predep_objects=$lt_predep_objects_RC
26384
26385 # Dependencies to place after the objects being linked to create a
26386 # shared library.
26387 postdep_objects=$lt_postdep_objects_RC
26388
26389 # Dependencies to place before the objects being linked to create a
26390 # shared library.
26391 predeps=$lt_predeps_RC
26392
26393 # Dependencies to place after the objects being linked to create a
26394 # shared library.
26395 postdeps=$lt_postdeps_RC
26396
26397 # The library search path used internally by the compiler when linking
26398 # a shared library.
26399 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26400
26401 # Method to check whether dependent libraries are shared objects.
26402 deplibs_check_method=$lt_deplibs_check_method
26403
26404 # Command to use when deplibs_check_method == file_magic.
26405 file_magic_cmd=$lt_file_magic_cmd
26406
26407 # Flag that allows shared libraries with undefined symbols to be built.
26408 allow_undefined_flag=$lt_allow_undefined_flag_RC
26409
26410 # Flag that forces no undefined symbols.
26411 no_undefined_flag=$lt_no_undefined_flag_RC
26412
26413 # Commands used to finish a libtool library installation in a directory.
26414 finish_cmds=$lt_finish_cmds
26415
26416 # Same as above, but a single script fragment to be evaled but not shown.
26417 finish_eval=$lt_finish_eval
26418
26419 # Take the output of nm and produce a listing of raw symbols and C names.
26420 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26421
26422 # Transform the output of nm in a proper C declaration
26423 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26424
26425 # Transform the output of nm in a C name address pair
26426 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26427
26428 # This is the shared library runtime path variable.
26429 runpath_var=$runpath_var
26430
26431 # This is the shared library path variable.
26432 shlibpath_var=$shlibpath_var
26433
26434 # Is shlibpath searched before the hard-coded library search path?
26435 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26436
26437 # How to hardcode a shared library path into an executable.
26438 hardcode_action=$hardcode_action_RC
26439
26440 # Whether we should hardcode library paths into libraries.
26441 hardcode_into_libs=$hardcode_into_libs
26442
26443 # Flag to hardcode \$libdir into a binary during linking.
26444 # This must work even if \$libdir does not exist.
26445 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26446
26447 # If ld is used when linking, flag to hardcode \$libdir into
26448 # a binary during linking. This must work even if \$libdir does
26449 # not exist.
26450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26451
26452 # Whether we need a single -rpath flag with a separated argument.
26453 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26454
26455 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26456 # resulting binary.
26457 hardcode_direct=$hardcode_direct_RC
26458
26459 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26460 # resulting binary.
26461 hardcode_minus_L=$hardcode_minus_L_RC
26462
26463 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26464 # the resulting binary.
26465 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26466
26467 # Set to yes if building a shared library automatically hardcodes DIR into the library
26468 # and all subsequent libraries and executables linked against it.
26469 hardcode_automatic=$hardcode_automatic_RC
26470
26471 # Variables whose values should be saved in libtool wrapper scripts and
26472 # restored at relink time.
26473 variables_saved_for_relink="$variables_saved_for_relink"
26474
26475 # Whether libtool must link a program against all its dependency libraries.
26476 link_all_deplibs=$link_all_deplibs_RC
26477
26478 # Compile-time system search path for libraries
26479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26480
26481 # Run-time system search path for libraries
26482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26483
26484 # Fix the shell variable \$srcfile for the compiler.
26485 fix_srcfile_path="$fix_srcfile_path_RC"
26486
26487 # Set to yes if exported symbols are required.
26488 always_export_symbols=$always_export_symbols_RC
26489
26490 # The commands to list exported symbols.
26491 export_symbols_cmds=$lt_export_symbols_cmds_RC
26492
26493 # The commands to extract the exported symbol list from a shared archive.
26494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26495
26496 # Symbols that should not be listed in the preloaded symbols.
26497 exclude_expsyms=$lt_exclude_expsyms_RC
26498
26499 # Symbols that must always be exported.
26500 include_expsyms=$lt_include_expsyms_RC
26501
26502 # ### END LIBTOOL TAG CONFIG: $tagname
26503
26504 __EOF__
26505
26506
26507 else
26508   # If there is no Makefile yet, we rely on a make rule to execute
26509   # `config.status --recheck' to rerun these tests and create the
26510   # libtool script then.
26511   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26512   if test -f "$ltmain_in"; then
26513     test -f Makefile && make "$ltmain"
26514   fi
26515 fi
26516
26517
26518 ac_ext=c
26519 ac_cpp='$CPP $CPPFLAGS'
26520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26523
26524 CC="$lt_save_CC"
26525
26526         ;;
26527
26528       *)
26529         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26530 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26531    { (exit 1); exit 1; }; }
26532         ;;
26533       esac
26534
26535       # Append the new tag name to the list of available tags.
26536       if test -n "$tagname" ; then
26537       available_tags="$available_tags $tagname"
26538     fi
26539     fi
26540   done
26541   IFS="$lt_save_ifs"
26542
26543   # Now substitute the updated list of available tags.
26544   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26545     mv "${ofile}T" "$ofile"
26546     chmod +x "$ofile"
26547   else
26548     rm -f "${ofile}T"
26549     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26550 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26551    { (exit 1); exit 1; }; }
26552   fi
26553 fi
26554
26555
26556
26557 # This can be used to rebuild libtool when needed
26558 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26559
26560 # Always use our own libtool.
26561 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26562
26563 # Prevent multiple expansion
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585 if test "$lt_cv_dlopen_self" = "yes" ; then
26586
26587 cat >>confdefs.h <<\_ACEOF
26588 #define CAN_DLOPEN_SELF 1
26589 _ACEOF
26590
26591 fi
26592
26593 etags_version=`$ETAGS --version 2>&1`
26594 case "$etags_version" in
26595         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26596         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26597         *) ETAGSFLAGS="" ;;
26598 esac
26599 ETAGSFLAGS=$ETAGSFLAGS
26600
26601
26602 if test "$WITH_LLVMGCCDIR" = "default" ; then
26603   LLVMGCC="llvm-gcc${EXEEXT}"
26604   LLVMGXX="llvm-g++${EXEEXT}"
26605   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26606 set dummy $LLVMGCC; ac_word=$2
26607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26609 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26610   echo $ECHO_N "(cached) $ECHO_C" >&6
26611 else
26612   case $LLVMGCC in
26613   [\\/]* | ?:[\\/]*)
26614   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26615   ;;
26616   *)
26617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26618 for as_dir in $PATH
26619 do
26620   IFS=$as_save_IFS
26621   test -z "$as_dir" && as_dir=.
26622   for ac_exec_ext in '' $ac_executable_extensions; do
26623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26624     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26626     break 2
26627   fi
26628 done
26629 done
26630 IFS=$as_save_IFS
26631
26632   ;;
26633 esac
26634 fi
26635 LLVMGCC=$ac_cv_path_LLVMGCC
26636 if test -n "$LLVMGCC"; then
26637   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26638 echo "${ECHO_T}$LLVMGCC" >&6; }
26639 else
26640   { echo "$as_me:$LINENO: result: no" >&5
26641 echo "${ECHO_T}no" >&6; }
26642 fi
26643
26644
26645   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26646 set dummy $LLVMGXX; ac_word=$2
26647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26649 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26650   echo $ECHO_N "(cached) $ECHO_C" >&6
26651 else
26652   case $LLVMGXX in
26653   [\\/]* | ?:[\\/]*)
26654   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26655   ;;
26656   *)
26657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26658 for as_dir in $PATH
26659 do
26660   IFS=$as_save_IFS
26661   test -z "$as_dir" && as_dir=.
26662   for ac_exec_ext in '' $ac_executable_extensions; do
26663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26664     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26666     break 2
26667   fi
26668 done
26669 done
26670 IFS=$as_save_IFS
26671
26672   ;;
26673 esac
26674 fi
26675 LLVMGXX=$ac_cv_path_LLVMGXX
26676 if test -n "$LLVMGXX"; then
26677   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26678 echo "${ECHO_T}$LLVMGXX" >&6; }
26679 else
26680   { echo "$as_me:$LINENO: result: no" >&5
26681 echo "${ECHO_T}no" >&6; }
26682 fi
26683
26684
26685 else
26686   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26687   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26688   LLVMGCC=$LLVMGCC
26689
26690   LLVMGXX=$LLVMGXX
26691
26692 fi
26693
26694 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26695 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26696
26697 ICC=no
26698 IXX=no
26699 case $CC in
26700   icc*|icpc*)
26701     ICC=yes
26702     IXX=yes
26703     ;;
26704    *)
26705     ;;
26706 esac
26707
26708 if test "$GCC" != "yes" && test "$ICC" != "yes"
26709 then
26710   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26711 echo "$as_me: error: gcc|icc required but not found" >&2;}
26712    { (exit 1); exit 1; }; }
26713 fi
26714
26715 if test "$GXX" != "yes" && test "$IXX" != "yes"
26716 then
26717   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26718 echo "$as_me: error: g++|icc required but not found" >&2;}
26719    { (exit 1); exit 1; }; }
26720 fi
26721
26722 if test "$GCC" = "yes"
26723 then
26724   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26725   if test "$gccmajor" -lt "3"
26726   then
26727     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26728 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26729    { (exit 1); exit 1; }; }
26730   fi
26731 fi
26732
26733 if test -z "$llvm_cv_gnu_make_command"
26734 then
26735   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26736 echo "$as_me: error: GNU Make required but not found" >&2;}
26737    { (exit 1); exit 1; }; }
26738 fi
26739
26740 { echo "$as_me:$LINENO: result: ok" >&5
26741 echo "${ECHO_T}ok" >&6; }
26742
26743
26744
26745 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26746 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26747 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750   ac_check_lib_save_LIBS=$LIBS
26751 LIBS="-lelf  $LIBS"
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758
26759 /* Override any GCC internal prototype to avoid an error.
26760    Use char because int might match the return type of a GCC
26761    builtin and then its argument prototype would still apply.  */
26762 #ifdef __cplusplus
26763 extern "C"
26764 #endif
26765 char elf_begin ();
26766 int
26767 main ()
26768 {
26769 return elf_begin ();
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 rm -f conftest.$ac_objext conftest$ac_exeext
26775 if { (ac_try="$ac_link"
26776 case "(($ac_try" in
26777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778   *) ac_try_echo=$ac_try;;
26779 esac
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781   (eval "$ac_link") 2>conftest.er1
26782   ac_status=$?
26783   grep -v '^ *+' conftest.er1 >conftest.err
26784   rm -f conftest.er1
26785   cat conftest.err >&5
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); } &&
26788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26789   { (case "(($ac_try" in
26790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791   *) ac_try_echo=$ac_try;;
26792 esac
26793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794   (eval "$ac_try") 2>&5
26795   ac_status=$?
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); }; } &&
26798          { ac_try='test -s conftest$ac_exeext'
26799   { (case "(($ac_try" in
26800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801   *) ac_try_echo=$ac_try;;
26802 esac
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804   (eval "$ac_try") 2>&5
26805   ac_status=$?
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); }; }; then
26808   ac_cv_lib_elf_elf_begin=yes
26809 else
26810   echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813         ac_cv_lib_elf_elf_begin=no
26814 fi
26815
26816 rm -f core conftest.err conftest.$ac_objext \
26817       conftest$ac_exeext conftest.$ac_ext
26818 LIBS=$ac_check_lib_save_LIBS
26819 fi
26820 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26821 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26822 if test $ac_cv_lib_elf_elf_begin = yes; then
26823   cat >>confdefs.h <<_ACEOF
26824 #define HAVE_LIBELF 1
26825 _ACEOF
26826
26827   LIBS="-lelf $LIBS"
26828
26829 fi
26830
26831
26832 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26833 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26834 if test "${ac_cv_lib_m_sin+set}" = set; then
26835   echo $ECHO_N "(cached) $ECHO_C" >&6
26836 else
26837   ac_check_lib_save_LIBS=$LIBS
26838 LIBS="-lm  $LIBS"
26839 cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h.  */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h.  */
26845
26846 /* Override any GCC internal prototype to avoid an error.
26847    Use char because int might match the return type of a GCC
26848    builtin and then its argument prototype would still apply.  */
26849 #ifdef __cplusplus
26850 extern "C"
26851 #endif
26852 char sin ();
26853 int
26854 main ()
26855 {
26856 return sin ();
26857   ;
26858   return 0;
26859 }
26860 _ACEOF
26861 rm -f conftest.$ac_objext conftest$ac_exeext
26862 if { (ac_try="$ac_link"
26863 case "(($ac_try" in
26864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865   *) ac_try_echo=$ac_try;;
26866 esac
26867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26868   (eval "$ac_link") 2>conftest.er1
26869   ac_status=$?
26870   grep -v '^ *+' conftest.er1 >conftest.err
26871   rm -f conftest.er1
26872   cat conftest.err >&5
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); } &&
26875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26876   { (case "(($ac_try" in
26877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878   *) ac_try_echo=$ac_try;;
26879 esac
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881   (eval "$ac_try") 2>&5
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); }; } &&
26885          { ac_try='test -s conftest$ac_exeext'
26886   { (case "(($ac_try" in
26887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888   *) ac_try_echo=$ac_try;;
26889 esac
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891   (eval "$ac_try") 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); }; }; then
26895   ac_cv_lib_m_sin=yes
26896 else
26897   echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26899
26900         ac_cv_lib_m_sin=no
26901 fi
26902
26903 rm -f core conftest.err conftest.$ac_objext \
26904       conftest$ac_exeext conftest.$ac_ext
26905 LIBS=$ac_check_lib_save_LIBS
26906 fi
26907 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26908 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26909 if test $ac_cv_lib_m_sin = yes; then
26910   cat >>confdefs.h <<_ACEOF
26911 #define HAVE_LIBM 1
26912 _ACEOF
26913
26914   LIBS="-lm $LIBS"
26915
26916 fi
26917
26918 if test "$llvm_cv_os_type" = "MingW" ; then
26919
26920 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26921 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26922 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26923   echo $ECHO_N "(cached) $ECHO_C" >&6
26924 else
26925   ac_check_lib_save_LIBS=$LIBS
26926 LIBS="-limagehlp  $LIBS"
26927 cat >conftest.$ac_ext <<_ACEOF
26928 /* confdefs.h.  */
26929 _ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h.  */
26933
26934
26935 int
26936 main ()
26937 {
26938 return main ();
26939   ;
26940   return 0;
26941 }
26942 _ACEOF
26943 rm -f conftest.$ac_objext conftest$ac_exeext
26944 if { (ac_try="$ac_link"
26945 case "(($ac_try" in
26946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947   *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950   (eval "$ac_link") 2>conftest.er1
26951   ac_status=$?
26952   grep -v '^ *+' conftest.er1 >conftest.err
26953   rm -f conftest.er1
26954   cat conftest.err >&5
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); } &&
26957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26958   { (case "(($ac_try" in
26959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960   *) ac_try_echo=$ac_try;;
26961 esac
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963   (eval "$ac_try") 2>&5
26964   ac_status=$?
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); }; } &&
26967          { ac_try='test -s conftest$ac_exeext'
26968   { (case "(($ac_try" in
26969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970   *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973   (eval "$ac_try") 2>&5
26974   ac_status=$?
26975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976   (exit $ac_status); }; }; then
26977   ac_cv_lib_imagehlp_main=yes
26978 else
26979   echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26981
26982         ac_cv_lib_imagehlp_main=no
26983 fi
26984
26985 rm -f core conftest.err conftest.$ac_objext \
26986       conftest$ac_exeext conftest.$ac_ext
26987 LIBS=$ac_check_lib_save_LIBS
26988 fi
26989 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26990 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26991 if test $ac_cv_lib_imagehlp_main = yes; then
26992   cat >>confdefs.h <<_ACEOF
26993 #define HAVE_LIBIMAGEHLP 1
26994 _ACEOF
26995
26996   LIBS="-limagehlp $LIBS"
26997
26998 fi
26999
27000
27001 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27002 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27003 if test "${ac_cv_lib_psapi_main+set}" = set; then
27004   echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006   ac_check_lib_save_LIBS=$LIBS
27007 LIBS="-lpsapi  $LIBS"
27008 cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h.  */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h.  */
27014
27015
27016 int
27017 main ()
27018 {
27019 return main ();
27020   ;
27021   return 0;
27022 }
27023 _ACEOF
27024 rm -f conftest.$ac_objext conftest$ac_exeext
27025 if { (ac_try="$ac_link"
27026 case "(($ac_try" in
27027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028   *) ac_try_echo=$ac_try;;
27029 esac
27030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031   (eval "$ac_link") 2>conftest.er1
27032   ac_status=$?
27033   grep -v '^ *+' conftest.er1 >conftest.err
27034   rm -f conftest.er1
27035   cat conftest.err >&5
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); } &&
27038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27039   { (case "(($ac_try" in
27040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041   *) ac_try_echo=$ac_try;;
27042 esac
27043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044   (eval "$ac_try") 2>&5
27045   ac_status=$?
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); }; } &&
27048          { ac_try='test -s conftest$ac_exeext'
27049   { (case "(($ac_try" in
27050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051   *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054   (eval "$ac_try") 2>&5
27055   ac_status=$?
27056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057   (exit $ac_status); }; }; then
27058   ac_cv_lib_psapi_main=yes
27059 else
27060   echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27062
27063         ac_cv_lib_psapi_main=no
27064 fi
27065
27066 rm -f core conftest.err conftest.$ac_objext \
27067       conftest$ac_exeext conftest.$ac_ext
27068 LIBS=$ac_check_lib_save_LIBS
27069 fi
27070 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27071 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27072 if test $ac_cv_lib_psapi_main = yes; then
27073   cat >>confdefs.h <<_ACEOF
27074 #define HAVE_LIBPSAPI 1
27075 _ACEOF
27076
27077   LIBS="-lpsapi $LIBS"
27078
27079 fi
27080
27081 fi
27082
27083 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27084 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27085 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088   ac_func_search_save_LIBS=$LIBS
27089 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095
27096 /* Override any GCC internal prototype to avoid an error.
27097    Use char because int might match the return type of a GCC
27098    builtin and then its argument prototype would still apply.  */
27099 #ifdef __cplusplus
27100 extern "C"
27101 #endif
27102 char lt_dlopen ();
27103 int
27104 main ()
27105 {
27106 return lt_dlopen ();
27107   ;
27108   return 0;
27109 }
27110 _ACEOF
27111 for ac_lib in '' ltdl; do
27112   if test -z "$ac_lib"; then
27113     ac_res="none required"
27114   else
27115     ac_res=-l$ac_lib
27116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27117   fi
27118   rm -f conftest.$ac_objext conftest$ac_exeext
27119 if { (ac_try="$ac_link"
27120 case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125   (eval "$ac_link") 2>conftest.er1
27126   ac_status=$?
27127   grep -v '^ *+' conftest.er1 >conftest.err
27128   rm -f conftest.er1
27129   cat conftest.err >&5
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); } &&
27132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27133   { (case "(($ac_try" in
27134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135   *) ac_try_echo=$ac_try;;
27136 esac
27137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138   (eval "$ac_try") 2>&5
27139   ac_status=$?
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); }; } &&
27142          { ac_try='test -s conftest$ac_exeext'
27143   { (case "(($ac_try" in
27144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145   *) ac_try_echo=$ac_try;;
27146 esac
27147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148   (eval "$ac_try") 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; }; then
27152   ac_cv_search_lt_dlopen=$ac_res
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157
27158 fi
27159
27160 rm -f core conftest.err conftest.$ac_objext \
27161       conftest$ac_exeext
27162   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27163   break
27164 fi
27165 done
27166 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27167   :
27168 else
27169   ac_cv_search_lt_dlopen=no
27170 fi
27171 rm conftest.$ac_ext
27172 LIBS=$ac_func_search_save_LIBS
27173 fi
27174 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27175 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27176 ac_res=$ac_cv_search_lt_dlopen
27177 if test "$ac_res" != no; then
27178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27179
27180 cat >>confdefs.h <<\_ACEOF
27181 #define HAVE_LT_DLOPEN 1
27182 _ACEOF
27183
27184 else
27185   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27186                            not be available" >&5
27187 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27188                            not be available" >&2;}
27189 fi
27190
27191
27192 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27194 if test "${ac_cv_search_dlopen+set}" = set; then
27195   echo $ECHO_N "(cached) $ECHO_C" >&6
27196 else
27197   ac_func_search_save_LIBS=$LIBS
27198 cat >conftest.$ac_ext <<_ACEOF
27199 /* confdefs.h.  */
27200 _ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h.  */
27204
27205 /* Override any GCC internal prototype to avoid an error.
27206    Use char because int might match the return type of a GCC
27207    builtin and then its argument prototype would still apply.  */
27208 #ifdef __cplusplus
27209 extern "C"
27210 #endif
27211 char dlopen ();
27212 int
27213 main ()
27214 {
27215 return dlopen ();
27216   ;
27217   return 0;
27218 }
27219 _ACEOF
27220 for ac_lib in '' dl; do
27221   if test -z "$ac_lib"; then
27222     ac_res="none required"
27223   else
27224     ac_res=-l$ac_lib
27225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27226   fi
27227   rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (ac_try="$ac_link"
27229 case "(($ac_try" in
27230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231   *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234   (eval "$ac_link") 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } &&
27241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27242   { (case "(($ac_try" in
27243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244   *) ac_try_echo=$ac_try;;
27245 esac
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247   (eval "$ac_try") 2>&5
27248   ac_status=$?
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); }; } &&
27251          { ac_try='test -s conftest$ac_exeext'
27252   { (case "(($ac_try" in
27253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254   *) ac_try_echo=$ac_try;;
27255 esac
27256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257   (eval "$ac_try") 2>&5
27258   ac_status=$?
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); }; }; then
27261   ac_cv_search_dlopen=$ac_res
27262 else
27263   echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27265
27266
27267 fi
27268
27269 rm -f core conftest.err conftest.$ac_objext \
27270       conftest$ac_exeext
27271   if test "${ac_cv_search_dlopen+set}" = set; then
27272   break
27273 fi
27274 done
27275 if test "${ac_cv_search_dlopen+set}" = set; then
27276   :
27277 else
27278   ac_cv_search_dlopen=no
27279 fi
27280 rm conftest.$ac_ext
27281 LIBS=$ac_func_search_save_LIBS
27282 fi
27283 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27284 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27285 ac_res=$ac_cv_search_dlopen
27286 if test "$ac_res" != no; then
27287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27288
27289 cat >>confdefs.h <<\_ACEOF
27290 #define HAVE_DLOPEN 1
27291 _ACEOF
27292
27293 else
27294   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27295 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27296 fi
27297
27298
27299 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27300 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27301 if test "${ac_cv_search_mallinfo+set}" = set; then
27302   echo $ECHO_N "(cached) $ECHO_C" >&6
27303 else
27304   ac_func_search_save_LIBS=$LIBS
27305 cat >conftest.$ac_ext <<_ACEOF
27306 /* confdefs.h.  */
27307 _ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h.  */
27311
27312 /* Override any GCC internal prototype to avoid an error.
27313    Use char because int might match the return type of a GCC
27314    builtin and then its argument prototype would still apply.  */
27315 #ifdef __cplusplus
27316 extern "C"
27317 #endif
27318 char mallinfo ();
27319 int
27320 main ()
27321 {
27322 return mallinfo ();
27323   ;
27324   return 0;
27325 }
27326 _ACEOF
27327 for ac_lib in '' malloc; do
27328   if test -z "$ac_lib"; then
27329     ac_res="none required"
27330   else
27331     ac_res=-l$ac_lib
27332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27333   fi
27334   rm -f conftest.$ac_objext conftest$ac_exeext
27335 if { (ac_try="$ac_link"
27336 case "(($ac_try" in
27337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338   *) ac_try_echo=$ac_try;;
27339 esac
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341   (eval "$ac_link") 2>conftest.er1
27342   ac_status=$?
27343   grep -v '^ *+' conftest.er1 >conftest.err
27344   rm -f conftest.er1
27345   cat conftest.err >&5
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } &&
27348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27349   { (case "(($ac_try" in
27350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351   *) ac_try_echo=$ac_try;;
27352 esac
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354   (eval "$ac_try") 2>&5
27355   ac_status=$?
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); }; } &&
27358          { ac_try='test -s conftest$ac_exeext'
27359   { (case "(($ac_try" in
27360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361   *) ac_try_echo=$ac_try;;
27362 esac
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364   (eval "$ac_try") 2>&5
27365   ac_status=$?
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); }; }; then
27368   ac_cv_search_mallinfo=$ac_res
27369 else
27370   echo "$as_me: failed program was:" >&5
27371 sed 's/^/| /' conftest.$ac_ext >&5
27372
27373
27374 fi
27375
27376 rm -f core conftest.err conftest.$ac_objext \
27377       conftest$ac_exeext
27378   if test "${ac_cv_search_mallinfo+set}" = set; then
27379   break
27380 fi
27381 done
27382 if test "${ac_cv_search_mallinfo+set}" = set; then
27383   :
27384 else
27385   ac_cv_search_mallinfo=no
27386 fi
27387 rm conftest.$ac_ext
27388 LIBS=$ac_func_search_save_LIBS
27389 fi
27390 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27391 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27392 ac_res=$ac_cv_search_mallinfo
27393 if test "$ac_res" != no; then
27394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27395
27396 cat >>confdefs.h <<\_ACEOF
27397 #define HAVE_MALLINFO 1
27398 _ACEOF
27399
27400 fi
27401
27402
27403 if test "$ENABLE_THREADS" -eq 1 ; then
27404
27405 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27406 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27407 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27408   echo $ECHO_N "(cached) $ECHO_C" >&6
27409 else
27410   ac_check_lib_save_LIBS=$LIBS
27411 LIBS="-lpthread  $LIBS"
27412 cat >conftest.$ac_ext <<_ACEOF
27413 /* confdefs.h.  */
27414 _ACEOF
27415 cat confdefs.h >>conftest.$ac_ext
27416 cat >>conftest.$ac_ext <<_ACEOF
27417 /* end confdefs.h.  */
27418
27419 /* Override any GCC internal prototype to avoid an error.
27420    Use char because int might match the return type of a GCC
27421    builtin and then its argument prototype would still apply.  */
27422 #ifdef __cplusplus
27423 extern "C"
27424 #endif
27425 char pthread_mutex_init ();
27426 int
27427 main ()
27428 {
27429 return pthread_mutex_init ();
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 rm -f conftest.$ac_objext conftest$ac_exeext
27435 if { (ac_try="$ac_link"
27436 case "(($ac_try" in
27437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438   *) ac_try_echo=$ac_try;;
27439 esac
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441   (eval "$ac_link") 2>conftest.er1
27442   ac_status=$?
27443   grep -v '^ *+' conftest.er1 >conftest.err
27444   rm -f conftest.er1
27445   cat conftest.err >&5
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); } &&
27448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27449   { (case "(($ac_try" in
27450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451   *) ac_try_echo=$ac_try;;
27452 esac
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454   (eval "$ac_try") 2>&5
27455   ac_status=$?
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); }; } &&
27458          { ac_try='test -s conftest$ac_exeext'
27459   { (case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_try") 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; }; then
27468   ac_cv_lib_pthread_pthread_mutex_init=yes
27469 else
27470   echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27472
27473         ac_cv_lib_pthread_pthread_mutex_init=no
27474 fi
27475
27476 rm -f core conftest.err conftest.$ac_objext \
27477       conftest$ac_exeext conftest.$ac_ext
27478 LIBS=$ac_check_lib_save_LIBS
27479 fi
27480 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27481 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27482 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27483   cat >>confdefs.h <<_ACEOF
27484 #define HAVE_LIBPTHREAD 1
27485 _ACEOF
27486
27487   LIBS="-lpthread $LIBS"
27488
27489 fi
27490
27491   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27492 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27493 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27494   echo $ECHO_N "(cached) $ECHO_C" >&6
27495 else
27496   ac_func_search_save_LIBS=$LIBS
27497 cat >conftest.$ac_ext <<_ACEOF
27498 /* confdefs.h.  */
27499 _ACEOF
27500 cat confdefs.h >>conftest.$ac_ext
27501 cat >>conftest.$ac_ext <<_ACEOF
27502 /* end confdefs.h.  */
27503
27504 /* Override any GCC internal prototype to avoid an error.
27505    Use char because int might match the return type of a GCC
27506    builtin and then its argument prototype would still apply.  */
27507 #ifdef __cplusplus
27508 extern "C"
27509 #endif
27510 char pthread_mutex_lock ();
27511 int
27512 main ()
27513 {
27514 return pthread_mutex_lock ();
27515   ;
27516   return 0;
27517 }
27518 _ACEOF
27519 for ac_lib in '' pthread; do
27520   if test -z "$ac_lib"; then
27521     ac_res="none required"
27522   else
27523     ac_res=-l$ac_lib
27524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27525   fi
27526   rm -f conftest.$ac_objext conftest$ac_exeext
27527 if { (ac_try="$ac_link"
27528 case "(($ac_try" in
27529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530   *) ac_try_echo=$ac_try;;
27531 esac
27532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533   (eval "$ac_link") 2>conftest.er1
27534   ac_status=$?
27535   grep -v '^ *+' conftest.er1 >conftest.err
27536   rm -f conftest.er1
27537   cat conftest.err >&5
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); } &&
27540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27541   { (case "(($ac_try" in
27542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543   *) ac_try_echo=$ac_try;;
27544 esac
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546   (eval "$ac_try") 2>&5
27547   ac_status=$?
27548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); }; } &&
27550          { ac_try='test -s conftest$ac_exeext'
27551   { (case "(($ac_try" in
27552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553   *) ac_try_echo=$ac_try;;
27554 esac
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556   (eval "$ac_try") 2>&5
27557   ac_status=$?
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); }; }; then
27560   ac_cv_search_pthread_mutex_lock=$ac_res
27561 else
27562   echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27564
27565
27566 fi
27567
27568 rm -f core conftest.err conftest.$ac_objext \
27569       conftest$ac_exeext
27570   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27571   break
27572 fi
27573 done
27574 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27575   :
27576 else
27577   ac_cv_search_pthread_mutex_lock=no
27578 fi
27579 rm conftest.$ac_ext
27580 LIBS=$ac_func_search_save_LIBS
27581 fi
27582 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27583 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27584 ac_res=$ac_cv_search_pthread_mutex_lock
27585 if test "$ac_res" != no; then
27586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27587
27588 cat >>confdefs.h <<\_ACEOF
27589 #define HAVE_PTHREAD_MUTEX_LOCK 1
27590 _ACEOF
27591
27592 fi
27593
27594 fi
27595
27596
27597 # Check whether --with-udis86 was given.
27598 if test "${with_udis86+set}" = set; then
27599   withval=$with_udis86;
27600       USE_UDIS86=1
27601
27602       case "$withval" in
27603         /usr/lib|yes) ;;
27604         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27605       esac
27606
27607 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27608 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27609 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27610   echo $ECHO_N "(cached) $ECHO_C" >&6
27611 else
27612   ac_check_lib_save_LIBS=$LIBS
27613 LIBS="-ludis86  $LIBS"
27614 cat >conftest.$ac_ext <<_ACEOF
27615 /* confdefs.h.  */
27616 _ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h.  */
27620
27621 /* Override any GCC internal prototype to avoid an error.
27622    Use char because int might match the return type of a GCC
27623    builtin and then its argument prototype would still apply.  */
27624 #ifdef __cplusplus
27625 extern "C"
27626 #endif
27627 char ud_init ();
27628 int
27629 main ()
27630 {
27631 return ud_init ();
27632   ;
27633   return 0;
27634 }
27635 _ACEOF
27636 rm -f conftest.$ac_objext conftest$ac_exeext
27637 if { (ac_try="$ac_link"
27638 case "(($ac_try" in
27639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640   *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643   (eval "$ac_link") 2>conftest.er1
27644   ac_status=$?
27645   grep -v '^ *+' conftest.er1 >conftest.err
27646   rm -f conftest.er1
27647   cat conftest.err >&5
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); } &&
27650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27651   { (case "(($ac_try" in
27652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653   *) ac_try_echo=$ac_try;;
27654 esac
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656   (eval "$ac_try") 2>&5
27657   ac_status=$?
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); }; } &&
27660          { ac_try='test -s conftest$ac_exeext'
27661   { (case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666   (eval "$ac_try") 2>&5
27667   ac_status=$?
27668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669   (exit $ac_status); }; }; then
27670   ac_cv_lib_udis86_ud_init=yes
27671 else
27672   echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27674
27675         ac_cv_lib_udis86_ud_init=no
27676 fi
27677
27678 rm -f core conftest.err conftest.$ac_objext \
27679       conftest$ac_exeext conftest.$ac_ext
27680 LIBS=$ac_check_lib_save_LIBS
27681 fi
27682 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27683 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27684 if test $ac_cv_lib_udis86_ud_init = yes; then
27685   cat >>confdefs.h <<_ACEOF
27686 #define HAVE_LIBUDIS86 1
27687 _ACEOF
27688
27689   LIBS="-ludis86 $LIBS"
27690
27691 else
27692
27693         echo "Error! You need to have libudis86 around."
27694         exit -1
27695
27696 fi
27697
27698
27699 else
27700   USE_UDIS86=0
27701
27702 fi
27703
27704
27705 cat >>confdefs.h <<_ACEOF
27706 #define USE_UDIS86 $USE_UDIS86
27707 _ACEOF
27708
27709
27710
27711
27712
27713
27714
27715
27716 ac_header_dirent=no
27717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27718   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27719 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27720 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27722   echo $ECHO_N "(cached) $ECHO_C" >&6
27723 else
27724   cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h.  */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h.  */
27730 #include <sys/types.h>
27731 #include <$ac_hdr>
27732
27733 int
27734 main ()
27735 {
27736 if ((DIR *) 0)
27737 return 0;
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 rm -f conftest.$ac_objext
27743 if { (ac_try="$ac_compile"
27744 case "(($ac_try" in
27745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746   *) ac_try_echo=$ac_try;;
27747 esac
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749   (eval "$ac_compile") 2>conftest.er1
27750   ac_status=$?
27751   grep -v '^ *+' conftest.er1 >conftest.err
27752   rm -f conftest.er1
27753   cat conftest.err >&5
27754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); } &&
27756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757   { (case "(($ac_try" in
27758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759   *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762   (eval "$ac_try") 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; } &&
27766          { ac_try='test -s conftest.$ac_objext'
27767   { (case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_try") 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; }; then
27776   eval "$as_ac_Header=yes"
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781         eval "$as_ac_Header=no"
27782 fi
27783
27784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27785 fi
27786 ac_res=`eval echo '${'$as_ac_Header'}'`
27787                { echo "$as_me:$LINENO: result: $ac_res" >&5
27788 echo "${ECHO_T}$ac_res" >&6; }
27789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27790   cat >>confdefs.h <<_ACEOF
27791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27792 _ACEOF
27793
27794 ac_header_dirent=$ac_hdr; break
27795 fi
27796
27797 done
27798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27799 if test $ac_header_dirent = dirent.h; then
27800   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27802 if test "${ac_cv_search_opendir+set}" = set; then
27803   echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805   ac_func_search_save_LIBS=$LIBS
27806 cat >conftest.$ac_ext <<_ACEOF
27807 /* confdefs.h.  */
27808 _ACEOF
27809 cat confdefs.h >>conftest.$ac_ext
27810 cat >>conftest.$ac_ext <<_ACEOF
27811 /* end confdefs.h.  */
27812
27813 /* Override any GCC internal prototype to avoid an error.
27814    Use char because int might match the return type of a GCC
27815    builtin and then its argument prototype would still apply.  */
27816 #ifdef __cplusplus
27817 extern "C"
27818 #endif
27819 char opendir ();
27820 int
27821 main ()
27822 {
27823 return opendir ();
27824   ;
27825   return 0;
27826 }
27827 _ACEOF
27828 for ac_lib in '' dir; do
27829   if test -z "$ac_lib"; then
27830     ac_res="none required"
27831   else
27832     ac_res=-l$ac_lib
27833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27834   fi
27835   rm -f conftest.$ac_objext conftest$ac_exeext
27836 if { (ac_try="$ac_link"
27837 case "(($ac_try" in
27838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839   *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842   (eval "$ac_link") 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } &&
27849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27850   { (case "(($ac_try" in
27851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852   *) ac_try_echo=$ac_try;;
27853 esac
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855   (eval "$ac_try") 2>&5
27856   ac_status=$?
27857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858   (exit $ac_status); }; } &&
27859          { ac_try='test -s conftest$ac_exeext'
27860   { (case "(($ac_try" in
27861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862   *) ac_try_echo=$ac_try;;
27863 esac
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865   (eval "$ac_try") 2>&5
27866   ac_status=$?
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); }; }; then
27869   ac_cv_search_opendir=$ac_res
27870 else
27871   echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874
27875 fi
27876
27877 rm -f core conftest.err conftest.$ac_objext \
27878       conftest$ac_exeext
27879   if test "${ac_cv_search_opendir+set}" = set; then
27880   break
27881 fi
27882 done
27883 if test "${ac_cv_search_opendir+set}" = set; then
27884   :
27885 else
27886   ac_cv_search_opendir=no
27887 fi
27888 rm conftest.$ac_ext
27889 LIBS=$ac_func_search_save_LIBS
27890 fi
27891 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27892 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27893 ac_res=$ac_cv_search_opendir
27894 if test "$ac_res" != no; then
27895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27896
27897 fi
27898
27899 else
27900   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27902 if test "${ac_cv_search_opendir+set}" = set; then
27903   echo $ECHO_N "(cached) $ECHO_C" >&6
27904 else
27905   ac_func_search_save_LIBS=$LIBS
27906 cat >conftest.$ac_ext <<_ACEOF
27907 /* confdefs.h.  */
27908 _ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h.  */
27912
27913 /* Override any GCC internal prototype to avoid an error.
27914    Use char because int might match the return type of a GCC
27915    builtin and then its argument prototype would still apply.  */
27916 #ifdef __cplusplus
27917 extern "C"
27918 #endif
27919 char opendir ();
27920 int
27921 main ()
27922 {
27923 return opendir ();
27924   ;
27925   return 0;
27926 }
27927 _ACEOF
27928 for ac_lib in '' x; do
27929   if test -z "$ac_lib"; then
27930     ac_res="none required"
27931   else
27932     ac_res=-l$ac_lib
27933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27934   fi
27935   rm -f conftest.$ac_objext conftest$ac_exeext
27936 if { (ac_try="$ac_link"
27937 case "(($ac_try" in
27938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939   *) ac_try_echo=$ac_try;;
27940 esac
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942   (eval "$ac_link") 2>conftest.er1
27943   ac_status=$?
27944   grep -v '^ *+' conftest.er1 >conftest.err
27945   rm -f conftest.er1
27946   cat conftest.err >&5
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); } &&
27949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27950   { (case "(($ac_try" in
27951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952   *) ac_try_echo=$ac_try;;
27953 esac
27954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27955   (eval "$ac_try") 2>&5
27956   ac_status=$?
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); }; } &&
27959          { ac_try='test -s conftest$ac_exeext'
27960   { (case "(($ac_try" in
27961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962   *) ac_try_echo=$ac_try;;
27963 esac
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965   (eval "$ac_try") 2>&5
27966   ac_status=$?
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); }; }; then
27969   ac_cv_search_opendir=$ac_res
27970 else
27971   echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27973
27974
27975 fi
27976
27977 rm -f core conftest.err conftest.$ac_objext \
27978       conftest$ac_exeext
27979   if test "${ac_cv_search_opendir+set}" = set; then
27980   break
27981 fi
27982 done
27983 if test "${ac_cv_search_opendir+set}" = set; then
27984   :
27985 else
27986   ac_cv_search_opendir=no
27987 fi
27988 rm conftest.$ac_ext
27989 LIBS=$ac_func_search_save_LIBS
27990 fi
27991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27993 ac_res=$ac_cv_search_opendir
27994 if test "$ac_res" != no; then
27995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27996
27997 fi
27998
27999 fi
28000
28001 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28002 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28003 if test "${ac_cv_header_mmap_anon+set}" = set; then
28004   echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006    ac_ext=c
28007 ac_cpp='$CPP $CPPFLAGS'
28008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28011
28012   cat >conftest.$ac_ext <<_ACEOF
28013 /* confdefs.h.  */
28014 _ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h.  */
28018 #include <sys/mman.h>
28019 #include <unistd.h>
28020 #include <fcntl.h>
28021 int
28022 main ()
28023 {
28024 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28025   ;
28026   return 0;
28027 }
28028 _ACEOF
28029 rm -f conftest.$ac_objext
28030 if { (ac_try="$ac_compile"
28031 case "(($ac_try" in
28032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033   *) ac_try_echo=$ac_try;;
28034 esac
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036   (eval "$ac_compile") 2>conftest.er1
28037   ac_status=$?
28038   grep -v '^ *+' conftest.er1 >conftest.err
28039   rm -f conftest.er1
28040   cat conftest.err >&5
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); } &&
28043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28044   { (case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_try") 2>&5
28050   ac_status=$?
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); }; } &&
28053          { ac_try='test -s conftest.$ac_objext'
28054   { (case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_try") 2>&5
28060   ac_status=$?
28061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); }; }; then
28063   ac_cv_header_mmap_anon=yes
28064 else
28065   echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28067
28068         ac_cv_header_mmap_anon=no
28069 fi
28070
28071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28072   ac_ext=c
28073 ac_cpp='$CPP $CPPFLAGS'
28074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28077
28078
28079 fi
28080 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28081 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28082 if test "$ac_cv_header_mmap_anon" = yes; then
28083
28084 cat >>confdefs.h <<\_ACEOF
28085 #define HAVE_MMAP_ANONYMOUS 1
28086 _ACEOF
28087
28088 fi
28089
28090 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28091 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28092 if test "${ac_cv_header_stat_broken+set}" = set; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095   cat >conftest.$ac_ext <<_ACEOF
28096 /* confdefs.h.  */
28097 _ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h.  */
28101 #include <sys/types.h>
28102 #include <sys/stat.h>
28103
28104 #if defined S_ISBLK && defined S_IFDIR
28105 # if S_ISBLK (S_IFDIR)
28106 You lose.
28107 # endif
28108 #endif
28109
28110 #if defined S_ISBLK && defined S_IFCHR
28111 # if S_ISBLK (S_IFCHR)
28112 You lose.
28113 # endif
28114 #endif
28115
28116 #if defined S_ISLNK && defined S_IFREG
28117 # if S_ISLNK (S_IFREG)
28118 You lose.
28119 # endif
28120 #endif
28121
28122 #if defined S_ISSOCK && defined S_IFREG
28123 # if S_ISSOCK (S_IFREG)
28124 You lose.
28125 # endif
28126 #endif
28127
28128 _ACEOF
28129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28130   $EGREP "You lose" >/dev/null 2>&1; then
28131   ac_cv_header_stat_broken=yes
28132 else
28133   ac_cv_header_stat_broken=no
28134 fi
28135 rm -f conftest*
28136
28137 fi
28138 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28139 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28140 if test $ac_cv_header_stat_broken = yes; then
28141
28142 cat >>confdefs.h <<\_ACEOF
28143 #define STAT_MACROS_BROKEN 1
28144 _ACEOF
28145
28146 fi
28147
28148 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28150 if test "${ac_cv_header_stdc+set}" = set; then
28151   echo $ECHO_N "(cached) $ECHO_C" >&6
28152 else
28153   cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159 #include <stdlib.h>
28160 #include <stdarg.h>
28161 #include <string.h>
28162 #include <float.h>
28163
28164 int
28165 main ()
28166 {
28167
28168   ;
28169   return 0;
28170 }
28171 _ACEOF
28172 rm -f conftest.$ac_objext
28173 if { (ac_try="$ac_compile"
28174 case "(($ac_try" in
28175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176   *) ac_try_echo=$ac_try;;
28177 esac
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179   (eval "$ac_compile") 2>conftest.er1
28180   ac_status=$?
28181   grep -v '^ *+' conftest.er1 >conftest.err
28182   rm -f conftest.er1
28183   cat conftest.err >&5
28184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185   (exit $ac_status); } &&
28186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187   { (case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192   (eval "$ac_try") 2>&5
28193   ac_status=$?
28194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195   (exit $ac_status); }; } &&
28196          { ac_try='test -s conftest.$ac_objext'
28197   { (case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_try") 2>&5
28203   ac_status=$?
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); }; }; then
28206   ac_cv_header_stdc=yes
28207 else
28208   echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211         ac_cv_header_stdc=no
28212 fi
28213
28214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28215
28216 if test $ac_cv_header_stdc = yes; then
28217   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28218   cat >conftest.$ac_ext <<_ACEOF
28219 /* confdefs.h.  */
28220 _ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h.  */
28224 #include <string.h>
28225
28226 _ACEOF
28227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28228   $EGREP "memchr" >/dev/null 2>&1; then
28229   :
28230 else
28231   ac_cv_header_stdc=no
28232 fi
28233 rm -f conftest*
28234
28235 fi
28236
28237 if test $ac_cv_header_stdc = yes; then
28238   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28239   cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245 #include <stdlib.h>
28246
28247 _ACEOF
28248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28249   $EGREP "free" >/dev/null 2>&1; then
28250   :
28251 else
28252   ac_cv_header_stdc=no
28253 fi
28254 rm -f conftest*
28255
28256 fi
28257
28258 if test $ac_cv_header_stdc = yes; then
28259   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28260   if test "$cross_compiling" = yes; then
28261   :
28262 else
28263   cat >conftest.$ac_ext <<_ACEOF
28264 /* confdefs.h.  */
28265 _ACEOF
28266 cat confdefs.h >>conftest.$ac_ext
28267 cat >>conftest.$ac_ext <<_ACEOF
28268 /* end confdefs.h.  */
28269 #include <ctype.h>
28270 #include <stdlib.h>
28271 #if ((' ' & 0x0FF) == 0x020)
28272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28274 #else
28275 # define ISLOWER(c) \
28276                    (('a' <= (c) && (c) <= 'i') \
28277                      || ('j' <= (c) && (c) <= 'r') \
28278                      || ('s' <= (c) && (c) <= 'z'))
28279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28280 #endif
28281
28282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28283 int
28284 main ()
28285 {
28286   int i;
28287   for (i = 0; i < 256; i++)
28288     if (XOR (islower (i), ISLOWER (i))
28289         || toupper (i) != TOUPPER (i))
28290       return 2;
28291   return 0;
28292 }
28293 _ACEOF
28294 rm -f conftest$ac_exeext
28295 if { (ac_try="$ac_link"
28296 case "(($ac_try" in
28297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298   *) ac_try_echo=$ac_try;;
28299 esac
28300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301   (eval "$ac_link") 2>&5
28302   ac_status=$?
28303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28305   { (case "(($ac_try" in
28306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307   *) ac_try_echo=$ac_try;;
28308 esac
28309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310   (eval "$ac_try") 2>&5
28311   ac_status=$?
28312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313   (exit $ac_status); }; }; then
28314   :
28315 else
28316   echo "$as_me: program exited with status $ac_status" >&5
28317 echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 ( exit $ac_status )
28321 ac_cv_header_stdc=no
28322 fi
28323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28324 fi
28325
28326
28327 fi
28328 fi
28329 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28330 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28331 if test $ac_cv_header_stdc = yes; then
28332
28333 cat >>confdefs.h <<\_ACEOF
28334 #define STDC_HEADERS 1
28335 _ACEOF
28336
28337 fi
28338
28339 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28340 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28341 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28342   echo $ECHO_N "(cached) $ECHO_C" >&6
28343 else
28344   cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350 #include <sys/types.h>
28351 #include <sys/wait.h>
28352 #ifndef WEXITSTATUS
28353 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28354 #endif
28355 #ifndef WIFEXITED
28356 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28357 #endif
28358
28359 int
28360 main ()
28361 {
28362   int s;
28363   wait (&s);
28364   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28365   ;
28366   return 0;
28367 }
28368 _ACEOF
28369 rm -f conftest.$ac_objext
28370 if { (ac_try="$ac_compile"
28371 case "(($ac_try" in
28372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373   *) ac_try_echo=$ac_try;;
28374 esac
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376   (eval "$ac_compile") 2>conftest.er1
28377   ac_status=$?
28378   grep -v '^ *+' conftest.er1 >conftest.err
28379   rm -f conftest.er1
28380   cat conftest.err >&5
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); } &&
28383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28384   { (case "(($ac_try" in
28385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386   *) ac_try_echo=$ac_try;;
28387 esac
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389   (eval "$ac_try") 2>&5
28390   ac_status=$?
28391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392   (exit $ac_status); }; } &&
28393          { ac_try='test -s conftest.$ac_objext'
28394   { (case "(($ac_try" in
28395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396   *) ac_try_echo=$ac_try;;
28397 esac
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399   (eval "$ac_try") 2>&5
28400   ac_status=$?
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); }; }; then
28403   ac_cv_header_sys_wait_h=yes
28404 else
28405   echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28407
28408         ac_cv_header_sys_wait_h=no
28409 fi
28410
28411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412 fi
28413 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28414 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28415 if test $ac_cv_header_sys_wait_h = yes; then
28416
28417 cat >>confdefs.h <<\_ACEOF
28418 #define HAVE_SYS_WAIT_H 1
28419 _ACEOF
28420
28421 fi
28422
28423 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28424 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28425 if test "${ac_cv_header_time+set}" = set; then
28426   echo $ECHO_N "(cached) $ECHO_C" >&6
28427 else
28428   cat >conftest.$ac_ext <<_ACEOF
28429 /* confdefs.h.  */
28430 _ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h.  */
28434 #include <sys/types.h>
28435 #include <sys/time.h>
28436 #include <time.h>
28437
28438 int
28439 main ()
28440 {
28441 if ((struct tm *) 0)
28442 return 0;
28443   ;
28444   return 0;
28445 }
28446 _ACEOF
28447 rm -f conftest.$ac_objext
28448 if { (ac_try="$ac_compile"
28449 case "(($ac_try" in
28450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451   *) ac_try_echo=$ac_try;;
28452 esac
28453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454   (eval "$ac_compile") 2>conftest.er1
28455   ac_status=$?
28456   grep -v '^ *+' conftest.er1 >conftest.err
28457   rm -f conftest.er1
28458   cat conftest.err >&5
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); } &&
28461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28462   { (case "(($ac_try" in
28463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464   *) ac_try_echo=$ac_try;;
28465 esac
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467   (eval "$ac_try") 2>&5
28468   ac_status=$?
28469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470   (exit $ac_status); }; } &&
28471          { ac_try='test -s conftest.$ac_objext'
28472   { (case "(($ac_try" in
28473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474   *) ac_try_echo=$ac_try;;
28475 esac
28476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477   (eval "$ac_try") 2>&5
28478   ac_status=$?
28479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480   (exit $ac_status); }; }; then
28481   ac_cv_header_time=yes
28482 else
28483   echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28485
28486         ac_cv_header_time=no
28487 fi
28488
28489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28490 fi
28491 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28492 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28493 if test $ac_cv_header_time = yes; then
28494
28495 cat >>confdefs.h <<\_ACEOF
28496 #define TIME_WITH_SYS_TIME 1
28497 _ACEOF
28498
28499 fi
28500
28501
28502
28503
28504
28505
28506
28507
28508 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28509 do
28510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28512   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28515   echo $ECHO_N "(cached) $ECHO_C" >&6
28516 fi
28517 ac_res=`eval echo '${'$as_ac_Header'}'`
28518                { echo "$as_me:$LINENO: result: $ac_res" >&5
28519 echo "${ECHO_T}$ac_res" >&6; }
28520 else
28521   # Is the header compilable?
28522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28524 cat >conftest.$ac_ext <<_ACEOF
28525 /* confdefs.h.  */
28526 _ACEOF
28527 cat confdefs.h >>conftest.$ac_ext
28528 cat >>conftest.$ac_ext <<_ACEOF
28529 /* end confdefs.h.  */
28530 $ac_includes_default
28531 #include <$ac_header>
28532 _ACEOF
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537   *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540   (eval "$ac_compile") 2>conftest.er1
28541   ac_status=$?
28542   grep -v '^ *+' conftest.er1 >conftest.err
28543   rm -f conftest.er1
28544   cat conftest.err >&5
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); } &&
28547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28548   { (case "(($ac_try" in
28549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550   *) ac_try_echo=$ac_try;;
28551 esac
28552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553   (eval "$ac_try") 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; } &&
28557          { ac_try='test -s conftest.$ac_objext'
28558   { (case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563   (eval "$ac_try") 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; }; then
28567   ac_header_compiler=yes
28568 else
28569   echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28571
28572         ac_header_compiler=no
28573 fi
28574
28575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28577 echo "${ECHO_T}$ac_header_compiler" >&6; }
28578
28579 # Is the header present?
28580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28582 cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588 #include <$ac_header>
28589 _ACEOF
28590 if { (ac_try="$ac_cpp conftest.$ac_ext"
28591 case "(($ac_try" in
28592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593   *) ac_try_echo=$ac_try;;
28594 esac
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28597   ac_status=$?
28598   grep -v '^ *+' conftest.er1 >conftest.err
28599   rm -f conftest.er1
28600   cat conftest.err >&5
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } >/dev/null; then
28603   if test -s conftest.err; then
28604     ac_cpp_err=$ac_c_preproc_warn_flag
28605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28606   else
28607     ac_cpp_err=
28608   fi
28609 else
28610   ac_cpp_err=yes
28611 fi
28612 if test -z "$ac_cpp_err"; then
28613   ac_header_preproc=yes
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618   ac_header_preproc=no
28619 fi
28620
28621 rm -f conftest.err conftest.$ac_ext
28622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28623 echo "${ECHO_T}$ac_header_preproc" >&6; }
28624
28625 # So?  What about this header?
28626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28627   yes:no: )
28628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28632     ac_header_preproc=yes
28633     ;;
28634   no:yes:* )
28635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28647     ( cat <<\_ASBOX
28648 ## ----------------------------------- ##
28649 ## Report this to llvmbugs@cs.uiuc.edu ##
28650 ## ----------------------------------- ##
28651 _ASBOX
28652      ) | sed "s/^/$as_me: WARNING:     /" >&2
28653     ;;
28654 esac
28655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   eval "$as_ac_Header=\$ac_header_preproc"
28661 fi
28662 ac_res=`eval echo '${'$as_ac_Header'}'`
28663                { echo "$as_me:$LINENO: result: $ac_res" >&5
28664 echo "${ECHO_T}$ac_res" >&6; }
28665
28666 fi
28667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28668   cat >>confdefs.h <<_ACEOF
28669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28670 _ACEOF
28671
28672 fi
28673
28674 done
28675
28676
28677
28678
28679
28680
28681
28682 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28683 do
28684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 fi
28691 ac_res=`eval echo '${'$as_ac_Header'}'`
28692                { echo "$as_me:$LINENO: result: $ac_res" >&5
28693 echo "${ECHO_T}$ac_res" >&6; }
28694 else
28695   # Is the header compilable?
28696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28698 cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704 $ac_includes_default
28705 #include <$ac_header>
28706 _ACEOF
28707 rm -f conftest.$ac_objext
28708 if { (ac_try="$ac_compile"
28709 case "(($ac_try" in
28710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711   *) ac_try_echo=$ac_try;;
28712 esac
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714   (eval "$ac_compile") 2>conftest.er1
28715   ac_status=$?
28716   grep -v '^ *+' conftest.er1 >conftest.err
28717   rm -f conftest.er1
28718   cat conftest.err >&5
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); } &&
28721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722   { (case "(($ac_try" in
28723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724   *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727   (eval "$ac_try") 2>&5
28728   ac_status=$?
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; } &&
28731          { ac_try='test -s conftest.$ac_objext'
28732   { (case "(($ac_try" in
28733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734   *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737   (eval "$ac_try") 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); }; }; then
28741   ac_header_compiler=yes
28742 else
28743   echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28745
28746         ac_header_compiler=no
28747 fi
28748
28749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751 echo "${ECHO_T}$ac_header_compiler" >&6; }
28752
28753 # Is the header present?
28754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28756 cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h.  */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h.  */
28762 #include <$ac_header>
28763 _ACEOF
28764 if { (ac_try="$ac_cpp conftest.$ac_ext"
28765 case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } >/dev/null; then
28777   if test -s conftest.err; then
28778     ac_cpp_err=$ac_c_preproc_warn_flag
28779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28780   else
28781     ac_cpp_err=
28782   fi
28783 else
28784   ac_cpp_err=yes
28785 fi
28786 if test -z "$ac_cpp_err"; then
28787   ac_header_preproc=yes
28788 else
28789   echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28791
28792   ac_header_preproc=no
28793 fi
28794
28795 rm -f conftest.err conftest.$ac_ext
28796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28797 echo "${ECHO_T}$ac_header_preproc" >&6; }
28798
28799 # So?  What about this header?
28800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28801   yes:no: )
28802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28806     ac_header_preproc=yes
28807     ;;
28808   no:yes:* )
28809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28821     ( cat <<\_ASBOX
28822 ## ----------------------------------- ##
28823 ## Report this to llvmbugs@cs.uiuc.edu ##
28824 ## ----------------------------------- ##
28825 _ASBOX
28826      ) | sed "s/^/$as_me: WARNING:     /" >&2
28827     ;;
28828 esac
28829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28832   echo $ECHO_N "(cached) $ECHO_C" >&6
28833 else
28834   eval "$as_ac_Header=\$ac_header_preproc"
28835 fi
28836 ac_res=`eval echo '${'$as_ac_Header'}'`
28837                { echo "$as_me:$LINENO: result: $ac_res" >&5
28838 echo "${ECHO_T}$ac_res" >&6; }
28839
28840 fi
28841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842   cat >>confdefs.h <<_ACEOF
28843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28844 _ACEOF
28845
28846 fi
28847
28848 done
28849
28850
28851
28852
28853
28854
28855 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28856 do
28857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28862   echo $ECHO_N "(cached) $ECHO_C" >&6
28863 fi
28864 ac_res=`eval echo '${'$as_ac_Header'}'`
28865                { echo "$as_me:$LINENO: result: $ac_res" >&5
28866 echo "${ECHO_T}$ac_res" >&6; }
28867 else
28868   # Is the header compilable?
28869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28871 cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877 $ac_includes_default
28878 #include <$ac_header>
28879 _ACEOF
28880 rm -f conftest.$ac_objext
28881 if { (ac_try="$ac_compile"
28882 case "(($ac_try" in
28883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884   *) ac_try_echo=$ac_try;;
28885 esac
28886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887   (eval "$ac_compile") 2>conftest.er1
28888   ac_status=$?
28889   grep -v '^ *+' conftest.er1 >conftest.err
28890   rm -f conftest.er1
28891   cat conftest.err >&5
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); } &&
28894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28895   { (case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_try") 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); }; } &&
28904          { ac_try='test -s conftest.$ac_objext'
28905   { (case "(($ac_try" in
28906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907   *) ac_try_echo=$ac_try;;
28908 esac
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910   (eval "$ac_try") 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; }; then
28914   ac_header_compiler=yes
28915 else
28916   echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919         ac_header_compiler=no
28920 fi
28921
28922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28924 echo "${ECHO_T}$ac_header_compiler" >&6; }
28925
28926 # Is the header present?
28927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28929 cat >conftest.$ac_ext <<_ACEOF
28930 /* confdefs.h.  */
28931 _ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h.  */
28935 #include <$ac_header>
28936 _ACEOF
28937 if { (ac_try="$ac_cpp conftest.$ac_ext"
28938 case "(($ac_try" in
28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940   *) ac_try_echo=$ac_try;;
28941 esac
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28944   ac_status=$?
28945   grep -v '^ *+' conftest.er1 >conftest.err
28946   rm -f conftest.er1
28947   cat conftest.err >&5
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); } >/dev/null; then
28950   if test -s conftest.err; then
28951     ac_cpp_err=$ac_c_preproc_warn_flag
28952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28953   else
28954     ac_cpp_err=
28955   fi
28956 else
28957   ac_cpp_err=yes
28958 fi
28959 if test -z "$ac_cpp_err"; then
28960   ac_header_preproc=yes
28961 else
28962   echo "$as_me: failed program was:" >&5
28963 sed 's/^/| /' conftest.$ac_ext >&5
28964
28965   ac_header_preproc=no
28966 fi
28967
28968 rm -f conftest.err conftest.$ac_ext
28969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28970 echo "${ECHO_T}$ac_header_preproc" >&6; }
28971
28972 # So?  What about this header?
28973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28974   yes:no: )
28975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28979     ac_header_preproc=yes
28980     ;;
28981   no:yes:* )
28982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28994     ( cat <<\_ASBOX
28995 ## ----------------------------------- ##
28996 ## Report this to llvmbugs@cs.uiuc.edu ##
28997 ## ----------------------------------- ##
28998 _ASBOX
28999      ) | sed "s/^/$as_me: WARNING:     /" >&2
29000     ;;
29001 esac
29002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29005   echo $ECHO_N "(cached) $ECHO_C" >&6
29006 else
29007   eval "$as_ac_Header=\$ac_header_preproc"
29008 fi
29009 ac_res=`eval echo '${'$as_ac_Header'}'`
29010                { echo "$as_me:$LINENO: result: $ac_res" >&5
29011 echo "${ECHO_T}$ac_res" >&6; }
29012
29013 fi
29014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29015   cat >>confdefs.h <<_ACEOF
29016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29017 _ACEOF
29018
29019 fi
29020
29021 done
29022
29023
29024
29025
29026 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29027 do
29028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29030   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29033   echo $ECHO_N "(cached) $ECHO_C" >&6
29034 fi
29035 ac_res=`eval echo '${'$as_ac_Header'}'`
29036                { echo "$as_me:$LINENO: result: $ac_res" >&5
29037 echo "${ECHO_T}$ac_res" >&6; }
29038 else
29039   # Is the header compilable?
29040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29042 cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h.  */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h.  */
29048 $ac_includes_default
29049 #include <$ac_header>
29050 _ACEOF
29051 rm -f conftest.$ac_objext
29052 if { (ac_try="$ac_compile"
29053 case "(($ac_try" in
29054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29055   *) ac_try_echo=$ac_try;;
29056 esac
29057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29058   (eval "$ac_compile") 2>conftest.er1
29059   ac_status=$?
29060   grep -v '^ *+' conftest.er1 >conftest.err
29061   rm -f conftest.er1
29062   cat conftest.err >&5
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); } &&
29065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29066   { (case "(($ac_try" in
29067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068   *) ac_try_echo=$ac_try;;
29069 esac
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071   (eval "$ac_try") 2>&5
29072   ac_status=$?
29073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074   (exit $ac_status); }; } &&
29075          { ac_try='test -s conftest.$ac_objext'
29076   { (case "(($ac_try" in
29077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078   *) ac_try_echo=$ac_try;;
29079 esac
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081   (eval "$ac_try") 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; }; then
29085   ac_header_compiler=yes
29086 else
29087   echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29089
29090         ac_header_compiler=no
29091 fi
29092
29093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29095 echo "${ECHO_T}$ac_header_compiler" >&6; }
29096
29097 # Is the header present?
29098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29100 cat >conftest.$ac_ext <<_ACEOF
29101 /* confdefs.h.  */
29102 _ACEOF
29103 cat confdefs.h >>conftest.$ac_ext
29104 cat >>conftest.$ac_ext <<_ACEOF
29105 /* end confdefs.h.  */
29106 #include <$ac_header>
29107 _ACEOF
29108 if { (ac_try="$ac_cpp conftest.$ac_ext"
29109 case "(($ac_try" in
29110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111   *) ac_try_echo=$ac_try;;
29112 esac
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29115   ac_status=$?
29116   grep -v '^ *+' conftest.er1 >conftest.err
29117   rm -f conftest.er1
29118   cat conftest.err >&5
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); } >/dev/null; then
29121   if test -s conftest.err; then
29122     ac_cpp_err=$ac_c_preproc_warn_flag
29123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29124   else
29125     ac_cpp_err=
29126   fi
29127 else
29128   ac_cpp_err=yes
29129 fi
29130 if test -z "$ac_cpp_err"; then
29131   ac_header_preproc=yes
29132 else
29133   echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29135
29136   ac_header_preproc=no
29137 fi
29138
29139 rm -f conftest.err conftest.$ac_ext
29140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29141 echo "${ECHO_T}$ac_header_preproc" >&6; }
29142
29143 # So?  What about this header?
29144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29145   yes:no: )
29146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29150     ac_header_preproc=yes
29151     ;;
29152   no:yes:* )
29153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29165     ( cat <<\_ASBOX
29166 ## ----------------------------------- ##
29167 ## Report this to llvmbugs@cs.uiuc.edu ##
29168 ## ----------------------------------- ##
29169 _ASBOX
29170      ) | sed "s/^/$as_me: WARNING:     /" >&2
29171     ;;
29172 esac
29173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178   eval "$as_ac_Header=\$ac_header_preproc"
29179 fi
29180 ac_res=`eval echo '${'$as_ac_Header'}'`
29181                { echo "$as_me:$LINENO: result: $ac_res" >&5
29182 echo "${ECHO_T}$ac_res" >&6; }
29183
29184 fi
29185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29186   cat >>confdefs.h <<_ACEOF
29187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29188 _ACEOF
29189
29190 fi
29191
29192 done
29193
29194 if test "$ENABLE_THREADS" -eq 1 ; then
29195   if test "${ac_cv_header_pthread_h+set}" = set; then
29196   { echo "$as_me:$LINENO: checking for pthread.h" >&5
29197 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29198 if test "${ac_cv_header_pthread_h+set}" = set; then
29199   echo $ECHO_N "(cached) $ECHO_C" >&6
29200 fi
29201 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29202 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29203 else
29204   # Is the header compilable?
29205 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29206 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29207 cat >conftest.$ac_ext <<_ACEOF
29208 /* confdefs.h.  */
29209 _ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h.  */
29213 $ac_includes_default
29214 #include <pthread.h>
29215 _ACEOF
29216 rm -f conftest.$ac_objext
29217 if { (ac_try="$ac_compile"
29218 case "(($ac_try" in
29219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220   *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223   (eval "$ac_compile") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } &&
29230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231   { (case "(($ac_try" in
29232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233   *) ac_try_echo=$ac_try;;
29234 esac
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236   (eval "$ac_try") 2>&5
29237   ac_status=$?
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); }; } &&
29240          { ac_try='test -s conftest.$ac_objext'
29241   { (case "(($ac_try" in
29242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243   *) ac_try_echo=$ac_try;;
29244 esac
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246   (eval "$ac_try") 2>&5
29247   ac_status=$?
29248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); }; }; then
29250   ac_header_compiler=yes
29251 else
29252   echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29254
29255         ac_header_compiler=no
29256 fi
29257
29258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29260 echo "${ECHO_T}$ac_header_compiler" >&6; }
29261
29262 # Is the header present?
29263 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29264 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29265 cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271 #include <pthread.h>
29272 _ACEOF
29273 if { (ac_try="$ac_cpp conftest.$ac_ext"
29274 case "(($ac_try" in
29275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276   *) ac_try_echo=$ac_try;;
29277 esac
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29280   ac_status=$?
29281   grep -v '^ *+' conftest.er1 >conftest.err
29282   rm -f conftest.er1
29283   cat conftest.err >&5
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } >/dev/null; then
29286   if test -s conftest.err; then
29287     ac_cpp_err=$ac_c_preproc_warn_flag
29288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29289   else
29290     ac_cpp_err=
29291   fi
29292 else
29293   ac_cpp_err=yes
29294 fi
29295 if test -z "$ac_cpp_err"; then
29296   ac_header_preproc=yes
29297 else
29298   echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29300
29301   ac_header_preproc=no
29302 fi
29303
29304 rm -f conftest.err conftest.$ac_ext
29305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29306 echo "${ECHO_T}$ac_header_preproc" >&6; }
29307
29308 # So?  What about this header?
29309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29310   yes:no: )
29311     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29312 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29313     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29314 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29315     ac_header_preproc=yes
29316     ;;
29317   no:yes:* )
29318     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29319 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29320     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29321 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29322     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29323 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29324     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29325 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29326     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29327 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29328     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29329 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29330     ( cat <<\_ASBOX
29331 ## ----------------------------------- ##
29332 ## Report this to llvmbugs@cs.uiuc.edu ##
29333 ## ----------------------------------- ##
29334 _ASBOX
29335      ) | sed "s/^/$as_me: WARNING:     /" >&2
29336     ;;
29337 esac
29338 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29339 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29340 if test "${ac_cv_header_pthread_h+set}" = set; then
29341   echo $ECHO_N "(cached) $ECHO_C" >&6
29342 else
29343   ac_cv_header_pthread_h=$ac_header_preproc
29344 fi
29345 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29346 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29347
29348 fi
29349 if test $ac_cv_header_pthread_h = yes; then
29350   HAVE_PTHREAD=1
29351
29352 else
29353   HAVE_PTHREAD=0
29354
29355 fi
29356
29357
29358 else
29359   HAVE_PTHREAD=0
29360
29361 fi
29362
29363
29364
29365   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29366 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29367 if test "${ac_cv_huge_val_sanity+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370
29371     ac_ext=cpp
29372 ac_cpp='$CXXCPP $CPPFLAGS'
29373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29376
29377     CXXFLAGS=-pedantic
29378     if test "$cross_compiling" = yes; then
29379   ac_cv_huge_val_sanity=yes
29380 else
29381   cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 #include <math.h>
29388 int
29389 main ()
29390 {
29391 double x = HUGE_VAL; return x != x;
29392   ;
29393   return 0;
29394 }
29395 _ACEOF
29396 rm -f conftest$ac_exeext
29397 if { (ac_try="$ac_link"
29398 case "(($ac_try" in
29399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400   *) ac_try_echo=$ac_try;;
29401 esac
29402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403   (eval "$ac_link") 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
29413   ac_status=$?
29414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415   (exit $ac_status); }; }; then
29416   ac_cv_huge_val_sanity=yes
29417 else
29418   echo "$as_me: program exited with status $ac_status" >&5
29419 echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29421
29422 ( exit $ac_status )
29423 ac_cv_huge_val_sanity=no
29424 fi
29425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29426 fi
29427
29428
29429     ac_ext=c
29430 ac_cpp='$CPP $CPPFLAGS'
29431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434
29435
29436 fi
29437 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29438 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29439   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29440
29441
29442 { echo "$as_me:$LINENO: checking for pid_t" >&5
29443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29444 if test "${ac_cv_type_pid_t+set}" = set; then
29445   echo $ECHO_N "(cached) $ECHO_C" >&6
29446 else
29447   cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h.  */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h.  */
29453 $ac_includes_default
29454 typedef pid_t ac__type_new_;
29455 int
29456 main ()
29457 {
29458 if ((ac__type_new_ *) 0)
29459   return 0;
29460 if (sizeof (ac__type_new_))
29461   return 0;
29462   ;
29463   return 0;
29464 }
29465 _ACEOF
29466 rm -f conftest.$ac_objext
29467 if { (ac_try="$ac_compile"
29468 case "(($ac_try" in
29469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470   *) ac_try_echo=$ac_try;;
29471 esac
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473   (eval "$ac_compile") 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } &&
29480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29481   { (case "(($ac_try" in
29482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483   *) ac_try_echo=$ac_try;;
29484 esac
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486   (eval "$ac_try") 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; } &&
29490          { ac_try='test -s conftest.$ac_objext'
29491   { (case "(($ac_try" in
29492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493   *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496   (eval "$ac_try") 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); }; }; then
29500   ac_cv_type_pid_t=yes
29501 else
29502   echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505         ac_cv_type_pid_t=no
29506 fi
29507
29508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29509 fi
29510 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29511 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29512 if test $ac_cv_type_pid_t = yes; then
29513   :
29514 else
29515
29516 cat >>confdefs.h <<_ACEOF
29517 #define pid_t int
29518 _ACEOF
29519
29520 fi
29521
29522 { echo "$as_me:$LINENO: checking for size_t" >&5
29523 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29524 if test "${ac_cv_type_size_t+set}" = set; then
29525   echo $ECHO_N "(cached) $ECHO_C" >&6
29526 else
29527   cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h.  */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h.  */
29533 $ac_includes_default
29534 typedef size_t ac__type_new_;
29535 int
29536 main ()
29537 {
29538 if ((ac__type_new_ *) 0)
29539   return 0;
29540 if (sizeof (ac__type_new_))
29541   return 0;
29542   ;
29543   return 0;
29544 }
29545 _ACEOF
29546 rm -f conftest.$ac_objext
29547 if { (ac_try="$ac_compile"
29548 case "(($ac_try" in
29549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550   *) ac_try_echo=$ac_try;;
29551 esac
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553   (eval "$ac_compile") 2>conftest.er1
29554   ac_status=$?
29555   grep -v '^ *+' conftest.er1 >conftest.err
29556   rm -f conftest.er1
29557   cat conftest.err >&5
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } &&
29560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29561   { (case "(($ac_try" in
29562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563   *) ac_try_echo=$ac_try;;
29564 esac
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566   (eval "$ac_try") 2>&5
29567   ac_status=$?
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); }; } &&
29570          { ac_try='test -s conftest.$ac_objext'
29571   { (case "(($ac_try" in
29572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573   *) ac_try_echo=$ac_try;;
29574 esac
29575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576   (eval "$ac_try") 2>&5
29577   ac_status=$?
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); }; }; then
29580   ac_cv_type_size_t=yes
29581 else
29582   echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29584
29585         ac_cv_type_size_t=no
29586 fi
29587
29588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29589 fi
29590 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29591 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29592 if test $ac_cv_type_size_t = yes; then
29593   :
29594 else
29595
29596 cat >>confdefs.h <<_ACEOF
29597 #define size_t unsigned int
29598 _ACEOF
29599
29600 fi
29601
29602 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29603 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29604 if test "${ac_cv_type_signal+set}" = set; then
29605   echo $ECHO_N "(cached) $ECHO_C" >&6
29606 else
29607   cat >conftest.$ac_ext <<_ACEOF
29608 /* confdefs.h.  */
29609 _ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h.  */
29613 #include <sys/types.h>
29614 #include <signal.h>
29615
29616 int
29617 main ()
29618 {
29619 return *(signal (0, 0)) (0) == 1;
29620   ;
29621   return 0;
29622 }
29623 _ACEOF
29624 rm -f conftest.$ac_objext
29625 if { (ac_try="$ac_compile"
29626 case "(($ac_try" in
29627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628   *) ac_try_echo=$ac_try;;
29629 esac
29630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29631   (eval "$ac_compile") 2>conftest.er1
29632   ac_status=$?
29633   grep -v '^ *+' conftest.er1 >conftest.err
29634   rm -f conftest.er1
29635   cat conftest.err >&5
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); } &&
29638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29639   { (case "(($ac_try" in
29640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641   *) ac_try_echo=$ac_try;;
29642 esac
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644   (eval "$ac_try") 2>&5
29645   ac_status=$?
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); }; } &&
29648          { ac_try='test -s conftest.$ac_objext'
29649   { (case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654   (eval "$ac_try") 2>&5
29655   ac_status=$?
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); }; }; then
29658   ac_cv_type_signal=int
29659 else
29660   echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29662
29663         ac_cv_type_signal=void
29664 fi
29665
29666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29667 fi
29668 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29669 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29670
29671 cat >>confdefs.h <<_ACEOF
29672 #define RETSIGTYPE $ac_cv_type_signal
29673 _ACEOF
29674
29675
29676 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29677 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29678 if test "${ac_cv_struct_tm+set}" = set; then
29679   echo $ECHO_N "(cached) $ECHO_C" >&6
29680 else
29681   cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 #include <sys/types.h>
29688 #include <time.h>
29689
29690 int
29691 main ()
29692 {
29693 struct tm *tp; tp->tm_sec;
29694   ;
29695   return 0;
29696 }
29697 _ACEOF
29698 rm -f conftest.$ac_objext
29699 if { (ac_try="$ac_compile"
29700 case "(($ac_try" in
29701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702   *) ac_try_echo=$ac_try;;
29703 esac
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705   (eval "$ac_compile") 2>conftest.er1
29706   ac_status=$?
29707   grep -v '^ *+' conftest.er1 >conftest.err
29708   rm -f conftest.er1
29709   cat conftest.err >&5
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); } &&
29712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29713   { (case "(($ac_try" in
29714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715   *) ac_try_echo=$ac_try;;
29716 esac
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718   (eval "$ac_try") 2>&5
29719   ac_status=$?
29720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721   (exit $ac_status); }; } &&
29722          { ac_try='test -s conftest.$ac_objext'
29723   { (case "(($ac_try" in
29724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725   *) ac_try_echo=$ac_try;;
29726 esac
29727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728   (eval "$ac_try") 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); }; }; then
29732   ac_cv_struct_tm=time.h
29733 else
29734   echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737         ac_cv_struct_tm=sys/time.h
29738 fi
29739
29740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29741 fi
29742 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29743 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29744 if test $ac_cv_struct_tm = sys/time.h; then
29745
29746 cat >>confdefs.h <<\_ACEOF
29747 #define TM_IN_SYS_TIME 1
29748 _ACEOF
29749
29750 fi
29751
29752 { echo "$as_me:$LINENO: checking for int64_t" >&5
29753 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29754 if test "${ac_cv_type_int64_t+set}" = set; then
29755   echo $ECHO_N "(cached) $ECHO_C" >&6
29756 else
29757   cat >conftest.$ac_ext <<_ACEOF
29758 /* confdefs.h.  */
29759 _ACEOF
29760 cat confdefs.h >>conftest.$ac_ext
29761 cat >>conftest.$ac_ext <<_ACEOF
29762 /* end confdefs.h.  */
29763 $ac_includes_default
29764 typedef int64_t ac__type_new_;
29765 int
29766 main ()
29767 {
29768 if ((ac__type_new_ *) 0)
29769   return 0;
29770 if (sizeof (ac__type_new_))
29771   return 0;
29772   ;
29773   return 0;
29774 }
29775 _ACEOF
29776 rm -f conftest.$ac_objext
29777 if { (ac_try="$ac_compile"
29778 case "(($ac_try" in
29779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780   *) ac_try_echo=$ac_try;;
29781 esac
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783   (eval "$ac_compile") 2>conftest.er1
29784   ac_status=$?
29785   grep -v '^ *+' conftest.er1 >conftest.err
29786   rm -f conftest.er1
29787   cat conftest.err >&5
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); } &&
29790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29791   { (case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796   (eval "$ac_try") 2>&5
29797   ac_status=$?
29798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799   (exit $ac_status); }; } &&
29800          { ac_try='test -s conftest.$ac_objext'
29801   { (case "(($ac_try" in
29802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803   *) ac_try_echo=$ac_try;;
29804 esac
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806   (eval "$ac_try") 2>&5
29807   ac_status=$?
29808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809   (exit $ac_status); }; }; then
29810   ac_cv_type_int64_t=yes
29811 else
29812   echo "$as_me: failed program was:" >&5
29813 sed 's/^/| /' conftest.$ac_ext >&5
29814
29815         ac_cv_type_int64_t=no
29816 fi
29817
29818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29819 fi
29820 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29821 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29822 if test $ac_cv_type_int64_t = yes; then
29823
29824 cat >>confdefs.h <<_ACEOF
29825 #define HAVE_INT64_T 1
29826 _ACEOF
29827
29828
29829 else
29830   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29831 echo "$as_me: error: Type int64_t required but not found" >&2;}
29832    { (exit 1); exit 1; }; }
29833 fi
29834
29835 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29836 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29837 if test "${ac_cv_type_uint64_t+set}" = set; then
29838   echo $ECHO_N "(cached) $ECHO_C" >&6
29839 else
29840   cat >conftest.$ac_ext <<_ACEOF
29841 /* confdefs.h.  */
29842 _ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h.  */
29846 $ac_includes_default
29847 typedef uint64_t ac__type_new_;
29848 int
29849 main ()
29850 {
29851 if ((ac__type_new_ *) 0)
29852   return 0;
29853 if (sizeof (ac__type_new_))
29854   return 0;
29855   ;
29856   return 0;
29857 }
29858 _ACEOF
29859 rm -f conftest.$ac_objext
29860 if { (ac_try="$ac_compile"
29861 case "(($ac_try" in
29862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863   *) ac_try_echo=$ac_try;;
29864 esac
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866   (eval "$ac_compile") 2>conftest.er1
29867   ac_status=$?
29868   grep -v '^ *+' conftest.er1 >conftest.err
29869   rm -f conftest.er1
29870   cat conftest.err >&5
29871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); } &&
29873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29874   { (case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_try") 2>&5
29880   ac_status=$?
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); }; } &&
29883          { ac_try='test -s conftest.$ac_objext'
29884   { (case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_try") 2>&5
29890   ac_status=$?
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); }; }; then
29893   ac_cv_type_uint64_t=yes
29894 else
29895   echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29897
29898         ac_cv_type_uint64_t=no
29899 fi
29900
29901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29902 fi
29903 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29904 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29905 if test $ac_cv_type_uint64_t = yes; then
29906
29907 cat >>confdefs.h <<_ACEOF
29908 #define HAVE_UINT64_T 1
29909 _ACEOF
29910
29911
29912 else
29913   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29914 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29915 if test "${ac_cv_type_u_int64_t+set}" = set; then
29916   echo $ECHO_N "(cached) $ECHO_C" >&6
29917 else
29918   cat >conftest.$ac_ext <<_ACEOF
29919 /* confdefs.h.  */
29920 _ACEOF
29921 cat confdefs.h >>conftest.$ac_ext
29922 cat >>conftest.$ac_ext <<_ACEOF
29923 /* end confdefs.h.  */
29924 $ac_includes_default
29925 typedef u_int64_t ac__type_new_;
29926 int
29927 main ()
29928 {
29929 if ((ac__type_new_ *) 0)
29930   return 0;
29931 if (sizeof (ac__type_new_))
29932   return 0;
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 rm -f conftest.$ac_objext
29938 if { (ac_try="$ac_compile"
29939 case "(($ac_try" in
29940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941   *) ac_try_echo=$ac_try;;
29942 esac
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944   (eval "$ac_compile") 2>conftest.er1
29945   ac_status=$?
29946   grep -v '^ *+' conftest.er1 >conftest.err
29947   rm -f conftest.er1
29948   cat conftest.err >&5
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); } &&
29951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29952   { (case "(($ac_try" in
29953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954   *) ac_try_echo=$ac_try;;
29955 esac
29956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957   (eval "$ac_try") 2>&5
29958   ac_status=$?
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); }; } &&
29961          { ac_try='test -s conftest.$ac_objext'
29962   { (case "(($ac_try" in
29963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964   *) ac_try_echo=$ac_try;;
29965 esac
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967   (eval "$ac_try") 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; }; then
29971   ac_cv_type_u_int64_t=yes
29972 else
29973   echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29975
29976         ac_cv_type_u_int64_t=no
29977 fi
29978
29979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29980 fi
29981 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29982 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29983 if test $ac_cv_type_u_int64_t = yes; then
29984
29985 cat >>confdefs.h <<_ACEOF
29986 #define HAVE_U_INT64_T 1
29987 _ACEOF
29988
29989
29990 else
29991   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29992 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29993    { (exit 1); exit 1; }; }
29994 fi
29995
29996 fi
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30008 do
30009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30013   echo $ECHO_N "(cached) $ECHO_C" >&6
30014 else
30015   cat >conftest.$ac_ext <<_ACEOF
30016 /* confdefs.h.  */
30017 _ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h.  */
30021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30023 #define $ac_func innocuous_$ac_func
30024
30025 /* System header to define __stub macros and hopefully few prototypes,
30026     which can conflict with char $ac_func (); below.
30027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028     <limits.h> exists even on freestanding compilers.  */
30029
30030 #ifdef __STDC__
30031 # include <limits.h>
30032 #else
30033 # include <assert.h>
30034 #endif
30035
30036 #undef $ac_func
30037
30038 /* Override any GCC internal prototype to avoid an error.
30039    Use char because int might match the return type of a GCC
30040    builtin and then its argument prototype would still apply.  */
30041 #ifdef __cplusplus
30042 extern "C"
30043 #endif
30044 char $ac_func ();
30045 /* The GNU C library defines this for functions which it implements
30046     to always fail with ENOSYS.  Some functions are actually named
30047     something starting with __ and the normal name is an alias.  */
30048 #if defined __stub_$ac_func || defined __stub___$ac_func
30049 choke me
30050 #endif
30051
30052 int
30053 main ()
30054 {
30055 return $ac_func ();
30056   ;
30057   return 0;
30058 }
30059 _ACEOF
30060 rm -f conftest.$ac_objext conftest$ac_exeext
30061 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30068   ac_status=$?
30069   grep -v '^ *+' conftest.er1 >conftest.err
30070   rm -f conftest.er1
30071   cat conftest.err >&5
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); } &&
30074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30075   { (case "(($ac_try" in
30076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077   *) ac_try_echo=$ac_try;;
30078 esac
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080   (eval "$ac_try") 2>&5
30081   ac_status=$?
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); }; } &&
30084          { ac_try='test -s conftest$ac_exeext'
30085   { (case "(($ac_try" in
30086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087   *) ac_try_echo=$ac_try;;
30088 esac
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090   (eval "$ac_try") 2>&5
30091   ac_status=$?
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); }; }; then
30094   eval "$as_ac_var=yes"
30095 else
30096   echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30098
30099         eval "$as_ac_var=no"
30100 fi
30101
30102 rm -f core conftest.err conftest.$ac_objext \
30103       conftest$ac_exeext conftest.$ac_ext
30104 fi
30105 ac_res=`eval echo '${'$as_ac_var'}'`
30106                { echo "$as_me:$LINENO: result: $ac_res" >&5
30107 echo "${ECHO_T}$ac_res" >&6; }
30108 if test `eval echo '${'$as_ac_var'}'` = yes; then
30109   cat >>confdefs.h <<_ACEOF
30110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30111 _ACEOF
30112
30113 fi
30114 done
30115
30116
30117
30118
30119
30120
30121 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30122 do
30123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30127   echo $ECHO_N "(cached) $ECHO_C" >&6
30128 else
30129   cat >conftest.$ac_ext <<_ACEOF
30130 /* confdefs.h.  */
30131 _ACEOF
30132 cat confdefs.h >>conftest.$ac_ext
30133 cat >>conftest.$ac_ext <<_ACEOF
30134 /* end confdefs.h.  */
30135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30137 #define $ac_func innocuous_$ac_func
30138
30139 /* System header to define __stub macros and hopefully few prototypes,
30140     which can conflict with char $ac_func (); below.
30141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30142     <limits.h> exists even on freestanding compilers.  */
30143
30144 #ifdef __STDC__
30145 # include <limits.h>
30146 #else
30147 # include <assert.h>
30148 #endif
30149
30150 #undef $ac_func
30151
30152 /* Override any GCC internal prototype to avoid an error.
30153    Use char because int might match the return type of a GCC
30154    builtin and then its argument prototype would still apply.  */
30155 #ifdef __cplusplus
30156 extern "C"
30157 #endif
30158 char $ac_func ();
30159 /* The GNU C library defines this for functions which it implements
30160     to always fail with ENOSYS.  Some functions are actually named
30161     something starting with __ and the normal name is an alias.  */
30162 #if defined __stub_$ac_func || defined __stub___$ac_func
30163 choke me
30164 #endif
30165
30166 int
30167 main ()
30168 {
30169 return $ac_func ();
30170   ;
30171   return 0;
30172 }
30173 _ACEOF
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (ac_try="$ac_link"
30176 case "(($ac_try" in
30177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178   *) ac_try_echo=$ac_try;;
30179 esac
30180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181   (eval "$ac_link") 2>conftest.er1
30182   ac_status=$?
30183   grep -v '^ *+' conftest.er1 >conftest.err
30184   rm -f conftest.er1
30185   cat conftest.err >&5
30186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187   (exit $ac_status); } &&
30188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30189   { (case "(($ac_try" in
30190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191   *) ac_try_echo=$ac_try;;
30192 esac
30193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194   (eval "$ac_try") 2>&5
30195   ac_status=$?
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); }; } &&
30198          { ac_try='test -s conftest$ac_exeext'
30199   { (case "(($ac_try" in
30200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201   *) ac_try_echo=$ac_try;;
30202 esac
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204   (eval "$ac_try") 2>&5
30205   ac_status=$?
30206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207   (exit $ac_status); }; }; then
30208   eval "$as_ac_var=yes"
30209 else
30210   echo "$as_me: failed program was:" >&5
30211 sed 's/^/| /' conftest.$ac_ext >&5
30212
30213         eval "$as_ac_var=no"
30214 fi
30215
30216 rm -f core conftest.err conftest.$ac_objext \
30217       conftest$ac_exeext conftest.$ac_ext
30218 fi
30219 ac_res=`eval echo '${'$as_ac_var'}'`
30220                { echo "$as_me:$LINENO: result: $ac_res" >&5
30221 echo "${ECHO_T}$ac_res" >&6; }
30222 if test `eval echo '${'$as_ac_var'}'` = yes; then
30223   cat >>confdefs.h <<_ACEOF
30224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30225 _ACEOF
30226
30227 fi
30228 done
30229
30230
30231
30232
30233 for ac_func in isatty mkdtemp mkstemp
30234 do
30235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30239   echo $ECHO_N "(cached) $ECHO_C" >&6
30240 else
30241   cat >conftest.$ac_ext <<_ACEOF
30242 /* confdefs.h.  */
30243 _ACEOF
30244 cat confdefs.h >>conftest.$ac_ext
30245 cat >>conftest.$ac_ext <<_ACEOF
30246 /* end confdefs.h.  */
30247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30249 #define $ac_func innocuous_$ac_func
30250
30251 /* System header to define __stub macros and hopefully few prototypes,
30252     which can conflict with char $ac_func (); below.
30253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30254     <limits.h> exists even on freestanding compilers.  */
30255
30256 #ifdef __STDC__
30257 # include <limits.h>
30258 #else
30259 # include <assert.h>
30260 #endif
30261
30262 #undef $ac_func
30263
30264 /* Override any GCC internal prototype to avoid an error.
30265    Use char because int might match the return type of a GCC
30266    builtin and then its argument prototype would still apply.  */
30267 #ifdef __cplusplus
30268 extern "C"
30269 #endif
30270 char $ac_func ();
30271 /* The GNU C library defines this for functions which it implements
30272     to always fail with ENOSYS.  Some functions are actually named
30273     something starting with __ and the normal name is an alias.  */
30274 #if defined __stub_$ac_func || defined __stub___$ac_func
30275 choke me
30276 #endif
30277
30278 int
30279 main ()
30280 {
30281 return $ac_func ();
30282   ;
30283   return 0;
30284 }
30285 _ACEOF
30286 rm -f conftest.$ac_objext conftest$ac_exeext
30287 if { (ac_try="$ac_link"
30288 case "(($ac_try" in
30289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290   *) ac_try_echo=$ac_try;;
30291 esac
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293   (eval "$ac_link") 2>conftest.er1
30294   ac_status=$?
30295   grep -v '^ *+' conftest.er1 >conftest.err
30296   rm -f conftest.er1
30297   cat conftest.err >&5
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); } &&
30300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30301   { (case "(($ac_try" in
30302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303   *) ac_try_echo=$ac_try;;
30304 esac
30305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30306   (eval "$ac_try") 2>&5
30307   ac_status=$?
30308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309   (exit $ac_status); }; } &&
30310          { ac_try='test -s conftest$ac_exeext'
30311   { (case "(($ac_try" in
30312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313   *) ac_try_echo=$ac_try;;
30314 esac
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316   (eval "$ac_try") 2>&5
30317   ac_status=$?
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); }; }; then
30320   eval "$as_ac_var=yes"
30321 else
30322   echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30324
30325         eval "$as_ac_var=no"
30326 fi
30327
30328 rm -f core conftest.err conftest.$ac_objext \
30329       conftest$ac_exeext conftest.$ac_ext
30330 fi
30331 ac_res=`eval echo '${'$as_ac_var'}'`
30332                { echo "$as_me:$LINENO: result: $ac_res" >&5
30333 echo "${ECHO_T}$ac_res" >&6; }
30334 if test `eval echo '${'$as_ac_var'}'` = yes; then
30335   cat >>confdefs.h <<_ACEOF
30336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337 _ACEOF
30338
30339 fi
30340 done
30341
30342
30343
30344
30345
30346
30347
30348
30349 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30350 do
30351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30355   echo $ECHO_N "(cached) $ECHO_C" >&6
30356 else
30357   cat >conftest.$ac_ext <<_ACEOF
30358 /* confdefs.h.  */
30359 _ACEOF
30360 cat confdefs.h >>conftest.$ac_ext
30361 cat >>conftest.$ac_ext <<_ACEOF
30362 /* end confdefs.h.  */
30363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30365 #define $ac_func innocuous_$ac_func
30366
30367 /* System header to define __stub macros and hopefully few prototypes,
30368     which can conflict with char $ac_func (); below.
30369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30370     <limits.h> exists even on freestanding compilers.  */
30371
30372 #ifdef __STDC__
30373 # include <limits.h>
30374 #else
30375 # include <assert.h>
30376 #endif
30377
30378 #undef $ac_func
30379
30380 /* Override any GCC internal prototype to avoid an error.
30381    Use char because int might match the return type of a GCC
30382    builtin and then its argument prototype would still apply.  */
30383 #ifdef __cplusplus
30384 extern "C"
30385 #endif
30386 char $ac_func ();
30387 /* The GNU C library defines this for functions which it implements
30388     to always fail with ENOSYS.  Some functions are actually named
30389     something starting with __ and the normal name is an alias.  */
30390 #if defined __stub_$ac_func || defined __stub___$ac_func
30391 choke me
30392 #endif
30393
30394 int
30395 main ()
30396 {
30397 return $ac_func ();
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 rm -f conftest.$ac_objext conftest$ac_exeext
30403 if { (ac_try="$ac_link"
30404 case "(($ac_try" in
30405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406   *) ac_try_echo=$ac_try;;
30407 esac
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409   (eval "$ac_link") 2>conftest.er1
30410   ac_status=$?
30411   grep -v '^ *+' conftest.er1 >conftest.err
30412   rm -f conftest.er1
30413   cat conftest.err >&5
30414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415   (exit $ac_status); } &&
30416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30417   { (case "(($ac_try" in
30418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419   *) ac_try_echo=$ac_try;;
30420 esac
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422   (eval "$ac_try") 2>&5
30423   ac_status=$?
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); }; } &&
30426          { ac_try='test -s conftest$ac_exeext'
30427   { (case "(($ac_try" in
30428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429   *) ac_try_echo=$ac_try;;
30430 esac
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432   (eval "$ac_try") 2>&5
30433   ac_status=$?
30434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435   (exit $ac_status); }; }; then
30436   eval "$as_ac_var=yes"
30437 else
30438   echo "$as_me: failed program was:" >&5
30439 sed 's/^/| /' conftest.$ac_ext >&5
30440
30441         eval "$as_ac_var=no"
30442 fi
30443
30444 rm -f core conftest.err conftest.$ac_objext \
30445       conftest$ac_exeext conftest.$ac_ext
30446 fi
30447 ac_res=`eval echo '${'$as_ac_var'}'`
30448                { echo "$as_me:$LINENO: result: $ac_res" >&5
30449 echo "${ECHO_T}$ac_res" >&6; }
30450 if test `eval echo '${'$as_ac_var'}'` = yes; then
30451   cat >>confdefs.h <<_ACEOF
30452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30453 _ACEOF
30454
30455 fi
30456 done
30457
30458
30459
30460
30461
30462 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30463 do
30464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30468   echo $ECHO_N "(cached) $ECHO_C" >&6
30469 else
30470   cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h.  */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h.  */
30476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30478 #define $ac_func innocuous_$ac_func
30479
30480 /* System header to define __stub macros and hopefully few prototypes,
30481     which can conflict with char $ac_func (); below.
30482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30483     <limits.h> exists even on freestanding compilers.  */
30484
30485 #ifdef __STDC__
30486 # include <limits.h>
30487 #else
30488 # include <assert.h>
30489 #endif
30490
30491 #undef $ac_func
30492
30493 /* Override any GCC internal prototype to avoid an error.
30494    Use char because int might match the return type of a GCC
30495    builtin and then its argument prototype would still apply.  */
30496 #ifdef __cplusplus
30497 extern "C"
30498 #endif
30499 char $ac_func ();
30500 /* The GNU C library defines this for functions which it implements
30501     to always fail with ENOSYS.  Some functions are actually named
30502     something starting with __ and the normal name is an alias.  */
30503 #if defined __stub_$ac_func || defined __stub___$ac_func
30504 choke me
30505 #endif
30506
30507 int
30508 main ()
30509 {
30510 return $ac_func ();
30511   ;
30512   return 0;
30513 }
30514 _ACEOF
30515 rm -f conftest.$ac_objext conftest$ac_exeext
30516 if { (ac_try="$ac_link"
30517 case "(($ac_try" in
30518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519   *) ac_try_echo=$ac_try;;
30520 esac
30521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522   (eval "$ac_link") 2>conftest.er1
30523   ac_status=$?
30524   grep -v '^ *+' conftest.er1 >conftest.err
30525   rm -f conftest.er1
30526   cat conftest.err >&5
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); } &&
30529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30530   { (case "(($ac_try" in
30531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532   *) ac_try_echo=$ac_try;;
30533 esac
30534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535   (eval "$ac_try") 2>&5
30536   ac_status=$?
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); }; } &&
30539          { ac_try='test -s conftest$ac_exeext'
30540   { (case "(($ac_try" in
30541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542   *) ac_try_echo=$ac_try;;
30543 esac
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545   (eval "$ac_try") 2>&5
30546   ac_status=$?
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); }; }; then
30549   eval "$as_ac_var=yes"
30550 else
30551   echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554         eval "$as_ac_var=no"
30555 fi
30556
30557 rm -f core conftest.err conftest.$ac_objext \
30558       conftest$ac_exeext conftest.$ac_ext
30559 fi
30560 ac_res=`eval echo '${'$as_ac_var'}'`
30561                { echo "$as_me:$LINENO: result: $ac_res" >&5
30562 echo "${ECHO_T}$ac_res" >&6; }
30563 if test `eval echo '${'$as_ac_var'}'` = yes; then
30564   cat >>confdefs.h <<_ACEOF
30565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30566 _ACEOF
30567
30568 fi
30569 done
30570
30571
30572
30573
30574
30575 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30576 do
30577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30581   echo $ECHO_N "(cached) $ECHO_C" >&6
30582 else
30583   cat >conftest.$ac_ext <<_ACEOF
30584 /* confdefs.h.  */
30585 _ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h.  */
30589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30591 #define $ac_func innocuous_$ac_func
30592
30593 /* System header to define __stub macros and hopefully few prototypes,
30594     which can conflict with char $ac_func (); below.
30595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30596     <limits.h> exists even on freestanding compilers.  */
30597
30598 #ifdef __STDC__
30599 # include <limits.h>
30600 #else
30601 # include <assert.h>
30602 #endif
30603
30604 #undef $ac_func
30605
30606 /* Override any GCC internal prototype to avoid an error.
30607    Use char because int might match the return type of a GCC
30608    builtin and then its argument prototype would still apply.  */
30609 #ifdef __cplusplus
30610 extern "C"
30611 #endif
30612 char $ac_func ();
30613 /* The GNU C library defines this for functions which it implements
30614     to always fail with ENOSYS.  Some functions are actually named
30615     something starting with __ and the normal name is an alias.  */
30616 #if defined __stub_$ac_func || defined __stub___$ac_func
30617 choke me
30618 #endif
30619
30620 int
30621 main ()
30622 {
30623 return $ac_func ();
30624   ;
30625   return 0;
30626 }
30627 _ACEOF
30628 rm -f conftest.$ac_objext conftest$ac_exeext
30629 if { (ac_try="$ac_link"
30630 case "(($ac_try" in
30631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632   *) ac_try_echo=$ac_try;;
30633 esac
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635   (eval "$ac_link") 2>conftest.er1
30636   ac_status=$?
30637   grep -v '^ *+' conftest.er1 >conftest.err
30638   rm -f conftest.er1
30639   cat conftest.err >&5
30640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641   (exit $ac_status); } &&
30642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643   { (case "(($ac_try" in
30644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645   *) ac_try_echo=$ac_try;;
30646 esac
30647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648   (eval "$ac_try") 2>&5
30649   ac_status=$?
30650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); }; } &&
30652          { ac_try='test -s conftest$ac_exeext'
30653   { (case "(($ac_try" in
30654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655   *) ac_try_echo=$ac_try;;
30656 esac
30657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658   (eval "$ac_try") 2>&5
30659   ac_status=$?
30660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661   (exit $ac_status); }; }; then
30662   eval "$as_ac_var=yes"
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667         eval "$as_ac_var=no"
30668 fi
30669
30670 rm -f core conftest.err conftest.$ac_objext \
30671       conftest$ac_exeext conftest.$ac_ext
30672 fi
30673 ac_res=`eval echo '${'$as_ac_var'}'`
30674                { echo "$as_me:$LINENO: result: $ac_res" >&5
30675 echo "${ECHO_T}$ac_res" >&6; }
30676 if test `eval echo '${'$as_ac_var'}'` = yes; then
30677   cat >>confdefs.h <<_ACEOF
30678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30679 _ACEOF
30680
30681 fi
30682 done
30683
30684 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30685 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30686 if test "${llvm_cv_c_printf_a+set}" = set; then
30687   echo $ECHO_N "(cached) $ECHO_C" >&6
30688 else
30689   ac_ext=c
30690 ac_cpp='$CPP $CPPFLAGS'
30691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30694
30695  if test "$cross_compiling" = yes; then
30696   llvmac_cv_c_printf_a=no
30697 else
30698   cat >conftest.$ac_ext <<_ACEOF
30699
30700   /* confdefs.h.  */
30701 _ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h.  */
30705
30706 #include <stdio.h>
30707 #include <stdlib.h>
30708
30709 int
30710 main ()
30711 {
30712
30713 volatile double A, B;
30714 char Buffer[100];
30715 A = 1;
30716 A /= 10.0;
30717 sprintf(Buffer, "%a", A);
30718 B = atof(Buffer);
30719 if (A != B)
30720   return (1);
30721 if (A != 0x1.999999999999ap-4)
30722   return (1);
30723 return (0);
30724   ;
30725   return 0;
30726 }
30727 _ACEOF
30728 rm -f conftest$ac_exeext
30729 if { (ac_try="$ac_link"
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_link") 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30739   { (case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_try") 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); }; }; then
30748   llvm_cv_c_printf_a=yes
30749 else
30750   echo "$as_me: program exited with status $ac_status" >&5
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30753
30754 ( exit $ac_status )
30755 llvmac_cv_c_printf_a=no
30756 fi
30757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30758 fi
30759
30760
30761  ac_ext=c
30762 ac_cpp='$CPP $CPPFLAGS'
30763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30766
30767 fi
30768 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30769 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30770  if test "$llvm_cv_c_printf_a" = "yes"; then
30771
30772 cat >>confdefs.h <<\_ACEOF
30773 #define HAVE_PRINTF_A 1
30774 _ACEOF
30775
30776  fi
30777
30778 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30779 # for constant arguments.  Useless!
30780 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30781 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30782 if test "${ac_cv_working_alloca_h+set}" = set; then
30783   echo $ECHO_N "(cached) $ECHO_C" >&6
30784 else
30785   cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h.  */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h.  */
30791 #include <alloca.h>
30792 int
30793 main ()
30794 {
30795 char *p = (char *) alloca (2 * sizeof (int));
30796                           if (p) return 0;
30797   ;
30798   return 0;
30799 }
30800 _ACEOF
30801 rm -f conftest.$ac_objext conftest$ac_exeext
30802 if { (ac_try="$ac_link"
30803 case "(($ac_try" in
30804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805   *) ac_try_echo=$ac_try;;
30806 esac
30807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808   (eval "$ac_link") 2>conftest.er1
30809   ac_status=$?
30810   grep -v '^ *+' conftest.er1 >conftest.err
30811   rm -f conftest.er1
30812   cat conftest.err >&5
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); } &&
30815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30816   { (case "(($ac_try" in
30817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818   *) ac_try_echo=$ac_try;;
30819 esac
30820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821   (eval "$ac_try") 2>&5
30822   ac_status=$?
30823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824   (exit $ac_status); }; } &&
30825          { ac_try='test -s conftest$ac_exeext'
30826   { (case "(($ac_try" in
30827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828   *) ac_try_echo=$ac_try;;
30829 esac
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831   (eval "$ac_try") 2>&5
30832   ac_status=$?
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); }; }; then
30835   ac_cv_working_alloca_h=yes
30836 else
30837   echo "$as_me: failed program was:" >&5
30838 sed 's/^/| /' conftest.$ac_ext >&5
30839
30840         ac_cv_working_alloca_h=no
30841 fi
30842
30843 rm -f core conftest.err conftest.$ac_objext \
30844       conftest$ac_exeext conftest.$ac_ext
30845 fi
30846 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30847 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30848 if test $ac_cv_working_alloca_h = yes; then
30849
30850 cat >>confdefs.h <<\_ACEOF
30851 #define HAVE_ALLOCA_H 1
30852 _ACEOF
30853
30854 fi
30855
30856 { echo "$as_me:$LINENO: checking for alloca" >&5
30857 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30858 if test "${ac_cv_func_alloca_works+set}" = set; then
30859   echo $ECHO_N "(cached) $ECHO_C" >&6
30860 else
30861   cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h.  */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h.  */
30867 #ifdef __GNUC__
30868 # define alloca __builtin_alloca
30869 #else
30870 # ifdef _MSC_VER
30871 #  include <malloc.h>
30872 #  define alloca _alloca
30873 # else
30874 #  if HAVE_ALLOCA_H
30875 #   include <alloca.h>
30876 #  else
30877 #   ifdef _AIX
30878  #pragma alloca
30879 #   else
30880 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30881 char *alloca ();
30882 #    endif
30883 #   endif
30884 #  endif
30885 # endif
30886 #endif
30887
30888 int
30889 main ()
30890 {
30891 char *p = (char *) alloca (1);
30892                                     if (p) return 0;
30893   ;
30894   return 0;
30895 }
30896 _ACEOF
30897 rm -f conftest.$ac_objext conftest$ac_exeext
30898 if { (ac_try="$ac_link"
30899 case "(($ac_try" in
30900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901   *) ac_try_echo=$ac_try;;
30902 esac
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904   (eval "$ac_link") 2>conftest.er1
30905   ac_status=$?
30906   grep -v '^ *+' conftest.er1 >conftest.err
30907   rm -f conftest.er1
30908   cat conftest.err >&5
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } &&
30911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30912   { (case "(($ac_try" in
30913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914   *) ac_try_echo=$ac_try;;
30915 esac
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917   (eval "$ac_try") 2>&5
30918   ac_status=$?
30919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920   (exit $ac_status); }; } &&
30921          { ac_try='test -s conftest$ac_exeext'
30922   { (case "(($ac_try" in
30923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924   *) ac_try_echo=$ac_try;;
30925 esac
30926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927   (eval "$ac_try") 2>&5
30928   ac_status=$?
30929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930   (exit $ac_status); }; }; then
30931   ac_cv_func_alloca_works=yes
30932 else
30933   echo "$as_me: failed program was:" >&5
30934 sed 's/^/| /' conftest.$ac_ext >&5
30935
30936         ac_cv_func_alloca_works=no
30937 fi
30938
30939 rm -f core conftest.err conftest.$ac_objext \
30940       conftest$ac_exeext conftest.$ac_ext
30941 fi
30942 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30943 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30944
30945 if test $ac_cv_func_alloca_works = yes; then
30946
30947 cat >>confdefs.h <<\_ACEOF
30948 #define HAVE_ALLOCA 1
30949 _ACEOF
30950
30951 else
30952   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30953 # that cause trouble.  Some versions do not even contain alloca or
30954 # contain a buggy version.  If you still want to use their alloca,
30955 # use ar to extract alloca.o from them instead of compiling alloca.c.
30956
30957 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30958
30959 cat >>confdefs.h <<\_ACEOF
30960 #define C_ALLOCA 1
30961 _ACEOF
30962
30963
30964 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30965 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30966 if test "${ac_cv_os_cray+set}" = set; then
30967   echo $ECHO_N "(cached) $ECHO_C" >&6
30968 else
30969   cat >conftest.$ac_ext <<_ACEOF
30970 /* confdefs.h.  */
30971 _ACEOF
30972 cat confdefs.h >>conftest.$ac_ext
30973 cat >>conftest.$ac_ext <<_ACEOF
30974 /* end confdefs.h.  */
30975 #if defined CRAY && ! defined CRAY2
30976 webecray
30977 #else
30978 wenotbecray
30979 #endif
30980
30981 _ACEOF
30982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30983   $EGREP "webecray" >/dev/null 2>&1; then
30984   ac_cv_os_cray=yes
30985 else
30986   ac_cv_os_cray=no
30987 fi
30988 rm -f conftest*
30989
30990 fi
30991 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30992 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30993 if test $ac_cv_os_cray = yes; then
30994   for ac_func in _getb67 GETB67 getb67; do
30995     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30999   echo $ECHO_N "(cached) $ECHO_C" >&6
31000 else
31001   cat >conftest.$ac_ext <<_ACEOF
31002 /* confdefs.h.  */
31003 _ACEOF
31004 cat confdefs.h >>conftest.$ac_ext
31005 cat >>conftest.$ac_ext <<_ACEOF
31006 /* end confdefs.h.  */
31007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31009 #define $ac_func innocuous_$ac_func
31010
31011 /* System header to define __stub macros and hopefully few prototypes,
31012     which can conflict with char $ac_func (); below.
31013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31014     <limits.h> exists even on freestanding compilers.  */
31015
31016 #ifdef __STDC__
31017 # include <limits.h>
31018 #else
31019 # include <assert.h>
31020 #endif
31021
31022 #undef $ac_func
31023
31024 /* Override any GCC internal prototype to avoid an error.
31025    Use char because int might match the return type of a GCC
31026    builtin and then its argument prototype would still apply.  */
31027 #ifdef __cplusplus
31028 extern "C"
31029 #endif
31030 char $ac_func ();
31031 /* The GNU C library defines this for functions which it implements
31032     to always fail with ENOSYS.  Some functions are actually named
31033     something starting with __ and the normal name is an alias.  */
31034 #if defined __stub_$ac_func || defined __stub___$ac_func
31035 choke me
31036 #endif
31037
31038 int
31039 main ()
31040 {
31041 return $ac_func ();
31042   ;
31043   return 0;
31044 }
31045 _ACEOF
31046 rm -f conftest.$ac_objext conftest$ac_exeext
31047 if { (ac_try="$ac_link"
31048 case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_link") 2>conftest.er1
31054   ac_status=$?
31055   grep -v '^ *+' conftest.er1 >conftest.err
31056   rm -f conftest.er1
31057   cat conftest.err >&5
31058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059   (exit $ac_status); } &&
31060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31061   { (case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_try") 2>&5
31067   ac_status=$?
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); }; } &&
31070          { ac_try='test -s conftest$ac_exeext'
31071   { (case "(($ac_try" in
31072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073   *) ac_try_echo=$ac_try;;
31074 esac
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076   (eval "$ac_try") 2>&5
31077   ac_status=$?
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); }; }; then
31080   eval "$as_ac_var=yes"
31081 else
31082   echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31084
31085         eval "$as_ac_var=no"
31086 fi
31087
31088 rm -f core conftest.err conftest.$ac_objext \
31089       conftest$ac_exeext conftest.$ac_ext
31090 fi
31091 ac_res=`eval echo '${'$as_ac_var'}'`
31092                { echo "$as_me:$LINENO: result: $ac_res" >&5
31093 echo "${ECHO_T}$ac_res" >&6; }
31094 if test `eval echo '${'$as_ac_var'}'` = yes; then
31095
31096 cat >>confdefs.h <<_ACEOF
31097 #define CRAY_STACKSEG_END $ac_func
31098 _ACEOF
31099
31100     break
31101 fi
31102
31103   done
31104 fi
31105
31106 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31107 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31108 if test "${ac_cv_c_stack_direction+set}" = set; then
31109   echo $ECHO_N "(cached) $ECHO_C" >&6
31110 else
31111   if test "$cross_compiling" = yes; then
31112   ac_cv_c_stack_direction=0
31113 else
31114   cat >conftest.$ac_ext <<_ACEOF
31115 /* confdefs.h.  */
31116 _ACEOF
31117 cat confdefs.h >>conftest.$ac_ext
31118 cat >>conftest.$ac_ext <<_ACEOF
31119 /* end confdefs.h.  */
31120 $ac_includes_default
31121 int
31122 find_stack_direction ()
31123 {
31124   static char *addr = 0;
31125   auto char dummy;
31126   if (addr == 0)
31127     {
31128       addr = &dummy;
31129       return find_stack_direction ();
31130     }
31131   else
31132     return (&dummy > addr) ? 1 : -1;
31133 }
31134
31135 int
31136 main ()
31137 {
31138   return find_stack_direction () < 0;
31139 }
31140 _ACEOF
31141 rm -f conftest$ac_exeext
31142 if { (ac_try="$ac_link"
31143 case "(($ac_try" in
31144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145   *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148   (eval "$ac_link") 2>&5
31149   ac_status=$?
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31152   { (case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157   (eval "$ac_try") 2>&5
31158   ac_status=$?
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); }; }; then
31161   ac_cv_c_stack_direction=1
31162 else
31163   echo "$as_me: program exited with status $ac_status" >&5
31164 echo "$as_me: failed program was:" >&5
31165 sed 's/^/| /' conftest.$ac_ext >&5
31166
31167 ( exit $ac_status )
31168 ac_cv_c_stack_direction=-1
31169 fi
31170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31171 fi
31172
31173
31174 fi
31175 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31176 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31177
31178 cat >>confdefs.h <<_ACEOF
31179 #define STACK_DIRECTION $ac_cv_c_stack_direction
31180 _ACEOF
31181
31182
31183 fi
31184
31185
31186 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31187 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31188 if test "${ac_cv_func_rand48+set}" = set; then
31189   echo $ECHO_N "(cached) $ECHO_C" >&6
31190 else
31191   ac_ext=cpp
31192 ac_cpp='$CXXCPP $CPPFLAGS'
31193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31196
31197    cat >conftest.$ac_ext <<_ACEOF
31198 /* confdefs.h.  */
31199 _ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h.  */
31203 #include <stdlib.h>
31204 int
31205 main ()
31206 {
31207 srand48(0);lrand48();drand48();
31208   ;
31209   return 0;
31210 }
31211 _ACEOF
31212 rm -f conftest.$ac_objext
31213 if { (ac_try="$ac_compile"
31214 case "(($ac_try" in
31215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216   *) ac_try_echo=$ac_try;;
31217 esac
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219   (eval "$ac_compile") 2>conftest.er1
31220   ac_status=$?
31221   grep -v '^ *+' conftest.er1 >conftest.err
31222   rm -f conftest.er1
31223   cat conftest.err >&5
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); } &&
31226          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31227   { (case "(($ac_try" in
31228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229   *) ac_try_echo=$ac_try;;
31230 esac
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232   (eval "$ac_try") 2>&5
31233   ac_status=$?
31234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235   (exit $ac_status); }; } &&
31236          { ac_try='test -s conftest.$ac_objext'
31237   { (case "(($ac_try" in
31238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239   *) ac_try_echo=$ac_try;;
31240 esac
31241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242   (eval "$ac_try") 2>&5
31243   ac_status=$?
31244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245   (exit $ac_status); }; }; then
31246   ac_cv_func_rand48=yes
31247 else
31248   echo "$as_me: failed program was:" >&5
31249 sed 's/^/| /' conftest.$ac_ext >&5
31250
31251         ac_cv_func_rand48=no
31252 fi
31253
31254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31255   ac_ext=c
31256 ac_cpp='$CPP $CPPFLAGS'
31257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31260
31261 fi
31262 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31263 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31264
31265 if test "$ac_cv_func_rand48" = "yes" ; then
31266
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_RAND48 1
31269 _ACEOF
31270
31271 fi
31272
31273
31274 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31275 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31276 if test "${ac_cv_cxx_namespaces+set}" = set; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   ac_ext=cpp
31280 ac_cpp='$CXXCPP $CPPFLAGS'
31281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31284
31285  cat >conftest.$ac_ext <<_ACEOF
31286 /* confdefs.h.  */
31287 _ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h.  */
31291 namespace Outer { namespace Inner { int i = 0; }}
31292 int
31293 main ()
31294 {
31295 using namespace Outer::Inner; return i;
31296   ;
31297   return 0;
31298 }
31299 _ACEOF
31300 rm -f conftest.$ac_objext
31301 if { (ac_try="$ac_compile"
31302 case "(($ac_try" in
31303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304   *) ac_try_echo=$ac_try;;
31305 esac
31306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307   (eval "$ac_compile") 2>conftest.er1
31308   ac_status=$?
31309   grep -v '^ *+' conftest.er1 >conftest.err
31310   rm -f conftest.er1
31311   cat conftest.err >&5
31312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313   (exit $ac_status); } &&
31314          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31315   { (case "(($ac_try" in
31316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317   *) ac_try_echo=$ac_try;;
31318 esac
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320   (eval "$ac_try") 2>&5
31321   ac_status=$?
31322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323   (exit $ac_status); }; } &&
31324          { ac_try='test -s conftest.$ac_objext'
31325   { (case "(($ac_try" in
31326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327   *) ac_try_echo=$ac_try;;
31328 esac
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330   (eval "$ac_try") 2>&5
31331   ac_status=$?
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); }; }; then
31334   ac_cv_cxx_namespaces=yes
31335 else
31336   echo "$as_me: failed program was:" >&5
31337 sed 's/^/| /' conftest.$ac_ext >&5
31338
31339         ac_cv_cxx_namespaces=no
31340 fi
31341
31342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31343  ac_ext=c
31344 ac_cpp='$CPP $CPPFLAGS'
31345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348
31349
31350 fi
31351 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31352 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31353 if test "$ac_cv_cxx_namespaces" = yes; then
31354
31355 cat >>confdefs.h <<\_ACEOF
31356 #define HAVE_NAMESPACES
31357 _ACEOF
31358
31359 fi
31360
31361 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31362 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31363 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31364   echo $ECHO_N "(cached) $ECHO_C" >&6
31365 else
31366
31367   ac_ext=cpp
31368 ac_cpp='$CXXCPP $CPPFLAGS'
31369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31372
31373   cat >conftest.$ac_ext <<_ACEOF
31374 /* confdefs.h.  */
31375 _ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h.  */
31379 #include <ext/hash_map>
31380 #ifdef HAVE_NAMESPACES
31381 using namespace std;
31382 #endif
31383 int
31384 main ()
31385 {
31386 hash_map<int, int> t;
31387   ;
31388   return 0;
31389 }
31390 _ACEOF
31391 rm -f conftest.$ac_objext
31392 if { (ac_try="$ac_compile"
31393 case "(($ac_try" in
31394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395   *) ac_try_echo=$ac_try;;
31396 esac
31397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31398   (eval "$ac_compile") 2>conftest.er1
31399   ac_status=$?
31400   grep -v '^ *+' conftest.er1 >conftest.err
31401   rm -f conftest.er1
31402   cat conftest.err >&5
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); } &&
31405          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31406   { (case "(($ac_try" in
31407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408   *) ac_try_echo=$ac_try;;
31409 esac
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411   (eval "$ac_try") 2>&5
31412   ac_status=$?
31413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414   (exit $ac_status); }; } &&
31415          { ac_try='test -s conftest.$ac_objext'
31416   { (case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_try") 2>&5
31422   ac_status=$?
31423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424   (exit $ac_status); }; }; then
31425   ac_cv_cxx_have_std_ext_hash_map=yes
31426 else
31427   echo "$as_me: failed program was:" >&5
31428 sed 's/^/| /' conftest.$ac_ext >&5
31429
31430         ac_cv_cxx_have_std_ext_hash_map=no
31431 fi
31432
31433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31434   ac_ext=c
31435 ac_cpp='$CPP $CPPFLAGS'
31436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31439
31440 fi
31441 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31442 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31443  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31444  then
31445
31446 cat >>confdefs.h <<\_ACEOF
31447 #define HAVE_STD_EXT_HASH_MAP 1
31448 _ACEOF
31449
31450  else
31451
31452 cat >>confdefs.h <<\_ACEOF
31453 #define HAVE_STD_EXT_HASH_MAP 0
31454 _ACEOF
31455
31456  fi
31457
31458  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31459 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31460 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31461   echo $ECHO_N "(cached) $ECHO_C" >&6
31462 else
31463
31464   ac_ext=cpp
31465 ac_cpp='$CXXCPP $CPPFLAGS'
31466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31469
31470   cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h.  */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h.  */
31476 #include <ext/hash_map>
31477 #ifdef HAVE_NAMESPACES
31478 using namespace __gnu_cxx;
31479 #endif
31480 int
31481 main ()
31482 {
31483 hash_map<int,int> t;
31484   ;
31485   return 0;
31486 }
31487 _ACEOF
31488 rm -f conftest.$ac_objext
31489 if { (ac_try="$ac_compile"
31490 case "(($ac_try" in
31491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492   *) ac_try_echo=$ac_try;;
31493 esac
31494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495   (eval "$ac_compile") 2>conftest.er1
31496   ac_status=$?
31497   grep -v '^ *+' conftest.er1 >conftest.err
31498   rm -f conftest.er1
31499   cat conftest.err >&5
31500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501   (exit $ac_status); } &&
31502          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31503   { (case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_try") 2>&5
31509   ac_status=$?
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); }; } &&
31512          { ac_try='test -s conftest.$ac_objext'
31513   { (case "(($ac_try" in
31514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515   *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518   (eval "$ac_try") 2>&5
31519   ac_status=$?
31520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521   (exit $ac_status); }; }; then
31522   ac_cv_cxx_have_gnu_ext_hash_map=yes
31523 else
31524   echo "$as_me: failed program was:" >&5
31525 sed 's/^/| /' conftest.$ac_ext >&5
31526
31527         ac_cv_cxx_have_gnu_ext_hash_map=no
31528 fi
31529
31530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31531   ac_ext=c
31532 ac_cpp='$CPP $CPPFLAGS'
31533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31536
31537 fi
31538 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31539 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31540  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31541  then
31542
31543 cat >>confdefs.h <<\_ACEOF
31544 #define HAVE_GNU_EXT_HASH_MAP 1
31545 _ACEOF
31546
31547  else
31548
31549 cat >>confdefs.h <<\_ACEOF
31550 #define HAVE_GNU_EXT_HASH_MAP 0
31551 _ACEOF
31552
31553  fi
31554
31555  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31556 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31557 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560
31561   ac_ext=cpp
31562 ac_cpp='$CXXCPP $CPPFLAGS'
31563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31566
31567   cat >conftest.$ac_ext <<_ACEOF
31568 /* confdefs.h.  */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h.  */
31573 #include <hash_map>
31574 int
31575 main ()
31576 {
31577 hash_map<int,int> t;
31578   ;
31579   return 0;
31580 }
31581 _ACEOF
31582 rm -f conftest.$ac_objext
31583 if { (ac_try="$ac_compile"
31584 case "(($ac_try" in
31585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586   *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589   (eval "$ac_compile") 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } &&
31596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31597   { (case "(($ac_try" in
31598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599   *) ac_try_echo=$ac_try;;
31600 esac
31601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31602   (eval "$ac_try") 2>&5
31603   ac_status=$?
31604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605   (exit $ac_status); }; } &&
31606          { ac_try='test -s conftest.$ac_objext'
31607   { (case "(($ac_try" in
31608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609   *) ac_try_echo=$ac_try;;
31610 esac
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612   (eval "$ac_try") 2>&5
31613   ac_status=$?
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); }; }; then
31616   ac_cv_cxx_have_global_hash_map=yes
31617 else
31618   echo "$as_me: failed program was:" >&5
31619 sed 's/^/| /' conftest.$ac_ext >&5
31620
31621         ac_cv_cxx_have_global_hash_map=no
31622 fi
31623
31624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31625   ac_ext=c
31626 ac_cpp='$CPP $CPPFLAGS'
31627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31630
31631 fi
31632 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31633 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31634  if test "$ac_cv_cxx_have_global_hash_map" = yes
31635  then
31636
31637 cat >>confdefs.h <<\_ACEOF
31638 #define HAVE_GLOBAL_HASH_MAP 1
31639 _ACEOF
31640
31641  else
31642
31643 cat >>confdefs.h <<\_ACEOF
31644 #define HAVE_GLOBAL_HASH_MAP 0
31645 _ACEOF
31646
31647  fi
31648
31649 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31650 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31651 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31652   echo $ECHO_N "(cached) $ECHO_C" >&6
31653 else
31654
31655   ac_ext=cpp
31656 ac_cpp='$CXXCPP $CPPFLAGS'
31657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31660
31661   cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31667 #include <ext/hash_set>
31668 #ifdef HAVE_NAMESPACES
31669 using namespace std;
31670 #endif
31671 int
31672 main ()
31673 {
31674 hash_set<int> t;
31675   ;
31676   return 0;
31677 }
31678 _ACEOF
31679 rm -f conftest.$ac_objext
31680 if { (ac_try="$ac_compile"
31681 case "(($ac_try" in
31682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683   *) ac_try_echo=$ac_try;;
31684 esac
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686   (eval "$ac_compile") 2>conftest.er1
31687   ac_status=$?
31688   grep -v '^ *+' conftest.er1 >conftest.err
31689   rm -f conftest.er1
31690   cat conftest.err >&5
31691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692   (exit $ac_status); } &&
31693          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31694   { (case "(($ac_try" in
31695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696   *) ac_try_echo=$ac_try;;
31697 esac
31698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31699   (eval "$ac_try") 2>&5
31700   ac_status=$?
31701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702   (exit $ac_status); }; } &&
31703          { ac_try='test -s conftest.$ac_objext'
31704   { (case "(($ac_try" in
31705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706   *) ac_try_echo=$ac_try;;
31707 esac
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709   (eval "$ac_try") 2>&5
31710   ac_status=$?
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); }; }; then
31713   ac_cv_cxx_have_std_ext_hash_set=yes
31714 else
31715   echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31717
31718         ac_cv_cxx_have_std_ext_hash_set=no
31719 fi
31720
31721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31722   ac_ext=c
31723 ac_cpp='$CPP $CPPFLAGS'
31724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31727
31728 fi
31729 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31730 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31731  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31732  then
31733
31734 cat >>confdefs.h <<\_ACEOF
31735 #define HAVE_STD_EXT_HASH_SET 1
31736 _ACEOF
31737
31738  else
31739
31740 cat >>confdefs.h <<\_ACEOF
31741 #define HAVE_STD_EXT_HASH_SET 0
31742 _ACEOF
31743
31744  fi
31745
31746  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31747 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31748 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31749   echo $ECHO_N "(cached) $ECHO_C" >&6
31750 else
31751
31752   ac_ext=cpp
31753 ac_cpp='$CXXCPP $CPPFLAGS'
31754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31757
31758   cat >conftest.$ac_ext <<_ACEOF
31759 /* confdefs.h.  */
31760 _ACEOF
31761 cat confdefs.h >>conftest.$ac_ext
31762 cat >>conftest.$ac_ext <<_ACEOF
31763 /* end confdefs.h.  */
31764 #include <ext/hash_set>
31765 #ifdef HAVE_NAMESPACES
31766 using namespace __gnu_cxx;
31767 #endif
31768 int
31769 main ()
31770 {
31771 hash_set<int> t;
31772   ;
31773   return 0;
31774 }
31775 _ACEOF
31776 rm -f conftest.$ac_objext
31777 if { (ac_try="$ac_compile"
31778 case "(($ac_try" in
31779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31780   *) ac_try_echo=$ac_try;;
31781 esac
31782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31783   (eval "$ac_compile") 2>conftest.er1
31784   ac_status=$?
31785   grep -v '^ *+' conftest.er1 >conftest.err
31786   rm -f conftest.er1
31787   cat conftest.err >&5
31788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789   (exit $ac_status); } &&
31790          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31791   { (case "(($ac_try" in
31792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793   *) ac_try_echo=$ac_try;;
31794 esac
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796   (eval "$ac_try") 2>&5
31797   ac_status=$?
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); }; } &&
31800          { ac_try='test -s conftest.$ac_objext'
31801   { (case "(($ac_try" in
31802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803   *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806   (eval "$ac_try") 2>&5
31807   ac_status=$?
31808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809   (exit $ac_status); }; }; then
31810   ac_cv_cxx_have_gnu_ext_hash_set=yes
31811 else
31812   echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31814
31815         ac_cv_cxx_have_gnu_ext_hash_set=no
31816 fi
31817
31818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31819   ac_ext=c
31820 ac_cpp='$CPP $CPPFLAGS'
31821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31824
31825 fi
31826 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31827 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31828  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31829  then
31830
31831 cat >>confdefs.h <<\_ACEOF
31832 #define HAVE_GNU_EXT_HASH_SET 1
31833 _ACEOF
31834
31835  else
31836
31837 cat >>confdefs.h <<\_ACEOF
31838 #define HAVE_GNU_EXT_HASH_SET 0
31839 _ACEOF
31840
31841  fi
31842
31843  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31844 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31845 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31846   echo $ECHO_N "(cached) $ECHO_C" >&6
31847 else
31848
31849   ac_ext=cpp
31850 ac_cpp='$CXXCPP $CPPFLAGS'
31851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31854
31855   cat >conftest.$ac_ext <<_ACEOF
31856 /* confdefs.h.  */
31857 _ACEOF
31858 cat confdefs.h >>conftest.$ac_ext
31859 cat >>conftest.$ac_ext <<_ACEOF
31860 /* end confdefs.h.  */
31861 #include <hash_set>
31862 int
31863 main ()
31864 {
31865 hash_set<int> t; return 0;
31866   ;
31867   return 0;
31868 }
31869 _ACEOF
31870 rm -f conftest.$ac_objext
31871 if { (ac_try="$ac_compile"
31872 case "(($ac_try" in
31873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874   *) ac_try_echo=$ac_try;;
31875 esac
31876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31877   (eval "$ac_compile") 2>conftest.er1
31878   ac_status=$?
31879   grep -v '^ *+' conftest.er1 >conftest.err
31880   rm -f conftest.er1
31881   cat conftest.err >&5
31882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883   (exit $ac_status); } &&
31884          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31885   { (case "(($ac_try" in
31886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887   *) ac_try_echo=$ac_try;;
31888 esac
31889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890   (eval "$ac_try") 2>&5
31891   ac_status=$?
31892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); }; } &&
31894          { ac_try='test -s conftest.$ac_objext'
31895   { (case "(($ac_try" in
31896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897   *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900   (eval "$ac_try") 2>&5
31901   ac_status=$?
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); }; }; then
31904   ac_cv_cxx_have_global_hash_set=yes
31905 else
31906   echo "$as_me: failed program was:" >&5
31907 sed 's/^/| /' conftest.$ac_ext >&5
31908
31909         ac_cv_cxx_have_global_hash_set=no
31910 fi
31911
31912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31913   ac_ext=c
31914 ac_cpp='$CPP $CPPFLAGS'
31915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31918
31919 fi
31920 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31921 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31922  if test "$ac_cv_cxx_have_global_hash_set" = yes
31923  then
31924
31925 cat >>confdefs.h <<\_ACEOF
31926 #define HAVE_GLOBAL_HASH_SET 1
31927 _ACEOF
31928
31929  else
31930
31931 cat >>confdefs.h <<\_ACEOF
31932 #define HAVE_GLOBAL_HASH_SET 0
31933 _ACEOF
31934
31935  fi
31936
31937 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31938 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31939 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31940   echo $ECHO_N "(cached) $ECHO_C" >&6
31941 else
31942
31943   ac_ext=cpp
31944 ac_cpp='$CXXCPP $CPPFLAGS'
31945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31948
31949   cat >conftest.$ac_ext <<_ACEOF
31950 /* confdefs.h.  */
31951 _ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h.  */
31955 #include <iterator>
31956 #ifdef HAVE_NAMESPACES
31957 using namespace std;
31958 #endif
31959 int
31960 main ()
31961 {
31962 iterator<int,int,int> t; return 0;
31963   ;
31964   return 0;
31965 }
31966 _ACEOF
31967 rm -f conftest.$ac_objext
31968 if { (ac_try="$ac_compile"
31969 case "(($ac_try" in
31970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971   *) ac_try_echo=$ac_try;;
31972 esac
31973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974   (eval "$ac_compile") 2>conftest.er1
31975   ac_status=$?
31976   grep -v '^ *+' conftest.er1 >conftest.err
31977   rm -f conftest.er1
31978   cat conftest.err >&5
31979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980   (exit $ac_status); } &&
31981          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31982   { (case "(($ac_try" in
31983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984   *) ac_try_echo=$ac_try;;
31985 esac
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987   (eval "$ac_try") 2>&5
31988   ac_status=$?
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); }; } &&
31991          { ac_try='test -s conftest.$ac_objext'
31992   { (case "(($ac_try" in
31993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994   *) ac_try_echo=$ac_try;;
31995 esac
31996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997   (eval "$ac_try") 2>&5
31998   ac_status=$?
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); }; }; then
32001   ac_cv_cxx_have_std_iterator=yes
32002 else
32003   echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32005
32006         ac_cv_cxx_have_std_iterator=no
32007 fi
32008
32009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32010   ac_ext=c
32011 ac_cpp='$CPP $CPPFLAGS'
32012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32015
32016
32017 fi
32018 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32019 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32020 if test "$ac_cv_cxx_have_std_iterator" = yes
32021 then
32022
32023 cat >>confdefs.h <<\_ACEOF
32024 #define HAVE_STD_ITERATOR 1
32025 _ACEOF
32026
32027 else
32028
32029 cat >>confdefs.h <<\_ACEOF
32030 #define HAVE_STD_ITERATOR 0
32031 _ACEOF
32032
32033 fi
32034
32035 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32036 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32037 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32038   echo $ECHO_N "(cached) $ECHO_C" >&6
32039 else
32040
32041   ac_ext=cpp
32042 ac_cpp='$CXXCPP $CPPFLAGS'
32043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32046
32047   cat >conftest.$ac_ext <<_ACEOF
32048 /* confdefs.h.  */
32049 _ACEOF
32050 cat confdefs.h >>conftest.$ac_ext
32051 cat >>conftest.$ac_ext <<_ACEOF
32052 /* end confdefs.h.  */
32053 #include <iterator>
32054 #ifdef HAVE_NAMESPACES
32055 using namespace std;
32056 #endif
32057 int
32058 main ()
32059 {
32060 bidirectional_iterator<int,int> t; return 0;
32061   ;
32062   return 0;
32063 }
32064 _ACEOF
32065 rm -f conftest.$ac_objext
32066 if { (ac_try="$ac_compile"
32067 case "(($ac_try" in
32068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32069   *) ac_try_echo=$ac_try;;
32070 esac
32071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32072   (eval "$ac_compile") 2>conftest.er1
32073   ac_status=$?
32074   grep -v '^ *+' conftest.er1 >conftest.err
32075   rm -f conftest.er1
32076   cat conftest.err >&5
32077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078   (exit $ac_status); } &&
32079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32080   { (case "(($ac_try" in
32081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082   *) ac_try_echo=$ac_try;;
32083 esac
32084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085   (eval "$ac_try") 2>&5
32086   ac_status=$?
32087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088   (exit $ac_status); }; } &&
32089          { ac_try='test -s conftest.$ac_objext'
32090   { (case "(($ac_try" in
32091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092   *) ac_try_echo=$ac_try;;
32093 esac
32094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095   (eval "$ac_try") 2>&5
32096   ac_status=$?
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); }; }; then
32099   ac_cv_cxx_have_bi_iterator=yes
32100 else
32101   echo "$as_me: failed program was:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32103
32104         ac_cv_cxx_have_bi_iterator=no
32105 fi
32106
32107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32108   ac_ext=c
32109 ac_cpp='$CPP $CPPFLAGS'
32110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32113
32114
32115 fi
32116 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32117 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32118 if test "$ac_cv_cxx_have_bi_iterator" = yes
32119 then
32120
32121 cat >>confdefs.h <<\_ACEOF
32122 #define HAVE_BI_ITERATOR 1
32123 _ACEOF
32124
32125 else
32126
32127 cat >>confdefs.h <<\_ACEOF
32128 #define HAVE_BI_ITERATOR 0
32129 _ACEOF
32130
32131 fi
32132
32133 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32134 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32135 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32136   echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32138
32139   ac_ext=cpp
32140 ac_cpp='$CXXCPP $CPPFLAGS'
32141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32144
32145   cat >conftest.$ac_ext <<_ACEOF
32146 /* confdefs.h.  */
32147 _ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h.  */
32151 #include <iterator>
32152 #ifdef HAVE_NAMESPACES
32153 using namespace std;
32154 #endif
32155 int
32156 main ()
32157 {
32158 forward_iterator<int,int> t; return 0;
32159   ;
32160   return 0;
32161 }
32162 _ACEOF
32163 rm -f conftest.$ac_objext
32164 if { (ac_try="$ac_compile"
32165 case "(($ac_try" in
32166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167   *) ac_try_echo=$ac_try;;
32168 esac
32169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170   (eval "$ac_compile") 2>conftest.er1
32171   ac_status=$?
32172   grep -v '^ *+' conftest.er1 >conftest.err
32173   rm -f conftest.er1
32174   cat conftest.err >&5
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); } &&
32177          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32178   { (case "(($ac_try" in
32179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32180   *) ac_try_echo=$ac_try;;
32181 esac
32182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32183   (eval "$ac_try") 2>&5
32184   ac_status=$?
32185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186   (exit $ac_status); }; } &&
32187          { ac_try='test -s conftest.$ac_objext'
32188   { (case "(($ac_try" in
32189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190   *) ac_try_echo=$ac_try;;
32191 esac
32192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193   (eval "$ac_try") 2>&5
32194   ac_status=$?
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); }; }; then
32197   ac_cv_cxx_have_fwd_iterator=yes
32198 else
32199   echo "$as_me: failed program was:" >&5
32200 sed 's/^/| /' conftest.$ac_ext >&5
32201
32202         ac_cv_cxx_have_fwd_iterator=no
32203 fi
32204
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206   ac_ext=c
32207 ac_cpp='$CPP $CPPFLAGS'
32208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32211
32212
32213 fi
32214 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32215 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32216 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32217 then
32218
32219 cat >>confdefs.h <<\_ACEOF
32220 #define HAVE_FWD_ITERATOR 1
32221 _ACEOF
32222
32223 else
32224
32225 cat >>confdefs.h <<\_ACEOF
32226 #define HAVE_FWD_ITERATOR 0
32227 _ACEOF
32228
32229 fi
32230
32231
32232 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32233 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32234 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32235   echo $ECHO_N "(cached) $ECHO_C" >&6
32236 else
32237   ac_ext=cpp
32238 ac_cpp='$CXXCPP $CPPFLAGS'
32239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32242
32243    cat >conftest.$ac_ext <<_ACEOF
32244 /* confdefs.h.  */
32245 _ACEOF
32246 cat confdefs.h >>conftest.$ac_ext
32247 cat >>conftest.$ac_ext <<_ACEOF
32248 /* end confdefs.h.  */
32249 #include <math.h>
32250 int
32251 main ()
32252 {
32253 float f; isnan(f);
32254   ;
32255   return 0;
32256 }
32257 _ACEOF
32258 rm -f conftest.$ac_objext
32259 if { (ac_try="$ac_compile"
32260 case "(($ac_try" in
32261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262   *) ac_try_echo=$ac_try;;
32263 esac
32264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265   (eval "$ac_compile") 2>conftest.er1
32266   ac_status=$?
32267   grep -v '^ *+' conftest.er1 >conftest.err
32268   rm -f conftest.er1
32269   cat conftest.err >&5
32270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271   (exit $ac_status); } &&
32272          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32273   { (case "(($ac_try" in
32274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275   *) ac_try_echo=$ac_try;;
32276 esac
32277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278   (eval "$ac_try") 2>&5
32279   ac_status=$?
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); }; } &&
32282          { ac_try='test -s conftest.$ac_objext'
32283   { (case "(($ac_try" in
32284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285   *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288   (eval "$ac_try") 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292   ac_cv_func_isnan_in_math_h=yes
32293 else
32294   echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297         ac_cv_func_isnan_in_math_h=no
32298 fi
32299
32300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32301   ac_ext=c
32302 ac_cpp='$CPP $CPPFLAGS'
32303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32306
32307 fi
32308 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32309 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32310
32311
32312 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32313
32314 cat >>confdefs.h <<\_ACEOF
32315 #define HAVE_ISNAN_IN_MATH_H 1
32316 _ACEOF
32317
32318 fi
32319
32320 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32321 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32322 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32323   echo $ECHO_N "(cached) $ECHO_C" >&6
32324 else
32325   ac_ext=cpp
32326 ac_cpp='$CXXCPP $CPPFLAGS'
32327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32330
32331    cat >conftest.$ac_ext <<_ACEOF
32332 /* confdefs.h.  */
32333 _ACEOF
32334 cat confdefs.h >>conftest.$ac_ext
32335 cat >>conftest.$ac_ext <<_ACEOF
32336 /* end confdefs.h.  */
32337 #include <cmath>
32338 int
32339 main ()
32340 {
32341 float f; isnan(f);
32342   ;
32343   return 0;
32344 }
32345 _ACEOF
32346 rm -f conftest.$ac_objext
32347 if { (ac_try="$ac_compile"
32348 case "(($ac_try" in
32349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32350   *) ac_try_echo=$ac_try;;
32351 esac
32352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32353   (eval "$ac_compile") 2>conftest.er1
32354   ac_status=$?
32355   grep -v '^ *+' conftest.er1 >conftest.err
32356   rm -f conftest.er1
32357   cat conftest.err >&5
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); } &&
32360          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32361   { (case "(($ac_try" in
32362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363   *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366   (eval "$ac_try") 2>&5
32367   ac_status=$?
32368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369   (exit $ac_status); }; } &&
32370          { ac_try='test -s conftest.$ac_objext'
32371   { (case "(($ac_try" in
32372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373   *) ac_try_echo=$ac_try;;
32374 esac
32375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32376   (eval "$ac_try") 2>&5
32377   ac_status=$?
32378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379   (exit $ac_status); }; }; then
32380   ac_cv_func_isnan_in_cmath=yes
32381 else
32382   echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32384
32385         ac_cv_func_isnan_in_cmath=no
32386 fi
32387
32388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32389   ac_ext=c
32390 ac_cpp='$CPP $CPPFLAGS'
32391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32394
32395 fi
32396 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32397 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32398
32399 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32400
32401 cat >>confdefs.h <<\_ACEOF
32402 #define HAVE_ISNAN_IN_CMATH 1
32403 _ACEOF
32404
32405 fi
32406
32407 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32408 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32409 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32410   echo $ECHO_N "(cached) $ECHO_C" >&6
32411 else
32412   ac_ext=cpp
32413 ac_cpp='$CXXCPP $CPPFLAGS'
32414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32417
32418    cat >conftest.$ac_ext <<_ACEOF
32419 /* confdefs.h.  */
32420 _ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h.  */
32424 #include <cmath>
32425 int
32426 main ()
32427 {
32428 float f; std::isnan(f);
32429   ;
32430   return 0;
32431 }
32432 _ACEOF
32433 rm -f conftest.$ac_objext
32434 if { (ac_try="$ac_compile"
32435 case "(($ac_try" in
32436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32437   *) ac_try_echo=$ac_try;;
32438 esac
32439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32440   (eval "$ac_compile") 2>conftest.er1
32441   ac_status=$?
32442   grep -v '^ *+' conftest.er1 >conftest.err
32443   rm -f conftest.er1
32444   cat conftest.err >&5
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); } &&
32447          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32448   { (case "(($ac_try" in
32449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450   *) ac_try_echo=$ac_try;;
32451 esac
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453   (eval "$ac_try") 2>&5
32454   ac_status=$?
32455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456   (exit $ac_status); }; } &&
32457          { ac_try='test -s conftest.$ac_objext'
32458   { (case "(($ac_try" in
32459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460   *) ac_try_echo=$ac_try;;
32461 esac
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463   (eval "$ac_try") 2>&5
32464   ac_status=$?
32465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466   (exit $ac_status); }; }; then
32467   ac_cv_func_std_isnan_in_cmath=yes
32468 else
32469   echo "$as_me: failed program was:" >&5
32470 sed 's/^/| /' conftest.$ac_ext >&5
32471
32472         ac_cv_func_std_isnan_in_cmath=no
32473 fi
32474
32475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32476   ac_ext=c
32477 ac_cpp='$CPP $CPPFLAGS'
32478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32481
32482 fi
32483 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32484 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32485
32486 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32487
32488 cat >>confdefs.h <<\_ACEOF
32489 #define HAVE_STD_ISNAN_IN_CMATH 1
32490 _ACEOF
32491
32492 fi
32493
32494
32495 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32496 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32497 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32498   echo $ECHO_N "(cached) $ECHO_C" >&6
32499 else
32500   ac_ext=cpp
32501 ac_cpp='$CXXCPP $CPPFLAGS'
32502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32505
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 #include <math.h>
32513 int
32514 main ()
32515 {
32516 float f; isinf(f);
32517   ;
32518   return 0;
32519 }
32520 _ACEOF
32521 rm -f conftest.$ac_objext
32522 if { (ac_try="$ac_compile"
32523 case "(($ac_try" in
32524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525   *) ac_try_echo=$ac_try;;
32526 esac
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528   (eval "$ac_compile") 2>conftest.er1
32529   ac_status=$?
32530   grep -v '^ *+' conftest.er1 >conftest.err
32531   rm -f conftest.er1
32532   cat conftest.err >&5
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); } &&
32535          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32536   { (case "(($ac_try" in
32537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538   *) ac_try_echo=$ac_try;;
32539 esac
32540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541   (eval "$ac_try") 2>&5
32542   ac_status=$?
32543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544   (exit $ac_status); }; } &&
32545          { ac_try='test -s conftest.$ac_objext'
32546   { (case "(($ac_try" in
32547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32548   *) ac_try_echo=$ac_try;;
32549 esac
32550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32551   (eval "$ac_try") 2>&5
32552   ac_status=$?
32553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554   (exit $ac_status); }; }; then
32555   ac_cv_func_isinf_in_math_h=yes
32556 else
32557   echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560         ac_cv_func_isinf_in_math_h=no
32561 fi
32562
32563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32564   ac_ext=c
32565 ac_cpp='$CPP $CPPFLAGS'
32566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32569
32570 fi
32571 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32572 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32573
32574 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32575
32576 cat >>confdefs.h <<\_ACEOF
32577 #define HAVE_ISINF_IN_MATH_H 1
32578 _ACEOF
32579
32580 fi
32581
32582 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32583 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32584 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587   ac_ext=cpp
32588 ac_cpp='$CXXCPP $CPPFLAGS'
32589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592
32593    cat >conftest.$ac_ext <<_ACEOF
32594 /* confdefs.h.  */
32595 _ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h.  */
32599 #include <cmath>
32600 int
32601 main ()
32602 {
32603 float f; isinf(f);
32604   ;
32605   return 0;
32606 }
32607 _ACEOF
32608 rm -f conftest.$ac_objext
32609 if { (ac_try="$ac_compile"
32610 case "(($ac_try" in
32611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612   *) ac_try_echo=$ac_try;;
32613 esac
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615   (eval "$ac_compile") 2>conftest.er1
32616   ac_status=$?
32617   grep -v '^ *+' conftest.er1 >conftest.err
32618   rm -f conftest.er1
32619   cat conftest.err >&5
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); } &&
32622          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32623   { (case "(($ac_try" in
32624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625   *) ac_try_echo=$ac_try;;
32626 esac
32627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32628   (eval "$ac_try") 2>&5
32629   ac_status=$?
32630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631   (exit $ac_status); }; } &&
32632          { ac_try='test -s conftest.$ac_objext'
32633   { (case "(($ac_try" in
32634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635   *) ac_try_echo=$ac_try;;
32636 esac
32637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638   (eval "$ac_try") 2>&5
32639   ac_status=$?
32640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641   (exit $ac_status); }; }; then
32642   ac_cv_func_isinf_in_cmath=yes
32643 else
32644   echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32646
32647         ac_cv_func_isinf_in_cmath=no
32648 fi
32649
32650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32651   ac_ext=c
32652 ac_cpp='$CPP $CPPFLAGS'
32653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32656
32657 fi
32658 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32659 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32660
32661 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32662
32663 cat >>confdefs.h <<\_ACEOF
32664 #define HAVE_ISINF_IN_CMATH 1
32665 _ACEOF
32666
32667 fi
32668
32669 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32670 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32671 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32672   echo $ECHO_N "(cached) $ECHO_C" >&6
32673 else
32674   ac_ext=cpp
32675 ac_cpp='$CXXCPP $CPPFLAGS'
32676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32679
32680    cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686 #include <cmath>
32687 int
32688 main ()
32689 {
32690 float f; std::isinf(f)}
32691   ;
32692   return 0;
32693 }
32694 _ACEOF
32695 rm -f conftest.$ac_objext
32696 if { (ac_try="$ac_compile"
32697 case "(($ac_try" in
32698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699   *) ac_try_echo=$ac_try;;
32700 esac
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702   (eval "$ac_compile") 2>conftest.er1
32703   ac_status=$?
32704   grep -v '^ *+' conftest.er1 >conftest.err
32705   rm -f conftest.er1
32706   cat conftest.err >&5
32707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708   (exit $ac_status); } &&
32709          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32710   { (case "(($ac_try" in
32711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712   *) ac_try_echo=$ac_try;;
32713 esac
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715   (eval "$ac_try") 2>&5
32716   ac_status=$?
32717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718   (exit $ac_status); }; } &&
32719          { ac_try='test -s conftest.$ac_objext'
32720   { (case "(($ac_try" in
32721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722   *) ac_try_echo=$ac_try;;
32723 esac
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725   (eval "$ac_try") 2>&5
32726   ac_status=$?
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); }; }; then
32729   ac_cv_func_std_isinf_in_cmath=yes
32730 else
32731   echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733
32734         ac_cv_func_std_isinf_in_cmath=no
32735 fi
32736
32737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32738   ac_ext=c
32739 ac_cpp='$CPP $CPPFLAGS'
32740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32743
32744 fi
32745 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32746 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32747
32748 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32749
32750 cat >>confdefs.h <<\_ACEOF
32751 #define HAVE_STD_ISINF_IN_CMATH 1
32752 _ACEOF
32753
32754 fi
32755
32756 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32757 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32758 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32759   echo $ECHO_N "(cached) $ECHO_C" >&6
32760 else
32761   ac_ext=cpp
32762 ac_cpp='$CXXCPP $CPPFLAGS'
32763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32766
32767    cat >conftest.$ac_ext <<_ACEOF
32768 /* confdefs.h.  */
32769 _ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h.  */
32773 #include <ieeefp.h>
32774 int
32775 main ()
32776 {
32777 float f; finite(f);
32778   ;
32779   return 0;
32780 }
32781 _ACEOF
32782 rm -f conftest.$ac_objext
32783 if { (ac_try="$ac_compile"
32784 case "(($ac_try" in
32785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786   *) ac_try_echo=$ac_try;;
32787 esac
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789   (eval "$ac_compile") 2>conftest.er1
32790   ac_status=$?
32791   grep -v '^ *+' conftest.er1 >conftest.err
32792   rm -f conftest.er1
32793   cat conftest.err >&5
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); } &&
32796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32797   { (case "(($ac_try" in
32798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799   *) ac_try_echo=$ac_try;;
32800 esac
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802   (eval "$ac_try") 2>&5
32803   ac_status=$?
32804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805   (exit $ac_status); }; } &&
32806          { ac_try='test -s conftest.$ac_objext'
32807   { (case "(($ac_try" in
32808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809   *) ac_try_echo=$ac_try;;
32810 esac
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812   (eval "$ac_try") 2>&5
32813   ac_status=$?
32814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815   (exit $ac_status); }; }; then
32816   ac_cv_func_finite_in_ieeefp_h=yes
32817 else
32818   echo "$as_me: failed program was:" >&5
32819 sed 's/^/| /' conftest.$ac_ext >&5
32820
32821         ac_cv_func_finite_in_ieeefp_h=no
32822 fi
32823
32824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32825   ac_ext=c
32826 ac_cpp='$CPP $CPPFLAGS'
32827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32830
32831 fi
32832 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32833 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32834
32835 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32836
32837 cat >>confdefs.h <<\_ACEOF
32838 #define HAVE_FINITE_IN_IEEEFP_H 1
32839 _ACEOF
32840
32841 fi
32842
32843
32844
32845 if test "$llvm_cv_platform_type" = "Unix" ; then
32846
32847
32848 for ac_header in stdlib.h unistd.h
32849 do
32850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32852   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32855   echo $ECHO_N "(cached) $ECHO_C" >&6
32856 fi
32857 ac_res=`eval echo '${'$as_ac_Header'}'`
32858                { echo "$as_me:$LINENO: result: $ac_res" >&5
32859 echo "${ECHO_T}$ac_res" >&6; }
32860 else
32861   # Is the header compilable?
32862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32864 cat >conftest.$ac_ext <<_ACEOF
32865 /* confdefs.h.  */
32866 _ACEOF
32867 cat confdefs.h >>conftest.$ac_ext
32868 cat >>conftest.$ac_ext <<_ACEOF
32869 /* end confdefs.h.  */
32870 $ac_includes_default
32871 #include <$ac_header>
32872 _ACEOF
32873 rm -f conftest.$ac_objext
32874 if { (ac_try="$ac_compile"
32875 case "(($ac_try" in
32876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877   *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880   (eval "$ac_compile") 2>conftest.er1
32881   ac_status=$?
32882   grep -v '^ *+' conftest.er1 >conftest.err
32883   rm -f conftest.er1
32884   cat conftest.err >&5
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); } &&
32887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32888   { (case "(($ac_try" in
32889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890   *) ac_try_echo=$ac_try;;
32891 esac
32892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893   (eval "$ac_try") 2>&5
32894   ac_status=$?
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); }; } &&
32897          { ac_try='test -s conftest.$ac_objext'
32898   { (case "(($ac_try" in
32899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900   *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903   (eval "$ac_try") 2>&5
32904   ac_status=$?
32905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906   (exit $ac_status); }; }; then
32907   ac_header_compiler=yes
32908 else
32909   echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32911
32912         ac_header_compiler=no
32913 fi
32914
32915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32917 echo "${ECHO_T}$ac_header_compiler" >&6; }
32918
32919 # Is the header present?
32920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32922 cat >conftest.$ac_ext <<_ACEOF
32923 /* confdefs.h.  */
32924 _ACEOF
32925 cat confdefs.h >>conftest.$ac_ext
32926 cat >>conftest.$ac_ext <<_ACEOF
32927 /* end confdefs.h.  */
32928 #include <$ac_header>
32929 _ACEOF
32930 if { (ac_try="$ac_cpp conftest.$ac_ext"
32931 case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32937   ac_status=$?
32938   grep -v '^ *+' conftest.er1 >conftest.err
32939   rm -f conftest.er1
32940   cat conftest.err >&5
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); } >/dev/null; then
32943   if test -s conftest.err; then
32944     ac_cpp_err=$ac_c_preproc_warn_flag
32945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32946   else
32947     ac_cpp_err=
32948   fi
32949 else
32950   ac_cpp_err=yes
32951 fi
32952 if test -z "$ac_cpp_err"; then
32953   ac_header_preproc=yes
32954 else
32955   echo "$as_me: failed program was:" >&5
32956 sed 's/^/| /' conftest.$ac_ext >&5
32957
32958   ac_header_preproc=no
32959 fi
32960
32961 rm -f conftest.err conftest.$ac_ext
32962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32963 echo "${ECHO_T}$ac_header_preproc" >&6; }
32964
32965 # So?  What about this header?
32966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32967   yes:no: )
32968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32972     ac_header_preproc=yes
32973     ;;
32974   no:yes:* )
32975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32987     ( cat <<\_ASBOX
32988 ## ----------------------------------- ##
32989 ## Report this to llvmbugs@cs.uiuc.edu ##
32990 ## ----------------------------------- ##
32991 _ASBOX
32992      ) | sed "s/^/$as_me: WARNING:     /" >&2
32993     ;;
32994 esac
32995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32998   echo $ECHO_N "(cached) $ECHO_C" >&6
32999 else
33000   eval "$as_ac_Header=\$ac_header_preproc"
33001 fi
33002 ac_res=`eval echo '${'$as_ac_Header'}'`
33003                { echo "$as_me:$LINENO: result: $ac_res" >&5
33004 echo "${ECHO_T}$ac_res" >&6; }
33005
33006 fi
33007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33008   cat >>confdefs.h <<_ACEOF
33009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33010 _ACEOF
33011
33012 fi
33013
33014 done
33015
33016
33017 for ac_func in getpagesize
33018 do
33019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33023   echo $ECHO_N "(cached) $ECHO_C" >&6
33024 else
33025   cat >conftest.$ac_ext <<_ACEOF
33026 /* confdefs.h.  */
33027 _ACEOF
33028 cat confdefs.h >>conftest.$ac_ext
33029 cat >>conftest.$ac_ext <<_ACEOF
33030 /* end confdefs.h.  */
33031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33033 #define $ac_func innocuous_$ac_func
33034
33035 /* System header to define __stub macros and hopefully few prototypes,
33036     which can conflict with char $ac_func (); below.
33037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33038     <limits.h> exists even on freestanding compilers.  */
33039
33040 #ifdef __STDC__
33041 # include <limits.h>
33042 #else
33043 # include <assert.h>
33044 #endif
33045
33046 #undef $ac_func
33047
33048 /* Override any GCC internal prototype to avoid an error.
33049    Use char because int might match the return type of a GCC
33050    builtin and then its argument prototype would still apply.  */
33051 #ifdef __cplusplus
33052 extern "C"
33053 #endif
33054 char $ac_func ();
33055 /* The GNU C library defines this for functions which it implements
33056     to always fail with ENOSYS.  Some functions are actually named
33057     something starting with __ and the normal name is an alias.  */
33058 #if defined __stub_$ac_func || defined __stub___$ac_func
33059 choke me
33060 #endif
33061
33062 int
33063 main ()
33064 {
33065 return $ac_func ();
33066   ;
33067   return 0;
33068 }
33069 _ACEOF
33070 rm -f conftest.$ac_objext conftest$ac_exeext
33071 if { (ac_try="$ac_link"
33072 case "(($ac_try" in
33073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074   *) ac_try_echo=$ac_try;;
33075 esac
33076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077   (eval "$ac_link") 2>conftest.er1
33078   ac_status=$?
33079   grep -v '^ *+' conftest.er1 >conftest.err
33080   rm -f conftest.er1
33081   cat conftest.err >&5
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); } &&
33084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33085   { (case "(($ac_try" in
33086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33087   *) ac_try_echo=$ac_try;;
33088 esac
33089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33090   (eval "$ac_try") 2>&5
33091   ac_status=$?
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); }; } &&
33094          { ac_try='test -s conftest$ac_exeext'
33095   { (case "(($ac_try" in
33096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097   *) ac_try_echo=$ac_try;;
33098 esac
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100   (eval "$ac_try") 2>&5
33101   ac_status=$?
33102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103   (exit $ac_status); }; }; then
33104   eval "$as_ac_var=yes"
33105 else
33106   echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33108
33109         eval "$as_ac_var=no"
33110 fi
33111
33112 rm -f core conftest.err conftest.$ac_objext \
33113       conftest$ac_exeext conftest.$ac_ext
33114 fi
33115 ac_res=`eval echo '${'$as_ac_var'}'`
33116                { echo "$as_me:$LINENO: result: $ac_res" >&5
33117 echo "${ECHO_T}$ac_res" >&6; }
33118 if test `eval echo '${'$as_ac_var'}'` = yes; then
33119   cat >>confdefs.h <<_ACEOF
33120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33121 _ACEOF
33122
33123 fi
33124 done
33125
33126 { echo "$as_me:$LINENO: checking for working mmap" >&5
33127 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33128 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33129   echo $ECHO_N "(cached) $ECHO_C" >&6
33130 else
33131   if test "$cross_compiling" = yes; then
33132   ac_cv_func_mmap_fixed_mapped=no
33133 else
33134   cat >conftest.$ac_ext <<_ACEOF
33135 /* confdefs.h.  */
33136 _ACEOF
33137 cat confdefs.h >>conftest.$ac_ext
33138 cat >>conftest.$ac_ext <<_ACEOF
33139 /* end confdefs.h.  */
33140 $ac_includes_default
33141 /* malloc might have been renamed as rpl_malloc. */
33142 #undef malloc
33143
33144 /* Thanks to Mike Haertel and Jim Avera for this test.
33145    Here is a matrix of mmap possibilities:
33146         mmap private not fixed
33147         mmap private fixed at somewhere currently unmapped
33148         mmap private fixed at somewhere already mapped
33149         mmap shared not fixed
33150         mmap shared fixed at somewhere currently unmapped
33151         mmap shared fixed at somewhere already mapped
33152    For private mappings, we should verify that changes cannot be read()
33153    back from the file, nor mmap's back from the file at a different
33154    address.  (There have been systems where private was not correctly
33155    implemented like the infamous i386 svr4.0, and systems where the
33156    VM page cache was not coherent with the file system buffer cache
33157    like early versions of FreeBSD and possibly contemporary NetBSD.)
33158    For shared mappings, we should conversely verify that changes get
33159    propagated back to all the places they're supposed to be.
33160
33161    Grep wants private fixed already mapped.
33162    The main things grep needs to know about mmap are:
33163    * does it exist and is it safe to write into the mmap'd area
33164    * how to use it (BSD variants)  */
33165
33166 #include <fcntl.h>
33167 #include <sys/mman.h>
33168
33169 #if !STDC_HEADERS && !HAVE_STDLIB_H
33170 char *malloc ();
33171 #endif
33172
33173 /* This mess was copied from the GNU getpagesize.h.  */
33174 #if !HAVE_GETPAGESIZE
33175 /* Assume that all systems that can run configure have sys/param.h.  */
33176 # if !HAVE_SYS_PARAM_H
33177 #  define HAVE_SYS_PARAM_H 1
33178 # endif
33179
33180 # ifdef _SC_PAGESIZE
33181 #  define getpagesize() sysconf(_SC_PAGESIZE)
33182 # else /* no _SC_PAGESIZE */
33183 #  if HAVE_SYS_PARAM_H
33184 #   include <sys/param.h>
33185 #   ifdef EXEC_PAGESIZE
33186 #    define getpagesize() EXEC_PAGESIZE
33187 #   else /* no EXEC_PAGESIZE */
33188 #    ifdef NBPG
33189 #     define getpagesize() NBPG * CLSIZE
33190 #     ifndef CLSIZE
33191 #      define CLSIZE 1
33192 #     endif /* no CLSIZE */
33193 #    else /* no NBPG */
33194 #     ifdef NBPC
33195 #      define getpagesize() NBPC
33196 #     else /* no NBPC */
33197 #      ifdef PAGESIZE
33198 #       define getpagesize() PAGESIZE
33199 #      endif /* PAGESIZE */
33200 #     endif /* no NBPC */
33201 #    endif /* no NBPG */
33202 #   endif /* no EXEC_PAGESIZE */
33203 #  else /* no HAVE_SYS_PARAM_H */
33204 #   define getpagesize() 8192   /* punt totally */
33205 #  endif /* no HAVE_SYS_PARAM_H */
33206 # endif /* no _SC_PAGESIZE */
33207
33208 #endif /* no HAVE_GETPAGESIZE */
33209
33210 int
33211 main ()
33212 {
33213   char *data, *data2, *data3;
33214   int i, pagesize;
33215   int fd;
33216
33217   pagesize = getpagesize ();
33218
33219   /* First, make a file with some known garbage in it. */
33220   data = (char *) malloc (pagesize);
33221   if (!data)
33222     return 1;
33223   for (i = 0; i < pagesize; ++i)
33224     *(data + i) = rand ();
33225   umask (0);
33226   fd = creat ("conftest.mmap", 0600);
33227   if (fd < 0)
33228     return 1;
33229   if (write (fd, data, pagesize) != pagesize)
33230     return 1;
33231   close (fd);
33232
33233   /* Next, try to mmap the file at a fixed address which already has
33234      something else allocated at it.  If we can, also make sure that
33235      we see the same garbage.  */
33236   fd = open ("conftest.mmap", O_RDWR);
33237   if (fd < 0)
33238     return 1;
33239   data2 = (char *) malloc (2 * pagesize);
33240   if (!data2)
33241     return 1;
33242   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33243   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33244                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33245     return 1;
33246   for (i = 0; i < pagesize; ++i)
33247     if (*(data + i) != *(data2 + i))
33248       return 1;
33249
33250   /* Finally, make sure that changes to the mapped area do not
33251      percolate back to the file as seen by read().  (This is a bug on
33252      some variants of i386 svr4.0.)  */
33253   for (i = 0; i < pagesize; ++i)
33254     *(data2 + i) = *(data2 + i) + 1;
33255   data3 = (char *) malloc (pagesize);
33256   if (!data3)
33257     return 1;
33258   if (read (fd, data3, pagesize) != pagesize)
33259     return 1;
33260   for (i = 0; i < pagesize; ++i)
33261     if (*(data + i) != *(data3 + i))
33262       return 1;
33263   close (fd);
33264   return 0;
33265 }
33266 _ACEOF
33267 rm -f conftest$ac_exeext
33268 if { (ac_try="$ac_link"
33269 case "(($ac_try" in
33270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271   *) ac_try_echo=$ac_try;;
33272 esac
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274   (eval "$ac_link") 2>&5
33275   ac_status=$?
33276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33278   { (case "(($ac_try" in
33279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280   *) ac_try_echo=$ac_try;;
33281 esac
33282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283   (eval "$ac_try") 2>&5
33284   ac_status=$?
33285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286   (exit $ac_status); }; }; then
33287   ac_cv_func_mmap_fixed_mapped=yes
33288 else
33289   echo "$as_me: program exited with status $ac_status" >&5
33290 echo "$as_me: failed program was:" >&5
33291 sed 's/^/| /' conftest.$ac_ext >&5
33292
33293 ( exit $ac_status )
33294 ac_cv_func_mmap_fixed_mapped=no
33295 fi
33296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33297 fi
33298
33299
33300 fi
33301 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33302 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33303 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33304
33305 cat >>confdefs.h <<\_ACEOF
33306 #define HAVE_MMAP 1
33307 _ACEOF
33308
33309 fi
33310 rm -f conftest.mmap
33311
33312   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33313 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33314 if test "${ac_cv_func_mmap_file+set}" = set; then
33315   echo $ECHO_N "(cached) $ECHO_C" >&6
33316 else
33317    ac_ext=c
33318 ac_cpp='$CPP $CPPFLAGS'
33319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33322
33323   if test "$cross_compiling" = yes; then
33324   ac_cv_func_mmap_file=no
33325 else
33326   cat >conftest.$ac_ext <<_ACEOF
33327
33328     /* confdefs.h.  */
33329 _ACEOF
33330 cat confdefs.h >>conftest.$ac_ext
33331 cat >>conftest.$ac_ext <<_ACEOF
33332 /* end confdefs.h.  */
33333
33334 #include <sys/types.h>
33335 #include <sys/mman.h>
33336 #include <fcntl.h>
33337
33338 int
33339 main ()
33340 {
33341
33342   int fd;
33343   fd = creat ("foo",0777);
33344   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33345   unlink ("foo");
33346   return (fd != (int) MAP_FAILED);
33347   ;
33348   return 0;
33349 }
33350 _ACEOF
33351 rm -f conftest$ac_exeext
33352 if { (ac_try="$ac_link"
33353 case "(($ac_try" in
33354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355   *) ac_try_echo=$ac_try;;
33356 esac
33357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358   (eval "$ac_link") 2>&5
33359   ac_status=$?
33360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_mmap_file=yes
33372 else
33373   echo "$as_me: program exited with status $ac_status" >&5
33374 echo "$as_me: failed program was:" >&5
33375 sed 's/^/| /' conftest.$ac_ext >&5
33376
33377 ( exit $ac_status )
33378 ac_cv_func_mmap_file=no
33379 fi
33380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33381 fi
33382
33383
33384   ac_ext=c
33385 ac_cpp='$CPP $CPPFLAGS'
33386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33389
33390
33391 fi
33392 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33393 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33394 if test "$ac_cv_func_mmap_file" = yes; then
33395
33396 cat >>confdefs.h <<\_ACEOF
33397 #define HAVE_MMAP_FILE
33398 _ACEOF
33399
33400    MMAP_FILE=yes
33401
33402 fi
33403
33404   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33405 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33406 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33407   echo $ECHO_N "(cached) $ECHO_C" >&6
33408 else
33409   if test "$llvm_cv_os_type" = "Interix" ; then
33410    ac_cv_need_dev_zero_for_mmap=yes
33411  else
33412    ac_cv_need_dev_zero_for_mmap=no
33413  fi
33414
33415 fi
33416 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33417 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33418 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33419
33420 cat >>confdefs.h <<\_ACEOF
33421 #define NEED_DEV_ZERO_FOR_MMAP 1
33422 _ACEOF
33423
33424 fi
33425
33426   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33427   then
33428     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33429 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33430   fi
33431   if test "$ac_cv_func_mmap_file" = "no"
33432   then
33433     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33434 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33435   fi
33436 fi
33437
33438
33439 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33440 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33441 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33442   echo $ECHO_N "(cached) $ECHO_C" >&6
33443 else
33444   llvm_cv_llvmgcc_sanity="no"
33445 if test -x "$LLVMGCC" ; then
33446   cp /dev/null conftest.c
33447   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33448       grep 'target datalayout =' > /dev/null 2>&1
33449   if test $? -eq 0 ; then
33450     llvm_cv_llvmgcc_sanity="yes"
33451   fi
33452   rm conftest.c
33453 fi
33454 fi
33455 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33456 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33457
33458 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33459   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33460 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33461   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33462   LLVMCC1=$llvmcc1path
33463
33464   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33465   LLVMCC1PLUS=$llvmcc1pluspath
33466
33467   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33468   LLVMGCCDIR=$llvmgccdir
33469
33470   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33471   LLVMGCCLIBEXEC=$llvmgcclibexec
33472
33473   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33474   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33475   LLVMGCC_VERSION=$llvmgccversion
33476
33477   LLVMGCC_MAJVERS=$llvmgccmajvers
33478
33479   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33480   LLVMGCC_LANGS=$llvmgcclangs
33481
33482   { echo "$as_me:$LINENO: result: ok" >&5
33483 echo "${ECHO_T}ok" >&6; }
33484 fi
33485
33486 SHLIBEXT=$libltdl_cv_shlibext
33487
33488
33489 # Translate the various configuration directories and other basic
33490 # information into substitutions that will end up in Makefile.config.in
33491 # that these configured values can be used by the makefiles
33492 if test "${prefix}" = "NONE" ; then
33493   prefix="/usr/local"
33494 fi
33495 eval LLVM_PREFIX="${prefix}";
33496 eval LLVM_BINDIR="${prefix}/bin";
33497 eval LLVM_LIBDIR="${prefix}/lib";
33498 eval LLVM_DATADIR="${prefix}/share/llvm";
33499 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33500 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33501 eval LLVM_INCLUDEDIR="${prefix}/include";
33502 eval LLVM_INFODIR="${prefix}/info";
33503 eval LLVM_MANDIR="${prefix}/man";
33504 LLVM_CONFIGTIME=`date`
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516 # Place the various directores into the config.h file as #defines so that we
33517 # can know about the installation paths within LLVM.
33518
33519 cat >>confdefs.h <<_ACEOF
33520 #define LLVM_PREFIX "$LLVM_PREFIX"
33521 _ACEOF
33522
33523
33524 cat >>confdefs.h <<_ACEOF
33525 #define LLVM_BINDIR "$LLVM_BINDIR"
33526 _ACEOF
33527
33528
33529 cat >>confdefs.h <<_ACEOF
33530 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33531 _ACEOF
33532
33533
33534 cat >>confdefs.h <<_ACEOF
33535 #define LLVM_DATADIR "$LLVM_DATADIR"
33536 _ACEOF
33537
33538
33539 cat >>confdefs.h <<_ACEOF
33540 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33541 _ACEOF
33542
33543
33544 cat >>confdefs.h <<_ACEOF
33545 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33546 _ACEOF
33547
33548
33549 cat >>confdefs.h <<_ACEOF
33550 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33551 _ACEOF
33552
33553
33554 cat >>confdefs.h <<_ACEOF
33555 #define LLVM_INFODIR "$LLVM_INFODIR"
33556 _ACEOF
33557
33558
33559 cat >>confdefs.h <<_ACEOF
33560 #define LLVM_MANDIR "$LLVM_MANDIR"
33561 _ACEOF
33562
33563
33564 cat >>confdefs.h <<_ACEOF
33565 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33566 _ACEOF
33567
33568
33569
33570 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33571
33572 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33573
33574 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33575
33576 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33577
33578 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33579
33580
33581 ac_config_files="$ac_config_files Makefile.config"
33582
33583
33584 ac_config_files="$ac_config_files llvm.spec"
33585
33586
33587 ac_config_files="$ac_config_files docs/doxygen.cfg"
33588
33589
33590 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33591
33592
33593 ac_config_commands="$ac_config_commands setup"
33594
33595 ac_config_commands="$ac_config_commands Makefile"
33596
33597
33598 ac_config_commands="$ac_config_commands Makefile.common"
33599
33600
33601 ac_config_commands="$ac_config_commands examples/Makefile"
33602
33603
33604 ac_config_commands="$ac_config_commands lib/Makefile"
33605
33606
33607 ac_config_commands="$ac_config_commands runtime/Makefile"
33608
33609
33610 ac_config_commands="$ac_config_commands test/Makefile"
33611
33612
33613 ac_config_commands="$ac_config_commands test/Makefile.tests"
33614
33615
33616 ac_config_commands="$ac_config_commands tools/Makefile"
33617
33618
33619 ac_config_commands="$ac_config_commands utils/Makefile"
33620
33621
33622 ac_config_commands="$ac_config_commands projects/Makefile"
33623
33624
33625
33626 cat >confcache <<\_ACEOF
33627 # This file is a shell script that caches the results of configure
33628 # tests run on this system so they can be shared between configure
33629 # scripts and configure runs, see configure's option --config-cache.
33630 # It is not useful on other systems.  If it contains results you don't
33631 # want to keep, you may remove or edit it.
33632 #
33633 # config.status only pays attention to the cache file if you give it
33634 # the --recheck option to rerun configure.
33635 #
33636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33638 # following values.
33639
33640 _ACEOF
33641
33642 # The following way of writing the cache mishandles newlines in values,
33643 # but we know of no workaround that is simple, portable, and efficient.
33644 # So, we kill variables containing newlines.
33645 # Ultrix sh set writes to stderr and can't be redirected directly,
33646 # and sets the high bit in the cache file unless we assign to the vars.
33647 (
33648   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33649     eval ac_val=\$$ac_var
33650     case $ac_val in #(
33651     *${as_nl}*)
33652       case $ac_var in #(
33653       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33655       esac
33656       case $ac_var in #(
33657       _ | IFS | as_nl) ;; #(
33658       *) $as_unset $ac_var ;;
33659       esac ;;
33660     esac
33661   done
33662
33663   (set) 2>&1 |
33664     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33665     *${as_nl}ac_space=\ *)
33666       # `set' does not quote correctly, so add quotes (double-quote
33667       # substitution turns \\\\ into \\, and sed turns \\ into \).
33668       sed -n \
33669         "s/'/'\\\\''/g;
33670           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33671       ;; #(
33672     *)
33673       # `set' quotes correctly as required by POSIX, so do not add quotes.
33674       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33675       ;;
33676     esac |
33677     sort
33678 ) |
33679   sed '
33680      /^ac_cv_env_/b end
33681      t clear
33682      :clear
33683      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33684      t end
33685      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33686      :end' >>confcache
33687 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33688   if test -w "$cache_file"; then
33689     test "x$cache_file" != "x/dev/null" &&
33690       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33691 echo "$as_me: updating cache $cache_file" >&6;}
33692     cat confcache >$cache_file
33693   else
33694     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33695 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33696   fi
33697 fi
33698 rm -f confcache
33699
33700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33701 # Let make expand exec_prefix.
33702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33703
33704 DEFS=-DHAVE_CONFIG_H
33705
33706 ac_libobjs=
33707 ac_ltlibobjs=
33708 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33709   # 1. Remove the extension, and $U if already installed.
33710   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33711   ac_i=`echo "$ac_i" | sed "$ac_script"`
33712   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33713   #    will be set to the directory where LIBOBJS objects are built.
33714   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33715   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33716 done
33717 LIBOBJS=$ac_libobjs
33718
33719 LTLIBOBJS=$ac_ltlibobjs
33720
33721
33722 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33723   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33724 Usually this means the macro was only invoked conditionally." >&5
33725 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33726 Usually this means the macro was only invoked conditionally." >&2;}
33727    { (exit 1); exit 1; }; }
33728 fi
33729 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33730   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33731 Usually this means the macro was only invoked conditionally." >&5
33732 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33733 Usually this means the macro was only invoked conditionally." >&2;}
33734    { (exit 1); exit 1; }; }
33735 fi
33736
33737 : ${CONFIG_STATUS=./config.status}
33738 ac_clean_files_save=$ac_clean_files
33739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33740 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33742 cat >$CONFIG_STATUS <<_ACEOF
33743 #! $SHELL
33744 # Generated by $as_me.
33745 # Run this file to recreate the current configuration.
33746 # Compiler output produced by configure, useful for debugging
33747 # configure, is in config.log if it exists.
33748
33749 debug=false
33750 ac_cs_recheck=false
33751 ac_cs_silent=false
33752 SHELL=\${CONFIG_SHELL-$SHELL}
33753 _ACEOF
33754
33755 cat >>$CONFIG_STATUS <<\_ACEOF
33756 ## --------------------- ##
33757 ## M4sh Initialization.  ##
33758 ## --------------------- ##
33759
33760 # Be Bourne compatible
33761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33762   emulate sh
33763   NULLCMD=:
33764   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33765   # is contrary to our usage.  Disable this feature.
33766   alias -g '${1+"$@"}'='"$@"'
33767   setopt NO_GLOB_SUBST
33768 else
33769   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33770 fi
33771 BIN_SH=xpg4; export BIN_SH # for Tru64
33772 DUALCASE=1; export DUALCASE # for MKS sh
33773
33774
33775 # PATH needs CR
33776 # Avoid depending upon Character Ranges.
33777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33780 as_cr_digits='0123456789'
33781 as_cr_alnum=$as_cr_Letters$as_cr_digits
33782
33783 # The user is always right.
33784 if test "${PATH_SEPARATOR+set}" != set; then
33785   echo "#! /bin/sh" >conf$$.sh
33786   echo  "exit 0"   >>conf$$.sh
33787   chmod +x conf$$.sh
33788   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33789     PATH_SEPARATOR=';'
33790   else
33791     PATH_SEPARATOR=:
33792   fi
33793   rm -f conf$$.sh
33794 fi
33795
33796 # Support unset when possible.
33797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33798   as_unset=unset
33799 else
33800   as_unset=false
33801 fi
33802
33803
33804 # IFS
33805 # We need space, tab and new line, in precisely that order.  Quoting is
33806 # there to prevent editors from complaining about space-tab.
33807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33808 # splitting by setting IFS to empty value.)
33809 as_nl='
33810 '
33811 IFS=" ""        $as_nl"
33812
33813 # Find who we are.  Look in the path if we contain no directory separator.
33814 case $0 in
33815   *[\\/]* ) as_myself=$0 ;;
33816   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33817 for as_dir in $PATH
33818 do
33819   IFS=$as_save_IFS
33820   test -z "$as_dir" && as_dir=.
33821   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33822 done
33823 IFS=$as_save_IFS
33824
33825      ;;
33826 esac
33827 # We did not find ourselves, most probably we were run as `sh COMMAND'
33828 # in which case we are not to be found in the path.
33829 if test "x$as_myself" = x; then
33830   as_myself=$0
33831 fi
33832 if test ! -f "$as_myself"; then
33833   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33834   { (exit 1); exit 1; }
33835 fi
33836
33837 # Work around bugs in pre-3.0 UWIN ksh.
33838 for as_var in ENV MAIL MAILPATH
33839 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33840 done
33841 PS1='$ '
33842 PS2='> '
33843 PS4='+ '
33844
33845 # NLS nuisances.
33846 for as_var in \
33847   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33848   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33849   LC_TELEPHONE LC_TIME
33850 do
33851   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33852     eval $as_var=C; export $as_var
33853   else
33854     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33855   fi
33856 done
33857
33858 # Required to use basename.
33859 if expr a : '\(a\)' >/dev/null 2>&1 &&
33860    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33861   as_expr=expr
33862 else
33863   as_expr=false
33864 fi
33865
33866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33867   as_basename=basename
33868 else
33869   as_basename=false
33870 fi
33871
33872
33873 # Name of the executable.
33874 as_me=`$as_basename -- "$0" ||
33875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33876          X"$0" : 'X\(//\)$' \| \
33877          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33878 echo X/"$0" |
33879     sed '/^.*\/\([^/][^/]*\)\/*$/{
33880             s//\1/
33881             q
33882           }
33883           /^X\/\(\/\/\)$/{
33884             s//\1/
33885             q
33886           }
33887           /^X\/\(\/\).*/{
33888             s//\1/
33889             q
33890           }
33891           s/.*/./; q'`
33892
33893 # CDPATH.
33894 $as_unset CDPATH
33895
33896
33897
33898   as_lineno_1=$LINENO
33899   as_lineno_2=$LINENO
33900   test "x$as_lineno_1" != "x$as_lineno_2" &&
33901   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33902
33903   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33904   # uniformly replaced by the line number.  The first 'sed' inserts a
33905   # line-number line after each line using $LINENO; the second 'sed'
33906   # does the real work.  The second script uses 'N' to pair each
33907   # line-number line with the line containing $LINENO, and appends
33908   # trailing '-' during substitution so that $LINENO is not a special
33909   # case at line end.
33910   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33911   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33912   # E. McMahon (1931-1989) for sed's syntax.  :-)
33913   sed -n '
33914     p
33915     /[$]LINENO/=
33916   ' <$as_myself |
33917     sed '
33918       s/[$]LINENO.*/&-/
33919       t lineno
33920       b
33921       :lineno
33922       N
33923       :loop
33924       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33925       t loop
33926       s/-\n.*//
33927     ' >$as_me.lineno &&
33928   chmod +x "$as_me.lineno" ||
33929     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33930    { (exit 1); exit 1; }; }
33931
33932   # Don't try to exec as it changes $[0], causing all sort of problems
33933   # (the dirname of $[0] is not the place where we might find the
33934   # original and so on.  Autoconf is especially sensitive to this).
33935   . "./$as_me.lineno"
33936   # Exit status is that of the last command.
33937   exit
33938 }
33939
33940
33941 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33942   as_dirname=dirname
33943 else
33944   as_dirname=false
33945 fi
33946
33947 ECHO_C= ECHO_N= ECHO_T=
33948 case `echo -n x` in
33949 -n*)
33950   case `echo 'x\c'` in
33951   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33952   *)   ECHO_C='\c';;
33953   esac;;
33954 *)
33955   ECHO_N='-n';;
33956 esac
33957
33958 if expr a : '\(a\)' >/dev/null 2>&1 &&
33959    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33960   as_expr=expr
33961 else
33962   as_expr=false
33963 fi
33964
33965 rm -f conf$$ conf$$.exe conf$$.file
33966 if test -d conf$$.dir; then
33967   rm -f conf$$.dir/conf$$.file
33968 else
33969   rm -f conf$$.dir
33970   mkdir conf$$.dir
33971 fi
33972 echo >conf$$.file
33973 if ln -s conf$$.file conf$$ 2>/dev/null; then
33974   as_ln_s='ln -s'
33975   # ... but there are two gotchas:
33976   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33977   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33978   # In both cases, we have to default to `cp -p'.
33979   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33980     as_ln_s='cp -p'
33981 elif ln conf$$.file conf$$ 2>/dev/null; then
33982   as_ln_s=ln
33983 else
33984   as_ln_s='cp -p'
33985 fi
33986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33987 rmdir conf$$.dir 2>/dev/null
33988
33989 if mkdir -p . 2>/dev/null; then
33990   as_mkdir_p=:
33991 else
33992   test -d ./-p && rmdir ./-p
33993   as_mkdir_p=false
33994 fi
33995
33996 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33997 # systems may use methods other than mode bits to determine executability.
33998 cat >conf$$.file <<_ASEOF
33999 #! /bin/sh
34000 exit 0
34001 _ASEOF
34002 chmod +x conf$$.file
34003 if test -x conf$$.file >/dev/null 2>&1; then
34004   as_executable_p="test -x"
34005 else
34006   as_executable_p=:
34007 fi
34008 rm -f conf$$.file
34009
34010 # Sed expression to map a string onto a valid CPP name.
34011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34012
34013 # Sed expression to map a string onto a valid variable name.
34014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34015
34016
34017 exec 6>&1
34018
34019 # Save the log message, to keep $[0] and so on meaningful, and to
34020 # report actual input values of CONFIG_FILES etc. instead of their
34021 # values after options handling.
34022 ac_log="
34023 This file was extended by llvm $as_me 2.1cvs, which was
34024 generated by GNU Autoconf 2.60.  Invocation command line was
34025
34026   CONFIG_FILES    = $CONFIG_FILES
34027   CONFIG_HEADERS  = $CONFIG_HEADERS
34028   CONFIG_LINKS    = $CONFIG_LINKS
34029   CONFIG_COMMANDS = $CONFIG_COMMANDS
34030   $ $0 $@
34031
34032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34033 "
34034
34035 _ACEOF
34036
34037 cat >>$CONFIG_STATUS <<_ACEOF
34038 # Files that config.status was made for.
34039 config_files="$ac_config_files"
34040 config_headers="$ac_config_headers"
34041 config_commands="$ac_config_commands"
34042
34043 _ACEOF
34044
34045 cat >>$CONFIG_STATUS <<\_ACEOF
34046 ac_cs_usage="\
34047 \`$as_me' instantiates files from templates according to the
34048 current configuration.
34049
34050 Usage: $0 [OPTIONS] [FILE]...
34051
34052   -h, --help       print this help, then exit
34053   -V, --version    print version number, then exit
34054   -q, --quiet      do not print progress messages
34055   -d, --debug      don't remove temporary files
34056       --recheck    update $as_me by reconfiguring in the same conditions
34057   --file=FILE[:TEMPLATE]
34058                    instantiate the configuration file FILE
34059   --header=FILE[:TEMPLATE]
34060                    instantiate the configuration header FILE
34061
34062 Configuration files:
34063 $config_files
34064
34065 Configuration headers:
34066 $config_headers
34067
34068 Configuration commands:
34069 $config_commands
34070
34071 Report bugs to <bug-autoconf@gnu.org>."
34072
34073 _ACEOF
34074 cat >>$CONFIG_STATUS <<_ACEOF
34075 ac_cs_version="\\
34076 llvm config.status 2.1cvs
34077 configured by $0, generated by GNU Autoconf 2.60,
34078   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34079
34080 Copyright (C) 2006 Free Software Foundation, Inc.
34081 This config.status script is free software; the Free Software Foundation
34082 gives unlimited permission to copy, distribute and modify it."
34083
34084 ac_pwd='$ac_pwd'
34085 srcdir='$srcdir'
34086 INSTALL='$INSTALL'
34087 _ACEOF
34088
34089 cat >>$CONFIG_STATUS <<\_ACEOF
34090 # If no file are specified by the user, then we need to provide default
34091 # value.  By we need to know if files were specified by the user.
34092 ac_need_defaults=:
34093 while test $# != 0
34094 do
34095   case $1 in
34096   --*=*)
34097     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34098     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34099     ac_shift=:
34100     ;;
34101   *)
34102     ac_option=$1
34103     ac_optarg=$2
34104     ac_shift=shift
34105     ;;
34106   esac
34107
34108   case $ac_option in
34109   # Handling of the options.
34110   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34111     ac_cs_recheck=: ;;
34112   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34113     echo "$ac_cs_version"; exit ;;
34114   --debug | --debu | --deb | --de | --d | -d )
34115     debug=: ;;
34116   --file | --fil | --fi | --f )
34117     $ac_shift
34118     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34119     ac_need_defaults=false;;
34120   --header | --heade | --head | --hea )
34121     $ac_shift
34122     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34123     ac_need_defaults=false;;
34124   --he | --h)
34125     # Conflict between --help and --header
34126     { echo "$as_me: error: ambiguous option: $1
34127 Try \`$0 --help' for more information." >&2
34128    { (exit 1); exit 1; }; };;
34129   --help | --hel | -h )
34130     echo "$ac_cs_usage"; exit ;;
34131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34133     ac_cs_silent=: ;;
34134
34135   # This is an error.
34136   -*) { echo "$as_me: error: unrecognized option: $1
34137 Try \`$0 --help' for more information." >&2
34138    { (exit 1); exit 1; }; } ;;
34139
34140   *) ac_config_targets="$ac_config_targets $1"
34141      ac_need_defaults=false ;;
34142
34143   esac
34144   shift
34145 done
34146
34147 ac_configure_extra_args=
34148
34149 if $ac_cs_silent; then
34150   exec 6>/dev/null
34151   ac_configure_extra_args="$ac_configure_extra_args --silent"
34152 fi
34153
34154 _ACEOF
34155 cat >>$CONFIG_STATUS <<_ACEOF
34156 if \$ac_cs_recheck; then
34157   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34158   CONFIG_SHELL=$SHELL
34159   export CONFIG_SHELL
34160   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34161 fi
34162
34163 _ACEOF
34164 cat >>$CONFIG_STATUS <<\_ACEOF
34165 exec 5>>config.log
34166 {
34167   echo
34168   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34169 ## Running $as_me. ##
34170 _ASBOX
34171   echo "$ac_log"
34172 } >&5
34173
34174 _ACEOF
34175 cat >>$CONFIG_STATUS <<_ACEOF
34176 #
34177 # INIT-COMMANDS
34178 #
34179 llvm_src="${srcdir}"
34180
34181 _ACEOF
34182
34183 cat >>$CONFIG_STATUS <<\_ACEOF
34184
34185 # Handling of arguments.
34186 for ac_config_target in $ac_config_targets
34187 do
34188   case $ac_config_target in
34189     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34190     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34191     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34192     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34193     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34194     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34195     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34196     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34197     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34198     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34199     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34200     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34201     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34202     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34203     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34204     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34205     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34206     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34207     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34208     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34209
34210   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34211 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34212    { (exit 1); exit 1; }; };;
34213   esac
34214 done
34215
34216
34217 # If the user did not use the arguments to specify the items to instantiate,
34218 # then the envvar interface is used.  Set only those that are not.
34219 # We use the long form for the default assignment because of an extremely
34220 # bizarre bug on SunOS 4.1.3.
34221 if $ac_need_defaults; then
34222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34225 fi
34226
34227 # Have a temporary directory for convenience.  Make it in the build tree
34228 # simply because there is no reason against having it here, and in addition,
34229 # creating and moving files from /tmp can sometimes cause problems.
34230 # Hook for its removal unless debugging.
34231 # Note that there is a small window in which the directory will not be cleaned:
34232 # after its creation but before its name has been assigned to `$tmp'.
34233 $debug ||
34234 {
34235   tmp=
34236   trap 'exit_status=$?
34237   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34238 ' 0
34239   trap '{ (exit 1); exit 1; }' 1 2 13 15
34240 }
34241 # Create a (secure) tmp directory for tmp files.
34242
34243 {
34244   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34245   test -n "$tmp" && test -d "$tmp"
34246 }  ||
34247 {
34248   tmp=./conf$$-$RANDOM
34249   (umask 077 && mkdir "$tmp")
34250 } ||
34251 {
34252    echo "$me: cannot create a temporary directory in ." >&2
34253    { (exit 1); exit 1; }
34254 }
34255
34256 #
34257 # Set up the sed scripts for CONFIG_FILES section.
34258 #
34259
34260 # No need to generate the scripts if there are no CONFIG_FILES.
34261 # This happens for instance when ./config.status config.h
34262 if test -n "$CONFIG_FILES"; then
34263
34264 _ACEOF
34265
34266
34267
34268 ac_delim='%!_!# '
34269 for ac_last_try in false false false false false :; do
34270   cat >conf$$subs.sed <<_ACEOF
34271 SHELL!$SHELL$ac_delim
34272 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34273 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34274 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34275 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34276 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34277 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34278 exec_prefix!$exec_prefix$ac_delim
34279 prefix!$prefix$ac_delim
34280 program_transform_name!$program_transform_name$ac_delim
34281 bindir!$bindir$ac_delim
34282 sbindir!$sbindir$ac_delim
34283 libexecdir!$libexecdir$ac_delim
34284 datarootdir!$datarootdir$ac_delim
34285 datadir!$datadir$ac_delim
34286 sysconfdir!$sysconfdir$ac_delim
34287 sharedstatedir!$sharedstatedir$ac_delim
34288 localstatedir!$localstatedir$ac_delim
34289 includedir!$includedir$ac_delim
34290 oldincludedir!$oldincludedir$ac_delim
34291 docdir!$docdir$ac_delim
34292 infodir!$infodir$ac_delim
34293 htmldir!$htmldir$ac_delim
34294 dvidir!$dvidir$ac_delim
34295 pdfdir!$pdfdir$ac_delim
34296 psdir!$psdir$ac_delim
34297 libdir!$libdir$ac_delim
34298 localedir!$localedir$ac_delim
34299 mandir!$mandir$ac_delim
34300 DEFS!$DEFS$ac_delim
34301 ECHO_C!$ECHO_C$ac_delim
34302 ECHO_N!$ECHO_N$ac_delim
34303 ECHO_T!$ECHO_T$ac_delim
34304 LIBS!$LIBS$ac_delim
34305 build_alias!$build_alias$ac_delim
34306 host_alias!$host_alias$ac_delim
34307 target_alias!$target_alias$ac_delim
34308 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34309 subdirs!$subdirs$ac_delim
34310 build!$build$ac_delim
34311 build_cpu!$build_cpu$ac_delim
34312 build_vendor!$build_vendor$ac_delim
34313 build_os!$build_os$ac_delim
34314 host!$host$ac_delim
34315 host_cpu!$host_cpu$ac_delim
34316 host_vendor!$host_vendor$ac_delim
34317 host_os!$host_os$ac_delim
34318 target!$target$ac_delim
34319 target_cpu!$target_cpu$ac_delim
34320 target_vendor!$target_vendor$ac_delim
34321 target_os!$target_os$ac_delim
34322 OS!$OS$ac_delim
34323 LINKALL!$LINKALL$ac_delim
34324 NOLINKALL!$NOLINKALL$ac_delim
34325 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34326 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34327 ARCH!$ARCH$ac_delim
34328 ENDIAN!$ENDIAN$ac_delim
34329 CC!$CC$ac_delim
34330 CFLAGS!$CFLAGS$ac_delim
34331 LDFLAGS!$LDFLAGS$ac_delim
34332 CPPFLAGS!$CPPFLAGS$ac_delim
34333 ac_ct_CC!$ac_ct_CC$ac_delim
34334 EXEEXT!$EXEEXT$ac_delim
34335 OBJEXT!$OBJEXT$ac_delim
34336 CPP!$CPP$ac_delim
34337 GREP!$GREP$ac_delim
34338 EGREP!$EGREP$ac_delim
34339 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34340 BUILD_CC!$BUILD_CC$ac_delim
34341 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34342 CVSBUILD!$CVSBUILD$ac_delim
34343 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34344 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34345 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34346 JIT!$JIT$ac_delim
34347 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34348 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34349 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34350 ENABLE_PIC!$ENABLE_PIC$ac_delim
34351 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34352 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34353 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34354 CXX!$CXX$ac_delim
34355 CXXFLAGS!$CXXFLAGS$ac_delim
34356 ac_ct_CXX!$ac_ct_CXX$ac_delim
34357 LEX!$LEX$ac_delim
34358 LEXLIB!$LEXLIB$ac_delim
34359 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34360 FLEX!$FLEX$ac_delim
34361 YACC!$YACC$ac_delim
34362 YFLAGS!$YFLAGS$ac_delim
34363 BISON!$BISON$ac_delim
34364 NM!$NM$ac_delim
34365 ifGNUmake!$ifGNUmake$ac_delim
34366 LN_S!$LN_S$ac_delim
34367 CMP!$CMP$ac_delim
34368 _ACEOF
34369
34370   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34371     break
34372   elif $ac_last_try; then
34373     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34374 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34375    { (exit 1); exit 1; }; }
34376   else
34377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34378   fi
34379 done
34380
34381 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34382 if test -n "$ac_eof"; then
34383   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34384   ac_eof=`expr $ac_eof + 1`
34385 fi
34386
34387 cat >>$CONFIG_STATUS <<_ACEOF
34388 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34390 _ACEOF
34391 sed '
34392 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34393 s/^/s,@/; s/!/@,|#_!!_#|/
34394 :n
34395 t n
34396 s/'"$ac_delim"'$/,g/; t
34397 s/$/\\/; p
34398 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34399 ' >>$CONFIG_STATUS <conf$$subs.sed
34400 rm -f conf$$subs.sed
34401 cat >>$CONFIG_STATUS <<_ACEOF
34402 CEOF$ac_eof
34403 _ACEOF
34404
34405
34406 ac_delim='%!_!# '
34407 for ac_last_try in false false false false false :; do
34408   cat >conf$$subs.sed <<_ACEOF
34409 CP!$CP$ac_delim
34410 DATE!$DATE$ac_delim
34411 FIND!$FIND$ac_delim
34412 MKDIR!$MKDIR$ac_delim
34413 MV!$MV$ac_delim
34414 RANLIB!$RANLIB$ac_delim
34415 RM!$RM$ac_delim
34416 SED!$SED$ac_delim
34417 TAR!$TAR$ac_delim
34418 BINPWD!$BINPWD$ac_delim
34419 GRAPHVIZ!$GRAPHVIZ$ac_delim
34420 DOT!$DOT$ac_delim
34421 GV!$GV$ac_delim
34422 DOTTY!$DOTTY$ac_delim
34423 PERL!$PERL$ac_delim
34424 HAVE_PERL!$HAVE_PERL$ac_delim
34425 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34426 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34427 INSTALL_DATA!$INSTALL_DATA$ac_delim
34428 BZIP2!$BZIP2$ac_delim
34429 DOXYGEN!$DOXYGEN$ac_delim
34430 GROFF!$GROFF$ac_delim
34431 GZIP!$GZIP$ac_delim
34432 POD2HTML!$POD2HTML$ac_delim
34433 POD2MAN!$POD2MAN$ac_delim
34434 RUNTEST!$RUNTEST$ac_delim
34435 TCLSH!$TCLSH$ac_delim
34436 ZIP!$ZIP$ac_delim
34437 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34438 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34439 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34440 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34441 LIBADD_DL!$LIBADD_DL$ac_delim
34442 ECHO!$ECHO$ac_delim
34443 AR!$AR$ac_delim
34444 STRIP!$STRIP$ac_delim
34445 CXXCPP!$CXXCPP$ac_delim
34446 F77!$F77$ac_delim
34447 FFLAGS!$FFLAGS$ac_delim
34448 ac_ct_F77!$ac_ct_F77$ac_delim
34449 LIBTOOL!$LIBTOOL$ac_delim
34450 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34451 LLVMGCC!$LLVMGCC$ac_delim
34452 LLVMGXX!$LLVMGXX$ac_delim
34453 USE_UDIS86!$USE_UDIS86$ac_delim
34454 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34455 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34456 ALLOCA!$ALLOCA$ac_delim
34457 MMAP_FILE!$MMAP_FILE$ac_delim
34458 LLVMCC1!$LLVMCC1$ac_delim
34459 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34460 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34461 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34462 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34463 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34464 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34465 SHLIBEXT!$SHLIBEXT$ac_delim
34466 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34467 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34468 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34469 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34470 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34471 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34472 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34473 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34474 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34475 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34476 LIBOBJS!$LIBOBJS$ac_delim
34477 LTLIBOBJS!$LTLIBOBJS$ac_delim
34478 _ACEOF
34479
34480   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
34481     break
34482   elif $ac_last_try; then
34483     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34485    { (exit 1); exit 1; }; }
34486   else
34487     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34488   fi
34489 done
34490
34491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34492 if test -n "$ac_eof"; then
34493   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34494   ac_eof=`expr $ac_eof + 1`
34495 fi
34496
34497 cat >>$CONFIG_STATUS <<_ACEOF
34498 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34500 _ACEOF
34501 sed '
34502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34503 s/^/s,@/; s/!/@,|#_!!_#|/
34504 :n
34505 t n
34506 s/'"$ac_delim"'$/,g/; t
34507 s/$/\\/; p
34508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34509 ' >>$CONFIG_STATUS <conf$$subs.sed
34510 rm -f conf$$subs.sed
34511 cat >>$CONFIG_STATUS <<_ACEOF
34512 :end
34513 s/|#_!!_#|//g
34514 CEOF$ac_eof
34515 _ACEOF
34516
34517
34518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34520 # trailing colons and then remove the whole line if VPATH becomes empty
34521 # (actually we leave an empty line to preserve line numbers).
34522 if test "x$srcdir" = x.; then
34523   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34524 s/:*\$(srcdir):*/:/
34525 s/:*\${srcdir}:*/:/
34526 s/:*@srcdir@:*/:/
34527 s/^\([^=]*=[     ]*\):*/\1/
34528 s/:*$//
34529 s/^[^=]*=[       ]*$//
34530 }'
34531 fi
34532
34533 cat >>$CONFIG_STATUS <<\_ACEOF
34534 fi # test -n "$CONFIG_FILES"
34535
34536
34537 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34538 do
34539   case $ac_tag in
34540   :[FHLC]) ac_mode=$ac_tag; continue;;
34541   esac
34542   case $ac_mode$ac_tag in
34543   :[FHL]*:*);;
34544   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34545 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34546    { (exit 1); exit 1; }; };;
34547   :[FH]-) ac_tag=-:-;;
34548   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34549   esac
34550   ac_save_IFS=$IFS
34551   IFS=:
34552   set x $ac_tag
34553   IFS=$ac_save_IFS
34554   shift
34555   ac_file=$1
34556   shift
34557
34558   case $ac_mode in
34559   :L) ac_source=$1;;
34560   :[FH])
34561     ac_file_inputs=
34562     for ac_f
34563     do
34564       case $ac_f in
34565       -) ac_f="$tmp/stdin";;
34566       *) # Look for the file first in the build tree, then in the source tree
34567          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34568          # because $ac_f cannot contain `:'.
34569          test -f "$ac_f" ||
34570            case $ac_f in
34571            [\\/$]*) false;;
34572            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34573            esac ||
34574            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34575 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34576    { (exit 1); exit 1; }; };;
34577       esac
34578       ac_file_inputs="$ac_file_inputs $ac_f"
34579     done
34580
34581     # Let's still pretend it is `configure' which instantiates (i.e., don't
34582     # use $as_me), people would be surprised to read:
34583     #    /* config.h.  Generated by config.status.  */
34584     configure_input="Generated from "`IFS=:
34585           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34586     if test x"$ac_file" != x-; then
34587       configure_input="$ac_file.  $configure_input"
34588       { echo "$as_me:$LINENO: creating $ac_file" >&5
34589 echo "$as_me: creating $ac_file" >&6;}
34590     fi
34591
34592     case $ac_tag in
34593     *:-:* | *:-) cat >"$tmp/stdin";;
34594     esac
34595     ;;
34596   esac
34597
34598   ac_dir=`$as_dirname -- "$ac_file" ||
34599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34600          X"$ac_file" : 'X\(//\)[^/]' \| \
34601          X"$ac_file" : 'X\(//\)$' \| \
34602          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34603 echo X"$ac_file" |
34604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34605             s//\1/
34606             q
34607           }
34608           /^X\(\/\/\)[^/].*/{
34609             s//\1/
34610             q
34611           }
34612           /^X\(\/\/\)$/{
34613             s//\1/
34614             q
34615           }
34616           /^X\(\/\).*/{
34617             s//\1/
34618             q
34619           }
34620           s/.*/./; q'`
34621   { as_dir="$ac_dir"
34622   case $as_dir in #(
34623   -*) as_dir=./$as_dir;;
34624   esac
34625   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34626     as_dirs=
34627     while :; do
34628       case $as_dir in #(
34629       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34630       *) as_qdir=$as_dir;;
34631       esac
34632       as_dirs="'$as_qdir' $as_dirs"
34633       as_dir=`$as_dirname -- "$as_dir" ||
34634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34635          X"$as_dir" : 'X\(//\)[^/]' \| \
34636          X"$as_dir" : 'X\(//\)$' \| \
34637          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34638 echo X"$as_dir" |
34639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34640             s//\1/
34641             q
34642           }
34643           /^X\(\/\/\)[^/].*/{
34644             s//\1/
34645             q
34646           }
34647           /^X\(\/\/\)$/{
34648             s//\1/
34649             q
34650           }
34651           /^X\(\/\).*/{
34652             s//\1/
34653             q
34654           }
34655           s/.*/./; q'`
34656       test -d "$as_dir" && break
34657     done
34658     test -z "$as_dirs" || eval "mkdir $as_dirs"
34659   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34661    { (exit 1); exit 1; }; }; }
34662   ac_builddir=.
34663
34664 case "$ac_dir" in
34665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34666 *)
34667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34668   # A ".." for each directory in $ac_dir_suffix.
34669   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34670   case $ac_top_builddir_sub in
34671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34673   esac ;;
34674 esac
34675 ac_abs_top_builddir=$ac_pwd
34676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34677 # for backward compatibility:
34678 ac_top_builddir=$ac_top_build_prefix
34679
34680 case $srcdir in
34681   .)  # We are building in place.
34682     ac_srcdir=.
34683     ac_top_srcdir=$ac_top_builddir_sub
34684     ac_abs_top_srcdir=$ac_pwd ;;
34685   [\\/]* | ?:[\\/]* )  # Absolute name.
34686     ac_srcdir=$srcdir$ac_dir_suffix;
34687     ac_top_srcdir=$srcdir
34688     ac_abs_top_srcdir=$srcdir ;;
34689   *) # Relative name.
34690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34691     ac_top_srcdir=$ac_top_build_prefix$srcdir
34692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34693 esac
34694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34695
34696
34697   case $ac_mode in
34698   :F)
34699   #
34700   # CONFIG_FILE
34701   #
34702
34703   case $INSTALL in
34704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34705   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34706   esac
34707 _ACEOF
34708
34709 cat >>$CONFIG_STATUS <<\_ACEOF
34710 # If the template does not know about datarootdir, expand it.
34711 # FIXME: This hack should be removed a few years after 2.60.
34712 ac_datarootdir_hack=; ac_datarootdir_seen=
34713
34714 case `sed -n '/datarootdir/ {
34715   p
34716   q
34717 }
34718 /@datadir@/p
34719 /@docdir@/p
34720 /@infodir@/p
34721 /@localedir@/p
34722 /@mandir@/p
34723 ' $ac_file_inputs` in
34724 *datarootdir*) ac_datarootdir_seen=yes;;
34725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34726   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34727 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34728 _ACEOF
34729 cat >>$CONFIG_STATUS <<_ACEOF
34730   ac_datarootdir_hack='
34731   s&@datadir@&$datadir&g
34732   s&@docdir@&$docdir&g
34733   s&@infodir@&$infodir&g
34734   s&@localedir@&$localedir&g
34735   s&@mandir@&$mandir&g
34736     s&\\\${datarootdir}&$datarootdir&g' ;;
34737 esac
34738 _ACEOF
34739
34740 # Neutralize VPATH when `$srcdir' = `.'.
34741 # Shell code in configure.ac might set extrasub.
34742 # FIXME: do we really want to maintain this feature?
34743 cat >>$CONFIG_STATUS <<_ACEOF
34744   sed "$ac_vpsub
34745 $extrasub
34746 _ACEOF
34747 cat >>$CONFIG_STATUS <<\_ACEOF
34748 :t
34749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34750 s&@configure_input@&$configure_input&;t t
34751 s&@top_builddir@&$ac_top_builddir_sub&;t t
34752 s&@srcdir@&$ac_srcdir&;t t
34753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34754 s&@top_srcdir@&$ac_top_srcdir&;t t
34755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34756 s&@builddir@&$ac_builddir&;t t
34757 s&@abs_builddir@&$ac_abs_builddir&;t t
34758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34759 s&@INSTALL@&$ac_INSTALL&;t t
34760 $ac_datarootdir_hack
34761 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34762
34763 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34764   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34765   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34766   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34767 which seems to be undefined.  Please make sure it is defined." >&5
34768 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34769 which seems to be undefined.  Please make sure it is defined." >&2;}
34770
34771   rm -f "$tmp/stdin"
34772   case $ac_file in
34773   -) cat "$tmp/out"; rm -f "$tmp/out";;
34774   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34775   esac
34776  ;;
34777   :H)
34778   #
34779   # CONFIG_HEADER
34780   #
34781 _ACEOF
34782
34783 # Transform confdefs.h into a sed script `conftest.defines', that
34784 # substitutes the proper values into config.h.in to produce config.h.
34785 rm -f conftest.defines conftest.tail
34786 # First, append a space to every undef/define line, to ease matching.
34787 echo 's/$/ /' >conftest.defines
34788 # Then, protect against being on the right side of a sed subst, or in
34789 # an unquoted here document, in config.status.  If some macros were
34790 # called several times there might be several #defines for the same
34791 # symbol, which is useless.  But do not sort them, since the last
34792 # AC_DEFINE must be honored.
34793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34794 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34795 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34796 # PARAMS is the parameter list in the macro definition--in most cases, it's
34797 # just an empty string.
34798 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34799 ac_dB='\\)[      (].*,\\1define\\2'
34800 ac_dC=' '
34801 ac_dD=' ,'
34802
34803 uniq confdefs.h |
34804   sed -n '
34805         t rset
34806         :rset
34807         s/^[     ]*#[    ]*define[       ][      ]*//
34808         t ok
34809         d
34810         :ok
34811         s/[\\&,]/\\&/g
34812         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34813         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34814   ' >>conftest.defines
34815
34816 # Remove the space that was appended to ease matching.
34817 # Then replace #undef with comments.  This is necessary, for
34818 # example, in the case of _POSIX_SOURCE, which is predefined and required
34819 # on some systems where configure will not decide to define it.
34820 # (The regexp can be short, since the line contains either #define or #undef.)
34821 echo 's/ $//
34822 s,^[     #]*u.*,/* & */,' >>conftest.defines
34823
34824 # Break up conftest.defines:
34825 ac_max_sed_lines=50
34826
34827 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34828 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34829 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34830 # et cetera.
34831 ac_in='$ac_file_inputs'
34832 ac_out='"$tmp/out1"'
34833 ac_nxt='"$tmp/out2"'
34834
34835 while :
34836 do
34837   # Write a here document:
34838     cat >>$CONFIG_STATUS <<_ACEOF
34839     # First, check the format of the line:
34840     cat >"\$tmp/defines.sed" <<\\CEOF
34841 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34842 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34843 b
34844 :def
34845 _ACEOF
34846   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34847   echo 'CEOF
34848     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34849   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34850   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34851   grep . conftest.tail >/dev/null || break
34852   rm -f conftest.defines
34853   mv conftest.tail conftest.defines
34854 done
34855 rm -f conftest.defines conftest.tail
34856
34857 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34858 cat >>$CONFIG_STATUS <<\_ACEOF
34859   if test x"$ac_file" != x-; then
34860     echo "/* $configure_input  */" >"$tmp/config.h"
34861     cat "$ac_result" >>"$tmp/config.h"
34862     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34863       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34864 echo "$as_me: $ac_file is unchanged" >&6;}
34865     else
34866       rm -f $ac_file
34867       mv "$tmp/config.h" $ac_file
34868     fi
34869   else
34870     echo "/* $configure_input  */"
34871     cat "$ac_result"
34872   fi
34873   rm -f "$tmp/out12"
34874  ;;
34875
34876   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34877 echo "$as_me: executing $ac_file commands" >&6;}
34878  ;;
34879   esac
34880
34881
34882   case $ac_file$ac_mode in
34883     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34884    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34885     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34886    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34887     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34888    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34889     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34890    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34891     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34892    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34893     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34894    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34895     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34896    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34897     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34898    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34899     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34900    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34901     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34902    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34903
34904   esac
34905 done # for ac_tag
34906
34907
34908 { (exit 0); exit 0; }
34909 _ACEOF
34910 chmod +x $CONFIG_STATUS
34911 ac_clean_files=$ac_clean_files_save
34912
34913
34914 # configure is writing to config.log, and then calls config.status.
34915 # config.status does its own redirection, appending to config.log.
34916 # Unfortunately, on DOS this fails, as config.log is still kept open
34917 # by configure, so config.status won't be able to write to it; its
34918 # output is simply discarded.  So we exec the FD to /dev/null,
34919 # effectively closing config.log, so it can be properly (re)opened and
34920 # appended to by config.status.  When coming back to configure, we
34921 # need to make the FD available again.
34922 if test "$no_create" != yes; then
34923   ac_cs_success=:
34924   ac_config_status_args=
34925   test "$silent" = yes &&
34926     ac_config_status_args="$ac_config_status_args --quiet"
34927   exec 5>/dev/null
34928   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34929   exec 5>>config.log
34930   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34931   # would make configure fail if this is the last instruction.
34932   $ac_cs_success || { (exit 1); exit 1; }
34933 fi
34934
34935 #
34936 # CONFIG_SUBDIRS section.
34937 #
34938 if test "$no_recursion" != yes; then
34939
34940   # Remove --cache-file and --srcdir arguments so they do not pile up.
34941   ac_sub_configure_args=
34942   ac_prev=
34943   eval "set x $ac_configure_args"
34944   shift
34945   for ac_arg
34946   do
34947     if test -n "$ac_prev"; then
34948       ac_prev=
34949       continue
34950     fi
34951     case $ac_arg in
34952     -cache-file | --cache-file | --cache-fil | --cache-fi \
34953     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34954       ac_prev=cache_file ;;
34955     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34956     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34957     | --c=*)
34958       ;;
34959     --config-cache | -C)
34960       ;;
34961     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34962       ac_prev=srcdir ;;
34963     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34964       ;;
34965     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34966       ac_prev=prefix ;;
34967     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34968       ;;
34969     *)
34970       case $ac_arg in
34971       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34972       esac
34973       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34974     esac
34975   done
34976
34977   # Always prepend --prefix to ensure using the same prefix
34978   # in subdir configurations.
34979   ac_arg="--prefix=$prefix"
34980   case $ac_arg in
34981   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34982   esac
34983   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34984
34985   ac_popdir=`pwd`
34986   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34987
34988     # Do not complain, so a configure script can configure whichever
34989     # parts of a large source tree are present.
34990     test -d "$srcdir/$ac_dir" || continue
34991
34992     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34993     echo "$as_me:$LINENO: $ac_msg" >&5
34994     echo "$ac_msg" >&6
34995     { as_dir="$ac_dir"
34996   case $as_dir in #(
34997   -*) as_dir=./$as_dir;;
34998   esac
34999   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35000     as_dirs=
35001     while :; do
35002       case $as_dir in #(
35003       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35004       *) as_qdir=$as_dir;;
35005       esac
35006       as_dirs="'$as_qdir' $as_dirs"
35007       as_dir=`$as_dirname -- "$as_dir" ||
35008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35009          X"$as_dir" : 'X\(//\)[^/]' \| \
35010          X"$as_dir" : 'X\(//\)$' \| \
35011          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35012 echo X"$as_dir" |
35013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35014             s//\1/
35015             q
35016           }
35017           /^X\(\/\/\)[^/].*/{
35018             s//\1/
35019             q
35020           }
35021           /^X\(\/\/\)$/{
35022             s//\1/
35023             q
35024           }
35025           /^X\(\/\).*/{
35026             s//\1/
35027             q
35028           }
35029           s/.*/./; q'`
35030       test -d "$as_dir" && break
35031     done
35032     test -z "$as_dirs" || eval "mkdir $as_dirs"
35033   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35034 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35035    { (exit 1); exit 1; }; }; }
35036     ac_builddir=.
35037
35038 case "$ac_dir" in
35039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35040 *)
35041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35042   # A ".." for each directory in $ac_dir_suffix.
35043   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35044   case $ac_top_builddir_sub in
35045   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35046   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35047   esac ;;
35048 esac
35049 ac_abs_top_builddir=$ac_pwd
35050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35051 # for backward compatibility:
35052 ac_top_builddir=$ac_top_build_prefix
35053
35054 case $srcdir in
35055   .)  # We are building in place.
35056     ac_srcdir=.
35057     ac_top_srcdir=$ac_top_builddir_sub
35058     ac_abs_top_srcdir=$ac_pwd ;;
35059   [\\/]* | ?:[\\/]* )  # Absolute name.
35060     ac_srcdir=$srcdir$ac_dir_suffix;
35061     ac_top_srcdir=$srcdir
35062     ac_abs_top_srcdir=$srcdir ;;
35063   *) # Relative name.
35064     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35065     ac_top_srcdir=$ac_top_build_prefix$srcdir
35066     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35067 esac
35068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35069
35070
35071     cd "$ac_dir"
35072
35073     # Check for guested configure; otherwise get Cygnus style configure.
35074     if test -f "$ac_srcdir/configure.gnu"; then
35075       ac_sub_configure=$ac_srcdir/configure.gnu
35076     elif test -f "$ac_srcdir/configure"; then
35077       ac_sub_configure=$ac_srcdir/configure
35078     elif test -f "$ac_srcdir/configure.in"; then
35079       # This should be Cygnus configure.
35080       ac_sub_configure=$ac_aux_dir/configure
35081     else
35082       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35083 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35084       ac_sub_configure=
35085     fi
35086
35087     # The recursion is here.
35088     if test -n "$ac_sub_configure"; then
35089       # Make the cache file name correct relative to the subdirectory.
35090       case $cache_file in
35091       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35092       *) # Relative name.
35093         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35094       esac
35095
35096       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35097 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35098       # The eval makes quoting arguments work.
35099       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35100            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35101         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35102 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35103    { (exit 1); exit 1; }; }
35104     fi
35105
35106     cd "$ac_popdir"
35107   done
35108 fi
35109
35110