Regenerate for __dso_handle, per Anton's request.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.1svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.1svn'
719 PACKAGE_STRING='llvm 2.1svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
892 AR
893 STRIP
894 CXXCPP
895 F77
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 ETAGSFLAGS
900 LLVMGCC
901 LLVMGXX
902 USE_UDIS86
903 HAVE_PTHREAD
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 LIBOBJS
926 LTLIBOBJS'
927 ac_subst_files=''
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 CPPFLAGS
935 CPP
936 CXX
937 CXXFLAGS
938 CCC
939 YACC
940 YFLAGS
941 CXXCPP
942 F77
943 FFLAGS'
944 ac_subdirs_all='projects/sample
945 projects/privbracket
946 projects/llvm-stacker
947 projects/llvm-test
948 projects/llvm-reopt
949 projects/llvm-gcc
950 projects/llvm-java
951 projects/llvm-tv
952 projects/llvm-poolalloc
953 projects/poolalloc
954 projects/llvm-kernel'
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
975
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006   # If the previous option needs an argument, assign it.
1007   if test -n "$ac_prev"; then
1008     eval $ac_prev=\$ac_option
1009     ac_prev=
1010     continue
1011   fi
1012
1013   case $ac_option in
1014   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015   *)    ac_optarg=yes ;;
1016   esac
1017
1018   # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020   case $ac_dashdash$ac_option in
1021   --)
1022     ac_dashdash=yes ;;
1023
1024   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025     ac_prev=bindir ;;
1026   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027     bindir=$ac_optarg ;;
1028
1029   -build | --build | --buil | --bui | --bu)
1030     ac_prev=build_alias ;;
1031   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032     build_alias=$ac_optarg ;;
1033
1034   -cache-file | --cache-file | --cache-fil | --cache-fi \
1035   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036     ac_prev=cache_file ;;
1037   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039     cache_file=$ac_optarg ;;
1040
1041   --config-cache | -C)
1042     cache_file=config.cache ;;
1043
1044   -datadir | --datadir | --datadi | --datad)
1045     ac_prev=datadir ;;
1046   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047     datadir=$ac_optarg ;;
1048
1049   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050   | --dataroo | --dataro | --datar)
1051     ac_prev=datarootdir ;;
1052   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054     datarootdir=$ac_optarg ;;
1055
1056   -disable-* | --disable-*)
1057     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1063     eval enable_$ac_feature=no ;;
1064
1065   -docdir | --docdir | --docdi | --doc | --do)
1066     ac_prev=docdir ;;
1067   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068     docdir=$ac_optarg ;;
1069
1070   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071     ac_prev=dvidir ;;
1072   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073     dvidir=$ac_optarg ;;
1074
1075   -enable-* | --enable-*)
1076     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080    { (exit 1); exit 1; }; }
1081     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082     eval enable_$ac_feature=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276       { echo "$as_me: error: invalid package name: $ac_package" >&2
1277    { (exit 1); exit 1; }; }
1278     ac_package=`echo $ac_package| sed 's/-/_/g'`
1279     eval with_$ac_package=\$ac_optarg ;;
1280
1281   -without-* | --without-*)
1282     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid package name: $ac_package" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_package=`echo $ac_package | sed 's/-/_/g'`
1288     eval with_$ac_package=no ;;
1289
1290   --x)
1291     # Obsolete; use --with-x.
1292     with_x=yes ;;
1293
1294   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295   | --x-incl | --x-inc | --x-in | --x-i)
1296     ac_prev=x_includes ;;
1297   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299     x_includes=$ac_optarg ;;
1300
1301   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303     ac_prev=x_libraries ;;
1304   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306     x_libraries=$ac_optarg ;;
1307
1308   -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310    { (exit 1); exit 1; }; }
1311     ;;
1312
1313   *=*)
1314     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318    { (exit 1); exit 1; }; }
1319     eval $ac_envvar=\$ac_optarg
1320     export $ac_envvar ;;
1321
1322   *)
1323     # FIXME: should be removed in autoconf 3.0.
1324     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328     ;;
1329
1330   esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335   { echo "$as_me: error: missing argument to $ac_option" >&2
1336    { (exit 1); exit 1; }; }
1337 fi
1338
1339 # Be sure to have absolute directory names.
1340 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341                 datadir sysconfdir sharedstatedir localstatedir includedir \
1342                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343                 libdir localedir mandir
1344 do
1345   eval ac_val=\$$ac_var
1346   case $ac_val in
1347     [\\/$]* | ?:[\\/]* )  continue;;
1348     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349   esac
1350   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351    { (exit 1); exit 1; }; }
1352 done
1353
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1360
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363   if test "x$build_alias" = x; then
1364     cross_compiling=maybe
1365     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366     If a cross compiler is detected then cross compile mode will be used." >&2
1367   elif test "x$build_alias" != "x$host_alias"; then
1368     cross_compiling=yes
1369   fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381   { echo "$as_me: error: Working directory cannot be determined" >&2
1382    { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384   { echo "$as_me: error: pwd does not report name of working directory" >&2
1385    { (exit 1); exit 1; }; }
1386
1387
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390   ac_srcdir_defaulted=yes
1391   # Try the directory containing this script, then the parent directory.
1392   ac_confdir=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394          X"$0" : 'X\(//\)[^/]' \| \
1395          X"$0" : 'X\(//\)$' \| \
1396          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1397 echo X"$0" |
1398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)[^/].*/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)$/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\).*/{
1411             s//\1/
1412             q
1413           }
1414           s/.*/./; q'`
1415   srcdir=$ac_confdir
1416   if test ! -r "$srcdir/$ac_unique_file"; then
1417     srcdir=..
1418   fi
1419 else
1420   ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425    { (exit 1); exit 1; }; }
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430    { (exit 1); exit 1; }; }
1431         pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434   srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_env_${ac_var}_value=\$${ac_var}
1445   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1448
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453   # Omit some internal or obsolete options to make the list less imposing.
1454   # This message is too long to be a string in the A/UX 3.1 sh.
1455   cat <<_ACEOF
1456 \`configure' configures llvm 2.1svn to adapt to many kinds of systems.
1457
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE.  See below for descriptions of some of the useful variables.
1462
1463 Defaults for the options are specified in brackets.
1464
1465 Configuration:
1466   -h, --help              display this help and exit
1467       --help=short        display options specific to this package
1468       --help=recursive    display the short help of all the included packages
1469   -V, --version           display version information and exit
1470   -q, --quiet, --silent   do not print \`checking...' messages
1471       --cache-file=FILE   cache test results in FILE [disabled]
1472   -C, --config-cache      alias for \`--cache-file=config.cache'
1473   -n, --no-create         do not create output files
1474       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1475
1476 Installation directories:
1477   --prefix=PREFIX         install architecture-independent files in PREFIX
1478                           [$ac_default_prefix]
1479   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1480                           [PREFIX]
1481
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1486
1487 For better control, use the options below.
1488
1489 Fine tuning of the installation directories:
1490   --bindir=DIR           user executables [EPREFIX/bin]
1491   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1492   --libexecdir=DIR       program executables [EPREFIX/libexec]
1493   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1494   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1495   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1496   --libdir=DIR           object code libraries [EPREFIX/lib]
1497   --includedir=DIR       C header files [PREFIX/include]
1498   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1499   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1500   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1501   --infodir=DIR          info documentation [DATAROOTDIR/info]
1502   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1503   --mandir=DIR           man documentation [DATAROOTDIR/man]
1504   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1505   --htmldir=DIR          html documentation [DOCDIR]
1506   --dvidir=DIR           dvi documentation [DOCDIR]
1507   --pdfdir=DIR           pdf documentation [DOCDIR]
1508   --psdir=DIR            ps documentation [DOCDIR]
1509 _ACEOF
1510
1511   cat <<\_ACEOF
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516   --target=TARGET   configure for building compilers for TARGET [HOST]
1517 _ACEOF
1518 fi
1519
1520 if test -n "$ac_init_help"; then
1521   case $ac_init_help in
1522      short | recursive ) echo "Configuration of llvm 2.1svn:";;
1523    esac
1524   cat <<\_ACEOF
1525
1526 Optional Features:
1527   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529   --enable-optimized
1530   --enable-assertions
1531   --enable-expensive-checks
1532
1533   --enable-debug-runtime
1534   --enable-jit            Enable Just In Time Compiling (default is YES)
1535   --enable-doxygen        Build doxygen documentation (default is NO)
1536   --enable-threads        Use threads if available (default is YES)
1537   --enable-pic            Build LLVM with Position Independent Code (default
1538                           is NO)
1539   --enable-targets        Build specific host targets:
1540                           all,host-only,{target-name} (default=all)
1541   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1542                           %a (default is YES)
1543   --enable-ltdl-install   install libltdl
1544   --enable-shared[=PKGS]  build shared libraries
1545                           [default=enable_shared_default]
1546   --enable-static[=PKGS]  build static libraries
1547                           [default=enable_static_default]
1548   --enable-fast-install[=PKGS]
1549                           optimize for fast installation
1550                           [default=enable_Fast_install_default]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552
1553 Optional Packages:
1554   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1557                           searches PATH)
1558   --with-extra-options    Specify addtional options to compile LLVM with
1559   --with-tclinclude       directory where tcl headers are
1560   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1561   --with-pic              try to use only PIC/non-PIC objects [default=use
1562                           both]
1563   --with-tags[=TAGS]      include additional configurations [automatic]
1564   --with-udis86=<path>    Use udis86 external x86 disassembler library
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572               you have headers in a nonstandard directory <include dir>
1573   CPP         C preprocessor
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1577               the first program found out of: `bison -y', `byacc', `yacc'.
1578   YFLAGS      The list of arguments that will be passed by default to $YACC.
1579               This script will default YFLAGS to the empty string to avoid a
1580               default value of `-d' given by some make applications.
1581   CXXCPP      C++ preprocessor
1582   F77         Fortran 77 compiler command
1583   FFLAGS      Fortran 77 compiler flags
1584
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to <llvmbugs@cs.uiuc.edu>.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594   # If there are subdirs, report their specific --help.
1595   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596     test -d "$ac_dir" || continue
1597     ac_builddir=.
1598
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *)
1602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1603   # A ".." for each directory in $ac_dir_suffix.
1604   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1605   case $ac_top_builddir_sub in
1606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608   esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1614
1615 case $srcdir in
1616   .)  # We are building in place.
1617     ac_srcdir=.
1618     ac_top_srcdir=$ac_top_builddir_sub
1619     ac_abs_top_srcdir=$ac_pwd ;;
1620   [\\/]* | ?:[\\/]* )  # Absolute name.
1621     ac_srcdir=$srcdir$ac_dir_suffix;
1622     ac_top_srcdir=$srcdir
1623     ac_abs_top_srcdir=$srcdir ;;
1624   *) # Relative name.
1625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626     ac_top_srcdir=$ac_top_build_prefix$srcdir
1627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631     cd "$ac_dir" || { ac_status=$?; continue; }
1632     # Check for guested configure.
1633     if test -f "$ac_srcdir/configure.gnu"; then
1634       echo &&
1635       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636     elif test -f "$ac_srcdir/configure"; then
1637       echo &&
1638       $SHELL "$ac_srcdir/configure" --help=recursive
1639     else
1640       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641     fi || ac_status=$?
1642     cd "$ac_pwd" || { ac_status=$?; break; }
1643   done
1644 fi
1645
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648   cat <<\_ACEOF
1649 llvm configure 2.1svn
1650 generated by GNU Autoconf 2.60
1651
1652 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1653 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656
1657 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1658 _ACEOF
1659   exit
1660 fi
1661 cat >config.log <<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1664
1665 It was created by llvm $as_me 2.1svn, which was
1666 generated by GNU Autoconf 2.60.  Invocation command line was
1667
1668   $ $0 $@
1669
1670 _ACEOF
1671 exec 5>>config.log
1672 {
1673 cat <<_ASUNAME
1674 ## --------- ##
1675 ## Platform. ##
1676 ## --------- ##
1677
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1686
1687 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1688 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1691 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1692 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1693 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1694
1695 _ASUNAME
1696
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   echo "PATH: $as_dir"
1703 done
1704 IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 cat >&5 <<_ACEOF
1709
1710
1711 ## ----------- ##
1712 ## Core tests. ##
1713 ## ----------- ##
1714
1715 _ACEOF
1716
1717
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1723 ac_configure_args=
1724 ac_configure_args0=
1725 ac_configure_args1=
1726 ac_must_keep_next=false
1727 for ac_pass in 1 2
1728 do
1729   for ac_arg
1730   do
1731     case $ac_arg in
1732     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734     | -silent | --silent | --silen | --sile | --sil)
1735       continue ;;
1736     *\'*)
1737       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738     esac
1739     case $ac_pass in
1740     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741     2)
1742       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743       if test $ac_must_keep_next = true; then
1744         ac_must_keep_next=false # Got value, back to normal.
1745       else
1746         case $ac_arg in
1747           *=* | --config-cache | -C | -disable-* | --disable-* \
1748           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750           | -with-* | --with-* | -without-* | --without-* | --x)
1751             case "$ac_configure_args0 " in
1752               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753             esac
1754             ;;
1755           -* ) ac_must_keep_next=true ;;
1756         esac
1757       fi
1758       ac_configure_args="$ac_configure_args '$ac_arg'"
1759       ;;
1760     esac
1761   done
1762 done
1763 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log.  We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772   # Save into config.log some information that might help in debugging.
1773   {
1774     echo
1775
1776     cat <<\_ASBOX
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1780 _ASBOX
1781     echo
1782     # The following way of writing the cache mishandles newlines in values,
1783 (
1784   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785     eval ac_val=\$$ac_var
1786     case $ac_val in #(
1787     *${as_nl}*)
1788       case $ac_var in #(
1789       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1791       esac
1792       case $ac_var in #(
1793       _ | IFS | as_nl) ;; #(
1794       *) $as_unset $ac_var ;;
1795       esac ;;
1796     esac
1797   done
1798   (set) 2>&1 |
1799     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800     *${as_nl}ac_space=\ *)
1801       sed -n \
1802         "s/'\''/'\''\\\\'\'''\''/g;
1803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804       ;; #(
1805     *)
1806       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807       ;;
1808     esac |
1809     sort
1810 )
1811     echo
1812
1813     cat <<\_ASBOX
1814 ## ----------------- ##
1815 ## Output variables. ##
1816 ## ----------------- ##
1817 _ASBOX
1818     echo
1819     for ac_var in $ac_subst_vars
1820     do
1821       eval ac_val=\$$ac_var
1822       case $ac_val in
1823       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824       esac
1825       echo "$ac_var='\''$ac_val'\''"
1826     done | sort
1827     echo
1828
1829     if test -n "$ac_subst_files"; then
1830       cat <<\_ASBOX
1831 ## ------------------- ##
1832 ## File substitutions. ##
1833 ## ------------------- ##
1834 _ASBOX
1835       echo
1836       for ac_var in $ac_subst_files
1837       do
1838         eval ac_val=\$$ac_var
1839         case $ac_val in
1840         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841         esac
1842         echo "$ac_var='\''$ac_val'\''"
1843       done | sort
1844       echo
1845     fi
1846
1847     if test -s confdefs.h; then
1848       cat <<\_ASBOX
1849 ## ----------- ##
1850 ## confdefs.h. ##
1851 ## ----------- ##
1852 _ASBOX
1853       echo
1854       cat confdefs.h
1855       echo
1856     fi
1857     test "$ac_signal" != 0 &&
1858       echo "$as_me: caught signal $ac_signal"
1859     echo "$as_me: exit $exit_status"
1860   } >&5
1861   rm -f core *.core core.conftest.* &&
1862     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1863     exit $exit_status
1864 ' 0
1865 for ac_signal in 1 2 13 15; do
1866   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867 done
1868 ac_signal=0
1869
1870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1871 rm -f -r conftest* confdefs.h
1872
1873 # Predefined preprocessor variables.
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_NAME "$PACKAGE_NAME"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_STRING "$PACKAGE_STRING"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897 _ACEOF
1898
1899
1900 # Let the site file select an alternate cache file if it wants to.
1901 # Prefer explicitly selected file to automatically selected ones.
1902 if test -n "$CONFIG_SITE"; then
1903   set x "$CONFIG_SITE"
1904 elif test "x$prefix" != xNONE; then
1905   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1906 else
1907   set x "$ac_default_prefix/share/config.site" \
1908         "$ac_default_prefix/etc/config.site"
1909 fi
1910 shift
1911 for ac_site_file
1912 do
1913   if test -r "$ac_site_file"; then
1914     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1915 echo "$as_me: loading site script $ac_site_file" >&6;}
1916     sed 's/^/| /' "$ac_site_file" >&5
1917     . "$ac_site_file"
1918   fi
1919 done
1920
1921 if test -r "$cache_file"; then
1922   # Some versions of bash will fail to source /dev/null (special
1923   # files actually), so we avoid doing that.
1924   if test -f "$cache_file"; then
1925     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1926 echo "$as_me: loading cache $cache_file" >&6;}
1927     case $cache_file in
1928       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929       *)                      . "./$cache_file";;
1930     esac
1931   fi
1932 else
1933   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1934 echo "$as_me: creating cache $cache_file" >&6;}
1935   >$cache_file
1936 fi
1937
1938 # Check that the precious variables saved in the cache have kept the same
1939 # value.
1940 ac_cache_corrupted=false
1941 for ac_var in $ac_precious_vars; do
1942   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943   eval ac_new_set=\$ac_env_${ac_var}_set
1944   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1945   eval ac_new_val=\$ac_env_${ac_var}_value
1946   case $ac_old_set,$ac_new_set in
1947     set,)
1948       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950       ac_cache_corrupted=: ;;
1951     ,set)
1952       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954       ac_cache_corrupted=: ;;
1955     ,);;
1956     *)
1957       if test "x$ac_old_val" != "x$ac_new_val"; then
1958         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1961 echo "$as_me:   former value:  $ac_old_val" >&2;}
1962         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1963 echo "$as_me:   current value: $ac_new_val" >&2;}
1964         ac_cache_corrupted=:
1965       fi;;
1966   esac
1967   # Pass precious variables to config.status.
1968   if test "$ac_new_set" = set; then
1969     case $ac_new_val in
1970     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1971     *) ac_arg=$ac_var=$ac_new_val ;;
1972     esac
1973     case " $ac_configure_args " in
1974       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1975       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1976     esac
1977   fi
1978 done
1979 if $ac_cache_corrupted; then
1980   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1981 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1982   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1983 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984    { (exit 1); exit 1; }; }
1985 fi
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016
2017
2018
2019 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2020
2021
2022
2023
2024
2025
2026
2027 ac_aux_dir=
2028 for ac_dir in autoconf "$srcdir"/autoconf; do
2029   if test -f "$ac_dir/install-sh"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/install-sh -c"
2032     break
2033   elif test -f "$ac_dir/install.sh"; then
2034     ac_aux_dir=$ac_dir
2035     ac_install_sh="$ac_aux_dir/install.sh -c"
2036     break
2037   elif test -f "$ac_dir/shtool"; then
2038     ac_aux_dir=$ac_dir
2039     ac_install_sh="$ac_aux_dir/shtool install -c"
2040     break
2041   fi
2042 done
2043 if test -z "$ac_aux_dir"; then
2044   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2056
2057
2058
2059 if test ${srcdir} != "." ; then
2060   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2061     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2062 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2063    { (exit 1); exit 1; }; }
2064   fi
2065 fi
2066
2067 for i in `ls ${srcdir}/projects`
2068 do
2069   if test -d ${srcdir}/projects/${i} ; then
2070     case ${i} in
2071       CVS) ;;
2072       sample)       subdirs="$subdirs projects/sample"
2073     ;;
2074       privbracket)  subdirs="$subdirs projects/privbracket"
2075  ;;
2076       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2077  ;;
2078       llvm-test)    subdirs="$subdirs projects/llvm-test"
2079  ;;
2080       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2081 ;;
2082       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2083   ;;
2084       llvm-java)    subdirs="$subdirs projects/llvm-java"
2085  ;;
2086       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2087    ;;
2088       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2089  ;;
2090       poolalloc)    subdirs="$subdirs projects/poolalloc"
2091  ;;
2092       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2093  ;;
2094       *)
2095         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2096 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2097         ;;
2098     esac
2099   fi
2100 done
2101
2102
2103 # Make sure we can run config.sub.
2104 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2105   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 { echo "$as_me:$LINENO: checking build system type" >&5
2110 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2111 if test "${ac_cv_build+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   ac_build_alias=$build_alias
2115 test "x$ac_build_alias" = x &&
2116   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117 test "x$ac_build_alias" = x &&
2118   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120    { (exit 1); exit 1; }; }
2121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2122   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2124    { (exit 1); exit 1; }; }
2125
2126 fi
2127 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2128 echo "${ECHO_T}$ac_cv_build" >&6; }
2129 case $ac_cv_build in
2130 *-*-*) ;;
2131 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132 echo "$as_me: error: invalid value of canonical build" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 build=$ac_cv_build
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_build
2138 shift
2139 build_cpu=$1
2140 build_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 build_os=$*
2145 IFS=$ac_save_IFS
2146 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2147
2148
2149 { echo "$as_me:$LINENO: checking host system type" >&5
2150 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_host+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   if test "x$host_alias" = x; then
2155   ac_cv_host=$ac_cv_build
2156 else
2157   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161 fi
2162
2163 fi
2164 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165 echo "${ECHO_T}$ac_cv_host" >&6; }
2166 case $ac_cv_host in
2167 *-*-*) ;;
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169 echo "$as_me: error: invalid value of canonical host" >&2;}
2170    { (exit 1); exit 1; }; };;
2171 esac
2172 host=$ac_cv_host
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_host
2175 shift
2176 host_cpu=$1
2177 host_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 host_os=$*
2182 IFS=$ac_save_IFS
2183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2184
2185
2186 { echo "$as_me:$LINENO: checking target system type" >&5
2187 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_target+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test "x$target_alias" = x; then
2192   ac_cv_target=$ac_cv_host
2193 else
2194   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2195     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2197    { (exit 1); exit 1; }; }
2198 fi
2199
2200 fi
2201 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2202 echo "${ECHO_T}$ac_cv_target" >&6; }
2203 case $ac_cv_target in
2204 *-*-*) ;;
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2206 echo "$as_me: error: invalid value of canonical target" >&2;}
2207    { (exit 1); exit 1; }; };;
2208 esac
2209 target=$ac_cv_target
2210 ac_save_IFS=$IFS; IFS='-'
2211 set x $ac_cv_target
2212 shift
2213 target_cpu=$1
2214 target_vendor=$2
2215 shift; shift
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2218 target_os=$*
2219 IFS=$ac_save_IFS
2220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2221
2222
2223 # The aliases save the names the user supplied, while $host etc.
2224 # will get canonicalized.
2225 test -n "$target_alias" &&
2226   test "$program_prefix$program_suffix$program_transform_name" = \
2227     NONENONEs,x,x, &&
2228   program_prefix=${target_alias}-
2229
2230 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2231 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2232 if test "${llvm_cv_os_type+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   case $host in
2236   *-*-aix*)
2237     llvm_cv_link_all_option="-Wl,--whole-archive"
2238     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239     llvm_cv_os_type="AIX"
2240     llvm_cv_platform_type="Unix" ;;
2241   *-*-irix*)
2242     llvm_cv_link_all_option="-Wl,--whole-archive"
2243     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244     llvm_cv_os_type="IRIX"
2245     llvm_cv_platform_type="Unix" ;;
2246   *-*-cygwin*)
2247     llvm_cv_link_all_option="-Wl,--whole-archive"
2248     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249     llvm_cv_os_type="Cygwin"
2250     llvm_cv_platform_type="Unix" ;;
2251   *-*-darwin*)
2252     llvm_cv_link_all_option="-Wl,-all_load"
2253     llvm_cv_link_all_option="-Wl,-noall_load"
2254     llvm_cv_os_type="Darwin"
2255     llvm_cv_platform_type="Unix" ;;
2256   *-*-freebsd*)
2257     llvm_cv_link_all_option="-Wl,--whole-archive"
2258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259     llvm_cv_os_type="FreeBSD"
2260     llvm_cv_platform_type="Unix" ;;
2261   *-*-openbsd*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="OpenBSD"
2265     llvm_cv_platform_type="Unix" ;;
2266   *-*-netbsd*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="NetBSD"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-hpux*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="HP-UX"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-interix*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="Interix"
2280     llvm_cv_platform_type="Unix" ;;
2281   *-*-linux*)
2282     llvm_cv_link_all_option="-Wl,--whole-archive"
2283     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284     llvm_cv_os_type="Linux"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-solaris*)
2287     llvm_cv_link_all_option="-Wl,-z,allextract"
2288     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2289     llvm_cv_os_type="SunOS"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-win32*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="Win32"
2295     llvm_cv_platform_type="Win32" ;;
2296   *-*-mingw*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="MingW"
2300     llvm_cv_platform_type="Win32" ;;
2301   *)
2302     llvm_cv_link_all_option=""
2303     llvm_cv_no_link_all_option=""
2304     llvm_cv_os_type="Unknown"
2305     llvm_cv_platform_type="Unknown" ;;
2306 esac
2307 fi
2308 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2309 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2310
2311 if test "$llvm_cv_os_type" = "Unknown" ; then
2312   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2313 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 OS=$llvm_cv_os_type
2318
2319
2320 LINKALL=$llvm_cv_link_all_option
2321
2322 NOLINKALL=$llvm_cv_no_link_all_option
2323
2324
2325 case $llvm_cv_platform_type in
2326   Unix)
2327
2328 cat >>confdefs.h <<\_ACEOF
2329 #define LLVM_ON_UNIX 1
2330 _ACEOF
2331
2332     LLVM_ON_UNIX=1
2333
2334     LLVM_ON_WIN32=0
2335
2336     ;;
2337   Win32)
2338
2339 cat >>confdefs.h <<\_ACEOF
2340 #define LLVM_ON_WIN32 1
2341 _ACEOF
2342
2343     LLVM_ON_UNIX=0
2344
2345     LLVM_ON_WIN32=1
2346
2347     ;;
2348 esac
2349
2350 { echo "$as_me:$LINENO: checking target architecture" >&5
2351 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2352 if test "${llvm_cv_target_arch+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   case $target in
2356   i?86-*)                 llvm_cv_target_arch="x86" ;;
2357   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2358   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2359   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2360   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2361   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2362   arm-*)                  llvm_cv_target_arch="ARM" ;;
2363   *)                      llvm_cv_target_arch="Unknown" ;;
2364 esac
2365 fi
2366 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2367 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2368
2369 if test "$llvm_cv_target_arch" = "Unknown" ; then
2370   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2371 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2372 fi
2373
2374 ARCH=$llvm_cv_target_arch
2375
2376
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382 if test -n "$ac_tool_prefix"; then
2383   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$CC"; then
2391   ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2400     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2407
2408 fi
2409 fi
2410 CC=$ac_cv_prog_CC
2411 if test -n "$CC"; then
2412   { echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6; }
2414 else
2415   { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417 fi
2418
2419
2420 fi
2421 if test -z "$ac_cv_prog_CC"; then
2422   ac_ct_CC=$CC
2423   # Extract the first word of "gcc", so it can be a program name with args.
2424 set dummy gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   if test -n "$ac_ct_CC"; then
2431   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   for ac_exec_ext in '' $ac_executable_extensions; do
2439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2440     ac_cv_prog_ac_ct_CC="gcc"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451 if test -n "$ac_ct_CC"; then
2452   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453 echo "${ECHO_T}$ac_ct_CC" >&6; }
2454 else
2455   { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2457 fi
2458
2459   if test "x$ac_ct_CC" = x; then
2460     CC=""
2461   else
2462     case $cross_compiling:$ac_tool_warned in
2463 yes:)
2464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet.  If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&5
2467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet.  If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2470 ac_tool_warned=yes ;;
2471 esac
2472     CC=$ac_ct_CC
2473   fi
2474 else
2475   CC="$ac_cv_prog_CC"
2476 fi
2477
2478 if test -z "$CC"; then
2479           if test -n "$ac_tool_prefix"; then
2480     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}cc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_CC+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$CC"; then
2488   ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_CC="${ac_tool_prefix}cc"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 CC=$ac_cv_prog_CC
2508 if test -n "$CC"; then
2509   { echo "$as_me:$LINENO: result: $CC" >&5
2510 echo "${ECHO_T}$CC" >&6; }
2511 else
2512   { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516
2517   fi
2518 fi
2519 if test -z "$CC"; then
2520   # Extract the first word of "cc", so it can be a program name with args.
2521 set dummy cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$CC"; then
2528   ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530   ac_prog_rejected=no
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536   for ac_exec_ext in '' $ac_executable_extensions; do
2537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2538     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2539        ac_prog_rejected=yes
2540        continue
2541      fi
2542     ac_cv_prog_CC="cc"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 if test $ac_prog_rejected = yes; then
2551   # We found a bogon in the path, so make sure we never use it.
2552   set dummy $ac_cv_prog_CC
2553   shift
2554   if test $# != 0; then
2555     # We chose a different compiler from the bogus one.
2556     # However, it has the same basename, so the bogon will be chosen
2557     # first if we set CC to just the basename; use the full file name.
2558     shift
2559     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2560   fi
2561 fi
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569   { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2571 fi
2572
2573
2574 fi
2575 if test -z "$CC"; then
2576   if test -n "$ac_tool_prefix"; then
2577   for ac_prog in cl.exe
2578   do
2579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if test -n "$CC"; then
2587   ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608   { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2610 else
2611   { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2613 fi
2614
2615
2616     test -n "$CC" && break
2617   done
2618 fi
2619 if test -z "$CC"; then
2620   ac_ct_CC=$CC
2621   for ac_prog in cl.exe
2622 do
2623   # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_CC"; then
2631   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_CC="$ac_prog"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659
2660   test -n "$ac_ct_CC" && break
2661 done
2662
2663   if test "x$ac_ct_CC" = x; then
2664     CC=""
2665   else
2666     case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet.  If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&5
2671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet.  If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2674 ac_tool_warned=yes ;;
2675 esac
2676     CC=$ac_ct_CC
2677   fi
2678 fi
2679
2680 fi
2681
2682
2683 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&2;}
2687    { (exit 1); exit 1; }; }
2688
2689 # Provide some information about the compiler.
2690 echo "$as_me:$LINENO: checking for C compiler version" >&5
2691 ac_compiler=`set X $ac_compile; echo $2`
2692 { (ac_try="$ac_compiler --version >&5"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compiler --version >&5") 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }
2702 { (ac_try="$ac_compiler -v >&5"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_compiler -v >&5") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }
2712 { (ac_try="$ac_compiler -V >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler -V >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 ac_clean_files_save=$ac_clean_files
2739 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2740 # Try to create an executable without -o first, disregard a.out.
2741 # It will help us diagnose broken compilers, and finding out an intuition
2742 # of exeext.
2743 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2744 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2745 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2746 #
2747 # List of possible output files, starting from the most likely.
2748 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2749 # only as a last resort.  b.out is created by i960 compilers.
2750 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2751 #
2752 # The IRIX 6 linker writes into existing files which may not be
2753 # executable, retaining their permissions.  Remove them first so a
2754 # subsequent execution test works.
2755 ac_rmfiles=
2756 for ac_file in $ac_files
2757 do
2758   case $ac_file in
2759     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2760     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2761   esac
2762 done
2763 rm -f $ac_rmfiles
2764
2765 if { (ac_try="$ac_link_default"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_link_default") 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; then
2775   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2776 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2777 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2778 # so that the user can short-circuit this test for compilers unknown to
2779 # Autoconf.
2780 for ac_file in $ac_files
2781 do
2782   test -f "$ac_file" || continue
2783   case $ac_file in
2784     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2785         ;;
2786     [ab].out )
2787         # We found the default executable, but exeext='' is most
2788         # certainly right.
2789         break;;
2790     *.* )
2791         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2792         then :; else
2793            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2794         fi
2795         # We set ac_cv_exeext here because the later test for it is not
2796         # safe: cross compilers may not add the suffix if given an `-o'
2797         # argument, so we may need to know it at that point already.
2798         # Even if this section looks crufty: it has the advantage of
2799         # actually working.
2800         break;;
2801     * )
2802         break;;
2803   esac
2804 done
2805 test "$ac_cv_exeext" = no && ac_cv_exeext=
2806
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: C compiler cannot create executables
2814 See \`config.log' for more details." >&2;}
2815    { (exit 77); exit 77; }; }
2816 fi
2817
2818 ac_exeext=$ac_cv_exeext
2819 { echo "$as_me:$LINENO: result: $ac_file" >&5
2820 echo "${ECHO_T}$ac_file" >&6; }
2821
2822 # Check that the compiler produces executables we can run.  If not, either
2823 # the compiler is broken, or we cross compile.
2824 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2827 # If not cross compiling, check that we can run a simple program.
2828 if test "$cross_compiling" != yes; then
2829   if { ac_try='./$ac_file'
2830   { (case "(($ac_try" in
2831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832   *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835   (eval "$ac_try") 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839     cross_compiling=no
2840   else
2841     if test "$cross_compiling" = maybe; then
2842         cross_compiling=yes
2843     else
2844         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2845 If you meant to cross compile, use \`--host'.
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&2;}
2850    { (exit 1); exit 1; }; }
2851     fi
2852   fi
2853 fi
2854 { echo "$as_me:$LINENO: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6; }
2856
2857 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2858 ac_clean_files=$ac_clean_files_save
2859 # Check that the compiler produces executables we can run.  If not, either
2860 # the compiler is broken, or we cross compile.
2861 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2862 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2863 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2864 echo "${ECHO_T}$cross_compiling" >&6; }
2865
2866 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2867 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2868 if { (ac_try="$ac_link"
2869 case "(($ac_try" in
2870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871   *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874   (eval "$ac_link") 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; then
2878   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2879 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2880 # work properly (i.e., refer to `conftest.exe'), while it won't with
2881 # `rm'.
2882 for ac_file in conftest.exe conftest conftest.*; do
2883   test -f "$ac_file" || continue
2884   case $ac_file in
2885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2886     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2887           break;;
2888     * ) break;;
2889   esac
2890 done
2891 else
2892   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }
2897 fi
2898
2899 rm -f conftest$ac_cv_exeext
2900 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2901 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2902
2903 rm -f conftest.$ac_ext
2904 EXEEXT=$ac_cv_exeext
2905 ac_exeext=$EXEEXT
2906 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2907 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2908 if test "${ac_cv_objext+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.o conftest.obj
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compile") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; then
2937   for ac_file in conftest.o conftest.obj conftest.*; do
2938   test -f "$ac_file" || continue;
2939   case $ac_file in
2940     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2941     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942        break;;
2943   esac
2944 done
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." >&2;}
2953    { (exit 1); exit 1; }; }
2954 fi
2955
2956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2957 fi
2958 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2959 echo "${ECHO_T}$ac_cv_objext" >&6; }
2960 OBJEXT=$ac_cv_objext
2961 ac_objext=$OBJEXT
2962 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977 #ifndef __GNUC__
2978        choke me
2979 #endif
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } &&
2999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3000   { (case "(($ac_try" in
3001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002   *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005   (eval "$ac_try") 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; } &&
3009          { ac_try='test -s conftest.$ac_objext'
3010   { (case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_try") 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; }; then
3019   ac_compiler_gnu=yes
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024         ac_compiler_gnu=no
3025 fi
3026
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3029
3030 fi
3031 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3033 GCC=`test $ac_compiler_gnu = yes && echo yes`
3034 ac_test_CFLAGS=${CFLAGS+set}
3035 ac_save_CFLAGS=$CFLAGS
3036 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3037 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_cc_g+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   ac_save_c_werror_flag=$ac_c_werror_flag
3042    ac_c_werror_flag=yes
3043    ac_cv_prog_cc_g=no
3044    CFLAGS="-g"
3045    cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   ac_cv_prog_cc_g=yes
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099         CFLAGS=""
3100       cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_compile") 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130   { (case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_try") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   :
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         ac_c_werror_flag=$ac_save_c_werror_flag
3155          CFLAGS="-g"
3156          cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_compile") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } &&
3185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3186   { (case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_try") 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }; } &&
3195          { ac_try='test -s conftest.$ac_objext'
3196   { (case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_try") 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; }; then
3205   ac_cv_prog_cc_g=yes
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220    ac_c_werror_flag=$ac_save_c_werror_flag
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3224 if test "$ac_test_CFLAGS" = set; then
3225   CFLAGS=$ac_save_CFLAGS
3226 elif test $ac_cv_prog_cc_g = yes; then
3227   if test "$GCC" = yes; then
3228     CFLAGS="-g -O2"
3229   else
3230     CFLAGS="-g"
3231   fi
3232 else
3233   if test "$GCC" = yes; then
3234     CFLAGS="-O2"
3235   else
3236     CFLAGS=
3237   fi
3238 fi
3239 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3240 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3241 if test "${ac_cv_prog_cc_c89+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   ac_cv_prog_cc_c89=no
3245 ac_save_CC=$CC
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h.  */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h.  */
3252 #include <stdarg.h>
3253 #include <stdio.h>
3254 #include <sys/types.h>
3255 #include <sys/stat.h>
3256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3257 struct buf { int x; };
3258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3259 static char *e (p, i)
3260      char **p;
3261      int i;
3262 {
3263   return p[i];
3264 }
3265 static char *f (char * (*g) (char **, int), char **p, ...)
3266 {
3267   char *s;
3268   va_list v;
3269   va_start (v,p);
3270   s = g (p, va_arg (v,int));
3271   va_end (v);
3272   return s;
3273 }
3274
3275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3276    function prototypes and stuff, but not '\xHH' hex character constants.
3277    These don't provoke an error unfortunately, instead are silently treated
3278    as 'x'.  The following induces an error, until -std is added to get
3279    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3280    array size at least.  It's necessary to write '\x00'==0 to get something
3281    that's true only with -std.  */
3282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3283
3284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3285    inside strings and character constants.  */
3286 #define FOO(x) 'x'
3287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3288
3289 int test (int i, double x);
3290 struct s1 {int (*f) (int a);};
3291 struct s2 {int (*f) (double a);};
3292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293 int argc;
3294 char **argv;
3295 int
3296 main ()
3297 {
3298 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3304         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3305 do
3306   CC="$ac_save_CC $ac_arg"
3307   rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_compile") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } &&
3321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322   { (case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; } &&
3331          { ac_try='test -s conftest.$ac_objext'
3332   { (case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_try") 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341   ac_cv_prog_cc_c89=$ac_arg
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346
3347 fi
3348
3349 rm -f core conftest.err conftest.$ac_objext
3350   test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 done
3352 rm -f conftest.$ac_ext
3353 CC=$ac_save_CC
3354
3355 fi
3356 # AC_CACHE_VAL
3357 case "x$ac_cv_prog_cc_c89" in
3358   x)
3359     { echo "$as_me:$LINENO: result: none needed" >&5
3360 echo "${ECHO_T}none needed" >&6; } ;;
3361   xno)
3362     { echo "$as_me:$LINENO: result: unsupported" >&5
3363 echo "${ECHO_T}unsupported" >&6; } ;;
3364   *)
3365     CC="$CC $ac_cv_prog_cc_c89"
3366     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3368 esac
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
3377
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3384 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3385 # On Suns, sometimes $CPP names a directory.
3386 if test -n "$CPP" && test -d "$CPP"; then
3387   CPP=
3388 fi
3389 if test -z "$CPP"; then
3390   if test "${ac_cv_prog_CPP+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393       # Double quotes because CPP needs to be expanded
3394     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3395     do
3396       ac_preproc_ok=false
3397 for ac_c_preproc_warn_flag in '' yes
3398 do
3399   # Use a header file that comes with gcc, so configuring glibc
3400   # with a fresh cross-compiler works.
3401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402   # <limits.h> exists even on freestanding compilers.
3403   # On the NeXT, cc -E runs the code through the compiler's parser,
3404   # not just through cpp. "Syntax error" is here to catch this case.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411 #ifdef __STDC__
3412 # include <limits.h>
3413 #else
3414 # include <assert.h>
3415 #endif
3416                      Syntax error
3417 _ACEOF
3418 if { (ac_try="$ac_cpp conftest.$ac_ext"
3419 case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } >/dev/null; then
3431   if test -s conftest.err; then
3432     ac_cpp_err=$ac_c_preproc_warn_flag
3433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434   else
3435     ac_cpp_err=
3436   fi
3437 else
3438   ac_cpp_err=yes
3439 fi
3440 if test -z "$ac_cpp_err"; then
3441   :
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446   # Broken: fails on valid input.
3447 continue
3448 fi
3449
3450 rm -f conftest.err conftest.$ac_ext
3451
3452   # OK, works on sane cases.  Now check whether nonexistent headers
3453   # can be detected and how.
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #include <ac_nonexistent.h>
3461 _ACEOF
3462 if { (ac_try="$ac_cpp conftest.$ac_ext"
3463 case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469   ac_status=$?
3470   grep -v '^ *+' conftest.er1 >conftest.err
3471   rm -f conftest.er1
3472   cat conftest.err >&5
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } >/dev/null; then
3475   if test -s conftest.err; then
3476     ac_cpp_err=$ac_c_preproc_warn_flag
3477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478   else
3479     ac_cpp_err=
3480   fi
3481 else
3482   ac_cpp_err=yes
3483 fi
3484 if test -z "$ac_cpp_err"; then
3485   # Broken: success on invalid input.
3486 continue
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491   # Passes both tests.
3492 ac_preproc_ok=:
3493 break
3494 fi
3495
3496 rm -f conftest.err conftest.$ac_ext
3497
3498 done
3499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500 rm -f conftest.err conftest.$ac_ext
3501 if $ac_preproc_ok; then
3502   break
3503 fi
3504
3505     done
3506     ac_cv_prog_CPP=$CPP
3507
3508 fi
3509   CPP=$ac_cv_prog_CPP
3510 else
3511   ac_cv_prog_CPP=$CPP
3512 fi
3513 { echo "$as_me:$LINENO: result: $CPP" >&5
3514 echo "${ECHO_T}$CPP" >&6; }
3515 ac_preproc_ok=false
3516 for ac_c_preproc_warn_flag in '' yes
3517 do
3518   # Use a header file that comes with gcc, so configuring glibc
3519   # with a fresh cross-compiler works.
3520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521   # <limits.h> exists even on freestanding compilers.
3522   # On the NeXT, cc -E runs the code through the compiler's parser,
3523   # not just through cpp. "Syntax error" is here to catch this case.
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 #ifdef __STDC__
3531 # include <limits.h>
3532 #else
3533 # include <assert.h>
3534 #endif
3535                      Syntax error
3536 _ACEOF
3537 if { (ac_try="$ac_cpp conftest.$ac_ext"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } >/dev/null; then
3550   if test -s conftest.err; then
3551     ac_cpp_err=$ac_c_preproc_warn_flag
3552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553   else
3554     ac_cpp_err=
3555   fi
3556 else
3557   ac_cpp_err=yes
3558 fi
3559 if test -z "$ac_cpp_err"; then
3560   :
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565   # Broken: fails on valid input.
3566 continue
3567 fi
3568
3569 rm -f conftest.err conftest.$ac_ext
3570
3571   # OK, works on sane cases.  Now check whether nonexistent headers
3572   # can be detected and how.
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #include <ac_nonexistent.h>
3580 _ACEOF
3581 if { (ac_try="$ac_cpp conftest.$ac_ext"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } >/dev/null; then
3594   if test -s conftest.err; then
3595     ac_cpp_err=$ac_c_preproc_warn_flag
3596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597   else
3598     ac_cpp_err=
3599   fi
3600 else
3601   ac_cpp_err=yes
3602 fi
3603 if test -z "$ac_cpp_err"; then
3604   # Broken: success on invalid input.
3605 continue
3606 else
3607   echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610   # Passes both tests.
3611 ac_preproc_ok=:
3612 break
3613 fi
3614
3615 rm -f conftest.err conftest.$ac_ext
3616
3617 done
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.$ac_ext
3620 if $ac_preproc_ok; then
3621   :
3622 else
3623   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3624 See \`config.log' for more details." >&5
3625 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3626 See \`config.log' for more details." >&2;}
3627    { (exit 1); exit 1; }; }
3628 fi
3629
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636
3637 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3638 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3639 if test "${ac_cv_path_GREP+set}" = set; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   # Extract the first word of "grep ggrep" to use in msg output
3643 if test -z "$GREP"; then
3644 set dummy grep ggrep; ac_prog_name=$2
3645 if test "${ac_cv_path_GREP+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_path_GREP_found=false
3649 # Loop through the user's path and test for each of PROGNAME-LIST
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3652 do
3653   IFS=$as_save_IFS
3654   test -z "$as_dir" && as_dir=.
3655   for ac_prog in grep ggrep; do
3656   for ac_exec_ext in '' $ac_executable_extensions; do
3657     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3658     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3659     # Check for GNU ac_path_GREP and select it if it is found.
3660   # Check for GNU $ac_path_GREP
3661 case `"$ac_path_GREP" --version 2>&1` in
3662 *GNU*)
3663   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3664 *)
3665   ac_count=0
3666   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3667   while :
3668   do
3669     cat "conftest.in" "conftest.in" >"conftest.tmp"
3670     mv "conftest.tmp" "conftest.in"
3671     cp "conftest.in" "conftest.nl"
3672     echo 'GREP' >> "conftest.nl"
3673     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3674     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3675     ac_count=`expr $ac_count + 1`
3676     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3677       # Best one so far, save it but keep looking for a better one
3678       ac_cv_path_GREP="$ac_path_GREP"
3679       ac_path_GREP_max=$ac_count
3680     fi
3681     # 10*(2^10) chars as input seems more than enough
3682     test $ac_count -gt 10 && break
3683   done
3684   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685 esac
3686
3687
3688     $ac_path_GREP_found && break 3
3689   done
3690 done
3691
3692 done
3693 IFS=$as_save_IFS
3694
3695
3696 fi
3697
3698 GREP="$ac_cv_path_GREP"
3699 if test -z "$GREP"; then
3700   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3701 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3702    { (exit 1); exit 1; }; }
3703 fi
3704
3705 else
3706   ac_cv_path_GREP=$GREP
3707 fi
3708
3709
3710 fi
3711 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3712 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3713  GREP="$ac_cv_path_GREP"
3714
3715
3716 { echo "$as_me:$LINENO: checking for egrep" >&5
3717 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3718 if test "${ac_cv_path_EGREP+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3722    then ac_cv_path_EGREP="$GREP -E"
3723    else
3724      # Extract the first word of "egrep" to use in msg output
3725 if test -z "$EGREP"; then
3726 set dummy egrep; ac_prog_name=$2
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   ac_path_EGREP_found=false
3731 # Loop through the user's path and test for each of PROGNAME-LIST
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737   for ac_prog in egrep; do
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3740     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3741     # Check for GNU ac_path_EGREP and select it if it is found.
3742   # Check for GNU $ac_path_EGREP
3743 case `"$ac_path_EGREP" --version 2>&1` in
3744 *GNU*)
3745   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3746 *)
3747   ac_count=0
3748   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3749   while :
3750   do
3751     cat "conftest.in" "conftest.in" >"conftest.tmp"
3752     mv "conftest.tmp" "conftest.in"
3753     cp "conftest.in" "conftest.nl"
3754     echo 'EGREP' >> "conftest.nl"
3755     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757     ac_count=`expr $ac_count + 1`
3758     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3759       # Best one so far, save it but keep looking for a better one
3760       ac_cv_path_EGREP="$ac_path_EGREP"
3761       ac_path_EGREP_max=$ac_count
3762     fi
3763     # 10*(2^10) chars as input seems more than enough
3764     test $ac_count -gt 10 && break
3765   done
3766   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767 esac
3768
3769
3770     $ac_path_EGREP_found && break 3
3771   done
3772 done
3773
3774 done
3775 IFS=$as_save_IFS
3776
3777
3778 fi
3779
3780 EGREP="$ac_cv_path_EGREP"
3781 if test -z "$EGREP"; then
3782   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3783 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3784    { (exit 1); exit 1; }; }
3785 fi
3786
3787 else
3788   ac_cv_path_EGREP=$EGREP
3789 fi
3790
3791
3792    fi
3793 fi
3794 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3795 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3796  EGREP="$ac_cv_path_EGREP"
3797
3798
3799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3801 if test "${ac_cv_header_stdc+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h.  */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h.  */
3810 #include <stdlib.h>
3811 #include <stdarg.h>
3812 #include <string.h>
3813 #include <float.h>
3814
3815 int
3816 main ()
3817 {
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 rm -f conftest.$ac_objext
3824 if { (ac_try="$ac_compile"
3825 case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830   (eval "$ac_compile") 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } &&
3837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3838   { (case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843   (eval "$ac_try") 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; } &&
3847          { ac_try='test -s conftest.$ac_objext'
3848   { (case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853   (eval "$ac_try") 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; }; then
3857   ac_cv_header_stdc=yes
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862         ac_cv_header_stdc=no
3863 fi
3864
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866
3867 if test $ac_cv_header_stdc = yes; then
3868   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3869   cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 #include <string.h>
3876
3877 _ACEOF
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879   $EGREP "memchr" >/dev/null 2>&1; then
3880   :
3881 else
3882   ac_cv_header_stdc=no
3883 fi
3884 rm -f conftest*
3885
3886 fi
3887
3888 if test $ac_cv_header_stdc = yes; then
3889   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3890   cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896 #include <stdlib.h>
3897
3898 _ACEOF
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900   $EGREP "free" >/dev/null 2>&1; then
3901   :
3902 else
3903   ac_cv_header_stdc=no
3904 fi
3905 rm -f conftest*
3906
3907 fi
3908
3909 if test $ac_cv_header_stdc = yes; then
3910   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3911   if test "$cross_compiling" = yes; then
3912   :
3913 else
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <ctype.h>
3921 #include <stdlib.h>
3922 #if ((' ' & 0x0FF) == 0x020)
3923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3925 #else
3926 # define ISLOWER(c) \
3927                    (('a' <= (c) && (c) <= 'i') \
3928                      || ('j' <= (c) && (c) <= 'r') \
3929                      || ('s' <= (c) && (c) <= 'z'))
3930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3931 #endif
3932
3933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3934 int
3935 main ()
3936 {
3937   int i;
3938   for (i = 0; i < 256; i++)
3939     if (XOR (islower (i), ISLOWER (i))
3940         || toupper (i) != TOUPPER (i))
3941       return 2;
3942   return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest$ac_exeext
3946 if { (ac_try="$ac_link"
3947 case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952   (eval "$ac_link") 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3956   { (case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_try") 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; }; then
3965   :
3966 else
3967   echo "$as_me: program exited with status $ac_status" >&5
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 ( exit $ac_status )
3972 ac_cv_header_stdc=no
3973 fi
3974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3975 fi
3976
3977
3978 fi
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3981 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3982 if test $ac_cv_header_stdc = yes; then
3983
3984 cat >>confdefs.h <<\_ACEOF
3985 #define STDC_HEADERS 1
3986 _ACEOF
3987
3988 fi
3989
3990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4001                   inttypes.h stdint.h unistd.h
4002 do
4003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 $ac_includes_default
4016
4017 #include <$ac_header>
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4021 case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026   (eval "$ac_compile") 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } &&
4033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4034   { (case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039   (eval "$ac_try") 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; } &&
4043          { ac_try='test -s conftest.$ac_objext'
4044   { (case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049   (eval "$ac_try") 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   eval "$as_ac_Header=yes"
4054 else
4055   echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058         eval "$as_ac_Header=no"
4059 fi
4060
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 fi
4063 ac_res=`eval echo '${'$as_ac_Header'}'`
4064                { echo "$as_me:$LINENO: result: $ac_res" >&5
4065 echo "${ECHO_T}$ac_res" >&6; }
4066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4067   cat >>confdefs.h <<_ACEOF
4068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4069 _ACEOF
4070
4071 fi
4072
4073 done
4074
4075
4076 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4077 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4078 if test "${ac_cv_c_bigendian+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   # See if sys/param.h defines the BYTE_ORDER macro.
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h.  */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h.  */
4088 #include <sys/types.h>
4089 #include <sys/param.h>
4090
4091 int
4092 main ()
4093 {
4094 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4095  bogus endian macros
4096 #endif
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_compile") 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4117   { (case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122   (eval "$ac_try") 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; } &&
4126          { ac_try='test -s conftest.$ac_objext'
4127   { (case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_try") 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; }; then
4136   # It does; now see whether it defined to BIG_ENDIAN or not.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4145
4146 int
4147 main ()
4148 {
4149 #if BYTE_ORDER != BIG_ENDIAN
4150  not big endian
4151 #endif
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_compile") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172   { (case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177   (eval "$ac_try") 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; }; then
4191   ac_cv_c_bigendian=yes
4192 else
4193   echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196         ac_cv_c_bigendian=no
4197 fi
4198
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204         # It does not; compile a test program.
4205 if test "$cross_compiling" = yes; then
4206   # try to guess the endianness by grepping values into an object file
4207   ac_cv_c_bigendian=unknown
4208   cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4215 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4216 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4217 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4218 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4219 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4220 int
4221 main ()
4222 {
4223  _ascii (); _ebcdic ();
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4230 case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_compile") 2>conftest.er1
4236   ac_status=$?
4237   grep -v '^ *+' conftest.er1 >conftest.err
4238   rm -f conftest.er1
4239   cat conftest.err >&5
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); } &&
4242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4243   { (case "(($ac_try" in
4244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245   *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248   (eval "$ac_try") 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; } &&
4252          { ac_try='test -s conftest.$ac_objext'
4253   { (case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_try") 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; }; then
4262   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4263   ac_cv_c_bigendian=yes
4264 fi
4265 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4266   if test "$ac_cv_c_bigendian" = unknown; then
4267     ac_cv_c_bigendian=no
4268   else
4269     # finding both strings is unlikely to happen, but who knows?
4270     ac_cv_c_bigendian=unknown
4271   fi
4272 fi
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277
4278 fi
4279
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 else
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 $ac_includes_default
4289 int
4290 main ()
4291 {
4292
4293   /* Are we little or big endian?  From Harbison&Steele.  */
4294   union
4295   {
4296     long int l;
4297     char c[sizeof (long int)];
4298   } u;
4299   u.l = 1;
4300   return u.c[sizeof (long int) - 1] == 1;
4301
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_link") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317   { (case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   ac_cv_c_bigendian=no
4327 else
4328   echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 ( exit $ac_status )
4333 ac_cv_c_bigendian=yes
4334 fi
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336 fi
4337
4338
4339 fi
4340
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 fi
4343 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4344 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4345 case $ac_cv_c_bigendian in
4346   yes)
4347     ENDIAN=big
4348  ;;
4349   no)
4350     ENDIAN=little
4351  ;;
4352   *)
4353     { { echo "$as_me:$LINENO: error: unknown endianness
4354 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4355 echo "$as_me: error: unknown endianness
4356 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4357    { (exit 1); exit 1; }; } ;;
4358 esac
4359
4360
4361 if test "$cross_compiling" = yes; then
4362   LLVM_CROSS_COMPILING=1
4363
4364
4365 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4366 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4367 if test "${ac_cv_build_exeext+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4371   ac_cv_build_exeext=.exe
4372 else
4373   ac_build_prefix=${build_alias}-
4374
4375   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4376 set dummy ${ac_build_prefix}gcc; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   if test -n "$BUILD_CC"; then
4383   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390   for ac_exec_ext in '' $ac_executable_extensions; do
4391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4392     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394     break 2
4395   fi
4396 done
4397 done
4398 IFS=$as_save_IFS
4399
4400 fi
4401 fi
4402 BUILD_CC=$ac_cv_prog_BUILD_CC
4403 if test -n "$BUILD_CC"; then
4404   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4405 echo "${ECHO_T}$BUILD_CC" >&6; }
4406 else
4407   { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4409 fi
4410
4411
4412   if test -z "$BUILD_CC"; then
4413      # Extract the first word of "gcc", so it can be a program name with args.
4414 set dummy gcc; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test -n "$BUILD_CC"; then
4421   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_prog_BUILD_CC="gcc"
4431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 BUILD_CC=$ac_cv_prog_BUILD_CC
4441 if test -n "$BUILD_CC"; then
4442   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4443 echo "${ECHO_T}$BUILD_CC" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449
4450      if test -z "$BUILD_CC"; then
4451        # Extract the first word of "cc", so it can be a program name with args.
4452 set dummy cc; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   if test -n "$BUILD_CC"; then
4459   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4460 else
4461   ac_prog_rejected=no
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4470        ac_prog_rejected=yes
4471        continue
4472      fi
4473     ac_cv_prog_BUILD_CC="cc"
4474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 if test $ac_prog_rejected = yes; then
4482   # We found a bogon in the path, so make sure we never use it.
4483   set dummy $ac_cv_prog_BUILD_CC
4484   shift
4485   if test $# != 0; then
4486     # We chose a different compiler from the bogus one.
4487     # However, it has the same basename, so the bogon will be chosen
4488     # first if we set BUILD_CC to just the basename; use the full file name.
4489     shift
4490     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4491   fi
4492 fi
4493 fi
4494 fi
4495 BUILD_CC=$ac_cv_prog_BUILD_CC
4496 if test -n "$BUILD_CC"; then
4497   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498 echo "${ECHO_T}$BUILD_CC" >&6; }
4499 else
4500   { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4503
4504
4505      fi
4506   fi
4507   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4508 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4509    { (exit 1); exit 1; }; }
4510   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4511   rm -f conftest*
4512   echo 'int main () { return 0; }' > conftest.$ac_ext
4513   ac_cv_build_exeext=
4514   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4515   (eval $ac_build_link) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }; then
4519     for file in conftest.*; do
4520       case $file in
4521       *.c | *.o | *.obj) ;;
4522       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4523       esac
4524     done
4525   else
4526     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4527 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4528    { (exit 1); exit 1; }; }
4529   fi
4530   rm -f conftest*
4531   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4532 fi
4533 fi
4534
4535 BUILD_EXEEXT=""
4536 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4537 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4538 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4539 ac_build_exeext=$BUILD_EXEEXT
4540
4541 else
4542   LLVM_CROSS_COMPILING=0
4543
4544 fi
4545
4546 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4547   cvsbuild="yes"
4548   optimize="no"
4549   CVSBUILD=CVSBUILD=1
4550
4551 else
4552   cvsbuild="no"
4553   optimize="yes"
4554 fi
4555
4556
4557 # Check whether --enable-optimized was given.
4558 if test "${enable_optimized+set}" = set; then
4559   enableval=$enable_optimized;
4560 else
4561   enableval=$optimize
4562 fi
4563
4564 if test ${enableval} = "no" ; then
4565   ENABLE_OPTIMIZED=
4566
4567 else
4568   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4569
4570 fi
4571
4572 # Check whether --enable-assertions was given.
4573 if test "${enable_assertions+set}" = set; then
4574   enableval=$enable_assertions;
4575 else
4576   enableval="yes"
4577 fi
4578
4579 if test ${enableval} = "yes" ; then
4580   DISABLE_ASSERTIONS=
4581
4582 else
4583   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4584
4585 fi
4586
4587 # Check whether --enable-expensive-checks was given.
4588 if test "${enable_expensive_checks+set}" = set; then
4589   enableval=$enable_expensive_checks;
4590 else
4591   enableval="no"
4592 fi
4593
4594 if test ${enableval} = "yes" ; then
4595   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4596
4597   EXPENSIVE_CHECKS=yes
4598
4599 else
4600   ENABLE_EXPENSIVE_CHECKS=
4601
4602   EXPENSIVE_CHECKS=no
4603
4604 fi
4605
4606 # Check whether --enable-debug-runtime was given.
4607 if test "${enable_debug_runtime+set}" = set; then
4608   enableval=$enable_debug_runtime;
4609 else
4610   enableval=no
4611 fi
4612
4613 if test ${enableval} = "no" ; then
4614   DEBUG_RUNTIME=
4615
4616 else
4617   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4618
4619 fi
4620
4621 # Check whether --enable-jit was given.
4622 if test "${enable_jit+set}" = set; then
4623   enableval=$enable_jit;
4624 else
4625   enableval=default
4626 fi
4627
4628 if test ${enableval} = "no"
4629 then
4630   JIT=
4631
4632 else
4633   case "$llvm_cv_target_arch" in
4634     x86)     TARGET_HAS_JIT=1
4635  ;;
4636     Sparc)   TARGET_HAS_JIT=0
4637  ;;
4638     PowerPC) TARGET_HAS_JIT=1
4639  ;;
4640     x86_64)  TARGET_HAS_JIT=1
4641  ;;
4642     Alpha)   TARGET_HAS_JIT=1
4643  ;;
4644     IA64)    TARGET_HAS_JIT=0
4645  ;;
4646     ARM)     TARGET_HAS_JIT=0
4647  ;;
4648     *)       TARGET_HAS_JIT=0
4649  ;;
4650   esac
4651 fi
4652
4653 # Check whether --enable-doxygen was given.
4654 if test "${enable_doxygen+set}" = set; then
4655   enableval=$enable_doxygen;
4656 else
4657   enableval=default
4658 fi
4659
4660 case "$enableval" in
4661   yes) ENABLE_DOXYGEN=1
4662  ;;
4663   no)  ENABLE_DOXYGEN=0
4664  ;;
4665   default) ENABLE_DOXYGEN=0
4666  ;;
4667   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4668 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4669    { (exit 1); exit 1; }; } ;;
4670 esac
4671
4672 # Check whether --enable-threads was given.
4673 if test "${enable_threads+set}" = set; then
4674   enableval=$enable_threads;
4675 else
4676   enableval=default
4677 fi
4678
4679 case "$enableval" in
4680   yes) ENABLE_THREADS=1
4681  ;;
4682   no)  ENABLE_THREADS=0
4683  ;;
4684   default) ENABLE_THREADS=1
4685  ;;
4686   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4687 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4688    { (exit 1); exit 1; }; } ;;
4689 esac
4690
4691 cat >>confdefs.h <<_ACEOF
4692 #define ENABLE_THREADS $ENABLE_THREADS
4693 _ACEOF
4694
4695
4696 # Check whether --enable-pic was given.
4697 if test "${enable_pic+set}" = set; then
4698   enableval=$enable_pic;
4699 else
4700   enableval=default
4701 fi
4702
4703 case "$enableval" in
4704   yes) ENABLE_PIC=1
4705  ;;
4706   no)  ENABLE_PIC=0
4707  ;;
4708   default) ENABLE_PIC=0
4709  ;;
4710   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4711 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4712    { (exit 1); exit 1; }; } ;;
4713 esac
4714
4715 cat >>confdefs.h <<_ACEOF
4716 #define ENABLE_PIC $ENABLE_PIC
4717 _ACEOF
4718
4719
4720 TARGETS_TO_BUILD=""
4721 # Check whether --enable-targets was given.
4722 if test "${enable_targets+set}" = set; then
4723   enableval=$enable_targets;
4724 else
4725   enableval=all
4726 fi
4727
4728 case "$enableval" in
4729   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4730   host-only)
4731     case "$llvm_cv_target_arch" in
4732       x86)     TARGETS_TO_BUILD="X86" ;;
4733       x86_64)  TARGETS_TO_BUILD="X86" ;;
4734       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4735       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4736       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4737       IA64)    TARGETS_TO_BUILD="IA64" ;;
4738       ARM)     TARGETS_TO_BUILD="ARM" ;;
4739       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4740 echo "$as_me: error: Can not set target to build" >&2;}
4741    { (exit 1); exit 1; }; } ;;
4742     esac
4743     ;;
4744   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4745       case "$a_target" in
4746         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4747         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4748         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4749         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4750         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4751         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4752         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4753         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4754 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4755    { (exit 1); exit 1; }; } ;;
4756       esac
4757   done
4758   ;;
4759 esac
4760 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4761 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4762
4763
4764 # Check whether --enable-cbe-printf-a was given.
4765 if test "${enable_cbe_printf_a+set}" = set; then
4766   enableval=$enable_cbe_printf_a;
4767 else
4768   enableval=default
4769 fi
4770
4771 case "$enableval" in
4772   yes) ENABLE_CBE_PRINTF_A=1
4773  ;;
4774   no)  ENABLE_CBE_PRINTF_A=0
4775  ;;
4776   default)  ENABLE_CBE_PRINTF_A=1
4777  ;;
4778   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4779 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4780    { (exit 1); exit 1; }; } ;;
4781 esac
4782
4783 cat >>confdefs.h <<_ACEOF
4784 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4785 _ACEOF
4786
4787
4788
4789 # Check whether --with-llvmgccdir was given.
4790 if test "${with_llvmgccdir+set}" = set; then
4791   withval=$with_llvmgccdir;
4792 else
4793   withval=default
4794 fi
4795
4796 case "$withval" in
4797   default) WITH_LLVMGCCDIR=default ;;
4798   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4799   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4800 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4801    { (exit 1); exit 1; }; } ;;
4802 esac
4803
4804
4805 # Check whether --with-extra-options was given.
4806 if test "${with_extra_options+set}" = set; then
4807   withval=$with_extra_options;
4808 else
4809   withval=default
4810 fi
4811
4812 case "$withval" in
4813   default) EXTRA_OPTIONS= ;;
4814   *) EXTRA_OPTIONS=$withval ;;
4815 esac
4816 EXTRA_OPTIONS=$EXTRA_OPTIONS
4817
4818
4819
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4826 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4827 # On Suns, sometimes $CPP names a directory.
4828 if test -n "$CPP" && test -d "$CPP"; then
4829   CPP=
4830 fi
4831 if test -z "$CPP"; then
4832   if test "${ac_cv_prog_CPP+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835       # Double quotes because CPP needs to be expanded
4836     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4837     do
4838       ac_preproc_ok=false
4839 for ac_c_preproc_warn_flag in '' yes
4840 do
4841   # Use a header file that comes with gcc, so configuring glibc
4842   # with a fresh cross-compiler works.
4843   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4844   # <limits.h> exists even on freestanding compilers.
4845   # On the NeXT, cc -E runs the code through the compiler's parser,
4846   # not just through cpp. "Syntax error" is here to catch this case.
4847   cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h.  */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h.  */
4853 #ifdef __STDC__
4854 # include <limits.h>
4855 #else
4856 # include <assert.h>
4857 #endif
4858                      Syntax error
4859 _ACEOF
4860 if { (ac_try="$ac_cpp conftest.$ac_ext"
4861 case "(($ac_try" in
4862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863   *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867   ac_status=$?
4868   grep -v '^ *+' conftest.er1 >conftest.err
4869   rm -f conftest.er1
4870   cat conftest.err >&5
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } >/dev/null; then
4873   if test -s conftest.err; then
4874     ac_cpp_err=$ac_c_preproc_warn_flag
4875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4876   else
4877     ac_cpp_err=
4878   fi
4879 else
4880   ac_cpp_err=yes
4881 fi
4882 if test -z "$ac_cpp_err"; then
4883   :
4884 else
4885   echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888   # Broken: fails on valid input.
4889 continue
4890 fi
4891
4892 rm -f conftest.err conftest.$ac_ext
4893
4894   # OK, works on sane cases.  Now check whether nonexistent headers
4895   # can be detected and how.
4896   cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <ac_nonexistent.h>
4903 _ACEOF
4904 if { (ac_try="$ac_cpp conftest.$ac_ext"
4905 case "(($ac_try" in
4906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907   *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } >/dev/null; then
4917   if test -s conftest.err; then
4918     ac_cpp_err=$ac_c_preproc_warn_flag
4919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4920   else
4921     ac_cpp_err=
4922   fi
4923 else
4924   ac_cpp_err=yes
4925 fi
4926 if test -z "$ac_cpp_err"; then
4927   # Broken: success on invalid input.
4928 continue
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933   # Passes both tests.
4934 ac_preproc_ok=:
4935 break
4936 fi
4937
4938 rm -f conftest.err conftest.$ac_ext
4939
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then
4944   break
4945 fi
4946
4947     done
4948     ac_cv_prog_CPP=$CPP
4949
4950 fi
4951   CPP=$ac_cv_prog_CPP
4952 else
4953   ac_cv_prog_CPP=$CPP
4954 fi
4955 { echo "$as_me:$LINENO: result: $CPP" >&5
4956 echo "${ECHO_T}$CPP" >&6; }
4957 ac_preproc_ok=false
4958 for ac_c_preproc_warn_flag in '' yes
4959 do
4960   # Use a header file that comes with gcc, so configuring glibc
4961   # with a fresh cross-compiler works.
4962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963   # <limits.h> exists even on freestanding compilers.
4964   # On the NeXT, cc -E runs the code through the compiler's parser,
4965   # not just through cpp. "Syntax error" is here to catch this case.
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 #ifdef __STDC__
4973 # include <limits.h>
4974 #else
4975 # include <assert.h>
4976 #endif
4977                      Syntax error
4978 _ACEOF
4979 if { (ac_try="$ac_cpp conftest.$ac_ext"
4980 case "(($ac_try" in
4981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982   *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986   ac_status=$?
4987   grep -v '^ *+' conftest.er1 >conftest.err
4988   rm -f conftest.er1
4989   cat conftest.err >&5
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } >/dev/null; then
4992   if test -s conftest.err; then
4993     ac_cpp_err=$ac_c_preproc_warn_flag
4994     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4995   else
4996     ac_cpp_err=
4997   fi
4998 else
4999   ac_cpp_err=yes
5000 fi
5001 if test -z "$ac_cpp_err"; then
5002   :
5003 else
5004   echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007   # Broken: fails on valid input.
5008 continue
5009 fi
5010
5011 rm -f conftest.err conftest.$ac_ext
5012
5013   # OK, works on sane cases.  Now check whether nonexistent headers
5014   # can be detected and how.
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 #include <ac_nonexistent.h>
5022 _ACEOF
5023 if { (ac_try="$ac_cpp conftest.$ac_ext"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } >/dev/null; then
5036   if test -s conftest.err; then
5037     ac_cpp_err=$ac_c_preproc_warn_flag
5038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039   else
5040     ac_cpp_err=
5041   fi
5042 else
5043   ac_cpp_err=yes
5044 fi
5045 if test -z "$ac_cpp_err"; then
5046   # Broken: success on invalid input.
5047 continue
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052   # Passes both tests.
5053 ac_preproc_ok=:
5054 break
5055 fi
5056
5057 rm -f conftest.err conftest.$ac_ext
5058
5059 done
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.$ac_ext
5062 if $ac_preproc_ok; then
5063   :
5064 else
5065   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5066 See \`config.log' for more details." >&5
5067 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5068 See \`config.log' for more details." >&2;}
5069    { (exit 1); exit 1; }; }
5070 fi
5071
5072 ac_ext=c
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078 ac_ext=c
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083 if test -n "$ac_tool_prefix"; then
5084   for ac_prog in gcc
5085   do
5086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_prog_CC+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   if test -n "$CC"; then
5094   ac_cv_prog_CC="$CC" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101   for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 CC=$ac_cv_prog_CC
5114 if test -n "$CC"; then
5115   { echo "$as_me:$LINENO: result: $CC" >&5
5116 echo "${ECHO_T}$CC" >&6; }
5117 else
5118   { echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6; }
5120 fi
5121
5122
5123     test -n "$CC" && break
5124   done
5125 fi
5126 if test -z "$CC"; then
5127   ac_ct_CC=$CC
5128   for ac_prog in gcc
5129 do
5130   # Extract the first word of "$ac_prog", so it can be a program name with args.
5131 set dummy $ac_prog; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if test -n "$ac_ct_CC"; then
5138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145   for ac_exec_ext in '' $ac_executable_extensions; do
5146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5147     ac_cv_prog_ac_ct_CC="$ac_prog"
5148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149     break 2
5150   fi
5151 done
5152 done
5153 IFS=$as_save_IFS
5154
5155 fi
5156 fi
5157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5158 if test -n "$ac_ct_CC"; then
5159   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5160 echo "${ECHO_T}$ac_ct_CC" >&6; }
5161 else
5162   { echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6; }
5164 fi
5165
5166
5167   test -n "$ac_ct_CC" && break
5168 done
5169
5170   if test "x$ac_ct_CC" = x; then
5171     CC=""
5172   else
5173     case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet.  If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&5
5178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5179 whose name does not start with the host triplet.  If you think this
5180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5181 ac_tool_warned=yes ;;
5182 esac
5183     CC=$ac_ct_CC
5184   fi
5185 fi
5186
5187
5188 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5189 See \`config.log' for more details." >&5
5190 echo "$as_me: error: no acceptable C compiler found in \$PATH
5191 See \`config.log' for more details." >&2;}
5192    { (exit 1); exit 1; }; }
5193
5194 # Provide some information about the compiler.
5195 echo "$as_me:$LINENO: checking for C compiler version" >&5
5196 ac_compiler=`set X $ac_compile; echo $2`
5197 { (ac_try="$ac_compiler --version >&5"
5198 case "(($ac_try" in
5199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200   *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203   (eval "$ac_compiler --version >&5") 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }
5207 { (ac_try="$ac_compiler -v >&5"
5208 case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_compiler -v >&5") 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }
5217 { (ac_try="$ac_compiler -V >&5"
5218 case "(($ac_try" in
5219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220   *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223   (eval "$ac_compiler -V >&5") 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }
5227
5228 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5229 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5230 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239
5240 int
5241 main ()
5242 {
5243 #ifndef __GNUC__
5244        choke me
5245 #endif
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5253 case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258   (eval "$ac_compile") 2>conftest.er1
5259   ac_status=$?
5260   grep -v '^ *+' conftest.er1 >conftest.err
5261   rm -f conftest.er1
5262   cat conftest.err >&5
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); } &&
5265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5266   { (case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271   (eval "$ac_try") 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_try") 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_compiler_gnu=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290         ac_compiler_gnu=no
5291 fi
5292
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5295
5296 fi
5297 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5298 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5299 GCC=`test $ac_compiler_gnu = yes && echo yes`
5300 ac_test_CFLAGS=${CFLAGS+set}
5301 ac_save_CFLAGS=$CFLAGS
5302 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5303 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5304 if test "${ac_cv_prog_cc_g+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   ac_save_c_werror_flag=$ac_c_werror_flag
5308    ac_c_werror_flag=yes
5309    ac_cv_prog_cc_g=no
5310    CFLAGS="-g"
5311    cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317
5318 int
5319 main ()
5320 {
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (ac_try="$ac_compile"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_compile") 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5341   { (case "(($ac_try" in
5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343   *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346   (eval "$ac_try") 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; } &&
5350          { ac_try='test -s conftest.$ac_objext'
5351   { (case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_try") 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; }; then
5360   ac_cv_prog_cc_g=yes
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365         CFLAGS=""
5366       cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372
5373 int
5374 main ()
5375 {
5376
5377   ;
5378   return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5383 case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388   (eval "$ac_compile") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } &&
5395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5396   { (case "(($ac_try" in
5397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398   *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401   (eval "$ac_try") 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; } &&
5405          { ac_try='test -s conftest.$ac_objext'
5406   { (case "(($ac_try" in
5407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408   *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411   (eval "$ac_try") 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   :
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420         ac_c_werror_flag=$ac_save_c_werror_flag
5421          CFLAGS="-g"
5422          cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428
5429 int
5430 main ()
5431 {
5432
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_compile") 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5452   { (case "(($ac_try" in
5453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454   *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457   (eval "$ac_try") 2>&5
5458   ac_status=$?
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); }; } &&
5461          { ac_try='test -s conftest.$ac_objext'
5462   { (case "(($ac_try" in
5463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464   *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467   (eval "$ac_try") 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; }; then
5471   ac_cv_prog_cc_g=yes
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486    ac_c_werror_flag=$ac_save_c_werror_flag
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5490 if test "$ac_test_CFLAGS" = set; then
5491   CFLAGS=$ac_save_CFLAGS
5492 elif test $ac_cv_prog_cc_g = yes; then
5493   if test "$GCC" = yes; then
5494     CFLAGS="-g -O2"
5495   else
5496     CFLAGS="-g"
5497   fi
5498 else
5499   if test "$GCC" = yes; then
5500     CFLAGS="-O2"
5501   else
5502     CFLAGS=
5503   fi
5504 fi
5505 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5506 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5507 if test "${ac_cv_prog_cc_c89+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   ac_cv_prog_cc_c89=no
5511 ac_save_CC=$CC
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518 #include <stdarg.h>
5519 #include <stdio.h>
5520 #include <sys/types.h>
5521 #include <sys/stat.h>
5522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5523 struct buf { int x; };
5524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5525 static char *e (p, i)
5526      char **p;
5527      int i;
5528 {
5529   return p[i];
5530 }
5531 static char *f (char * (*g) (char **, int), char **p, ...)
5532 {
5533   char *s;
5534   va_list v;
5535   va_start (v,p);
5536   s = g (p, va_arg (v,int));
5537   va_end (v);
5538   return s;
5539 }
5540
5541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5542    function prototypes and stuff, but not '\xHH' hex character constants.
5543    These don't provoke an error unfortunately, instead are silently treated
5544    as 'x'.  The following induces an error, until -std is added to get
5545    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5546    array size at least.  It's necessary to write '\x00'==0 to get something
5547    that's true only with -std.  */
5548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5549
5550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5551    inside strings and character constants.  */
5552 #define FOO(x) 'x'
5553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5554
5555 int test (int i, double x);
5556 struct s1 {int (*f) (int a);};
5557 struct s2 {int (*f) (double a);};
5558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5559 int argc;
5560 char **argv;
5561 int
5562 main ()
5563 {
5564 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5565   ;
5566   return 0;
5567 }
5568 _ACEOF
5569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5570         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5571 do
5572   CC="$ac_save_CC $ac_arg"
5573   rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577   *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580   (eval "$ac_compile") 2>conftest.er1
5581   ac_status=$?
5582   grep -v '^ *+' conftest.er1 >conftest.err
5583   rm -f conftest.er1
5584   cat conftest.err >&5
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5588   { (case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593   (eval "$ac_try") 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; } &&
5597          { ac_try='test -s conftest.$ac_objext'
5598   { (case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603   (eval "$ac_try") 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   ac_cv_prog_cc_c89=$ac_arg
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612
5613 fi
5614
5615 rm -f core conftest.err conftest.$ac_objext
5616   test "x$ac_cv_prog_cc_c89" != "xno" && break
5617 done
5618 rm -f conftest.$ac_ext
5619 CC=$ac_save_CC
5620
5621 fi
5622 # AC_CACHE_VAL
5623 case "x$ac_cv_prog_cc_c89" in
5624   x)
5625     { echo "$as_me:$LINENO: result: none needed" >&5
5626 echo "${ECHO_T}none needed" >&6; } ;;
5627   xno)
5628     { echo "$as_me:$LINENO: result: unsupported" >&5
5629 echo "${ECHO_T}unsupported" >&6; } ;;
5630   *)
5631     CC="$CC $ac_cv_prog_cc_c89"
5632     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5633 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5634 esac
5635
5636
5637 ac_ext=c
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643 ac_ext=cpp
5644 ac_cpp='$CXXCPP $CPPFLAGS'
5645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648 if test -z "$CXX"; then
5649   if test -n "$CCC"; then
5650     CXX=$CCC
5651   else
5652     if test -n "$ac_tool_prefix"; then
5653   for ac_prog in g++
5654   do
5655     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5659 if test "${ac_cv_prog_CXX+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   if test -n "$CXX"; then
5663   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668   IFS=$as_save_IFS
5669   test -z "$as_dir" && as_dir=.
5670   for ac_exec_ext in '' $ac_executable_extensions; do
5671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5672     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674     break 2
5675   fi
5676 done
5677 done
5678 IFS=$as_save_IFS
5679
5680 fi
5681 fi
5682 CXX=$ac_cv_prog_CXX
5683 if test -n "$CXX"; then
5684   { echo "$as_me:$LINENO: result: $CXX" >&5
5685 echo "${ECHO_T}$CXX" >&6; }
5686 else
5687   { echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6; }
5689 fi
5690
5691
5692     test -n "$CXX" && break
5693   done
5694 fi
5695 if test -z "$CXX"; then
5696   ac_ct_CXX=$CXX
5697   for ac_prog in g++
5698 do
5699   # Extract the first word of "$ac_prog", so it can be a program name with args.
5700 set dummy $ac_prog; ac_word=$2
5701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   if test -n "$ac_ct_CXX"; then
5707   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714   for ac_exec_ext in '' $ac_executable_extensions; do
5715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5716     ac_cv_prog_ac_ct_CXX="$ac_prog"
5717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5727 if test -n "$ac_ct_CXX"; then
5728   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5729 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5730 else
5731   { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5733 fi
5734
5735
5736   test -n "$ac_ct_CXX" && break
5737 done
5738
5739   if test "x$ac_ct_CXX" = x; then
5740     CXX="g++"
5741   else
5742     case $cross_compiling:$ac_tool_warned in
5743 yes:)
5744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5745 whose name does not start with the host triplet.  If you think this
5746 configuration is useful to you, please write to autoconf@gnu.org." >&5
5747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet.  If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5750 ac_tool_warned=yes ;;
5751 esac
5752     CXX=$ac_ct_CXX
5753   fi
5754 fi
5755
5756   fi
5757 fi
5758 # Provide some information about the compiler.
5759 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5760 ac_compiler=`set X $ac_compile; echo $2`
5761 { (ac_try="$ac_compiler --version >&5"
5762 case "(($ac_try" in
5763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764   *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767   (eval "$ac_compiler --version >&5") 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }
5771 { (ac_try="$ac_compiler -v >&5"
5772 case "(($ac_try" in
5773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774   *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777   (eval "$ac_compiler -v >&5") 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }
5781 { (ac_try="$ac_compiler -V >&5"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787   (eval "$ac_compiler -V >&5") 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }
5791
5792 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5793 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5794 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803
5804 int
5805 main ()
5806 {
5807 #ifndef __GNUC__
5808        choke me
5809 #endif
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822   (eval "$ac_compile") 2>conftest.er1
5823   ac_status=$?
5824   grep -v '^ *+' conftest.er1 >conftest.err
5825   rm -f conftest.er1
5826   cat conftest.err >&5
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); } &&
5829          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5830   { (case "(($ac_try" in
5831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832   *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835   (eval "$ac_try") 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; } &&
5839          { ac_try='test -s conftest.$ac_objext'
5840   { (case "(($ac_try" in
5841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842   *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845   (eval "$ac_try") 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   ac_compiler_gnu=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854         ac_compiler_gnu=no
5855 fi
5856
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5859
5860 fi
5861 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5862 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5863 GXX=`test $ac_compiler_gnu = yes && echo yes`
5864 ac_test_CXXFLAGS=${CXXFLAGS+set}
5865 ac_save_CXXFLAGS=$CXXFLAGS
5866 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5867 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5868 if test "${ac_cv_prog_cxx_g+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5872    ac_cxx_werror_flag=yes
5873    ac_cv_prog_cxx_g=no
5874    CXXFLAGS="-g"
5875    cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h.  */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h.  */
5881
5882 int
5883 main ()
5884 {
5885
5886   ;
5887   return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894   *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897   (eval "$ac_compile") 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5905   { (case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_try") 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; } &&
5914          { ac_try='test -s conftest.$ac_objext'
5915   { (case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_try") 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; }; then
5924   ac_cv_prog_cxx_g=yes
5925 else
5926   echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929         CXXFLAGS=""
5930       cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936
5937 int
5938 main ()
5939 {
5940
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_compile") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } &&
5959          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5960   { (case "(($ac_try" in
5961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962   *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965   (eval "$ac_try") 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; } &&
5969          { ac_try='test -s conftest.$ac_objext'
5970   { (case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975   (eval "$ac_try") 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; }; then
5979   :
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5985          CXXFLAGS="-g"
5986          cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992
5993 int
5994 main ()
5995 {
5996
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compile") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6016   { (case "(($ac_try" in
6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018   *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021   (eval "$ac_try") 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; } &&
6025          { ac_try='test -s conftest.$ac_objext'
6026   { (case "(($ac_try" in
6027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028   *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031   (eval "$ac_try") 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   ac_cv_prog_cxx_g=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 fi
6048
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6051 fi
6052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6053 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6054 if test "$ac_test_CXXFLAGS" = set; then
6055   CXXFLAGS=$ac_save_CXXFLAGS
6056 elif test $ac_cv_prog_cxx_g = yes; then
6057   if test "$GXX" = yes; then
6058     CXXFLAGS="-g -O2"
6059   else
6060     CXXFLAGS="-g"
6061   fi
6062 else
6063   if test "$GXX" = yes; then
6064     CXXFLAGS="-O2"
6065   else
6066     CXXFLAGS=
6067   fi
6068 fi
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075 { echo "$as_me:$LINENO: checking " >&5
6076 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6077 if test "${ac_cv_has_flex+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   for ac_prog in flex lex
6081 do
6082   # Extract the first word of "$ac_prog", so it can be a program name with args.
6083 set dummy $ac_prog; ac_word=$2
6084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_LEX+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   if test -n "$LEX"; then
6090   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097   for ac_exec_ext in '' $ac_executable_extensions; do
6098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6099     ac_cv_prog_LEX="$ac_prog"
6100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101     break 2
6102   fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 LEX=$ac_cv_prog_LEX
6110 if test -n "$LEX"; then
6111   { echo "$as_me:$LINENO: result: $LEX" >&5
6112 echo "${ECHO_T}$LEX" >&6; }
6113 else
6114   { echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6; }
6116 fi
6117
6118
6119   test -n "$LEX" && break
6120 done
6121 test -n "$LEX" || LEX=":"
6122
6123 if test -z "$LEXLIB"
6124 then
6125   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6126 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6127 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lfl  $LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138
6139 /* Override any GCC internal prototype to avoid an error.
6140    Use char because int might match the return type of a GCC
6141    builtin and then its argument prototype would still apply.  */
6142 #ifdef __cplusplus
6143 extern "C"
6144 #endif
6145 char yywrap ();
6146 int
6147 main ()
6148 {
6149 return yywrap ();
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6156 case "(($ac_try" in
6157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158   *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161   (eval "$ac_link") 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } &&
6168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6169   { (case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_try") 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; } &&
6178          { ac_try='test -s conftest$ac_exeext'
6179   { (case "(($ac_try" in
6180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181   *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184   (eval "$ac_try") 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   ac_cv_lib_fl_yywrap=yes
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193         ac_cv_lib_fl_yywrap=no
6194 fi
6195
6196 rm -f core conftest.err conftest.$ac_objext \
6197       conftest$ac_exeext conftest.$ac_ext
6198 LIBS=$ac_check_lib_save_LIBS
6199 fi
6200 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6201 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6202 if test $ac_cv_lib_fl_yywrap = yes; then
6203   LEXLIB="-lfl"
6204 else
6205   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6206 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6207 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   ac_check_lib_save_LIBS=$LIBS
6211 LIBS="-ll  $LIBS"
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218
6219 /* Override any GCC internal prototype to avoid an error.
6220    Use char because int might match the return type of a GCC
6221    builtin and then its argument prototype would still apply.  */
6222 #ifdef __cplusplus
6223 extern "C"
6224 #endif
6225 char yywrap ();
6226 int
6227 main ()
6228 {
6229 return yywrap ();
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (ac_try="$ac_link"
6236 case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$ac_link") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249   { (case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254   (eval "$ac_try") 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest$ac_exeext'
6259   { (case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_try") 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   ac_cv_lib_l_yywrap=yes
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273         ac_cv_lib_l_yywrap=no
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext \
6277       conftest$ac_exeext conftest.$ac_ext
6278 LIBS=$ac_check_lib_save_LIBS
6279 fi
6280 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6281 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6282 if test $ac_cv_lib_l_yywrap = yes; then
6283   LEXLIB="-ll"
6284 fi
6285
6286 fi
6287
6288 fi
6289
6290 if test "x$LEX" != "x:"; then
6291   { echo "$as_me:$LINENO: checking lex output file root" >&5
6292 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_lex_root+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   # The minimal lex program is just a single line: %%.  But some broken lexes
6297 # (Solaris, I think it was) want two %% lines, so accommodate them.
6298 cat >conftest.l <<_ACEOF
6299 %%
6300 %%
6301 _ACEOF
6302 { (ac_try="$LEX conftest.l"
6303 case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$LEX conftest.l") 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }
6312 if test -f lex.yy.c; then
6313   ac_cv_prog_lex_root=lex.yy
6314 elif test -f lexyy.c; then
6315   ac_cv_prog_lex_root=lexyy
6316 else
6317   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6318 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6319    { (exit 1); exit 1; }; }
6320 fi
6321 fi
6322 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6323 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6324 rm -f conftest.l
6325 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6326
6327 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6328 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6329 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   # POSIX says lex can declare yytext either as a pointer or an array; the
6333 # default is implementation-dependent. Figure out which it is, since
6334 # not all implementations provide the %pointer and %array declarations.
6335 ac_cv_prog_lex_yytext_pointer=no
6336 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6337 ac_save_LIBS=$LIBS
6338 LIBS="$LIBS $LEXLIB"
6339 cat >conftest.$ac_ext <<_ACEOF
6340 `cat $LEX_OUTPUT_ROOT.c`
6341 _ACEOF
6342 rm -f conftest.$ac_objext conftest$ac_exeext
6343 if { (ac_try="$ac_link"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_link") 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357   { (case "(($ac_try" in
6358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359   *) ac_try_echo=$ac_try;;
6360 esac
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362   (eval "$ac_try") 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest$ac_exeext'
6367   { (case "(($ac_try" in
6368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369   *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372   (eval "$ac_try") 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   ac_cv_prog_lex_yytext_pointer=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381
6382 fi
6383
6384 rm -f core conftest.err conftest.$ac_objext \
6385       conftest$ac_exeext conftest.$ac_ext
6386 LIBS=$ac_save_LIBS
6387 rm -f "${LEX_OUTPUT_ROOT}.c"
6388
6389 fi
6390 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6391 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6392 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6393
6394 cat >>confdefs.h <<\_ACEOF
6395 #define YYTEXT_POINTER 1
6396 _ACEOF
6397
6398 fi
6399
6400 fi
6401
6402 fi
6403 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6404 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6405 if test "$LEX" != "flex"; then
6406   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6407 echo "$as_me: error: flex not found but required" >&2;}
6408    { (exit 1); exit 1; }; }
6409 else
6410   FLEX=flex
6411
6412 fi
6413
6414 { echo "$as_me:$LINENO: checking " >&5
6415 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6416 if test "${llvm_cv_has_bison+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   for ac_prog in 'bison -y' byacc
6420 do
6421   # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_prog_YACC+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   if test -n "$YACC"; then
6429   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_prog_YACC="$ac_prog"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 YACC=$ac_cv_prog_YACC
6449 if test -n "$YACC"; then
6450   { echo "$as_me:$LINENO: result: $YACC" >&5
6451 echo "${ECHO_T}$YACC" >&6; }
6452 else
6453   { echo "$as_me:$LINENO: result: no" >&5
6454 echo "${ECHO_T}no" >&6; }
6455 fi
6456
6457
6458   test -n "$YACC" && break
6459 done
6460 test -n "$YACC" || YACC="yacc"
6461
6462 fi
6463 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6464 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6465 if test "$YACC" != "bison -y"; then
6466
6467   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6468 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6469 else
6470   BISON=bison
6471
6472 fi
6473
6474 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476 if test "${lt_cv_path_NM+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   if test -n "$NM"; then
6480   # Let the user override the test.
6481   lt_cv_path_NM="$NM"
6482 else
6483   lt_nm_to_check="${ac_tool_prefix}nm"
6484   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485     lt_nm_to_check="$lt_nm_to_check nm"
6486   fi
6487   for lt_tmp_nm in $lt_nm_to_check; do
6488     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6490       IFS="$lt_save_ifs"
6491       test -z "$ac_dir" && ac_dir=.
6492       tmp_nm="$ac_dir/$lt_tmp_nm"
6493       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494         # Check to see if the nm accepts a BSD-compat flag.
6495         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6496         #   nm: unknown option "B" ignored
6497         # Tru64's nm complains that /dev/null is an invalid object file
6498         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499         */dev/null* | *'Invalid file or object type'*)
6500           lt_cv_path_NM="$tmp_nm -B"
6501           break
6502           ;;
6503         *)
6504           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6505           */dev/null*)
6506             lt_cv_path_NM="$tmp_nm -p"
6507             break
6508             ;;
6509           *)
6510             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511             continue # so that we can try to find one that supports BSD flags
6512             ;;
6513           esac
6514           ;;
6515         esac
6516       fi
6517     done
6518     IFS="$lt_save_ifs"
6519   done
6520   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6521 fi
6522 fi
6523 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6525 NM="$lt_cv_path_NM"
6526
6527
6528
6529 { echo "$as_me:$LINENO: checking for GNU make" >&5
6530 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531 if test "${llvm_cv_gnu_make_command+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   llvm_cv_gnu_make_command=''
6535  for a in "$MAKE" make gmake gnumake ; do
6536   if test -z "$a" ; then continue ; fi ;
6537   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6538   then
6539    llvm_cv_gnu_make_command=$a ;
6540    break;
6541   fi
6542  done
6543 fi
6544 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6547    ifGNUmake='' ;
6548  else
6549    ifGNUmake='#' ;
6550    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551 echo "${ECHO_T}\"Not found\"" >&6; };
6552  fi
6553
6554
6555 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6557 LN_S=$as_ln_s
6558 if test "$LN_S" = "ln -s"; then
6559   { echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563 echo "${ECHO_T}no, using $LN_S" >&6; }
6564 fi
6565
6566 # Extract the first word of "cmp", so it can be a program name with args.
6567 set dummy cmp; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_CMP+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   case $CMP in
6574   [\\/]* | ?:[\\/]*)
6575   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6576   ;;
6577   *)
6578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6594   ;;
6595 esac
6596 fi
6597 CMP=$ac_cv_path_CMP
6598 if test -n "$CMP"; then
6599   { echo "$as_me:$LINENO: result: $CMP" >&5
6600 echo "${ECHO_T}$CMP" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607 # Extract the first word of "cp", so it can be a program name with args.
6608 set dummy cp; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_path_CP+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   case $CP in
6615   [\\/]* | ?:[\\/]*)
6616   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617   ;;
6618   *)
6619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624   for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6635   ;;
6636 esac
6637 fi
6638 CP=$ac_cv_path_CP
6639 if test -n "$CP"; then
6640   { echo "$as_me:$LINENO: result: $CP" >&5
6641 echo "${ECHO_T}$CP" >&6; }
6642 else
6643   { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647
6648 # Extract the first word of "date", so it can be a program name with args.
6649 set dummy date; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_DATE+set}" = set; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   case $DATE in
6656   [\\/]* | ?:[\\/]*)
6657   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6658   ;;
6659   *)
6660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665   for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6676   ;;
6677 esac
6678 fi
6679 DATE=$ac_cv_path_DATE
6680 if test -n "$DATE"; then
6681   { echo "$as_me:$LINENO: result: $DATE" >&5
6682 echo "${ECHO_T}$DATE" >&6; }
6683 else
6684   { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688
6689 # Extract the first word of "find", so it can be a program name with args.
6690 set dummy find; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_FIND+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   case $FIND in
6697   [\\/]* | ?:[\\/]*)
6698   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6699   ;;
6700   *)
6701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6717   ;;
6718 esac
6719 fi
6720 FIND=$ac_cv_path_FIND
6721 if test -n "$FIND"; then
6722   { echo "$as_me:$LINENO: result: $FIND" >&5
6723 echo "${ECHO_T}$FIND" >&6; }
6724 else
6725   { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 fi
6728
6729
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy grep; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   case $GREP in
6738   [\\/]* | ?:[\\/]*)
6739   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6740   ;;
6741   *)
6742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6758   ;;
6759 esac
6760 fi
6761 GREP=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763   { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6765 else
6766   { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6768 fi
6769
6770
6771 # Extract the first word of "mkdir", so it can be a program name with args.
6772 set dummy mkdir; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_MKDIR+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   case $MKDIR in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6799   ;;
6800 esac
6801 fi
6802 MKDIR=$ac_cv_path_MKDIR
6803 if test -n "$MKDIR"; then
6804   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805 echo "${ECHO_T}$MKDIR" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812 # Extract the first word of "mv", so it can be a program name with args.
6813 set dummy mv; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_MV+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $MV in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6840   ;;
6841 esac
6842 fi
6843 MV=$ac_cv_path_MV
6844 if test -n "$MV"; then
6845   { echo "$as_me:$LINENO: result: $MV" >&5
6846 echo "${ECHO_T}$MV" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$RANLIB"; then
6862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893   ac_ct_RANLIB=$RANLIB
6894   # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   if test -n "$ac_ct_RANLIB"; then
6902   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_prog_ac_ct_RANLIB="ranlib"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925 else
6926   { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_RANLIB" = x; then
6931     RANLIB=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet.  If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet.  If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943     RANLIB=$ac_ct_RANLIB
6944   fi
6945 else
6946   RANLIB="$ac_cv_prog_RANLIB"
6947 fi
6948
6949 # Extract the first word of "rm", so it can be a program name with args.
6950 set dummy rm; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_RM+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   case $RM in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6977   ;;
6978 esac
6979 fi
6980 RM=$ac_cv_path_RM
6981 if test -n "$RM"; then
6982   { echo "$as_me:$LINENO: result: $RM" >&5
6983 echo "${ECHO_T}$RM" >&6; }
6984 else
6985   { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6987 fi
6988
6989
6990 # Extract the first word of "sed", so it can be a program name with args.
6991 set dummy sed; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_SED+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   case $SED in
6998   [\\/]* | ?:[\\/]*)
6999   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7000   ;;
7001   *)
7002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7018   ;;
7019 esac
7020 fi
7021 SED=$ac_cv_path_SED
7022 if test -n "$SED"; then
7023   { echo "$as_me:$LINENO: result: $SED" >&5
7024 echo "${ECHO_T}$SED" >&6; }
7025 else
7026   { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7028 fi
7029
7030
7031 # Extract the first word of "tar", so it can be a program name with args.
7032 set dummy tar; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_TAR+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   case $TAR in
7039   [\\/]* | ?:[\\/]*)
7040   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7041   ;;
7042   *)
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7059   ;;
7060 esac
7061 fi
7062 TAR=$ac_cv_path_TAR
7063 if test -n "$TAR"; then
7064   { echo "$as_me:$LINENO: result: $TAR" >&5
7065 echo "${ECHO_T}$TAR" >&6; }
7066 else
7067   { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7069 fi
7070
7071
7072 # Extract the first word of "pwd", so it can be a program name with args.
7073 set dummy pwd; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BINPWD+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $BINPWD in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7100   ;;
7101 esac
7102 fi
7103 BINPWD=$ac_cv_path_BINPWD
7104 if test -n "$BINPWD"; then
7105   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106 echo "${ECHO_T}$BINPWD" >&6; }
7107 else
7108   { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 fi
7111
7112
7113
7114 # Extract the first word of "Graphviz", so it can be a program name with args.
7115 set dummy Graphviz; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119   echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121   case $GRAPHVIZ in
7122   [\\/]* | ?:[\\/]*)
7123   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7124   ;;
7125   *)
7126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7142   ;;
7143 esac
7144 fi
7145 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7146 if test -n "$GRAPHVIZ"; then
7147   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7149 else
7150   { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7152 fi
7153
7154
7155 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_GRAPHVIZ 1
7159 _ACEOF
7160
7161     if test "$llvm_cv_os_type" = "MingW" ; then
7162     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7163   fi
7164
7165 cat >>confdefs.h <<_ACEOF
7166 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7167 _ACEOF
7168
7169 fi
7170 # Extract the first word of "dot", so it can be a program name with args.
7171 set dummy dot; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_DOT+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   case $DOT in
7178   [\\/]* | ?:[\\/]*)
7179   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7180   ;;
7181   *)
7182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7198   ;;
7199 esac
7200 fi
7201 DOT=$ac_cv_path_DOT
7202 if test -n "$DOT"; then
7203   { echo "$as_me:$LINENO: result: $DOT" >&5
7204 echo "${ECHO_T}$DOT" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211 if test "$DOT" != "echo dot" ; then
7212
7213 cat >>confdefs.h <<\_ACEOF
7214 #define HAVE_DOT 1
7215 _ACEOF
7216
7217     if test "$llvm_cv_os_type" = "MingW" ; then
7218     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7219   fi
7220
7221 cat >>confdefs.h <<_ACEOF
7222 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7223 _ACEOF
7224
7225 fi
7226 for ac_prog in gv gsview32
7227 do
7228   # Extract the first word of "$ac_prog", so it can be a program name with args.
7229 set dummy $ac_prog; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_path_GV+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   case $GV in
7236   [\\/]* | ?:[\\/]*)
7237   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7238   ;;
7239   *)
7240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245   for ac_exec_ext in '' $ac_executable_extensions; do
7246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7247     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255   ;;
7256 esac
7257 fi
7258 GV=$ac_cv_path_GV
7259 if test -n "$GV"; then
7260   { echo "$as_me:$LINENO: result: $GV" >&5
7261 echo "${ECHO_T}$GV" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267
7268   test -n "$GV" && break
7269 done
7270 test -n "$GV" || GV="echo gv"
7271
7272 if test "$GV" != "echo gv" ; then
7273
7274 cat >>confdefs.h <<\_ACEOF
7275 #define HAVE_GV 1
7276 _ACEOF
7277
7278     if test "$llvm_cv_os_type" = "MingW" ; then
7279     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7280   fi
7281
7282 cat >>confdefs.h <<_ACEOF
7283 #define LLVM_PATH_GV "$GV${EXEEXT}"
7284 _ACEOF
7285
7286 fi
7287 # Extract the first word of "dotty", so it can be a program name with args.
7288 set dummy dotty; ac_word=$2
7289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291 if test "${ac_cv_path_DOTTY+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   case $DOTTY in
7295   [\\/]* | ?:[\\/]*)
7296   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7297   ;;
7298   *)
7299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7315   ;;
7316 esac
7317 fi
7318 DOTTY=$ac_cv_path_DOTTY
7319 if test -n "$DOTTY"; then
7320   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7321 echo "${ECHO_T}$DOTTY" >&6; }
7322 else
7323   { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7325 fi
7326
7327
7328 if test "$DOTTY" != "echo dotty" ; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_DOTTY 1
7332 _ACEOF
7333
7334     if test "$llvm_cv_os_type" = "MingW" ; then
7335     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7336   fi
7337
7338 cat >>confdefs.h <<_ACEOF
7339 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7340 _ACEOF
7341
7342 fi
7343
7344
7345 # Extract the first word of "perl", so it can be a program name with args.
7346 set dummy perl; ac_word=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_PERL+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   case $PERL in
7353   [\\/]* | ?:[\\/]*)
7354   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7355   ;;
7356   *)
7357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362   for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7373   ;;
7374 esac
7375 fi
7376 PERL=$ac_cv_path_PERL
7377 if test -n "$PERL"; then
7378   { echo "$as_me:$LINENO: result: $PERL" >&5
7379 echo "${ECHO_T}$PERL" >&6; }
7380 else
7381   { echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6; }
7383 fi
7384
7385
7386 if test "$PERL" != "none"; then
7387   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7388 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7389   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7390     { echo "$as_me:$LINENO: result: yes" >&5
7391 echo "${ECHO_T}yes" >&6; }
7392   else
7393     PERL=none
7394     { echo "$as_me:$LINENO: result: not found" >&5
7395 echo "${ECHO_T}not found" >&6; }
7396   fi
7397 fi
7398
7399
7400 if test x"$PERL" = xnone; then
7401    HAVE_PERL=0
7402
7403    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7404 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7405    { (exit 1); exit 1; }; }
7406 else
7407    HAVE_PERL=1
7408
7409 fi
7410
7411 # Find a good install program.  We prefer a C program (faster),
7412 # so one script is as good as another.  But avoid the broken or
7413 # incompatible versions:
7414 # SysV /etc/install, /usr/sbin/install
7415 # SunOS /usr/etc/install
7416 # IRIX /sbin/install
7417 # AIX /bin/install
7418 # AmigaOS /C/install, which installs bootblocks on floppy discs
7419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7422 # OS/2's system install, which has a completely different semantic
7423 # ./install, which can be erroneously created by make from ./install.sh.
7424 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7426 if test -z "$INSTALL"; then
7427 if test "${ac_cv_path_install+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   # Account for people who put trailing slashes in PATH elements.
7436 case $as_dir/ in
7437   ./ | .// | /cC/* | \
7438   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7439   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7440   /usr/ucb/* ) ;;
7441   *)
7442     # OSF1 and SCO ODT 3.0 have their own names for install.
7443     # Don't use installbsd from OSF since it installs stuff as root
7444     # by default.
7445     for ac_prog in ginstall scoinst install; do
7446       for ac_exec_ext in '' $ac_executable_extensions; do
7447         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7448           if test $ac_prog = install &&
7449             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7450             # AIX install.  It has an incompatible calling convention.
7451             :
7452           elif test $ac_prog = install &&
7453             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7454             # program-specific install script used by HP pwplus--don't use.
7455             :
7456           else
7457             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7458             break 3
7459           fi
7460         fi
7461       done
7462     done
7463     ;;
7464 esac
7465 done
7466 IFS=$as_save_IFS
7467
7468
7469 fi
7470   if test "${ac_cv_path_install+set}" = set; then
7471     INSTALL=$ac_cv_path_install
7472   else
7473     # As a last resort, use the slow shell script.  Don't cache a
7474     # value for INSTALL within a source directory, because that will
7475     # break other packages using the cache if that directory is
7476     # removed, or if the value is a relative name.
7477     INSTALL=$ac_install_sh
7478   fi
7479 fi
7480 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7481 echo "${ECHO_T}$INSTALL" >&6; }
7482
7483 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7484 # It thinks the first close brace ends the variable substitution.
7485 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7486
7487 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7488
7489 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7490
7491
7492 # Extract the first word of "bzip2", so it can be a program name with args.
7493 set dummy bzip2; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_BZIP2+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $BZIP2 in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7520   ;;
7521 esac
7522 fi
7523 BZIP2=$ac_cv_path_BZIP2
7524 if test -n "$BZIP2"; then
7525   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7526 echo "${ECHO_T}$BZIP2" >&6; }
7527 else
7528   { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7530 fi
7531
7532
7533 # Extract the first word of "doxygen", so it can be a program name with args.
7534 set dummy doxygen; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   case $DOXYGEN in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7561   ;;
7562 esac
7563 fi
7564 DOXYGEN=$ac_cv_path_DOXYGEN
7565 if test -n "$DOXYGEN"; then
7566   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7567 echo "${ECHO_T}$DOXYGEN" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573
7574 # Extract the first word of "groff", so it can be a program name with args.
7575 set dummy groff; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_GROFF+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   case $GROFF in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7602   ;;
7603 esac
7604 fi
7605 GROFF=$ac_cv_path_GROFF
7606 if test -n "$GROFF"; then
7607   { echo "$as_me:$LINENO: result: $GROFF" >&5
7608 echo "${ECHO_T}$GROFF" >&6; }
7609 else
7610   { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7612 fi
7613
7614
7615 # Extract the first word of "gzip", so it can be a program name with args.
7616 set dummy gzip; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_path_GZIP+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   case $GZIP in
7623   [\\/]* | ?:[\\/]*)
7624   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7625   ;;
7626   *)
7627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632   for ac_exec_ext in '' $ac_executable_extensions; do
7633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7634     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7643   ;;
7644 esac
7645 fi
7646 GZIP=$ac_cv_path_GZIP
7647 if test -n "$GZIP"; then
7648   { echo "$as_me:$LINENO: result: $GZIP" >&5
7649 echo "${ECHO_T}$GZIP" >&6; }
7650 else
7651   { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7653 fi
7654
7655
7656 # Extract the first word of "pod2html", so it can be a program name with args.
7657 set dummy pod2html; ac_word=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_POD2HTML+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   case $POD2HTML in
7664   [\\/]* | ?:[\\/]*)
7665   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7666   ;;
7667   *)
7668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673   for ac_exec_ext in '' $ac_executable_extensions; do
7674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7684   ;;
7685 esac
7686 fi
7687 POD2HTML=$ac_cv_path_POD2HTML
7688 if test -n "$POD2HTML"; then
7689   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7690 echo "${ECHO_T}$POD2HTML" >&6; }
7691 else
7692   { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7694 fi
7695
7696
7697 # Extract the first word of "pod2man", so it can be a program name with args.
7698 set dummy pod2man; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_POD2MAN+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   case $POD2MAN in
7705   [\\/]* | ?:[\\/]*)
7706   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7707   ;;
7708   *)
7709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7725   ;;
7726 esac
7727 fi
7728 POD2MAN=$ac_cv_path_POD2MAN
7729 if test -n "$POD2MAN"; then
7730   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7731 echo "${ECHO_T}$POD2MAN" >&6; }
7732 else
7733   { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7735 fi
7736
7737
7738 # Extract the first word of "runtest", so it can be a program name with args.
7739 set dummy runtest; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_path_RUNTEST+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   case $RUNTEST in
7746   [\\/]* | ?:[\\/]*)
7747   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7748   ;;
7749   *)
7750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755   for ac_exec_ext in '' $ac_executable_extensions; do
7756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7757     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7766   ;;
7767 esac
7768 fi
7769 RUNTEST=$ac_cv_path_RUNTEST
7770 if test -n "$RUNTEST"; then
7771   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7772 echo "${ECHO_T}$RUNTEST" >&6; }
7773 else
7774   { echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6; }
7776 fi
7777
7778
7779
7780 no_itcl=true
7781 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7782 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7783
7784 # Check whether --with-tclinclude was given.
7785 if test "${with_tclinclude+set}" = set; then
7786   withval=$with_tclinclude; with_tclinclude=${withval}
7787 else
7788   with_tclinclude=''
7789 fi
7790
7791 if test "${ac_cv_path_tclsh+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794
7795 if test x"${with_tclinclude}" != x ; then
7796   if test -f ${with_tclinclude}/tclsh ; then
7797     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7798   elif test -f ${with_tclinclude}/src/tclsh ; then
7799     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7800   else
7801     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7802 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7803    { (exit 1); exit 1; }; }
7804   fi
7805 fi
7806
7807 if test x"${ac_cv_path_tclsh}" = x ; then
7808   { echo "$as_me:$LINENO: result: none" >&5
7809 echo "${ECHO_T}none" >&6; }
7810   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
7811 do
7812   # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816 if test "${ac_cv_path_TCLSH+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   case $TCLSH in
7820   [\\/]* | ?:[\\/]*)
7821   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7822   ;;
7823   *)
7824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829   for ac_exec_ext in '' $ac_executable_extensions; do
7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839   ;;
7840 esac
7841 fi
7842 TCLSH=$ac_cv_path_TCLSH
7843 if test -n "$TCLSH"; then
7844   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7845 echo "${ECHO_T}$TCLSH" >&6; }
7846 else
7847   { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7849 fi
7850
7851
7852   test -n "$TCLSH" && break
7853 done
7854
7855   if test x"${TCLSH}" = x ; then
7856     ac_cv_path_tclsh='';
7857   else
7858     ac_cv_path_tclsh="${TCLSH}";
7859   fi
7860 else
7861   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7862 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7863   TCLSH="${ac_cv_path_tclsh}"
7864
7865 fi
7866
7867 fi
7868
7869 # Extract the first word of "zip", so it can be a program name with args.
7870 set dummy zip; ac_word=$2
7871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7873 if test "${ac_cv_path_ZIP+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   case $ZIP in
7877   [\\/]* | ?:[\\/]*)
7878   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7879   ;;
7880   *)
7881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884   IFS=$as_save_IFS
7885   test -z "$as_dir" && as_dir=.
7886   for ac_exec_ext in '' $ac_executable_extensions; do
7887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7888     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893 done
7894 IFS=$as_save_IFS
7895
7896   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7897   ;;
7898 esac
7899 fi
7900 ZIP=$ac_cv_path_ZIP
7901 if test -n "$ZIP"; then
7902   { echo "$as_me:$LINENO: result: $ZIP" >&5
7903 echo "${ECHO_T}$ZIP" >&6; }
7904 else
7905   { echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6; }
7907 fi
7908
7909
7910
7911 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7912 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7913 if test "${llvm_cv_link_use_r+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916    ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922   oldcflags="$CFLAGS"
7923   CFLAGS="$CFLAGS -Wl,-R."
7924   cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930
7931 int
7932 main ()
7933 {
7934 int main() { return 0; }
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (ac_try="$ac_link"
7941 case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946   (eval "$ac_link") 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7954   { (case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959   (eval "$ac_try") 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; } &&
7963          { ac_try='test -s conftest$ac_exeext'
7964   { (case "(($ac_try" in
7965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966   *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969   (eval "$ac_try") 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   llvm_cv_link_use_r=yes
7974 else
7975   echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978         llvm_cv_link_use_r=no
7979 fi
7980
7981 rm -f core conftest.err conftest.$ac_objext \
7982       conftest$ac_exeext conftest.$ac_ext
7983   CFLAGS="$oldcflags"
7984   ac_ext=c
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990
7991 fi
7992 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7993 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7994 if test "$llvm_cv_link_use_r" = yes ; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_LINK_R 1
7998 _ACEOF
7999
8000   fi
8001
8002
8003
8004
8005 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8006 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8007 if test "${ac_cv_c_const+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010   cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h.  */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h.  */
8016
8017 int
8018 main ()
8019 {
8020 /* FIXME: Include the comments suggested by Paul. */
8021 #ifndef __cplusplus
8022   /* Ultrix mips cc rejects this.  */
8023   typedef int charset[2];
8024   const charset x;
8025   /* SunOS 4.1.1 cc rejects this.  */
8026   char const *const *ccp;
8027   char **p;
8028   /* NEC SVR4.0.2 mips cc rejects this.  */
8029   struct point {int x, y;};
8030   static struct point const zero = {0,0};
8031   /* AIX XL C 1.02.0.0 rejects this.
8032      It does not let you subtract one const X* pointer from another in
8033      an arm of an if-expression whose if-part is not a constant
8034      expression */
8035   const char *g = "string";
8036   ccp = &g + (g ? g-g : 0);
8037   /* HPUX 7.0 cc rejects these. */
8038   ++ccp;
8039   p = (char**) ccp;
8040   ccp = (char const *const *) p;
8041   { /* SCO 3.2v4 cc rejects this.  */
8042     char *t;
8043     char const *s = 0 ? (char *) 0 : (char const *) 0;
8044
8045     *t++ = 0;
8046     if (s) return 0;
8047   }
8048   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8049     int x[] = {25, 17};
8050     const int *foo = &x[0];
8051     ++foo;
8052   }
8053   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8054     typedef const int *iptr;
8055     iptr p = 0;
8056     ++p;
8057   }
8058   { /* AIX XL C 1.02.0.0 rejects this saying
8059        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8060     struct s { int j; const int *ap[3]; };
8061     struct s *b; b->j = 5;
8062   }
8063   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8064     const int foo = 10;
8065     if (!foo) return 0;
8066   }
8067   return !x[0] && !zero.x;
8068 #endif
8069
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8076 case "(($ac_try" in
8077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078   *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081   (eval "$ac_compile") 2>conftest.er1
8082   ac_status=$?
8083   grep -v '^ *+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } &&
8088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8089   { (case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_try") 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); }; } &&
8098          { ac_try='test -s conftest.$ac_objext'
8099   { (case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_try") 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108   ac_cv_c_const=yes
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113         ac_cv_c_const=no
8114 fi
8115
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 fi
8118 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8119 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8120 if test $ac_cv_c_const = no; then
8121
8122 cat >>confdefs.h <<\_ACEOF
8123 #define const
8124 _ACEOF
8125
8126 fi
8127
8128
8129
8130
8131
8132
8133 ac_header_dirent=no
8134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8135   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8136 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8137 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147 #include <sys/types.h>
8148 #include <$ac_hdr>
8149
8150 int
8151 main ()
8152 {
8153 if ((DIR *) 0)
8154 return 0;
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166   (eval "$ac_compile") 2>conftest.er1
8167   ac_status=$?
8168   grep -v '^ *+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } &&
8173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8174   { (case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179   (eval "$ac_try") 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; } &&
8183          { ac_try='test -s conftest.$ac_objext'
8184   { (case "(($ac_try" in
8185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186   *) ac_try_echo=$ac_try;;
8187 esac
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189   (eval "$ac_try") 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   eval "$as_ac_Header=yes"
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198         eval "$as_ac_Header=no"
8199 fi
8200
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 ac_res=`eval echo '${'$as_ac_Header'}'`
8204                { echo "$as_me:$LINENO: result: $ac_res" >&5
8205 echo "${ECHO_T}$ac_res" >&6; }
8206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8207   cat >>confdefs.h <<_ACEOF
8208 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8209 _ACEOF
8210
8211 ac_header_dirent=$ac_hdr; break
8212 fi
8213
8214 done
8215 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8216 if test $ac_header_dirent = dirent.h; then
8217   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8219 if test "${ac_cv_search_opendir+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   ac_func_search_save_LIBS=$LIBS
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229
8230 /* Override any GCC internal prototype to avoid an error.
8231    Use char because int might match the return type of a GCC
8232    builtin and then its argument prototype would still apply.  */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 char opendir ();
8237 int
8238 main ()
8239 {
8240 return opendir ();
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 for ac_lib in '' dir; do
8246   if test -z "$ac_lib"; then
8247     ac_res="none required"
8248   else
8249     ac_res=-l$ac_lib
8250     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8251   fi
8252   rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8254 case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_link") 2>conftest.er1
8260   ac_status=$?
8261   grep -v '^ *+' conftest.er1 >conftest.err
8262   rm -f conftest.er1
8263   cat conftest.err >&5
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } &&
8266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267   { (case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272   (eval "$ac_try") 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; } &&
8276          { ac_try='test -s conftest$ac_exeext'
8277   { (case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_try") 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; }; then
8286   ac_cv_search_opendir=$ac_res
8287 else
8288   echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext \
8295       conftest$ac_exeext
8296   if test "${ac_cv_search_opendir+set}" = set; then
8297   break
8298 fi
8299 done
8300 if test "${ac_cv_search_opendir+set}" = set; then
8301   :
8302 else
8303   ac_cv_search_opendir=no
8304 fi
8305 rm conftest.$ac_ext
8306 LIBS=$ac_func_search_save_LIBS
8307 fi
8308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8310 ac_res=$ac_cv_search_opendir
8311 if test "$ac_res" != no; then
8312   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313
8314 fi
8315
8316 else
8317   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8318 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8319 if test "${ac_cv_search_opendir+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   ac_func_search_save_LIBS=$LIBS
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329
8330 /* Override any GCC internal prototype to avoid an error.
8331    Use char because int might match the return type of a GCC
8332    builtin and then its argument prototype would still apply.  */
8333 #ifdef __cplusplus
8334 extern "C"
8335 #endif
8336 char opendir ();
8337 int
8338 main ()
8339 {
8340 return opendir ();
8341   ;
8342   return 0;
8343 }
8344 _ACEOF
8345 for ac_lib in '' x; do
8346   if test -z "$ac_lib"; then
8347     ac_res="none required"
8348   else
8349     ac_res=-l$ac_lib
8350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8351   fi
8352   rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8354 case "(($ac_try" in
8355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356   *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359   (eval "$ac_link") 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367   { (case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_try") 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (case "(($ac_try" in
8378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379   *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382   (eval "$ac_try") 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   ac_cv_search_opendir=$ac_res
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391
8392 fi
8393
8394 rm -f core conftest.err conftest.$ac_objext \
8395       conftest$ac_exeext
8396   if test "${ac_cv_search_opendir+set}" = set; then
8397   break
8398 fi
8399 done
8400 if test "${ac_cv_search_opendir+set}" = set; then
8401   :
8402 else
8403   ac_cv_search_opendir=no
8404 fi
8405 rm conftest.$ac_ext
8406 LIBS=$ac_func_search_save_LIBS
8407 fi
8408 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8409 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8410 ac_res=$ac_cv_search_opendir
8411 if test "$ac_res" != no; then
8412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8413
8414 fi
8415
8416 fi
8417
8418
8419 for ac_header in dlfcn.h
8420 do
8421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 fi
8428 ac_res=`eval echo '${'$as_ac_Header'}'`
8429                { echo "$as_me:$LINENO: result: $ac_res" >&5
8430 echo "${ECHO_T}$ac_res" >&6; }
8431 else
8432   # Is the header compilable?
8433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441 $ac_includes_default
8442 #include <$ac_header>
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_compile") 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459   { (case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_try") 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; } &&
8468          { ac_try='test -s conftest.$ac_objext'
8469   { (case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_try") 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   ac_header_compiler=yes
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483         ac_header_compiler=no
8484 fi
8485
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8488 echo "${ECHO_T}$ac_header_compiler" >&6; }
8489
8490 # Is the header present?
8491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499 #include <$ac_header>
8500 _ACEOF
8501 if { (ac_try="$ac_cpp conftest.$ac_ext"
8502 case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } >/dev/null; then
8514   if test -s conftest.err; then
8515     ac_cpp_err=$ac_c_preproc_warn_flag
8516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8517   else
8518     ac_cpp_err=
8519   fi
8520 else
8521   ac_cpp_err=yes
8522 fi
8523 if test -z "$ac_cpp_err"; then
8524   ac_header_preproc=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529   ac_header_preproc=no
8530 fi
8531
8532 rm -f conftest.err conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534 echo "${ECHO_T}$ac_header_preproc" >&6; }
8535
8536 # So?  What about this header?
8537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8538   yes:no: )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8543     ac_header_preproc=yes
8544     ;;
8545   no:yes:* )
8546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8558     ( cat <<\_ASBOX
8559 ## ----------------------------------- ##
8560 ## Report this to llvmbugs@cs.uiuc.edu ##
8561 ## ----------------------------------- ##
8562 _ASBOX
8563      ) | sed "s/^/$as_me: WARNING:     /" >&2
8564     ;;
8565 esac
8566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   eval "$as_ac_Header=\$ac_header_preproc"
8572 fi
8573 ac_res=`eval echo '${'$as_ac_Header'}'`
8574                { echo "$as_me:$LINENO: result: $ac_res" >&5
8575 echo "${ECHO_T}$ac_res" >&6; }
8576
8577 fi
8578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8579   cat >>confdefs.h <<_ACEOF
8580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8581 _ACEOF
8582
8583 fi
8584
8585 done
8586
8587 # Check whether --enable-ltdl-install was given.
8588 if test "${enable_ltdl_install+set}" = set; then
8589   enableval=$enable_ltdl_install;
8590 fi
8591
8592
8593
8594
8595 if test x"${enable_ltdl_install-no}" != xno; then
8596   INSTALL_LTDL_TRUE=
8597   INSTALL_LTDL_FALSE='#'
8598 else
8599   INSTALL_LTDL_TRUE='#'
8600   INSTALL_LTDL_FALSE=
8601 fi
8602
8603
8604
8605 if test x"${enable_ltdl_convenience-no}" != xno; then
8606   CONVENIENCE_LTDL_TRUE=
8607   CONVENIENCE_LTDL_FALSE='#'
8608 else
8609   CONVENIENCE_LTDL_TRUE='#'
8610   CONVENIENCE_LTDL_FALSE=
8611 fi
8612
8613
8614 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8615 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8616 library_names_spec=
8617 libname_spec='lib$name'
8618 soname_spec=
8619 shrext_cmds=".so"
8620 postinstall_cmds=
8621 postuninstall_cmds=
8622 finish_cmds=
8623 finish_eval=
8624 shlibpath_var=
8625 shlibpath_overrides_runpath=unknown
8626 version_type=none
8627 dynamic_linker="$host_os ld.so"
8628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8629 if test "$GCC" = yes; then
8630   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8632     # if the path contains ";" then we assume it to be the separator
8633     # otherwise default to the standard path separator (i.e. ":") - it is
8634     # assumed that no part of a normal pathname contains ";" but that should
8635     # okay in the real world where ";" in dirpaths is itself problematic.
8636     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8637   else
8638     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8639   fi
8640 else
8641   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8642 fi
8643 need_lib_prefix=unknown
8644 hardcode_into_libs=no
8645
8646 # when you set need_version to no, make sure it does not cause -set_version
8647 # flags to be left without arguments
8648 need_version=unknown
8649
8650 case $host_os in
8651 aix3*)
8652   version_type=linux
8653   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8654   shlibpath_var=LIBPATH
8655
8656   # AIX 3 has no versioning support, so we append a major version to the name.
8657   soname_spec='${libname}${release}${shared_ext}$major'
8658   ;;
8659
8660 aix4* | aix5*)
8661   version_type=linux
8662   need_lib_prefix=no
8663   need_version=no
8664   hardcode_into_libs=yes
8665   if test "$host_cpu" = ia64; then
8666     # AIX 5 supports IA64
8667     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8668     shlibpath_var=LD_LIBRARY_PATH
8669   else
8670     # With GCC up to 2.95.x, collect2 would create an import file
8671     # for dependence libraries.  The import file would start with
8672     # the line `#! .'.  This would cause the generated library to
8673     # depend on `.', always an invalid library.  This was fixed in
8674     # development snapshots of GCC prior to 3.0.
8675     case $host_os in
8676       aix4 | aix4.[01] | aix4.[01].*)
8677       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8678            echo ' yes '
8679            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8680         :
8681       else
8682         can_build_shared=no
8683       fi
8684       ;;
8685     esac
8686     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8687     # soname into executable. Probably we can add versioning support to
8688     # collect2, so additional links can be useful in future.
8689     if test "$aix_use_runtimelinking" = yes; then
8690       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8691       # instead of lib<name>.a to let people know that these are not
8692       # typical AIX shared libraries.
8693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694     else
8695       # We preserve .a as extension for shared libraries through AIX4.2
8696       # and later when we are not doing run time linking.
8697       library_names_spec='${libname}${release}.a $libname.a'
8698       soname_spec='${libname}${release}${shared_ext}$major'
8699     fi
8700     shlibpath_var=LIBPATH
8701   fi
8702   ;;
8703
8704 amigaos*)
8705   library_names_spec='$libname.ixlibrary $libname.a'
8706   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8707   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'
8708   ;;
8709
8710 beos*)
8711   library_names_spec='${libname}${shared_ext}'
8712   dynamic_linker="$host_os ld.so"
8713   shlibpath_var=LIBRARY_PATH
8714   ;;
8715
8716 bsdi[45]*)
8717   version_type=linux
8718   need_version=no
8719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720   soname_spec='${libname}${release}${shared_ext}$major'
8721   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8722   shlibpath_var=LD_LIBRARY_PATH
8723   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8724   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8725   # the default ld.so.conf also contains /usr/contrib/lib and
8726   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8727   # libtool to hard-code these into programs
8728   ;;
8729
8730 cygwin* | mingw* | pw32*)
8731   version_type=windows
8732   shrext_cmds=".dll"
8733   need_version=no
8734   need_lib_prefix=no
8735
8736   case $GCC,$host_os in
8737   yes,cygwin* | yes,mingw* | yes,pw32*)
8738     library_names_spec='$libname.dll.a'
8739     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8740     postinstall_cmds='base_file=`basename \${file}`~
8741       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8742       dldir=$destdir/`dirname \$dlpath`~
8743       test -d \$dldir || mkdir -p \$dldir~
8744       $install_prog $dir/$dlname \$dldir/$dlname~
8745       chmod a+x \$dldir/$dlname'
8746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8747       dlpath=$dir/\$dldll~
8748        $rm \$dlpath'
8749     shlibpath_overrides_runpath=yes
8750
8751     case $host_os in
8752     cygwin*)
8753       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8754       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8756       ;;
8757     mingw*)
8758       # MinGW DLLs use traditional 'lib' prefix
8759       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8762         # It is most probably a Windows format PATH printed by
8763         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8764         # path with ; separators, and with drive letters. We can handle the
8765         # drive letters (cygwin fileutils understands them), so leave them,
8766         # especially as we might pass files found there to a mingw objdump,
8767         # which wouldn't understand a cygwinified path. Ahh.
8768         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769       else
8770         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8771       fi
8772       ;;
8773     pw32*)
8774       # pw32 DLLs use 'pw' prefix rather than 'lib'
8775       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8776       ;;
8777     esac
8778     ;;
8779
8780   *)
8781     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8782     ;;
8783   esac
8784   dynamic_linker='Win32 ld.exe'
8785   # FIXME: first we should search . and the directory the executable is in
8786   shlibpath_var=PATH
8787   ;;
8788
8789 darwin* | rhapsody*)
8790   dynamic_linker="$host_os dyld"
8791   version_type=darwin
8792   need_lib_prefix=no
8793   need_version=no
8794   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8795   soname_spec='${libname}${release}${major}$shared_ext'
8796   shlibpath_overrides_runpath=yes
8797   shlibpath_var=DYLD_LIBRARY_PATH
8798   shrext_cmds='.dylib'
8799   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8800   if test "$GCC" = yes; then
8801     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"`
8802   else
8803     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8804   fi
8805   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8806   ;;
8807
8808 dgux*)
8809   version_type=linux
8810   need_lib_prefix=no
8811   need_version=no
8812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8813   soname_spec='${libname}${release}${shared_ext}$major'
8814   shlibpath_var=LD_LIBRARY_PATH
8815   ;;
8816
8817 freebsd1*)
8818   dynamic_linker=no
8819   ;;
8820
8821 kfreebsd*-gnu)
8822   version_type=linux
8823   need_lib_prefix=no
8824   need_version=no
8825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8826   soname_spec='${libname}${release}${shared_ext}$major'
8827   shlibpath_var=LD_LIBRARY_PATH
8828   shlibpath_overrides_runpath=no
8829   hardcode_into_libs=yes
8830   dynamic_linker='GNU ld.so'
8831   ;;
8832
8833 freebsd* | dragonfly*)
8834   # DragonFly does not have aout.  When/if they implement a new
8835   # versioning mechanism, adjust this.
8836   if test -x /usr/bin/objformat; then
8837     objformat=`/usr/bin/objformat`
8838   else
8839     case $host_os in
8840     freebsd[123]*) objformat=aout ;;
8841     *) objformat=elf ;;
8842     esac
8843   fi
8844   version_type=freebsd-$objformat
8845   case $version_type in
8846     freebsd-elf*)
8847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8848       need_version=no
8849       need_lib_prefix=no
8850       ;;
8851     freebsd-*)
8852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8853       need_version=yes
8854       ;;
8855   esac
8856   shlibpath_var=LD_LIBRARY_PATH
8857   case $host_os in
8858   freebsd2*)
8859     shlibpath_overrides_runpath=yes
8860     ;;
8861   freebsd3.[01]* | freebsdelf3.[01]*)
8862     shlibpath_overrides_runpath=yes
8863     hardcode_into_libs=yes
8864     ;;
8865   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8866   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8867     shlibpath_overrides_runpath=no
8868     hardcode_into_libs=yes
8869     ;;
8870   freebsd*) # from 4.6 on
8871     shlibpath_overrides_runpath=yes
8872     hardcode_into_libs=yes
8873     ;;
8874   esac
8875   ;;
8876
8877 gnu*)
8878   version_type=linux
8879   need_lib_prefix=no
8880   need_version=no
8881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   shlibpath_var=LD_LIBRARY_PATH
8884   hardcode_into_libs=yes
8885   ;;
8886
8887 hpux9* | hpux10* | hpux11*)
8888   # Give a soname corresponding to the major version so that dld.sl refuses to
8889   # link against other versions.
8890   version_type=sunos
8891   need_lib_prefix=no
8892   need_version=no
8893   case $host_cpu in
8894   ia64*)
8895     shrext_cmds='.so'
8896     hardcode_into_libs=yes
8897     dynamic_linker="$host_os dld.so"
8898     shlibpath_var=LD_LIBRARY_PATH
8899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901     soname_spec='${libname}${release}${shared_ext}$major'
8902     if test "X$HPUX_IA64_MODE" = X32; then
8903       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8904     else
8905       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8906     fi
8907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908     ;;
8909    hppa*64*)
8910      shrext_cmds='.sl'
8911      hardcode_into_libs=yes
8912      dynamic_linker="$host_os dld.sl"
8913      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8914      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916      soname_spec='${libname}${release}${shared_ext}$major'
8917      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8918      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8919      ;;
8920    *)
8921     shrext_cmds='.sl'
8922     dynamic_linker="$host_os dld.sl"
8923     shlibpath_var=SHLIB_PATH
8924     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926     soname_spec='${libname}${release}${shared_ext}$major'
8927     ;;
8928   esac
8929   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8930   postinstall_cmds='chmod 555 $lib'
8931   ;;
8932
8933 interix3*)
8934   version_type=linux
8935   need_lib_prefix=no
8936   need_version=no
8937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938   soname_spec='${libname}${release}${shared_ext}$major'
8939   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8940   shlibpath_var=LD_LIBRARY_PATH
8941   shlibpath_overrides_runpath=no
8942   hardcode_into_libs=yes
8943   ;;
8944
8945 irix5* | irix6* | nonstopux*)
8946   case $host_os in
8947     nonstopux*) version_type=nonstopux ;;
8948     *)
8949         if test "$lt_cv_prog_gnu_ld" = yes; then
8950                 version_type=linux
8951         else
8952                 version_type=irix
8953         fi ;;
8954   esac
8955   need_lib_prefix=no
8956   need_version=no
8957   soname_spec='${libname}${release}${shared_ext}$major'
8958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8959   case $host_os in
8960   irix5* | nonstopux*)
8961     libsuff= shlibsuff=
8962     ;;
8963   *)
8964     case $LD in # libtool.m4 will add one of these switches to LD
8965     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8966       libsuff= shlibsuff= libmagic=32-bit;;
8967     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8968       libsuff=32 shlibsuff=N32 libmagic=N32;;
8969     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8970       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8971     *) libsuff= shlibsuff= libmagic=never-match;;
8972     esac
8973     ;;
8974   esac
8975   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8976   shlibpath_overrides_runpath=no
8977   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8978   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8979   hardcode_into_libs=yes
8980   ;;
8981
8982 # No shared lib support for Linux oldld, aout, or coff.
8983 linux*oldld* | linux*aout* | linux*coff*)
8984   dynamic_linker=no
8985   ;;
8986
8987 # This must be Linux ELF.
8988 linux*)
8989   version_type=linux
8990   need_lib_prefix=no
8991   need_version=no
8992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993   soname_spec='${libname}${release}${shared_ext}$major'
8994   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8995   shlibpath_var=LD_LIBRARY_PATH
8996   shlibpath_overrides_runpath=no
8997   # This implies no fast_install, which is unacceptable.
8998   # Some rework will be needed to allow for fast_install
8999   # before this can be enabled.
9000   hardcode_into_libs=yes
9001
9002   # Append ld.so.conf contents to the search path
9003   if test -f /etc/ld.so.conf; then
9004     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' ' '`
9005     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9006   fi
9007
9008   # We used to test for /lib/ld.so.1 and disable shared libraries on
9009   # powerpc, because MkLinux only supported shared libraries with the
9010   # GNU dynamic linker.  Since this was broken with cross compilers,
9011   # most powerpc-linux boxes support dynamic linking these days and
9012   # people can always --disable-shared, the test was removed, and we
9013   # assume the GNU/Linux dynamic linker is in use.
9014   dynamic_linker='GNU/Linux ld.so'
9015   ;;
9016
9017 knetbsd*-gnu)
9018   version_type=linux
9019   need_lib_prefix=no
9020   need_version=no
9021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9022   soname_spec='${libname}${release}${shared_ext}$major'
9023   shlibpath_var=LD_LIBRARY_PATH
9024   shlibpath_overrides_runpath=no
9025   hardcode_into_libs=yes
9026   dynamic_linker='GNU ld.so'
9027   ;;
9028
9029 netbsd*)
9030   version_type=sunos
9031   need_lib_prefix=no
9032   need_version=no
9033   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036     dynamic_linker='NetBSD (a.out) ld.so'
9037   else
9038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039     soname_spec='${libname}${release}${shared_ext}$major'
9040     dynamic_linker='NetBSD ld.elf_so'
9041   fi
9042   shlibpath_var=LD_LIBRARY_PATH
9043   shlibpath_overrides_runpath=yes
9044   hardcode_into_libs=yes
9045   ;;
9046
9047 newsos6)
9048   version_type=linux
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050   shlibpath_var=LD_LIBRARY_PATH
9051   shlibpath_overrides_runpath=yes
9052   ;;
9053
9054 nto-qnx*)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=yes
9062   ;;
9063
9064 openbsd*)
9065   version_type=sunos
9066   sys_lib_dlsearch_path_spec="/usr/lib"
9067   need_lib_prefix=no
9068   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9069   case $host_os in
9070     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9071     *)                         need_version=no  ;;
9072   esac
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075   shlibpath_var=LD_LIBRARY_PATH
9076   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9077     case $host_os in
9078       openbsd2.[89] | openbsd2.[89].*)
9079         shlibpath_overrides_runpath=no
9080         ;;
9081       *)
9082         shlibpath_overrides_runpath=yes
9083         ;;
9084       esac
9085   else
9086     shlibpath_overrides_runpath=yes
9087   fi
9088   ;;
9089
9090 os2*)
9091   libname_spec='$name'
9092   shrext_cmds=".dll"
9093   need_lib_prefix=no
9094   library_names_spec='$libname${shared_ext} $libname.a'
9095   dynamic_linker='OS/2 ld.exe'
9096   shlibpath_var=LIBPATH
9097   ;;
9098
9099 osf3* | osf4* | osf5*)
9100   version_type=osf
9101   need_lib_prefix=no
9102   need_version=no
9103   soname_spec='${libname}${release}${shared_ext}$major'
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9107   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9108   ;;
9109
9110 solaris*)
9111   version_type=linux
9112   need_lib_prefix=no
9113   need_version=no
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   shlibpath_var=LD_LIBRARY_PATH
9117   shlibpath_overrides_runpath=yes
9118   hardcode_into_libs=yes
9119   # ldd complains unless libraries are executable
9120   postinstall_cmds='chmod +x $lib'
9121   ;;
9122
9123 sunos4*)
9124   version_type=sunos
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9126   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9127   shlibpath_var=LD_LIBRARY_PATH
9128   shlibpath_overrides_runpath=yes
9129   if test "$with_gnu_ld" = yes; then
9130     need_lib_prefix=no
9131   fi
9132   need_version=yes
9133   ;;
9134
9135 sysv4 | sysv4.3*)
9136   version_type=linux
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   case $host_vendor in
9141     sni)
9142       shlibpath_overrides_runpath=no
9143       need_lib_prefix=no
9144       export_dynamic_flag_spec='${wl}-Blargedynsym'
9145       runpath_var=LD_RUN_PATH
9146       ;;
9147     siemens)
9148       need_lib_prefix=no
9149       ;;
9150     motorola)
9151       need_lib_prefix=no
9152       need_version=no
9153       shlibpath_overrides_runpath=no
9154       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9155       ;;
9156   esac
9157   ;;
9158
9159 sysv4*MP*)
9160   if test -d /usr/nec ;then
9161     version_type=linux
9162     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9163     soname_spec='$libname${shared_ext}.$major'
9164     shlibpath_var=LD_LIBRARY_PATH
9165   fi
9166   ;;
9167
9168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9169   version_type=freebsd-elf
9170   need_lib_prefix=no
9171   need_version=no
9172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9173   soname_spec='${libname}${release}${shared_ext}$major'
9174   shlibpath_var=LD_LIBRARY_PATH
9175   hardcode_into_libs=yes
9176   if test "$with_gnu_ld" = yes; then
9177     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9178     shlibpath_overrides_runpath=no
9179   else
9180     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9181     shlibpath_overrides_runpath=yes
9182     case $host_os in
9183       sco3.2v5*)
9184         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9185         ;;
9186     esac
9187   fi
9188   sys_lib_dlsearch_path_spec='/usr/lib'
9189   ;;
9190
9191 uts4*)
9192   version_type=linux
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   ;;
9197
9198 *)
9199   dynamic_linker=no
9200   ;;
9201 esac
9202 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9203 echo "${ECHO_T}$dynamic_linker" >&6; }
9204 test "$dynamic_linker" = no && can_build_shared=no
9205
9206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9207 if test "$GCC" = yes; then
9208   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9209 fi
9210
9211
9212 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9213 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9214 if test "${libltdl_cv_shlibext+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217
9218 module=yes
9219 eval libltdl_cv_shlibext=$shrext_cmds
9220
9221 fi
9222 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9223 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9224 if test -n "$libltdl_cv_shlibext"; then
9225
9226 cat >>confdefs.h <<_ACEOF
9227 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9228 _ACEOF
9229
9230 fi
9231
9232
9233 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9234 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9235 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   libltdl_cv_shlibpath_var="$shlibpath_var"
9239 fi
9240 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9241 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9242 if test -n "$libltdl_cv_shlibpath_var"; then
9243
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9246 _ACEOF
9247
9248 fi
9249
9250
9251 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9252 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9253 if test "${libltdl_cv_sys_search_path+set}" = set; then
9254   echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9257 fi
9258 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9259 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9260 if test -n "$libltdl_cv_sys_search_path"; then
9261   sys_search_path=
9262   for dir in $libltdl_cv_sys_search_path; do
9263     if test -z "$sys_search_path"; then
9264       sys_search_path="$dir"
9265     else
9266       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9267     fi
9268   done
9269
9270 cat >>confdefs.h <<_ACEOF
9271 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9272 _ACEOF
9273
9274 fi
9275
9276 { echo "$as_me:$LINENO: checking for objdir" >&5
9277 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9278 if test "${libltdl_cv_objdir+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   libltdl_cv_objdir="$objdir"
9282   if test -n "$objdir"; then
9283     :
9284   else
9285     rm -f .libs 2>/dev/null
9286     mkdir .libs 2>/dev/null
9287     if test -d .libs; then
9288       libltdl_cv_objdir=.libs
9289     else
9290       # MS-DOS does not allow filenames that begin with a dot.
9291       libltdl_cv_objdir=_libs
9292     fi
9293   rmdir .libs 2>/dev/null
9294   fi
9295
9296 fi
9297 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9298 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9299
9300 cat >>confdefs.h <<_ACEOF
9301 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9302 _ACEOF
9303
9304
9305
9306
9307
9308
9309 # Check for command to grab the raw symbol name followed by C symbol from nm.
9310 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9311 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9312 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315
9316 # These are sane defaults that work on at least a few old systems.
9317 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9318
9319 # Character class describing NM global symbol codes.
9320 symcode='[BCDEGRST]'
9321
9322 # Regexp to match symbols that can be accessed directly from C.
9323 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9324
9325 # Transform an extracted symbol line into a proper C declaration
9326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9327
9328 # Transform an extracted symbol line into symbol name and symbol address
9329 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'"
9330
9331 # Define system-specific variables.
9332 case $host_os in
9333 aix*)
9334   symcode='[BCDT]'
9335   ;;
9336 cygwin* | mingw* | pw32*)
9337   symcode='[ABCDGISTW]'
9338   ;;
9339 hpux*) # Its linker distinguishes data from code symbols
9340   if test "$host_cpu" = ia64; then
9341     symcode='[ABCDEGRST]'
9342   fi
9343   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9344   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'"
9345   ;;
9346 linux*)
9347   if test "$host_cpu" = ia64; then
9348     symcode='[ABCDGIRSTW]'
9349     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9350     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'"
9351   fi
9352   ;;
9353 irix* | nonstopux*)
9354   symcode='[BCDEGRST]'
9355   ;;
9356 osf*)
9357   symcode='[BCDEGQRST]'
9358   ;;
9359 solaris*)
9360   symcode='[BDRT]'
9361   ;;
9362 sco3.2v5*)
9363   symcode='[DT]'
9364   ;;
9365 sysv4.2uw2*)
9366   symcode='[DT]'
9367   ;;
9368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9369   symcode='[ABDT]'
9370   ;;
9371 sysv4)
9372   symcode='[DFNSTU]'
9373   ;;
9374 esac
9375
9376 # Handle CRLF in mingw tool chain
9377 opt_cr=
9378 case $build_os in
9379 mingw*)
9380   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9381   ;;
9382 esac
9383
9384 # If we're using GNU nm, then use its standard symbol codes.
9385 case `$NM -V 2>&1` in
9386 *GNU* | *'with BFD'*)
9387   symcode='[ABCDGIRSTW]' ;;
9388 esac
9389
9390 # Try without a prefix undercore, then with it.
9391 for ac_symprfx in "" "_"; do
9392
9393   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9394   symxfrm="\\1 $ac_symprfx\\2 \\2"
9395
9396   # Write the raw and C identifiers.
9397   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9398
9399   # Check to see that the pipe works correctly.
9400   pipe_works=no
9401
9402   rm -f conftest*
9403   cat > conftest.$ac_ext <<EOF
9404 #ifdef __cplusplus
9405 extern "C" {
9406 #endif
9407 char nm_test_var;
9408 void nm_test_func(){}
9409 #ifdef __cplusplus
9410 }
9411 #endif
9412 int main(){nm_test_var='a';nm_test_func();return(0);}
9413 EOF
9414
9415   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416   (eval $ac_compile) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; then
9420     # Now try to grab the symbols.
9421     nlist=conftest.nm
9422     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9423   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); } && test -s "$nlist"; then
9427       # Try sorting and uniquifying the output.
9428       if sort "$nlist" | uniq > "$nlist"T; then
9429         mv -f "$nlist"T "$nlist"
9430       else
9431         rm -f "$nlist"T
9432       fi
9433
9434       # Make sure that we snagged all the symbols we need.
9435       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9436         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9437           cat <<EOF > conftest.$ac_ext
9438 #ifdef __cplusplus
9439 extern "C" {
9440 #endif
9441
9442 EOF
9443           # Now generate the symbol file.
9444           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9445
9446           cat <<EOF >> conftest.$ac_ext
9447 #if defined (__STDC__) && __STDC__
9448 # define lt_ptr_t void *
9449 #else
9450 # define lt_ptr_t char *
9451 # define const
9452 #endif
9453
9454 /* The mapping between symbol names and symbols. */
9455 const struct {
9456   const char *name;
9457   lt_ptr_t address;
9458 }
9459 lt_preloaded_symbols[] =
9460 {
9461 EOF
9462           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9463           cat <<\EOF >> conftest.$ac_ext
9464   {0, (lt_ptr_t) 0}
9465 };
9466
9467 #ifdef __cplusplus
9468 }
9469 #endif
9470 EOF
9471           # Now try linking the two files.
9472           mv conftest.$ac_objext conftstm.$ac_objext
9473           lt_save_LIBS="$LIBS"
9474           lt_save_CFLAGS="$CFLAGS"
9475           LIBS="conftstm.$ac_objext"
9476           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9477           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478   (eval $ac_link) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9482             pipe_works=yes
9483           fi
9484           LIBS="$lt_save_LIBS"
9485           CFLAGS="$lt_save_CFLAGS"
9486         else
9487           echo "cannot find nm_test_func in $nlist" >&5
9488         fi
9489       else
9490         echo "cannot find nm_test_var in $nlist" >&5
9491       fi
9492     else
9493       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9494     fi
9495   else
9496     echo "$progname: failed program was:" >&5
9497     cat conftest.$ac_ext >&5
9498   fi
9499   rm -f conftest* conftst*
9500
9501   # Do not use the global_symbol_pipe unless it works.
9502   if test "$pipe_works" = yes; then
9503     break
9504   else
9505     lt_cv_sys_global_symbol_pipe=
9506   fi
9507 done
9508
9509 fi
9510
9511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9512   lt_cv_sys_global_symbol_to_cdecl=
9513 fi
9514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9515   { echo "$as_me:$LINENO: result: failed" >&5
9516 echo "${ECHO_T}failed" >&6; }
9517 else
9518   { echo "$as_me:$LINENO: result: ok" >&5
9519 echo "${ECHO_T}ok" >&6; }
9520 fi
9521
9522
9523 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9524 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9525 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9529     libltdl_cv_preloaded_symbols=yes
9530   else
9531     libltdl_cv_preloaded_symbols=no
9532   fi
9533
9534 fi
9535 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9536 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9537 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9538
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_PRELOADED_SYMBOLS 1
9541 _ACEOF
9542
9543 fi
9544
9545 LIBADD_DL=
9546
9547 ac_ext=c
9548 ac_cpp='$CPP $CPPFLAGS'
9549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9552
9553
9554 { echo "$as_me:$LINENO: checking for shl_load" >&5
9555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9556 if test "${ac_cv_func_shl_load+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9567 #define shl_load innocuous_shl_load
9568
9569 /* System header to define __stub macros and hopefully few prototypes,
9570     which can conflict with char shl_load (); below.
9571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9572     <limits.h> exists even on freestanding compilers.  */
9573
9574 #ifdef __STDC__
9575 # include <limits.h>
9576 #else
9577 # include <assert.h>
9578 #endif
9579
9580 #undef shl_load
9581
9582 /* Override any GCC internal prototype to avoid an error.
9583    Use char because int might match the return type of a GCC
9584    builtin and then its argument prototype would still apply.  */
9585 #ifdef __cplusplus
9586 extern "C"
9587 #endif
9588 char shl_load ();
9589 /* The GNU C library defines this for functions which it implements
9590     to always fail with ENOSYS.  Some functions are actually named
9591     something starting with __ and the normal name is an alias.  */
9592 #if defined __stub_shl_load || defined __stub___shl_load
9593 choke me
9594 #endif
9595
9596 int
9597 main ()
9598 {
9599 return shl_load ();
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (ac_try="$ac_link"
9606 case "(($ac_try" in
9607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608   *) ac_try_echo=$ac_try;;
9609 esac
9610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9611   (eval "$ac_link") 2>conftest.er1
9612   ac_status=$?
9613   grep -v '^ *+' conftest.er1 >conftest.err
9614   rm -f conftest.er1
9615   cat conftest.err >&5
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } &&
9618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619   { (case "(($ac_try" in
9620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621   *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624   (eval "$ac_try") 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; } &&
9628          { ac_try='test -s conftest$ac_exeext'
9629   { (case "(($ac_try" in
9630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631   *) ac_try_echo=$ac_try;;
9632 esac
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634   (eval "$ac_try") 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; }; then
9638   ac_cv_func_shl_load=yes
9639 else
9640   echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643         ac_cv_func_shl_load=no
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext \
9647       conftest$ac_exeext conftest.$ac_ext
9648 fi
9649 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9650 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9651 if test $ac_cv_func_shl_load = yes; then
9652
9653 cat >>confdefs.h <<\_ACEOF
9654 #define HAVE_SHL_LOAD 1
9655 _ACEOF
9656
9657 else
9658   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9659 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9660 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-ldld  $LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671
9672 /* Override any GCC internal prototype to avoid an error.
9673    Use char because int might match the return type of a GCC
9674    builtin and then its argument prototype would still apply.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 char shl_load ();
9679 int
9680 main ()
9681 {
9682 return shl_load ();
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702   { (case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707   (eval "$ac_try") 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; } &&
9711          { ac_try='test -s conftest$ac_exeext'
9712   { (case "(($ac_try" in
9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714   *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717   (eval "$ac_try") 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721   ac_cv_lib_dld_shl_load=yes
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726         ac_cv_lib_dld_shl_load=no
9727 fi
9728
9729 rm -f core conftest.err conftest.$ac_objext \
9730       conftest$ac_exeext conftest.$ac_ext
9731 LIBS=$ac_check_lib_save_LIBS
9732 fi
9733 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9734 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9735 if test $ac_cv_lib_dld_shl_load = yes; then
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_SHL_LOAD 1
9739 _ACEOF
9740
9741         LIBADD_DL="$LIBADD_DL -ldld"
9742 else
9743   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9744 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   ac_check_lib_save_LIBS=$LIBS
9749 LIBS="-ldl  $LIBS"
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 /* Override any GCC internal prototype to avoid an error.
9758    Use char because int might match the return type of a GCC
9759    builtin and then its argument prototype would still apply.  */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char dlopen ();
9764 int
9765 main ()
9766 {
9767 return dlopen ();
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9774 case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_link") 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787   { (case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_try") 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; } &&
9796          { ac_try='test -s conftest$ac_exeext'
9797   { (case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_try") 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_lib_dl_dlopen=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         ac_cv_lib_dl_dlopen=no
9812 fi
9813
9814 rm -f core conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9817 fi
9818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9820 if test $ac_cv_lib_dl_dlopen = yes; then
9821
9822 cat >>confdefs.h <<\_ACEOF
9823 #define HAVE_LIBDL 1
9824 _ACEOF
9825
9826                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9827 else
9828   cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h.  */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h.  */
9834 #if HAVE_DLFCN_H
9835 #  include <dlfcn.h>
9836 #endif
9837
9838 int
9839 main ()
9840 {
9841 dlopen(0, 0);
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850   *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853   (eval "$ac_link") 2>conftest.er1
9854   ac_status=$?
9855   grep -v '^ *+' conftest.er1 >conftest.err
9856   rm -f conftest.er1
9857   cat conftest.err >&5
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861   { (case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_try") 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; } &&
9870          { ac_try='test -s conftest$ac_exeext'
9871   { (case "(($ac_try" in
9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873   *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876   (eval "$ac_try") 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880
9881 cat >>confdefs.h <<\_ACEOF
9882 #define HAVE_LIBDL 1
9883 _ACEOF
9884  libltdl_cv_func_dlopen="yes"
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9890 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9891 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-lsvld  $LIBS"
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904    Use char because int might match the return type of a GCC
9905    builtin and then its argument prototype would still apply.  */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char dlopen ();
9910 int
9911 main ()
9912 {
9913 return dlopen ();
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9920 case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_link") 2>conftest.er1
9926   ac_status=$?
9927   grep -v '^ *+' conftest.er1 >conftest.err
9928   rm -f conftest.er1
9929   cat conftest.err >&5
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } &&
9932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933   { (case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_try") 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; } &&
9942          { ac_try='test -s conftest$ac_exeext'
9943   { (case "(($ac_try" in
9944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945   *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948   (eval "$ac_try") 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; }; then
9952   ac_cv_lib_svld_dlopen=yes
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957         ac_cv_lib_svld_dlopen=no
9958 fi
9959
9960 rm -f core conftest.err conftest.$ac_objext \
9961       conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9963 fi
9964 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9965 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9966 if test $ac_cv_lib_svld_dlopen = yes; then
9967
9968 cat >>confdefs.h <<\_ACEOF
9969 #define HAVE_LIBDL 1
9970 _ACEOF
9971
9972                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9973 else
9974   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9975 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9976 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-ldld  $LIBS"
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h.  */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h.  */
9987
9988 /* Override any GCC internal prototype to avoid an error.
9989    Use char because int might match the return type of a GCC
9990    builtin and then its argument prototype would still apply.  */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 char dld_link ();
9995 int
9996 main ()
9997 {
9998 return dld_link ();
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_link") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018   { (case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_try") 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037   ac_cv_lib_dld_dld_link=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042         ac_cv_lib_dld_dld_link=no
10043 fi
10044
10045 rm -f core conftest.err conftest.$ac_objext \
10046       conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10050 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10051 if test $ac_cv_lib_dld_dld_link = yes; then
10052
10053 cat >>confdefs.h <<\_ACEOF
10054 #define HAVE_DLD 1
10055 _ACEOF
10056
10057                 LIBADD_DL="$LIBADD_DL -ldld"
10058 else
10059   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10060 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10061 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10062   echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064   cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10072 #define _dyld_func_lookup innocuous__dyld_func_lookup
10073
10074 /* System header to define __stub macros and hopefully few prototypes,
10075     which can conflict with char _dyld_func_lookup (); below.
10076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077     <limits.h> exists even on freestanding compilers.  */
10078
10079 #ifdef __STDC__
10080 # include <limits.h>
10081 #else
10082 # include <assert.h>
10083 #endif
10084
10085 #undef _dyld_func_lookup
10086
10087 /* Override any GCC internal prototype to avoid an error.
10088    Use char because int might match the return type of a GCC
10089    builtin and then its argument prototype would still apply.  */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 char _dyld_func_lookup ();
10094 /* The GNU C library defines this for functions which it implements
10095     to always fail with ENOSYS.  Some functions are actually named
10096     something starting with __ and the normal name is an alias.  */
10097 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10098 choke me
10099 #endif
10100
10101 int
10102 main ()
10103 {
10104 return _dyld_func_lookup ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_link") 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124   { (case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129   (eval "$ac_try") 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; } &&
10133          { ac_try='test -s conftest$ac_exeext'
10134   { (case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_try") 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; }; then
10143   ac_cv_func__dyld_func_lookup=yes
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148         ac_cv_func__dyld_func_lookup=no
10149 fi
10150
10151 rm -f core conftest.err conftest.$ac_objext \
10152       conftest$ac_exeext conftest.$ac_ext
10153 fi
10154 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10155 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10156 if test $ac_cv_func__dyld_func_lookup = yes; then
10157
10158 cat >>confdefs.h <<\_ACEOF
10159 #define HAVE_DYLD 1
10160 _ACEOF
10161
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170
10171 fi
10172
10173 rm -f core conftest.err conftest.$ac_objext \
10174       conftest$ac_exeext conftest.$ac_ext
10175
10176 fi
10177
10178
10179 fi
10180
10181
10182 fi
10183
10184
10185 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10186 then
10187   lt_save_LIBS="$LIBS"
10188   LIBS="$LIBS $LIBADD_DL"
10189
10190 for ac_func in dlerror
10191 do
10192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10206 #define $ac_func innocuous_$ac_func
10207
10208 /* System header to define __stub macros and hopefully few prototypes,
10209     which can conflict with char $ac_func (); below.
10210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211     <limits.h> exists even on freestanding compilers.  */
10212
10213 #ifdef __STDC__
10214 # include <limits.h>
10215 #else
10216 # include <assert.h>
10217 #endif
10218
10219 #undef $ac_func
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222    Use char because int might match the return type of a GCC
10223    builtin and then its argument prototype would still apply.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char $ac_func ();
10228 /* The GNU C library defines this for functions which it implements
10229     to always fail with ENOSYS.  Some functions are actually named
10230     something starting with __ and the normal name is an alias.  */
10231 #if defined __stub_$ac_func || defined __stub___$ac_func
10232 choke me
10233 #endif
10234
10235 int
10236 main ()
10237 {
10238 return $ac_func ();
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_link") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   eval "$as_ac_var=yes"
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282         eval "$as_ac_var=no"
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287 fi
10288 ac_res=`eval echo '${'$as_ac_var'}'`
10289                { echo "$as_me:$LINENO: result: $ac_res" >&5
10290 echo "${ECHO_T}$ac_res" >&6; }
10291 if test `eval echo '${'$as_ac_var'}'` = yes; then
10292   cat >>confdefs.h <<_ACEOF
10293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10294 _ACEOF
10295
10296 fi
10297 done
10298
10299   LIBS="$lt_save_LIBS"
10300 fi
10301 ac_ext=c
10302 ac_cpp='$CPP $CPPFLAGS'
10303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307
10308
10309 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10310 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10311 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   ac_cv_sys_symbol_underscore=no
10315   cat > conftest.$ac_ext <<EOF
10316 void nm_test_func(){}
10317 int main(){nm_test_func;return 0;}
10318 EOF
10319   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320   (eval $ac_compile) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; then
10324     # Now try to grab the symbols.
10325     ac_nlist=conftest.nm
10326     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10327   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } && test -s "$ac_nlist"; then
10331       # See whether the symbols have a leading underscore.
10332       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10333         ac_cv_sys_symbol_underscore=yes
10334       else
10335         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10336           :
10337         else
10338           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10339         fi
10340       fi
10341     else
10342       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10343     fi
10344   else
10345     echo "configure: failed program was:" >&5
10346     cat conftest.c >&5
10347   fi
10348   rm -rf conftest*
10349
10350 fi
10351 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10352 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10353
10354
10355 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10356   if test x"$libltdl_cv_func_dlopen" = xyes ||
10357      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10358         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10359 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10360 if test "${libltdl_cv_need_uscore+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   libltdl_cv_need_uscore=unknown
10364           save_LIBS="$LIBS"
10365           LIBS="$LIBS $LIBADD_DL"
10366           if test "$cross_compiling" = yes; then :
10367   libltdl_cv_need_uscore=cross
10368 else
10369   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10370   lt_status=$lt_dlunknown
10371   cat > conftest.$ac_ext <<EOF
10372 #line 10372 "configure"
10373 #include "confdefs.h"
10374
10375 #if HAVE_DLFCN_H
10376 #include <dlfcn.h>
10377 #endif
10378
10379 #include <stdio.h>
10380
10381 #ifdef RTLD_GLOBAL
10382 #  define LT_DLGLOBAL           RTLD_GLOBAL
10383 #else
10384 #  ifdef DL_GLOBAL
10385 #    define LT_DLGLOBAL         DL_GLOBAL
10386 #  else
10387 #    define LT_DLGLOBAL         0
10388 #  endif
10389 #endif
10390
10391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10392    find out it does not work in some platform. */
10393 #ifndef LT_DLLAZY_OR_NOW
10394 #  ifdef RTLD_LAZY
10395 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10396 #  else
10397 #    ifdef DL_LAZY
10398 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10399 #    else
10400 #      ifdef RTLD_NOW
10401 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10402 #      else
10403 #        ifdef DL_NOW
10404 #          define LT_DLLAZY_OR_NOW      DL_NOW
10405 #        else
10406 #          define LT_DLLAZY_OR_NOW      0
10407 #        endif
10408 #      endif
10409 #    endif
10410 #  endif
10411 #endif
10412
10413 #ifdef __cplusplus
10414 extern "C" void exit (int);
10415 #endif
10416
10417 void fnord() { int i=42;}
10418 int main ()
10419 {
10420   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10421   int status = $lt_dlunknown;
10422
10423   if (self)
10424     {
10425       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10426       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10427       /* dlclose (self); */
10428     }
10429   else
10430     puts (dlerror ());
10431
10432     exit (status);
10433 }
10434 EOF
10435   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436   (eval $ac_link) 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10440     (./conftest; exit; ) >&5 2>/dev/null
10441     lt_status=$?
10442     case x$lt_status in
10443       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10444       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10445       x$lt_dlunknown|x*)  ;;
10446     esac
10447   else :
10448     # compilation failed
10449
10450   fi
10451 fi
10452 rm -fr conftest*
10453
10454           LIBS="$save_LIBS"
10455
10456 fi
10457 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10458 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10459   fi
10460 fi
10461
10462 if test x"$libltdl_cv_need_uscore" = xyes; then
10463
10464 cat >>confdefs.h <<\_ACEOF
10465 #define NEED_USCORE 1
10466 _ACEOF
10467
10468 fi
10469
10470
10471 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10472 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10473 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   # PORTME does your system automatically load deplibs for dlopen?
10477   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10478   # For now, we just catch OSes we know something about -- in the
10479   # future, we'll try test this programmatically.
10480   libltdl_cv_sys_dlopen_deplibs=unknown
10481   case "$host_os" in
10482   aix3*|aix4.1.*|aix4.2.*)
10483     # Unknown whether this is true for these versions of AIX, but
10484     # we want this `case' here to explicitly catch those versions.
10485     libltdl_cv_sys_dlopen_deplibs=unknown
10486     ;;
10487   aix[45]*)
10488     libltdl_cv_sys_dlopen_deplibs=yes
10489     ;;
10490   darwin*)
10491     # Assuming the user has installed a libdl from somewhere, this is true
10492     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10496     # GNU and its variants, using gnu ld.so (Glibc)
10497     libltdl_cv_sys_dlopen_deplibs=yes
10498     ;;
10499   hpux10*|hpux11*)
10500     libltdl_cv_sys_dlopen_deplibs=yes
10501     ;;
10502   interix*)
10503     libltdl_cv_sys_dlopen_deplibs=yes
10504     ;;
10505   irix[12345]*|irix6.[01]*)
10506     # Catch all versions of IRIX before 6.2, and indicate that we don't
10507     # know how it worked for any of those versions.
10508     libltdl_cv_sys_dlopen_deplibs=unknown
10509     ;;
10510   irix*)
10511     # The case above catches anything before 6.2, and it's known that
10512     # at 6.2 and later dlopen does load deplibs.
10513     libltdl_cv_sys_dlopen_deplibs=yes
10514     ;;
10515   netbsd*)
10516     libltdl_cv_sys_dlopen_deplibs=yes
10517     ;;
10518   openbsd*)
10519     libltdl_cv_sys_dlopen_deplibs=yes
10520     ;;
10521   osf[1234]*)
10522     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10523     # it did *not* use an RPATH in a shared library to find objects the
10524     # library depends on, so we explictly say `no'.
10525     libltdl_cv_sys_dlopen_deplibs=no
10526     ;;
10527   osf5.0|osf5.0a|osf5.1)
10528     # dlopen *does* load deplibs and with the right loader patch applied
10529     # it even uses RPATH in a shared library to search for shared objects
10530     # that the library depends on, but there's no easy way to know if that
10531     # patch is installed.  Since this is the case, all we can really
10532     # say is unknown -- it depends on the patch being installed.  If
10533     # it is, this changes to `yes'.  Without it, it would be `no'.
10534     libltdl_cv_sys_dlopen_deplibs=unknown
10535     ;;
10536   osf*)
10537     # the two cases above should catch all versions of osf <= 5.1.  Read
10538     # the comments above for what we know about them.
10539     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10540     # is used to find them so we can finally say `yes'.
10541     libltdl_cv_sys_dlopen_deplibs=yes
10542     ;;
10543   solaris*)
10544     libltdl_cv_sys_dlopen_deplibs=yes
10545     ;;
10546   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10547     libltdl_cv_sys_dlopen_deplibs=yes
10548     ;;
10549   esac
10550
10551 fi
10552 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10553 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10554 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10555
10556 cat >>confdefs.h <<\_ACEOF
10557 #define LTDL_DLOPEN_DEPLIBS 1
10558 _ACEOF
10559
10560 fi
10561
10562
10563 for ac_header in argz.h
10564 do
10565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 fi
10572 ac_res=`eval echo '${'$as_ac_Header'}'`
10573                { echo "$as_me:$LINENO: result: $ac_res" >&5
10574 echo "${ECHO_T}$ac_res" >&6; }
10575 else
10576   # Is the header compilable?
10577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 $ac_includes_default
10586 #include <$ac_header>
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595   (eval "$ac_compile") 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10603   { (case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_try") 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; } &&
10612          { ac_try='test -s conftest.$ac_objext'
10613   { (case "(($ac_try" in
10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615   *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618   (eval "$ac_try") 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622   ac_header_compiler=yes
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627         ac_header_compiler=no
10628 fi
10629
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10632 echo "${ECHO_T}$ac_header_compiler" >&6; }
10633
10634 # Is the header present?
10635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 #include <$ac_header>
10644 _ACEOF
10645 if { (ac_try="$ac_cpp conftest.$ac_ext"
10646 case "(($ac_try" in
10647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648   *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } >/dev/null; then
10658   if test -s conftest.err; then
10659     ac_cpp_err=$ac_c_preproc_warn_flag
10660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10661   else
10662     ac_cpp_err=
10663   fi
10664 else
10665   ac_cpp_err=yes
10666 fi
10667 if test -z "$ac_cpp_err"; then
10668   ac_header_preproc=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673   ac_header_preproc=no
10674 fi
10675
10676 rm -f conftest.err conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10678 echo "${ECHO_T}$ac_header_preproc" >&6; }
10679
10680 # So?  What about this header?
10681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10682   yes:no: )
10683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10687     ac_header_preproc=yes
10688     ;;
10689   no:yes:* )
10690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10702     ( cat <<\_ASBOX
10703 ## ----------------------------------- ##
10704 ## Report this to llvmbugs@cs.uiuc.edu ##
10705 ## ----------------------------------- ##
10706 _ASBOX
10707      ) | sed "s/^/$as_me: WARNING:     /" >&2
10708     ;;
10709 esac
10710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10713   echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715   eval "$as_ac_Header=\$ac_header_preproc"
10716 fi
10717 ac_res=`eval echo '${'$as_ac_Header'}'`
10718                { echo "$as_me:$LINENO: result: $ac_res" >&5
10719 echo "${ECHO_T}$ac_res" >&6; }
10720
10721 fi
10722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10723   cat >>confdefs.h <<_ACEOF
10724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10725 _ACEOF
10726
10727 fi
10728
10729 done
10730
10731
10732 { echo "$as_me:$LINENO: checking for error_t" >&5
10733 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10734 if test "${ac_cv_type_error_t+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #if HAVE_ARGZ_H
10744 #  include <argz.h>
10745 #endif
10746
10747 typedef error_t ac__type_new_;
10748 int
10749 main ()
10750 {
10751 if ((ac__type_new_ *) 0)
10752   return 0;
10753 if (sizeof (ac__type_new_))
10754   return 0;
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_compile") 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774   { (case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_try") 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; } &&
10783          { ac_try='test -s conftest.$ac_objext'
10784   { (case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_try") 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_cv_type_error_t=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_cv_type_error_t=no
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 fi
10803 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10804 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10805 if test $ac_cv_type_error_t = yes; then
10806
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_ERROR_T 1
10809 _ACEOF
10810
10811
10812 else
10813
10814 cat >>confdefs.h <<\_ACEOF
10815 #define error_t int
10816 _ACEOF
10817
10818 fi
10819
10820
10821
10822
10823
10824
10825
10826 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10827 do
10828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h.  */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h.  */
10840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10842 #define $ac_func innocuous_$ac_func
10843
10844 /* System header to define __stub macros and hopefully few prototypes,
10845     which can conflict with char $ac_func (); below.
10846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10847     <limits.h> exists even on freestanding compilers.  */
10848
10849 #ifdef __STDC__
10850 # include <limits.h>
10851 #else
10852 # include <assert.h>
10853 #endif
10854
10855 #undef $ac_func
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858    Use char because int might match the return type of a GCC
10859    builtin and then its argument prototype would still apply.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char $ac_func ();
10864 /* The GNU C library defines this for functions which it implements
10865     to always fail with ENOSYS.  Some functions are actually named
10866     something starting with __ and the normal name is an alias.  */
10867 #if defined __stub_$ac_func || defined __stub___$ac_func
10868 choke me
10869 #endif
10870
10871 int
10872 main ()
10873 {
10874 return $ac_func ();
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_link") 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894   { (case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_try") 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest$ac_exeext'
10904   { (case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_try") 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   eval "$as_ac_var=yes"
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918         eval "$as_ac_var=no"
10919 fi
10920
10921 rm -f core conftest.err conftest.$ac_objext \
10922       conftest$ac_exeext conftest.$ac_ext
10923 fi
10924 ac_res=`eval echo '${'$as_ac_var'}'`
10925                { echo "$as_me:$LINENO: result: $ac_res" >&5
10926 echo "${ECHO_T}$ac_res" >&6; }
10927 if test `eval echo '${'$as_ac_var'}'` = yes; then
10928   cat >>confdefs.h <<_ACEOF
10929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10930 _ACEOF
10931
10932 fi
10933 done
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10963                   stdio.h unistd.h
10964 do
10965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10970   echo $ECHO_N "(cached) $ECHO_C" >&6
10971 fi
10972 ac_res=`eval echo '${'$as_ac_Header'}'`
10973                { echo "$as_me:$LINENO: result: $ac_res" >&5
10974 echo "${ECHO_T}$ac_res" >&6; }
10975 else
10976   # Is the header compilable?
10977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 $ac_includes_default
10986 #include <$ac_header>
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (ac_try="$ac_compile"
10990 case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_compile") 2>conftest.er1
10996   ac_status=$?
10997   grep -v '^ *+' conftest.er1 >conftest.err
10998   rm -f conftest.er1
10999   cat conftest.err >&5
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } &&
11002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11003   { (case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_try") 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; } &&
11012          { ac_try='test -s conftest.$ac_objext'
11013   { (case "(($ac_try" in
11014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015   *) ac_try_echo=$ac_try;;
11016 esac
11017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018   (eval "$ac_try") 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; }; then
11022   ac_header_compiler=yes
11023 else
11024   echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11026
11027         ac_header_compiler=no
11028 fi
11029
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11032 echo "${ECHO_T}$ac_header_compiler" >&6; }
11033
11034 # Is the header present?
11035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043 #include <$ac_header>
11044 _ACEOF
11045 if { (ac_try="$ac_cpp conftest.$ac_ext"
11046 case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } >/dev/null; then
11058   if test -s conftest.err; then
11059     ac_cpp_err=$ac_c_preproc_warn_flag
11060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11061   else
11062     ac_cpp_err=
11063   fi
11064 else
11065   ac_cpp_err=yes
11066 fi
11067 if test -z "$ac_cpp_err"; then
11068   ac_header_preproc=yes
11069 else
11070   echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073   ac_header_preproc=no
11074 fi
11075
11076 rm -f conftest.err conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11078 echo "${ECHO_T}$ac_header_preproc" >&6; }
11079
11080 # So?  What about this header?
11081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11082   yes:no: )
11083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11087     ac_header_preproc=yes
11088     ;;
11089   no:yes:* )
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11102     ( cat <<\_ASBOX
11103 ## ----------------------------------- ##
11104 ## Report this to llvmbugs@cs.uiuc.edu ##
11105 ## ----------------------------------- ##
11106 _ASBOX
11107      ) | sed "s/^/$as_me: WARNING:     /" >&2
11108     ;;
11109 esac
11110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   eval "$as_ac_Header=\$ac_header_preproc"
11116 fi
11117 ac_res=`eval echo '${'$as_ac_Header'}'`
11118                { echo "$as_me:$LINENO: result: $ac_res" >&5
11119 echo "${ECHO_T}$ac_res" >&6; }
11120
11121 fi
11122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123   cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125 _ACEOF
11126
11127 fi
11128
11129 done
11130
11131
11132
11133
11134
11135 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11136 do
11137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 fi
11144 ac_res=`eval echo '${'$as_ac_Header'}'`
11145                { echo "$as_me:$LINENO: result: $ac_res" >&5
11146 echo "${ECHO_T}$ac_res" >&6; }
11147 else
11148   # Is the header compilable?
11149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 $ac_includes_default
11158 #include <$ac_header>
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (ac_try="$ac_compile"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_compile") 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } &&
11174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11175   { (case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_try") 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; } &&
11184          { ac_try='test -s conftest.$ac_objext'
11185   { (case "(($ac_try" in
11186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187   *) ac_try_echo=$ac_try;;
11188 esac
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190   (eval "$ac_try") 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_header_compiler=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199         ac_header_compiler=no
11200 fi
11201
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204 echo "${ECHO_T}$ac_header_compiler" >&6; }
11205
11206 # Is the header present?
11207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 #include <$ac_header>
11216 _ACEOF
11217 if { (ac_try="$ac_cpp conftest.$ac_ext"
11218 case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } >/dev/null; then
11230   if test -s conftest.err; then
11231     ac_cpp_err=$ac_c_preproc_warn_flag
11232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11233   else
11234     ac_cpp_err=
11235   fi
11236 else
11237   ac_cpp_err=yes
11238 fi
11239 if test -z "$ac_cpp_err"; then
11240   ac_header_preproc=yes
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245   ac_header_preproc=no
11246 fi
11247
11248 rm -f conftest.err conftest.$ac_ext
11249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11250 echo "${ECHO_T}$ac_header_preproc" >&6; }
11251
11252 # So?  What about this header?
11253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11254   yes:no: )
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11259     ac_header_preproc=yes
11260     ;;
11261   no:yes:* )
11262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11274     ( cat <<\_ASBOX
11275 ## ----------------------------------- ##
11276 ## Report this to llvmbugs@cs.uiuc.edu ##
11277 ## ----------------------------------- ##
11278 _ASBOX
11279      ) | sed "s/^/$as_me: WARNING:     /" >&2
11280     ;;
11281 esac
11282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11285   echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287   eval "$as_ac_Header=\$ac_header_preproc"
11288 fi
11289 ac_res=`eval echo '${'$as_ac_Header'}'`
11290                { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292
11293 fi
11294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11295   cat >>confdefs.h <<_ACEOF
11296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11297 _ACEOF
11298
11299 fi
11300
11301 done
11302
11303
11304
11305 for ac_header in string.h strings.h
11306 do
11307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 fi
11314 ac_res=`eval echo '${'$as_ac_Header'}'`
11315                { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 else
11318   # Is the header compilable?
11319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 $ac_includes_default
11328 #include <$ac_header>
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_compile") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } &&
11344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345   { (case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_try") 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; } &&
11354          { ac_try='test -s conftest.$ac_objext'
11355   { (case "(($ac_try" in
11356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357   *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360   (eval "$ac_try") 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; }; then
11364   ac_header_compiler=yes
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369         ac_header_compiler=no
11370 fi
11371
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11374 echo "${ECHO_T}$ac_header_compiler" >&6; }
11375
11376 # Is the header present?
11377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385 #include <$ac_header>
11386 _ACEOF
11387 if { (ac_try="$ac_cpp conftest.$ac_ext"
11388 case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } >/dev/null; then
11400   if test -s conftest.err; then
11401     ac_cpp_err=$ac_c_preproc_warn_flag
11402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11403   else
11404     ac_cpp_err=
11405   fi
11406 else
11407   ac_cpp_err=yes
11408 fi
11409 if test -z "$ac_cpp_err"; then
11410   ac_header_preproc=yes
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415   ac_header_preproc=no
11416 fi
11417
11418 rm -f conftest.err conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11420 echo "${ECHO_T}$ac_header_preproc" >&6; }
11421
11422 # So?  What about this header?
11423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11424   yes:no: )
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11429     ac_header_preproc=yes
11430     ;;
11431   no:yes:* )
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11444     ( cat <<\_ASBOX
11445 ## ----------------------------------- ##
11446 ## Report this to llvmbugs@cs.uiuc.edu ##
11447 ## ----------------------------------- ##
11448 _ASBOX
11449      ) | sed "s/^/$as_me: WARNING:     /" >&2
11450     ;;
11451 esac
11452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   eval "$as_ac_Header=\$ac_header_preproc"
11458 fi
11459 ac_res=`eval echo '${'$as_ac_Header'}'`
11460                { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462
11463 fi
11464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11465   cat >>confdefs.h <<_ACEOF
11466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11467 _ACEOF
11468  break
11469 fi
11470
11471 done
11472
11473
11474
11475
11476 for ac_func in strchr index
11477 do
11478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484   cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h.  */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h.  */
11490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11492 #define $ac_func innocuous_$ac_func
11493
11494 /* System header to define __stub macros and hopefully few prototypes,
11495     which can conflict with char $ac_func (); below.
11496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11497     <limits.h> exists even on freestanding compilers.  */
11498
11499 #ifdef __STDC__
11500 # include <limits.h>
11501 #else
11502 # include <assert.h>
11503 #endif
11504
11505 #undef $ac_func
11506
11507 /* Override any GCC internal prototype to avoid an error.
11508    Use char because int might match the return type of a GCC
11509    builtin and then its argument prototype would still apply.  */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 char $ac_func ();
11514 /* The GNU C library defines this for functions which it implements
11515     to always fail with ENOSYS.  Some functions are actually named
11516     something starting with __ and the normal name is an alias.  */
11517 #if defined __stub_$ac_func || defined __stub___$ac_func
11518 choke me
11519 #endif
11520
11521 int
11522 main ()
11523 {
11524 return $ac_func ();
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 rm -f conftest.$ac_objext conftest$ac_exeext
11530 if { (ac_try="$ac_link"
11531 case "(($ac_try" in
11532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533   *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536   (eval "$ac_link") 2>conftest.er1
11537   ac_status=$?
11538   grep -v '^ *+' conftest.er1 >conftest.err
11539   rm -f conftest.er1
11540   cat conftest.err >&5
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11544   { (case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549   (eval "$ac_try") 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); }; } &&
11553          { ac_try='test -s conftest$ac_exeext'
11554   { (case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_try") 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   eval "$as_ac_var=yes"
11564 else
11565   echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568         eval "$as_ac_var=no"
11569 fi
11570
11571 rm -f core conftest.err conftest.$ac_objext \
11572       conftest$ac_exeext conftest.$ac_ext
11573 fi
11574 ac_res=`eval echo '${'$as_ac_var'}'`
11575                { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11577 if test `eval echo '${'$as_ac_var'}'` = yes; then
11578   cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11580 _ACEOF
11581  break
11582 fi
11583 done
11584
11585
11586
11587 for ac_func in strrchr rindex
11588 do
11589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11593   echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595   cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h.  */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h.  */
11601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11603 #define $ac_func innocuous_$ac_func
11604
11605 /* System header to define __stub macros and hopefully few prototypes,
11606     which can conflict with char $ac_func (); below.
11607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11608     <limits.h> exists even on freestanding compilers.  */
11609
11610 #ifdef __STDC__
11611 # include <limits.h>
11612 #else
11613 # include <assert.h>
11614 #endif
11615
11616 #undef $ac_func
11617
11618 /* Override any GCC internal prototype to avoid an error.
11619    Use char because int might match the return type of a GCC
11620    builtin and then its argument prototype would still apply.  */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 char $ac_func ();
11625 /* The GNU C library defines this for functions which it implements
11626     to always fail with ENOSYS.  Some functions are actually named
11627     something starting with __ and the normal name is an alias.  */
11628 #if defined __stub_$ac_func || defined __stub___$ac_func
11629 choke me
11630 #endif
11631
11632 int
11633 main ()
11634 {
11635 return $ac_func ();
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (ac_try="$ac_link"
11642 case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647   (eval "$ac_link") 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11655   { (case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_try") 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; } &&
11664          { ac_try='test -s conftest$ac_exeext'
11665   { (case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; }; then
11674   eval "$as_ac_var=yes"
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679         eval "$as_ac_var=no"
11680 fi
11681
11682 rm -f core conftest.err conftest.$ac_objext \
11683       conftest$ac_exeext conftest.$ac_ext
11684 fi
11685 ac_res=`eval echo '${'$as_ac_var'}'`
11686                { echo "$as_me:$LINENO: result: $ac_res" >&5
11687 echo "${ECHO_T}$ac_res" >&6; }
11688 if test `eval echo '${'$as_ac_var'}'` = yes; then
11689   cat >>confdefs.h <<_ACEOF
11690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11691 _ACEOF
11692  break
11693 fi
11694 done
11695
11696
11697
11698 for ac_func in memcpy bcopy
11699 do
11700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11704   echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706   cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11714 #define $ac_func innocuous_$ac_func
11715
11716 /* System header to define __stub macros and hopefully few prototypes,
11717     which can conflict with char $ac_func (); below.
11718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11719     <limits.h> exists even on freestanding compilers.  */
11720
11721 #ifdef __STDC__
11722 # include <limits.h>
11723 #else
11724 # include <assert.h>
11725 #endif
11726
11727 #undef $ac_func
11728
11729 /* Override any GCC internal prototype to avoid an error.
11730    Use char because int might match the return type of a GCC
11731    builtin and then its argument prototype would still apply.  */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 char $ac_func ();
11736 /* The GNU C library defines this for functions which it implements
11737     to always fail with ENOSYS.  Some functions are actually named
11738     something starting with __ and the normal name is an alias.  */
11739 #if defined __stub_$ac_func || defined __stub___$ac_func
11740 choke me
11741 #endif
11742
11743 int
11744 main ()
11745 {
11746 return $ac_func ();
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext conftest$ac_exeext
11752 if { (ac_try="$ac_link"
11753 case "(($ac_try" in
11754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755   *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758   (eval "$ac_link") 2>conftest.er1
11759   ac_status=$?
11760   grep -v '^ *+' conftest.er1 >conftest.err
11761   rm -f conftest.er1
11762   cat conftest.err >&5
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11766   { (case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_try") 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; } &&
11775          { ac_try='test -s conftest$ac_exeext'
11776   { (case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_try") 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   eval "$as_ac_var=yes"
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790         eval "$as_ac_var=no"
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext \
11794       conftest$ac_exeext conftest.$ac_ext
11795 fi
11796 ac_res=`eval echo '${'$as_ac_var'}'`
11797                { echo "$as_me:$LINENO: result: $ac_res" >&5
11798 echo "${ECHO_T}$ac_res" >&6; }
11799 if test `eval echo '${'$as_ac_var'}'` = yes; then
11800   cat >>confdefs.h <<_ACEOF
11801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11802 _ACEOF
11803  break
11804 fi
11805 done
11806
11807
11808
11809 for ac_func in memmove strcmp
11810 do
11811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11825 #define $ac_func innocuous_$ac_func
11826
11827 /* System header to define __stub macros and hopefully few prototypes,
11828     which can conflict with char $ac_func (); below.
11829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830     <limits.h> exists even on freestanding compilers.  */
11831
11832 #ifdef __STDC__
11833 # include <limits.h>
11834 #else
11835 # include <assert.h>
11836 #endif
11837
11838 #undef $ac_func
11839
11840 /* Override any GCC internal prototype to avoid an error.
11841    Use char because int might match the return type of a GCC
11842    builtin and then its argument prototype would still apply.  */
11843 #ifdef __cplusplus
11844 extern "C"
11845 #endif
11846 char $ac_func ();
11847 /* The GNU C library defines this for functions which it implements
11848     to always fail with ENOSYS.  Some functions are actually named
11849     something starting with __ and the normal name is an alias.  */
11850 #if defined __stub_$ac_func || defined __stub___$ac_func
11851 choke me
11852 #endif
11853
11854 int
11855 main ()
11856 {
11857 return $ac_func ();
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866   *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869   (eval "$ac_link") 2>conftest.er1
11870   ac_status=$?
11871   grep -v '^ *+' conftest.er1 >conftest.err
11872   rm -f conftest.er1
11873   cat conftest.err >&5
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } &&
11876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11877   { (case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_try") 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; } &&
11886          { ac_try='test -s conftest$ac_exeext'
11887   { (case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892   (eval "$ac_try") 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; }; then
11896   eval "$as_ac_var=yes"
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901         eval "$as_ac_var=no"
11902 fi
11903
11904 rm -f core conftest.err conftest.$ac_objext \
11905       conftest$ac_exeext conftest.$ac_ext
11906 fi
11907 ac_res=`eval echo '${'$as_ac_var'}'`
11908                { echo "$as_me:$LINENO: result: $ac_res" >&5
11909 echo "${ECHO_T}$ac_res" >&6; }
11910 if test `eval echo '${'$as_ac_var'}'` = yes; then
11911   cat >>confdefs.h <<_ACEOF
11912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11913 _ACEOF
11914
11915 fi
11916 done
11917
11918
11919
11920
11921 for ac_func in closedir opendir readdir
11922 do
11923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11937 #define $ac_func innocuous_$ac_func
11938
11939 /* System header to define __stub macros and hopefully few prototypes,
11940     which can conflict with char $ac_func (); below.
11941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942     <limits.h> exists even on freestanding compilers.  */
11943
11944 #ifdef __STDC__
11945 # include <limits.h>
11946 #else
11947 # include <assert.h>
11948 #endif
11949
11950 #undef $ac_func
11951
11952 /* Override any GCC internal prototype to avoid an error.
11953    Use char because int might match the return type of a GCC
11954    builtin and then its argument prototype would still apply.  */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char $ac_func ();
11959 /* The GNU C library defines this for functions which it implements
11960     to always fail with ENOSYS.  Some functions are actually named
11961     something starting with __ and the normal name is an alias.  */
11962 #if defined __stub_$ac_func || defined __stub___$ac_func
11963 choke me
11964 #endif
11965
11966 int
11967 main ()
11968 {
11969 return $ac_func ();
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_link") 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } &&
11988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11989   { (case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994   (eval "$ac_try") 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); }; } &&
11998          { ac_try='test -s conftest$ac_exeext'
11999   { (case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_try") 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   eval "$as_ac_var=yes"
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013         eval "$as_ac_var=no"
12014 fi
12015
12016 rm -f core conftest.err conftest.$ac_objext \
12017       conftest$ac_exeext conftest.$ac_ext
12018 fi
12019 ac_res=`eval echo '${'$as_ac_var'}'`
12020                { echo "$as_me:$LINENO: result: $ac_res" >&5
12021 echo "${ECHO_T}$ac_res" >&6; }
12022 if test `eval echo '${'$as_ac_var'}'` = yes; then
12023   cat >>confdefs.h <<_ACEOF
12024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025 _ACEOF
12026
12027 fi
12028 done
12029
12030
12031 # Check whether --enable-shared was given.
12032 if test "${enable_shared+set}" = set; then
12033   enableval=$enable_shared; p=${PACKAGE-default}
12034     case $enableval in
12035     yes) enable_shared=yes ;;
12036     no) enable_shared=no ;;
12037     *)
12038       enable_shared=no
12039       # Look at the argument we got.  We use all the common list separators.
12040       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12041       for pkg in $enableval; do
12042         IFS="$lt_save_ifs"
12043         if test "X$pkg" = "X$p"; then
12044           enable_shared=yes
12045         fi
12046       done
12047       IFS="$lt_save_ifs"
12048       ;;
12049     esac
12050 else
12051   enable_shared=yes
12052 fi
12053
12054
12055 # Check whether --enable-static was given.
12056 if test "${enable_static+set}" = set; then
12057   enableval=$enable_static; p=${PACKAGE-default}
12058     case $enableval in
12059     yes) enable_static=yes ;;
12060     no) enable_static=no ;;
12061     *)
12062      enable_static=no
12063       # Look at the argument we got.  We use all the common list separators.
12064       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12065       for pkg in $enableval; do
12066         IFS="$lt_save_ifs"
12067         if test "X$pkg" = "X$p"; then
12068           enable_static=yes
12069         fi
12070       done
12071       IFS="$lt_save_ifs"
12072       ;;
12073     esac
12074 else
12075   enable_static=yes
12076 fi
12077
12078
12079 # Check whether --enable-fast-install was given.
12080 if test "${enable_fast_install+set}" = set; then
12081   enableval=$enable_fast_install; p=${PACKAGE-default}
12082     case $enableval in
12083     yes) enable_fast_install=yes ;;
12084     no) enable_fast_install=no ;;
12085     *)
12086       enable_fast_install=no
12087       # Look at the argument we got.  We use all the common list separators.
12088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12089       for pkg in $enableval; do
12090         IFS="$lt_save_ifs"
12091         if test "X$pkg" = "X$p"; then
12092           enable_fast_install=yes
12093         fi
12094       done
12095       IFS="$lt_save_ifs"
12096       ;;
12097     esac
12098 else
12099   enable_fast_install=yes
12100 fi
12101
12102
12103 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12104 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12105 if test "${lt_cv_path_SED+set}" = set; then
12106   echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108   # Loop through the user's path and test for sed and gsed.
12109 # Then use that list of sed's as ones to test for truncation.
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113   IFS=$as_save_IFS
12114   test -z "$as_dir" && as_dir=.
12115   for lt_ac_prog in sed gsed; do
12116     for ac_exec_ext in '' $ac_executable_extensions; do
12117       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12118         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12119       fi
12120     done
12121   done
12122 done
12123 lt_ac_max=0
12124 lt_ac_count=0
12125 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12126 # along with /bin/sed that truncates output.
12127 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12128   test ! -f $lt_ac_sed && continue
12129   cat /dev/null > conftest.in
12130   lt_ac_count=0
12131   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12132   # Check for GNU sed and select it if it is found.
12133   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12134     lt_cv_path_SED=$lt_ac_sed
12135     break
12136   fi
12137   while true; do
12138     cat conftest.in conftest.in >conftest.tmp
12139     mv conftest.tmp conftest.in
12140     cp conftest.in conftest.nl
12141     echo >>conftest.nl
12142     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12143     cmp -s conftest.out conftest.nl || break
12144     # 10000 chars as input seems more than enough
12145     test $lt_ac_count -gt 10 && break
12146     lt_ac_count=`expr $lt_ac_count + 1`
12147     if test $lt_ac_count -gt $lt_ac_max; then
12148       lt_ac_max=$lt_ac_count
12149       lt_cv_path_SED=$lt_ac_sed
12150     fi
12151   done
12152 done
12153
12154 fi
12155
12156 SED=$lt_cv_path_SED
12157 { echo "$as_me:$LINENO: result: $SED" >&5
12158 echo "${ECHO_T}$SED" >&6; }
12159
12160
12161 # Check whether --with-gnu-ld was given.
12162 if test "${with_gnu_ld+set}" = set; then
12163   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12164 else
12165   with_gnu_ld=no
12166 fi
12167
12168 ac_prog=ld
12169 if test "$GCC" = yes; then
12170   # Check if gcc -print-prog-name=ld gives a path.
12171   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12172 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12173   case $host in
12174   *-*-mingw*)
12175     # gcc leaves a trailing carriage return which upsets mingw
12176     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12177   *)
12178     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12179   esac
12180   case $ac_prog in
12181     # Accept absolute paths.
12182     [\\/]* | ?:[\\/]*)
12183       re_direlt='/[^/][^/]*/\.\./'
12184       # Canonicalize the pathname of ld
12185       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12186       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12187         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12188       done
12189       test -z "$LD" && LD="$ac_prog"
12190       ;;
12191   "")
12192     # If it fails, then pretend we aren't using GCC.
12193     ac_prog=ld
12194     ;;
12195   *)
12196     # If it is relative, then search for the first ld in PATH.
12197     with_gnu_ld=unknown
12198     ;;
12199   esac
12200 elif test "$with_gnu_ld" = yes; then
12201   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12202 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12203 else
12204   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12205 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12206 fi
12207 if test "${lt_cv_path_LD+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   if test -z "$LD"; then
12211   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12212   for ac_dir in $PATH; do
12213     IFS="$lt_save_ifs"
12214     test -z "$ac_dir" && ac_dir=.
12215     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12216       lt_cv_path_LD="$ac_dir/$ac_prog"
12217       # Check to see if the program is GNU ld.  I'd rather use --version,
12218       # but apparently some variants of GNU ld only accept -v.
12219       # Break only if it was the GNU/non-GNU ld that we prefer.
12220       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12221       *GNU* | *'with BFD'*)
12222         test "$with_gnu_ld" != no && break
12223         ;;
12224       *)
12225         test "$with_gnu_ld" != yes && break
12226         ;;
12227       esac
12228     fi
12229   done
12230   IFS="$lt_save_ifs"
12231 else
12232   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12233 fi
12234 fi
12235
12236 LD="$lt_cv_path_LD"
12237 if test -n "$LD"; then
12238   { echo "$as_me:$LINENO: result: $LD" >&5
12239 echo "${ECHO_T}$LD" >&6; }
12240 else
12241   { echo "$as_me:$LINENO: result: no" >&5
12242 echo "${ECHO_T}no" >&6; }
12243 fi
12244 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12245 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12246    { (exit 1); exit 1; }; }
12247 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12248 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12249 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12253 case `$LD -v 2>&1 </dev/null` in
12254 *GNU* | *'with BFD'*)
12255   lt_cv_prog_gnu_ld=yes
12256   ;;
12257 *)
12258   lt_cv_prog_gnu_ld=no
12259   ;;
12260 esac
12261 fi
12262 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12263 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12264 with_gnu_ld=$lt_cv_prog_gnu_ld
12265
12266
12267 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12268 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12269 if test "${lt_cv_ld_reload_flag+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   lt_cv_ld_reload_flag='-r'
12273 fi
12274 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12275 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12276 reload_flag=$lt_cv_ld_reload_flag
12277 case $reload_flag in
12278 "" | " "*) ;;
12279 *) reload_flag=" $reload_flag" ;;
12280 esac
12281 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12282 case $host_os in
12283   darwin*)
12284     if test "$GCC" = yes; then
12285       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12286     else
12287       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12288     fi
12289     ;;
12290 esac
12291
12292 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12293 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12294 if test "${lt_cv_deplibs_check_method+set}" = set; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   lt_cv_file_magic_cmd='$MAGIC_CMD'
12298 lt_cv_file_magic_test_file=
12299 lt_cv_deplibs_check_method='unknown'
12300 # Need to set the preceding variable on all platforms that support
12301 # interlibrary dependencies.
12302 # 'none' -- dependencies not supported.
12303 # `unknown' -- same as none, but documents that we really don't know.
12304 # 'pass_all' -- all dependencies passed with no checks.
12305 # 'test_compile' -- check by making test program.
12306 # 'file_magic [[regex]]' -- check by looking for files in library path
12307 # which responds to the $file_magic_cmd with a given extended regex.
12308 # If you have `file' or equivalent on your system and you're not sure
12309 # whether `pass_all' will *always* work, you probably want this one.
12310
12311 case $host_os in
12312 aix4* | aix5*)
12313   lt_cv_deplibs_check_method=pass_all
12314   ;;
12315
12316 beos*)
12317   lt_cv_deplibs_check_method=pass_all
12318   ;;
12319
12320 bsdi[45]*)
12321   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12322   lt_cv_file_magic_cmd='/usr/bin/file -L'
12323   lt_cv_file_magic_test_file=/shlib/libc.so
12324   ;;
12325
12326 cygwin*)
12327   # func_win32_libid is a shell function defined in ltmain.sh
12328   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12329   lt_cv_file_magic_cmd='func_win32_libid'
12330   ;;
12331
12332 mingw* | pw32*)
12333   # Base MSYS/MinGW do not provide the 'file' command needed by
12334   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12335   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12336   lt_cv_file_magic_cmd='$OBJDUMP -f'
12337   ;;
12338
12339 darwin* | rhapsody*)
12340   lt_cv_deplibs_check_method=pass_all
12341   ;;
12342
12343 freebsd* | kfreebsd*-gnu | dragonfly*)
12344   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12345     case $host_cpu in
12346     i*86 )
12347       # Not sure whether the presence of OpenBSD here was a mistake.
12348       # Let's accept both of them until this is cleared up.
12349       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12350       lt_cv_file_magic_cmd=/usr/bin/file
12351       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12352       ;;
12353     esac
12354   else
12355     lt_cv_deplibs_check_method=pass_all
12356   fi
12357   ;;
12358
12359 gnu*)
12360   lt_cv_deplibs_check_method=pass_all
12361   ;;
12362
12363 hpux10.20* | hpux11*)
12364   lt_cv_file_magic_cmd=/usr/bin/file
12365   case $host_cpu in
12366   ia64*)
12367     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12368     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12369     ;;
12370   hppa*64*)
12371     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]'
12372     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12373     ;;
12374   *)
12375     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12376     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12377     ;;
12378   esac
12379   ;;
12380
12381 interix3*)
12382   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12383   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12384   ;;
12385
12386 irix5* | irix6* | nonstopux*)
12387   case $LD in
12388   *-32|*"-32 ") libmagic=32-bit;;
12389   *-n32|*"-n32 ") libmagic=N32;;
12390   *-64|*"-64 ") libmagic=64-bit;;
12391   *) libmagic=never-match;;
12392   esac
12393   lt_cv_deplibs_check_method=pass_all
12394   ;;
12395
12396 # This must be Linux ELF.
12397 linux*)
12398   lt_cv_deplibs_check_method=pass_all
12399   ;;
12400
12401 netbsd*)
12402   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12403     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12404   else
12405     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12406   fi
12407   ;;
12408
12409 newos6*)
12410   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12411   lt_cv_file_magic_cmd=/usr/bin/file
12412   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12413   ;;
12414
12415 nto-qnx*)
12416   lt_cv_deplibs_check_method=unknown
12417   ;;
12418
12419 openbsd*)
12420   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12421     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12422   else
12423     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12424   fi
12425   ;;
12426
12427 osf3* | osf4* | osf5*)
12428   lt_cv_deplibs_check_method=pass_all
12429   ;;
12430
12431 solaris*)
12432   lt_cv_deplibs_check_method=pass_all
12433   ;;
12434
12435 sysv4 | sysv4.3*)
12436   case $host_vendor in
12437   motorola)
12438     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]'
12439     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12440     ;;
12441   ncr)
12442     lt_cv_deplibs_check_method=pass_all
12443     ;;
12444   sequent)
12445     lt_cv_file_magic_cmd='/bin/file'
12446     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12447     ;;
12448   sni)
12449     lt_cv_file_magic_cmd='/bin/file'
12450     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12451     lt_cv_file_magic_test_file=/lib/libc.so
12452     ;;
12453   siemens)
12454     lt_cv_deplibs_check_method=pass_all
12455     ;;
12456   pc)
12457     lt_cv_deplibs_check_method=pass_all
12458     ;;
12459   esac
12460   ;;
12461
12462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12463   lt_cv_deplibs_check_method=pass_all
12464   ;;
12465 esac
12466
12467 fi
12468 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12469 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12470 file_magic_cmd=$lt_cv_file_magic_cmd
12471 deplibs_check_method=$lt_cv_deplibs_check_method
12472 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12473
12474
12475
12476 # If no C compiler was specified, use CC.
12477 LTCC=${LTCC-"$CC"}
12478
12479 # If no C compiler flags were specified, use CFLAGS.
12480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12481
12482 # Allow CC to be a program name with arguments.
12483 compiler=$CC
12484
12485 # Check whether --enable-libtool-lock was given.
12486 if test "${enable_libtool_lock+set}" = set; then
12487   enableval=$enable_libtool_lock;
12488 fi
12489
12490 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12491
12492 # Some flags need to be propagated to the compiler or linker for good
12493 # libtool support.
12494 case $host in
12495 ia64-*-hpux*)
12496   # Find out which ABI we are using.
12497   echo 'int i;' > conftest.$ac_ext
12498   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499   (eval $ac_compile) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; then
12503     case `/usr/bin/file conftest.$ac_objext` in
12504     *ELF-32*)
12505       HPUX_IA64_MODE="32"
12506       ;;
12507     *ELF-64*)
12508       HPUX_IA64_MODE="64"
12509       ;;
12510     esac
12511   fi
12512   rm -rf conftest*
12513   ;;
12514 *-*-irix6*)
12515   # Find out which ABI we are using.
12516   echo '#line 12516 "configure"' > conftest.$ac_ext
12517   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518   (eval $ac_compile) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; then
12522    if test "$lt_cv_prog_gnu_ld" = yes; then
12523     case `/usr/bin/file conftest.$ac_objext` in
12524     *32-bit*)
12525       LD="${LD-ld} -melf32bsmip"
12526       ;;
12527     *N32*)
12528       LD="${LD-ld} -melf32bmipn32"
12529       ;;
12530     *64-bit*)
12531       LD="${LD-ld} -melf64bmip"
12532       ;;
12533     esac
12534    else
12535     case `/usr/bin/file conftest.$ac_objext` in
12536     *32-bit*)
12537       LD="${LD-ld} -32"
12538       ;;
12539     *N32*)
12540       LD="${LD-ld} -n32"
12541       ;;
12542     *64-bit*)
12543       LD="${LD-ld} -64"
12544       ;;
12545     esac
12546    fi
12547   fi
12548   rm -rf conftest*
12549   ;;
12550
12551 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12552   # Find out which ABI we are using.
12553   echo 'int i;' > conftest.$ac_ext
12554   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12555   (eval $ac_compile) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; then
12559     case `/usr/bin/file conftest.o` in
12560     *32-bit*)
12561       case $host in
12562         x86_64-*linux*)
12563           LD="${LD-ld} -m elf_i386"
12564           ;;
12565         ppc64-*linux*|powerpc64-*linux*)
12566           LD="${LD-ld} -m elf32ppclinux"
12567           ;;
12568         s390x-*linux*)
12569           LD="${LD-ld} -m elf_s390"
12570           ;;
12571         sparc64-*linux*)
12572           LD="${LD-ld} -m elf32_sparc"
12573           ;;
12574       esac
12575       ;;
12576     *64-bit*)
12577       case $host in
12578         x86_64-*linux*)
12579           LD="${LD-ld} -m elf_x86_64"
12580           ;;
12581         ppc*-*linux*|powerpc*-*linux*)
12582           LD="${LD-ld} -m elf64ppc"
12583           ;;
12584         s390*-*linux*)
12585           LD="${LD-ld} -m elf64_s390"
12586           ;;
12587         sparc*-*linux*)
12588           LD="${LD-ld} -m elf64_sparc"
12589           ;;
12590       esac
12591       ;;
12592     esac
12593   fi
12594   rm -rf conftest*
12595   ;;
12596
12597 *-*-sco3.2v5*)
12598   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12599   SAVE_CFLAGS="$CFLAGS"
12600   CFLAGS="$CFLAGS -belf"
12601   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12602 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12603 if test "${lt_cv_cc_needs_belf+set}" = set; then
12604   echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606   ac_ext=c
12607 ac_cpp='$CPP $CPPFLAGS'
12608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12611
12612      cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618
12619 int
12620 main ()
12621 {
12622
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_link") 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642   { (case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_try") 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest$ac_exeext'
12652   { (case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_try") 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   lt_cv_cc_needs_belf=yes
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666         lt_cv_cc_needs_belf=no
12667 fi
12668
12669 rm -f core conftest.err conftest.$ac_objext \
12670       conftest$ac_exeext conftest.$ac_ext
12671      ac_ext=c
12672 ac_cpp='$CPP $CPPFLAGS'
12673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
12677 fi
12678 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12679 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12680   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12681     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12682     CFLAGS="$SAVE_CFLAGS"
12683   fi
12684   ;;
12685 sparc*-*solaris*)
12686   # Find out which ABI we are using.
12687   echo 'int i;' > conftest.$ac_ext
12688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689   (eval $ac_compile) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; then
12693     case `/usr/bin/file conftest.o` in
12694     *64-bit*)
12695       case $lt_cv_prog_gnu_ld in
12696       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12697       *)    LD="${LD-ld} -64" ;;
12698       esac
12699       ;;
12700     esac
12701   fi
12702   rm -rf conftest*
12703   ;;
12704
12705
12706 esac
12707
12708 need_locks="$enable_libtool_lock"
12709
12710
12711
12712
12713 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12714     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12715     (test "X$CXX" != "Xg++"))) ; then
12716   ac_ext=cpp
12717 ac_cpp='$CXXCPP $CPPFLAGS'
12718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12721 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12722 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12723 if test -z "$CXXCPP"; then
12724   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727       # Double quotes because CXXCPP needs to be expanded
12728     for CXXCPP in "$CXX -E" "/lib/cpp"
12729     do
12730       ac_preproc_ok=false
12731 for ac_cxx_preproc_warn_flag in '' yes
12732 do
12733   # Use a header file that comes with gcc, so configuring glibc
12734   # with a fresh cross-compiler works.
12735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736   # <limits.h> exists even on freestanding compilers.
12737   # On the NeXT, cc -E runs the code through the compiler's parser,
12738   # not just through cpp. "Syntax error" is here to catch this case.
12739   cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745 #ifdef __STDC__
12746 # include <limits.h>
12747 #else
12748 # include <assert.h>
12749 #endif
12750                      Syntax error
12751 _ACEOF
12752 if { (ac_try="$ac_cpp conftest.$ac_ext"
12753 case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12759   ac_status=$?
12760   grep -v '^ *+' conftest.er1 >conftest.err
12761   rm -f conftest.er1
12762   cat conftest.err >&5
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } >/dev/null; then
12765   if test -s conftest.err; then
12766     ac_cpp_err=$ac_cxx_preproc_warn_flag
12767     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12768   else
12769     ac_cpp_err=
12770   fi
12771 else
12772   ac_cpp_err=yes
12773 fi
12774 if test -z "$ac_cpp_err"; then
12775   :
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780   # Broken: fails on valid input.
12781 continue
12782 fi
12783
12784 rm -f conftest.err conftest.$ac_ext
12785
12786   # OK, works on sane cases.  Now check whether nonexistent headers
12787   # can be detected and how.
12788   cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794 #include <ac_nonexistent.h>
12795 _ACEOF
12796 if { (ac_try="$ac_cpp conftest.$ac_ext"
12797 case "(($ac_try" in
12798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799   *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12803   ac_status=$?
12804   grep -v '^ *+' conftest.er1 >conftest.err
12805   rm -f conftest.er1
12806   cat conftest.err >&5
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } >/dev/null; then
12809   if test -s conftest.err; then
12810     ac_cpp_err=$ac_cxx_preproc_warn_flag
12811     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12812   else
12813     ac_cpp_err=
12814   fi
12815 else
12816   ac_cpp_err=yes
12817 fi
12818 if test -z "$ac_cpp_err"; then
12819   # Broken: success on invalid input.
12820 continue
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825   # Passes both tests.
12826 ac_preproc_ok=:
12827 break
12828 fi
12829
12830 rm -f conftest.err conftest.$ac_ext
12831
12832 done
12833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12834 rm -f conftest.err conftest.$ac_ext
12835 if $ac_preproc_ok; then
12836   break
12837 fi
12838
12839     done
12840     ac_cv_prog_CXXCPP=$CXXCPP
12841
12842 fi
12843   CXXCPP=$ac_cv_prog_CXXCPP
12844 else
12845   ac_cv_prog_CXXCPP=$CXXCPP
12846 fi
12847 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12848 echo "${ECHO_T}$CXXCPP" >&6; }
12849 ac_preproc_ok=false
12850 for ac_cxx_preproc_warn_flag in '' yes
12851 do
12852   # Use a header file that comes with gcc, so configuring glibc
12853   # with a fresh cross-compiler works.
12854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855   # <limits.h> exists even on freestanding compilers.
12856   # On the NeXT, cc -E runs the code through the compiler's parser,
12857   # not just through cpp. "Syntax error" is here to catch this case.
12858   cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864 #ifdef __STDC__
12865 # include <limits.h>
12866 #else
12867 # include <assert.h>
12868 #endif
12869                      Syntax error
12870 _ACEOF
12871 if { (ac_try="$ac_cpp conftest.$ac_ext"
12872 case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12878   ac_status=$?
12879   grep -v '^ *+' conftest.er1 >conftest.err
12880   rm -f conftest.er1
12881   cat conftest.err >&5
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } >/dev/null; then
12884   if test -s conftest.err; then
12885     ac_cpp_err=$ac_cxx_preproc_warn_flag
12886     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12887   else
12888     ac_cpp_err=
12889   fi
12890 else
12891   ac_cpp_err=yes
12892 fi
12893 if test -z "$ac_cpp_err"; then
12894   :
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899   # Broken: fails on valid input.
12900 continue
12901 fi
12902
12903 rm -f conftest.err conftest.$ac_ext
12904
12905   # OK, works on sane cases.  Now check whether nonexistent headers
12906   # can be detected and how.
12907   cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h.  */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h.  */
12913 #include <ac_nonexistent.h>
12914 _ACEOF
12915 if { (ac_try="$ac_cpp conftest.$ac_ext"
12916 case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12922   ac_status=$?
12923   grep -v '^ *+' conftest.er1 >conftest.err
12924   rm -f conftest.er1
12925   cat conftest.err >&5
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); } >/dev/null; then
12928   if test -s conftest.err; then
12929     ac_cpp_err=$ac_cxx_preproc_warn_flag
12930     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12931   else
12932     ac_cpp_err=
12933   fi
12934 else
12935   ac_cpp_err=yes
12936 fi
12937 if test -z "$ac_cpp_err"; then
12938   # Broken: success on invalid input.
12939 continue
12940 else
12941   echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944   # Passes both tests.
12945 ac_preproc_ok=:
12946 break
12947 fi
12948
12949 rm -f conftest.err conftest.$ac_ext
12950
12951 done
12952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12953 rm -f conftest.err conftest.$ac_ext
12954 if $ac_preproc_ok; then
12955   :
12956 else
12957   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12958 See \`config.log' for more details." >&5
12959 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12960 See \`config.log' for more details." >&2;}
12961    { (exit 1); exit 1; }; }
12962 fi
12963
12964 ac_ext=cpp
12965 ac_cpp='$CXXCPP $CPPFLAGS'
12966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12969
12970 fi
12971
12972
12973 ac_ext=f
12974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12977 if test -n "$ac_tool_prefix"; then
12978   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
12979   do
12980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_prog_F77+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   if test -n "$F77"; then
12988   ac_cv_prog_F77="$F77" # Let the user override the test.
12989 else
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995   for ac_exec_ext in '' $ac_executable_extensions; do
12996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12997     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999     break 2
13000   fi
13001 done
13002 done
13003 IFS=$as_save_IFS
13004
13005 fi
13006 fi
13007 F77=$ac_cv_prog_F77
13008 if test -n "$F77"; then
13009   { echo "$as_me:$LINENO: result: $F77" >&5
13010 echo "${ECHO_T}$F77" >&6; }
13011 else
13012   { echo "$as_me:$LINENO: result: no" >&5
13013 echo "${ECHO_T}no" >&6; }
13014 fi
13015
13016
13017     test -n "$F77" && break
13018   done
13019 fi
13020 if test -z "$F77"; then
13021   ac_ct_F77=$F77
13022   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
13023 do
13024   # Extract the first word of "$ac_prog", so it can be a program name with args.
13025 set dummy $ac_prog; ac_word=$2
13026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13028 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13029   echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031   if test -n "$ac_ct_F77"; then
13032   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13033 else
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039   for ac_exec_ext in '' $ac_executable_extensions; do
13040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13041     ac_cv_prog_ac_ct_F77="$ac_prog"
13042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13043     break 2
13044   fi
13045 done
13046 done
13047 IFS=$as_save_IFS
13048
13049 fi
13050 fi
13051 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13052 if test -n "$ac_ct_F77"; then
13053   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13054 echo "${ECHO_T}$ac_ct_F77" >&6; }
13055 else
13056   { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13058 fi
13059
13060
13061   test -n "$ac_ct_F77" && break
13062 done
13063
13064   if test "x$ac_ct_F77" = x; then
13065     F77=""
13066   else
13067     case $cross_compiling:$ac_tool_warned in
13068 yes:)
13069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13070 whose name does not start with the host triplet.  If you think this
13071 configuration is useful to you, please write to autoconf@gnu.org." >&5
13072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13073 whose name does not start with the host triplet.  If you think this
13074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13075 ac_tool_warned=yes ;;
13076 esac
13077     F77=$ac_ct_F77
13078   fi
13079 fi
13080
13081
13082 # Provide some information about the compiler.
13083 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13084 ac_compiler=`set X $ac_compile; echo $2`
13085 { (ac_try="$ac_compiler --version >&5"
13086 case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_compiler --version >&5") 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }
13095 { (ac_try="$ac_compiler -v >&5"
13096 case "(($ac_try" in
13097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098   *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101   (eval "$ac_compiler -v >&5") 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); }
13105 { (ac_try="$ac_compiler -V >&5"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_compiler -V >&5") 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }
13115 rm -f a.out
13116
13117 # If we don't use `.F' as extension, the preprocessor is not run on the
13118 # input file.  (Note that this only needs to work for GNU compilers.)
13119 ac_save_ext=$ac_ext
13120 ac_ext=F
13121 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13122 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13123 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   cat >conftest.$ac_ext <<_ACEOF
13127       program main
13128 #ifndef __GNUC__
13129        choke me
13130 #endif
13131
13132       end
13133 _ACEOF
13134 rm -f conftest.$ac_objext
13135 if { (ac_try="$ac_compile"
13136 case "(($ac_try" in
13137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138   *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141   (eval "$ac_compile") 2>conftest.er1
13142   ac_status=$?
13143   grep -v '^ *+' conftest.er1 >conftest.err
13144   rm -f conftest.er1
13145   cat conftest.err >&5
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); } &&
13148          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13149   { (case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_try") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; } &&
13158          { ac_try='test -s conftest.$ac_objext'
13159   { (case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_try") 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168   ac_compiler_gnu=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173         ac_compiler_gnu=no
13174 fi
13175
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13178
13179 fi
13180 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13181 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13182 ac_ext=$ac_save_ext
13183 ac_test_FFLAGS=${FFLAGS+set}
13184 ac_save_FFLAGS=$FFLAGS
13185 FFLAGS=
13186 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13187 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13188 if test "${ac_cv_prog_f77_g+set}" = set; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191   FFLAGS=-g
13192 cat >conftest.$ac_ext <<_ACEOF
13193       program main
13194
13195       end
13196 _ACEOF
13197 rm -f conftest.$ac_objext
13198 if { (ac_try="$ac_compile"
13199 case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204   (eval "$ac_compile") 2>conftest.er1
13205   ac_status=$?
13206   grep -v '^ *+' conftest.er1 >conftest.err
13207   rm -f conftest.er1
13208   cat conftest.err >&5
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } &&
13211          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13212   { (case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_try") 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; } &&
13221          { ac_try='test -s conftest.$ac_objext'
13222   { (case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_try") 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; }; then
13231   ac_cv_prog_f77_g=yes
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236         ac_cv_prog_f77_g=no
13237 fi
13238
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240
13241 fi
13242 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13243 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13244 if test "$ac_test_FFLAGS" = set; then
13245   FFLAGS=$ac_save_FFLAGS
13246 elif test $ac_cv_prog_f77_g = yes; then
13247   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13248     FFLAGS="-g -O2"
13249   else
13250     FFLAGS="-g"
13251   fi
13252 else
13253   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13254     FFLAGS="-O2"
13255   else
13256     FFLAGS=
13257   fi
13258 fi
13259
13260 G77=`test $ac_compiler_gnu = yes && echo yes`
13261 ac_ext=c
13262 ac_cpp='$CPP $CPPFLAGS'
13263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13266
13267
13268
13269 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13270
13271 # find the maximum length of command line arguments
13272 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13273 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13274 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277     i=0
13278   teststring="ABCD"
13279
13280   case $build_os in
13281   msdosdjgpp*)
13282     # On DJGPP, this test can blow up pretty badly due to problems in libc
13283     # (any single argument exceeding 2000 bytes causes a buffer overrun
13284     # during glob expansion).  Even if it were fixed, the result of this
13285     # check would be larger than it should be.
13286     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13287     ;;
13288
13289   gnu*)
13290     # Under GNU Hurd, this test is not required because there is
13291     # no limit to the length of command line arguments.
13292     # Libtool will interpret -1 as no limit whatsoever
13293     lt_cv_sys_max_cmd_len=-1;
13294     ;;
13295
13296   cygwin* | mingw*)
13297     # On Win9x/ME, this test blows up -- it succeeds, but takes
13298     # about 5 minutes as the teststring grows exponentially.
13299     # Worse, since 9x/ME are not pre-emptively multitasking,
13300     # you end up with a "frozen" computer, even though with patience
13301     # the test eventually succeeds (with a max line length of 256k).
13302     # Instead, let's just punt: use the minimum linelength reported by
13303     # all of the supported platforms: 8192 (on NT/2K/XP).
13304     lt_cv_sys_max_cmd_len=8192;
13305     ;;
13306
13307   amigaos*)
13308     # On AmigaOS with pdksh, this test takes hours, literally.
13309     # So we just punt and use a minimum line length of 8192.
13310     lt_cv_sys_max_cmd_len=8192;
13311     ;;
13312
13313   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13314     # This has been around since 386BSD, at least.  Likely further.
13315     if test -x /sbin/sysctl; then
13316       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13317     elif test -x /usr/sbin/sysctl; then
13318       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13319     else
13320       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13321     fi
13322     # And add a safety zone
13323     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13324     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13325     ;;
13326
13327   interix*)
13328     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13329     lt_cv_sys_max_cmd_len=196608
13330     ;;
13331
13332   osf*)
13333     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13334     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13335     # nice to cause kernel panics so lets avoid the loop below.
13336     # First set a reasonable default.
13337     lt_cv_sys_max_cmd_len=16384
13338     #
13339     if test -x /sbin/sysconfig; then
13340       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13341         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13342       esac
13343     fi
13344     ;;
13345   sco3.2v5*)
13346     lt_cv_sys_max_cmd_len=102400
13347     ;;
13348   sysv5* | sco5v6* | sysv4.2uw2*)
13349     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13350     if test -n "$kargmax"; then
13351       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13352     else
13353       lt_cv_sys_max_cmd_len=32768
13354     fi
13355     ;;
13356   *)
13357     # If test is not a shell built-in, we'll probably end up computing a
13358     # maximum length that is only half of the actual maximum length, but
13359     # we can't tell.
13360     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13361     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13362                = "XX$teststring") >/dev/null 2>&1 &&
13363             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13364             lt_cv_sys_max_cmd_len=$new_result &&
13365             test $i != 17 # 1/2 MB should be enough
13366     do
13367       i=`expr $i + 1`
13368       teststring=$teststring$teststring
13369     done
13370     teststring=
13371     # Add a significant safety factor because C++ compilers can tack on massive
13372     # amounts of additional arguments before passing them to the linker.
13373     # It appears as though 1/2 is a usable value.
13374     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13375     ;;
13376   esac
13377
13378 fi
13379
13380 if test -n $lt_cv_sys_max_cmd_len ; then
13381   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13382 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13383 else
13384   { echo "$as_me:$LINENO: result: none" >&5
13385 echo "${ECHO_T}none" >&6; }
13386 fi
13387
13388
13389
13390
13391 # Check for command to grab the raw symbol name followed by C symbol from nm.
13392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397
13398 # These are sane defaults that work on at least a few old systems.
13399 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13400
13401 # Character class describing NM global symbol codes.
13402 symcode='[BCDEGRST]'
13403
13404 # Regexp to match symbols that can be accessed directly from C.
13405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13406
13407 # Transform an extracted symbol line into a proper C declaration
13408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13409
13410 # Transform an extracted symbol line into symbol name and symbol address
13411 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'"
13412
13413 # Define system-specific variables.
13414 case $host_os in
13415 aix*)
13416   symcode='[BCDT]'
13417   ;;
13418 cygwin* | mingw* | pw32*)
13419   symcode='[ABCDGISTW]'
13420   ;;
13421 hpux*) # Its linker distinguishes data from code symbols
13422   if test "$host_cpu" = ia64; then
13423     symcode='[ABCDEGRST]'
13424   fi
13425   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13426   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'"
13427   ;;
13428 linux*)
13429   if test "$host_cpu" = ia64; then
13430     symcode='[ABCDGIRSTW]'
13431     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13432     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'"
13433   fi
13434   ;;
13435 irix* | nonstopux*)
13436   symcode='[BCDEGRST]'
13437   ;;
13438 osf*)
13439   symcode='[BCDEGQRST]'
13440   ;;
13441 solaris*)
13442   symcode='[BDRT]'
13443   ;;
13444 sco3.2v5*)
13445   symcode='[DT]'
13446   ;;
13447 sysv4.2uw2*)
13448   symcode='[DT]'
13449   ;;
13450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13451   symcode='[ABDT]'
13452   ;;
13453 sysv4)
13454   symcode='[DFNSTU]'
13455   ;;
13456 esac
13457
13458 # Handle CRLF in mingw tool chain
13459 opt_cr=
13460 case $build_os in
13461 mingw*)
13462   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13463   ;;
13464 esac
13465
13466 # If we're using GNU nm, then use its standard symbol codes.
13467 case `$NM -V 2>&1` in
13468 *GNU* | *'with BFD'*)
13469   symcode='[ABCDGIRSTW]' ;;
13470 esac
13471
13472 # Try without a prefix undercore, then with it.
13473 for ac_symprfx in "" "_"; do
13474
13475   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13476   symxfrm="\\1 $ac_symprfx\\2 \\2"
13477
13478   # Write the raw and C identifiers.
13479   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13480
13481   # Check to see that the pipe works correctly.
13482   pipe_works=no
13483
13484   rm -f conftest*
13485   cat > conftest.$ac_ext <<EOF
13486 #ifdef __cplusplus
13487 extern "C" {
13488 #endif
13489 char nm_test_var;
13490 void nm_test_func(){}
13491 #ifdef __cplusplus
13492 }
13493 #endif
13494 int main(){nm_test_var='a';nm_test_func();return(0);}
13495 EOF
13496
13497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13498   (eval $ac_compile) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; then
13502     # Now try to grab the symbols.
13503     nlist=conftest.nm
13504     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13505   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } && test -s "$nlist"; then
13509       # Try sorting and uniquifying the output.
13510       if sort "$nlist" | uniq > "$nlist"T; then
13511         mv -f "$nlist"T "$nlist"
13512       else
13513         rm -f "$nlist"T
13514       fi
13515
13516       # Make sure that we snagged all the symbols we need.
13517       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13518         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13519           cat <<EOF > conftest.$ac_ext
13520 #ifdef __cplusplus
13521 extern "C" {
13522 #endif
13523
13524 EOF
13525           # Now generate the symbol file.
13526           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13527
13528           cat <<EOF >> conftest.$ac_ext
13529 #if defined (__STDC__) && __STDC__
13530 # define lt_ptr_t void *
13531 #else
13532 # define lt_ptr_t char *
13533 # define const
13534 #endif
13535
13536 /* The mapping between symbol names and symbols. */
13537 const struct {
13538   const char *name;
13539   lt_ptr_t address;
13540 }
13541 lt_preloaded_symbols[] =
13542 {
13543 EOF
13544           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13545           cat <<\EOF >> conftest.$ac_ext
13546   {0, (lt_ptr_t) 0}
13547 };
13548
13549 #ifdef __cplusplus
13550 }
13551 #endif
13552 EOF
13553           # Now try linking the two files.
13554           mv conftest.$ac_objext conftstm.$ac_objext
13555           lt_save_LIBS="$LIBS"
13556           lt_save_CFLAGS="$CFLAGS"
13557           LIBS="conftstm.$ac_objext"
13558           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13559           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560   (eval $ac_link) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13564             pipe_works=yes
13565           fi
13566           LIBS="$lt_save_LIBS"
13567           CFLAGS="$lt_save_CFLAGS"
13568         else
13569           echo "cannot find nm_test_func in $nlist" >&5
13570         fi
13571       else
13572         echo "cannot find nm_test_var in $nlist" >&5
13573       fi
13574     else
13575       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13576     fi
13577   else
13578     echo "$progname: failed program was:" >&5
13579     cat conftest.$ac_ext >&5
13580   fi
13581   rm -f conftest* conftst*
13582
13583   # Do not use the global_symbol_pipe unless it works.
13584   if test "$pipe_works" = yes; then
13585     break
13586   else
13587     lt_cv_sys_global_symbol_pipe=
13588   fi
13589 done
13590
13591 fi
13592
13593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13594   lt_cv_sys_global_symbol_to_cdecl=
13595 fi
13596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13597   { echo "$as_me:$LINENO: result: failed" >&5
13598 echo "${ECHO_T}failed" >&6; }
13599 else
13600   { echo "$as_me:$LINENO: result: ok" >&5
13601 echo "${ECHO_T}ok" >&6; }
13602 fi
13603
13604 { echo "$as_me:$LINENO: checking for objdir" >&5
13605 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13606 if test "${lt_cv_objdir+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   rm -f .libs 2>/dev/null
13610 mkdir .libs 2>/dev/null
13611 if test -d .libs; then
13612   lt_cv_objdir=.libs
13613 else
13614   # MS-DOS does not allow filenames that begin with a dot.
13615   lt_cv_objdir=_libs
13616 fi
13617 rmdir .libs 2>/dev/null
13618 fi
13619 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13620 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13621 objdir=$lt_cv_objdir
13622
13623
13624
13625
13626
13627 case $host_os in
13628 aix3*)
13629   # AIX sometimes has problems with the GCC collect2 program.  For some
13630   # reason, if we set the COLLECT_NAMES environment variable, the problems
13631   # vanish in a puff of smoke.
13632   if test "X${COLLECT_NAMES+set}" != Xset; then
13633     COLLECT_NAMES=
13634     export COLLECT_NAMES
13635   fi
13636   ;;
13637 esac
13638
13639 # Sed substitution that helps us do robust quoting.  It backslashifies
13640 # metacharacters that are still active within double-quoted strings.
13641 Xsed='sed -e 1s/^X//'
13642 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13643
13644 # Same as above, but do not quote variable references.
13645 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13646
13647 # Sed substitution to delay expansion of an escaped shell variable in a
13648 # double_quote_subst'ed string.
13649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13650
13651 # Sed substitution to avoid accidental globbing in evaled expressions
13652 no_glob_subst='s/\*/\\\*/g'
13653
13654 # Constants:
13655 rm="rm -f"
13656
13657 # Global variables:
13658 default_ofile=mklib
13659 can_build_shared=yes
13660
13661 # All known linkers require a `.a' archive for static linking (except MSVC,
13662 # which needs '.lib').
13663 libext=a
13664 ltmain="$ac_aux_dir/ltmain.sh"
13665 ofile="$default_ofile"
13666 with_gnu_ld="$lt_cv_prog_gnu_ld"
13667
13668 if test -n "$ac_tool_prefix"; then
13669   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13670 set dummy ${ac_tool_prefix}ar; ac_word=$2
13671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13673 if test "${ac_cv_prog_AR+set}" = set; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676   if test -n "$AR"; then
13677   ac_cv_prog_AR="$AR" # Let the user override the test.
13678 else
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13681 do
13682   IFS=$as_save_IFS
13683   test -z "$as_dir" && as_dir=.
13684   for ac_exec_ext in '' $ac_executable_extensions; do
13685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13686     ac_cv_prog_AR="${ac_tool_prefix}ar"
13687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13688     break 2
13689   fi
13690 done
13691 done
13692 IFS=$as_save_IFS
13693
13694 fi
13695 fi
13696 AR=$ac_cv_prog_AR
13697 if test -n "$AR"; then
13698   { echo "$as_me:$LINENO: result: $AR" >&5
13699 echo "${ECHO_T}$AR" >&6; }
13700 else
13701   { echo "$as_me:$LINENO: result: no" >&5
13702 echo "${ECHO_T}no" >&6; }
13703 fi
13704
13705
13706 fi
13707 if test -z "$ac_cv_prog_AR"; then
13708   ac_ct_AR=$AR
13709   # Extract the first word of "ar", so it can be a program name with args.
13710 set dummy ar; ac_word=$2
13711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13713 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   if test -n "$ac_ct_AR"; then
13717   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13721 do
13722   IFS=$as_save_IFS
13723   test -z "$as_dir" && as_dir=.
13724   for ac_exec_ext in '' $ac_executable_extensions; do
13725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13726     ac_cv_prog_ac_ct_AR="ar"
13727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13728     break 2
13729   fi
13730 done
13731 done
13732 IFS=$as_save_IFS
13733
13734 fi
13735 fi
13736 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13737 if test -n "$ac_ct_AR"; then
13738   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13739 echo "${ECHO_T}$ac_ct_AR" >&6; }
13740 else
13741   { echo "$as_me:$LINENO: result: no" >&5
13742 echo "${ECHO_T}no" >&6; }
13743 fi
13744
13745   if test "x$ac_ct_AR" = x; then
13746     AR="false"
13747   else
13748     case $cross_compiling:$ac_tool_warned in
13749 yes:)
13750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13751 whose name does not start with the host triplet.  If you think this
13752 configuration is useful to you, please write to autoconf@gnu.org." >&5
13753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13754 whose name does not start with the host triplet.  If you think this
13755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13756 ac_tool_warned=yes ;;
13757 esac
13758     AR=$ac_ct_AR
13759   fi
13760 else
13761   AR="$ac_cv_prog_AR"
13762 fi
13763
13764 if test -n "$ac_tool_prefix"; then
13765   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13769 if test "${ac_cv_prog_RANLIB+set}" = set; then
13770   echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772   if test -n "$RANLIB"; then
13773   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13774 else
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13777 do
13778   IFS=$as_save_IFS
13779   test -z "$as_dir" && as_dir=.
13780   for ac_exec_ext in '' $ac_executable_extensions; do
13781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13782     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13784     break 2
13785   fi
13786 done
13787 done
13788 IFS=$as_save_IFS
13789
13790 fi
13791 fi
13792 RANLIB=$ac_cv_prog_RANLIB
13793 if test -n "$RANLIB"; then
13794   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13795 echo "${ECHO_T}$RANLIB" >&6; }
13796 else
13797   { echo "$as_me:$LINENO: result: no" >&5
13798 echo "${ECHO_T}no" >&6; }
13799 fi
13800
13801
13802 fi
13803 if test -z "$ac_cv_prog_RANLIB"; then
13804   ac_ct_RANLIB=$RANLIB
13805   # Extract the first word of "ranlib", so it can be a program name with args.
13806 set dummy ranlib; ac_word=$2
13807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13809 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13810   echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812   if test -n "$ac_ct_RANLIB"; then
13813   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13814 else
13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $PATH
13817 do
13818   IFS=$as_save_IFS
13819   test -z "$as_dir" && as_dir=.
13820   for ac_exec_ext in '' $ac_executable_extensions; do
13821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13822     ac_cv_prog_ac_ct_RANLIB="ranlib"
13823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13824     break 2
13825   fi
13826 done
13827 done
13828 IFS=$as_save_IFS
13829
13830 fi
13831 fi
13832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13833 if test -n "$ac_ct_RANLIB"; then
13834   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13835 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13836 else
13837   { echo "$as_me:$LINENO: result: no" >&5
13838 echo "${ECHO_T}no" >&6; }
13839 fi
13840
13841   if test "x$ac_ct_RANLIB" = x; then
13842     RANLIB=":"
13843   else
13844     case $cross_compiling:$ac_tool_warned in
13845 yes:)
13846 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13847 whose name does not start with the host triplet.  If you think this
13848 configuration is useful to you, please write to autoconf@gnu.org." >&5
13849 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13850 whose name does not start with the host triplet.  If you think this
13851 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13852 ac_tool_warned=yes ;;
13853 esac
13854     RANLIB=$ac_ct_RANLIB
13855   fi
13856 else
13857   RANLIB="$ac_cv_prog_RANLIB"
13858 fi
13859
13860 if test -n "$ac_tool_prefix"; then
13861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13862 set dummy ${ac_tool_prefix}strip; ac_word=$2
13863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13865 if test "${ac_cv_prog_STRIP+set}" = set; then
13866   echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868   if test -n "$STRIP"; then
13869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13870 else
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13873 do
13874   IFS=$as_save_IFS
13875   test -z "$as_dir" && as_dir=.
13876   for ac_exec_ext in '' $ac_executable_extensions; do
13877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13880     break 2
13881   fi
13882 done
13883 done
13884 IFS=$as_save_IFS
13885
13886 fi
13887 fi
13888 STRIP=$ac_cv_prog_STRIP
13889 if test -n "$STRIP"; then
13890   { echo "$as_me:$LINENO: result: $STRIP" >&5
13891 echo "${ECHO_T}$STRIP" >&6; }
13892 else
13893   { echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6; }
13895 fi
13896
13897
13898 fi
13899 if test -z "$ac_cv_prog_STRIP"; then
13900   ac_ct_STRIP=$STRIP
13901   # Extract the first word of "strip", so it can be a program name with args.
13902 set dummy strip; ac_word=$2
13903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13906   echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908   if test -n "$ac_ct_STRIP"; then
13909   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13910 else
13911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13912 for as_dir in $PATH
13913 do
13914   IFS=$as_save_IFS
13915   test -z "$as_dir" && as_dir=.
13916   for ac_exec_ext in '' $ac_executable_extensions; do
13917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13918     ac_cv_prog_ac_ct_STRIP="strip"
13919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13920     break 2
13921   fi
13922 done
13923 done
13924 IFS=$as_save_IFS
13925
13926 fi
13927 fi
13928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13929 if test -n "$ac_ct_STRIP"; then
13930   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13931 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13932 else
13933   { echo "$as_me:$LINENO: result: no" >&5
13934 echo "${ECHO_T}no" >&6; }
13935 fi
13936
13937   if test "x$ac_ct_STRIP" = x; then
13938     STRIP=":"
13939   else
13940     case $cross_compiling:$ac_tool_warned in
13941 yes:)
13942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13943 whose name does not start with the host triplet.  If you think this
13944 configuration is useful to you, please write to autoconf@gnu.org." >&5
13945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13946 whose name does not start with the host triplet.  If you think this
13947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13948 ac_tool_warned=yes ;;
13949 esac
13950     STRIP=$ac_ct_STRIP
13951   fi
13952 else
13953   STRIP="$ac_cv_prog_STRIP"
13954 fi
13955
13956
13957 old_CC="$CC"
13958 old_CFLAGS="$CFLAGS"
13959
13960 # Set sane defaults for various variables
13961 test -z "$AR" && AR=ar
13962 test -z "$AR_FLAGS" && AR_FLAGS=cru
13963 test -z "$AS" && AS=as
13964 test -z "$CC" && CC=cc
13965 test -z "$LTCC" && LTCC=$CC
13966 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13967 test -z "$DLLTOOL" && DLLTOOL=dlltool
13968 test -z "$LD" && LD=ld
13969 test -z "$LN_S" && LN_S="ln -s"
13970 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13971 test -z "$NM" && NM=nm
13972 test -z "$SED" && SED=sed
13973 test -z "$OBJDUMP" && OBJDUMP=objdump
13974 test -z "$RANLIB" && RANLIB=:
13975 test -z "$STRIP" && STRIP=:
13976 test -z "$ac_objext" && ac_objext=o
13977
13978 # Determine commands to create old-style static archives.
13979 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13980 old_postinstall_cmds='chmod 644 $oldlib'
13981 old_postuninstall_cmds=
13982
13983 if test -n "$RANLIB"; then
13984   case $host_os in
13985   openbsd*)
13986     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13987     ;;
13988   *)
13989     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13990     ;;
13991   esac
13992   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13993 fi
13994
13995 for cc_temp in $compiler""; do
13996   case $cc_temp in
13997     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13999     \-*) ;;
14000     *) break;;
14001   esac
14002 done
14003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14004
14005
14006 # Only perform the check for file, if the check method requires it
14007 case $deplibs_check_method in
14008 file_magic*)
14009   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14010     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14011 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14012 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   case $MAGIC_CMD in
14016 [\\/*] |  ?:[\\/]*)
14017   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14018   ;;
14019 *)
14020   lt_save_MAGIC_CMD="$MAGIC_CMD"
14021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14022   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14023   for ac_dir in $ac_dummy; do
14024     IFS="$lt_save_ifs"
14025     test -z "$ac_dir" && ac_dir=.
14026     if test -f $ac_dir/${ac_tool_prefix}file; then
14027       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14028       if test -n "$file_magic_test_file"; then
14029         case $deplibs_check_method in
14030         "file_magic "*)
14031           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14032           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14034             $EGREP "$file_magic_regex" > /dev/null; then
14035             :
14036           else
14037             cat <<EOF 1>&2
14038
14039 *** Warning: the command libtool uses to detect shared libraries,
14040 *** $file_magic_cmd, produces output that libtool cannot recognize.
14041 *** The result is that libtool may fail to recognize shared libraries
14042 *** as such.  This will affect the creation of libtool libraries that
14043 *** depend on shared libraries, but programs linked with such libtool
14044 *** libraries will work regardless of this problem.  Nevertheless, you
14045 *** may want to report the problem to your system manager and/or to
14046 *** bug-libtool@gnu.org
14047
14048 EOF
14049           fi ;;
14050         esac
14051       fi
14052       break
14053     fi
14054   done
14055   IFS="$lt_save_ifs"
14056   MAGIC_CMD="$lt_save_MAGIC_CMD"
14057   ;;
14058 esac
14059 fi
14060
14061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14062 if test -n "$MAGIC_CMD"; then
14063   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14064 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14065 else
14066   { echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6; }
14068 fi
14069
14070 if test -z "$lt_cv_path_MAGIC_CMD"; then
14071   if test -n "$ac_tool_prefix"; then
14072     { echo "$as_me:$LINENO: checking for file" >&5
14073 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077   case $MAGIC_CMD in
14078 [\\/*] |  ?:[\\/]*)
14079   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14080   ;;
14081 *)
14082   lt_save_MAGIC_CMD="$MAGIC_CMD"
14083   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14084   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14085   for ac_dir in $ac_dummy; do
14086     IFS="$lt_save_ifs"
14087     test -z "$ac_dir" && ac_dir=.
14088     if test -f $ac_dir/file; then
14089       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14090       if test -n "$file_magic_test_file"; then
14091         case $deplibs_check_method in
14092         "file_magic "*)
14093           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14094           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14096             $EGREP "$file_magic_regex" > /dev/null; then
14097             :
14098           else
14099             cat <<EOF 1>&2
14100
14101 *** Warning: the command libtool uses to detect shared libraries,
14102 *** $file_magic_cmd, produces output that libtool cannot recognize.
14103 *** The result is that libtool may fail to recognize shared libraries
14104 *** as such.  This will affect the creation of libtool libraries that
14105 *** depend on shared libraries, but programs linked with such libtool
14106 *** libraries will work regardless of this problem.  Nevertheless, you
14107 *** may want to report the problem to your system manager and/or to
14108 *** bug-libtool@gnu.org
14109
14110 EOF
14111           fi ;;
14112         esac
14113       fi
14114       break
14115     fi
14116   done
14117   IFS="$lt_save_ifs"
14118   MAGIC_CMD="$lt_save_MAGIC_CMD"
14119   ;;
14120 esac
14121 fi
14122
14123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14124 if test -n "$MAGIC_CMD"; then
14125   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14126 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14127 else
14128   { echo "$as_me:$LINENO: result: no" >&5
14129 echo "${ECHO_T}no" >&6; }
14130 fi
14131
14132   else
14133     MAGIC_CMD=:
14134   fi
14135 fi
14136
14137   fi
14138   ;;
14139 esac
14140
14141 enable_dlopen=yes
14142 enable_win32_dll=no
14143
14144 # Check whether --enable-libtool-lock was given.
14145 if test "${enable_libtool_lock+set}" = set; then
14146   enableval=$enable_libtool_lock;
14147 fi
14148
14149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14150
14151
14152 # Check whether --with-pic was given.
14153 if test "${with_pic+set}" = set; then
14154   withval=$with_pic; pic_mode="$withval"
14155 else
14156   pic_mode=default
14157 fi
14158
14159 test -z "$pic_mode" && pic_mode=default
14160
14161 # Use C for the default configuration in the libtool script
14162 tagname=
14163 lt_save_CC="$CC"
14164 ac_ext=c
14165 ac_cpp='$CPP $CPPFLAGS'
14166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14169
14170
14171 # Source file extension for C test sources.
14172 ac_ext=c
14173
14174 # Object file extension for compiled C test sources.
14175 objext=o
14176 objext=$objext
14177
14178 # Code to be used in simple compile tests
14179 lt_simple_compile_test_code="int some_variable = 0;\n"
14180
14181 # Code to be used in simple link tests
14182 lt_simple_link_test_code='int main(){return(0);}\n'
14183
14184
14185 # If no C compiler was specified, use CC.
14186 LTCC=${LTCC-"$CC"}
14187
14188 # If no C compiler flags were specified, use CFLAGS.
14189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14190
14191 # Allow CC to be a program name with arguments.
14192 compiler=$CC
14193
14194
14195 # save warnings/boilerplate of simple test code
14196 ac_outfile=conftest.$ac_objext
14197 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14198 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199 _lt_compiler_boilerplate=`cat conftest.err`
14200 $rm conftest*
14201
14202 ac_outfile=conftest.$ac_objext
14203 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14204 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14205 _lt_linker_boilerplate=`cat conftest.err`
14206 $rm conftest*
14207
14208
14209
14210 lt_prog_compiler_no_builtin_flag=
14211
14212 if test "$GCC" = yes; then
14213   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14214
14215
14216 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14217 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14218 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221   lt_cv_prog_compiler_rtti_exceptions=no
14222   ac_outfile=conftest.$ac_objext
14223    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14224    lt_compiler_flag="-fno-rtti -fno-exceptions"
14225    # Insert the option either (1) after the last *FLAGS variable, or
14226    # (2) before a word containing "conftest.", or (3) at the end.
14227    # Note that $ac_compile itself does not contain backslashes and begins
14228    # with a dollar sign (not a hyphen), so the echo should work correctly.
14229    # The option is referenced via a variable to avoid confusing sed.
14230    lt_compile=`echo "$ac_compile" | $SED \
14231    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14233    -e 's:$: $lt_compiler_flag:'`
14234    (eval echo "\"\$as_me:14234: $lt_compile\"" >&5)
14235    (eval "$lt_compile" 2>conftest.err)
14236    ac_status=$?
14237    cat conftest.err >&5
14238    echo "$as_me:14238: \$? = $ac_status" >&5
14239    if (exit $ac_status) && test -s "$ac_outfile"; then
14240      # The compiler can only warn and ignore the option if not recognized
14241      # So say no if there are warnings other than the usual output.
14242      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14243      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14244      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14245        lt_cv_prog_compiler_rtti_exceptions=yes
14246      fi
14247    fi
14248    $rm conftest*
14249
14250 fi
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14253
14254 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14255     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14256 else
14257     :
14258 fi
14259
14260 fi
14261
14262 lt_prog_compiler_wl=
14263 lt_prog_compiler_pic=
14264 lt_prog_compiler_static=
14265
14266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14268
14269   if test "$GCC" = yes; then
14270     lt_prog_compiler_wl='-Wl,'
14271     lt_prog_compiler_static='-static'
14272
14273     case $host_os in
14274       aix*)
14275       # All AIX code is PIC.
14276       if test "$host_cpu" = ia64; then
14277         # AIX 5 now supports IA64 processor
14278         lt_prog_compiler_static='-Bstatic'
14279       fi
14280       ;;
14281
14282     amigaos*)
14283       # FIXME: we need at least 68020 code to build shared libraries, but
14284       # adding the `-m68020' flag to GCC prevents building anything better,
14285       # like `-m68040'.
14286       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14287       ;;
14288
14289     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14290       # PIC is the default for these OSes.
14291       ;;
14292
14293     mingw* | pw32* | os2*)
14294       # This hack is so that the source file can tell whether it is being
14295       # built for inclusion in a dll (and should export symbols for example).
14296       lt_prog_compiler_pic='-DDLL_EXPORT'
14297       ;;
14298
14299     darwin* | rhapsody*)
14300       # PIC is the default on this platform
14301       # Common symbols not allowed in MH_DYLIB files
14302       lt_prog_compiler_pic='-fno-common'
14303       ;;
14304
14305     interix3*)
14306       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14307       # Instead, we relocate shared libraries at runtime.
14308       ;;
14309
14310     msdosdjgpp*)
14311       # Just because we use GCC doesn't mean we suddenly get shared libraries
14312       # on systems that don't support them.
14313       lt_prog_compiler_can_build_shared=no
14314       enable_shared=no
14315       ;;
14316
14317     sysv4*MP*)
14318       if test -d /usr/nec; then
14319         lt_prog_compiler_pic=-Kconform_pic
14320       fi
14321       ;;
14322
14323     hpux*)
14324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14325       # not for PA HP-UX.
14326       case $host_cpu in
14327       hppa*64*|ia64*)
14328         # +Z the default
14329         ;;
14330       *)
14331         lt_prog_compiler_pic='-fPIC'
14332         ;;
14333       esac
14334       ;;
14335
14336     *)
14337       lt_prog_compiler_pic='-fPIC'
14338       ;;
14339     esac
14340   else
14341     # PORTME Check for flag to pass linker flags through the system compiler.
14342     case $host_os in
14343     aix*)
14344       lt_prog_compiler_wl='-Wl,'
14345       if test "$host_cpu" = ia64; then
14346         # AIX 5 now supports IA64 processor
14347         lt_prog_compiler_static='-Bstatic'
14348       else
14349         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14350       fi
14351       ;;
14352       darwin*)
14353         # PIC is the default on this platform
14354         # Common symbols not allowed in MH_DYLIB files
14355        case $cc_basename in
14356          xlc*)
14357          lt_prog_compiler_pic='-qnocommon'
14358          lt_prog_compiler_wl='-Wl,'
14359          ;;
14360        esac
14361        ;;
14362
14363     mingw* | pw32* | os2*)
14364       # This hack is so that the source file can tell whether it is being
14365       # built for inclusion in a dll (and should export symbols for example).
14366       lt_prog_compiler_pic='-DDLL_EXPORT'
14367       ;;
14368
14369     hpux9* | hpux10* | hpux11*)
14370       lt_prog_compiler_wl='-Wl,'
14371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14372       # not for PA HP-UX.
14373       case $host_cpu in
14374       hppa*64*|ia64*)
14375         # +Z the default
14376         ;;
14377       *)
14378         lt_prog_compiler_pic='+Z'
14379         ;;
14380       esac
14381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14382       lt_prog_compiler_static='${wl}-a ${wl}archive'
14383       ;;
14384
14385     irix5* | irix6* | nonstopux*)
14386       lt_prog_compiler_wl='-Wl,'
14387       # PIC (with -KPIC) is the default.
14388       lt_prog_compiler_static='-non_shared'
14389       ;;
14390
14391     newsos6)
14392       lt_prog_compiler_pic='-KPIC'
14393       lt_prog_compiler_static='-Bstatic'
14394       ;;
14395
14396     linux*)
14397       case $cc_basename in
14398       icc* | ecc*)
14399         lt_prog_compiler_wl='-Wl,'
14400         lt_prog_compiler_pic='-KPIC'
14401         lt_prog_compiler_static='-static'
14402         ;;
14403       pgcc* | pgf77* | pgf90* | pgf95*)
14404         # Portland Group compilers (*not* the Pentium gcc compiler,
14405         # which looks to be a dead project)
14406         lt_prog_compiler_wl='-Wl,'
14407         lt_prog_compiler_pic='-fpic'
14408         lt_prog_compiler_static='-Bstatic'
14409         ;;
14410       ccc*)
14411         lt_prog_compiler_wl='-Wl,'
14412         # All Alpha code is PIC.
14413         lt_prog_compiler_static='-non_shared'
14414         ;;
14415       esac
14416       ;;
14417
14418     osf3* | osf4* | osf5*)
14419       lt_prog_compiler_wl='-Wl,'
14420       # All OSF/1 code is PIC.
14421       lt_prog_compiler_static='-non_shared'
14422       ;;
14423
14424     solaris*)
14425       lt_prog_compiler_pic='-KPIC'
14426       lt_prog_compiler_static='-Bstatic'
14427       case $cc_basename in
14428       f77* | f90* | f95*)
14429         lt_prog_compiler_wl='-Qoption ld ';;
14430       *)
14431         lt_prog_compiler_wl='-Wl,';;
14432       esac
14433       ;;
14434
14435     sunos4*)
14436       lt_prog_compiler_wl='-Qoption ld '
14437       lt_prog_compiler_pic='-PIC'
14438       lt_prog_compiler_static='-Bstatic'
14439       ;;
14440
14441     sysv4 | sysv4.2uw2* | sysv4.3*)
14442       lt_prog_compiler_wl='-Wl,'
14443       lt_prog_compiler_pic='-KPIC'
14444       lt_prog_compiler_static='-Bstatic'
14445       ;;
14446
14447     sysv4*MP*)
14448       if test -d /usr/nec ;then
14449         lt_prog_compiler_pic='-Kconform_pic'
14450         lt_prog_compiler_static='-Bstatic'
14451       fi
14452       ;;
14453
14454     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14455       lt_prog_compiler_wl='-Wl,'
14456       lt_prog_compiler_pic='-KPIC'
14457       lt_prog_compiler_static='-Bstatic'
14458       ;;
14459
14460     unicos*)
14461       lt_prog_compiler_wl='-Wl,'
14462       lt_prog_compiler_can_build_shared=no
14463       ;;
14464
14465     uts4*)
14466       lt_prog_compiler_pic='-pic'
14467       lt_prog_compiler_static='-Bstatic'
14468       ;;
14469
14470     *)
14471       lt_prog_compiler_can_build_shared=no
14472       ;;
14473     esac
14474   fi
14475
14476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14477 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14478
14479 #
14480 # Check to make sure the PIC flag actually works.
14481 #
14482 if test -n "$lt_prog_compiler_pic"; then
14483
14484 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14486 if test "${lt_prog_compiler_pic_works+set}" = set; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489   lt_prog_compiler_pic_works=no
14490   ac_outfile=conftest.$ac_objext
14491    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14492    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14493    # Insert the option either (1) after the last *FLAGS variable, or
14494    # (2) before a word containing "conftest.", or (3) at the end.
14495    # Note that $ac_compile itself does not contain backslashes and begins
14496    # with a dollar sign (not a hyphen), so the echo should work correctly.
14497    # The option is referenced via a variable to avoid confusing sed.
14498    lt_compile=`echo "$ac_compile" | $SED \
14499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14501    -e 's:$: $lt_compiler_flag:'`
14502    (eval echo "\"\$as_me:14502: $lt_compile\"" >&5)
14503    (eval "$lt_compile" 2>conftest.err)
14504    ac_status=$?
14505    cat conftest.err >&5
14506    echo "$as_me:14506: \$? = $ac_status" >&5
14507    if (exit $ac_status) && test -s "$ac_outfile"; then
14508      # The compiler can only warn and ignore the option if not recognized
14509      # So say no if there are warnings other than the usual output.
14510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14513        lt_prog_compiler_pic_works=yes
14514      fi
14515    fi
14516    $rm conftest*
14517
14518 fi
14519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14520 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14521
14522 if test x"$lt_prog_compiler_pic_works" = xyes; then
14523     case $lt_prog_compiler_pic in
14524      "" | " "*) ;;
14525      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14526      esac
14527 else
14528     lt_prog_compiler_pic=
14529      lt_prog_compiler_can_build_shared=no
14530 fi
14531
14532 fi
14533 case $host_os in
14534   # For platforms which do not support PIC, -DPIC is meaningless:
14535   *djgpp*)
14536     lt_prog_compiler_pic=
14537     ;;
14538   *)
14539     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14540     ;;
14541 esac
14542
14543 #
14544 # Check to make sure the static flag actually works.
14545 #
14546 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14547 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14548 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14549 if test "${lt_prog_compiler_static_works+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   lt_prog_compiler_static_works=no
14553    save_LDFLAGS="$LDFLAGS"
14554    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14555    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14556    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14557      # The linker can only warn and ignore the option if not recognized
14558      # So say no if there are warnings
14559      if test -s conftest.err; then
14560        # Append any errors to the config.log.
14561        cat conftest.err 1>&5
14562        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14563        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14564        if diff conftest.exp conftest.er2 >/dev/null; then
14565          lt_prog_compiler_static_works=yes
14566        fi
14567      else
14568        lt_prog_compiler_static_works=yes
14569      fi
14570    fi
14571    $rm conftest*
14572    LDFLAGS="$save_LDFLAGS"
14573
14574 fi
14575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14576 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14577
14578 if test x"$lt_prog_compiler_static_works" = xyes; then
14579     :
14580 else
14581     lt_prog_compiler_static=
14582 fi
14583
14584
14585 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14587 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14588   echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590   lt_cv_prog_compiler_c_o=no
14591    $rm -r conftest 2>/dev/null
14592    mkdir conftest
14593    cd conftest
14594    mkdir out
14595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14596
14597    lt_compiler_flag="-o out/conftest2.$ac_objext"
14598    # Insert the option either (1) after the last *FLAGS variable, or
14599    # (2) before a word containing "conftest.", or (3) at the end.
14600    # Note that $ac_compile itself does not contain backslashes and begins
14601    # with a dollar sign (not a hyphen), so the echo should work correctly.
14602    lt_compile=`echo "$ac_compile" | $SED \
14603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14605    -e 's:$: $lt_compiler_flag:'`
14606    (eval echo "\"\$as_me:14606: $lt_compile\"" >&5)
14607    (eval "$lt_compile" 2>out/conftest.err)
14608    ac_status=$?
14609    cat out/conftest.err >&5
14610    echo "$as_me:14610: \$? = $ac_status" >&5
14611    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14612    then
14613      # The compiler can only warn and ignore the option if not recognized
14614      # So say no if there are warnings
14615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14616      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14617      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14618        lt_cv_prog_compiler_c_o=yes
14619      fi
14620    fi
14621    chmod u+w . 2>&5
14622    $rm conftest*
14623    # SGI C++ compiler will create directory out/ii_files/ for
14624    # template instantiation
14625    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14626    $rm out/* && rmdir out
14627    cd ..
14628    rmdir conftest
14629    $rm conftest*
14630
14631 fi
14632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14634
14635
14636 hard_links="nottested"
14637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14638   # do not overwrite the value of need_locks provided by the user
14639   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14641   hard_links=yes
14642   $rm conftest*
14643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644   touch conftest.a
14645   ln conftest.a conftest.b 2>&5 || hard_links=no
14646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14647   { echo "$as_me:$LINENO: result: $hard_links" >&5
14648 echo "${ECHO_T}$hard_links" >&6; }
14649   if test "$hard_links" = no; then
14650     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14652     need_locks=warn
14653   fi
14654 else
14655   need_locks=no
14656 fi
14657
14658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14660
14661   runpath_var=
14662   allow_undefined_flag=
14663   enable_shared_with_static_runtimes=no
14664   archive_cmds=
14665   archive_expsym_cmds=
14666   old_archive_From_new_cmds=
14667   old_archive_from_expsyms_cmds=
14668   export_dynamic_flag_spec=
14669   whole_archive_flag_spec=
14670   thread_safe_flag_spec=
14671   hardcode_libdir_flag_spec=
14672   hardcode_libdir_flag_spec_ld=
14673   hardcode_libdir_separator=
14674   hardcode_direct=no
14675   hardcode_minus_L=no
14676   hardcode_shlibpath_var=unsupported
14677   link_all_deplibs=unknown
14678   hardcode_automatic=no
14679   module_cmds=
14680   module_expsym_cmds=
14681   always_export_symbols=no
14682   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14683   # include_expsyms should be a list of space-separated symbols to be *always*
14684   # included in the symbol list
14685   include_expsyms=
14686   # exclude_expsyms can be an extended regexp of symbols to exclude
14687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14689   # as well as any symbol that contains `d'.
14690   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14692   # platforms (ab)use it in PIC code, but their linkers get confused if
14693   # the symbol is explicitly referenced.  Since portable code cannot
14694   # rely on this symbol name, it's probably fine to never include it in
14695   # preloaded symbol tables.
14696   extract_expsyms_cmds=
14697   # Just being paranoid about ensuring that cc_basename is set.
14698   for cc_temp in $compiler""; do
14699   case $cc_temp in
14700     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14701     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14702     \-*) ;;
14703     *) break;;
14704   esac
14705 done
14706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14707
14708   case $host_os in
14709   cygwin* | mingw* | pw32*)
14710     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14711     # When not using gcc, we currently assume that we are using
14712     # Microsoft Visual C++.
14713     if test "$GCC" != yes; then
14714       with_gnu_ld=no
14715     fi
14716     ;;
14717   interix*)
14718     # we just hope/assume this is gcc and not c89 (= MSVC++)
14719     with_gnu_ld=yes
14720     ;;
14721   openbsd*)
14722     with_gnu_ld=no
14723     ;;
14724   esac
14725
14726   ld_shlibs=yes
14727   if test "$with_gnu_ld" = yes; then
14728     # If archive_cmds runs LD, not CC, wlarc should be empty
14729     wlarc='${wl}'
14730
14731     # Set some defaults for GNU ld with shared library support. These
14732     # are reset later if shared libraries are not supported. Putting them
14733     # here allows them to be overridden if necessary.
14734     runpath_var=LD_RUN_PATH
14735     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14736     export_dynamic_flag_spec='${wl}--export-dynamic'
14737     # ancient GNU ld didn't support --whole-archive et. al.
14738     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14739         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14740       else
14741         whole_archive_flag_spec=
14742     fi
14743     supports_anon_versioning=no
14744     case `$LD -v 2>/dev/null` in
14745       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14746       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14747       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14748       *\ 2.11.*) ;; # other 2.11 versions
14749       *) supports_anon_versioning=yes ;;
14750     esac
14751
14752     # See if GNU ld supports shared libraries.
14753     case $host_os in
14754     aix3* | aix4* | aix5*)
14755       # On AIX/PPC, the GNU linker is very broken
14756       if test "$host_cpu" != ia64; then
14757         ld_shlibs=no
14758         cat <<EOF 1>&2
14759
14760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14761 *** to be unable to reliably create shared libraries on AIX.
14762 *** Therefore, libtool is disabling shared libraries support.  If you
14763 *** really care for shared libraries, you may want to modify your PATH
14764 *** so that a non-GNU linker is found, and then restart.
14765
14766 EOF
14767       fi
14768       ;;
14769
14770     amigaos*)
14771       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)'
14772       hardcode_libdir_flag_spec='-L$libdir'
14773       hardcode_minus_L=yes
14774
14775       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14776       # that the semantics of dynamic libraries on AmigaOS, at least up
14777       # to version 4, is to share data among multiple programs linked
14778       # with the same dynamic library.  Since this doesn't match the
14779       # behavior of shared libraries on other platforms, we can't use
14780       # them.
14781       ld_shlibs=no
14782       ;;
14783
14784     beos*)
14785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14786         allow_undefined_flag=unsupported
14787         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14788         # support --undefined.  This deserves some investigation.  FIXME
14789         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790       else
14791         ld_shlibs=no
14792       fi
14793       ;;
14794
14795     cygwin* | mingw* | pw32*)
14796       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14797       # as there is no search path for DLLs.
14798       hardcode_libdir_flag_spec='-L$libdir'
14799       allow_undefined_flag=unsupported
14800       always_export_symbols=no
14801       enable_shared_with_static_runtimes=yes
14802       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14803
14804       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14805         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14806         # If the export-symbols file already is a .def file (1st line
14807         # is EXPORTS), use it as is; otherwise, prepend...
14808         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14809           cp $export_symbols $output_objdir/$soname.def;
14810         else
14811           echo EXPORTS > $output_objdir/$soname.def;
14812           cat $export_symbols >> $output_objdir/$soname.def;
14813         fi~
14814         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14815       else
14816         ld_shlibs=no
14817       fi
14818       ;;
14819
14820     interix3*)
14821       hardcode_direct=no
14822       hardcode_shlibpath_var=no
14823       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14824       export_dynamic_flag_spec='${wl}-E'
14825       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14826       # Instead, shared libraries are loaded at an image base (0x10000000 by
14827       # default) and relocated if they conflict, which is a slow very memory
14828       # consuming and fragmenting process.  To avoid this, we pick a random,
14829       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14830       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14831       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14832       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'
14833       ;;
14834
14835     linux*)
14836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837         tmp_addflag=
14838         case $cc_basename,$host_cpu in
14839         pgcc*)                          # Portland Group C compiler
14840           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'
14841           tmp_addflag=' $pic_flag'
14842           ;;
14843         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14844           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'
14845           tmp_addflag=' $pic_flag -Mnomain' ;;
14846         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14847           tmp_addflag=' -i_dynamic' ;;
14848         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14849           tmp_addflag=' -i_dynamic -nofor_main' ;;
14850         ifc* | ifort*)                  # Intel Fortran compiler
14851           tmp_addflag=' -nofor_main' ;;
14852         esac
14853         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14854
14855         if test $supports_anon_versioning = yes; then
14856           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14857   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14858   $echo "local: *; };" >> $output_objdir/$libname.ver~
14859           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14860         fi
14861       else
14862         ld_shlibs=no
14863       fi
14864       ;;
14865
14866     netbsd*)
14867       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14868         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14869         wlarc=
14870       else
14871         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14873       fi
14874       ;;
14875
14876     solaris*)
14877       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14878         ld_shlibs=no
14879         cat <<EOF 1>&2
14880
14881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14882 *** create shared libraries on Solaris systems.  Therefore, libtool
14883 *** is disabling shared libraries support.  We urge you to upgrade GNU
14884 *** binutils to release 2.9.1 or newer.  Another option is to modify
14885 *** your PATH or compiler configuration so that the native linker is
14886 *** used, and then restart.
14887
14888 EOF
14889       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14890         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14892       else
14893         ld_shlibs=no
14894       fi
14895       ;;
14896
14897     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14898       case `$LD -v 2>&1` in
14899         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14900         ld_shlibs=no
14901         cat <<_LT_EOF 1>&2
14902
14903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14904 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14905 *** is disabling shared libraries support.  We urge you to upgrade GNU
14906 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14907 *** your PATH or compiler configuration so that the native linker is
14908 *** used, and then restart.
14909
14910 _LT_EOF
14911         ;;
14912         *)
14913           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14914             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14915             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14916             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14917           else
14918             ld_shlibs=no
14919           fi
14920         ;;
14921       esac
14922       ;;
14923
14924     sunos4*)
14925       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14926       wlarc=
14927       hardcode_direct=yes
14928       hardcode_shlibpath_var=no
14929       ;;
14930
14931     *)
14932       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14933         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14934         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14935       else
14936         ld_shlibs=no
14937       fi
14938       ;;
14939     esac
14940
14941     if test "$ld_shlibs" = no; then
14942       runpath_var=
14943       hardcode_libdir_flag_spec=
14944       export_dynamic_flag_spec=
14945       whole_archive_flag_spec=
14946     fi
14947   else
14948     # PORTME fill in a description of your system's linker (not GNU ld)
14949     case $host_os in
14950     aix3*)
14951       allow_undefined_flag=unsupported
14952       always_export_symbols=yes
14953       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'
14954       # Note: this linker hardcodes the directories in LIBPATH if there
14955       # are no directories specified by -L.
14956       hardcode_minus_L=yes
14957       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14958         # Neither direct hardcoding nor static linking is supported with a
14959         # broken collect2.
14960         hardcode_direct=unsupported
14961       fi
14962       ;;
14963
14964     aix4* | aix5*)
14965       if test "$host_cpu" = ia64; then
14966         # On IA64, the linker does run time linking by default, so we don't
14967         # have to do anything special.
14968         aix_use_runtimelinking=no
14969         exp_sym_flag='-Bexport'
14970         no_entry_flag=""
14971       else
14972         # If we're using GNU nm, then we don't want the "-C" option.
14973         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14974         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14975           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'
14976         else
14977           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'
14978         fi
14979         aix_use_runtimelinking=no
14980
14981         # Test if we are trying to use run time linking or normal
14982         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14983         # need to do runtime linking.
14984         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14985           for ld_flag in $LDFLAGS; do
14986           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14987             aix_use_runtimelinking=yes
14988             break
14989           fi
14990           done
14991           ;;
14992         esac
14993
14994         exp_sym_flag='-bexport'
14995         no_entry_flag='-bnoentry'
14996       fi
14997
14998       # When large executables or shared objects are built, AIX ld can
14999       # have problems creating the table of contents.  If linking a library
15000       # or program results in "error TOC overflow" add -mminimal-toc to
15001       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15002       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15003
15004       archive_cmds=''
15005       hardcode_direct=yes
15006       hardcode_libdir_separator=':'
15007       link_all_deplibs=yes
15008
15009       if test "$GCC" = yes; then
15010         case $host_os in aix4.[012]|aix4.[012].*)
15011         # We only want to do this on AIX 4.2 and lower, the check
15012         # below for broken collect2 doesn't work under 4.3+
15013           collect2name=`${CC} -print-prog-name=collect2`
15014           if test -f "$collect2name" && \
15015            strings "$collect2name" | grep resolve_lib_name >/dev/null
15016           then
15017           # We have reworked collect2
15018           hardcode_direct=yes
15019           else
15020           # We have old collect2
15021           hardcode_direct=unsupported
15022           # It fails to find uninstalled libraries when the uninstalled
15023           # path is not listed in the libpath.  Setting hardcode_minus_L
15024           # to unsupported forces relinking
15025           hardcode_minus_L=yes
15026           hardcode_libdir_flag_spec='-L$libdir'
15027           hardcode_libdir_separator=
15028           fi
15029           ;;
15030         esac
15031         shared_flag='-shared'
15032         if test "$aix_use_runtimelinking" = yes; then
15033           shared_flag="$shared_flag "'${wl}-G'
15034         fi
15035       else
15036         # not using gcc
15037         if test "$host_cpu" = ia64; then
15038         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15039         # chokes on -Wl,-G. The following line is correct:
15040           shared_flag='-G'
15041         else
15042           if test "$aix_use_runtimelinking" = yes; then
15043             shared_flag='${wl}-G'
15044           else
15045             shared_flag='${wl}-bM:SRE'
15046           fi
15047         fi
15048       fi
15049
15050       # It seems that -bexpall does not export symbols beginning with
15051       # underscore (_), so it is better to generate a list of symbols to export.
15052       always_export_symbols=yes
15053       if test "$aix_use_runtimelinking" = yes; then
15054         # Warning - without using the other runtime loading flags (-brtl),
15055         # -berok will link without error, but may produce a broken library.
15056         allow_undefined_flag='-berok'
15057        # Determine the default libpath from the value encoded in an empty executable.
15058        cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064
15065 int
15066 main ()
15067 {
15068
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (ac_try="$ac_link"
15075 case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_link") 2>conftest.er1
15081   ac_status=$?
15082   grep -v '^ *+' conftest.er1 >conftest.err
15083   rm -f conftest.er1
15084   cat conftest.err >&5
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } &&
15087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088   { (case "(($ac_try" in
15089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090   *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093   (eval "$ac_try") 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }; } &&
15097          { ac_try='test -s conftest$ac_exeext'
15098   { (case "(($ac_try" in
15099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100   *) ac_try_echo=$ac_try;;
15101 esac
15102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103   (eval "$ac_try") 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); }; }; then
15107
15108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15109 }'`
15110 # Check for a 64-bit object if we didn't find anything.
15111 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; }
15112 }'`; fi
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117
15118 fi
15119
15120 rm -f core conftest.err conftest.$ac_objext \
15121       conftest$ac_exeext conftest.$ac_ext
15122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15123
15124        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15125         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"
15126        else
15127         if test "$host_cpu" = ia64; then
15128           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15129           allow_undefined_flag="-z nodefs"
15130           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"
15131         else
15132          # Determine the default libpath from the value encoded in an empty executable.
15133          cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h.  */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h.  */
15139
15140 int
15141 main ()
15142 {
15143
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext conftest$ac_exeext
15149 if { (ac_try="$ac_link"
15150 case "(($ac_try" in
15151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152   *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155   (eval "$ac_link") 2>conftest.er1
15156   ac_status=$?
15157   grep -v '^ *+' conftest.er1 >conftest.err
15158   rm -f conftest.er1
15159   cat conftest.err >&5
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); } &&
15162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15163   { (case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_try") 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; } &&
15172          { ac_try='test -s conftest$ac_exeext'
15173   { (case "(($ac_try" in
15174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175   *) ac_try_echo=$ac_try;;
15176 esac
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178   (eval "$ac_try") 2>&5
15179   ac_status=$?
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); }; }; then
15182
15183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15184 }'`
15185 # Check for a 64-bit object if we didn't find anything.
15186 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; }
15187 }'`; fi
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext \
15196       conftest$ac_exeext conftest.$ac_ext
15197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15198
15199          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15200           # Warning - without using the other run time loading flags,
15201           # -berok will link without error, but may produce a broken library.
15202           no_undefined_flag=' ${wl}-bernotok'
15203           allow_undefined_flag=' ${wl}-berok'
15204           # Exported symbols can be pulled into shared objects from archives
15205           whole_archive_flag_spec='$convenience'
15206           archive_cmds_need_lc=yes
15207           # This is similar to how AIX traditionally builds its shared libraries.
15208           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'
15209         fi
15210       fi
15211       ;;
15212
15213     amigaos*)
15214       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)'
15215       hardcode_libdir_flag_spec='-L$libdir'
15216       hardcode_minus_L=yes
15217       # see comment about different semantics on the GNU ld section
15218       ld_shlibs=no
15219       ;;
15220
15221     bsdi[45]*)
15222       export_dynamic_flag_spec=-rdynamic
15223       ;;
15224
15225     cygwin* | mingw* | pw32*)
15226       # When not using gcc, we currently assume that we are using
15227       # Microsoft Visual C++.
15228       # hardcode_libdir_flag_spec is actually meaningless, as there is
15229       # no search path for DLLs.
15230       hardcode_libdir_flag_spec=' '
15231       allow_undefined_flag=unsupported
15232       # Tell ltmain to make .lib files, not .a files.
15233       libext=lib
15234       # Tell ltmain to make .dll files, not .so files.
15235       shrext_cmds=".dll"
15236       # FIXME: Setting linknames here is a bad hack.
15237       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15238       # The linker will automatically build a .lib file if we build a DLL.
15239       old_archive_From_new_cmds='true'
15240       # FIXME: Should let the user specify the lib program.
15241       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15242       fix_srcfile_path='`cygpath -w "$srcfile"`'
15243       enable_shared_with_static_runtimes=yes
15244       ;;
15245
15246     darwin* | rhapsody*)
15247       case $host_os in
15248         rhapsody* | darwin1.[012])
15249          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15250          ;;
15251        *) # Darwin 1.3 on
15252          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15253            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15254          else
15255            case ${MACOSX_DEPLOYMENT_TARGET} in
15256              10.[012])
15257                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15258                ;;
15259              10.*)
15260                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15261                ;;
15262            esac
15263          fi
15264          ;;
15265       esac
15266       archive_cmds_need_lc=no
15267       hardcode_direct=no
15268       hardcode_automatic=yes
15269       hardcode_shlibpath_var=unsupported
15270       whole_archive_flag_spec=''
15271       link_all_deplibs=yes
15272     if test "$GCC" = yes ; then
15273         output_verbose_link_cmd='echo'
15274         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15275       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15276       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15277       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}'
15278       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}'
15279     else
15280       case $cc_basename in
15281         xlc*)
15282          output_verbose_link_cmd='echo'
15283          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15284          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15285           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15286          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}'
15287           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}'
15288           ;;
15289        *)
15290          ld_shlibs=no
15291           ;;
15292       esac
15293     fi
15294       ;;
15295
15296     dgux*)
15297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15298       hardcode_libdir_flag_spec='-L$libdir'
15299       hardcode_shlibpath_var=no
15300       ;;
15301
15302     freebsd1*)
15303       ld_shlibs=no
15304       ;;
15305
15306     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15307     # support.  Future versions do this automatically, but an explicit c++rt0.o
15308     # does not break anything, and helps significantly (at the cost of a little
15309     # extra space).
15310     freebsd2.2*)
15311       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15312       hardcode_libdir_flag_spec='-R$libdir'
15313       hardcode_direct=yes
15314       hardcode_shlibpath_var=no
15315       ;;
15316
15317     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15318     freebsd2*)
15319       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15320       hardcode_direct=yes
15321       hardcode_minus_L=yes
15322       hardcode_shlibpath_var=no
15323       ;;
15324
15325     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15326     freebsd* | kfreebsd*-gnu | dragonfly*)
15327       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15328       hardcode_libdir_flag_spec='-R$libdir'
15329       hardcode_direct=yes
15330       hardcode_shlibpath_var=no
15331       ;;
15332
15333     hpux9*)
15334       if test "$GCC" = yes; then
15335         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'
15336       else
15337         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'
15338       fi
15339       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15340       hardcode_libdir_separator=:
15341       hardcode_direct=yes
15342
15343       # hardcode_minus_L: Not really in the search PATH,
15344       # but as the default location of the library.
15345       hardcode_minus_L=yes
15346       export_dynamic_flag_spec='${wl}-E'
15347       ;;
15348
15349     hpux10*)
15350       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15351         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15352       else
15353         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15354       fi
15355       if test "$with_gnu_ld" = no; then
15356         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15357         hardcode_libdir_separator=:
15358
15359         hardcode_direct=yes
15360         export_dynamic_flag_spec='${wl}-E'
15361
15362         # hardcode_minus_L: Not really in the search PATH,
15363         # but as the default location of the library.
15364         hardcode_minus_L=yes
15365       fi
15366       ;;
15367
15368     hpux11*)
15369       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15370         case $host_cpu in
15371         hppa*64*)
15372           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15373           ;;
15374         ia64*)
15375           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15376           ;;
15377         *)
15378           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379           ;;
15380         esac
15381       else
15382         case $host_cpu in
15383         hppa*64*)
15384           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385           ;;
15386         ia64*)
15387           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15388           ;;
15389         *)
15390           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15391           ;;
15392         esac
15393       fi
15394       if test "$with_gnu_ld" = no; then
15395         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15396         hardcode_libdir_separator=:
15397
15398         case $host_cpu in
15399         hppa*64*|ia64*)
15400           hardcode_libdir_flag_spec_ld='+b $libdir'
15401           hardcode_direct=no
15402           hardcode_shlibpath_var=no
15403           ;;
15404         *)
15405           hardcode_direct=yes
15406           export_dynamic_flag_spec='${wl}-E'
15407
15408           # hardcode_minus_L: Not really in the search PATH,
15409           # but as the default location of the library.
15410           hardcode_minus_L=yes
15411           ;;
15412         esac
15413       fi
15414       ;;
15415
15416     irix5* | irix6* | nonstopux*)
15417       if test "$GCC" = yes; then
15418         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'
15419       else
15420         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'
15421         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15422       fi
15423       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15424       hardcode_libdir_separator=:
15425       link_all_deplibs=yes
15426       ;;
15427
15428     netbsd*)
15429       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15430         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15431       else
15432         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15433       fi
15434       hardcode_libdir_flag_spec='-R$libdir'
15435       hardcode_direct=yes
15436       hardcode_shlibpath_var=no
15437       ;;
15438
15439     newsos6)
15440       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441       hardcode_direct=yes
15442       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443       hardcode_libdir_separator=:
15444       hardcode_shlibpath_var=no
15445       ;;
15446
15447     openbsd*)
15448       hardcode_direct=yes
15449       hardcode_shlibpath_var=no
15450       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15453         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15454         export_dynamic_flag_spec='${wl}-E'
15455       else
15456        case $host_os in
15457          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459            hardcode_libdir_flag_spec='-R$libdir'
15460            ;;
15461          *)
15462            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15464            ;;
15465        esac
15466       fi
15467       ;;
15468
15469     os2*)
15470       hardcode_libdir_flag_spec='-L$libdir'
15471       hardcode_minus_L=yes
15472       allow_undefined_flag=unsupported
15473       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'
15474       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15475       ;;
15476
15477     osf3*)
15478       if test "$GCC" = yes; then
15479         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15480         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'
15481       else
15482         allow_undefined_flag=' -expect_unresolved \*'
15483         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'
15484       fi
15485       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15486       hardcode_libdir_separator=:
15487       ;;
15488
15489     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15490       if test "$GCC" = yes; then
15491         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15492         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'
15493         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15494       else
15495         allow_undefined_flag=' -expect_unresolved \*'
15496         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'
15497         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15498         $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'
15499
15500         # Both c and cxx compiler support -rpath directly
15501         hardcode_libdir_flag_spec='-rpath $libdir'
15502       fi
15503       hardcode_libdir_separator=:
15504       ;;
15505
15506     solaris*)
15507       no_undefined_flag=' -z text'
15508       if test "$GCC" = yes; then
15509         wlarc='${wl}'
15510         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15512           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15513       else
15514         wlarc=''
15515         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15518       fi
15519       hardcode_libdir_flag_spec='-R$libdir'
15520       hardcode_shlibpath_var=no
15521       case $host_os in
15522       solaris2.[0-5] | solaris2.[0-5].*) ;;
15523       *)
15524         # The compiler driver will combine linker options so we
15525         # cannot just pass the convience library names through
15526         # without $wl, iff we do not link with $LD.
15527         # Luckily, gcc supports the same syntax we need for Sun Studio.
15528         # Supported since Solaris 2.6 (maybe 2.5.1?)
15529         case $wlarc in
15530         '')
15531           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15532         *)
15533           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' ;;
15534         esac ;;
15535       esac
15536       link_all_deplibs=yes
15537       ;;
15538
15539     sunos4*)
15540       if test "x$host_vendor" = xsequent; then
15541         # Use $CC to link under sequent, because it throws in some extra .o
15542         # files that make .init and .fini sections work.
15543         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15544       else
15545         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15546       fi
15547       hardcode_libdir_flag_spec='-L$libdir'
15548       hardcode_direct=yes
15549       hardcode_minus_L=yes
15550       hardcode_shlibpath_var=no
15551       ;;
15552
15553     sysv4)
15554       case $host_vendor in
15555         sni)
15556           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557           hardcode_direct=yes # is this really true???
15558         ;;
15559         siemens)
15560           ## LD is ld it makes a PLAMLIB
15561           ## CC just makes a GrossModule.
15562           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15563           reload_cmds='$CC -r -o $output$reload_objs'
15564           hardcode_direct=no
15565         ;;
15566         motorola)
15567           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15569         ;;
15570       esac
15571       runpath_var='LD_RUN_PATH'
15572       hardcode_shlibpath_var=no
15573       ;;
15574
15575     sysv4.3*)
15576       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577       hardcode_shlibpath_var=no
15578       export_dynamic_flag_spec='-Bexport'
15579       ;;
15580
15581     sysv4*MP*)
15582       if test -d /usr/nec; then
15583         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584         hardcode_shlibpath_var=no
15585         runpath_var=LD_RUN_PATH
15586         hardcode_runpath_var=yes
15587         ld_shlibs=yes
15588       fi
15589       ;;
15590
15591     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15592       no_undefined_flag='${wl}-z,text'
15593       archive_cmds_need_lc=no
15594       hardcode_shlibpath_var=no
15595       runpath_var='LD_RUN_PATH'
15596
15597       if test "$GCC" = yes; then
15598         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15600       else
15601         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603       fi
15604       ;;
15605
15606     sysv5* | sco3.2v5* | sco5v6*)
15607       # Note: We can NOT use -z defs as we might desire, because we do not
15608       # link with -lc, and that would cause any symbols used from libc to
15609       # always be unresolved, which means just about no library would
15610       # ever link correctly.  If we're not using GNU ld we use -z text
15611       # though, which does catch some bad symbols but isn't as heavy-handed
15612       # as -z defs.
15613       no_undefined_flag='${wl}-z,text'
15614       allow_undefined_flag='${wl}-z,nodefs'
15615       archive_cmds_need_lc=no
15616       hardcode_shlibpath_var=no
15617       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15618       hardcode_libdir_separator=':'
15619       link_all_deplibs=yes
15620       export_dynamic_flag_spec='${wl}-Bexport'
15621       runpath_var='LD_RUN_PATH'
15622
15623       if test "$GCC" = yes; then
15624         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626       else
15627         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629       fi
15630       ;;
15631
15632     uts4*)
15633       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634       hardcode_libdir_flag_spec='-L$libdir'
15635       hardcode_shlibpath_var=no
15636       ;;
15637
15638     *)
15639       ld_shlibs=no
15640       ;;
15641     esac
15642   fi
15643
15644 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15645 echo "${ECHO_T}$ld_shlibs" >&6; }
15646 test "$ld_shlibs" = no && can_build_shared=no
15647
15648 #
15649 # Do we need to explicitly link libc?
15650 #
15651 case "x$archive_cmds_need_lc" in
15652 x|xyes)
15653   # Assume -lc should be added
15654   archive_cmds_need_lc=yes
15655
15656   if test "$enable_shared" = yes && test "$GCC" = yes; then
15657     case $archive_cmds in
15658     *'~'*)
15659       # FIXME: we may have to deal with multi-command sequences.
15660       ;;
15661     '$CC '*)
15662       # Test whether the compiler implicitly links with -lc since on some
15663       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15664       # to ld, don't add -lc before -lgcc.
15665       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15667       $rm conftest*
15668       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15669
15670       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671   (eval $ac_compile) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } 2>conftest.err; then
15675         soname=conftest
15676         lib=conftest
15677         libobjs=conftest.$ac_objext
15678         deplibs=
15679         wl=$lt_prog_compiler_wl
15680         pic_flag=$lt_prog_compiler_pic
15681         compiler_flags=-v
15682         linker_flags=-v
15683         verstring=
15684         output_objdir=.
15685         libname=conftest
15686         lt_save_allow_undefined_flag=$allow_undefined_flag
15687         allow_undefined_flag=
15688         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15689   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }
15693         then
15694           archive_cmds_need_lc=no
15695         else
15696           archive_cmds_need_lc=yes
15697         fi
15698         allow_undefined_flag=$lt_save_allow_undefined_flag
15699       else
15700         cat conftest.err 1>&5
15701       fi
15702       $rm conftest*
15703       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15704 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15705       ;;
15706     esac
15707   fi
15708   ;;
15709 esac
15710
15711 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15713 library_names_spec=
15714 libname_spec='lib$name'
15715 soname_spec=
15716 shrext_cmds=".so"
15717 postinstall_cmds=
15718 postuninstall_cmds=
15719 finish_cmds=
15720 finish_eval=
15721 shlibpath_var=
15722 shlibpath_overrides_runpath=unknown
15723 version_type=none
15724 dynamic_linker="$host_os ld.so"
15725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15726 if test "$GCC" = yes; then
15727   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15728   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15729     # if the path contains ";" then we assume it to be the separator
15730     # otherwise default to the standard path separator (i.e. ":") - it is
15731     # assumed that no part of a normal pathname contains ";" but that should
15732     # okay in the real world where ";" in dirpaths is itself problematic.
15733     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15734   else
15735     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15736   fi
15737 else
15738   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15739 fi
15740 need_lib_prefix=unknown
15741 hardcode_into_libs=no
15742
15743 # when you set need_version to no, make sure it does not cause -set_version
15744 # flags to be left without arguments
15745 need_version=unknown
15746
15747 case $host_os in
15748 aix3*)
15749   version_type=linux
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15751   shlibpath_var=LIBPATH
15752
15753   # AIX 3 has no versioning support, so we append a major version to the name.
15754   soname_spec='${libname}${release}${shared_ext}$major'
15755   ;;
15756
15757 aix4* | aix5*)
15758   version_type=linux
15759   need_lib_prefix=no
15760   need_version=no
15761   hardcode_into_libs=yes
15762   if test "$host_cpu" = ia64; then
15763     # AIX 5 supports IA64
15764     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15765     shlibpath_var=LD_LIBRARY_PATH
15766   else
15767     # With GCC up to 2.95.x, collect2 would create an import file
15768     # for dependence libraries.  The import file would start with
15769     # the line `#! .'.  This would cause the generated library to
15770     # depend on `.', always an invalid library.  This was fixed in
15771     # development snapshots of GCC prior to 3.0.
15772     case $host_os in
15773       aix4 | aix4.[01] | aix4.[01].*)
15774       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775            echo ' yes '
15776            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15777         :
15778       else
15779         can_build_shared=no
15780       fi
15781       ;;
15782     esac
15783     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15784     # soname into executable. Probably we can add versioning support to
15785     # collect2, so additional links can be useful in future.
15786     if test "$aix_use_runtimelinking" = yes; then
15787       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15788       # instead of lib<name>.a to let people know that these are not
15789       # typical AIX shared libraries.
15790       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791     else
15792       # We preserve .a as extension for shared libraries through AIX4.2
15793       # and later when we are not doing run time linking.
15794       library_names_spec='${libname}${release}.a $libname.a'
15795       soname_spec='${libname}${release}${shared_ext}$major'
15796     fi
15797     shlibpath_var=LIBPATH
15798   fi
15799   ;;
15800
15801 amigaos*)
15802   library_names_spec='$libname.ixlibrary $libname.a'
15803   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15804   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'
15805   ;;
15806
15807 beos*)
15808   library_names_spec='${libname}${shared_ext}'
15809   dynamic_linker="$host_os ld.so"
15810   shlibpath_var=LIBRARY_PATH
15811   ;;
15812
15813 bsdi[45]*)
15814   version_type=linux
15815   need_version=no
15816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817   soname_spec='${libname}${release}${shared_ext}$major'
15818   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15819   shlibpath_var=LD_LIBRARY_PATH
15820   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15821   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15822   # the default ld.so.conf also contains /usr/contrib/lib and
15823   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15824   # libtool to hard-code these into programs
15825   ;;
15826
15827 cygwin* | mingw* | pw32*)
15828   version_type=windows
15829   shrext_cmds=".dll"
15830   need_version=no
15831   need_lib_prefix=no
15832
15833   case $GCC,$host_os in
15834   yes,cygwin* | yes,mingw* | yes,pw32*)
15835     library_names_spec='$libname.dll.a'
15836     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15837     postinstall_cmds='base_file=`basename \${file}`~
15838       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15839       dldir=$destdir/`dirname \$dlpath`~
15840       test -d \$dldir || mkdir -p \$dldir~
15841       $install_prog $dir/$dlname \$dldir/$dlname~
15842       chmod a+x \$dldir/$dlname'
15843     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15844       dlpath=$dir/\$dldll~
15845        $rm \$dlpath'
15846     shlibpath_overrides_runpath=yes
15847
15848     case $host_os in
15849     cygwin*)
15850       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15851       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15852       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15853       ;;
15854     mingw*)
15855       # MinGW DLLs use traditional 'lib' prefix
15856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15858       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15859         # It is most probably a Windows format PATH printed by
15860         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15861         # path with ; separators, and with drive letters. We can handle the
15862         # drive letters (cygwin fileutils understands them), so leave them,
15863         # especially as we might pass files found there to a mingw objdump,
15864         # which wouldn't understand a cygwinified path. Ahh.
15865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15866       else
15867         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15868       fi
15869       ;;
15870     pw32*)
15871       # pw32 DLLs use 'pw' prefix rather than 'lib'
15872       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15873       ;;
15874     esac
15875     ;;
15876
15877   *)
15878     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15879     ;;
15880   esac
15881   dynamic_linker='Win32 ld.exe'
15882   # FIXME: first we should search . and the directory the executable is in
15883   shlibpath_var=PATH
15884   ;;
15885
15886 darwin* | rhapsody*)
15887   dynamic_linker="$host_os dyld"
15888   version_type=darwin
15889   need_lib_prefix=no
15890   need_version=no
15891   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15892   soname_spec='${libname}${release}${major}$shared_ext'
15893   shlibpath_overrides_runpath=yes
15894   shlibpath_var=DYLD_LIBRARY_PATH
15895   shrext_cmds='.dylib'
15896   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15897   if test "$GCC" = yes; then
15898     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"`
15899   else
15900     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15901   fi
15902   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15903   ;;
15904
15905 dgux*)
15906   version_type=linux
15907   need_lib_prefix=no
15908   need_version=no
15909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15910   soname_spec='${libname}${release}${shared_ext}$major'
15911   shlibpath_var=LD_LIBRARY_PATH
15912   ;;
15913
15914 freebsd1*)
15915   dynamic_linker=no
15916   ;;
15917
15918 kfreebsd*-gnu)
15919   version_type=linux
15920   need_lib_prefix=no
15921   need_version=no
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15923   soname_spec='${libname}${release}${shared_ext}$major'
15924   shlibpath_var=LD_LIBRARY_PATH
15925   shlibpath_overrides_runpath=no
15926   hardcode_into_libs=yes
15927   dynamic_linker='GNU ld.so'
15928   ;;
15929
15930 freebsd* | dragonfly*)
15931   # DragonFly does not have aout.  When/if they implement a new
15932   # versioning mechanism, adjust this.
15933   if test -x /usr/bin/objformat; then
15934     objformat=`/usr/bin/objformat`
15935   else
15936     case $host_os in
15937     freebsd[123]*) objformat=aout ;;
15938     *) objformat=elf ;;
15939     esac
15940   fi
15941   version_type=freebsd-$objformat
15942   case $version_type in
15943     freebsd-elf*)
15944       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15945       need_version=no
15946       need_lib_prefix=no
15947       ;;
15948     freebsd-*)
15949       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15950       need_version=yes
15951       ;;
15952   esac
15953   shlibpath_var=LD_LIBRARY_PATH
15954   case $host_os in
15955   freebsd2*)
15956     shlibpath_overrides_runpath=yes
15957     ;;
15958   freebsd3.[01]* | freebsdelf3.[01]*)
15959     shlibpath_overrides_runpath=yes
15960     hardcode_into_libs=yes
15961     ;;
15962   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15963   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15964     shlibpath_overrides_runpath=no
15965     hardcode_into_libs=yes
15966     ;;
15967   freebsd*) # from 4.6 on
15968     shlibpath_overrides_runpath=yes
15969     hardcode_into_libs=yes
15970     ;;
15971   esac
15972   ;;
15973
15974 gnu*)
15975   version_type=linux
15976   need_lib_prefix=no
15977   need_version=no
15978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15979   soname_spec='${libname}${release}${shared_ext}$major'
15980   shlibpath_var=LD_LIBRARY_PATH
15981   hardcode_into_libs=yes
15982   ;;
15983
15984 hpux9* | hpux10* | hpux11*)
15985   # Give a soname corresponding to the major version so that dld.sl refuses to
15986   # link against other versions.
15987   version_type=sunos
15988   need_lib_prefix=no
15989   need_version=no
15990   case $host_cpu in
15991   ia64*)
15992     shrext_cmds='.so'
15993     hardcode_into_libs=yes
15994     dynamic_linker="$host_os dld.so"
15995     shlibpath_var=LD_LIBRARY_PATH
15996     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998     soname_spec='${libname}${release}${shared_ext}$major'
15999     if test "X$HPUX_IA64_MODE" = X32; then
16000       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16001     else
16002       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16003     fi
16004     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16005     ;;
16006    hppa*64*)
16007      shrext_cmds='.sl'
16008      hardcode_into_libs=yes
16009      dynamic_linker="$host_os dld.sl"
16010      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16011      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16012      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013      soname_spec='${libname}${release}${shared_ext}$major'
16014      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16015      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16016      ;;
16017    *)
16018     shrext_cmds='.sl'
16019     dynamic_linker="$host_os dld.sl"
16020     shlibpath_var=SHLIB_PATH
16021     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023     soname_spec='${libname}${release}${shared_ext}$major'
16024     ;;
16025   esac
16026   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16027   postinstall_cmds='chmod 555 $lib'
16028   ;;
16029
16030 interix3*)
16031   version_type=linux
16032   need_lib_prefix=no
16033   need_version=no
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035   soname_spec='${libname}${release}${shared_ext}$major'
16036   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16037   shlibpath_var=LD_LIBRARY_PATH
16038   shlibpath_overrides_runpath=no
16039   hardcode_into_libs=yes
16040   ;;
16041
16042 irix5* | irix6* | nonstopux*)
16043   case $host_os in
16044     nonstopux*) version_type=nonstopux ;;
16045     *)
16046         if test "$lt_cv_prog_gnu_ld" = yes; then
16047                 version_type=linux
16048         else
16049                 version_type=irix
16050         fi ;;
16051   esac
16052   need_lib_prefix=no
16053   need_version=no
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16056   case $host_os in
16057   irix5* | nonstopux*)
16058     libsuff= shlibsuff=
16059     ;;
16060   *)
16061     case $LD in # libtool.m4 will add one of these switches to LD
16062     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16063       libsuff= shlibsuff= libmagic=32-bit;;
16064     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16065       libsuff=32 shlibsuff=N32 libmagic=N32;;
16066     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16067       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16068     *) libsuff= shlibsuff= libmagic=never-match;;
16069     esac
16070     ;;
16071   esac
16072   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16073   shlibpath_overrides_runpath=no
16074   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16075   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16076   hardcode_into_libs=yes
16077   ;;
16078
16079 # No shared lib support for Linux oldld, aout, or coff.
16080 linux*oldld* | linux*aout* | linux*coff*)
16081   dynamic_linker=no
16082   ;;
16083
16084 # This must be Linux ELF.
16085 linux*)
16086   version_type=linux
16087   need_lib_prefix=no
16088   need_version=no
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   soname_spec='${libname}${release}${shared_ext}$major'
16091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16092   shlibpath_var=LD_LIBRARY_PATH
16093   shlibpath_overrides_runpath=no
16094   # This implies no fast_install, which is unacceptable.
16095   # Some rework will be needed to allow for fast_install
16096   # before this can be enabled.
16097   hardcode_into_libs=yes
16098
16099   # Append ld.so.conf contents to the search path
16100   if test -f /etc/ld.so.conf; then
16101     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' ' '`
16102     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16103   fi
16104
16105   # We used to test for /lib/ld.so.1 and disable shared libraries on
16106   # powerpc, because MkLinux only supported shared libraries with the
16107   # GNU dynamic linker.  Since this was broken with cross compilers,
16108   # most powerpc-linux boxes support dynamic linking these days and
16109   # people can always --disable-shared, the test was removed, and we
16110   # assume the GNU/Linux dynamic linker is in use.
16111   dynamic_linker='GNU/Linux ld.so'
16112   ;;
16113
16114 knetbsd*-gnu)
16115   version_type=linux
16116   need_lib_prefix=no
16117   need_version=no
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16119   soname_spec='${libname}${release}${shared_ext}$major'
16120   shlibpath_var=LD_LIBRARY_PATH
16121   shlibpath_overrides_runpath=no
16122   hardcode_into_libs=yes
16123   dynamic_linker='GNU ld.so'
16124   ;;
16125
16126 netbsd*)
16127   version_type=sunos
16128   need_lib_prefix=no
16129   need_version=no
16130   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16132     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16133     dynamic_linker='NetBSD (a.out) ld.so'
16134   else
16135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16136     soname_spec='${libname}${release}${shared_ext}$major'
16137     dynamic_linker='NetBSD ld.elf_so'
16138   fi
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=yes
16141   hardcode_into_libs=yes
16142   ;;
16143
16144 newsos6)
16145   version_type=linux
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147   shlibpath_var=LD_LIBRARY_PATH
16148   shlibpath_overrides_runpath=yes
16149   ;;
16150
16151 nto-qnx*)
16152   version_type=linux
16153   need_lib_prefix=no
16154   need_version=no
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156   soname_spec='${libname}${release}${shared_ext}$major'
16157   shlibpath_var=LD_LIBRARY_PATH
16158   shlibpath_overrides_runpath=yes
16159   ;;
16160
16161 openbsd*)
16162   version_type=sunos
16163   sys_lib_dlsearch_path_spec="/usr/lib"
16164   need_lib_prefix=no
16165   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16166   case $host_os in
16167     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16168     *)                         need_version=no  ;;
16169   esac
16170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16171   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16172   shlibpath_var=LD_LIBRARY_PATH
16173   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16174     case $host_os in
16175       openbsd2.[89] | openbsd2.[89].*)
16176         shlibpath_overrides_runpath=no
16177         ;;
16178       *)
16179         shlibpath_overrides_runpath=yes
16180         ;;
16181       esac
16182   else
16183     shlibpath_overrides_runpath=yes
16184   fi
16185   ;;
16186
16187 os2*)
16188   libname_spec='$name'
16189   shrext_cmds=".dll"
16190   need_lib_prefix=no
16191   library_names_spec='$libname${shared_ext} $libname.a'
16192   dynamic_linker='OS/2 ld.exe'
16193   shlibpath_var=LIBPATH
16194   ;;
16195
16196 osf3* | osf4* | osf5*)
16197   version_type=osf
16198   need_lib_prefix=no
16199   need_version=no
16200   soname_spec='${libname}${release}${shared_ext}$major'
16201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202   shlibpath_var=LD_LIBRARY_PATH
16203   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16204   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16205   ;;
16206
16207 solaris*)
16208   version_type=linux
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   shlibpath_overrides_runpath=yes
16215   hardcode_into_libs=yes
16216   # ldd complains unless libraries are executable
16217   postinstall_cmds='chmod +x $lib'
16218   ;;
16219
16220 sunos4*)
16221   version_type=sunos
16222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16223   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16224   shlibpath_var=LD_LIBRARY_PATH
16225   shlibpath_overrides_runpath=yes
16226   if test "$with_gnu_ld" = yes; then
16227     need_lib_prefix=no
16228   fi
16229   need_version=yes
16230   ;;
16231
16232 sysv4 | sysv4.3*)
16233   version_type=linux
16234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235   soname_spec='${libname}${release}${shared_ext}$major'
16236   shlibpath_var=LD_LIBRARY_PATH
16237   case $host_vendor in
16238     sni)
16239       shlibpath_overrides_runpath=no
16240       need_lib_prefix=no
16241       export_dynamic_flag_spec='${wl}-Blargedynsym'
16242       runpath_var=LD_RUN_PATH
16243       ;;
16244     siemens)
16245       need_lib_prefix=no
16246       ;;
16247     motorola)
16248       need_lib_prefix=no
16249       need_version=no
16250       shlibpath_overrides_runpath=no
16251       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16252       ;;
16253   esac
16254   ;;
16255
16256 sysv4*MP*)
16257   if test -d /usr/nec ;then
16258     version_type=linux
16259     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16260     soname_spec='$libname${shared_ext}.$major'
16261     shlibpath_var=LD_LIBRARY_PATH
16262   fi
16263   ;;
16264
16265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16266   version_type=freebsd-elf
16267   need_lib_prefix=no
16268   need_version=no
16269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   shlibpath_var=LD_LIBRARY_PATH
16272   hardcode_into_libs=yes
16273   if test "$with_gnu_ld" = yes; then
16274     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16275     shlibpath_overrides_runpath=no
16276   else
16277     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16278     shlibpath_overrides_runpath=yes
16279     case $host_os in
16280       sco3.2v5*)
16281         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16282         ;;
16283     esac
16284   fi
16285   sys_lib_dlsearch_path_spec='/usr/lib'
16286   ;;
16287
16288 uts4*)
16289   version_type=linux
16290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291   soname_spec='${libname}${release}${shared_ext}$major'
16292   shlibpath_var=LD_LIBRARY_PATH
16293   ;;
16294
16295 *)
16296   dynamic_linker=no
16297   ;;
16298 esac
16299 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16300 echo "${ECHO_T}$dynamic_linker" >&6; }
16301 test "$dynamic_linker" = no && can_build_shared=no
16302
16303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16304 if test "$GCC" = yes; then
16305   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16306 fi
16307
16308 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16310 hardcode_action=
16311 if test -n "$hardcode_libdir_flag_spec" || \
16312    test -n "$runpath_var" || \
16313    test "X$hardcode_automatic" = "Xyes" ; then
16314
16315   # We can hardcode non-existant directories.
16316   if test "$hardcode_direct" != no &&
16317      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16318      # have to relink, otherwise we might link with an installed library
16319      # when we should be linking with a yet-to-be-installed one
16320      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16321      test "$hardcode_minus_L" != no; then
16322     # Linking always hardcodes the temporary library directory.
16323     hardcode_action=relink
16324   else
16325     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16326     hardcode_action=immediate
16327   fi
16328 else
16329   # We cannot hardcode anything, or else we can only hardcode existing
16330   # directories.
16331   hardcode_action=unsupported
16332 fi
16333 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16334 echo "${ECHO_T}$hardcode_action" >&6; }
16335
16336 if test "$hardcode_action" = relink; then
16337   # Fast installation is not supported
16338   enable_fast_install=no
16339 elif test "$shlibpath_overrides_runpath" = yes ||
16340      test "$enable_shared" = no; then
16341   # Fast installation is not necessary
16342   enable_fast_install=needless
16343 fi
16344
16345 striplib=
16346 old_striplib=
16347 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16348 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16350   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16351   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16352   { echo "$as_me:$LINENO: result: yes" >&5
16353 echo "${ECHO_T}yes" >&6; }
16354 else
16355 # FIXME - insert some real tests, host_os isn't really good enough
16356   case $host_os in
16357    darwin*)
16358        if test -n "$STRIP" ; then
16359          striplib="$STRIP -x"
16360          { echo "$as_me:$LINENO: result: yes" >&5
16361 echo "${ECHO_T}yes" >&6; }
16362        else
16363   { echo "$as_me:$LINENO: result: no" >&5
16364 echo "${ECHO_T}no" >&6; }
16365 fi
16366        ;;
16367    *)
16368   { echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6; }
16370     ;;
16371   esac
16372 fi
16373
16374 if test "x$enable_dlopen" != xyes; then
16375   enable_dlopen=unknown
16376   enable_dlopen_self=unknown
16377   enable_dlopen_self_static=unknown
16378 else
16379   lt_cv_dlopen=no
16380   lt_cv_dlopen_libs=
16381
16382   case $host_os in
16383   beos*)
16384     lt_cv_dlopen="load_add_on"
16385     lt_cv_dlopen_libs=
16386     lt_cv_dlopen_self=yes
16387     ;;
16388
16389   mingw* | pw32*)
16390     lt_cv_dlopen="LoadLibrary"
16391     lt_cv_dlopen_libs=
16392    ;;
16393
16394   cygwin*)
16395     lt_cv_dlopen="dlopen"
16396     lt_cv_dlopen_libs=
16397    ;;
16398
16399   darwin*)
16400   # if libdl is installed we need to link against it
16401     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16402 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16403 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406   ac_check_lib_save_LIBS=$LIBS
16407 LIBS="-ldl  $LIBS"
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h.  */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h.  */
16414
16415 /* Override any GCC internal prototype to avoid an error.
16416    Use char because int might match the return type of a GCC
16417    builtin and then its argument prototype would still apply.  */
16418 #ifdef __cplusplus
16419 extern "C"
16420 #endif
16421 char dlopen ();
16422 int
16423 main ()
16424 {
16425 return dlopen ();
16426   ;
16427   return 0;
16428 }
16429 _ACEOF
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (ac_try="$ac_link"
16432 case "(($ac_try" in
16433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434   *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437   (eval "$ac_link") 2>conftest.er1
16438   ac_status=$?
16439   grep -v '^ *+' conftest.er1 >conftest.err
16440   rm -f conftest.er1
16441   cat conftest.err >&5
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); } &&
16444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16445   { (case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_try") 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; } &&
16454          { ac_try='test -s conftest$ac_exeext'
16455   { (case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_try") 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; }; then
16464   ac_cv_lib_dl_dlopen=yes
16465 else
16466   echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469         ac_cv_lib_dl_dlopen=no
16470 fi
16471
16472 rm -f core conftest.err conftest.$ac_objext \
16473       conftest$ac_exeext conftest.$ac_ext
16474 LIBS=$ac_check_lib_save_LIBS
16475 fi
16476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16477 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16478 if test $ac_cv_lib_dl_dlopen = yes; then
16479   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16480 else
16481
16482     lt_cv_dlopen="dyld"
16483     lt_cv_dlopen_libs=
16484     lt_cv_dlopen_self=yes
16485
16486 fi
16487
16488    ;;
16489
16490   *)
16491     { echo "$as_me:$LINENO: checking for shl_load" >&5
16492 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16493 if test "${ac_cv_func_shl_load+set}" = set; then
16494   echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496   cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16504 #define shl_load innocuous_shl_load
16505
16506 /* System header to define __stub macros and hopefully few prototypes,
16507     which can conflict with char shl_load (); below.
16508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509     <limits.h> exists even on freestanding compilers.  */
16510
16511 #ifdef __STDC__
16512 # include <limits.h>
16513 #else
16514 # include <assert.h>
16515 #endif
16516
16517 #undef shl_load
16518
16519 /* Override any GCC internal prototype to avoid an error.
16520    Use char because int might match the return type of a GCC
16521    builtin and then its argument prototype would still apply.  */
16522 #ifdef __cplusplus
16523 extern "C"
16524 #endif
16525 char shl_load ();
16526 /* The GNU C library defines this for functions which it implements
16527     to always fail with ENOSYS.  Some functions are actually named
16528     something starting with __ and the normal name is an alias.  */
16529 #if defined __stub_shl_load || defined __stub___shl_load
16530 choke me
16531 #endif
16532
16533 int
16534 main ()
16535 {
16536 return shl_load ();
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext conftest$ac_exeext
16542 if { (ac_try="$ac_link"
16543 case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548   (eval "$ac_link") 2>conftest.er1
16549   ac_status=$?
16550   grep -v '^ *+' conftest.er1 >conftest.err
16551   rm -f conftest.er1
16552   cat conftest.err >&5
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } &&
16555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16556   { (case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_try") 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; } &&
16565          { ac_try='test -s conftest$ac_exeext'
16566   { (case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_try") 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); }; }; then
16575   ac_cv_func_shl_load=yes
16576 else
16577   echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580         ac_cv_func_shl_load=no
16581 fi
16582
16583 rm -f core conftest.err conftest.$ac_objext \
16584       conftest$ac_exeext conftest.$ac_ext
16585 fi
16586 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16587 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16588 if test $ac_cv_func_shl_load = yes; then
16589   lt_cv_dlopen="shl_load"
16590 else
16591   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16592 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16593 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   ac_check_lib_save_LIBS=$LIBS
16597 LIBS="-ldld  $LIBS"
16598 cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604
16605 /* Override any GCC internal prototype to avoid an error.
16606    Use char because int might match the return type of a GCC
16607    builtin and then its argument prototype would still apply.  */
16608 #ifdef __cplusplus
16609 extern "C"
16610 #endif
16611 char shl_load ();
16612 int
16613 main ()
16614 {
16615 return shl_load ();
16616   ;
16617   return 0;
16618 }
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_link") 2>conftest.er1
16628   ac_status=$?
16629   grep -v '^ *+' conftest.er1 >conftest.err
16630   rm -f conftest.er1
16631   cat conftest.err >&5
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); } &&
16634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635   { (case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_try") 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; } &&
16644          { ac_try='test -s conftest$ac_exeext'
16645   { (case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_try") 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; }; then
16654   ac_cv_lib_dld_shl_load=yes
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659         ac_cv_lib_dld_shl_load=no
16660 fi
16661
16662 rm -f core conftest.err conftest.$ac_objext \
16663       conftest$ac_exeext conftest.$ac_ext
16664 LIBS=$ac_check_lib_save_LIBS
16665 fi
16666 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16668 if test $ac_cv_lib_dld_shl_load = yes; then
16669   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16670 else
16671   { echo "$as_me:$LINENO: checking for dlopen" >&5
16672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16673 if test "${ac_cv_func_dlopen+set}" = set; then
16674   echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16676   cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h.  */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h.  */
16682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16684 #define dlopen innocuous_dlopen
16685
16686 /* System header to define __stub macros and hopefully few prototypes,
16687     which can conflict with char dlopen (); below.
16688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16689     <limits.h> exists even on freestanding compilers.  */
16690
16691 #ifdef __STDC__
16692 # include <limits.h>
16693 #else
16694 # include <assert.h>
16695 #endif
16696
16697 #undef dlopen
16698
16699 /* Override any GCC internal prototype to avoid an error.
16700    Use char because int might match the return type of a GCC
16701    builtin and then its argument prototype would still apply.  */
16702 #ifdef __cplusplus
16703 extern "C"
16704 #endif
16705 char dlopen ();
16706 /* The GNU C library defines this for functions which it implements
16707     to always fail with ENOSYS.  Some functions are actually named
16708     something starting with __ and the normal name is an alias.  */
16709 #if defined __stub_dlopen || defined __stub___dlopen
16710 choke me
16711 #endif
16712
16713 int
16714 main ()
16715 {
16716 return dlopen ();
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725   *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728   (eval "$ac_link") 2>conftest.er1
16729   ac_status=$?
16730   grep -v '^ *+' conftest.er1 >conftest.err
16731   rm -f conftest.er1
16732   cat conftest.err >&5
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } &&
16735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736   { (case "(($ac_try" in
16737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738   *) ac_try_echo=$ac_try;;
16739 esac
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741   (eval "$ac_try") 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; } &&
16745          { ac_try='test -s conftest$ac_exeext'
16746   { (case "(($ac_try" in
16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748   *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751   (eval "$ac_try") 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; }; then
16755   ac_cv_func_dlopen=yes
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760         ac_cv_func_dlopen=no
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext \
16764       conftest$ac_exeext conftest.$ac_ext
16765 fi
16766 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16767 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16768 if test $ac_cv_func_dlopen = yes; then
16769   lt_cv_dlopen="dlopen"
16770 else
16771   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16772 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16774   echo $ECHO_N "(cached) $ECHO_C" >&6
16775 else
16776   ac_check_lib_save_LIBS=$LIBS
16777 LIBS="-ldl  $LIBS"
16778 cat >conftest.$ac_ext <<_ACEOF
16779 /* confdefs.h.  */
16780 _ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h.  */
16784
16785 /* Override any GCC internal prototype to avoid an error.
16786    Use char because int might match the return type of a GCC
16787    builtin and then its argument prototype would still apply.  */
16788 #ifdef __cplusplus
16789 extern "C"
16790 #endif
16791 char dlopen ();
16792 int
16793 main ()
16794 {
16795 return dlopen ();
16796   ;
16797   return 0;
16798 }
16799 _ACEOF
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_link") 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } &&
16814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815   { (case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820   (eval "$ac_try") 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; } &&
16824          { ac_try='test -s conftest$ac_exeext'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; }; then
16834   ac_cv_lib_dl_dlopen=yes
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839         ac_cv_lib_dl_dlopen=no
16840 fi
16841
16842 rm -f core conftest.err conftest.$ac_objext \
16843       conftest$ac_exeext conftest.$ac_ext
16844 LIBS=$ac_check_lib_save_LIBS
16845 fi
16846 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16847 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16848 if test $ac_cv_lib_dl_dlopen = yes; then
16849   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16850 else
16851   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16852 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16853 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856   ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-lsvld  $LIBS"
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h.  */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h.  */
16864
16865 /* Override any GCC internal prototype to avoid an error.
16866    Use char because int might match the return type of a GCC
16867    builtin and then its argument prototype would still apply.  */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char dlopen ();
16872 int
16873 main ()
16874 {
16875 return dlopen ();
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_link") 2>conftest.er1
16888   ac_status=$?
16889   grep -v '^ *+' conftest.er1 >conftest.err
16890   rm -f conftest.er1
16891   cat conftest.err >&5
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } &&
16894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895   { (case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_try") 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; } &&
16904          { ac_try='test -s conftest$ac_exeext'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; }; then
16914   ac_cv_lib_svld_dlopen=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919         ac_cv_lib_svld_dlopen=no
16920 fi
16921
16922 rm -f core conftest.err conftest.$ac_objext \
16923       conftest$ac_exeext conftest.$ac_ext
16924 LIBS=$ac_check_lib_save_LIBS
16925 fi
16926 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16927 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16928 if test $ac_cv_lib_svld_dlopen = yes; then
16929   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16930 else
16931   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16932 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16933 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936   ac_check_lib_save_LIBS=$LIBS
16937 LIBS="-ldld  $LIBS"
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944
16945 /* Override any GCC internal prototype to avoid an error.
16946    Use char because int might match the return type of a GCC
16947    builtin and then its argument prototype would still apply.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char dld_link ();
16952 int
16953 main ()
16954 {
16955 return dld_link ();
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964   *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967   (eval "$ac_link") 2>conftest.er1
16968   ac_status=$?
16969   grep -v '^ *+' conftest.er1 >conftest.err
16970   rm -f conftest.er1
16971   cat conftest.err >&5
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); } &&
16974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975   { (case "(($ac_try" in
16976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977   *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980   (eval "$ac_try") 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; } &&
16984          { ac_try='test -s conftest$ac_exeext'
16985   { (case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_try") 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; }; then
16994   ac_cv_lib_dld_dld_link=yes
16995 else
16996   echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999         ac_cv_lib_dld_dld_link=no
17000 fi
17001
17002 rm -f core conftest.err conftest.$ac_objext \
17003       conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17005 fi
17006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17007 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17008 if test $ac_cv_lib_dld_dld_link = yes; then
17009   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17010 fi
17011
17012
17013 fi
17014
17015
17016 fi
17017
17018
17019 fi
17020
17021
17022 fi
17023
17024
17025 fi
17026
17027     ;;
17028   esac
17029
17030   if test "x$lt_cv_dlopen" != xno; then
17031     enable_dlopen=yes
17032   else
17033     enable_dlopen=no
17034   fi
17035
17036   case $lt_cv_dlopen in
17037   dlopen)
17038     save_CPPFLAGS="$CPPFLAGS"
17039     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17040
17041     save_LDFLAGS="$LDFLAGS"
17042     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17043
17044     save_LIBS="$LIBS"
17045     LIBS="$lt_cv_dlopen_libs $LIBS"
17046
17047     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17048 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17049 if test "${lt_cv_dlopen_self+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052           if test "$cross_compiling" = yes; then :
17053   lt_cv_dlopen_self=cross
17054 else
17055   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17056   lt_status=$lt_dlunknown
17057   cat > conftest.$ac_ext <<EOF
17058 #line 17058 "configure"
17059 #include "confdefs.h"
17060
17061 #if HAVE_DLFCN_H
17062 #include <dlfcn.h>
17063 #endif
17064
17065 #include <stdio.h>
17066
17067 #ifdef RTLD_GLOBAL
17068 #  define LT_DLGLOBAL           RTLD_GLOBAL
17069 #else
17070 #  ifdef DL_GLOBAL
17071 #    define LT_DLGLOBAL         DL_GLOBAL
17072 #  else
17073 #    define LT_DLGLOBAL         0
17074 #  endif
17075 #endif
17076
17077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17078    find out it does not work in some platform. */
17079 #ifndef LT_DLLAZY_OR_NOW
17080 #  ifdef RTLD_LAZY
17081 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17082 #  else
17083 #    ifdef DL_LAZY
17084 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17085 #    else
17086 #      ifdef RTLD_NOW
17087 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17088 #      else
17089 #        ifdef DL_NOW
17090 #          define LT_DLLAZY_OR_NOW      DL_NOW
17091 #        else
17092 #          define LT_DLLAZY_OR_NOW      0
17093 #        endif
17094 #      endif
17095 #    endif
17096 #  endif
17097 #endif
17098
17099 #ifdef __cplusplus
17100 extern "C" void exit (int);
17101 #endif
17102
17103 void fnord() { int i=42;}
17104 int main ()
17105 {
17106   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17107   int status = $lt_dlunknown;
17108
17109   if (self)
17110     {
17111       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17112       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17113       /* dlclose (self); */
17114     }
17115   else
17116     puts (dlerror ());
17117
17118     exit (status);
17119 }
17120 EOF
17121   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122   (eval $ac_link) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17126     (./conftest; exit; ) >&5 2>/dev/null
17127     lt_status=$?
17128     case x$lt_status in
17129       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17130       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17131       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17132     esac
17133   else :
17134     # compilation failed
17135     lt_cv_dlopen_self=no
17136   fi
17137 fi
17138 rm -fr conftest*
17139
17140
17141 fi
17142 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17143 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17144
17145     if test "x$lt_cv_dlopen_self" = xyes; then
17146       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17147       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17148 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17149 if test "${lt_cv_dlopen_self_static+set}" = set; then
17150   echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152           if test "$cross_compiling" = yes; then :
17153   lt_cv_dlopen_self_static=cross
17154 else
17155   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17156   lt_status=$lt_dlunknown
17157   cat > conftest.$ac_ext <<EOF
17158 #line 17158 "configure"
17159 #include "confdefs.h"
17160
17161 #if HAVE_DLFCN_H
17162 #include <dlfcn.h>
17163 #endif
17164
17165 #include <stdio.h>
17166
17167 #ifdef RTLD_GLOBAL
17168 #  define LT_DLGLOBAL           RTLD_GLOBAL
17169 #else
17170 #  ifdef DL_GLOBAL
17171 #    define LT_DLGLOBAL         DL_GLOBAL
17172 #  else
17173 #    define LT_DLGLOBAL         0
17174 #  endif
17175 #endif
17176
17177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17178    find out it does not work in some platform. */
17179 #ifndef LT_DLLAZY_OR_NOW
17180 #  ifdef RTLD_LAZY
17181 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17182 #  else
17183 #    ifdef DL_LAZY
17184 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17185 #    else
17186 #      ifdef RTLD_NOW
17187 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17188 #      else
17189 #        ifdef DL_NOW
17190 #          define LT_DLLAZY_OR_NOW      DL_NOW
17191 #        else
17192 #          define LT_DLLAZY_OR_NOW      0
17193 #        endif
17194 #      endif
17195 #    endif
17196 #  endif
17197 #endif
17198
17199 #ifdef __cplusplus
17200 extern "C" void exit (int);
17201 #endif
17202
17203 void fnord() { int i=42;}
17204 int main ()
17205 {
17206   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17207   int status = $lt_dlunknown;
17208
17209   if (self)
17210     {
17211       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17212       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17213       /* dlclose (self); */
17214     }
17215   else
17216     puts (dlerror ());
17217
17218     exit (status);
17219 }
17220 EOF
17221   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17226     (./conftest; exit; ) >&5 2>/dev/null
17227     lt_status=$?
17228     case x$lt_status in
17229       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17230       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17231       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17232     esac
17233   else :
17234     # compilation failed
17235     lt_cv_dlopen_self_static=no
17236   fi
17237 fi
17238 rm -fr conftest*
17239
17240
17241 fi
17242 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17243 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17244     fi
17245
17246     CPPFLAGS="$save_CPPFLAGS"
17247     LDFLAGS="$save_LDFLAGS"
17248     LIBS="$save_LIBS"
17249     ;;
17250   esac
17251
17252   case $lt_cv_dlopen_self in
17253   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17254   *) enable_dlopen_self=unknown ;;
17255   esac
17256
17257   case $lt_cv_dlopen_self_static in
17258   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17259   *) enable_dlopen_self_static=unknown ;;
17260   esac
17261 fi
17262
17263
17264 # Report which library types will actually be built
17265 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17266 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17267 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17268 echo "${ECHO_T}$can_build_shared" >&6; }
17269
17270 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17271 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17272 test "$can_build_shared" = "no" && enable_shared=no
17273
17274 # On AIX, shared libraries and static libraries use the same namespace, and
17275 # are all built from PIC.
17276 case $host_os in
17277 aix3*)
17278   test "$enable_shared" = yes && enable_static=no
17279   if test -n "$RANLIB"; then
17280     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17281     postinstall_cmds='$RANLIB $lib'
17282   fi
17283   ;;
17284
17285 aix4* | aix5*)
17286   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17287     test "$enable_shared" = yes && enable_static=no
17288   fi
17289     ;;
17290 esac
17291 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17292 echo "${ECHO_T}$enable_shared" >&6; }
17293
17294 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17295 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17296 # Make sure either enable_shared or enable_static is yes.
17297 test "$enable_shared" = yes || enable_static=yes
17298 { echo "$as_me:$LINENO: result: $enable_static" >&5
17299 echo "${ECHO_T}$enable_static" >&6; }
17300
17301 # The else clause should only fire when bootstrapping the
17302 # libtool distribution, otherwise you forgot to ship ltmain.sh
17303 # with your package, and you will get complaints that there are
17304 # no rules to generate ltmain.sh.
17305 if test -f "$ltmain"; then
17306   # See if we are running on zsh, and set the options which allow our commands through
17307   # without removal of \ escapes.
17308   if test -n "${ZSH_VERSION+set}" ; then
17309     setopt NO_GLOB_SUBST
17310   fi
17311   # Now quote all the things that may contain metacharacters while being
17312   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17313   # variables and quote the copies for generation of the libtool script.
17314   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17315     SED SHELL STRIP \
17316     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17317     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17318     deplibs_check_method reload_flag reload_cmds need_locks \
17319     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17320     lt_cv_sys_global_symbol_to_c_name_address \
17321     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17322     old_postinstall_cmds old_postuninstall_cmds \
17323     compiler \
17324     CC \
17325     LD \
17326     lt_prog_compiler_wl \
17327     lt_prog_compiler_pic \
17328     lt_prog_compiler_static \
17329     lt_prog_compiler_no_builtin_flag \
17330     export_dynamic_flag_spec \
17331     thread_safe_flag_spec \
17332     whole_archive_flag_spec \
17333     enable_shared_with_static_runtimes \
17334     old_archive_cmds \
17335     old_archive_from_new_cmds \
17336     predep_objects \
17337     postdep_objects \
17338     predeps \
17339     postdeps \
17340     compiler_lib_search_path \
17341     archive_cmds \
17342     archive_expsym_cmds \
17343     postinstall_cmds \
17344     postuninstall_cmds \
17345     old_archive_from_expsyms_cmds \
17346     allow_undefined_flag \
17347     no_undefined_flag \
17348     export_symbols_cmds \
17349     hardcode_libdir_flag_spec \
17350     hardcode_libdir_flag_spec_ld \
17351     hardcode_libdir_separator \
17352     hardcode_automatic \
17353     module_cmds \
17354     module_expsym_cmds \
17355     lt_cv_prog_compiler_c_o \
17356     exclude_expsyms \
17357     include_expsyms; do
17358
17359     case $var in
17360     old_archive_cmds | \
17361     old_archive_from_new_cmds | \
17362     archive_cmds | \
17363     archive_expsym_cmds | \
17364     module_cmds | \
17365     module_expsym_cmds | \
17366     old_archive_from_expsyms_cmds | \
17367     export_symbols_cmds | \
17368     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17369     postinstall_cmds | postuninstall_cmds | \
17370     old_postinstall_cmds | old_postuninstall_cmds | \
17371     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17372       # Double-quote double-evaled strings.
17373       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17374       ;;
17375     *)
17376       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17377       ;;
17378     esac
17379   done
17380
17381   case $lt_echo in
17382   *'\$0 --fallback-echo"')
17383     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17384     ;;
17385   esac
17386
17387 cfgfile="${ofile}T"
17388   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17389   $rm -f "$cfgfile"
17390   { echo "$as_me:$LINENO: creating $ofile" >&5
17391 echo "$as_me: creating $ofile" >&6;}
17392
17393   cat <<__EOF__ >> "$cfgfile"
17394 #! $SHELL
17395
17396 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17397 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17398 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17399 #
17400 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17401 # Free Software Foundation, Inc.
17402 #
17403 # This file is part of GNU Libtool:
17404 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17405 #
17406 # This program is free software; you can redistribute it and/or modify
17407 # it under the terms of the GNU General Public License as published by
17408 # the Free Software Foundation; either version 2 of the License, or
17409 # (at your option) any later version.
17410 #
17411 # This program is distributed in the hope that it will be useful, but
17412 # WITHOUT ANY WARRANTY; without even the implied warranty of
17413 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17414 # General Public License for more details.
17415 #
17416 # You should have received a copy of the GNU General Public License
17417 # along with this program; if not, write to the Free Software
17418 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17419 #
17420 # As a special exception to the GNU General Public License, if you
17421 # distribute this file as part of a program that contains a
17422 # configuration script generated by Autoconf, you may include it under
17423 # the same distribution terms that you use for the rest of that program.
17424
17425 # A sed program that does not truncate output.
17426 SED=$lt_SED
17427
17428 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17429 Xsed="$SED -e 1s/^X//"
17430
17431 # The HP-UX ksh and POSIX shell print the target directory to stdout
17432 # if CDPATH is set.
17433 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17434
17435 # The names of the tagged configurations supported by this script.
17436 available_tags=
17437
17438 # ### BEGIN LIBTOOL CONFIG
17439
17440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17441
17442 # Shell to use when invoking shell scripts.
17443 SHELL=$lt_SHELL
17444
17445 # Whether or not to build shared libraries.
17446 build_libtool_libs=$enable_shared
17447
17448 # Whether or not to build static libraries.
17449 build_old_libs=$enable_static
17450
17451 # Whether or not to add -lc for building shared libraries.
17452 build_libtool_need_lc=$archive_cmds_need_lc
17453
17454 # Whether or not to disallow shared libs when runtime libs are static
17455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17456
17457 # Whether or not to optimize for fast installation.
17458 fast_install=$enable_fast_install
17459
17460 # The host system.
17461 host_alias=$host_alias
17462 host=$host
17463 host_os=$host_os
17464
17465 # The build system.
17466 build_alias=$build_alias
17467 build=$build
17468 build_os=$build_os
17469
17470 # An echo program that does not interpret backslashes.
17471 echo=$lt_echo
17472
17473 # The archiver.
17474 AR=$lt_AR
17475 AR_FLAGS=$lt_AR_FLAGS
17476
17477 # A C compiler.
17478 LTCC=$lt_LTCC
17479
17480 # LTCC compiler flags.
17481 LTCFLAGS=$lt_LTCFLAGS
17482
17483 # A language-specific compiler.
17484 CC=$lt_compiler
17485
17486 # Is the compiler the GNU C compiler?
17487 with_gcc=$GCC
17488
17489 # An ERE matcher.
17490 EGREP=$lt_EGREP
17491
17492 # The linker used to build libraries.
17493 LD=$lt_LD
17494
17495 # Whether we need hard or soft links.
17496 LN_S=$lt_LN_S
17497
17498 # A BSD-compatible nm program.
17499 NM=$lt_NM
17500
17501 # A symbol stripping program
17502 STRIP=$lt_STRIP
17503
17504 # Used to examine libraries when file_magic_cmd begins "file"
17505 MAGIC_CMD=$MAGIC_CMD
17506
17507 # Used on cygwin: DLL creation program.
17508 DLLTOOL="$DLLTOOL"
17509
17510 # Used on cygwin: object dumper.
17511 OBJDUMP="$OBJDUMP"
17512
17513 # Used on cygwin: assembler.
17514 AS="$AS"
17515
17516 # The name of the directory that contains temporary libtool files.
17517 objdir=$objdir
17518
17519 # How to create reloadable object files.
17520 reload_flag=$lt_reload_flag
17521 reload_cmds=$lt_reload_cmds
17522
17523 # How to pass a linker flag through the compiler.
17524 wl=$lt_lt_prog_compiler_wl
17525
17526 # Object file suffix (normally "o").
17527 objext="$ac_objext"
17528
17529 # Old archive suffix (normally "a").
17530 libext="$libext"
17531
17532 # Shared library suffix (normally ".so").
17533 shrext_cmds='$shrext_cmds'
17534
17535 # Executable file suffix (normally "").
17536 exeext="$exeext"
17537
17538 # Additional compiler flags for building library objects.
17539 pic_flag=$lt_lt_prog_compiler_pic
17540 pic_mode=$pic_mode
17541
17542 # What is the maximum length of a command?
17543 max_cmd_len=$lt_cv_sys_max_cmd_len
17544
17545 # Does compiler simultaneously support -c and -o options?
17546 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17547
17548 # Must we lock files when doing compilation?
17549 need_locks=$lt_need_locks
17550
17551 # Do we need the lib prefix for modules?
17552 need_lib_prefix=$need_lib_prefix
17553
17554 # Do we need a version for libraries?
17555 need_version=$need_version
17556
17557 # Whether dlopen is supported.
17558 dlopen_support=$enable_dlopen
17559
17560 # Whether dlopen of programs is supported.
17561 dlopen_self=$enable_dlopen_self
17562
17563 # Whether dlopen of statically linked programs is supported.
17564 dlopen_self_static=$enable_dlopen_self_static
17565
17566 # Compiler flag to prevent dynamic linking.
17567 link_static_flag=$lt_lt_prog_compiler_static
17568
17569 # Compiler flag to turn off builtin functions.
17570 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17571
17572 # Compiler flag to allow reflexive dlopens.
17573 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17574
17575 # Compiler flag to generate shared objects directly from archives.
17576 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17577
17578 # Compiler flag to generate thread-safe objects.
17579 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17580
17581 # Library versioning type.
17582 version_type=$version_type
17583
17584 # Format of library name prefix.
17585 libname_spec=$lt_libname_spec
17586
17587 # List of archive names.  First name is the real one, the rest are links.
17588 # The last name is the one that the linker finds with -lNAME.
17589 library_names_spec=$lt_library_names_spec
17590
17591 # The coded name of the library, if different from the real name.
17592 soname_spec=$lt_soname_spec
17593
17594 # Commands used to build and install an old-style archive.
17595 RANLIB=$lt_RANLIB
17596 old_archive_cmds=$lt_old_archive_cmds
17597 old_postinstall_cmds=$lt_old_postinstall_cmds
17598 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17599
17600 # Create an old-style archive from a shared archive.
17601 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17602
17603 # Create a temporary old-style archive to link instead of a shared archive.
17604 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17605
17606 # Commands used to build and install a shared archive.
17607 archive_cmds=$lt_archive_cmds
17608 archive_expsym_cmds=$lt_archive_expsym_cmds
17609 postinstall_cmds=$lt_postinstall_cmds
17610 postuninstall_cmds=$lt_postuninstall_cmds
17611
17612 # Commands used to build a loadable module (assumed same as above if empty)
17613 module_cmds=$lt_module_cmds
17614 module_expsym_cmds=$lt_module_expsym_cmds
17615
17616 # Commands to strip libraries.
17617 old_striplib=$lt_old_striplib
17618 striplib=$lt_striplib
17619
17620 # Dependencies to place before the objects being linked to create a
17621 # shared library.
17622 predep_objects=$lt_predep_objects
17623
17624 # Dependencies to place after the objects being linked to create a
17625 # shared library.
17626 postdep_objects=$lt_postdep_objects
17627
17628 # Dependencies to place before the objects being linked to create a
17629 # shared library.
17630 predeps=$lt_predeps
17631
17632 # Dependencies to place after the objects being linked to create a
17633 # shared library.
17634 postdeps=$lt_postdeps
17635
17636 # The library search path used internally by the compiler when linking
17637 # a shared library.
17638 compiler_lib_search_path=$lt_compiler_lib_search_path
17639
17640 # Method to check whether dependent libraries are shared objects.
17641 deplibs_check_method=$lt_deplibs_check_method
17642
17643 # Command to use when deplibs_check_method == file_magic.
17644 file_magic_cmd=$lt_file_magic_cmd
17645
17646 # Flag that allows shared libraries with undefined symbols to be built.
17647 allow_undefined_flag=$lt_allow_undefined_flag
17648
17649 # Flag that forces no undefined symbols.
17650 no_undefined_flag=$lt_no_undefined_flag
17651
17652 # Commands used to finish a libtool library installation in a directory.
17653 finish_cmds=$lt_finish_cmds
17654
17655 # Same as above, but a single script fragment to be evaled but not shown.
17656 finish_eval=$lt_finish_eval
17657
17658 # Take the output of nm and produce a listing of raw symbols and C names.
17659 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17660
17661 # Transform the output of nm in a proper C declaration
17662 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17663
17664 # Transform the output of nm in a C name address pair
17665 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17666
17667 # This is the shared library runtime path variable.
17668 runpath_var=$runpath_var
17669
17670 # This is the shared library path variable.
17671 shlibpath_var=$shlibpath_var
17672
17673 # Is shlibpath searched before the hard-coded library search path?
17674 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17675
17676 # How to hardcode a shared library path into an executable.
17677 hardcode_action=$hardcode_action
17678
17679 # Whether we should hardcode library paths into libraries.
17680 hardcode_into_libs=$hardcode_into_libs
17681
17682 # Flag to hardcode \$libdir into a binary during linking.
17683 # This must work even if \$libdir does not exist.
17684 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17685
17686 # If ld is used when linking, flag to hardcode \$libdir into
17687 # a binary during linking. This must work even if \$libdir does
17688 # not exist.
17689 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17690
17691 # Whether we need a single -rpath flag with a separated argument.
17692 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17693
17694 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17695 # resulting binary.
17696 hardcode_direct=$hardcode_direct
17697
17698 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17699 # resulting binary.
17700 hardcode_minus_L=$hardcode_minus_L
17701
17702 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17703 # the resulting binary.
17704 hardcode_shlibpath_var=$hardcode_shlibpath_var
17705
17706 # Set to yes if building a shared library automatically hardcodes DIR into the library
17707 # and all subsequent libraries and executables linked against it.
17708 hardcode_automatic=$hardcode_automatic
17709
17710 # Variables whose values should be saved in libtool wrapper scripts and
17711 # restored at relink time.
17712 variables_saved_for_relink="$variables_saved_for_relink"
17713
17714 # Whether libtool must link a program against all its dependency libraries.
17715 link_all_deplibs=$link_all_deplibs
17716
17717 # Compile-time system search path for libraries
17718 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17719
17720 # Run-time system search path for libraries
17721 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17722
17723 # Fix the shell variable \$srcfile for the compiler.
17724 fix_srcfile_path="$fix_srcfile_path"
17725
17726 # Set to yes if exported symbols are required.
17727 always_export_symbols=$always_export_symbols
17728
17729 # The commands to list exported symbols.
17730 export_symbols_cmds=$lt_export_symbols_cmds
17731
17732 # The commands to extract the exported symbol list from a shared archive.
17733 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17734
17735 # Symbols that should not be listed in the preloaded symbols.
17736 exclude_expsyms=$lt_exclude_expsyms
17737
17738 # Symbols that must always be exported.
17739 include_expsyms=$lt_include_expsyms
17740
17741 # ### END LIBTOOL CONFIG
17742
17743 __EOF__
17744
17745
17746   case $host_os in
17747   aix3*)
17748     cat <<\EOF >> "$cfgfile"
17749
17750 # AIX sometimes has problems with the GCC collect2 program.  For some
17751 # reason, if we set the COLLECT_NAMES environment variable, the problems
17752 # vanish in a puff of smoke.
17753 if test "X${COLLECT_NAMES+set}" != Xset; then
17754   COLLECT_NAMES=
17755   export COLLECT_NAMES
17756 fi
17757 EOF
17758     ;;
17759   esac
17760
17761   # We use sed instead of cat because bash on DJGPP gets confused if
17762   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17763   # text mode, it properly converts lines to CR/LF.  This bash problem
17764   # is reportedly fixed, but why not run on old versions too?
17765   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17766
17767   mv -f "$cfgfile" "$ofile" || \
17768     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17769   chmod +x "$ofile"
17770
17771 else
17772   # If there is no Makefile yet, we rely on a make rule to execute
17773   # `config.status --recheck' to rerun these tests and create the
17774   # libtool script then.
17775   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17776   if test -f "$ltmain_in"; then
17777     test -f Makefile && make "$ltmain"
17778   fi
17779 fi
17780
17781
17782 ac_ext=c
17783 ac_cpp='$CPP $CPPFLAGS'
17784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17787
17788 CC="$lt_save_CC"
17789
17790
17791 # Check whether --with-tags was given.
17792 if test "${with_tags+set}" = set; then
17793   withval=$with_tags; tagnames="$withval"
17794 fi
17795
17796
17797 if test -f "$ltmain" && test -n "$tagnames"; then
17798   if test ! -f "${ofile}"; then
17799     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17800 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17801   fi
17802
17803   if test -z "$LTCC"; then
17804     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17805     if test -z "$LTCC"; then
17806       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17807 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17808     else
17809       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17810 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17811     fi
17812   fi
17813   if test -z "$LTCFLAGS"; then
17814     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17815   fi
17816
17817   # Extract list of available tagged configurations in $ofile.
17818   # Note that this assumes the entire list is on one line.
17819   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17820
17821   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17822   for tagname in $tagnames; do
17823     IFS="$lt_save_ifs"
17824     # Check whether tagname contains only valid characters
17825     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17826     "") ;;
17827     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17828 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17829    { (exit 1); exit 1; }; }
17830         ;;
17831     esac
17832
17833     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17834     then
17835       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17836 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17837    { (exit 1); exit 1; }; }
17838     fi
17839
17840     # Update the list of available tags.
17841     if test -n "$tagname"; then
17842       echo appending configuration tag \"$tagname\" to $ofile
17843
17844       case $tagname in
17845       CXX)
17846         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17847             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17848             (test "X$CXX" != "Xg++"))) ; then
17849           ac_ext=cpp
17850 ac_cpp='$CXXCPP $CPPFLAGS'
17851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17854
17855
17856
17857
17858 archive_cmds_need_lc_CXX=no
17859 allow_undefined_flag_CXX=
17860 always_export_symbols_CXX=no
17861 archive_expsym_cmds_CXX=
17862 export_dynamic_flag_spec_CXX=
17863 hardcode_direct_CXX=no
17864 hardcode_libdir_flag_spec_CXX=
17865 hardcode_libdir_flag_spec_ld_CXX=
17866 hardcode_libdir_separator_CXX=
17867 hardcode_minus_L_CXX=no
17868 hardcode_shlibpath_var_CXX=unsupported
17869 hardcode_automatic_CXX=no
17870 module_cmds_CXX=
17871 module_expsym_cmds_CXX=
17872 link_all_deplibs_CXX=unknown
17873 old_archive_cmds_CXX=$old_archive_cmds
17874 no_undefined_flag_CXX=
17875 whole_archive_flag_spec_CXX=
17876 enable_shared_with_static_runtimes_CXX=no
17877
17878 # Dependencies to place before and after the object being linked:
17879 predep_objects_CXX=
17880 postdep_objects_CXX=
17881 predeps_CXX=
17882 postdeps_CXX=
17883 compiler_lib_search_path_CXX=
17884
17885 # Source file extension for C++ test sources.
17886 ac_ext=cpp
17887
17888 # Object file extension for compiled C++ test sources.
17889 objext=o
17890 objext_CXX=$objext
17891
17892 # Code to be used in simple compile tests
17893 lt_simple_compile_test_code="int some_variable = 0;\n"
17894
17895 # Code to be used in simple link tests
17896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17897
17898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17899
17900 # If no C compiler was specified, use CC.
17901 LTCC=${LTCC-"$CC"}
17902
17903 # If no C compiler flags were specified, use CFLAGS.
17904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17905
17906 # Allow CC to be a program name with arguments.
17907 compiler=$CC
17908
17909
17910 # save warnings/boilerplate of simple test code
17911 ac_outfile=conftest.$ac_objext
17912 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17914 _lt_compiler_boilerplate=`cat conftest.err`
17915 $rm conftest*
17916
17917 ac_outfile=conftest.$ac_objext
17918 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17920 _lt_linker_boilerplate=`cat conftest.err`
17921 $rm conftest*
17922
17923
17924 # Allow CC to be a program name with arguments.
17925 lt_save_CC=$CC
17926 lt_save_LD=$LD
17927 lt_save_GCC=$GCC
17928 GCC=$GXX
17929 lt_save_with_gnu_ld=$with_gnu_ld
17930 lt_save_path_LD=$lt_cv_path_LD
17931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17932   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17933 else
17934   $as_unset lt_cv_prog_gnu_ld
17935 fi
17936 if test -n "${lt_cv_path_LDCXX+set}"; then
17937   lt_cv_path_LD=$lt_cv_path_LDCXX
17938 else
17939   $as_unset lt_cv_path_LD
17940 fi
17941 test -z "${LDCXX+set}" || LD=$LDCXX
17942 CC=${CXX-"c++"}
17943 compiler=$CC
17944 compiler_CXX=$CC
17945 for cc_temp in $compiler""; do
17946   case $cc_temp in
17947     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17948     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17949     \-*) ;;
17950     *) break;;
17951   esac
17952 done
17953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17954
17955
17956 # We don't want -fno-exception wen compiling C++ code, so set the
17957 # no_builtin_flag separately
17958 if test "$GXX" = yes; then
17959   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17960 else
17961   lt_prog_compiler_no_builtin_flag_CXX=
17962 fi
17963
17964 if test "$GXX" = yes; then
17965   # Set up default GNU C++ configuration
17966
17967
17968 # Check whether --with-gnu-ld was given.
17969 if test "${with_gnu_ld+set}" = set; then
17970   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17971 else
17972   with_gnu_ld=no
17973 fi
17974
17975 ac_prog=ld
17976 if test "$GCC" = yes; then
17977   # Check if gcc -print-prog-name=ld gives a path.
17978   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17979 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17980   case $host in
17981   *-*-mingw*)
17982     # gcc leaves a trailing carriage return which upsets mingw
17983     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17984   *)
17985     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17986   esac
17987   case $ac_prog in
17988     # Accept absolute paths.
17989     [\\/]* | ?:[\\/]*)
17990       re_direlt='/[^/][^/]*/\.\./'
17991       # Canonicalize the pathname of ld
17992       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17993       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17994         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17995       done
17996       test -z "$LD" && LD="$ac_prog"
17997       ;;
17998   "")
17999     # If it fails, then pretend we aren't using GCC.
18000     ac_prog=ld
18001     ;;
18002   *)
18003     # If it is relative, then search for the first ld in PATH.
18004     with_gnu_ld=unknown
18005     ;;
18006   esac
18007 elif test "$with_gnu_ld" = yes; then
18008   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18010 else
18011   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18012 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18013 fi
18014 if test "${lt_cv_path_LD+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017   if test -z "$LD"; then
18018   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18019   for ac_dir in $PATH; do
18020     IFS="$lt_save_ifs"
18021     test -z "$ac_dir" && ac_dir=.
18022     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18023       lt_cv_path_LD="$ac_dir/$ac_prog"
18024       # Check to see if the program is GNU ld.  I'd rather use --version,
18025       # but apparently some variants of GNU ld only accept -v.
18026       # Break only if it was the GNU/non-GNU ld that we prefer.
18027       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18028       *GNU* | *'with BFD'*)
18029         test "$with_gnu_ld" != no && break
18030         ;;
18031       *)
18032         test "$with_gnu_ld" != yes && break
18033         ;;
18034       esac
18035     fi
18036   done
18037   IFS="$lt_save_ifs"
18038 else
18039   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18040 fi
18041 fi
18042
18043 LD="$lt_cv_path_LD"
18044 if test -n "$LD"; then
18045   { echo "$as_me:$LINENO: result: $LD" >&5
18046 echo "${ECHO_T}$LD" >&6; }
18047 else
18048   { echo "$as_me:$LINENO: result: no" >&5
18049 echo "${ECHO_T}no" >&6; }
18050 fi
18051 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18052 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18053    { (exit 1); exit 1; }; }
18054 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18055 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18056 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18057   echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18060 case `$LD -v 2>&1 </dev/null` in
18061 *GNU* | *'with BFD'*)
18062   lt_cv_prog_gnu_ld=yes
18063   ;;
18064 *)
18065   lt_cv_prog_gnu_ld=no
18066   ;;
18067 esac
18068 fi
18069 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18070 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18071 with_gnu_ld=$lt_cv_prog_gnu_ld
18072
18073
18074
18075   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18076   # archiving commands below assume that GNU ld is being used.
18077   if test "$with_gnu_ld" = yes; then
18078     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18079     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'
18080
18081     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18082     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18083
18084     # If archive_cmds runs LD, not CC, wlarc should be empty
18085     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18086     #     investigate it a little bit more. (MM)
18087     wlarc='${wl}'
18088
18089     # ancient GNU ld didn't support --whole-archive et. al.
18090     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18091         grep 'no-whole-archive' > /dev/null; then
18092       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18093     else
18094       whole_archive_flag_spec_CXX=
18095     fi
18096   else
18097     with_gnu_ld=no
18098     wlarc=
18099
18100     # A generic and very simple default shared library creation
18101     # command for GNU C++ for the case where it uses the native
18102     # linker, instead of GNU ld.  If possible, this setting should
18103     # overridden to take advantage of the native linker features on
18104     # the platform it is being used on.
18105     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18106   fi
18107
18108   # Commands to make compiler produce verbose output that lists
18109   # what "hidden" libraries, object files and flags are used when
18110   # linking a shared library.
18111   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18112
18113 else
18114   GXX=no
18115   with_gnu_ld=no
18116   wlarc=
18117 fi
18118
18119 # PORTME: fill in a description of your system's C++ link characteristics
18120 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18121 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18122 ld_shlibs_CXX=yes
18123 case $host_os in
18124   aix3*)
18125     # FIXME: insert proper C++ library support
18126     ld_shlibs_CXX=no
18127     ;;
18128   aix4* | aix5*)
18129     if test "$host_cpu" = ia64; then
18130       # On IA64, the linker does run time linking by default, so we don't
18131       # have to do anything special.
18132       aix_use_runtimelinking=no
18133       exp_sym_flag='-Bexport'
18134       no_entry_flag=""
18135     else
18136       aix_use_runtimelinking=no
18137
18138       # Test if we are trying to use run time linking or normal
18139       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18140       # need to do runtime linking.
18141       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18142         for ld_flag in $LDFLAGS; do
18143           case $ld_flag in
18144           *-brtl*)
18145             aix_use_runtimelinking=yes
18146             break
18147             ;;
18148           esac
18149         done
18150         ;;
18151       esac
18152
18153       exp_sym_flag='-bexport'
18154       no_entry_flag='-bnoentry'
18155     fi
18156
18157     # When large executables or shared objects are built, AIX ld can
18158     # have problems creating the table of contents.  If linking a library
18159     # or program results in "error TOC overflow" add -mminimal-toc to
18160     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18161     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18162
18163     archive_cmds_CXX=''
18164     hardcode_direct_CXX=yes
18165     hardcode_libdir_separator_CXX=':'
18166     link_all_deplibs_CXX=yes
18167
18168     if test "$GXX" = yes; then
18169       case $host_os in aix4.[012]|aix4.[012].*)
18170       # We only want to do this on AIX 4.2 and lower, the check
18171       # below for broken collect2 doesn't work under 4.3+
18172         collect2name=`${CC} -print-prog-name=collect2`
18173         if test -f "$collect2name" && \
18174            strings "$collect2name" | grep resolve_lib_name >/dev/null
18175         then
18176           # We have reworked collect2
18177           hardcode_direct_CXX=yes
18178         else
18179           # We have old collect2
18180           hardcode_direct_CXX=unsupported
18181           # It fails to find uninstalled libraries when the uninstalled
18182           # path is not listed in the libpath.  Setting hardcode_minus_L
18183           # to unsupported forces relinking
18184           hardcode_minus_L_CXX=yes
18185           hardcode_libdir_flag_spec_CXX='-L$libdir'
18186           hardcode_libdir_separator_CXX=
18187         fi
18188         ;;
18189       esac
18190       shared_flag='-shared'
18191       if test "$aix_use_runtimelinking" = yes; then
18192         shared_flag="$shared_flag "'${wl}-G'
18193       fi
18194     else
18195       # not using gcc
18196       if test "$host_cpu" = ia64; then
18197         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18198         # chokes on -Wl,-G. The following line is correct:
18199         shared_flag='-G'
18200       else
18201         if test "$aix_use_runtimelinking" = yes; then
18202           shared_flag='${wl}-G'
18203         else
18204           shared_flag='${wl}-bM:SRE'
18205         fi
18206       fi
18207     fi
18208
18209     # It seems that -bexpall does not export symbols beginning with
18210     # underscore (_), so it is better to generate a list of symbols to export.
18211     always_export_symbols_CXX=yes
18212     if test "$aix_use_runtimelinking" = yes; then
18213       # Warning - without using the other runtime loading flags (-brtl),
18214       # -berok will link without error, but may produce a broken library.
18215       allow_undefined_flag_CXX='-berok'
18216       # Determine the default libpath from the value encoded in an empty executable.
18217       cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h.  */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h.  */
18223
18224 int
18225 main ()
18226 {
18227
18228   ;
18229   return 0;
18230 }
18231 _ACEOF
18232 rm -f conftest.$ac_objext conftest$ac_exeext
18233 if { (ac_try="$ac_link"
18234 case "(($ac_try" in
18235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236   *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239   (eval "$ac_link") 2>conftest.er1
18240   ac_status=$?
18241   grep -v '^ *+' conftest.er1 >conftest.err
18242   rm -f conftest.er1
18243   cat conftest.err >&5
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); } &&
18246          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18247   { (case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252   (eval "$ac_try") 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; } &&
18256          { ac_try='test -s conftest$ac_exeext'
18257   { (case "(($ac_try" in
18258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259   *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262   (eval "$ac_try") 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; }; then
18266
18267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18268 }'`
18269 # Check for a 64-bit object if we didn't find anything.
18270 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; }
18271 }'`; fi
18272 else
18273   echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18275
18276
18277 fi
18278
18279 rm -f core conftest.err conftest.$ac_objext \
18280       conftest$ac_exeext conftest.$ac_ext
18281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18282
18283       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18284
18285       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"
18286      else
18287       if test "$host_cpu" = ia64; then
18288         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18289         allow_undefined_flag_CXX="-z nodefs"
18290         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"
18291       else
18292         # Determine the default libpath from the value encoded in an empty executable.
18293         cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h.  */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h.  */
18299
18300 int
18301 main ()
18302 {
18303
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 rm -f conftest.$ac_objext conftest$ac_exeext
18309 if { (ac_try="$ac_link"
18310 case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_link") 2>conftest.er1
18316   ac_status=$?
18317   grep -v '^ *+' conftest.er1 >conftest.err
18318   rm -f conftest.er1
18319   cat conftest.err >&5
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); } &&
18322          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18323   { (case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_try") 2>&5
18329   ac_status=$?
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); }; } &&
18332          { ac_try='test -s conftest$ac_exeext'
18333   { (case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_try") 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); }; }; then
18342
18343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18344 }'`
18345 # Check for a 64-bit object if we didn't find anything.
18346 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; }
18347 }'`; fi
18348 else
18349   echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18351
18352
18353 fi
18354
18355 rm -f core conftest.err conftest.$ac_objext \
18356       conftest$ac_exeext conftest.$ac_ext
18357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18358
18359         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18360         # Warning - without using the other run time loading flags,
18361         # -berok will link without error, but may produce a broken library.
18362         no_undefined_flag_CXX=' ${wl}-bernotok'
18363         allow_undefined_flag_CXX=' ${wl}-berok'
18364         # Exported symbols can be pulled into shared objects from archives
18365         whole_archive_flag_spec_CXX='$convenience'
18366         archive_cmds_need_lc_CXX=yes
18367         # This is similar to how AIX traditionally builds its shared libraries.
18368         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'
18369       fi
18370     fi
18371     ;;
18372
18373   beos*)
18374     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18375       allow_undefined_flag_CXX=unsupported
18376       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18377       # support --undefined.  This deserves some investigation.  FIXME
18378       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18379     else
18380       ld_shlibs_CXX=no
18381     fi
18382     ;;
18383
18384   chorus*)
18385     case $cc_basename in
18386       *)
18387         # FIXME: insert proper C++ library support
18388         ld_shlibs_CXX=no
18389         ;;
18390     esac
18391     ;;
18392
18393   cygwin* | mingw* | pw32*)
18394     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18395     # as there is no search path for DLLs.
18396     hardcode_libdir_flag_spec_CXX='-L$libdir'
18397     allow_undefined_flag_CXX=unsupported
18398     always_export_symbols_CXX=no
18399     enable_shared_with_static_runtimes_CXX=yes
18400
18401     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18402       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'
18403       # If the export-symbols file already is a .def file (1st line
18404       # is EXPORTS), use it as is; otherwise, prepend...
18405       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18406         cp $export_symbols $output_objdir/$soname.def;
18407       else
18408         echo EXPORTS > $output_objdir/$soname.def;
18409         cat $export_symbols >> $output_objdir/$soname.def;
18410       fi~
18411       $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'
18412     else
18413       ld_shlibs_CXX=no
18414     fi
18415   ;;
18416       darwin* | rhapsody*)
18417         case $host_os in
18418         rhapsody* | darwin1.[012])
18419          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18420          ;;
18421        *) # Darwin 1.3 on
18422          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18423            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18424          else
18425            case ${MACOSX_DEPLOYMENT_TARGET} in
18426              10.[012])
18427                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18428                ;;
18429              10.*)
18430                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18431                ;;
18432            esac
18433          fi
18434          ;;
18435         esac
18436       archive_cmds_need_lc_CXX=no
18437       hardcode_direct_CXX=no
18438       hardcode_automatic_CXX=yes
18439       hardcode_shlibpath_var_CXX=unsupported
18440       whole_archive_flag_spec_CXX=''
18441       link_all_deplibs_CXX=yes
18442
18443     if test "$GXX" = yes ; then
18444       lt_int_apple_cc_single_mod=no
18445       output_verbose_link_cmd='echo'
18446       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18447        lt_int_apple_cc_single_mod=yes
18448       fi
18449       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18450        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18451       else
18452           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'
18453         fi
18454         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18455         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18456           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18457             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}'
18458           else
18459             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}'
18460           fi
18461             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}'
18462       else
18463       case $cc_basename in
18464         xlc*)
18465          output_verbose_link_cmd='echo'
18466           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'
18467           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18468           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18469           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}'
18470           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}'
18471           ;;
18472        *)
18473          ld_shlibs_CXX=no
18474           ;;
18475       esac
18476       fi
18477         ;;
18478
18479   dgux*)
18480     case $cc_basename in
18481       ec++*)
18482         # FIXME: insert proper C++ library support
18483         ld_shlibs_CXX=no
18484         ;;
18485       ghcx*)
18486         # Green Hills C++ Compiler
18487         # FIXME: insert proper C++ library support
18488         ld_shlibs_CXX=no
18489         ;;
18490       *)
18491         # FIXME: insert proper C++ library support
18492         ld_shlibs_CXX=no
18493         ;;
18494     esac
18495     ;;
18496   freebsd[12]*)
18497     # C++ shared libraries reported to be fairly broken before switch to ELF
18498     ld_shlibs_CXX=no
18499     ;;
18500   freebsd-elf*)
18501     archive_cmds_need_lc_CXX=no
18502     ;;
18503   freebsd* | kfreebsd*-gnu | dragonfly*)
18504     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18505     # conventions
18506     ld_shlibs_CXX=yes
18507     ;;
18508   gnu*)
18509     ;;
18510   hpux9*)
18511     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18512     hardcode_libdir_separator_CXX=:
18513     export_dynamic_flag_spec_CXX='${wl}-E'
18514     hardcode_direct_CXX=yes
18515     hardcode_minus_L_CXX=yes # Not in the search PATH,
18516                                 # but as the default
18517                                 # location of the library.
18518
18519     case $cc_basename in
18520     CC*)
18521       # FIXME: insert proper C++ library support
18522       ld_shlibs_CXX=no
18523       ;;
18524     aCC*)
18525       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'
18526       # Commands to make compiler produce verbose output that lists
18527       # what "hidden" libraries, object files and flags are used when
18528       # linking a shared library.
18529       #
18530       # There doesn't appear to be a way to prevent this compiler from
18531       # explicitly linking system object files so we need to strip them
18532       # from the output so that they don't get included in the library
18533       # dependencies.
18534       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'
18535       ;;
18536     *)
18537       if test "$GXX" = yes; then
18538         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'
18539       else
18540         # FIXME: insert proper C++ library support
18541         ld_shlibs_CXX=no
18542       fi
18543       ;;
18544     esac
18545     ;;
18546   hpux10*|hpux11*)
18547     if test $with_gnu_ld = no; then
18548       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18549       hardcode_libdir_separator_CXX=:
18550
18551       case $host_cpu in
18552       hppa*64*|ia64*)
18553         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18554         ;;
18555       *)
18556         export_dynamic_flag_spec_CXX='${wl}-E'
18557         ;;
18558       esac
18559     fi
18560     case $host_cpu in
18561     hppa*64*|ia64*)
18562       hardcode_direct_CXX=no
18563       hardcode_shlibpath_var_CXX=no
18564       ;;
18565     *)
18566       hardcode_direct_CXX=yes
18567       hardcode_minus_L_CXX=yes # Not in the search PATH,
18568                                               # but as the default
18569                                               # location of the library.
18570       ;;
18571     esac
18572
18573     case $cc_basename in
18574       CC*)
18575         # FIXME: insert proper C++ library support
18576         ld_shlibs_CXX=no
18577         ;;
18578       aCC*)
18579         case $host_cpu in
18580         hppa*64*)
18581           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18582           ;;
18583         ia64*)
18584           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18585           ;;
18586         *)
18587           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18588           ;;
18589         esac
18590         # Commands to make compiler produce verbose output that lists
18591         # what "hidden" libraries, object files and flags are used when
18592         # linking a shared library.
18593         #
18594         # There doesn't appear to be a way to prevent this compiler from
18595         # explicitly linking system object files so we need to strip them
18596         # from the output so that they don't get included in the library
18597         # dependencies.
18598         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'
18599         ;;
18600       *)
18601         if test "$GXX" = yes; then
18602           if test $with_gnu_ld = no; then
18603             case $host_cpu in
18604             hppa*64*)
18605               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18606               ;;
18607             ia64*)
18608               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18609               ;;
18610             *)
18611               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'
18612               ;;
18613             esac
18614           fi
18615         else
18616           # FIXME: insert proper C++ library support
18617           ld_shlibs_CXX=no
18618         fi
18619         ;;
18620     esac
18621     ;;
18622   interix3*)
18623     hardcode_direct_CXX=no
18624     hardcode_shlibpath_var_CXX=no
18625     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18626     export_dynamic_flag_spec_CXX='${wl}-E'
18627     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18628     # Instead, shared libraries are loaded at an image base (0x10000000 by
18629     # default) and relocated if they conflict, which is a slow very memory
18630     # consuming and fragmenting process.  To avoid this, we pick a random,
18631     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18632     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18633     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'
18634     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'
18635     ;;
18636   irix5* | irix6*)
18637     case $cc_basename in
18638       CC*)
18639         # SGI C++
18640         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'
18641
18642         # Archives containing C++ object files must be created using
18643         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18644         # necessary to make sure instantiated templates are included
18645         # in the archive.
18646         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18647         ;;
18648       *)
18649         if test "$GXX" = yes; then
18650           if test "$with_gnu_ld" = no; then
18651             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'
18652           else
18653             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'
18654           fi
18655         fi
18656         link_all_deplibs_CXX=yes
18657         ;;
18658     esac
18659     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18660     hardcode_libdir_separator_CXX=:
18661     ;;
18662   linux*)
18663     case $cc_basename in
18664       KCC*)
18665         # Kuck and Associates, Inc. (KAI) C++ Compiler
18666
18667         # KCC will only create a shared library if the output file
18668         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18669         # to its proper name (with version) after linking.
18670         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'
18671         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'
18672         # Commands to make compiler produce verbose output that lists
18673         # what "hidden" libraries, object files and flags are used when
18674         # linking a shared library.
18675         #
18676         # There doesn't appear to be a way to prevent this compiler from
18677         # explicitly linking system object files so we need to strip them
18678         # from the output so that they don't get included in the library
18679         # dependencies.
18680         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'
18681
18682         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18683         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18684
18685         # Archives containing C++ object files must be created using
18686         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18687         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18688         ;;
18689       icpc*)
18690         # Intel C++
18691         with_gnu_ld=yes
18692         # version 8.0 and above of icpc choke on multiply defined symbols
18693         # if we add $predep_objects and $postdep_objects, however 7.1 and
18694         # earlier do not add the objects themselves.
18695         case `$CC -V 2>&1` in
18696         *"Version 7."*)
18697           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18698           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'
18699           ;;
18700         *)  # Version 8.0 or newer
18701           tmp_idyn=
18702           case $host_cpu in
18703             ia64*) tmp_idyn=' -i_dynamic';;
18704           esac
18705           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18706           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'
18707           ;;
18708         esac
18709         archive_cmds_need_lc_CXX=no
18710         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18711         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18712         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18713         ;;
18714       pgCC*)
18715         # Portland Group C++ compiler
18716         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18717         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'
18718
18719         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18720         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18721         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'
18722         ;;
18723       cxx*)
18724         # Compaq C++
18725         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18726         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'
18727
18728         runpath_var=LD_RUN_PATH
18729         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18730         hardcode_libdir_separator_CXX=:
18731
18732         # Commands to make compiler produce verbose output that lists
18733         # what "hidden" libraries, object files and flags are used when
18734         # linking a shared library.
18735         #
18736         # There doesn't appear to be a way to prevent this compiler from
18737         # explicitly linking system object files so we need to strip them
18738         # from the output so that they don't get included in the library
18739         # dependencies.
18740         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'
18741         ;;
18742     esac
18743     ;;
18744   lynxos*)
18745     # FIXME: insert proper C++ library support
18746     ld_shlibs_CXX=no
18747     ;;
18748   m88k*)
18749     # FIXME: insert proper C++ library support
18750     ld_shlibs_CXX=no
18751     ;;
18752   mvs*)
18753     case $cc_basename in
18754       cxx*)
18755         # FIXME: insert proper C++ library support
18756         ld_shlibs_CXX=no
18757         ;;
18758       *)
18759         # FIXME: insert proper C++ library support
18760         ld_shlibs_CXX=no
18761         ;;
18762     esac
18763     ;;
18764   netbsd*)
18765     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18766       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18767       wlarc=
18768       hardcode_libdir_flag_spec_CXX='-R$libdir'
18769       hardcode_direct_CXX=yes
18770       hardcode_shlibpath_var_CXX=no
18771     fi
18772     # Workaround some broken pre-1.5 toolchains
18773     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18774     ;;
18775   openbsd2*)
18776     # C++ shared libraries are fairly broken
18777     ld_shlibs_CXX=no
18778     ;;
18779   openbsd*)
18780     hardcode_direct_CXX=yes
18781     hardcode_shlibpath_var_CXX=no
18782     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18783     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18784     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18785       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18786       export_dynamic_flag_spec_CXX='${wl}-E'
18787       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18788     fi
18789     output_verbose_link_cmd='echo'
18790     ;;
18791   osf3*)
18792     case $cc_basename in
18793       KCC*)
18794         # Kuck and Associates, Inc. (KAI) C++ Compiler
18795
18796         # KCC will only create a shared library if the output file
18797         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18798         # to its proper name (with version) after linking.
18799         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'
18800
18801         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18802         hardcode_libdir_separator_CXX=:
18803
18804         # Archives containing C++ object files must be created using
18805         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18806         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18807
18808         ;;
18809       RCC*)
18810         # Rational C++ 2.4.1
18811         # FIXME: insert proper C++ library support
18812         ld_shlibs_CXX=no
18813         ;;
18814       cxx*)
18815         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18816         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'
18817
18818         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18819         hardcode_libdir_separator_CXX=:
18820
18821         # Commands to make compiler produce verbose output that lists
18822         # what "hidden" libraries, object files and flags are used when
18823         # linking a shared library.
18824         #
18825         # There doesn't appear to be a way to prevent this compiler from
18826         # explicitly linking system object files so we need to strip them
18827         # from the output so that they don't get included in the library
18828         # dependencies.
18829         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'
18830         ;;
18831       *)
18832         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18833           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18834           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'
18835
18836           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18837           hardcode_libdir_separator_CXX=:
18838
18839           # Commands to make compiler produce verbose output that lists
18840           # what "hidden" libraries, object files and flags are used when
18841           # linking a shared library.
18842           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18843
18844         else
18845           # FIXME: insert proper C++ library support
18846           ld_shlibs_CXX=no
18847         fi
18848         ;;
18849     esac
18850     ;;
18851   osf4* | osf5*)
18852     case $cc_basename in
18853       KCC*)
18854         # Kuck and Associates, Inc. (KAI) C++ Compiler
18855
18856         # KCC will only create a shared library if the output file
18857         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18858         # to its proper name (with version) after linking.
18859         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'
18860
18861         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18862         hardcode_libdir_separator_CXX=:
18863
18864         # Archives containing C++ object files must be created using
18865         # the KAI C++ compiler.
18866         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18867         ;;
18868       RCC*)
18869         # Rational C++ 2.4.1
18870         # FIXME: insert proper C++ library support
18871         ld_shlibs_CXX=no
18872         ;;
18873       cxx*)
18874         allow_undefined_flag_CXX=' -expect_unresolved \*'
18875         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'
18876         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18877           echo "-hidden">> $lib.exp~
18878           $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~
18879           $rm $lib.exp'
18880
18881         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18882         hardcode_libdir_separator_CXX=:
18883
18884         # Commands to make compiler produce verbose output that lists
18885         # what "hidden" libraries, object files and flags are used when
18886         # linking a shared library.
18887         #
18888         # There doesn't appear to be a way to prevent this compiler from
18889         # explicitly linking system object files so we need to strip them
18890         # from the output so that they don't get included in the library
18891         # dependencies.
18892         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'
18893         ;;
18894       *)
18895         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18896           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18897          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'
18898
18899           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900           hardcode_libdir_separator_CXX=:
18901
18902           # Commands to make compiler produce verbose output that lists
18903           # what "hidden" libraries, object files and flags are used when
18904           # linking a shared library.
18905           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18906
18907         else
18908           # FIXME: insert proper C++ library support
18909           ld_shlibs_CXX=no
18910         fi
18911         ;;
18912     esac
18913     ;;
18914   psos*)
18915     # FIXME: insert proper C++ library support
18916     ld_shlibs_CXX=no
18917     ;;
18918   sunos4*)
18919     case $cc_basename in
18920       CC*)
18921         # Sun C++ 4.x
18922         # FIXME: insert proper C++ library support
18923         ld_shlibs_CXX=no
18924         ;;
18925       lcc*)
18926         # Lucid
18927         # FIXME: insert proper C++ library support
18928         ld_shlibs_CXX=no
18929         ;;
18930       *)
18931         # FIXME: insert proper C++ library support
18932         ld_shlibs_CXX=no
18933         ;;
18934     esac
18935     ;;
18936   solaris*)
18937     case $cc_basename in
18938       CC*)
18939         # Sun C++ 4.2, 5.x and Centerline C++
18940         archive_cmds_need_lc_CXX=yes
18941         no_undefined_flag_CXX=' -zdefs'
18942         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18943         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18944         $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'
18945
18946         hardcode_libdir_flag_spec_CXX='-R$libdir'
18947         hardcode_shlibpath_var_CXX=no
18948         case $host_os in
18949           solaris2.[0-5] | solaris2.[0-5].*) ;;
18950           *)
18951             # The C++ compiler is used as linker so we must use $wl
18952             # flag to pass the commands to the underlying system
18953             # linker. We must also pass each convience library through
18954             # to the system linker between allextract/defaultextract.
18955             # The C++ compiler will combine linker options so we
18956             # cannot just pass the convience library names through
18957             # without $wl.
18958             # Supported since Solaris 2.6 (maybe 2.5.1?)
18959             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'
18960             ;;
18961         esac
18962         link_all_deplibs_CXX=yes
18963
18964         output_verbose_link_cmd='echo'
18965
18966         # Archives containing C++ object files must be created using
18967         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18968         # necessary to make sure instantiated templates are included
18969         # in the archive.
18970         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18971         ;;
18972       gcx*)
18973         # Green Hills C++ Compiler
18974         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18975
18976         # The C++ compiler must be used to create the archive.
18977         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18978         ;;
18979       *)
18980         # GNU C++ compiler with Solaris linker
18981         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18982           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18983           if $CC --version | grep -v '^2\.7' > /dev/null; then
18984             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18985             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18986                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18987
18988             # Commands to make compiler produce verbose output that lists
18989             # what "hidden" libraries, object files and flags are used when
18990             # linking a shared library.
18991             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18992           else
18993             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18994             # platform.
18995             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18996             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18997                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18998
18999             # Commands to make compiler produce verbose output that lists
19000             # what "hidden" libraries, object files and flags are used when
19001             # linking a shared library.
19002             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19003           fi
19004
19005           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19006         fi
19007         ;;
19008     esac
19009     ;;
19010   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19011     no_undefined_flag_CXX='${wl}-z,text'
19012     archive_cmds_need_lc_CXX=no
19013     hardcode_shlibpath_var_CXX=no
19014     runpath_var='LD_RUN_PATH'
19015
19016     case $cc_basename in
19017       CC*)
19018         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19019         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19020         ;;
19021       *)
19022         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19023         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19024         ;;
19025     esac
19026     ;;
19027   sysv5* | sco3.2v5* | sco5v6*)
19028     # Note: We can NOT use -z defs as we might desire, because we do not
19029     # link with -lc, and that would cause any symbols used from libc to
19030     # always be unresolved, which means just about no library would
19031     # ever link correctly.  If we're not using GNU ld we use -z text
19032     # though, which does catch some bad symbols but isn't as heavy-handed
19033     # as -z defs.
19034     # For security reasons, it is highly recommended that you always
19035     # use absolute paths for naming shared libraries, and exclude the
19036     # DT_RUNPATH tag from executables and libraries.  But doing so
19037     # requires that you compile everything twice, which is a pain.
19038     # So that behaviour is only enabled if SCOABSPATH is set to a
19039     # non-empty value in the environment.  Most likely only useful for
19040     # creating official distributions of packages.
19041     # This is a hack until libtool officially supports absolute path
19042     # names for shared libraries.
19043     no_undefined_flag_CXX='${wl}-z,text'
19044     allow_undefined_flag_CXX='${wl}-z,nodefs'
19045     archive_cmds_need_lc_CXX=no
19046     hardcode_shlibpath_var_CXX=no
19047     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19048     hardcode_libdir_separator_CXX=':'
19049     link_all_deplibs_CXX=yes
19050     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19051     runpath_var='LD_RUN_PATH'
19052
19053     case $cc_basename in
19054       CC*)
19055         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19056         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19057         ;;
19058       *)
19059         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19060         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19061         ;;
19062     esac
19063     ;;
19064   tandem*)
19065     case $cc_basename in
19066       NCC*)
19067         # NonStop-UX NCC 3.20
19068         # FIXME: insert proper C++ library support
19069         ld_shlibs_CXX=no
19070         ;;
19071       *)
19072         # FIXME: insert proper C++ library support
19073         ld_shlibs_CXX=no
19074         ;;
19075     esac
19076     ;;
19077   vxworks*)
19078     # FIXME: insert proper C++ library support
19079     ld_shlibs_CXX=no
19080     ;;
19081   *)
19082     # FIXME: insert proper C++ library support
19083     ld_shlibs_CXX=no
19084     ;;
19085 esac
19086 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19087 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19088 test "$ld_shlibs_CXX" = no && can_build_shared=no
19089
19090 GCC_CXX="$GXX"
19091 LD_CXX="$LD"
19092
19093
19094 cat > conftest.$ac_ext <<EOF
19095 class Foo
19096 {
19097 public:
19098   Foo (void) { a = 0; }
19099 private:
19100   int a;
19101 };
19102 EOF
19103
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105   (eval $ac_compile) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; then
19109   # Parse the compiler output and extract the necessary
19110   # objects, libraries and library flags.
19111
19112   # Sentinel used to keep track of whether or not we are before
19113   # the conftest object file.
19114   pre_test_object_deps_done=no
19115
19116   # The `*' in the case matches for architectures that use `case' in
19117   # $output_verbose_cmd can trigger glob expansion during the loop
19118   # eval without this substitution.
19119   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19120
19121   for p in `eval $output_verbose_link_cmd`; do
19122     case $p in
19123
19124     -L* | -R* | -l*)
19125        # Some compilers place space between "-{L,R}" and the path.
19126        # Remove the space.
19127        if test $p = "-L" \
19128           || test $p = "-R"; then
19129          prev=$p
19130          continue
19131        else
19132          prev=
19133        fi
19134
19135        if test "$pre_test_object_deps_done" = no; then
19136          case $p in
19137          -L* | -R*)
19138            # Internal compiler library paths should come after those
19139            # provided the user.  The postdeps already come after the
19140            # user supplied libs so there is no need to process them.
19141            if test -z "$compiler_lib_search_path_CXX"; then
19142              compiler_lib_search_path_CXX="${prev}${p}"
19143            else
19144              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19145            fi
19146            ;;
19147          # The "-l" case would never come before the object being
19148          # linked, so don't bother handling this case.
19149          esac
19150        else
19151          if test -z "$postdeps_CXX"; then
19152            postdeps_CXX="${prev}${p}"
19153          else
19154            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19155          fi
19156        fi
19157        ;;
19158
19159     *.$objext)
19160        # This assumes that the test object file only shows up
19161        # once in the compiler output.
19162        if test "$p" = "conftest.$objext"; then
19163          pre_test_object_deps_done=yes
19164          continue
19165        fi
19166
19167        if test "$pre_test_object_deps_done" = no; then
19168          if test -z "$predep_objects_CXX"; then
19169            predep_objects_CXX="$p"
19170          else
19171            predep_objects_CXX="$predep_objects_CXX $p"
19172          fi
19173        else
19174          if test -z "$postdep_objects_CXX"; then
19175            postdep_objects_CXX="$p"
19176          else
19177            postdep_objects_CXX="$postdep_objects_CXX $p"
19178          fi
19179        fi
19180        ;;
19181
19182     *) ;; # Ignore the rest.
19183
19184     esac
19185   done
19186
19187   # Clean up.
19188   rm -f a.out a.exe
19189 else
19190   echo "libtool.m4: error: problem compiling CXX test program"
19191 fi
19192
19193 $rm -f confest.$objext
19194
19195 # PORTME: override above test on systems where it is broken
19196 case $host_os in
19197 interix3*)
19198   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19199   # hack all around it, let's just trust "g++" to DTRT.
19200   predep_objects_CXX=
19201   postdep_objects_CXX=
19202   postdeps_CXX=
19203   ;;
19204
19205 solaris*)
19206   case $cc_basename in
19207   CC*)
19208     # Adding this requires a known-good setup of shared libraries for
19209     # Sun compiler versions before 5.6, else PIC objects from an old
19210     # archive will be linked into the output, leading to subtle bugs.
19211     postdeps_CXX='-lCstd -lCrun'
19212     ;;
19213   esac
19214   ;;
19215 esac
19216
19217
19218 case " $postdeps_CXX " in
19219 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19220 esac
19221
19222 lt_prog_compiler_wl_CXX=
19223 lt_prog_compiler_pic_CXX=
19224 lt_prog_compiler_static_CXX=
19225
19226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19228
19229   # C++ specific cases for pic, static, wl, etc.
19230   if test "$GXX" = yes; then
19231     lt_prog_compiler_wl_CXX='-Wl,'
19232     lt_prog_compiler_static_CXX='-static'
19233
19234     case $host_os in
19235     aix*)
19236       # All AIX code is PIC.
19237       if test "$host_cpu" = ia64; then
19238         # AIX 5 now supports IA64 processor
19239         lt_prog_compiler_static_CXX='-Bstatic'
19240       fi
19241       ;;
19242     amigaos*)
19243       # FIXME: we need at least 68020 code to build shared libraries, but
19244       # adding the `-m68020' flag to GCC prevents building anything better,
19245       # like `-m68040'.
19246       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19247       ;;
19248     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19249       # PIC is the default for these OSes.
19250       ;;
19251     mingw* | os2* | pw32*)
19252       # This hack is so that the source file can tell whether it is being
19253       # built for inclusion in a dll (and should export symbols for example).
19254       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19255       ;;
19256     darwin* | rhapsody*)
19257       # PIC is the default on this platform
19258       # Common symbols not allowed in MH_DYLIB files
19259       lt_prog_compiler_pic_CXX='-fno-common'
19260       ;;
19261     *djgpp*)
19262       # DJGPP does not support shared libraries at all
19263       lt_prog_compiler_pic_CXX=
19264       ;;
19265     interix3*)
19266       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19267       # Instead, we relocate shared libraries at runtime.
19268       ;;
19269     sysv4*MP*)
19270       if test -d /usr/nec; then
19271         lt_prog_compiler_pic_CXX=-Kconform_pic
19272       fi
19273       ;;
19274     hpux*)
19275       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19276       # not for PA HP-UX.
19277       case $host_cpu in
19278       hppa*64*|ia64*)
19279         ;;
19280       *)
19281         lt_prog_compiler_pic_CXX='-fPIC'
19282         ;;
19283       esac
19284       ;;
19285     *)
19286       lt_prog_compiler_pic_CXX='-fPIC'
19287       ;;
19288     esac
19289   else
19290     case $host_os in
19291       aix4* | aix5*)
19292         # All AIX code is PIC.
19293         if test "$host_cpu" = ia64; then
19294           # AIX 5 now supports IA64 processor
19295           lt_prog_compiler_static_CXX='-Bstatic'
19296         else
19297           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19298         fi
19299         ;;
19300       chorus*)
19301         case $cc_basename in
19302         cxch68*)
19303           # Green Hills C++ Compiler
19304           # _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"
19305           ;;
19306         esac
19307         ;;
19308        darwin*)
19309          # PIC is the default on this platform
19310          # Common symbols not allowed in MH_DYLIB files
19311          case $cc_basename in
19312            xlc*)
19313            lt_prog_compiler_pic_CXX='-qnocommon'
19314            lt_prog_compiler_wl_CXX='-Wl,'
19315            ;;
19316          esac
19317        ;;
19318       dgux*)
19319         case $cc_basename in
19320           ec++*)
19321             lt_prog_compiler_pic_CXX='-KPIC'
19322             ;;
19323           ghcx*)
19324             # Green Hills C++ Compiler
19325             lt_prog_compiler_pic_CXX='-pic'
19326             ;;
19327           *)
19328             ;;
19329         esac
19330         ;;
19331       freebsd* | kfreebsd*-gnu | dragonfly*)
19332         # FreeBSD uses GNU C++
19333         ;;
19334       hpux9* | hpux10* | hpux11*)
19335         case $cc_basename in
19336           CC*)
19337             lt_prog_compiler_wl_CXX='-Wl,'
19338             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19339             if test "$host_cpu" != ia64; then
19340               lt_prog_compiler_pic_CXX='+Z'
19341             fi
19342             ;;
19343           aCC*)
19344             lt_prog_compiler_wl_CXX='-Wl,'
19345             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19346             case $host_cpu in
19347             hppa*64*|ia64*)
19348               # +Z the default
19349               ;;
19350             *)
19351               lt_prog_compiler_pic_CXX='+Z'
19352               ;;
19353             esac
19354             ;;
19355           *)
19356             ;;
19357         esac
19358         ;;
19359       interix*)
19360         # This is c89, which is MS Visual C++ (no shared libs)
19361         # Anyone wants to do a port?
19362         ;;
19363       irix5* | irix6* | nonstopux*)
19364         case $cc_basename in
19365           CC*)
19366             lt_prog_compiler_wl_CXX='-Wl,'
19367             lt_prog_compiler_static_CXX='-non_shared'
19368             # CC pic flag -KPIC is the default.
19369             ;;
19370           *)
19371             ;;
19372         esac
19373         ;;
19374       linux*)
19375         case $cc_basename in
19376           KCC*)
19377             # KAI C++ Compiler
19378             lt_prog_compiler_wl_CXX='--backend -Wl,'
19379             lt_prog_compiler_pic_CXX='-fPIC'
19380             ;;
19381           icpc* | ecpc*)
19382             # Intel C++
19383             lt_prog_compiler_wl_CXX='-Wl,'
19384             lt_prog_compiler_pic_CXX='-KPIC'
19385             lt_prog_compiler_static_CXX='-static'
19386             ;;
19387           pgCC*)
19388             # Portland Group C++ compiler.
19389             lt_prog_compiler_wl_CXX='-Wl,'
19390             lt_prog_compiler_pic_CXX='-fpic'
19391             lt_prog_compiler_static_CXX='-Bstatic'
19392             ;;
19393           cxx*)
19394             # Compaq C++
19395             # Make sure the PIC flag is empty.  It appears that all Alpha
19396             # Linux and Compaq Tru64 Unix objects are PIC.
19397             lt_prog_compiler_pic_CXX=
19398             lt_prog_compiler_static_CXX='-non_shared'
19399             ;;
19400           *)
19401             ;;
19402         esac
19403         ;;
19404       lynxos*)
19405         ;;
19406       m88k*)
19407         ;;
19408       mvs*)
19409         case $cc_basename in
19410           cxx*)
19411             lt_prog_compiler_pic_CXX='-W c,exportall'
19412             ;;
19413           *)
19414             ;;
19415         esac
19416         ;;
19417       netbsd*)
19418         ;;
19419       osf3* | osf4* | osf5*)
19420         case $cc_basename in
19421           KCC*)
19422             lt_prog_compiler_wl_CXX='--backend -Wl,'
19423             ;;
19424           RCC*)
19425             # Rational C++ 2.4.1
19426             lt_prog_compiler_pic_CXX='-pic'
19427             ;;
19428           cxx*)
19429             # Digital/Compaq C++
19430             lt_prog_compiler_wl_CXX='-Wl,'
19431             # Make sure the PIC flag is empty.  It appears that all Alpha
19432             # Linux and Compaq Tru64 Unix objects are PIC.
19433             lt_prog_compiler_pic_CXX=
19434             lt_prog_compiler_static_CXX='-non_shared'
19435             ;;
19436           *)
19437             ;;
19438         esac
19439         ;;
19440       psos*)
19441         ;;
19442       solaris*)
19443         case $cc_basename in
19444           CC*)
19445             # Sun C++ 4.2, 5.x and Centerline C++
19446             lt_prog_compiler_pic_CXX='-KPIC'
19447             lt_prog_compiler_static_CXX='-Bstatic'
19448             lt_prog_compiler_wl_CXX='-Qoption ld '
19449             ;;
19450           gcx*)
19451             # Green Hills C++ Compiler
19452             lt_prog_compiler_pic_CXX='-PIC'
19453             ;;
19454           *)
19455             ;;
19456         esac
19457         ;;
19458       sunos4*)
19459         case $cc_basename in
19460           CC*)
19461             # Sun C++ 4.x
19462             lt_prog_compiler_pic_CXX='-pic'
19463             lt_prog_compiler_static_CXX='-Bstatic'
19464             ;;
19465           lcc*)
19466             # Lucid
19467             lt_prog_compiler_pic_CXX='-pic'
19468             ;;
19469           *)
19470             ;;
19471         esac
19472         ;;
19473       tandem*)
19474         case $cc_basename in
19475           NCC*)
19476             # NonStop-UX NCC 3.20
19477             lt_prog_compiler_pic_CXX='-KPIC'
19478             ;;
19479           *)
19480             ;;
19481         esac
19482         ;;
19483       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19484         case $cc_basename in
19485           CC*)
19486             lt_prog_compiler_wl_CXX='-Wl,'
19487             lt_prog_compiler_pic_CXX='-KPIC'
19488             lt_prog_compiler_static_CXX='-Bstatic'
19489             ;;
19490         esac
19491         ;;
19492       vxworks*)
19493         ;;
19494       *)
19495         lt_prog_compiler_can_build_shared_CXX=no
19496         ;;
19497     esac
19498   fi
19499
19500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19501 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19502
19503 #
19504 # Check to make sure the PIC flag actually works.
19505 #
19506 if test -n "$lt_prog_compiler_pic_CXX"; then
19507
19508 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19509 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19510 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   lt_prog_compiler_pic_works_CXX=no
19514   ac_outfile=conftest.$ac_objext
19515    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19516    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19517    # Insert the option either (1) after the last *FLAGS variable, or
19518    # (2) before a word containing "conftest.", or (3) at the end.
19519    # Note that $ac_compile itself does not contain backslashes and begins
19520    # with a dollar sign (not a hyphen), so the echo should work correctly.
19521    # The option is referenced via a variable to avoid confusing sed.
19522    lt_compile=`echo "$ac_compile" | $SED \
19523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19525    -e 's:$: $lt_compiler_flag:'`
19526    (eval echo "\"\$as_me:19526: $lt_compile\"" >&5)
19527    (eval "$lt_compile" 2>conftest.err)
19528    ac_status=$?
19529    cat conftest.err >&5
19530    echo "$as_me:19530: \$? = $ac_status" >&5
19531    if (exit $ac_status) && test -s "$ac_outfile"; then
19532      # The compiler can only warn and ignore the option if not recognized
19533      # So say no if there are warnings other than the usual output.
19534      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19535      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19536      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19537        lt_prog_compiler_pic_works_CXX=yes
19538      fi
19539    fi
19540    $rm conftest*
19541
19542 fi
19543 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19544 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19545
19546 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19547     case $lt_prog_compiler_pic_CXX in
19548      "" | " "*) ;;
19549      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19550      esac
19551 else
19552     lt_prog_compiler_pic_CXX=
19553      lt_prog_compiler_can_build_shared_CXX=no
19554 fi
19555
19556 fi
19557 case $host_os in
19558   # For platforms which do not support PIC, -DPIC is meaningless:
19559   *djgpp*)
19560     lt_prog_compiler_pic_CXX=
19561     ;;
19562   *)
19563     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19564     ;;
19565 esac
19566
19567 #
19568 # Check to make sure the static flag actually works.
19569 #
19570 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19571 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19572 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19573 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19574   echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576   lt_prog_compiler_static_works_CXX=no
19577    save_LDFLAGS="$LDFLAGS"
19578    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19579    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19580    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19581      # The linker can only warn and ignore the option if not recognized
19582      # So say no if there are warnings
19583      if test -s conftest.err; then
19584        # Append any errors to the config.log.
19585        cat conftest.err 1>&5
19586        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19587        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19588        if diff conftest.exp conftest.er2 >/dev/null; then
19589          lt_prog_compiler_static_works_CXX=yes
19590        fi
19591      else
19592        lt_prog_compiler_static_works_CXX=yes
19593      fi
19594    fi
19595    $rm conftest*
19596    LDFLAGS="$save_LDFLAGS"
19597
19598 fi
19599 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19600 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19601
19602 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19603     :
19604 else
19605     lt_prog_compiler_static_CXX=
19606 fi
19607
19608
19609 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19610 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19611 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614   lt_cv_prog_compiler_c_o_CXX=no
19615    $rm -r conftest 2>/dev/null
19616    mkdir conftest
19617    cd conftest
19618    mkdir out
19619    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19620
19621    lt_compiler_flag="-o out/conftest2.$ac_objext"
19622    # Insert the option either (1) after the last *FLAGS variable, or
19623    # (2) before a word containing "conftest.", or (3) at the end.
19624    # Note that $ac_compile itself does not contain backslashes and begins
19625    # with a dollar sign (not a hyphen), so the echo should work correctly.
19626    lt_compile=`echo "$ac_compile" | $SED \
19627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19629    -e 's:$: $lt_compiler_flag:'`
19630    (eval echo "\"\$as_me:19630: $lt_compile\"" >&5)
19631    (eval "$lt_compile" 2>out/conftest.err)
19632    ac_status=$?
19633    cat out/conftest.err >&5
19634    echo "$as_me:19634: \$? = $ac_status" >&5
19635    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19636    then
19637      # The compiler can only warn and ignore the option if not recognized
19638      # So say no if there are warnings
19639      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19640      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19641      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19642        lt_cv_prog_compiler_c_o_CXX=yes
19643      fi
19644    fi
19645    chmod u+w . 2>&5
19646    $rm conftest*
19647    # SGI C++ compiler will create directory out/ii_files/ for
19648    # template instantiation
19649    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19650    $rm out/* && rmdir out
19651    cd ..
19652    rmdir conftest
19653    $rm conftest*
19654
19655 fi
19656 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19657 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19658
19659
19660 hard_links="nottested"
19661 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19662   # do not overwrite the value of need_locks provided by the user
19663   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19664 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19665   hard_links=yes
19666   $rm conftest*
19667   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19668   touch conftest.a
19669   ln conftest.a conftest.b 2>&5 || hard_links=no
19670   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19671   { echo "$as_me:$LINENO: result: $hard_links" >&5
19672 echo "${ECHO_T}$hard_links" >&6; }
19673   if test "$hard_links" = no; then
19674     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19675 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19676     need_locks=warn
19677   fi
19678 else
19679   need_locks=no
19680 fi
19681
19682 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19683 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19684
19685   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19686   case $host_os in
19687   aix4* | aix5*)
19688     # If we're using GNU nm, then we don't want the "-C" option.
19689     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19690     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19691       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'
19692     else
19693       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'
19694     fi
19695     ;;
19696   pw32*)
19697     export_symbols_cmds_CXX="$ltdll_cmds"
19698   ;;
19699   cygwin* | mingw*)
19700     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'
19701   ;;
19702   *)
19703     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19704   ;;
19705   esac
19706
19707 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19708 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19709 test "$ld_shlibs_CXX" = no && can_build_shared=no
19710
19711 #
19712 # Do we need to explicitly link libc?
19713 #
19714 case "x$archive_cmds_need_lc_CXX" in
19715 x|xyes)
19716   # Assume -lc should be added
19717   archive_cmds_need_lc_CXX=yes
19718
19719   if test "$enable_shared" = yes && test "$GCC" = yes; then
19720     case $archive_cmds_CXX in
19721     *'~'*)
19722       # FIXME: we may have to deal with multi-command sequences.
19723       ;;
19724     '$CC '*)
19725       # Test whether the compiler implicitly links with -lc since on some
19726       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19727       # to ld, don't add -lc before -lgcc.
19728       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19729 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19730       $rm conftest*
19731       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19732
19733       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734   (eval $ac_compile) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } 2>conftest.err; then
19738         soname=conftest
19739         lib=conftest
19740         libobjs=conftest.$ac_objext
19741         deplibs=
19742         wl=$lt_prog_compiler_wl_CXX
19743         pic_flag=$lt_prog_compiler_pic_CXX
19744         compiler_flags=-v
19745         linker_flags=-v
19746         verstring=
19747         output_objdir=.
19748         libname=conftest
19749         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19750         allow_undefined_flag_CXX=
19751         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19752   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }
19756         then
19757           archive_cmds_need_lc_CXX=no
19758         else
19759           archive_cmds_need_lc_CXX=yes
19760         fi
19761         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19762       else
19763         cat conftest.err 1>&5
19764       fi
19765       $rm conftest*
19766       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19767 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19768       ;;
19769     esac
19770   fi
19771   ;;
19772 esac
19773
19774 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19775 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19776 library_names_spec=
19777 libname_spec='lib$name'
19778 soname_spec=
19779 shrext_cmds=".so"
19780 postinstall_cmds=
19781 postuninstall_cmds=
19782 finish_cmds=
19783 finish_eval=
19784 shlibpath_var=
19785 shlibpath_overrides_runpath=unknown
19786 version_type=none
19787 dynamic_linker="$host_os ld.so"
19788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19789 if test "$GCC" = yes; then
19790   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19791   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19792     # if the path contains ";" then we assume it to be the separator
19793     # otherwise default to the standard path separator (i.e. ":") - it is
19794     # assumed that no part of a normal pathname contains ";" but that should
19795     # okay in the real world where ";" in dirpaths is itself problematic.
19796     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19797   else
19798     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19799   fi
19800 else
19801   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19802 fi
19803 need_lib_prefix=unknown
19804 hardcode_into_libs=no
19805
19806 # when you set need_version to no, make sure it does not cause -set_version
19807 # flags to be left without arguments
19808 need_version=unknown
19809
19810 case $host_os in
19811 aix3*)
19812   version_type=linux
19813   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19814   shlibpath_var=LIBPATH
19815
19816   # AIX 3 has no versioning support, so we append a major version to the name.
19817   soname_spec='${libname}${release}${shared_ext}$major'
19818   ;;
19819
19820 aix4* | aix5*)
19821   version_type=linux
19822   need_lib_prefix=no
19823   need_version=no
19824   hardcode_into_libs=yes
19825   if test "$host_cpu" = ia64; then
19826     # AIX 5 supports IA64
19827     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19828     shlibpath_var=LD_LIBRARY_PATH
19829   else
19830     # With GCC up to 2.95.x, collect2 would create an import file
19831     # for dependence libraries.  The import file would start with
19832     # the line `#! .'.  This would cause the generated library to
19833     # depend on `.', always an invalid library.  This was fixed in
19834     # development snapshots of GCC prior to 3.0.
19835     case $host_os in
19836       aix4 | aix4.[01] | aix4.[01].*)
19837       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19838            echo ' yes '
19839            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19840         :
19841       else
19842         can_build_shared=no
19843       fi
19844       ;;
19845     esac
19846     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19847     # soname into executable. Probably we can add versioning support to
19848     # collect2, so additional links can be useful in future.
19849     if test "$aix_use_runtimelinking" = yes; then
19850       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19851       # instead of lib<name>.a to let people know that these are not
19852       # typical AIX shared libraries.
19853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19854     else
19855       # We preserve .a as extension for shared libraries through AIX4.2
19856       # and later when we are not doing run time linking.
19857       library_names_spec='${libname}${release}.a $libname.a'
19858       soname_spec='${libname}${release}${shared_ext}$major'
19859     fi
19860     shlibpath_var=LIBPATH
19861   fi
19862   ;;
19863
19864 amigaos*)
19865   library_names_spec='$libname.ixlibrary $libname.a'
19866   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19867   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'
19868   ;;
19869
19870 beos*)
19871   library_names_spec='${libname}${shared_ext}'
19872   dynamic_linker="$host_os ld.so"
19873   shlibpath_var=LIBRARY_PATH
19874   ;;
19875
19876 bsdi[45]*)
19877   version_type=linux
19878   need_version=no
19879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19880   soname_spec='${libname}${release}${shared_ext}$major'
19881   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19882   shlibpath_var=LD_LIBRARY_PATH
19883   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19884   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19885   # the default ld.so.conf also contains /usr/contrib/lib and
19886   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19887   # libtool to hard-code these into programs
19888   ;;
19889
19890 cygwin* | mingw* | pw32*)
19891   version_type=windows
19892   shrext_cmds=".dll"
19893   need_version=no
19894   need_lib_prefix=no
19895
19896   case $GCC,$host_os in
19897   yes,cygwin* | yes,mingw* | yes,pw32*)
19898     library_names_spec='$libname.dll.a'
19899     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19900     postinstall_cmds='base_file=`basename \${file}`~
19901       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19902       dldir=$destdir/`dirname \$dlpath`~
19903       test -d \$dldir || mkdir -p \$dldir~
19904       $install_prog $dir/$dlname \$dldir/$dlname~
19905       chmod a+x \$dldir/$dlname'
19906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19907       dlpath=$dir/\$dldll~
19908        $rm \$dlpath'
19909     shlibpath_overrides_runpath=yes
19910
19911     case $host_os in
19912     cygwin*)
19913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19915       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19916       ;;
19917     mingw*)
19918       # MinGW DLLs use traditional 'lib' prefix
19919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19920       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19921       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19922         # It is most probably a Windows format PATH printed by
19923         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19924         # path with ; separators, and with drive letters. We can handle the
19925         # drive letters (cygwin fileutils understands them), so leave them,
19926         # especially as we might pass files found there to a mingw objdump,
19927         # which wouldn't understand a cygwinified path. Ahh.
19928         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19929       else
19930         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19931       fi
19932       ;;
19933     pw32*)
19934       # pw32 DLLs use 'pw' prefix rather than 'lib'
19935       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19936       ;;
19937     esac
19938     ;;
19939
19940   *)
19941     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19942     ;;
19943   esac
19944   dynamic_linker='Win32 ld.exe'
19945   # FIXME: first we should search . and the directory the executable is in
19946   shlibpath_var=PATH
19947   ;;
19948
19949 darwin* | rhapsody*)
19950   dynamic_linker="$host_os dyld"
19951   version_type=darwin
19952   need_lib_prefix=no
19953   need_version=no
19954   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19955   soname_spec='${libname}${release}${major}$shared_ext'
19956   shlibpath_overrides_runpath=yes
19957   shlibpath_var=DYLD_LIBRARY_PATH
19958   shrext_cmds='.dylib'
19959   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19960   if test "$GCC" = yes; then
19961     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"`
19962   else
19963     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19964   fi
19965   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19966   ;;
19967
19968 dgux*)
19969   version_type=linux
19970   need_lib_prefix=no
19971   need_version=no
19972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19973   soname_spec='${libname}${release}${shared_ext}$major'
19974   shlibpath_var=LD_LIBRARY_PATH
19975   ;;
19976
19977 freebsd1*)
19978   dynamic_linker=no
19979   ;;
19980
19981 kfreebsd*-gnu)
19982   version_type=linux
19983   need_lib_prefix=no
19984   need_version=no
19985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19986   soname_spec='${libname}${release}${shared_ext}$major'
19987   shlibpath_var=LD_LIBRARY_PATH
19988   shlibpath_overrides_runpath=no
19989   hardcode_into_libs=yes
19990   dynamic_linker='GNU ld.so'
19991   ;;
19992
19993 freebsd* | dragonfly*)
19994   # DragonFly does not have aout.  When/if they implement a new
19995   # versioning mechanism, adjust this.
19996   if test -x /usr/bin/objformat; then
19997     objformat=`/usr/bin/objformat`
19998   else
19999     case $host_os in
20000     freebsd[123]*) objformat=aout ;;
20001     *) objformat=elf ;;
20002     esac
20003   fi
20004   version_type=freebsd-$objformat
20005   case $version_type in
20006     freebsd-elf*)
20007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20008       need_version=no
20009       need_lib_prefix=no
20010       ;;
20011     freebsd-*)
20012       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20013       need_version=yes
20014       ;;
20015   esac
20016   shlibpath_var=LD_LIBRARY_PATH
20017   case $host_os in
20018   freebsd2*)
20019     shlibpath_overrides_runpath=yes
20020     ;;
20021   freebsd3.[01]* | freebsdelf3.[01]*)
20022     shlibpath_overrides_runpath=yes
20023     hardcode_into_libs=yes
20024     ;;
20025   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20026   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20027     shlibpath_overrides_runpath=no
20028     hardcode_into_libs=yes
20029     ;;
20030   freebsd*) # from 4.6 on
20031     shlibpath_overrides_runpath=yes
20032     hardcode_into_libs=yes
20033     ;;
20034   esac
20035   ;;
20036
20037 gnu*)
20038   version_type=linux
20039   need_lib_prefix=no
20040   need_version=no
20041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20042   soname_spec='${libname}${release}${shared_ext}$major'
20043   shlibpath_var=LD_LIBRARY_PATH
20044   hardcode_into_libs=yes
20045   ;;
20046
20047 hpux9* | hpux10* | hpux11*)
20048   # Give a soname corresponding to the major version so that dld.sl refuses to
20049   # link against other versions.
20050   version_type=sunos
20051   need_lib_prefix=no
20052   need_version=no
20053   case $host_cpu in
20054   ia64*)
20055     shrext_cmds='.so'
20056     hardcode_into_libs=yes
20057     dynamic_linker="$host_os dld.so"
20058     shlibpath_var=LD_LIBRARY_PATH
20059     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20061     soname_spec='${libname}${release}${shared_ext}$major'
20062     if test "X$HPUX_IA64_MODE" = X32; then
20063       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20064     else
20065       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20066     fi
20067     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20068     ;;
20069    hppa*64*)
20070      shrext_cmds='.sl'
20071      hardcode_into_libs=yes
20072      dynamic_linker="$host_os dld.sl"
20073      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20074      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20075      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20076      soname_spec='${libname}${release}${shared_ext}$major'
20077      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20078      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20079      ;;
20080    *)
20081     shrext_cmds='.sl'
20082     dynamic_linker="$host_os dld.sl"
20083     shlibpath_var=SHLIB_PATH
20084     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20086     soname_spec='${libname}${release}${shared_ext}$major'
20087     ;;
20088   esac
20089   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20090   postinstall_cmds='chmod 555 $lib'
20091   ;;
20092
20093 interix3*)
20094   version_type=linux
20095   need_lib_prefix=no
20096   need_version=no
20097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20098   soname_spec='${libname}${release}${shared_ext}$major'
20099   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20100   shlibpath_var=LD_LIBRARY_PATH
20101   shlibpath_overrides_runpath=no
20102   hardcode_into_libs=yes
20103   ;;
20104
20105 irix5* | irix6* | nonstopux*)
20106   case $host_os in
20107     nonstopux*) version_type=nonstopux ;;
20108     *)
20109         if test "$lt_cv_prog_gnu_ld" = yes; then
20110                 version_type=linux
20111         else
20112                 version_type=irix
20113         fi ;;
20114   esac
20115   need_lib_prefix=no
20116   need_version=no
20117   soname_spec='${libname}${release}${shared_ext}$major'
20118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20119   case $host_os in
20120   irix5* | nonstopux*)
20121     libsuff= shlibsuff=
20122     ;;
20123   *)
20124     case $LD in # libtool.m4 will add one of these switches to LD
20125     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20126       libsuff= shlibsuff= libmagic=32-bit;;
20127     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20128       libsuff=32 shlibsuff=N32 libmagic=N32;;
20129     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20130       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20131     *) libsuff= shlibsuff= libmagic=never-match;;
20132     esac
20133     ;;
20134   esac
20135   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20136   shlibpath_overrides_runpath=no
20137   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20138   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20139   hardcode_into_libs=yes
20140   ;;
20141
20142 # No shared lib support for Linux oldld, aout, or coff.
20143 linux*oldld* | linux*aout* | linux*coff*)
20144   dynamic_linker=no
20145   ;;
20146
20147 # This must be Linux ELF.
20148 linux*)
20149   version_type=linux
20150   need_lib_prefix=no
20151   need_version=no
20152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20153   soname_spec='${libname}${release}${shared_ext}$major'
20154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20155   shlibpath_var=LD_LIBRARY_PATH
20156   shlibpath_overrides_runpath=no
20157   # This implies no fast_install, which is unacceptable.
20158   # Some rework will be needed to allow for fast_install
20159   # before this can be enabled.
20160   hardcode_into_libs=yes
20161
20162   # Append ld.so.conf contents to the search path
20163   if test -f /etc/ld.so.conf; then
20164     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' ' '`
20165     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20166   fi
20167
20168   # We used to test for /lib/ld.so.1 and disable shared libraries on
20169   # powerpc, because MkLinux only supported shared libraries with the
20170   # GNU dynamic linker.  Since this was broken with cross compilers,
20171   # most powerpc-linux boxes support dynamic linking these days and
20172   # people can always --disable-shared, the test was removed, and we
20173   # assume the GNU/Linux dynamic linker is in use.
20174   dynamic_linker='GNU/Linux ld.so'
20175   ;;
20176
20177 knetbsd*-gnu)
20178   version_type=linux
20179   need_lib_prefix=no
20180   need_version=no
20181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20182   soname_spec='${libname}${release}${shared_ext}$major'
20183   shlibpath_var=LD_LIBRARY_PATH
20184   shlibpath_overrides_runpath=no
20185   hardcode_into_libs=yes
20186   dynamic_linker='GNU ld.so'
20187   ;;
20188
20189 netbsd*)
20190   version_type=sunos
20191   need_lib_prefix=no
20192   need_version=no
20193   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20195     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20196     dynamic_linker='NetBSD (a.out) ld.so'
20197   else
20198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20199     soname_spec='${libname}${release}${shared_ext}$major'
20200     dynamic_linker='NetBSD ld.elf_so'
20201   fi
20202   shlibpath_var=LD_LIBRARY_PATH
20203   shlibpath_overrides_runpath=yes
20204   hardcode_into_libs=yes
20205   ;;
20206
20207 newsos6)
20208   version_type=linux
20209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210   shlibpath_var=LD_LIBRARY_PATH
20211   shlibpath_overrides_runpath=yes
20212   ;;
20213
20214 nto-qnx*)
20215   version_type=linux
20216   need_lib_prefix=no
20217   need_version=no
20218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219   soname_spec='${libname}${release}${shared_ext}$major'
20220   shlibpath_var=LD_LIBRARY_PATH
20221   shlibpath_overrides_runpath=yes
20222   ;;
20223
20224 openbsd*)
20225   version_type=sunos
20226   sys_lib_dlsearch_path_spec="/usr/lib"
20227   need_lib_prefix=no
20228   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20229   case $host_os in
20230     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20231     *)                         need_version=no  ;;
20232   esac
20233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20235   shlibpath_var=LD_LIBRARY_PATH
20236   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20237     case $host_os in
20238       openbsd2.[89] | openbsd2.[89].*)
20239         shlibpath_overrides_runpath=no
20240         ;;
20241       *)
20242         shlibpath_overrides_runpath=yes
20243         ;;
20244       esac
20245   else
20246     shlibpath_overrides_runpath=yes
20247   fi
20248   ;;
20249
20250 os2*)
20251   libname_spec='$name'
20252   shrext_cmds=".dll"
20253   need_lib_prefix=no
20254   library_names_spec='$libname${shared_ext} $libname.a'
20255   dynamic_linker='OS/2 ld.exe'
20256   shlibpath_var=LIBPATH
20257   ;;
20258
20259 osf3* | osf4* | osf5*)
20260   version_type=osf
20261   need_lib_prefix=no
20262   need_version=no
20263   soname_spec='${libname}${release}${shared_ext}$major'
20264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265   shlibpath_var=LD_LIBRARY_PATH
20266   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20267   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20268   ;;
20269
20270 solaris*)
20271   version_type=linux
20272   need_lib_prefix=no
20273   need_version=no
20274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20275   soname_spec='${libname}${release}${shared_ext}$major'
20276   shlibpath_var=LD_LIBRARY_PATH
20277   shlibpath_overrides_runpath=yes
20278   hardcode_into_libs=yes
20279   # ldd complains unless libraries are executable
20280   postinstall_cmds='chmod +x $lib'
20281   ;;
20282
20283 sunos4*)
20284   version_type=sunos
20285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20287   shlibpath_var=LD_LIBRARY_PATH
20288   shlibpath_overrides_runpath=yes
20289   if test "$with_gnu_ld" = yes; then
20290     need_lib_prefix=no
20291   fi
20292   need_version=yes
20293   ;;
20294
20295 sysv4 | sysv4.3*)
20296   version_type=linux
20297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20298   soname_spec='${libname}${release}${shared_ext}$major'
20299   shlibpath_var=LD_LIBRARY_PATH
20300   case $host_vendor in
20301     sni)
20302       shlibpath_overrides_runpath=no
20303       need_lib_prefix=no
20304       export_dynamic_flag_spec='${wl}-Blargedynsym'
20305       runpath_var=LD_RUN_PATH
20306       ;;
20307     siemens)
20308       need_lib_prefix=no
20309       ;;
20310     motorola)
20311       need_lib_prefix=no
20312       need_version=no
20313       shlibpath_overrides_runpath=no
20314       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20315       ;;
20316   esac
20317   ;;
20318
20319 sysv4*MP*)
20320   if test -d /usr/nec ;then
20321     version_type=linux
20322     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20323     soname_spec='$libname${shared_ext}.$major'
20324     shlibpath_var=LD_LIBRARY_PATH
20325   fi
20326   ;;
20327
20328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20329   version_type=freebsd-elf
20330   need_lib_prefix=no
20331   need_version=no
20332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20333   soname_spec='${libname}${release}${shared_ext}$major'
20334   shlibpath_var=LD_LIBRARY_PATH
20335   hardcode_into_libs=yes
20336   if test "$with_gnu_ld" = yes; then
20337     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20338     shlibpath_overrides_runpath=no
20339   else
20340     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20341     shlibpath_overrides_runpath=yes
20342     case $host_os in
20343       sco3.2v5*)
20344         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20345         ;;
20346     esac
20347   fi
20348   sys_lib_dlsearch_path_spec='/usr/lib'
20349   ;;
20350
20351 uts4*)
20352   version_type=linux
20353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354   soname_spec='${libname}${release}${shared_ext}$major'
20355   shlibpath_var=LD_LIBRARY_PATH
20356   ;;
20357
20358 *)
20359   dynamic_linker=no
20360   ;;
20361 esac
20362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20363 echo "${ECHO_T}$dynamic_linker" >&6; }
20364 test "$dynamic_linker" = no && can_build_shared=no
20365
20366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20367 if test "$GCC" = yes; then
20368   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20369 fi
20370
20371 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20372 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20373 hardcode_action_CXX=
20374 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20375    test -n "$runpath_var_CXX" || \
20376    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20377
20378   # We can hardcode non-existant directories.
20379   if test "$hardcode_direct_CXX" != no &&
20380      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20381      # have to relink, otherwise we might link with an installed library
20382      # when we should be linking with a yet-to-be-installed one
20383      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20384      test "$hardcode_minus_L_CXX" != no; then
20385     # Linking always hardcodes the temporary library directory.
20386     hardcode_action_CXX=relink
20387   else
20388     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20389     hardcode_action_CXX=immediate
20390   fi
20391 else
20392   # We cannot hardcode anything, or else we can only hardcode existing
20393   # directories.
20394   hardcode_action_CXX=unsupported
20395 fi
20396 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20397 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20398
20399 if test "$hardcode_action_CXX" = relink; then
20400   # Fast installation is not supported
20401   enable_fast_install=no
20402 elif test "$shlibpath_overrides_runpath" = yes ||
20403      test "$enable_shared" = no; then
20404   # Fast installation is not necessary
20405   enable_fast_install=needless
20406 fi
20407
20408
20409 # The else clause should only fire when bootstrapping the
20410 # libtool distribution, otherwise you forgot to ship ltmain.sh
20411 # with your package, and you will get complaints that there are
20412 # no rules to generate ltmain.sh.
20413 if test -f "$ltmain"; then
20414   # See if we are running on zsh, and set the options which allow our commands through
20415   # without removal of \ escapes.
20416   if test -n "${ZSH_VERSION+set}" ; then
20417     setopt NO_GLOB_SUBST
20418   fi
20419   # Now quote all the things that may contain metacharacters while being
20420   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20421   # variables and quote the copies for generation of the libtool script.
20422   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20423     SED SHELL STRIP \
20424     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20425     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20426     deplibs_check_method reload_flag reload_cmds need_locks \
20427     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20428     lt_cv_sys_global_symbol_to_c_name_address \
20429     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20430     old_postinstall_cmds old_postuninstall_cmds \
20431     compiler_CXX \
20432     CC_CXX \
20433     LD_CXX \
20434     lt_prog_compiler_wl_CXX \
20435     lt_prog_compiler_pic_CXX \
20436     lt_prog_compiler_static_CXX \
20437     lt_prog_compiler_no_builtin_flag_CXX \
20438     export_dynamic_flag_spec_CXX \
20439     thread_safe_flag_spec_CXX \
20440     whole_archive_flag_spec_CXX \
20441     enable_shared_with_static_runtimes_CXX \
20442     old_archive_cmds_CXX \
20443     old_archive_from_new_cmds_CXX \
20444     predep_objects_CXX \
20445     postdep_objects_CXX \
20446     predeps_CXX \
20447     postdeps_CXX \
20448     compiler_lib_search_path_CXX \
20449     archive_cmds_CXX \
20450     archive_expsym_cmds_CXX \
20451     postinstall_cmds_CXX \
20452     postuninstall_cmds_CXX \
20453     old_archive_from_expsyms_cmds_CXX \
20454     allow_undefined_flag_CXX \
20455     no_undefined_flag_CXX \
20456     export_symbols_cmds_CXX \
20457     hardcode_libdir_flag_spec_CXX \
20458     hardcode_libdir_flag_spec_ld_CXX \
20459     hardcode_libdir_separator_CXX \
20460     hardcode_automatic_CXX \
20461     module_cmds_CXX \
20462     module_expsym_cmds_CXX \
20463     lt_cv_prog_compiler_c_o_CXX \
20464     exclude_expsyms_CXX \
20465     include_expsyms_CXX; do
20466
20467     case $var in
20468     old_archive_cmds_CXX | \
20469     old_archive_from_new_cmds_CXX | \
20470     archive_cmds_CXX | \
20471     archive_expsym_cmds_CXX | \
20472     module_cmds_CXX | \
20473     module_expsym_cmds_CXX | \
20474     old_archive_from_expsyms_cmds_CXX | \
20475     export_symbols_cmds_CXX | \
20476     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20477     postinstall_cmds | postuninstall_cmds | \
20478     old_postinstall_cmds | old_postuninstall_cmds | \
20479     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20480       # Double-quote double-evaled strings.
20481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20482       ;;
20483     *)
20484       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20485       ;;
20486     esac
20487   done
20488
20489   case $lt_echo in
20490   *'\$0 --fallback-echo"')
20491     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20492     ;;
20493   esac
20494
20495 cfgfile="$ofile"
20496
20497   cat <<__EOF__ >> "$cfgfile"
20498 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20499
20500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20501
20502 # Shell to use when invoking shell scripts.
20503 SHELL=$lt_SHELL
20504
20505 # Whether or not to build shared libraries.
20506 build_libtool_libs=$enable_shared
20507
20508 # Whether or not to build static libraries.
20509 build_old_libs=$enable_static
20510
20511 # Whether or not to add -lc for building shared libraries.
20512 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20513
20514 # Whether or not to disallow shared libs when runtime libs are static
20515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20516
20517 # Whether or not to optimize for fast installation.
20518 fast_install=$enable_fast_install
20519
20520 # The host system.
20521 host_alias=$host_alias
20522 host=$host
20523 host_os=$host_os
20524
20525 # The build system.
20526 build_alias=$build_alias
20527 build=$build
20528 build_os=$build_os
20529
20530 # An echo program that does not interpret backslashes.
20531 echo=$lt_echo
20532
20533 # The archiver.
20534 AR=$lt_AR
20535 AR_FLAGS=$lt_AR_FLAGS
20536
20537 # A C compiler.
20538 LTCC=$lt_LTCC
20539
20540 # LTCC compiler flags.
20541 LTCFLAGS=$lt_LTCFLAGS
20542
20543 # A language-specific compiler.
20544 CC=$lt_compiler_CXX
20545
20546 # Is the compiler the GNU C compiler?
20547 with_gcc=$GCC_CXX
20548
20549 # An ERE matcher.
20550 EGREP=$lt_EGREP
20551
20552 # The linker used to build libraries.
20553 LD=$lt_LD_CXX
20554
20555 # Whether we need hard or soft links.
20556 LN_S=$lt_LN_S
20557
20558 # A BSD-compatible nm program.
20559 NM=$lt_NM
20560
20561 # A symbol stripping program
20562 STRIP=$lt_STRIP
20563
20564 # Used to examine libraries when file_magic_cmd begins "file"
20565 MAGIC_CMD=$MAGIC_CMD
20566
20567 # Used on cygwin: DLL creation program.
20568 DLLTOOL="$DLLTOOL"
20569
20570 # Used on cygwin: object dumper.
20571 OBJDUMP="$OBJDUMP"
20572
20573 # Used on cygwin: assembler.
20574 AS="$AS"
20575
20576 # The name of the directory that contains temporary libtool files.
20577 objdir=$objdir
20578
20579 # How to create reloadable object files.
20580 reload_flag=$lt_reload_flag
20581 reload_cmds=$lt_reload_cmds
20582
20583 # How to pass a linker flag through the compiler.
20584 wl=$lt_lt_prog_compiler_wl_CXX
20585
20586 # Object file suffix (normally "o").
20587 objext="$ac_objext"
20588
20589 # Old archive suffix (normally "a").
20590 libext="$libext"
20591
20592 # Shared library suffix (normally ".so").
20593 shrext_cmds='$shrext_cmds'
20594
20595 # Executable file suffix (normally "").
20596 exeext="$exeext"
20597
20598 # Additional compiler flags for building library objects.
20599 pic_flag=$lt_lt_prog_compiler_pic_CXX
20600 pic_mode=$pic_mode
20601
20602 # What is the maximum length of a command?
20603 max_cmd_len=$lt_cv_sys_max_cmd_len
20604
20605 # Does compiler simultaneously support -c and -o options?
20606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20607
20608 # Must we lock files when doing compilation?
20609 need_locks=$lt_need_locks
20610
20611 # Do we need the lib prefix for modules?
20612 need_lib_prefix=$need_lib_prefix
20613
20614 # Do we need a version for libraries?
20615 need_version=$need_version
20616
20617 # Whether dlopen is supported.
20618 dlopen_support=$enable_dlopen
20619
20620 # Whether dlopen of programs is supported.
20621 dlopen_self=$enable_dlopen_self
20622
20623 # Whether dlopen of statically linked programs is supported.
20624 dlopen_self_static=$enable_dlopen_self_static
20625
20626 # Compiler flag to prevent dynamic linking.
20627 link_static_flag=$lt_lt_prog_compiler_static_CXX
20628
20629 # Compiler flag to turn off builtin functions.
20630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20631
20632 # Compiler flag to allow reflexive dlopens.
20633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20634
20635 # Compiler flag to generate shared objects directly from archives.
20636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20637
20638 # Compiler flag to generate thread-safe objects.
20639 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20640
20641 # Library versioning type.
20642 version_type=$version_type
20643
20644 # Format of library name prefix.
20645 libname_spec=$lt_libname_spec
20646
20647 # List of archive names.  First name is the real one, the rest are links.
20648 # The last name is the one that the linker finds with -lNAME.
20649 library_names_spec=$lt_library_names_spec
20650
20651 # The coded name of the library, if different from the real name.
20652 soname_spec=$lt_soname_spec
20653
20654 # Commands used to build and install an old-style archive.
20655 RANLIB=$lt_RANLIB
20656 old_archive_cmds=$lt_old_archive_cmds_CXX
20657 old_postinstall_cmds=$lt_old_postinstall_cmds
20658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20659
20660 # Create an old-style archive from a shared archive.
20661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20662
20663 # Create a temporary old-style archive to link instead of a shared archive.
20664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20665
20666 # Commands used to build and install a shared archive.
20667 archive_cmds=$lt_archive_cmds_CXX
20668 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20669 postinstall_cmds=$lt_postinstall_cmds
20670 postuninstall_cmds=$lt_postuninstall_cmds
20671
20672 # Commands used to build a loadable module (assumed same as above if empty)
20673 module_cmds=$lt_module_cmds_CXX
20674 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20675
20676 # Commands to strip libraries.
20677 old_striplib=$lt_old_striplib
20678 striplib=$lt_striplib
20679
20680 # Dependencies to place before the objects being linked to create a
20681 # shared library.
20682 predep_objects=$lt_predep_objects_CXX
20683
20684 # Dependencies to place after the objects being linked to create a
20685 # shared library.
20686 postdep_objects=$lt_postdep_objects_CXX
20687
20688 # Dependencies to place before the objects being linked to create a
20689 # shared library.
20690 predeps=$lt_predeps_CXX
20691
20692 # Dependencies to place after the objects being linked to create a
20693 # shared library.
20694 postdeps=$lt_postdeps_CXX
20695
20696 # The library search path used internally by the compiler when linking
20697 # a shared library.
20698 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20699
20700 # Method to check whether dependent libraries are shared objects.
20701 deplibs_check_method=$lt_deplibs_check_method
20702
20703 # Command to use when deplibs_check_method == file_magic.
20704 file_magic_cmd=$lt_file_magic_cmd
20705
20706 # Flag that allows shared libraries with undefined symbols to be built.
20707 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20708
20709 # Flag that forces no undefined symbols.
20710 no_undefined_flag=$lt_no_undefined_flag_CXX
20711
20712 # Commands used to finish a libtool library installation in a directory.
20713 finish_cmds=$lt_finish_cmds
20714
20715 # Same as above, but a single script fragment to be evaled but not shown.
20716 finish_eval=$lt_finish_eval
20717
20718 # Take the output of nm and produce a listing of raw symbols and C names.
20719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20720
20721 # Transform the output of nm in a proper C declaration
20722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20723
20724 # Transform the output of nm in a C name address pair
20725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20726
20727 # This is the shared library runtime path variable.
20728 runpath_var=$runpath_var
20729
20730 # This is the shared library path variable.
20731 shlibpath_var=$shlibpath_var
20732
20733 # Is shlibpath searched before the hard-coded library search path?
20734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20735
20736 # How to hardcode a shared library path into an executable.
20737 hardcode_action=$hardcode_action_CXX
20738
20739 # Whether we should hardcode library paths into libraries.
20740 hardcode_into_libs=$hardcode_into_libs
20741
20742 # Flag to hardcode \$libdir into a binary during linking.
20743 # This must work even if \$libdir does not exist.
20744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20745
20746 # If ld is used when linking, flag to hardcode \$libdir into
20747 # a binary during linking. This must work even if \$libdir does
20748 # not exist.
20749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20750
20751 # Whether we need a single -rpath flag with a separated argument.
20752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20753
20754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20755 # resulting binary.
20756 hardcode_direct=$hardcode_direct_CXX
20757
20758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20759 # resulting binary.
20760 hardcode_minus_L=$hardcode_minus_L_CXX
20761
20762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20763 # the resulting binary.
20764 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20765
20766 # Set to yes if building a shared library automatically hardcodes DIR into the library
20767 # and all subsequent libraries and executables linked against it.
20768 hardcode_automatic=$hardcode_automatic_CXX
20769
20770 # Variables whose values should be saved in libtool wrapper scripts and
20771 # restored at relink time.
20772 variables_saved_for_relink="$variables_saved_for_relink"
20773
20774 # Whether libtool must link a program against all its dependency libraries.
20775 link_all_deplibs=$link_all_deplibs_CXX
20776
20777 # Compile-time system search path for libraries
20778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20779
20780 # Run-time system search path for libraries
20781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20782
20783 # Fix the shell variable \$srcfile for the compiler.
20784 fix_srcfile_path="$fix_srcfile_path_CXX"
20785
20786 # Set to yes if exported symbols are required.
20787 always_export_symbols=$always_export_symbols_CXX
20788
20789 # The commands to list exported symbols.
20790 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20791
20792 # The commands to extract the exported symbol list from a shared archive.
20793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20794
20795 # Symbols that should not be listed in the preloaded symbols.
20796 exclude_expsyms=$lt_exclude_expsyms_CXX
20797
20798 # Symbols that must always be exported.
20799 include_expsyms=$lt_include_expsyms_CXX
20800
20801 # ### END LIBTOOL TAG CONFIG: $tagname
20802
20803 __EOF__
20804
20805
20806 else
20807   # If there is no Makefile yet, we rely on a make rule to execute
20808   # `config.status --recheck' to rerun these tests and create the
20809   # libtool script then.
20810   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20811   if test -f "$ltmain_in"; then
20812     test -f Makefile && make "$ltmain"
20813   fi
20814 fi
20815
20816
20817 ac_ext=c
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823 CC=$lt_save_CC
20824 LDCXX=$LD
20825 LD=$lt_save_LD
20826 GCC=$lt_save_GCC
20827 with_gnu_ldcxx=$with_gnu_ld
20828 with_gnu_ld=$lt_save_with_gnu_ld
20829 lt_cv_path_LDCXX=$lt_cv_path_LD
20830 lt_cv_path_LD=$lt_save_path_LD
20831 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20832 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20833
20834         else
20835           tagname=""
20836         fi
20837         ;;
20838
20839       F77)
20840         if test -n "$F77" && test "X$F77" != "Xno"; then
20841
20842 ac_ext=f
20843 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20844 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20846
20847
20848 archive_cmds_need_lc_F77=no
20849 allow_undefined_flag_F77=
20850 always_export_symbols_F77=no
20851 archive_expsym_cmds_F77=
20852 export_dynamic_flag_spec_F77=
20853 hardcode_direct_F77=no
20854 hardcode_libdir_flag_spec_F77=
20855 hardcode_libdir_flag_spec_ld_F77=
20856 hardcode_libdir_separator_F77=
20857 hardcode_minus_L_F77=no
20858 hardcode_automatic_F77=no
20859 module_cmds_F77=
20860 module_expsym_cmds_F77=
20861 link_all_deplibs_F77=unknown
20862 old_archive_cmds_F77=$old_archive_cmds
20863 no_undefined_flag_F77=
20864 whole_archive_flag_spec_F77=
20865 enable_shared_with_static_runtimes_F77=no
20866
20867 # Source file extension for f77 test sources.
20868 ac_ext=f
20869
20870 # Object file extension for compiled f77 test sources.
20871 objext=o
20872 objext_F77=$objext
20873
20874 # Code to be used in simple compile tests
20875 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20876
20877 # Code to be used in simple link tests
20878 lt_simple_link_test_code="      program t\n      end\n"
20879
20880 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20881
20882 # If no C compiler was specified, use CC.
20883 LTCC=${LTCC-"$CC"}
20884
20885 # If no C compiler flags were specified, use CFLAGS.
20886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20887
20888 # Allow CC to be a program name with arguments.
20889 compiler=$CC
20890
20891
20892 # save warnings/boilerplate of simple test code
20893 ac_outfile=conftest.$ac_objext
20894 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20895 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20896 _lt_compiler_boilerplate=`cat conftest.err`
20897 $rm conftest*
20898
20899 ac_outfile=conftest.$ac_objext
20900 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20901 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20902 _lt_linker_boilerplate=`cat conftest.err`
20903 $rm conftest*
20904
20905
20906 # Allow CC to be a program name with arguments.
20907 lt_save_CC="$CC"
20908 CC=${F77-"f77"}
20909 compiler=$CC
20910 compiler_F77=$CC
20911 for cc_temp in $compiler""; do
20912   case $cc_temp in
20913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20915     \-*) ;;
20916     *) break;;
20917   esac
20918 done
20919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20920
20921
20922 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20923 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20924 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20925 echo "${ECHO_T}$can_build_shared" >&6; }
20926
20927 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20928 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20929 test "$can_build_shared" = "no" && enable_shared=no
20930
20931 # On AIX, shared libraries and static libraries use the same namespace, and
20932 # are all built from PIC.
20933 case $host_os in
20934 aix3*)
20935   test "$enable_shared" = yes && enable_static=no
20936   if test -n "$RANLIB"; then
20937     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20938     postinstall_cmds='$RANLIB $lib'
20939   fi
20940   ;;
20941 aix4* | aix5*)
20942   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20943     test "$enable_shared" = yes && enable_static=no
20944   fi
20945   ;;
20946 esac
20947 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20948 echo "${ECHO_T}$enable_shared" >&6; }
20949
20950 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20951 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20952 # Make sure either enable_shared or enable_static is yes.
20953 test "$enable_shared" = yes || enable_static=yes
20954 { echo "$as_me:$LINENO: result: $enable_static" >&5
20955 echo "${ECHO_T}$enable_static" >&6; }
20956
20957 GCC_F77="$G77"
20958 LD_F77="$LD"
20959
20960 lt_prog_compiler_wl_F77=
20961 lt_prog_compiler_pic_F77=
20962 lt_prog_compiler_static_F77=
20963
20964 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20965 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20966
20967   if test "$GCC" = yes; then
20968     lt_prog_compiler_wl_F77='-Wl,'
20969     lt_prog_compiler_static_F77='-static'
20970
20971     case $host_os in
20972       aix*)
20973       # All AIX code is PIC.
20974       if test "$host_cpu" = ia64; then
20975         # AIX 5 now supports IA64 processor
20976         lt_prog_compiler_static_F77='-Bstatic'
20977       fi
20978       ;;
20979
20980     amigaos*)
20981       # FIXME: we need at least 68020 code to build shared libraries, but
20982       # adding the `-m68020' flag to GCC prevents building anything better,
20983       # like `-m68040'.
20984       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20985       ;;
20986
20987     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20988       # PIC is the default for these OSes.
20989       ;;
20990
20991     mingw* | pw32* | os2*)
20992       # This hack is so that the source file can tell whether it is being
20993       # built for inclusion in a dll (and should export symbols for example).
20994       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20995       ;;
20996
20997     darwin* | rhapsody*)
20998       # PIC is the default on this platform
20999       # Common symbols not allowed in MH_DYLIB files
21000       lt_prog_compiler_pic_F77='-fno-common'
21001       ;;
21002
21003     interix3*)
21004       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21005       # Instead, we relocate shared libraries at runtime.
21006       ;;
21007
21008     msdosdjgpp*)
21009       # Just because we use GCC doesn't mean we suddenly get shared libraries
21010       # on systems that don't support them.
21011       lt_prog_compiler_can_build_shared_F77=no
21012       enable_shared=no
21013       ;;
21014
21015     sysv4*MP*)
21016       if test -d /usr/nec; then
21017         lt_prog_compiler_pic_F77=-Kconform_pic
21018       fi
21019       ;;
21020
21021     hpux*)
21022       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21023       # not for PA HP-UX.
21024       case $host_cpu in
21025       hppa*64*|ia64*)
21026         # +Z the default
21027         ;;
21028       *)
21029         lt_prog_compiler_pic_F77='-fPIC'
21030         ;;
21031       esac
21032       ;;
21033
21034     *)
21035       lt_prog_compiler_pic_F77='-fPIC'
21036       ;;
21037     esac
21038   else
21039     # PORTME Check for flag to pass linker flags through the system compiler.
21040     case $host_os in
21041     aix*)
21042       lt_prog_compiler_wl_F77='-Wl,'
21043       if test "$host_cpu" = ia64; then
21044         # AIX 5 now supports IA64 processor
21045         lt_prog_compiler_static_F77='-Bstatic'
21046       else
21047         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21048       fi
21049       ;;
21050       darwin*)
21051         # PIC is the default on this platform
21052         # Common symbols not allowed in MH_DYLIB files
21053        case $cc_basename in
21054          xlc*)
21055          lt_prog_compiler_pic_F77='-qnocommon'
21056          lt_prog_compiler_wl_F77='-Wl,'
21057          ;;
21058        esac
21059        ;;
21060
21061     mingw* | pw32* | os2*)
21062       # This hack is so that the source file can tell whether it is being
21063       # built for inclusion in a dll (and should export symbols for example).
21064       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21065       ;;
21066
21067     hpux9* | hpux10* | hpux11*)
21068       lt_prog_compiler_wl_F77='-Wl,'
21069       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21070       # not for PA HP-UX.
21071       case $host_cpu in
21072       hppa*64*|ia64*)
21073         # +Z the default
21074         ;;
21075       *)
21076         lt_prog_compiler_pic_F77='+Z'
21077         ;;
21078       esac
21079       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21080       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21081       ;;
21082
21083     irix5* | irix6* | nonstopux*)
21084       lt_prog_compiler_wl_F77='-Wl,'
21085       # PIC (with -KPIC) is the default.
21086       lt_prog_compiler_static_F77='-non_shared'
21087       ;;
21088
21089     newsos6)
21090       lt_prog_compiler_pic_F77='-KPIC'
21091       lt_prog_compiler_static_F77='-Bstatic'
21092       ;;
21093
21094     linux*)
21095       case $cc_basename in
21096       icc* | ecc*)
21097         lt_prog_compiler_wl_F77='-Wl,'
21098         lt_prog_compiler_pic_F77='-KPIC'
21099         lt_prog_compiler_static_F77='-static'
21100         ;;
21101       pgcc* | pgf77* | pgf90* | pgf95*)
21102         # Portland Group compilers (*not* the Pentium gcc compiler,
21103         # which looks to be a dead project)
21104         lt_prog_compiler_wl_F77='-Wl,'
21105         lt_prog_compiler_pic_F77='-fpic'
21106         lt_prog_compiler_static_F77='-Bstatic'
21107         ;;
21108       ccc*)
21109         lt_prog_compiler_wl_F77='-Wl,'
21110         # All Alpha code is PIC.
21111         lt_prog_compiler_static_F77='-non_shared'
21112         ;;
21113       esac
21114       ;;
21115
21116     osf3* | osf4* | osf5*)
21117       lt_prog_compiler_wl_F77='-Wl,'
21118       # All OSF/1 code is PIC.
21119       lt_prog_compiler_static_F77='-non_shared'
21120       ;;
21121
21122     solaris*)
21123       lt_prog_compiler_pic_F77='-KPIC'
21124       lt_prog_compiler_static_F77='-Bstatic'
21125       case $cc_basename in
21126       f77* | f90* | f95*)
21127         lt_prog_compiler_wl_F77='-Qoption ld ';;
21128       *)
21129         lt_prog_compiler_wl_F77='-Wl,';;
21130       esac
21131       ;;
21132
21133     sunos4*)
21134       lt_prog_compiler_wl_F77='-Qoption ld '
21135       lt_prog_compiler_pic_F77='-PIC'
21136       lt_prog_compiler_static_F77='-Bstatic'
21137       ;;
21138
21139     sysv4 | sysv4.2uw2* | sysv4.3*)
21140       lt_prog_compiler_wl_F77='-Wl,'
21141       lt_prog_compiler_pic_F77='-KPIC'
21142       lt_prog_compiler_static_F77='-Bstatic'
21143       ;;
21144
21145     sysv4*MP*)
21146       if test -d /usr/nec ;then
21147         lt_prog_compiler_pic_F77='-Kconform_pic'
21148         lt_prog_compiler_static_F77='-Bstatic'
21149       fi
21150       ;;
21151
21152     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21153       lt_prog_compiler_wl_F77='-Wl,'
21154       lt_prog_compiler_pic_F77='-KPIC'
21155       lt_prog_compiler_static_F77='-Bstatic'
21156       ;;
21157
21158     unicos*)
21159       lt_prog_compiler_wl_F77='-Wl,'
21160       lt_prog_compiler_can_build_shared_F77=no
21161       ;;
21162
21163     uts4*)
21164       lt_prog_compiler_pic_F77='-pic'
21165       lt_prog_compiler_static_F77='-Bstatic'
21166       ;;
21167
21168     *)
21169       lt_prog_compiler_can_build_shared_F77=no
21170       ;;
21171     esac
21172   fi
21173
21174 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21175 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21176
21177 #
21178 # Check to make sure the PIC flag actually works.
21179 #
21180 if test -n "$lt_prog_compiler_pic_F77"; then
21181
21182 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21183 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21184 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187   lt_prog_compiler_pic_works_F77=no
21188   ac_outfile=conftest.$ac_objext
21189    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21190    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21191    # Insert the option either (1) after the last *FLAGS variable, or
21192    # (2) before a word containing "conftest.", or (3) at the end.
21193    # Note that $ac_compile itself does not contain backslashes and begins
21194    # with a dollar sign (not a hyphen), so the echo should work correctly.
21195    # The option is referenced via a variable to avoid confusing sed.
21196    lt_compile=`echo "$ac_compile" | $SED \
21197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21199    -e 's:$: $lt_compiler_flag:'`
21200    (eval echo "\"\$as_me:21200: $lt_compile\"" >&5)
21201    (eval "$lt_compile" 2>conftest.err)
21202    ac_status=$?
21203    cat conftest.err >&5
21204    echo "$as_me:21204: \$? = $ac_status" >&5
21205    if (exit $ac_status) && test -s "$ac_outfile"; then
21206      # The compiler can only warn and ignore the option if not recognized
21207      # So say no if there are warnings other than the usual output.
21208      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21209      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21210      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21211        lt_prog_compiler_pic_works_F77=yes
21212      fi
21213    fi
21214    $rm conftest*
21215
21216 fi
21217 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21218 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21219
21220 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21221     case $lt_prog_compiler_pic_F77 in
21222      "" | " "*) ;;
21223      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21224      esac
21225 else
21226     lt_prog_compiler_pic_F77=
21227      lt_prog_compiler_can_build_shared_F77=no
21228 fi
21229
21230 fi
21231 case $host_os in
21232   # For platforms which do not support PIC, -DPIC is meaningless:
21233   *djgpp*)
21234     lt_prog_compiler_pic_F77=
21235     ;;
21236   *)
21237     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21238     ;;
21239 esac
21240
21241 #
21242 # Check to make sure the static flag actually works.
21243 #
21244 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21245 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21246 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21247 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21248   echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250   lt_prog_compiler_static_works_F77=no
21251    save_LDFLAGS="$LDFLAGS"
21252    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21253    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21254    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21255      # The linker can only warn and ignore the option if not recognized
21256      # So say no if there are warnings
21257      if test -s conftest.err; then
21258        # Append any errors to the config.log.
21259        cat conftest.err 1>&5
21260        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21261        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21262        if diff conftest.exp conftest.er2 >/dev/null; then
21263          lt_prog_compiler_static_works_F77=yes
21264        fi
21265      else
21266        lt_prog_compiler_static_works_F77=yes
21267      fi
21268    fi
21269    $rm conftest*
21270    LDFLAGS="$save_LDFLAGS"
21271
21272 fi
21273 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21274 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21275
21276 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21277     :
21278 else
21279     lt_prog_compiler_static_F77=
21280 fi
21281
21282
21283 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21285 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   lt_cv_prog_compiler_c_o_F77=no
21289    $rm -r conftest 2>/dev/null
21290    mkdir conftest
21291    cd conftest
21292    mkdir out
21293    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21294
21295    lt_compiler_flag="-o out/conftest2.$ac_objext"
21296    # Insert the option either (1) after the last *FLAGS variable, or
21297    # (2) before a word containing "conftest.", or (3) at the end.
21298    # Note that $ac_compile itself does not contain backslashes and begins
21299    # with a dollar sign (not a hyphen), so the echo should work correctly.
21300    lt_compile=`echo "$ac_compile" | $SED \
21301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21303    -e 's:$: $lt_compiler_flag:'`
21304    (eval echo "\"\$as_me:21304: $lt_compile\"" >&5)
21305    (eval "$lt_compile" 2>out/conftest.err)
21306    ac_status=$?
21307    cat out/conftest.err >&5
21308    echo "$as_me:21308: \$? = $ac_status" >&5
21309    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21310    then
21311      # The compiler can only warn and ignore the option if not recognized
21312      # So say no if there are warnings
21313      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21314      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21315      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21316        lt_cv_prog_compiler_c_o_F77=yes
21317      fi
21318    fi
21319    chmod u+w . 2>&5
21320    $rm conftest*
21321    # SGI C++ compiler will create directory out/ii_files/ for
21322    # template instantiation
21323    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21324    $rm out/* && rmdir out
21325    cd ..
21326    rmdir conftest
21327    $rm conftest*
21328
21329 fi
21330 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21331 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21332
21333
21334 hard_links="nottested"
21335 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21336   # do not overwrite the value of need_locks provided by the user
21337   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21338 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21339   hard_links=yes
21340   $rm conftest*
21341   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21342   touch conftest.a
21343   ln conftest.a conftest.b 2>&5 || hard_links=no
21344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21345   { echo "$as_me:$LINENO: result: $hard_links" >&5
21346 echo "${ECHO_T}$hard_links" >&6; }
21347   if test "$hard_links" = no; then
21348     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21349 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21350     need_locks=warn
21351   fi
21352 else
21353   need_locks=no
21354 fi
21355
21356 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21357 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21358
21359   runpath_var=
21360   allow_undefined_flag_F77=
21361   enable_shared_with_static_runtimes_F77=no
21362   archive_cmds_F77=
21363   archive_expsym_cmds_F77=
21364   old_archive_From_new_cmds_F77=
21365   old_archive_from_expsyms_cmds_F77=
21366   export_dynamic_flag_spec_F77=
21367   whole_archive_flag_spec_F77=
21368   thread_safe_flag_spec_F77=
21369   hardcode_libdir_flag_spec_F77=
21370   hardcode_libdir_flag_spec_ld_F77=
21371   hardcode_libdir_separator_F77=
21372   hardcode_direct_F77=no
21373   hardcode_minus_L_F77=no
21374   hardcode_shlibpath_var_F77=unsupported
21375   link_all_deplibs_F77=unknown
21376   hardcode_automatic_F77=no
21377   module_cmds_F77=
21378   module_expsym_cmds_F77=
21379   always_export_symbols_F77=no
21380   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21381   # include_expsyms should be a list of space-separated symbols to be *always*
21382   # included in the symbol list
21383   include_expsyms_F77=
21384   # exclude_expsyms can be an extended regexp of symbols to exclude
21385   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21386   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21387   # as well as any symbol that contains `d'.
21388   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21389   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21390   # platforms (ab)use it in PIC code, but their linkers get confused if
21391   # the symbol is explicitly referenced.  Since portable code cannot
21392   # rely on this symbol name, it's probably fine to never include it in
21393   # preloaded symbol tables.
21394   extract_expsyms_cmds=
21395   # Just being paranoid about ensuring that cc_basename is set.
21396   for cc_temp in $compiler""; do
21397   case $cc_temp in
21398     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21399     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21400     \-*) ;;
21401     *) break;;
21402   esac
21403 done
21404 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21405
21406   case $host_os in
21407   cygwin* | mingw* | pw32*)
21408     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21409     # When not using gcc, we currently assume that we are using
21410     # Microsoft Visual C++.
21411     if test "$GCC" != yes; then
21412       with_gnu_ld=no
21413     fi
21414     ;;
21415   interix*)
21416     # we just hope/assume this is gcc and not c89 (= MSVC++)
21417     with_gnu_ld=yes
21418     ;;
21419   openbsd*)
21420     with_gnu_ld=no
21421     ;;
21422   esac
21423
21424   ld_shlibs_F77=yes
21425   if test "$with_gnu_ld" = yes; then
21426     # If archive_cmds runs LD, not CC, wlarc should be empty
21427     wlarc='${wl}'
21428
21429     # Set some defaults for GNU ld with shared library support. These
21430     # are reset later if shared libraries are not supported. Putting them
21431     # here allows them to be overridden if necessary.
21432     runpath_var=LD_RUN_PATH
21433     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21434     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21435     # ancient GNU ld didn't support --whole-archive et. al.
21436     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21437         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21438       else
21439         whole_archive_flag_spec_F77=
21440     fi
21441     supports_anon_versioning=no
21442     case `$LD -v 2>/dev/null` in
21443       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21444       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21445       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21446       *\ 2.11.*) ;; # other 2.11 versions
21447       *) supports_anon_versioning=yes ;;
21448     esac
21449
21450     # See if GNU ld supports shared libraries.
21451     case $host_os in
21452     aix3* | aix4* | aix5*)
21453       # On AIX/PPC, the GNU linker is very broken
21454       if test "$host_cpu" != ia64; then
21455         ld_shlibs_F77=no
21456         cat <<EOF 1>&2
21457
21458 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21459 *** to be unable to reliably create shared libraries on AIX.
21460 *** Therefore, libtool is disabling shared libraries support.  If you
21461 *** really care for shared libraries, you may want to modify your PATH
21462 *** so that a non-GNU linker is found, and then restart.
21463
21464 EOF
21465       fi
21466       ;;
21467
21468     amigaos*)
21469       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)'
21470       hardcode_libdir_flag_spec_F77='-L$libdir'
21471       hardcode_minus_L_F77=yes
21472
21473       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21474       # that the semantics of dynamic libraries on AmigaOS, at least up
21475       # to version 4, is to share data among multiple programs linked
21476       # with the same dynamic library.  Since this doesn't match the
21477       # behavior of shared libraries on other platforms, we can't use
21478       # them.
21479       ld_shlibs_F77=no
21480       ;;
21481
21482     beos*)
21483       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21484         allow_undefined_flag_F77=unsupported
21485         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21486         # support --undefined.  This deserves some investigation.  FIXME
21487         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488       else
21489         ld_shlibs_F77=no
21490       fi
21491       ;;
21492
21493     cygwin* | mingw* | pw32*)
21494       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21495       # as there is no search path for DLLs.
21496       hardcode_libdir_flag_spec_F77='-L$libdir'
21497       allow_undefined_flag_F77=unsupported
21498       always_export_symbols_F77=no
21499       enable_shared_with_static_runtimes_F77=yes
21500       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21501
21502       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21503         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21504         # If the export-symbols file already is a .def file (1st line
21505         # is EXPORTS), use it as is; otherwise, prepend...
21506         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21507           cp $export_symbols $output_objdir/$soname.def;
21508         else
21509           echo EXPORTS > $output_objdir/$soname.def;
21510           cat $export_symbols >> $output_objdir/$soname.def;
21511         fi~
21512         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21513       else
21514         ld_shlibs_F77=no
21515       fi
21516       ;;
21517
21518     interix3*)
21519       hardcode_direct_F77=no
21520       hardcode_shlibpath_var_F77=no
21521       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21522       export_dynamic_flag_spec_F77='${wl}-E'
21523       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21524       # Instead, shared libraries are loaded at an image base (0x10000000 by
21525       # default) and relocated if they conflict, which is a slow very memory
21526       # consuming and fragmenting process.  To avoid this, we pick a random,
21527       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21528       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21529       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'
21530       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'
21531       ;;
21532
21533     linux*)
21534       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21535         tmp_addflag=
21536         case $cc_basename,$host_cpu in
21537         pgcc*)                          # Portland Group C compiler
21538           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'
21539           tmp_addflag=' $pic_flag'
21540           ;;
21541         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21542           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'
21543           tmp_addflag=' $pic_flag -Mnomain' ;;
21544         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21545           tmp_addflag=' -i_dynamic' ;;
21546         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21547           tmp_addflag=' -i_dynamic -nofor_main' ;;
21548         ifc* | ifort*)                  # Intel Fortran compiler
21549           tmp_addflag=' -nofor_main' ;;
21550         esac
21551         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21552
21553         if test $supports_anon_versioning = yes; then
21554           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21555   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21556   $echo "local: *; };" >> $output_objdir/$libname.ver~
21557           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21558         fi
21559       else
21560         ld_shlibs_F77=no
21561       fi
21562       ;;
21563
21564     netbsd*)
21565       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21566         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21567         wlarc=
21568       else
21569         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21570         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21571       fi
21572       ;;
21573
21574     solaris*)
21575       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21576         ld_shlibs_F77=no
21577         cat <<EOF 1>&2
21578
21579 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21580 *** create shared libraries on Solaris systems.  Therefore, libtool
21581 *** is disabling shared libraries support.  We urge you to upgrade GNU
21582 *** binutils to release 2.9.1 or newer.  Another option is to modify
21583 *** your PATH or compiler configuration so that the native linker is
21584 *** used, and then restart.
21585
21586 EOF
21587       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21588         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21590       else
21591         ld_shlibs_F77=no
21592       fi
21593       ;;
21594
21595     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21596       case `$LD -v 2>&1` in
21597         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21598         ld_shlibs_F77=no
21599         cat <<_LT_EOF 1>&2
21600
21601 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21602 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21603 *** is disabling shared libraries support.  We urge you to upgrade GNU
21604 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21605 *** your PATH or compiler configuration so that the native linker is
21606 *** used, and then restart.
21607
21608 _LT_EOF
21609         ;;
21610         *)
21611           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21612             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21613             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21614             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21615           else
21616             ld_shlibs_F77=no
21617           fi
21618         ;;
21619       esac
21620       ;;
21621
21622     sunos4*)
21623       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21624       wlarc=
21625       hardcode_direct_F77=yes
21626       hardcode_shlibpath_var_F77=no
21627       ;;
21628
21629     *)
21630       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21631         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21632         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21633       else
21634         ld_shlibs_F77=no
21635       fi
21636       ;;
21637     esac
21638
21639     if test "$ld_shlibs_F77" = no; then
21640       runpath_var=
21641       hardcode_libdir_flag_spec_F77=
21642       export_dynamic_flag_spec_F77=
21643       whole_archive_flag_spec_F77=
21644     fi
21645   else
21646     # PORTME fill in a description of your system's linker (not GNU ld)
21647     case $host_os in
21648     aix3*)
21649       allow_undefined_flag_F77=unsupported
21650       always_export_symbols_F77=yes
21651       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'
21652       # Note: this linker hardcodes the directories in LIBPATH if there
21653       # are no directories specified by -L.
21654       hardcode_minus_L_F77=yes
21655       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21656         # Neither direct hardcoding nor static linking is supported with a
21657         # broken collect2.
21658         hardcode_direct_F77=unsupported
21659       fi
21660       ;;
21661
21662     aix4* | aix5*)
21663       if test "$host_cpu" = ia64; then
21664         # On IA64, the linker does run time linking by default, so we don't
21665         # have to do anything special.
21666         aix_use_runtimelinking=no
21667         exp_sym_flag='-Bexport'
21668         no_entry_flag=""
21669       else
21670         # If we're using GNU nm, then we don't want the "-C" option.
21671         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21672         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21673           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'
21674         else
21675           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'
21676         fi
21677         aix_use_runtimelinking=no
21678
21679         # Test if we are trying to use run time linking or normal
21680         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21681         # need to do runtime linking.
21682         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21683           for ld_flag in $LDFLAGS; do
21684           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21685             aix_use_runtimelinking=yes
21686             break
21687           fi
21688           done
21689           ;;
21690         esac
21691
21692         exp_sym_flag='-bexport'
21693         no_entry_flag='-bnoentry'
21694       fi
21695
21696       # When large executables or shared objects are built, AIX ld can
21697       # have problems creating the table of contents.  If linking a library
21698       # or program results in "error TOC overflow" add -mminimal-toc to
21699       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21700       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21701
21702       archive_cmds_F77=''
21703       hardcode_direct_F77=yes
21704       hardcode_libdir_separator_F77=':'
21705       link_all_deplibs_F77=yes
21706
21707       if test "$GCC" = yes; then
21708         case $host_os in aix4.[012]|aix4.[012].*)
21709         # We only want to do this on AIX 4.2 and lower, the check
21710         # below for broken collect2 doesn't work under 4.3+
21711           collect2name=`${CC} -print-prog-name=collect2`
21712           if test -f "$collect2name" && \
21713            strings "$collect2name" | grep resolve_lib_name >/dev/null
21714           then
21715           # We have reworked collect2
21716           hardcode_direct_F77=yes
21717           else
21718           # We have old collect2
21719           hardcode_direct_F77=unsupported
21720           # It fails to find uninstalled libraries when the uninstalled
21721           # path is not listed in the libpath.  Setting hardcode_minus_L
21722           # to unsupported forces relinking
21723           hardcode_minus_L_F77=yes
21724           hardcode_libdir_flag_spec_F77='-L$libdir'
21725           hardcode_libdir_separator_F77=
21726           fi
21727           ;;
21728         esac
21729         shared_flag='-shared'
21730         if test "$aix_use_runtimelinking" = yes; then
21731           shared_flag="$shared_flag "'${wl}-G'
21732         fi
21733       else
21734         # not using gcc
21735         if test "$host_cpu" = ia64; then
21736         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21737         # chokes on -Wl,-G. The following line is correct:
21738           shared_flag='-G'
21739         else
21740           if test "$aix_use_runtimelinking" = yes; then
21741             shared_flag='${wl}-G'
21742           else
21743             shared_flag='${wl}-bM:SRE'
21744           fi
21745         fi
21746       fi
21747
21748       # It seems that -bexpall does not export symbols beginning with
21749       # underscore (_), so it is better to generate a list of symbols to export.
21750       always_export_symbols_F77=yes
21751       if test "$aix_use_runtimelinking" = yes; then
21752         # Warning - without using the other runtime loading flags (-brtl),
21753         # -berok will link without error, but may produce a broken library.
21754         allow_undefined_flag_F77='-berok'
21755        # Determine the default libpath from the value encoded in an empty executable.
21756        cat >conftest.$ac_ext <<_ACEOF
21757       program main
21758
21759       end
21760 _ACEOF
21761 rm -f conftest.$ac_objext conftest$ac_exeext
21762 if { (ac_try="$ac_link"
21763 case "(($ac_try" in
21764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765   *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768   (eval "$ac_link") 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } &&
21775          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21776   { (case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_try") 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; } &&
21785          { ac_try='test -s conftest$ac_exeext'
21786   { (case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791   (eval "$ac_try") 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795
21796 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21797 }'`
21798 # Check for a 64-bit object if we didn't find anything.
21799 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; }
21800 }'`; fi
21801 else
21802   echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21804
21805
21806 fi
21807
21808 rm -f core conftest.err conftest.$ac_objext \
21809       conftest$ac_exeext conftest.$ac_ext
21810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21811
21812        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21813         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"
21814        else
21815         if test "$host_cpu" = ia64; then
21816           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21817           allow_undefined_flag_F77="-z nodefs"
21818           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"
21819         else
21820          # Determine the default libpath from the value encoded in an empty executable.
21821          cat >conftest.$ac_ext <<_ACEOF
21822       program main
21823
21824       end
21825 _ACEOF
21826 rm -f conftest.$ac_objext conftest$ac_exeext
21827 if { (ac_try="$ac_link"
21828 case "(($ac_try" in
21829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830   *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833   (eval "$ac_link") 2>conftest.er1
21834   ac_status=$?
21835   grep -v '^ *+' conftest.er1 >conftest.err
21836   rm -f conftest.er1
21837   cat conftest.err >&5
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } &&
21840          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21841   { (case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846   (eval "$ac_try") 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; } &&
21850          { ac_try='test -s conftest$ac_exeext'
21851   { (case "(($ac_try" in
21852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853   *) ac_try_echo=$ac_try;;
21854 esac
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856   (eval "$ac_try") 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); }; }; then
21860
21861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21862 }'`
21863 # Check for a 64-bit object if we didn't find anything.
21864 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; }
21865 }'`; fi
21866 else
21867   echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21869
21870
21871 fi
21872
21873 rm -f core conftest.err conftest.$ac_objext \
21874       conftest$ac_exeext conftest.$ac_ext
21875 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21876
21877          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21878           # Warning - without using the other run time loading flags,
21879           # -berok will link without error, but may produce a broken library.
21880           no_undefined_flag_F77=' ${wl}-bernotok'
21881           allow_undefined_flag_F77=' ${wl}-berok'
21882           # Exported symbols can be pulled into shared objects from archives
21883           whole_archive_flag_spec_F77='$convenience'
21884           archive_cmds_need_lc_F77=yes
21885           # This is similar to how AIX traditionally builds its shared libraries.
21886           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'
21887         fi
21888       fi
21889       ;;
21890
21891     amigaos*)
21892       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)'
21893       hardcode_libdir_flag_spec_F77='-L$libdir'
21894       hardcode_minus_L_F77=yes
21895       # see comment about different semantics on the GNU ld section
21896       ld_shlibs_F77=no
21897       ;;
21898
21899     bsdi[45]*)
21900       export_dynamic_flag_spec_F77=-rdynamic
21901       ;;
21902
21903     cygwin* | mingw* | pw32*)
21904       # When not using gcc, we currently assume that we are using
21905       # Microsoft Visual C++.
21906       # hardcode_libdir_flag_spec is actually meaningless, as there is
21907       # no search path for DLLs.
21908       hardcode_libdir_flag_spec_F77=' '
21909       allow_undefined_flag_F77=unsupported
21910       # Tell ltmain to make .lib files, not .a files.
21911       libext=lib
21912       # Tell ltmain to make .dll files, not .so files.
21913       shrext_cmds=".dll"
21914       # FIXME: Setting linknames here is a bad hack.
21915       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21916       # The linker will automatically build a .lib file if we build a DLL.
21917       old_archive_From_new_cmds_F77='true'
21918       # FIXME: Should let the user specify the lib program.
21919       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21920       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21921       enable_shared_with_static_runtimes_F77=yes
21922       ;;
21923
21924     darwin* | rhapsody*)
21925       case $host_os in
21926         rhapsody* | darwin1.[012])
21927          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21928          ;;
21929        *) # Darwin 1.3 on
21930          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21931            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21932          else
21933            case ${MACOSX_DEPLOYMENT_TARGET} in
21934              10.[012])
21935                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21936                ;;
21937              10.*)
21938                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21939                ;;
21940            esac
21941          fi
21942          ;;
21943       esac
21944       archive_cmds_need_lc_F77=no
21945       hardcode_direct_F77=no
21946       hardcode_automatic_F77=yes
21947       hardcode_shlibpath_var_F77=unsupported
21948       whole_archive_flag_spec_F77=''
21949       link_all_deplibs_F77=yes
21950     if test "$GCC" = yes ; then
21951         output_verbose_link_cmd='echo'
21952         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21953       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21954       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21955       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}'
21956       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}'
21957     else
21958       case $cc_basename in
21959         xlc*)
21960          output_verbose_link_cmd='echo'
21961          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21962          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21963           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21964          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}'
21965           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}'
21966           ;;
21967        *)
21968          ld_shlibs_F77=no
21969           ;;
21970       esac
21971     fi
21972       ;;
21973
21974     dgux*)
21975       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21976       hardcode_libdir_flag_spec_F77='-L$libdir'
21977       hardcode_shlibpath_var_F77=no
21978       ;;
21979
21980     freebsd1*)
21981       ld_shlibs_F77=no
21982       ;;
21983
21984     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21985     # support.  Future versions do this automatically, but an explicit c++rt0.o
21986     # does not break anything, and helps significantly (at the cost of a little
21987     # extra space).
21988     freebsd2.2*)
21989       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21990       hardcode_libdir_flag_spec_F77='-R$libdir'
21991       hardcode_direct_F77=yes
21992       hardcode_shlibpath_var_F77=no
21993       ;;
21994
21995     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21996     freebsd2*)
21997       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21998       hardcode_direct_F77=yes
21999       hardcode_minus_L_F77=yes
22000       hardcode_shlibpath_var_F77=no
22001       ;;
22002
22003     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22004     freebsd* | kfreebsd*-gnu | dragonfly*)
22005       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22006       hardcode_libdir_flag_spec_F77='-R$libdir'
22007       hardcode_direct_F77=yes
22008       hardcode_shlibpath_var_F77=no
22009       ;;
22010
22011     hpux9*)
22012       if test "$GCC" = yes; then
22013         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'
22014       else
22015         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'
22016       fi
22017       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22018       hardcode_libdir_separator_F77=:
22019       hardcode_direct_F77=yes
22020
22021       # hardcode_minus_L: Not really in the search PATH,
22022       # but as the default location of the library.
22023       hardcode_minus_L_F77=yes
22024       export_dynamic_flag_spec_F77='${wl}-E'
22025       ;;
22026
22027     hpux10*)
22028       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22029         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22030       else
22031         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22032       fi
22033       if test "$with_gnu_ld" = no; then
22034         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22035         hardcode_libdir_separator_F77=:
22036
22037         hardcode_direct_F77=yes
22038         export_dynamic_flag_spec_F77='${wl}-E'
22039
22040         # hardcode_minus_L: Not really in the search PATH,
22041         # but as the default location of the library.
22042         hardcode_minus_L_F77=yes
22043       fi
22044       ;;
22045
22046     hpux11*)
22047       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22048         case $host_cpu in
22049         hppa*64*)
22050           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22051           ;;
22052         ia64*)
22053           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22054           ;;
22055         *)
22056           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22057           ;;
22058         esac
22059       else
22060         case $host_cpu in
22061         hppa*64*)
22062           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22063           ;;
22064         ia64*)
22065           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22066           ;;
22067         *)
22068           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22069           ;;
22070         esac
22071       fi
22072       if test "$with_gnu_ld" = no; then
22073         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22074         hardcode_libdir_separator_F77=:
22075
22076         case $host_cpu in
22077         hppa*64*|ia64*)
22078           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22079           hardcode_direct_F77=no
22080           hardcode_shlibpath_var_F77=no
22081           ;;
22082         *)
22083           hardcode_direct_F77=yes
22084           export_dynamic_flag_spec_F77='${wl}-E'
22085
22086           # hardcode_minus_L: Not really in the search PATH,
22087           # but as the default location of the library.
22088           hardcode_minus_L_F77=yes
22089           ;;
22090         esac
22091       fi
22092       ;;
22093
22094     irix5* | irix6* | nonstopux*)
22095       if test "$GCC" = yes; then
22096         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'
22097       else
22098         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'
22099         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22100       fi
22101       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22102       hardcode_libdir_separator_F77=:
22103       link_all_deplibs_F77=yes
22104       ;;
22105
22106     netbsd*)
22107       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22108         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22109       else
22110         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22111       fi
22112       hardcode_libdir_flag_spec_F77='-R$libdir'
22113       hardcode_direct_F77=yes
22114       hardcode_shlibpath_var_F77=no
22115       ;;
22116
22117     newsos6)
22118       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119       hardcode_direct_F77=yes
22120       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22121       hardcode_libdir_separator_F77=:
22122       hardcode_shlibpath_var_F77=no
22123       ;;
22124
22125     openbsd*)
22126       hardcode_direct_F77=yes
22127       hardcode_shlibpath_var_F77=no
22128       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22129         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22130         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22131         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22132         export_dynamic_flag_spec_F77='${wl}-E'
22133       else
22134        case $host_os in
22135          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22136            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22137            hardcode_libdir_flag_spec_F77='-R$libdir'
22138            ;;
22139          *)
22140            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22141            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22142            ;;
22143        esac
22144       fi
22145       ;;
22146
22147     os2*)
22148       hardcode_libdir_flag_spec_F77='-L$libdir'
22149       hardcode_minus_L_F77=yes
22150       allow_undefined_flag_F77=unsupported
22151       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'
22152       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22153       ;;
22154
22155     osf3*)
22156       if test "$GCC" = yes; then
22157         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22158         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'
22159       else
22160         allow_undefined_flag_F77=' -expect_unresolved \*'
22161         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'
22162       fi
22163       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22164       hardcode_libdir_separator_F77=:
22165       ;;
22166
22167     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22168       if test "$GCC" = yes; then
22169         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22170         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'
22171         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22172       else
22173         allow_undefined_flag_F77=' -expect_unresolved \*'
22174         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'
22175         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~
22176         $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'
22177
22178         # Both c and cxx compiler support -rpath directly
22179         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22180       fi
22181       hardcode_libdir_separator_F77=:
22182       ;;
22183
22184     solaris*)
22185       no_undefined_flag_F77=' -z text'
22186       if test "$GCC" = yes; then
22187         wlarc='${wl}'
22188         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22189         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22190           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22191       else
22192         wlarc=''
22193         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22194         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22195         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22196       fi
22197       hardcode_libdir_flag_spec_F77='-R$libdir'
22198       hardcode_shlibpath_var_F77=no
22199       case $host_os in
22200       solaris2.[0-5] | solaris2.[0-5].*) ;;
22201       *)
22202         # The compiler driver will combine linker options so we
22203         # cannot just pass the convience library names through
22204         # without $wl, iff we do not link with $LD.
22205         # Luckily, gcc supports the same syntax we need for Sun Studio.
22206         # Supported since Solaris 2.6 (maybe 2.5.1?)
22207         case $wlarc in
22208         '')
22209           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22210         *)
22211           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' ;;
22212         esac ;;
22213       esac
22214       link_all_deplibs_F77=yes
22215       ;;
22216
22217     sunos4*)
22218       if test "x$host_vendor" = xsequent; then
22219         # Use $CC to link under sequent, because it throws in some extra .o
22220         # files that make .init and .fini sections work.
22221         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22222       else
22223         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22224       fi
22225       hardcode_libdir_flag_spec_F77='-L$libdir'
22226       hardcode_direct_F77=yes
22227       hardcode_minus_L_F77=yes
22228       hardcode_shlibpath_var_F77=no
22229       ;;
22230
22231     sysv4)
22232       case $host_vendor in
22233         sni)
22234           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22235           hardcode_direct_F77=yes # is this really true???
22236         ;;
22237         siemens)
22238           ## LD is ld it makes a PLAMLIB
22239           ## CC just makes a GrossModule.
22240           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22241           reload_cmds_F77='$CC -r -o $output$reload_objs'
22242           hardcode_direct_F77=no
22243         ;;
22244         motorola)
22245           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22246           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22247         ;;
22248       esac
22249       runpath_var='LD_RUN_PATH'
22250       hardcode_shlibpath_var_F77=no
22251       ;;
22252
22253     sysv4.3*)
22254       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22255       hardcode_shlibpath_var_F77=no
22256       export_dynamic_flag_spec_F77='-Bexport'
22257       ;;
22258
22259     sysv4*MP*)
22260       if test -d /usr/nec; then
22261         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22262         hardcode_shlibpath_var_F77=no
22263         runpath_var=LD_RUN_PATH
22264         hardcode_runpath_var=yes
22265         ld_shlibs_F77=yes
22266       fi
22267       ;;
22268
22269     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22270       no_undefined_flag_F77='${wl}-z,text'
22271       archive_cmds_need_lc_F77=no
22272       hardcode_shlibpath_var_F77=no
22273       runpath_var='LD_RUN_PATH'
22274
22275       if test "$GCC" = yes; then
22276         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22277         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22278       else
22279         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22280         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22281       fi
22282       ;;
22283
22284     sysv5* | sco3.2v5* | sco5v6*)
22285       # Note: We can NOT use -z defs as we might desire, because we do not
22286       # link with -lc, and that would cause any symbols used from libc to
22287       # always be unresolved, which means just about no library would
22288       # ever link correctly.  If we're not using GNU ld we use -z text
22289       # though, which does catch some bad symbols but isn't as heavy-handed
22290       # as -z defs.
22291       no_undefined_flag_F77='${wl}-z,text'
22292       allow_undefined_flag_F77='${wl}-z,nodefs'
22293       archive_cmds_need_lc_F77=no
22294       hardcode_shlibpath_var_F77=no
22295       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22296       hardcode_libdir_separator_F77=':'
22297       link_all_deplibs_F77=yes
22298       export_dynamic_flag_spec_F77='${wl}-Bexport'
22299       runpath_var='LD_RUN_PATH'
22300
22301       if test "$GCC" = yes; then
22302         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22304       else
22305         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22306         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22307       fi
22308       ;;
22309
22310     uts4*)
22311       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22312       hardcode_libdir_flag_spec_F77='-L$libdir'
22313       hardcode_shlibpath_var_F77=no
22314       ;;
22315
22316     *)
22317       ld_shlibs_F77=no
22318       ;;
22319     esac
22320   fi
22321
22322 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22323 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22324 test "$ld_shlibs_F77" = no && can_build_shared=no
22325
22326 #
22327 # Do we need to explicitly link libc?
22328 #
22329 case "x$archive_cmds_need_lc_F77" in
22330 x|xyes)
22331   # Assume -lc should be added
22332   archive_cmds_need_lc_F77=yes
22333
22334   if test "$enable_shared" = yes && test "$GCC" = yes; then
22335     case $archive_cmds_F77 in
22336     *'~'*)
22337       # FIXME: we may have to deal with multi-command sequences.
22338       ;;
22339     '$CC '*)
22340       # Test whether the compiler implicitly links with -lc since on some
22341       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22342       # to ld, don't add -lc before -lgcc.
22343       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22344 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22345       $rm conftest*
22346       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22347
22348       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22349   (eval $ac_compile) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); } 2>conftest.err; then
22353         soname=conftest
22354         lib=conftest
22355         libobjs=conftest.$ac_objext
22356         deplibs=
22357         wl=$lt_prog_compiler_wl_F77
22358         pic_flag=$lt_prog_compiler_pic_F77
22359         compiler_flags=-v
22360         linker_flags=-v
22361         verstring=
22362         output_objdir=.
22363         libname=conftest
22364         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22365         allow_undefined_flag_F77=
22366         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22367   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22368   ac_status=$?
22369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370   (exit $ac_status); }
22371         then
22372           archive_cmds_need_lc_F77=no
22373         else
22374           archive_cmds_need_lc_F77=yes
22375         fi
22376         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22377       else
22378         cat conftest.err 1>&5
22379       fi
22380       $rm conftest*
22381       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22382 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22383       ;;
22384     esac
22385   fi
22386   ;;
22387 esac
22388
22389 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22390 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22391 library_names_spec=
22392 libname_spec='lib$name'
22393 soname_spec=
22394 shrext_cmds=".so"
22395 postinstall_cmds=
22396 postuninstall_cmds=
22397 finish_cmds=
22398 finish_eval=
22399 shlibpath_var=
22400 shlibpath_overrides_runpath=unknown
22401 version_type=none
22402 dynamic_linker="$host_os ld.so"
22403 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22404 if test "$GCC" = yes; then
22405   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22406   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22407     # if the path contains ";" then we assume it to be the separator
22408     # otherwise default to the standard path separator (i.e. ":") - it is
22409     # assumed that no part of a normal pathname contains ";" but that should
22410     # okay in the real world where ";" in dirpaths is itself problematic.
22411     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22412   else
22413     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22414   fi
22415 else
22416   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22417 fi
22418 need_lib_prefix=unknown
22419 hardcode_into_libs=no
22420
22421 # when you set need_version to no, make sure it does not cause -set_version
22422 # flags to be left without arguments
22423 need_version=unknown
22424
22425 case $host_os in
22426 aix3*)
22427   version_type=linux
22428   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22429   shlibpath_var=LIBPATH
22430
22431   # AIX 3 has no versioning support, so we append a major version to the name.
22432   soname_spec='${libname}${release}${shared_ext}$major'
22433   ;;
22434
22435 aix4* | aix5*)
22436   version_type=linux
22437   need_lib_prefix=no
22438   need_version=no
22439   hardcode_into_libs=yes
22440   if test "$host_cpu" = ia64; then
22441     # AIX 5 supports IA64
22442     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22443     shlibpath_var=LD_LIBRARY_PATH
22444   else
22445     # With GCC up to 2.95.x, collect2 would create an import file
22446     # for dependence libraries.  The import file would start with
22447     # the line `#! .'.  This would cause the generated library to
22448     # depend on `.', always an invalid library.  This was fixed in
22449     # development snapshots of GCC prior to 3.0.
22450     case $host_os in
22451       aix4 | aix4.[01] | aix4.[01].*)
22452       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22453            echo ' yes '
22454            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22455         :
22456       else
22457         can_build_shared=no
22458       fi
22459       ;;
22460     esac
22461     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22462     # soname into executable. Probably we can add versioning support to
22463     # collect2, so additional links can be useful in future.
22464     if test "$aix_use_runtimelinking" = yes; then
22465       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22466       # instead of lib<name>.a to let people know that these are not
22467       # typical AIX shared libraries.
22468       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22469     else
22470       # We preserve .a as extension for shared libraries through AIX4.2
22471       # and later when we are not doing run time linking.
22472       library_names_spec='${libname}${release}.a $libname.a'
22473       soname_spec='${libname}${release}${shared_ext}$major'
22474     fi
22475     shlibpath_var=LIBPATH
22476   fi
22477   ;;
22478
22479 amigaos*)
22480   library_names_spec='$libname.ixlibrary $libname.a'
22481   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22482   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'
22483   ;;
22484
22485 beos*)
22486   library_names_spec='${libname}${shared_ext}'
22487   dynamic_linker="$host_os ld.so"
22488   shlibpath_var=LIBRARY_PATH
22489   ;;
22490
22491 bsdi[45]*)
22492   version_type=linux
22493   need_version=no
22494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22495   soname_spec='${libname}${release}${shared_ext}$major'
22496   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22497   shlibpath_var=LD_LIBRARY_PATH
22498   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22499   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22500   # the default ld.so.conf also contains /usr/contrib/lib and
22501   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22502   # libtool to hard-code these into programs
22503   ;;
22504
22505 cygwin* | mingw* | pw32*)
22506   version_type=windows
22507   shrext_cmds=".dll"
22508   need_version=no
22509   need_lib_prefix=no
22510
22511   case $GCC,$host_os in
22512   yes,cygwin* | yes,mingw* | yes,pw32*)
22513     library_names_spec='$libname.dll.a'
22514     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22515     postinstall_cmds='base_file=`basename \${file}`~
22516       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22517       dldir=$destdir/`dirname \$dlpath`~
22518       test -d \$dldir || mkdir -p \$dldir~
22519       $install_prog $dir/$dlname \$dldir/$dlname~
22520       chmod a+x \$dldir/$dlname'
22521     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22522       dlpath=$dir/\$dldll~
22523        $rm \$dlpath'
22524     shlibpath_overrides_runpath=yes
22525
22526     case $host_os in
22527     cygwin*)
22528       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22529       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22530       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22531       ;;
22532     mingw*)
22533       # MinGW DLLs use traditional 'lib' prefix
22534       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22535       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22536       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22537         # It is most probably a Windows format PATH printed by
22538         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22539         # path with ; separators, and with drive letters. We can handle the
22540         # drive letters (cygwin fileutils understands them), so leave them,
22541         # especially as we might pass files found there to a mingw objdump,
22542         # which wouldn't understand a cygwinified path. Ahh.
22543         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22544       else
22545         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22546       fi
22547       ;;
22548     pw32*)
22549       # pw32 DLLs use 'pw' prefix rather than 'lib'
22550       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22551       ;;
22552     esac
22553     ;;
22554
22555   *)
22556     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22557     ;;
22558   esac
22559   dynamic_linker='Win32 ld.exe'
22560   # FIXME: first we should search . and the directory the executable is in
22561   shlibpath_var=PATH
22562   ;;
22563
22564 darwin* | rhapsody*)
22565   dynamic_linker="$host_os dyld"
22566   version_type=darwin
22567   need_lib_prefix=no
22568   need_version=no
22569   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22570   soname_spec='${libname}${release}${major}$shared_ext'
22571   shlibpath_overrides_runpath=yes
22572   shlibpath_var=DYLD_LIBRARY_PATH
22573   shrext_cmds='.dylib'
22574   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22575   if test "$GCC" = yes; then
22576     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"`
22577   else
22578     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22579   fi
22580   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22581   ;;
22582
22583 dgux*)
22584   version_type=linux
22585   need_lib_prefix=no
22586   need_version=no
22587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22588   soname_spec='${libname}${release}${shared_ext}$major'
22589   shlibpath_var=LD_LIBRARY_PATH
22590   ;;
22591
22592 freebsd1*)
22593   dynamic_linker=no
22594   ;;
22595
22596 kfreebsd*-gnu)
22597   version_type=linux
22598   need_lib_prefix=no
22599   need_version=no
22600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22601   soname_spec='${libname}${release}${shared_ext}$major'
22602   shlibpath_var=LD_LIBRARY_PATH
22603   shlibpath_overrides_runpath=no
22604   hardcode_into_libs=yes
22605   dynamic_linker='GNU ld.so'
22606   ;;
22607
22608 freebsd* | dragonfly*)
22609   # DragonFly does not have aout.  When/if they implement a new
22610   # versioning mechanism, adjust this.
22611   if test -x /usr/bin/objformat; then
22612     objformat=`/usr/bin/objformat`
22613   else
22614     case $host_os in
22615     freebsd[123]*) objformat=aout ;;
22616     *) objformat=elf ;;
22617     esac
22618   fi
22619   version_type=freebsd-$objformat
22620   case $version_type in
22621     freebsd-elf*)
22622       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22623       need_version=no
22624       need_lib_prefix=no
22625       ;;
22626     freebsd-*)
22627       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22628       need_version=yes
22629       ;;
22630   esac
22631   shlibpath_var=LD_LIBRARY_PATH
22632   case $host_os in
22633   freebsd2*)
22634     shlibpath_overrides_runpath=yes
22635     ;;
22636   freebsd3.[01]* | freebsdelf3.[01]*)
22637     shlibpath_overrides_runpath=yes
22638     hardcode_into_libs=yes
22639     ;;
22640   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22641   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22642     shlibpath_overrides_runpath=no
22643     hardcode_into_libs=yes
22644     ;;
22645   freebsd*) # from 4.6 on
22646     shlibpath_overrides_runpath=yes
22647     hardcode_into_libs=yes
22648     ;;
22649   esac
22650   ;;
22651
22652 gnu*)
22653   version_type=linux
22654   need_lib_prefix=no
22655   need_version=no
22656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22657   soname_spec='${libname}${release}${shared_ext}$major'
22658   shlibpath_var=LD_LIBRARY_PATH
22659   hardcode_into_libs=yes
22660   ;;
22661
22662 hpux9* | hpux10* | hpux11*)
22663   # Give a soname corresponding to the major version so that dld.sl refuses to
22664   # link against other versions.
22665   version_type=sunos
22666   need_lib_prefix=no
22667   need_version=no
22668   case $host_cpu in
22669   ia64*)
22670     shrext_cmds='.so'
22671     hardcode_into_libs=yes
22672     dynamic_linker="$host_os dld.so"
22673     shlibpath_var=LD_LIBRARY_PATH
22674     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22676     soname_spec='${libname}${release}${shared_ext}$major'
22677     if test "X$HPUX_IA64_MODE" = X32; then
22678       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22679     else
22680       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22681     fi
22682     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22683     ;;
22684    hppa*64*)
22685      shrext_cmds='.sl'
22686      hardcode_into_libs=yes
22687      dynamic_linker="$host_os dld.sl"
22688      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22689      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691      soname_spec='${libname}${release}${shared_ext}$major'
22692      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22693      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22694      ;;
22695    *)
22696     shrext_cmds='.sl'
22697     dynamic_linker="$host_os dld.sl"
22698     shlibpath_var=SHLIB_PATH
22699     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701     soname_spec='${libname}${release}${shared_ext}$major'
22702     ;;
22703   esac
22704   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22705   postinstall_cmds='chmod 555 $lib'
22706   ;;
22707
22708 interix3*)
22709   version_type=linux
22710   need_lib_prefix=no
22711   need_version=no
22712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22713   soname_spec='${libname}${release}${shared_ext}$major'
22714   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22715   shlibpath_var=LD_LIBRARY_PATH
22716   shlibpath_overrides_runpath=no
22717   hardcode_into_libs=yes
22718   ;;
22719
22720 irix5* | irix6* | nonstopux*)
22721   case $host_os in
22722     nonstopux*) version_type=nonstopux ;;
22723     *)
22724         if test "$lt_cv_prog_gnu_ld" = yes; then
22725                 version_type=linux
22726         else
22727                 version_type=irix
22728         fi ;;
22729   esac
22730   need_lib_prefix=no
22731   need_version=no
22732   soname_spec='${libname}${release}${shared_ext}$major'
22733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22734   case $host_os in
22735   irix5* | nonstopux*)
22736     libsuff= shlibsuff=
22737     ;;
22738   *)
22739     case $LD in # libtool.m4 will add one of these switches to LD
22740     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22741       libsuff= shlibsuff= libmagic=32-bit;;
22742     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22743       libsuff=32 shlibsuff=N32 libmagic=N32;;
22744     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22745       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22746     *) libsuff= shlibsuff= libmagic=never-match;;
22747     esac
22748     ;;
22749   esac
22750   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22751   shlibpath_overrides_runpath=no
22752   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22753   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22754   hardcode_into_libs=yes
22755   ;;
22756
22757 # No shared lib support for Linux oldld, aout, or coff.
22758 linux*oldld* | linux*aout* | linux*coff*)
22759   dynamic_linker=no
22760   ;;
22761
22762 # This must be Linux ELF.
22763 linux*)
22764   version_type=linux
22765   need_lib_prefix=no
22766   need_version=no
22767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768   soname_spec='${libname}${release}${shared_ext}$major'
22769   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22770   shlibpath_var=LD_LIBRARY_PATH
22771   shlibpath_overrides_runpath=no
22772   # This implies no fast_install, which is unacceptable.
22773   # Some rework will be needed to allow for fast_install
22774   # before this can be enabled.
22775   hardcode_into_libs=yes
22776
22777   # Append ld.so.conf contents to the search path
22778   if test -f /etc/ld.so.conf; then
22779     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' ' '`
22780     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22781   fi
22782
22783   # We used to test for /lib/ld.so.1 and disable shared libraries on
22784   # powerpc, because MkLinux only supported shared libraries with the
22785   # GNU dynamic linker.  Since this was broken with cross compilers,
22786   # most powerpc-linux boxes support dynamic linking these days and
22787   # people can always --disable-shared, the test was removed, and we
22788   # assume the GNU/Linux dynamic linker is in use.
22789   dynamic_linker='GNU/Linux ld.so'
22790   ;;
22791
22792 knetbsd*-gnu)
22793   version_type=linux
22794   need_lib_prefix=no
22795   need_version=no
22796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22797   soname_spec='${libname}${release}${shared_ext}$major'
22798   shlibpath_var=LD_LIBRARY_PATH
22799   shlibpath_overrides_runpath=no
22800   hardcode_into_libs=yes
22801   dynamic_linker='GNU ld.so'
22802   ;;
22803
22804 netbsd*)
22805   version_type=sunos
22806   need_lib_prefix=no
22807   need_version=no
22808   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22810     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22811     dynamic_linker='NetBSD (a.out) ld.so'
22812   else
22813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22814     soname_spec='${libname}${release}${shared_ext}$major'
22815     dynamic_linker='NetBSD ld.elf_so'
22816   fi
22817   shlibpath_var=LD_LIBRARY_PATH
22818   shlibpath_overrides_runpath=yes
22819   hardcode_into_libs=yes
22820   ;;
22821
22822 newsos6)
22823   version_type=linux
22824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825   shlibpath_var=LD_LIBRARY_PATH
22826   shlibpath_overrides_runpath=yes
22827   ;;
22828
22829 nto-qnx*)
22830   version_type=linux
22831   need_lib_prefix=no
22832   need_version=no
22833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834   soname_spec='${libname}${release}${shared_ext}$major'
22835   shlibpath_var=LD_LIBRARY_PATH
22836   shlibpath_overrides_runpath=yes
22837   ;;
22838
22839 openbsd*)
22840   version_type=sunos
22841   sys_lib_dlsearch_path_spec="/usr/lib"
22842   need_lib_prefix=no
22843   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22844   case $host_os in
22845     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22846     *)                         need_version=no  ;;
22847   esac
22848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22849   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22850   shlibpath_var=LD_LIBRARY_PATH
22851   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22852     case $host_os in
22853       openbsd2.[89] | openbsd2.[89].*)
22854         shlibpath_overrides_runpath=no
22855         ;;
22856       *)
22857         shlibpath_overrides_runpath=yes
22858         ;;
22859       esac
22860   else
22861     shlibpath_overrides_runpath=yes
22862   fi
22863   ;;
22864
22865 os2*)
22866   libname_spec='$name'
22867   shrext_cmds=".dll"
22868   need_lib_prefix=no
22869   library_names_spec='$libname${shared_ext} $libname.a'
22870   dynamic_linker='OS/2 ld.exe'
22871   shlibpath_var=LIBPATH
22872   ;;
22873
22874 osf3* | osf4* | osf5*)
22875   version_type=osf
22876   need_lib_prefix=no
22877   need_version=no
22878   soname_spec='${libname}${release}${shared_ext}$major'
22879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880   shlibpath_var=LD_LIBRARY_PATH
22881   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22882   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22883   ;;
22884
22885 solaris*)
22886   version_type=linux
22887   need_lib_prefix=no
22888   need_version=no
22889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22890   soname_spec='${libname}${release}${shared_ext}$major'
22891   shlibpath_var=LD_LIBRARY_PATH
22892   shlibpath_overrides_runpath=yes
22893   hardcode_into_libs=yes
22894   # ldd complains unless libraries are executable
22895   postinstall_cmds='chmod +x $lib'
22896   ;;
22897
22898 sunos4*)
22899   version_type=sunos
22900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22901   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22902   shlibpath_var=LD_LIBRARY_PATH
22903   shlibpath_overrides_runpath=yes
22904   if test "$with_gnu_ld" = yes; then
22905     need_lib_prefix=no
22906   fi
22907   need_version=yes
22908   ;;
22909
22910 sysv4 | sysv4.3*)
22911   version_type=linux
22912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22913   soname_spec='${libname}${release}${shared_ext}$major'
22914   shlibpath_var=LD_LIBRARY_PATH
22915   case $host_vendor in
22916     sni)
22917       shlibpath_overrides_runpath=no
22918       need_lib_prefix=no
22919       export_dynamic_flag_spec='${wl}-Blargedynsym'
22920       runpath_var=LD_RUN_PATH
22921       ;;
22922     siemens)
22923       need_lib_prefix=no
22924       ;;
22925     motorola)
22926       need_lib_prefix=no
22927       need_version=no
22928       shlibpath_overrides_runpath=no
22929       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22930       ;;
22931   esac
22932   ;;
22933
22934 sysv4*MP*)
22935   if test -d /usr/nec ;then
22936     version_type=linux
22937     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22938     soname_spec='$libname${shared_ext}.$major'
22939     shlibpath_var=LD_LIBRARY_PATH
22940   fi
22941   ;;
22942
22943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22944   version_type=freebsd-elf
22945   need_lib_prefix=no
22946   need_version=no
22947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22948   soname_spec='${libname}${release}${shared_ext}$major'
22949   shlibpath_var=LD_LIBRARY_PATH
22950   hardcode_into_libs=yes
22951   if test "$with_gnu_ld" = yes; then
22952     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22953     shlibpath_overrides_runpath=no
22954   else
22955     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22956     shlibpath_overrides_runpath=yes
22957     case $host_os in
22958       sco3.2v5*)
22959         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22960         ;;
22961     esac
22962   fi
22963   sys_lib_dlsearch_path_spec='/usr/lib'
22964   ;;
22965
22966 uts4*)
22967   version_type=linux
22968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969   soname_spec='${libname}${release}${shared_ext}$major'
22970   shlibpath_var=LD_LIBRARY_PATH
22971   ;;
22972
22973 *)
22974   dynamic_linker=no
22975   ;;
22976 esac
22977 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22978 echo "${ECHO_T}$dynamic_linker" >&6; }
22979 test "$dynamic_linker" = no && can_build_shared=no
22980
22981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22982 if test "$GCC" = yes; then
22983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22984 fi
22985
22986 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22987 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22988 hardcode_action_F77=
22989 if test -n "$hardcode_libdir_flag_spec_F77" || \
22990    test -n "$runpath_var_F77" || \
22991    test "X$hardcode_automatic_F77" = "Xyes" ; then
22992
22993   # We can hardcode non-existant directories.
22994   if test "$hardcode_direct_F77" != no &&
22995      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22996      # have to relink, otherwise we might link with an installed library
22997      # when we should be linking with a yet-to-be-installed one
22998      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22999      test "$hardcode_minus_L_F77" != no; then
23000     # Linking always hardcodes the temporary library directory.
23001     hardcode_action_F77=relink
23002   else
23003     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23004     hardcode_action_F77=immediate
23005   fi
23006 else
23007   # We cannot hardcode anything, or else we can only hardcode existing
23008   # directories.
23009   hardcode_action_F77=unsupported
23010 fi
23011 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23012 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23013
23014 if test "$hardcode_action_F77" = relink; then
23015   # Fast installation is not supported
23016   enable_fast_install=no
23017 elif test "$shlibpath_overrides_runpath" = yes ||
23018      test "$enable_shared" = no; then
23019   # Fast installation is not necessary
23020   enable_fast_install=needless
23021 fi
23022
23023
23024 # The else clause should only fire when bootstrapping the
23025 # libtool distribution, otherwise you forgot to ship ltmain.sh
23026 # with your package, and you will get complaints that there are
23027 # no rules to generate ltmain.sh.
23028 if test -f "$ltmain"; then
23029   # See if we are running on zsh, and set the options which allow our commands through
23030   # without removal of \ escapes.
23031   if test -n "${ZSH_VERSION+set}" ; then
23032     setopt NO_GLOB_SUBST
23033   fi
23034   # Now quote all the things that may contain metacharacters while being
23035   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23036   # variables and quote the copies for generation of the libtool script.
23037   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23038     SED SHELL STRIP \
23039     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23040     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23041     deplibs_check_method reload_flag reload_cmds need_locks \
23042     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23043     lt_cv_sys_global_symbol_to_c_name_address \
23044     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23045     old_postinstall_cmds old_postuninstall_cmds \
23046     compiler_F77 \
23047     CC_F77 \
23048     LD_F77 \
23049     lt_prog_compiler_wl_F77 \
23050     lt_prog_compiler_pic_F77 \
23051     lt_prog_compiler_static_F77 \
23052     lt_prog_compiler_no_builtin_flag_F77 \
23053     export_dynamic_flag_spec_F77 \
23054     thread_safe_flag_spec_F77 \
23055     whole_archive_flag_spec_F77 \
23056     enable_shared_with_static_runtimes_F77 \
23057     old_archive_cmds_F77 \
23058     old_archive_from_new_cmds_F77 \
23059     predep_objects_F77 \
23060     postdep_objects_F77 \
23061     predeps_F77 \
23062     postdeps_F77 \
23063     compiler_lib_search_path_F77 \
23064     archive_cmds_F77 \
23065     archive_expsym_cmds_F77 \
23066     postinstall_cmds_F77 \
23067     postuninstall_cmds_F77 \
23068     old_archive_from_expsyms_cmds_F77 \
23069     allow_undefined_flag_F77 \
23070     no_undefined_flag_F77 \
23071     export_symbols_cmds_F77 \
23072     hardcode_libdir_flag_spec_F77 \
23073     hardcode_libdir_flag_spec_ld_F77 \
23074     hardcode_libdir_separator_F77 \
23075     hardcode_automatic_F77 \
23076     module_cmds_F77 \
23077     module_expsym_cmds_F77 \
23078     lt_cv_prog_compiler_c_o_F77 \
23079     exclude_expsyms_F77 \
23080     include_expsyms_F77; do
23081
23082     case $var in
23083     old_archive_cmds_F77 | \
23084     old_archive_from_new_cmds_F77 | \
23085     archive_cmds_F77 | \
23086     archive_expsym_cmds_F77 | \
23087     module_cmds_F77 | \
23088     module_expsym_cmds_F77 | \
23089     old_archive_from_expsyms_cmds_F77 | \
23090     export_symbols_cmds_F77 | \
23091     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23092     postinstall_cmds | postuninstall_cmds | \
23093     old_postinstall_cmds | old_postuninstall_cmds | \
23094     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23095       # Double-quote double-evaled strings.
23096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23097       ;;
23098     *)
23099       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23100       ;;
23101     esac
23102   done
23103
23104   case $lt_echo in
23105   *'\$0 --fallback-echo"')
23106     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23107     ;;
23108   esac
23109
23110 cfgfile="$ofile"
23111
23112   cat <<__EOF__ >> "$cfgfile"
23113 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23114
23115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23116
23117 # Shell to use when invoking shell scripts.
23118 SHELL=$lt_SHELL
23119
23120 # Whether or not to build shared libraries.
23121 build_libtool_libs=$enable_shared
23122
23123 # Whether or not to build static libraries.
23124 build_old_libs=$enable_static
23125
23126 # Whether or not to add -lc for building shared libraries.
23127 build_libtool_need_lc=$archive_cmds_need_lc_F77
23128
23129 # Whether or not to disallow shared libs when runtime libs are static
23130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23131
23132 # Whether or not to optimize for fast installation.
23133 fast_install=$enable_fast_install
23134
23135 # The host system.
23136 host_alias=$host_alias
23137 host=$host
23138 host_os=$host_os
23139
23140 # The build system.
23141 build_alias=$build_alias
23142 build=$build
23143 build_os=$build_os
23144
23145 # An echo program that does not interpret backslashes.
23146 echo=$lt_echo
23147
23148 # The archiver.
23149 AR=$lt_AR
23150 AR_FLAGS=$lt_AR_FLAGS
23151
23152 # A C compiler.
23153 LTCC=$lt_LTCC
23154
23155 # LTCC compiler flags.
23156 LTCFLAGS=$lt_LTCFLAGS
23157
23158 # A language-specific compiler.
23159 CC=$lt_compiler_F77
23160
23161 # Is the compiler the GNU C compiler?
23162 with_gcc=$GCC_F77
23163
23164 # An ERE matcher.
23165 EGREP=$lt_EGREP
23166
23167 # The linker used to build libraries.
23168 LD=$lt_LD_F77
23169
23170 # Whether we need hard or soft links.
23171 LN_S=$lt_LN_S
23172
23173 # A BSD-compatible nm program.
23174 NM=$lt_NM
23175
23176 # A symbol stripping program
23177 STRIP=$lt_STRIP
23178
23179 # Used to examine libraries when file_magic_cmd begins "file"
23180 MAGIC_CMD=$MAGIC_CMD
23181
23182 # Used on cygwin: DLL creation program.
23183 DLLTOOL="$DLLTOOL"
23184
23185 # Used on cygwin: object dumper.
23186 OBJDUMP="$OBJDUMP"
23187
23188 # Used on cygwin: assembler.
23189 AS="$AS"
23190
23191 # The name of the directory that contains temporary libtool files.
23192 objdir=$objdir
23193
23194 # How to create reloadable object files.
23195 reload_flag=$lt_reload_flag
23196 reload_cmds=$lt_reload_cmds
23197
23198 # How to pass a linker flag through the compiler.
23199 wl=$lt_lt_prog_compiler_wl_F77
23200
23201 # Object file suffix (normally "o").
23202 objext="$ac_objext"
23203
23204 # Old archive suffix (normally "a").
23205 libext="$libext"
23206
23207 # Shared library suffix (normally ".so").
23208 shrext_cmds='$shrext_cmds'
23209
23210 # Executable file suffix (normally "").
23211 exeext="$exeext"
23212
23213 # Additional compiler flags for building library objects.
23214 pic_flag=$lt_lt_prog_compiler_pic_F77
23215 pic_mode=$pic_mode
23216
23217 # What is the maximum length of a command?
23218 max_cmd_len=$lt_cv_sys_max_cmd_len
23219
23220 # Does compiler simultaneously support -c and -o options?
23221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23222
23223 # Must we lock files when doing compilation?
23224 need_locks=$lt_need_locks
23225
23226 # Do we need the lib prefix for modules?
23227 need_lib_prefix=$need_lib_prefix
23228
23229 # Do we need a version for libraries?
23230 need_version=$need_version
23231
23232 # Whether dlopen is supported.
23233 dlopen_support=$enable_dlopen
23234
23235 # Whether dlopen of programs is supported.
23236 dlopen_self=$enable_dlopen_self
23237
23238 # Whether dlopen of statically linked programs is supported.
23239 dlopen_self_static=$enable_dlopen_self_static
23240
23241 # Compiler flag to prevent dynamic linking.
23242 link_static_flag=$lt_lt_prog_compiler_static_F77
23243
23244 # Compiler flag to turn off builtin functions.
23245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23246
23247 # Compiler flag to allow reflexive dlopens.
23248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23249
23250 # Compiler flag to generate shared objects directly from archives.
23251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23252
23253 # Compiler flag to generate thread-safe objects.
23254 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23255
23256 # Library versioning type.
23257 version_type=$version_type
23258
23259 # Format of library name prefix.
23260 libname_spec=$lt_libname_spec
23261
23262 # List of archive names.  First name is the real one, the rest are links.
23263 # The last name is the one that the linker finds with -lNAME.
23264 library_names_spec=$lt_library_names_spec
23265
23266 # The coded name of the library, if different from the real name.
23267 soname_spec=$lt_soname_spec
23268
23269 # Commands used to build and install an old-style archive.
23270 RANLIB=$lt_RANLIB
23271 old_archive_cmds=$lt_old_archive_cmds_F77
23272 old_postinstall_cmds=$lt_old_postinstall_cmds
23273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23274
23275 # Create an old-style archive from a shared archive.
23276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23277
23278 # Create a temporary old-style archive to link instead of a shared archive.
23279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23280
23281 # Commands used to build and install a shared archive.
23282 archive_cmds=$lt_archive_cmds_F77
23283 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23284 postinstall_cmds=$lt_postinstall_cmds
23285 postuninstall_cmds=$lt_postuninstall_cmds
23286
23287 # Commands used to build a loadable module (assumed same as above if empty)
23288 module_cmds=$lt_module_cmds_F77
23289 module_expsym_cmds=$lt_module_expsym_cmds_F77
23290
23291 # Commands to strip libraries.
23292 old_striplib=$lt_old_striplib
23293 striplib=$lt_striplib
23294
23295 # Dependencies to place before the objects being linked to create a
23296 # shared library.
23297 predep_objects=$lt_predep_objects_F77
23298
23299 # Dependencies to place after the objects being linked to create a
23300 # shared library.
23301 postdep_objects=$lt_postdep_objects_F77
23302
23303 # Dependencies to place before the objects being linked to create a
23304 # shared library.
23305 predeps=$lt_predeps_F77
23306
23307 # Dependencies to place after the objects being linked to create a
23308 # shared library.
23309 postdeps=$lt_postdeps_F77
23310
23311 # The library search path used internally by the compiler when linking
23312 # a shared library.
23313 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23314
23315 # Method to check whether dependent libraries are shared objects.
23316 deplibs_check_method=$lt_deplibs_check_method
23317
23318 # Command to use when deplibs_check_method == file_magic.
23319 file_magic_cmd=$lt_file_magic_cmd
23320
23321 # Flag that allows shared libraries with undefined symbols to be built.
23322 allow_undefined_flag=$lt_allow_undefined_flag_F77
23323
23324 # Flag that forces no undefined symbols.
23325 no_undefined_flag=$lt_no_undefined_flag_F77
23326
23327 # Commands used to finish a libtool library installation in a directory.
23328 finish_cmds=$lt_finish_cmds
23329
23330 # Same as above, but a single script fragment to be evaled but not shown.
23331 finish_eval=$lt_finish_eval
23332
23333 # Take the output of nm and produce a listing of raw symbols and C names.
23334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23335
23336 # Transform the output of nm in a proper C declaration
23337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23338
23339 # Transform the output of nm in a C name address pair
23340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23341
23342 # This is the shared library runtime path variable.
23343 runpath_var=$runpath_var
23344
23345 # This is the shared library path variable.
23346 shlibpath_var=$shlibpath_var
23347
23348 # Is shlibpath searched before the hard-coded library search path?
23349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23350
23351 # How to hardcode a shared library path into an executable.
23352 hardcode_action=$hardcode_action_F77
23353
23354 # Whether we should hardcode library paths into libraries.
23355 hardcode_into_libs=$hardcode_into_libs
23356
23357 # Flag to hardcode \$libdir into a binary during linking.
23358 # This must work even if \$libdir does not exist.
23359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23360
23361 # If ld is used when linking, flag to hardcode \$libdir into
23362 # a binary during linking. This must work even if \$libdir does
23363 # not exist.
23364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23365
23366 # Whether we need a single -rpath flag with a separated argument.
23367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23368
23369 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23370 # resulting binary.
23371 hardcode_direct=$hardcode_direct_F77
23372
23373 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23374 # resulting binary.
23375 hardcode_minus_L=$hardcode_minus_L_F77
23376
23377 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23378 # the resulting binary.
23379 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23380
23381 # Set to yes if building a shared library automatically hardcodes DIR into the library
23382 # and all subsequent libraries and executables linked against it.
23383 hardcode_automatic=$hardcode_automatic_F77
23384
23385 # Variables whose values should be saved in libtool wrapper scripts and
23386 # restored at relink time.
23387 variables_saved_for_relink="$variables_saved_for_relink"
23388
23389 # Whether libtool must link a program against all its dependency libraries.
23390 link_all_deplibs=$link_all_deplibs_F77
23391
23392 # Compile-time system search path for libraries
23393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23394
23395 # Run-time system search path for libraries
23396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23397
23398 # Fix the shell variable \$srcfile for the compiler.
23399 fix_srcfile_path="$fix_srcfile_path_F77"
23400
23401 # Set to yes if exported symbols are required.
23402 always_export_symbols=$always_export_symbols_F77
23403
23404 # The commands to list exported symbols.
23405 export_symbols_cmds=$lt_export_symbols_cmds_F77
23406
23407 # The commands to extract the exported symbol list from a shared archive.
23408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23409
23410 # Symbols that should not be listed in the preloaded symbols.
23411 exclude_expsyms=$lt_exclude_expsyms_F77
23412
23413 # Symbols that must always be exported.
23414 include_expsyms=$lt_include_expsyms_F77
23415
23416 # ### END LIBTOOL TAG CONFIG: $tagname
23417
23418 __EOF__
23419
23420
23421 else
23422   # If there is no Makefile yet, we rely on a make rule to execute
23423   # `config.status --recheck' to rerun these tests and create the
23424   # libtool script then.
23425   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23426   if test -f "$ltmain_in"; then
23427     test -f Makefile && make "$ltmain"
23428   fi
23429 fi
23430
23431
23432 ac_ext=c
23433 ac_cpp='$CPP $CPPFLAGS'
23434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23437
23438 CC="$lt_save_CC"
23439
23440         else
23441           tagname=""
23442         fi
23443         ;;
23444
23445       GCJ)
23446         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23447           ac_ext=c
23448 ac_cpp='$CPP $CPPFLAGS'
23449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23452
23453
23454 # Source file extension for Java test sources.
23455 ac_ext=java
23456
23457 # Object file extension for compiled Java test sources.
23458 objext=o
23459 objext_GCJ=$objext
23460
23461 # Code to be used in simple compile tests
23462 lt_simple_compile_test_code="class foo {}\n"
23463
23464 # Code to be used in simple link tests
23465 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23466
23467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23468
23469 # If no C compiler was specified, use CC.
23470 LTCC=${LTCC-"$CC"}
23471
23472 # If no C compiler flags were specified, use CFLAGS.
23473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23474
23475 # Allow CC to be a program name with arguments.
23476 compiler=$CC
23477
23478
23479 # save warnings/boilerplate of simple test code
23480 ac_outfile=conftest.$ac_objext
23481 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23482 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23483 _lt_compiler_boilerplate=`cat conftest.err`
23484 $rm conftest*
23485
23486 ac_outfile=conftest.$ac_objext
23487 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23489 _lt_linker_boilerplate=`cat conftest.err`
23490 $rm conftest*
23491
23492
23493 # Allow CC to be a program name with arguments.
23494 lt_save_CC="$CC"
23495 CC=${GCJ-"gcj"}
23496 compiler=$CC
23497 compiler_GCJ=$CC
23498 for cc_temp in $compiler""; do
23499   case $cc_temp in
23500     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23501     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23502     \-*) ;;
23503     *) break;;
23504   esac
23505 done
23506 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23507
23508
23509 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23510 archive_cmds_need_lc_GCJ=no
23511
23512 old_archive_cmds_GCJ=$old_archive_cmds
23513
23514
23515 lt_prog_compiler_no_builtin_flag_GCJ=
23516
23517 if test "$GCC" = yes; then
23518   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23519
23520
23521 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23522 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23523 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526   lt_cv_prog_compiler_rtti_exceptions=no
23527   ac_outfile=conftest.$ac_objext
23528    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23529    lt_compiler_flag="-fno-rtti -fno-exceptions"
23530    # Insert the option either (1) after the last *FLAGS variable, or
23531    # (2) before a word containing "conftest.", or (3) at the end.
23532    # Note that $ac_compile itself does not contain backslashes and begins
23533    # with a dollar sign (not a hyphen), so the echo should work correctly.
23534    # The option is referenced via a variable to avoid confusing sed.
23535    lt_compile=`echo "$ac_compile" | $SED \
23536    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23537    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23538    -e 's:$: $lt_compiler_flag:'`
23539    (eval echo "\"\$as_me:23539: $lt_compile\"" >&5)
23540    (eval "$lt_compile" 2>conftest.err)
23541    ac_status=$?
23542    cat conftest.err >&5
23543    echo "$as_me:23543: \$? = $ac_status" >&5
23544    if (exit $ac_status) && test -s "$ac_outfile"; then
23545      # The compiler can only warn and ignore the option if not recognized
23546      # So say no if there are warnings other than the usual output.
23547      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23548      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23549      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23550        lt_cv_prog_compiler_rtti_exceptions=yes
23551      fi
23552    fi
23553    $rm conftest*
23554
23555 fi
23556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23557 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23558
23559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23560     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23561 else
23562     :
23563 fi
23564
23565 fi
23566
23567 lt_prog_compiler_wl_GCJ=
23568 lt_prog_compiler_pic_GCJ=
23569 lt_prog_compiler_static_GCJ=
23570
23571 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23573
23574   if test "$GCC" = yes; then
23575     lt_prog_compiler_wl_GCJ='-Wl,'
23576     lt_prog_compiler_static_GCJ='-static'
23577
23578     case $host_os in
23579       aix*)
23580       # All AIX code is PIC.
23581       if test "$host_cpu" = ia64; then
23582         # AIX 5 now supports IA64 processor
23583         lt_prog_compiler_static_GCJ='-Bstatic'
23584       fi
23585       ;;
23586
23587     amigaos*)
23588       # FIXME: we need at least 68020 code to build shared libraries, but
23589       # adding the `-m68020' flag to GCC prevents building anything better,
23590       # like `-m68040'.
23591       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23592       ;;
23593
23594     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23595       # PIC is the default for these OSes.
23596       ;;
23597
23598     mingw* | pw32* | os2*)
23599       # This hack is so that the source file can tell whether it is being
23600       # built for inclusion in a dll (and should export symbols for example).
23601       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23602       ;;
23603
23604     darwin* | rhapsody*)
23605       # PIC is the default on this platform
23606       # Common symbols not allowed in MH_DYLIB files
23607       lt_prog_compiler_pic_GCJ='-fno-common'
23608       ;;
23609
23610     interix3*)
23611       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23612       # Instead, we relocate shared libraries at runtime.
23613       ;;
23614
23615     msdosdjgpp*)
23616       # Just because we use GCC doesn't mean we suddenly get shared libraries
23617       # on systems that don't support them.
23618       lt_prog_compiler_can_build_shared_GCJ=no
23619       enable_shared=no
23620       ;;
23621
23622     sysv4*MP*)
23623       if test -d /usr/nec; then
23624         lt_prog_compiler_pic_GCJ=-Kconform_pic
23625       fi
23626       ;;
23627
23628     hpux*)
23629       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23630       # not for PA HP-UX.
23631       case $host_cpu in
23632       hppa*64*|ia64*)
23633         # +Z the default
23634         ;;
23635       *)
23636         lt_prog_compiler_pic_GCJ='-fPIC'
23637         ;;
23638       esac
23639       ;;
23640
23641     *)
23642       lt_prog_compiler_pic_GCJ='-fPIC'
23643       ;;
23644     esac
23645   else
23646     # PORTME Check for flag to pass linker flags through the system compiler.
23647     case $host_os in
23648     aix*)
23649       lt_prog_compiler_wl_GCJ='-Wl,'
23650       if test "$host_cpu" = ia64; then
23651         # AIX 5 now supports IA64 processor
23652         lt_prog_compiler_static_GCJ='-Bstatic'
23653       else
23654         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23655       fi
23656       ;;
23657       darwin*)
23658         # PIC is the default on this platform
23659         # Common symbols not allowed in MH_DYLIB files
23660        case $cc_basename in
23661          xlc*)
23662          lt_prog_compiler_pic_GCJ='-qnocommon'
23663          lt_prog_compiler_wl_GCJ='-Wl,'
23664          ;;
23665        esac
23666        ;;
23667
23668     mingw* | pw32* | os2*)
23669       # This hack is so that the source file can tell whether it is being
23670       # built for inclusion in a dll (and should export symbols for example).
23671       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23672       ;;
23673
23674     hpux9* | hpux10* | hpux11*)
23675       lt_prog_compiler_wl_GCJ='-Wl,'
23676       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23677       # not for PA HP-UX.
23678       case $host_cpu in
23679       hppa*64*|ia64*)
23680         # +Z the default
23681         ;;
23682       *)
23683         lt_prog_compiler_pic_GCJ='+Z'
23684         ;;
23685       esac
23686       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23687       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23688       ;;
23689
23690     irix5* | irix6* | nonstopux*)
23691       lt_prog_compiler_wl_GCJ='-Wl,'
23692       # PIC (with -KPIC) is the default.
23693       lt_prog_compiler_static_GCJ='-non_shared'
23694       ;;
23695
23696     newsos6)
23697       lt_prog_compiler_pic_GCJ='-KPIC'
23698       lt_prog_compiler_static_GCJ='-Bstatic'
23699       ;;
23700
23701     linux*)
23702       case $cc_basename in
23703       icc* | ecc*)
23704         lt_prog_compiler_wl_GCJ='-Wl,'
23705         lt_prog_compiler_pic_GCJ='-KPIC'
23706         lt_prog_compiler_static_GCJ='-static'
23707         ;;
23708       pgcc* | pgf77* | pgf90* | pgf95*)
23709         # Portland Group compilers (*not* the Pentium gcc compiler,
23710         # which looks to be a dead project)
23711         lt_prog_compiler_wl_GCJ='-Wl,'
23712         lt_prog_compiler_pic_GCJ='-fpic'
23713         lt_prog_compiler_static_GCJ='-Bstatic'
23714         ;;
23715       ccc*)
23716         lt_prog_compiler_wl_GCJ='-Wl,'
23717         # All Alpha code is PIC.
23718         lt_prog_compiler_static_GCJ='-non_shared'
23719         ;;
23720       esac
23721       ;;
23722
23723     osf3* | osf4* | osf5*)
23724       lt_prog_compiler_wl_GCJ='-Wl,'
23725       # All OSF/1 code is PIC.
23726       lt_prog_compiler_static_GCJ='-non_shared'
23727       ;;
23728
23729     solaris*)
23730       lt_prog_compiler_pic_GCJ='-KPIC'
23731       lt_prog_compiler_static_GCJ='-Bstatic'
23732       case $cc_basename in
23733       f77* | f90* | f95*)
23734         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23735       *)
23736         lt_prog_compiler_wl_GCJ='-Wl,';;
23737       esac
23738       ;;
23739
23740     sunos4*)
23741       lt_prog_compiler_wl_GCJ='-Qoption ld '
23742       lt_prog_compiler_pic_GCJ='-PIC'
23743       lt_prog_compiler_static_GCJ='-Bstatic'
23744       ;;
23745
23746     sysv4 | sysv4.2uw2* | sysv4.3*)
23747       lt_prog_compiler_wl_GCJ='-Wl,'
23748       lt_prog_compiler_pic_GCJ='-KPIC'
23749       lt_prog_compiler_static_GCJ='-Bstatic'
23750       ;;
23751
23752     sysv4*MP*)
23753       if test -d /usr/nec ;then
23754         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23755         lt_prog_compiler_static_GCJ='-Bstatic'
23756       fi
23757       ;;
23758
23759     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23760       lt_prog_compiler_wl_GCJ='-Wl,'
23761       lt_prog_compiler_pic_GCJ='-KPIC'
23762       lt_prog_compiler_static_GCJ='-Bstatic'
23763       ;;
23764
23765     unicos*)
23766       lt_prog_compiler_wl_GCJ='-Wl,'
23767       lt_prog_compiler_can_build_shared_GCJ=no
23768       ;;
23769
23770     uts4*)
23771       lt_prog_compiler_pic_GCJ='-pic'
23772       lt_prog_compiler_static_GCJ='-Bstatic'
23773       ;;
23774
23775     *)
23776       lt_prog_compiler_can_build_shared_GCJ=no
23777       ;;
23778     esac
23779   fi
23780
23781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23782 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23783
23784 #
23785 # Check to make sure the PIC flag actually works.
23786 #
23787 if test -n "$lt_prog_compiler_pic_GCJ"; then
23788
23789 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23790 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23791 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794   lt_prog_compiler_pic_works_GCJ=no
23795   ac_outfile=conftest.$ac_objext
23796    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23797    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23798    # Insert the option either (1) after the last *FLAGS variable, or
23799    # (2) before a word containing "conftest.", or (3) at the end.
23800    # Note that $ac_compile itself does not contain backslashes and begins
23801    # with a dollar sign (not a hyphen), so the echo should work correctly.
23802    # The option is referenced via a variable to avoid confusing sed.
23803    lt_compile=`echo "$ac_compile" | $SED \
23804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23806    -e 's:$: $lt_compiler_flag:'`
23807    (eval echo "\"\$as_me:23807: $lt_compile\"" >&5)
23808    (eval "$lt_compile" 2>conftest.err)
23809    ac_status=$?
23810    cat conftest.err >&5
23811    echo "$as_me:23811: \$? = $ac_status" >&5
23812    if (exit $ac_status) && test -s "$ac_outfile"; then
23813      # The compiler can only warn and ignore the option if not recognized
23814      # So say no if there are warnings other than the usual output.
23815      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23816      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23817      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23818        lt_prog_compiler_pic_works_GCJ=yes
23819      fi
23820    fi
23821    $rm conftest*
23822
23823 fi
23824 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23825 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23826
23827 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23828     case $lt_prog_compiler_pic_GCJ in
23829      "" | " "*) ;;
23830      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23831      esac
23832 else
23833     lt_prog_compiler_pic_GCJ=
23834      lt_prog_compiler_can_build_shared_GCJ=no
23835 fi
23836
23837 fi
23838 case $host_os in
23839   # For platforms which do not support PIC, -DPIC is meaningless:
23840   *djgpp*)
23841     lt_prog_compiler_pic_GCJ=
23842     ;;
23843   *)
23844     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23845     ;;
23846 esac
23847
23848 #
23849 # Check to make sure the static flag actually works.
23850 #
23851 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23852 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23853 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23854 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23855   echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857   lt_prog_compiler_static_works_GCJ=no
23858    save_LDFLAGS="$LDFLAGS"
23859    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23860    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23861    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23862      # The linker can only warn and ignore the option if not recognized
23863      # So say no if there are warnings
23864      if test -s conftest.err; then
23865        # Append any errors to the config.log.
23866        cat conftest.err 1>&5
23867        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23868        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23869        if diff conftest.exp conftest.er2 >/dev/null; then
23870          lt_prog_compiler_static_works_GCJ=yes
23871        fi
23872      else
23873        lt_prog_compiler_static_works_GCJ=yes
23874      fi
23875    fi
23876    $rm conftest*
23877    LDFLAGS="$save_LDFLAGS"
23878
23879 fi
23880 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23881 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23882
23883 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23884     :
23885 else
23886     lt_prog_compiler_static_GCJ=
23887 fi
23888
23889
23890 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23891 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23892 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895   lt_cv_prog_compiler_c_o_GCJ=no
23896    $rm -r conftest 2>/dev/null
23897    mkdir conftest
23898    cd conftest
23899    mkdir out
23900    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23901
23902    lt_compiler_flag="-o out/conftest2.$ac_objext"
23903    # Insert the option either (1) after the last *FLAGS variable, or
23904    # (2) before a word containing "conftest.", or (3) at the end.
23905    # Note that $ac_compile itself does not contain backslashes and begins
23906    # with a dollar sign (not a hyphen), so the echo should work correctly.
23907    lt_compile=`echo "$ac_compile" | $SED \
23908    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23909    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23910    -e 's:$: $lt_compiler_flag:'`
23911    (eval echo "\"\$as_me:23911: $lt_compile\"" >&5)
23912    (eval "$lt_compile" 2>out/conftest.err)
23913    ac_status=$?
23914    cat out/conftest.err >&5
23915    echo "$as_me:23915: \$? = $ac_status" >&5
23916    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23917    then
23918      # The compiler can only warn and ignore the option if not recognized
23919      # So say no if there are warnings
23920      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23921      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23922      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23923        lt_cv_prog_compiler_c_o_GCJ=yes
23924      fi
23925    fi
23926    chmod u+w . 2>&5
23927    $rm conftest*
23928    # SGI C++ compiler will create directory out/ii_files/ for
23929    # template instantiation
23930    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23931    $rm out/* && rmdir out
23932    cd ..
23933    rmdir conftest
23934    $rm conftest*
23935
23936 fi
23937 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23938 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23939
23940
23941 hard_links="nottested"
23942 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23943   # do not overwrite the value of need_locks provided by the user
23944   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23945 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23946   hard_links=yes
23947   $rm conftest*
23948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23949   touch conftest.a
23950   ln conftest.a conftest.b 2>&5 || hard_links=no
23951   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23952   { echo "$as_me:$LINENO: result: $hard_links" >&5
23953 echo "${ECHO_T}$hard_links" >&6; }
23954   if test "$hard_links" = no; then
23955     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23956 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23957     need_locks=warn
23958   fi
23959 else
23960   need_locks=no
23961 fi
23962
23963 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23964 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23965
23966   runpath_var=
23967   allow_undefined_flag_GCJ=
23968   enable_shared_with_static_runtimes_GCJ=no
23969   archive_cmds_GCJ=
23970   archive_expsym_cmds_GCJ=
23971   old_archive_From_new_cmds_GCJ=
23972   old_archive_from_expsyms_cmds_GCJ=
23973   export_dynamic_flag_spec_GCJ=
23974   whole_archive_flag_spec_GCJ=
23975   thread_safe_flag_spec_GCJ=
23976   hardcode_libdir_flag_spec_GCJ=
23977   hardcode_libdir_flag_spec_ld_GCJ=
23978   hardcode_libdir_separator_GCJ=
23979   hardcode_direct_GCJ=no
23980   hardcode_minus_L_GCJ=no
23981   hardcode_shlibpath_var_GCJ=unsupported
23982   link_all_deplibs_GCJ=unknown
23983   hardcode_automatic_GCJ=no
23984   module_cmds_GCJ=
23985   module_expsym_cmds_GCJ=
23986   always_export_symbols_GCJ=no
23987   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23988   # include_expsyms should be a list of space-separated symbols to be *always*
23989   # included in the symbol list
23990   include_expsyms_GCJ=
23991   # exclude_expsyms can be an extended regexp of symbols to exclude
23992   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23993   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23994   # as well as any symbol that contains `d'.
23995   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23996   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23997   # platforms (ab)use it in PIC code, but their linkers get confused if
23998   # the symbol is explicitly referenced.  Since portable code cannot
23999   # rely on this symbol name, it's probably fine to never include it in
24000   # preloaded symbol tables.
24001   extract_expsyms_cmds=
24002   # Just being paranoid about ensuring that cc_basename is set.
24003   for cc_temp in $compiler""; do
24004   case $cc_temp in
24005     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24006     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24007     \-*) ;;
24008     *) break;;
24009   esac
24010 done
24011 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24012
24013   case $host_os in
24014   cygwin* | mingw* | pw32*)
24015     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24016     # When not using gcc, we currently assume that we are using
24017     # Microsoft Visual C++.
24018     if test "$GCC" != yes; then
24019       with_gnu_ld=no
24020     fi
24021     ;;
24022   interix*)
24023     # we just hope/assume this is gcc and not c89 (= MSVC++)
24024     with_gnu_ld=yes
24025     ;;
24026   openbsd*)
24027     with_gnu_ld=no
24028     ;;
24029   esac
24030
24031   ld_shlibs_GCJ=yes
24032   if test "$with_gnu_ld" = yes; then
24033     # If archive_cmds runs LD, not CC, wlarc should be empty
24034     wlarc='${wl}'
24035
24036     # Set some defaults for GNU ld with shared library support. These
24037     # are reset later if shared libraries are not supported. Putting them
24038     # here allows them to be overridden if necessary.
24039     runpath_var=LD_RUN_PATH
24040     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24041     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24042     # ancient GNU ld didn't support --whole-archive et. al.
24043     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24044         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24045       else
24046         whole_archive_flag_spec_GCJ=
24047     fi
24048     supports_anon_versioning=no
24049     case `$LD -v 2>/dev/null` in
24050       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24051       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24052       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24053       *\ 2.11.*) ;; # other 2.11 versions
24054       *) supports_anon_versioning=yes ;;
24055     esac
24056
24057     # See if GNU ld supports shared libraries.
24058     case $host_os in
24059     aix3* | aix4* | aix5*)
24060       # On AIX/PPC, the GNU linker is very broken
24061       if test "$host_cpu" != ia64; then
24062         ld_shlibs_GCJ=no
24063         cat <<EOF 1>&2
24064
24065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24066 *** to be unable to reliably create shared libraries on AIX.
24067 *** Therefore, libtool is disabling shared libraries support.  If you
24068 *** really care for shared libraries, you may want to modify your PATH
24069 *** so that a non-GNU linker is found, and then restart.
24070
24071 EOF
24072       fi
24073       ;;
24074
24075     amigaos*)
24076       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)'
24077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24078       hardcode_minus_L_GCJ=yes
24079
24080       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24081       # that the semantics of dynamic libraries on AmigaOS, at least up
24082       # to version 4, is to share data among multiple programs linked
24083       # with the same dynamic library.  Since this doesn't match the
24084       # behavior of shared libraries on other platforms, we can't use
24085       # them.
24086       ld_shlibs_GCJ=no
24087       ;;
24088
24089     beos*)
24090       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24091         allow_undefined_flag_GCJ=unsupported
24092         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24093         # support --undefined.  This deserves some investigation.  FIXME
24094         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24095       else
24096         ld_shlibs_GCJ=no
24097       fi
24098       ;;
24099
24100     cygwin* | mingw* | pw32*)
24101       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24102       # as there is no search path for DLLs.
24103       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24104       allow_undefined_flag_GCJ=unsupported
24105       always_export_symbols_GCJ=no
24106       enable_shared_with_static_runtimes_GCJ=yes
24107       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24108
24109       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24110         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24111         # If the export-symbols file already is a .def file (1st line
24112         # is EXPORTS), use it as is; otherwise, prepend...
24113         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24114           cp $export_symbols $output_objdir/$soname.def;
24115         else
24116           echo EXPORTS > $output_objdir/$soname.def;
24117           cat $export_symbols >> $output_objdir/$soname.def;
24118         fi~
24119         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24120       else
24121         ld_shlibs_GCJ=no
24122       fi
24123       ;;
24124
24125     interix3*)
24126       hardcode_direct_GCJ=no
24127       hardcode_shlibpath_var_GCJ=no
24128       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24129       export_dynamic_flag_spec_GCJ='${wl}-E'
24130       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24131       # Instead, shared libraries are loaded at an image base (0x10000000 by
24132       # default) and relocated if they conflict, which is a slow very memory
24133       # consuming and fragmenting process.  To avoid this, we pick a random,
24134       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24135       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24136       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'
24137       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'
24138       ;;
24139
24140     linux*)
24141       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24142         tmp_addflag=
24143         case $cc_basename,$host_cpu in
24144         pgcc*)                          # Portland Group C compiler
24145           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'
24146           tmp_addflag=' $pic_flag'
24147           ;;
24148         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24149           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'
24150           tmp_addflag=' $pic_flag -Mnomain' ;;
24151         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24152           tmp_addflag=' -i_dynamic' ;;
24153         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24154           tmp_addflag=' -i_dynamic -nofor_main' ;;
24155         ifc* | ifort*)                  # Intel Fortran compiler
24156           tmp_addflag=' -nofor_main' ;;
24157         esac
24158         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24159
24160         if test $supports_anon_versioning = yes; then
24161           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24162   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24163   $echo "local: *; };" >> $output_objdir/$libname.ver~
24164           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24165         fi
24166       else
24167         ld_shlibs_GCJ=no
24168       fi
24169       ;;
24170
24171     netbsd*)
24172       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24173         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24174         wlarc=
24175       else
24176         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24177         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24178       fi
24179       ;;
24180
24181     solaris*)
24182       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24183         ld_shlibs_GCJ=no
24184         cat <<EOF 1>&2
24185
24186 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24187 *** create shared libraries on Solaris systems.  Therefore, libtool
24188 *** is disabling shared libraries support.  We urge you to upgrade GNU
24189 *** binutils to release 2.9.1 or newer.  Another option is to modify
24190 *** your PATH or compiler configuration so that the native linker is
24191 *** used, and then restart.
24192
24193 EOF
24194       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24195         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24196         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24197       else
24198         ld_shlibs_GCJ=no
24199       fi
24200       ;;
24201
24202     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24203       case `$LD -v 2>&1` in
24204         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24205         ld_shlibs_GCJ=no
24206         cat <<_LT_EOF 1>&2
24207
24208 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24209 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24210 *** is disabling shared libraries support.  We urge you to upgrade GNU
24211 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24212 *** your PATH or compiler configuration so that the native linker is
24213 *** used, and then restart.
24214
24215 _LT_EOF
24216         ;;
24217         *)
24218           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24219             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24220             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24221             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24222           else
24223             ld_shlibs_GCJ=no
24224           fi
24225         ;;
24226       esac
24227       ;;
24228
24229     sunos4*)
24230       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24231       wlarc=
24232       hardcode_direct_GCJ=yes
24233       hardcode_shlibpath_var_GCJ=no
24234       ;;
24235
24236     *)
24237       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24238         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24239         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24240       else
24241         ld_shlibs_GCJ=no
24242       fi
24243       ;;
24244     esac
24245
24246     if test "$ld_shlibs_GCJ" = no; then
24247       runpath_var=
24248       hardcode_libdir_flag_spec_GCJ=
24249       export_dynamic_flag_spec_GCJ=
24250       whole_archive_flag_spec_GCJ=
24251     fi
24252   else
24253     # PORTME fill in a description of your system's linker (not GNU ld)
24254     case $host_os in
24255     aix3*)
24256       allow_undefined_flag_GCJ=unsupported
24257       always_export_symbols_GCJ=yes
24258       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'
24259       # Note: this linker hardcodes the directories in LIBPATH if there
24260       # are no directories specified by -L.
24261       hardcode_minus_L_GCJ=yes
24262       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24263         # Neither direct hardcoding nor static linking is supported with a
24264         # broken collect2.
24265         hardcode_direct_GCJ=unsupported
24266       fi
24267       ;;
24268
24269     aix4* | aix5*)
24270       if test "$host_cpu" = ia64; then
24271         # On IA64, the linker does run time linking by default, so we don't
24272         # have to do anything special.
24273         aix_use_runtimelinking=no
24274         exp_sym_flag='-Bexport'
24275         no_entry_flag=""
24276       else
24277         # If we're using GNU nm, then we don't want the "-C" option.
24278         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24279         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24280           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'
24281         else
24282           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'
24283         fi
24284         aix_use_runtimelinking=no
24285
24286         # Test if we are trying to use run time linking or normal
24287         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24288         # need to do runtime linking.
24289         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24290           for ld_flag in $LDFLAGS; do
24291           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24292             aix_use_runtimelinking=yes
24293             break
24294           fi
24295           done
24296           ;;
24297         esac
24298
24299         exp_sym_flag='-bexport'
24300         no_entry_flag='-bnoentry'
24301       fi
24302
24303       # When large executables or shared objects are built, AIX ld can
24304       # have problems creating the table of contents.  If linking a library
24305       # or program results in "error TOC overflow" add -mminimal-toc to
24306       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24307       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24308
24309       archive_cmds_GCJ=''
24310       hardcode_direct_GCJ=yes
24311       hardcode_libdir_separator_GCJ=':'
24312       link_all_deplibs_GCJ=yes
24313
24314       if test "$GCC" = yes; then
24315         case $host_os in aix4.[012]|aix4.[012].*)
24316         # We only want to do this on AIX 4.2 and lower, the check
24317         # below for broken collect2 doesn't work under 4.3+
24318           collect2name=`${CC} -print-prog-name=collect2`
24319           if test -f "$collect2name" && \
24320            strings "$collect2name" | grep resolve_lib_name >/dev/null
24321           then
24322           # We have reworked collect2
24323           hardcode_direct_GCJ=yes
24324           else
24325           # We have old collect2
24326           hardcode_direct_GCJ=unsupported
24327           # It fails to find uninstalled libraries when the uninstalled
24328           # path is not listed in the libpath.  Setting hardcode_minus_L
24329           # to unsupported forces relinking
24330           hardcode_minus_L_GCJ=yes
24331           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24332           hardcode_libdir_separator_GCJ=
24333           fi
24334           ;;
24335         esac
24336         shared_flag='-shared'
24337         if test "$aix_use_runtimelinking" = yes; then
24338           shared_flag="$shared_flag "'${wl}-G'
24339         fi
24340       else
24341         # not using gcc
24342         if test "$host_cpu" = ia64; then
24343         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24344         # chokes on -Wl,-G. The following line is correct:
24345           shared_flag='-G'
24346         else
24347           if test "$aix_use_runtimelinking" = yes; then
24348             shared_flag='${wl}-G'
24349           else
24350             shared_flag='${wl}-bM:SRE'
24351           fi
24352         fi
24353       fi
24354
24355       # It seems that -bexpall does not export symbols beginning with
24356       # underscore (_), so it is better to generate a list of symbols to export.
24357       always_export_symbols_GCJ=yes
24358       if test "$aix_use_runtimelinking" = yes; then
24359         # Warning - without using the other runtime loading flags (-brtl),
24360         # -berok will link without error, but may produce a broken library.
24361         allow_undefined_flag_GCJ='-berok'
24362        # Determine the default libpath from the value encoded in an empty executable.
24363        cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h.  */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h.  */
24369
24370 int
24371 main ()
24372 {
24373
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (ac_try="$ac_link"
24380 case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385   (eval "$ac_link") 2>conftest.er1
24386   ac_status=$?
24387   grep -v '^ *+' conftest.er1 >conftest.err
24388   rm -f conftest.er1
24389   cat conftest.err >&5
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); } &&
24392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24393   { (case "(($ac_try" in
24394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395   *) ac_try_echo=$ac_try;;
24396 esac
24397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24398   (eval "$ac_try") 2>&5
24399   ac_status=$?
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); }; } &&
24402          { ac_try='test -s conftest$ac_exeext'
24403   { (case "(($ac_try" in
24404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405   *) ac_try_echo=$ac_try;;
24406 esac
24407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408   (eval "$ac_try") 2>&5
24409   ac_status=$?
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); }; }; then
24412
24413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24414 }'`
24415 # Check for a 64-bit object if we didn't find anything.
24416 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; }
24417 }'`; fi
24418 else
24419   echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422
24423 fi
24424
24425 rm -f core conftest.err conftest.$ac_objext \
24426       conftest$ac_exeext conftest.$ac_ext
24427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24428
24429        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24430         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"
24431        else
24432         if test "$host_cpu" = ia64; then
24433           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24434           allow_undefined_flag_GCJ="-z nodefs"
24435           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"
24436         else
24437          # Determine the default libpath from the value encoded in an empty executable.
24438          cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444
24445 int
24446 main ()
24447 {
24448
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457   *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460   (eval "$ac_link") 2>conftest.er1
24461   ac_status=$?
24462   grep -v '^ *+' conftest.er1 >conftest.err
24463   rm -f conftest.er1
24464   cat conftest.err >&5
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); } &&
24467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24468   { (case "(($ac_try" in
24469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470   *) ac_try_echo=$ac_try;;
24471 esac
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473   (eval "$ac_try") 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; } &&
24477          { ac_try='test -s conftest$ac_exeext'
24478   { (case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483   (eval "$ac_try") 2>&5
24484   ac_status=$?
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); }; }; then
24487
24488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24489 }'`
24490 # Check for a 64-bit object if we didn't find anything.
24491 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; }
24492 }'`; fi
24493 else
24494   echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24496
24497
24498 fi
24499
24500 rm -f core conftest.err conftest.$ac_objext \
24501       conftest$ac_exeext conftest.$ac_ext
24502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24503
24504          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24505           # Warning - without using the other run time loading flags,
24506           # -berok will link without error, but may produce a broken library.
24507           no_undefined_flag_GCJ=' ${wl}-bernotok'
24508           allow_undefined_flag_GCJ=' ${wl}-berok'
24509           # Exported symbols can be pulled into shared objects from archives
24510           whole_archive_flag_spec_GCJ='$convenience'
24511           archive_cmds_need_lc_GCJ=yes
24512           # This is similar to how AIX traditionally builds its shared libraries.
24513           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'
24514         fi
24515       fi
24516       ;;
24517
24518     amigaos*)
24519       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)'
24520       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24521       hardcode_minus_L_GCJ=yes
24522       # see comment about different semantics on the GNU ld section
24523       ld_shlibs_GCJ=no
24524       ;;
24525
24526     bsdi[45]*)
24527       export_dynamic_flag_spec_GCJ=-rdynamic
24528       ;;
24529
24530     cygwin* | mingw* | pw32*)
24531       # When not using gcc, we currently assume that we are using
24532       # Microsoft Visual C++.
24533       # hardcode_libdir_flag_spec is actually meaningless, as there is
24534       # no search path for DLLs.
24535       hardcode_libdir_flag_spec_GCJ=' '
24536       allow_undefined_flag_GCJ=unsupported
24537       # Tell ltmain to make .lib files, not .a files.
24538       libext=lib
24539       # Tell ltmain to make .dll files, not .so files.
24540       shrext_cmds=".dll"
24541       # FIXME: Setting linknames here is a bad hack.
24542       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24543       # The linker will automatically build a .lib file if we build a DLL.
24544       old_archive_From_new_cmds_GCJ='true'
24545       # FIXME: Should let the user specify the lib program.
24546       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24547       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24548       enable_shared_with_static_runtimes_GCJ=yes
24549       ;;
24550
24551     darwin* | rhapsody*)
24552       case $host_os in
24553         rhapsody* | darwin1.[012])
24554          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24555          ;;
24556        *) # Darwin 1.3 on
24557          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24558            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24559          else
24560            case ${MACOSX_DEPLOYMENT_TARGET} in
24561              10.[012])
24562                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24563                ;;
24564              10.*)
24565                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24566                ;;
24567            esac
24568          fi
24569          ;;
24570       esac
24571       archive_cmds_need_lc_GCJ=no
24572       hardcode_direct_GCJ=no
24573       hardcode_automatic_GCJ=yes
24574       hardcode_shlibpath_var_GCJ=unsupported
24575       whole_archive_flag_spec_GCJ=''
24576       link_all_deplibs_GCJ=yes
24577     if test "$GCC" = yes ; then
24578         output_verbose_link_cmd='echo'
24579         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24580       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24581       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24582       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}'
24583       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}'
24584     else
24585       case $cc_basename in
24586         xlc*)
24587          output_verbose_link_cmd='echo'
24588          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24589          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24590           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24591          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}'
24592           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}'
24593           ;;
24594        *)
24595          ld_shlibs_GCJ=no
24596           ;;
24597       esac
24598     fi
24599       ;;
24600
24601     dgux*)
24602       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24603       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24604       hardcode_shlibpath_var_GCJ=no
24605       ;;
24606
24607     freebsd1*)
24608       ld_shlibs_GCJ=no
24609       ;;
24610
24611     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24612     # support.  Future versions do this automatically, but an explicit c++rt0.o
24613     # does not break anything, and helps significantly (at the cost of a little
24614     # extra space).
24615     freebsd2.2*)
24616       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24617       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24618       hardcode_direct_GCJ=yes
24619       hardcode_shlibpath_var_GCJ=no
24620       ;;
24621
24622     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24623     freebsd2*)
24624       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24625       hardcode_direct_GCJ=yes
24626       hardcode_minus_L_GCJ=yes
24627       hardcode_shlibpath_var_GCJ=no
24628       ;;
24629
24630     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24631     freebsd* | kfreebsd*-gnu | dragonfly*)
24632       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24633       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24634       hardcode_direct_GCJ=yes
24635       hardcode_shlibpath_var_GCJ=no
24636       ;;
24637
24638     hpux9*)
24639       if test "$GCC" = yes; then
24640         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'
24641       else
24642         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'
24643       fi
24644       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24645       hardcode_libdir_separator_GCJ=:
24646       hardcode_direct_GCJ=yes
24647
24648       # hardcode_minus_L: Not really in the search PATH,
24649       # but as the default location of the library.
24650       hardcode_minus_L_GCJ=yes
24651       export_dynamic_flag_spec_GCJ='${wl}-E'
24652       ;;
24653
24654     hpux10*)
24655       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24656         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24657       else
24658         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24659       fi
24660       if test "$with_gnu_ld" = no; then
24661         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24662         hardcode_libdir_separator_GCJ=:
24663
24664         hardcode_direct_GCJ=yes
24665         export_dynamic_flag_spec_GCJ='${wl}-E'
24666
24667         # hardcode_minus_L: Not really in the search PATH,
24668         # but as the default location of the library.
24669         hardcode_minus_L_GCJ=yes
24670       fi
24671       ;;
24672
24673     hpux11*)
24674       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24675         case $host_cpu in
24676         hppa*64*)
24677           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24678           ;;
24679         ia64*)
24680           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24681           ;;
24682         *)
24683           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24684           ;;
24685         esac
24686       else
24687         case $host_cpu in
24688         hppa*64*)
24689           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24690           ;;
24691         ia64*)
24692           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24693           ;;
24694         *)
24695           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24696           ;;
24697         esac
24698       fi
24699       if test "$with_gnu_ld" = no; then
24700         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24701         hardcode_libdir_separator_GCJ=:
24702
24703         case $host_cpu in
24704         hppa*64*|ia64*)
24705           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24706           hardcode_direct_GCJ=no
24707           hardcode_shlibpath_var_GCJ=no
24708           ;;
24709         *)
24710           hardcode_direct_GCJ=yes
24711           export_dynamic_flag_spec_GCJ='${wl}-E'
24712
24713           # hardcode_minus_L: Not really in the search PATH,
24714           # but as the default location of the library.
24715           hardcode_minus_L_GCJ=yes
24716           ;;
24717         esac
24718       fi
24719       ;;
24720
24721     irix5* | irix6* | nonstopux*)
24722       if test "$GCC" = yes; then
24723         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'
24724       else
24725         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'
24726         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24727       fi
24728       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24729       hardcode_libdir_separator_GCJ=:
24730       link_all_deplibs_GCJ=yes
24731       ;;
24732
24733     netbsd*)
24734       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24735         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24736       else
24737         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24738       fi
24739       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24740       hardcode_direct_GCJ=yes
24741       hardcode_shlibpath_var_GCJ=no
24742       ;;
24743
24744     newsos6)
24745       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24746       hardcode_direct_GCJ=yes
24747       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24748       hardcode_libdir_separator_GCJ=:
24749       hardcode_shlibpath_var_GCJ=no
24750       ;;
24751
24752     openbsd*)
24753       hardcode_direct_GCJ=yes
24754       hardcode_shlibpath_var_GCJ=no
24755       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24756         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24757         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24758         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24759         export_dynamic_flag_spec_GCJ='${wl}-E'
24760       else
24761        case $host_os in
24762          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24763            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24764            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24765            ;;
24766          *)
24767            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24768            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24769            ;;
24770        esac
24771       fi
24772       ;;
24773
24774     os2*)
24775       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24776       hardcode_minus_L_GCJ=yes
24777       allow_undefined_flag_GCJ=unsupported
24778       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'
24779       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24780       ;;
24781
24782     osf3*)
24783       if test "$GCC" = yes; then
24784         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24785         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'
24786       else
24787         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24788         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'
24789       fi
24790       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24791       hardcode_libdir_separator_GCJ=:
24792       ;;
24793
24794     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24795       if test "$GCC" = yes; then
24796         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24797         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'
24798         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24799       else
24800         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24801         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'
24802         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~
24803         $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'
24804
24805         # Both c and cxx compiler support -rpath directly
24806         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24807       fi
24808       hardcode_libdir_separator_GCJ=:
24809       ;;
24810
24811     solaris*)
24812       no_undefined_flag_GCJ=' -z text'
24813       if test "$GCC" = yes; then
24814         wlarc='${wl}'
24815         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24816         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24817           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24818       else
24819         wlarc=''
24820         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24821         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24822         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24823       fi
24824       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24825       hardcode_shlibpath_var_GCJ=no
24826       case $host_os in
24827       solaris2.[0-5] | solaris2.[0-5].*) ;;
24828       *)
24829         # The compiler driver will combine linker options so we
24830         # cannot just pass the convience library names through
24831         # without $wl, iff we do not link with $LD.
24832         # Luckily, gcc supports the same syntax we need for Sun Studio.
24833         # Supported since Solaris 2.6 (maybe 2.5.1?)
24834         case $wlarc in
24835         '')
24836           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24837         *)
24838           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' ;;
24839         esac ;;
24840       esac
24841       link_all_deplibs_GCJ=yes
24842       ;;
24843
24844     sunos4*)
24845       if test "x$host_vendor" = xsequent; then
24846         # Use $CC to link under sequent, because it throws in some extra .o
24847         # files that make .init and .fini sections work.
24848         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24849       else
24850         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24851       fi
24852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24853       hardcode_direct_GCJ=yes
24854       hardcode_minus_L_GCJ=yes
24855       hardcode_shlibpath_var_GCJ=no
24856       ;;
24857
24858     sysv4)
24859       case $host_vendor in
24860         sni)
24861           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24862           hardcode_direct_GCJ=yes # is this really true???
24863         ;;
24864         siemens)
24865           ## LD is ld it makes a PLAMLIB
24866           ## CC just makes a GrossModule.
24867           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24868           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24869           hardcode_direct_GCJ=no
24870         ;;
24871         motorola)
24872           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24873           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24874         ;;
24875       esac
24876       runpath_var='LD_RUN_PATH'
24877       hardcode_shlibpath_var_GCJ=no
24878       ;;
24879
24880     sysv4.3*)
24881       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24882       hardcode_shlibpath_var_GCJ=no
24883       export_dynamic_flag_spec_GCJ='-Bexport'
24884       ;;
24885
24886     sysv4*MP*)
24887       if test -d /usr/nec; then
24888         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24889         hardcode_shlibpath_var_GCJ=no
24890         runpath_var=LD_RUN_PATH
24891         hardcode_runpath_var=yes
24892         ld_shlibs_GCJ=yes
24893       fi
24894       ;;
24895
24896     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24897       no_undefined_flag_GCJ='${wl}-z,text'
24898       archive_cmds_need_lc_GCJ=no
24899       hardcode_shlibpath_var_GCJ=no
24900       runpath_var='LD_RUN_PATH'
24901
24902       if test "$GCC" = yes; then
24903         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24904         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24905       else
24906         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24907         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24908       fi
24909       ;;
24910
24911     sysv5* | sco3.2v5* | sco5v6*)
24912       # Note: We can NOT use -z defs as we might desire, because we do not
24913       # link with -lc, and that would cause any symbols used from libc to
24914       # always be unresolved, which means just about no library would
24915       # ever link correctly.  If we're not using GNU ld we use -z text
24916       # though, which does catch some bad symbols but isn't as heavy-handed
24917       # as -z defs.
24918       no_undefined_flag_GCJ='${wl}-z,text'
24919       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24920       archive_cmds_need_lc_GCJ=no
24921       hardcode_shlibpath_var_GCJ=no
24922       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24923       hardcode_libdir_separator_GCJ=':'
24924       link_all_deplibs_GCJ=yes
24925       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24926       runpath_var='LD_RUN_PATH'
24927
24928       if test "$GCC" = yes; then
24929         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24931       else
24932         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24933         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24934       fi
24935       ;;
24936
24937     uts4*)
24938       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24939       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24940       hardcode_shlibpath_var_GCJ=no
24941       ;;
24942
24943     *)
24944       ld_shlibs_GCJ=no
24945       ;;
24946     esac
24947   fi
24948
24949 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24950 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24951 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24952
24953 #
24954 # Do we need to explicitly link libc?
24955 #
24956 case "x$archive_cmds_need_lc_GCJ" in
24957 x|xyes)
24958   # Assume -lc should be added
24959   archive_cmds_need_lc_GCJ=yes
24960
24961   if test "$enable_shared" = yes && test "$GCC" = yes; then
24962     case $archive_cmds_GCJ in
24963     *'~'*)
24964       # FIXME: we may have to deal with multi-command sequences.
24965       ;;
24966     '$CC '*)
24967       # Test whether the compiler implicitly links with -lc since on some
24968       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24969       # to ld, don't add -lc before -lgcc.
24970       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24971 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24972       $rm conftest*
24973       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24974
24975       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24976   (eval $ac_compile) 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); } 2>conftest.err; then
24980         soname=conftest
24981         lib=conftest
24982         libobjs=conftest.$ac_objext
24983         deplibs=
24984         wl=$lt_prog_compiler_wl_GCJ
24985         pic_flag=$lt_prog_compiler_pic_GCJ
24986         compiler_flags=-v
24987         linker_flags=-v
24988         verstring=
24989         output_objdir=.
24990         libname=conftest
24991         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24992         allow_undefined_flag_GCJ=
24993         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24994   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24995   ac_status=$?
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); }
24998         then
24999           archive_cmds_need_lc_GCJ=no
25000         else
25001           archive_cmds_need_lc_GCJ=yes
25002         fi
25003         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25004       else
25005         cat conftest.err 1>&5
25006       fi
25007       $rm conftest*
25008       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25009 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25010       ;;
25011     esac
25012   fi
25013   ;;
25014 esac
25015
25016 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25017 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25018 library_names_spec=
25019 libname_spec='lib$name'
25020 soname_spec=
25021 shrext_cmds=".so"
25022 postinstall_cmds=
25023 postuninstall_cmds=
25024 finish_cmds=
25025 finish_eval=
25026 shlibpath_var=
25027 shlibpath_overrides_runpath=unknown
25028 version_type=none
25029 dynamic_linker="$host_os ld.so"
25030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25031 if test "$GCC" = yes; then
25032   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25033   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25034     # if the path contains ";" then we assume it to be the separator
25035     # otherwise default to the standard path separator (i.e. ":") - it is
25036     # assumed that no part of a normal pathname contains ";" but that should
25037     # okay in the real world where ";" in dirpaths is itself problematic.
25038     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25039   else
25040     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25041   fi
25042 else
25043   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25044 fi
25045 need_lib_prefix=unknown
25046 hardcode_into_libs=no
25047
25048 # when you set need_version to no, make sure it does not cause -set_version
25049 # flags to be left without arguments
25050 need_version=unknown
25051
25052 case $host_os in
25053 aix3*)
25054   version_type=linux
25055   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25056   shlibpath_var=LIBPATH
25057
25058   # AIX 3 has no versioning support, so we append a major version to the name.
25059   soname_spec='${libname}${release}${shared_ext}$major'
25060   ;;
25061
25062 aix4* | aix5*)
25063   version_type=linux
25064   need_lib_prefix=no
25065   need_version=no
25066   hardcode_into_libs=yes
25067   if test "$host_cpu" = ia64; then
25068     # AIX 5 supports IA64
25069     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25070     shlibpath_var=LD_LIBRARY_PATH
25071   else
25072     # With GCC up to 2.95.x, collect2 would create an import file
25073     # for dependence libraries.  The import file would start with
25074     # the line `#! .'.  This would cause the generated library to
25075     # depend on `.', always an invalid library.  This was fixed in
25076     # development snapshots of GCC prior to 3.0.
25077     case $host_os in
25078       aix4 | aix4.[01] | aix4.[01].*)
25079       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25080            echo ' yes '
25081            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25082         :
25083       else
25084         can_build_shared=no
25085       fi
25086       ;;
25087     esac
25088     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25089     # soname into executable. Probably we can add versioning support to
25090     # collect2, so additional links can be useful in future.
25091     if test "$aix_use_runtimelinking" = yes; then
25092       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25093       # instead of lib<name>.a to let people know that these are not
25094       # typical AIX shared libraries.
25095       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25096     else
25097       # We preserve .a as extension for shared libraries through AIX4.2
25098       # and later when we are not doing run time linking.
25099       library_names_spec='${libname}${release}.a $libname.a'
25100       soname_spec='${libname}${release}${shared_ext}$major'
25101     fi
25102     shlibpath_var=LIBPATH
25103   fi
25104   ;;
25105
25106 amigaos*)
25107   library_names_spec='$libname.ixlibrary $libname.a'
25108   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25109   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'
25110   ;;
25111
25112 beos*)
25113   library_names_spec='${libname}${shared_ext}'
25114   dynamic_linker="$host_os ld.so"
25115   shlibpath_var=LIBRARY_PATH
25116   ;;
25117
25118 bsdi[45]*)
25119   version_type=linux
25120   need_version=no
25121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25122   soname_spec='${libname}${release}${shared_ext}$major'
25123   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25124   shlibpath_var=LD_LIBRARY_PATH
25125   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25126   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25127   # the default ld.so.conf also contains /usr/contrib/lib and
25128   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25129   # libtool to hard-code these into programs
25130   ;;
25131
25132 cygwin* | mingw* | pw32*)
25133   version_type=windows
25134   shrext_cmds=".dll"
25135   need_version=no
25136   need_lib_prefix=no
25137
25138   case $GCC,$host_os in
25139   yes,cygwin* | yes,mingw* | yes,pw32*)
25140     library_names_spec='$libname.dll.a'
25141     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25142     postinstall_cmds='base_file=`basename \${file}`~
25143       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25144       dldir=$destdir/`dirname \$dlpath`~
25145       test -d \$dldir || mkdir -p \$dldir~
25146       $install_prog $dir/$dlname \$dldir/$dlname~
25147       chmod a+x \$dldir/$dlname'
25148     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25149       dlpath=$dir/\$dldll~
25150        $rm \$dlpath'
25151     shlibpath_overrides_runpath=yes
25152
25153     case $host_os in
25154     cygwin*)
25155       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25156       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25157       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25158       ;;
25159     mingw*)
25160       # MinGW DLLs use traditional 'lib' prefix
25161       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25162       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25163       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25164         # It is most probably a Windows format PATH printed by
25165         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25166         # path with ; separators, and with drive letters. We can handle the
25167         # drive letters (cygwin fileutils understands them), so leave them,
25168         # especially as we might pass files found there to a mingw objdump,
25169         # which wouldn't understand a cygwinified path. Ahh.
25170         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25171       else
25172         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25173       fi
25174       ;;
25175     pw32*)
25176       # pw32 DLLs use 'pw' prefix rather than 'lib'
25177       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25178       ;;
25179     esac
25180     ;;
25181
25182   *)
25183     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25184     ;;
25185   esac
25186   dynamic_linker='Win32 ld.exe'
25187   # FIXME: first we should search . and the directory the executable is in
25188   shlibpath_var=PATH
25189   ;;
25190
25191 darwin* | rhapsody*)
25192   dynamic_linker="$host_os dyld"
25193   version_type=darwin
25194   need_lib_prefix=no
25195   need_version=no
25196   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25197   soname_spec='${libname}${release}${major}$shared_ext'
25198   shlibpath_overrides_runpath=yes
25199   shlibpath_var=DYLD_LIBRARY_PATH
25200   shrext_cmds='.dylib'
25201   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25202   if test "$GCC" = yes; then
25203     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"`
25204   else
25205     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25206   fi
25207   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25208   ;;
25209
25210 dgux*)
25211   version_type=linux
25212   need_lib_prefix=no
25213   need_version=no
25214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25215   soname_spec='${libname}${release}${shared_ext}$major'
25216   shlibpath_var=LD_LIBRARY_PATH
25217   ;;
25218
25219 freebsd1*)
25220   dynamic_linker=no
25221   ;;
25222
25223 kfreebsd*-gnu)
25224   version_type=linux
25225   need_lib_prefix=no
25226   need_version=no
25227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25228   soname_spec='${libname}${release}${shared_ext}$major'
25229   shlibpath_var=LD_LIBRARY_PATH
25230   shlibpath_overrides_runpath=no
25231   hardcode_into_libs=yes
25232   dynamic_linker='GNU ld.so'
25233   ;;
25234
25235 freebsd* | dragonfly*)
25236   # DragonFly does not have aout.  When/if they implement a new
25237   # versioning mechanism, adjust this.
25238   if test -x /usr/bin/objformat; then
25239     objformat=`/usr/bin/objformat`
25240   else
25241     case $host_os in
25242     freebsd[123]*) objformat=aout ;;
25243     *) objformat=elf ;;
25244     esac
25245   fi
25246   version_type=freebsd-$objformat
25247   case $version_type in
25248     freebsd-elf*)
25249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25250       need_version=no
25251       need_lib_prefix=no
25252       ;;
25253     freebsd-*)
25254       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25255       need_version=yes
25256       ;;
25257   esac
25258   shlibpath_var=LD_LIBRARY_PATH
25259   case $host_os in
25260   freebsd2*)
25261     shlibpath_overrides_runpath=yes
25262     ;;
25263   freebsd3.[01]* | freebsdelf3.[01]*)
25264     shlibpath_overrides_runpath=yes
25265     hardcode_into_libs=yes
25266     ;;
25267   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25268   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25269     shlibpath_overrides_runpath=no
25270     hardcode_into_libs=yes
25271     ;;
25272   freebsd*) # from 4.6 on
25273     shlibpath_overrides_runpath=yes
25274     hardcode_into_libs=yes
25275     ;;
25276   esac
25277   ;;
25278
25279 gnu*)
25280   version_type=linux
25281   need_lib_prefix=no
25282   need_version=no
25283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25284   soname_spec='${libname}${release}${shared_ext}$major'
25285   shlibpath_var=LD_LIBRARY_PATH
25286   hardcode_into_libs=yes
25287   ;;
25288
25289 hpux9* | hpux10* | hpux11*)
25290   # Give a soname corresponding to the major version so that dld.sl refuses to
25291   # link against other versions.
25292   version_type=sunos
25293   need_lib_prefix=no
25294   need_version=no
25295   case $host_cpu in
25296   ia64*)
25297     shrext_cmds='.so'
25298     hardcode_into_libs=yes
25299     dynamic_linker="$host_os dld.so"
25300     shlibpath_var=LD_LIBRARY_PATH
25301     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25303     soname_spec='${libname}${release}${shared_ext}$major'
25304     if test "X$HPUX_IA64_MODE" = X32; then
25305       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25306     else
25307       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25308     fi
25309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25310     ;;
25311    hppa*64*)
25312      shrext_cmds='.sl'
25313      hardcode_into_libs=yes
25314      dynamic_linker="$host_os dld.sl"
25315      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25316      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25317      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25318      soname_spec='${libname}${release}${shared_ext}$major'
25319      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25320      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25321      ;;
25322    *)
25323     shrext_cmds='.sl'
25324     dynamic_linker="$host_os dld.sl"
25325     shlibpath_var=SHLIB_PATH
25326     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25328     soname_spec='${libname}${release}${shared_ext}$major'
25329     ;;
25330   esac
25331   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25332   postinstall_cmds='chmod 555 $lib'
25333   ;;
25334
25335 interix3*)
25336   version_type=linux
25337   need_lib_prefix=no
25338   need_version=no
25339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25340   soname_spec='${libname}${release}${shared_ext}$major'
25341   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25342   shlibpath_var=LD_LIBRARY_PATH
25343   shlibpath_overrides_runpath=no
25344   hardcode_into_libs=yes
25345   ;;
25346
25347 irix5* | irix6* | nonstopux*)
25348   case $host_os in
25349     nonstopux*) version_type=nonstopux ;;
25350     *)
25351         if test "$lt_cv_prog_gnu_ld" = yes; then
25352                 version_type=linux
25353         else
25354                 version_type=irix
25355         fi ;;
25356   esac
25357   need_lib_prefix=no
25358   need_version=no
25359   soname_spec='${libname}${release}${shared_ext}$major'
25360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25361   case $host_os in
25362   irix5* | nonstopux*)
25363     libsuff= shlibsuff=
25364     ;;
25365   *)
25366     case $LD in # libtool.m4 will add one of these switches to LD
25367     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25368       libsuff= shlibsuff= libmagic=32-bit;;
25369     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25370       libsuff=32 shlibsuff=N32 libmagic=N32;;
25371     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25372       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25373     *) libsuff= shlibsuff= libmagic=never-match;;
25374     esac
25375     ;;
25376   esac
25377   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25378   shlibpath_overrides_runpath=no
25379   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25380   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25381   hardcode_into_libs=yes
25382   ;;
25383
25384 # No shared lib support for Linux oldld, aout, or coff.
25385 linux*oldld* | linux*aout* | linux*coff*)
25386   dynamic_linker=no
25387   ;;
25388
25389 # This must be Linux ELF.
25390 linux*)
25391   version_type=linux
25392   need_lib_prefix=no
25393   need_version=no
25394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25395   soname_spec='${libname}${release}${shared_ext}$major'
25396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25397   shlibpath_var=LD_LIBRARY_PATH
25398   shlibpath_overrides_runpath=no
25399   # This implies no fast_install, which is unacceptable.
25400   # Some rework will be needed to allow for fast_install
25401   # before this can be enabled.
25402   hardcode_into_libs=yes
25403
25404   # Append ld.so.conf contents to the search path
25405   if test -f /etc/ld.so.conf; then
25406     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' ' '`
25407     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25408   fi
25409
25410   # We used to test for /lib/ld.so.1 and disable shared libraries on
25411   # powerpc, because MkLinux only supported shared libraries with the
25412   # GNU dynamic linker.  Since this was broken with cross compilers,
25413   # most powerpc-linux boxes support dynamic linking these days and
25414   # people can always --disable-shared, the test was removed, and we
25415   # assume the GNU/Linux dynamic linker is in use.
25416   dynamic_linker='GNU/Linux ld.so'
25417   ;;
25418
25419 knetbsd*-gnu)
25420   version_type=linux
25421   need_lib_prefix=no
25422   need_version=no
25423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25424   soname_spec='${libname}${release}${shared_ext}$major'
25425   shlibpath_var=LD_LIBRARY_PATH
25426   shlibpath_overrides_runpath=no
25427   hardcode_into_libs=yes
25428   dynamic_linker='GNU ld.so'
25429   ;;
25430
25431 netbsd*)
25432   version_type=sunos
25433   need_lib_prefix=no
25434   need_version=no
25435   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25437     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25438     dynamic_linker='NetBSD (a.out) ld.so'
25439   else
25440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25441     soname_spec='${libname}${release}${shared_ext}$major'
25442     dynamic_linker='NetBSD ld.elf_so'
25443   fi
25444   shlibpath_var=LD_LIBRARY_PATH
25445   shlibpath_overrides_runpath=yes
25446   hardcode_into_libs=yes
25447   ;;
25448
25449 newsos6)
25450   version_type=linux
25451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25452   shlibpath_var=LD_LIBRARY_PATH
25453   shlibpath_overrides_runpath=yes
25454   ;;
25455
25456 nto-qnx*)
25457   version_type=linux
25458   need_lib_prefix=no
25459   need_version=no
25460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25461   soname_spec='${libname}${release}${shared_ext}$major'
25462   shlibpath_var=LD_LIBRARY_PATH
25463   shlibpath_overrides_runpath=yes
25464   ;;
25465
25466 openbsd*)
25467   version_type=sunos
25468   sys_lib_dlsearch_path_spec="/usr/lib"
25469   need_lib_prefix=no
25470   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25471   case $host_os in
25472     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25473     *)                         need_version=no  ;;
25474   esac
25475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25477   shlibpath_var=LD_LIBRARY_PATH
25478   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25479     case $host_os in
25480       openbsd2.[89] | openbsd2.[89].*)
25481         shlibpath_overrides_runpath=no
25482         ;;
25483       *)
25484         shlibpath_overrides_runpath=yes
25485         ;;
25486       esac
25487   else
25488     shlibpath_overrides_runpath=yes
25489   fi
25490   ;;
25491
25492 os2*)
25493   libname_spec='$name'
25494   shrext_cmds=".dll"
25495   need_lib_prefix=no
25496   library_names_spec='$libname${shared_ext} $libname.a'
25497   dynamic_linker='OS/2 ld.exe'
25498   shlibpath_var=LIBPATH
25499   ;;
25500
25501 osf3* | osf4* | osf5*)
25502   version_type=osf
25503   need_lib_prefix=no
25504   need_version=no
25505   soname_spec='${libname}${release}${shared_ext}$major'
25506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25507   shlibpath_var=LD_LIBRARY_PATH
25508   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25509   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25510   ;;
25511
25512 solaris*)
25513   version_type=linux
25514   need_lib_prefix=no
25515   need_version=no
25516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25517   soname_spec='${libname}${release}${shared_ext}$major'
25518   shlibpath_var=LD_LIBRARY_PATH
25519   shlibpath_overrides_runpath=yes
25520   hardcode_into_libs=yes
25521   # ldd complains unless libraries are executable
25522   postinstall_cmds='chmod +x $lib'
25523   ;;
25524
25525 sunos4*)
25526   version_type=sunos
25527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25528   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25529   shlibpath_var=LD_LIBRARY_PATH
25530   shlibpath_overrides_runpath=yes
25531   if test "$with_gnu_ld" = yes; then
25532     need_lib_prefix=no
25533   fi
25534   need_version=yes
25535   ;;
25536
25537 sysv4 | sysv4.3*)
25538   version_type=linux
25539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25540   soname_spec='${libname}${release}${shared_ext}$major'
25541   shlibpath_var=LD_LIBRARY_PATH
25542   case $host_vendor in
25543     sni)
25544       shlibpath_overrides_runpath=no
25545       need_lib_prefix=no
25546       export_dynamic_flag_spec='${wl}-Blargedynsym'
25547       runpath_var=LD_RUN_PATH
25548       ;;
25549     siemens)
25550       need_lib_prefix=no
25551       ;;
25552     motorola)
25553       need_lib_prefix=no
25554       need_version=no
25555       shlibpath_overrides_runpath=no
25556       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25557       ;;
25558   esac
25559   ;;
25560
25561 sysv4*MP*)
25562   if test -d /usr/nec ;then
25563     version_type=linux
25564     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25565     soname_spec='$libname${shared_ext}.$major'
25566     shlibpath_var=LD_LIBRARY_PATH
25567   fi
25568   ;;
25569
25570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25571   version_type=freebsd-elf
25572   need_lib_prefix=no
25573   need_version=no
25574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25575   soname_spec='${libname}${release}${shared_ext}$major'
25576   shlibpath_var=LD_LIBRARY_PATH
25577   hardcode_into_libs=yes
25578   if test "$with_gnu_ld" = yes; then
25579     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25580     shlibpath_overrides_runpath=no
25581   else
25582     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25583     shlibpath_overrides_runpath=yes
25584     case $host_os in
25585       sco3.2v5*)
25586         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25587         ;;
25588     esac
25589   fi
25590   sys_lib_dlsearch_path_spec='/usr/lib'
25591   ;;
25592
25593 uts4*)
25594   version_type=linux
25595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596   soname_spec='${libname}${release}${shared_ext}$major'
25597   shlibpath_var=LD_LIBRARY_PATH
25598   ;;
25599
25600 *)
25601   dynamic_linker=no
25602   ;;
25603 esac
25604 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25605 echo "${ECHO_T}$dynamic_linker" >&6; }
25606 test "$dynamic_linker" = no && can_build_shared=no
25607
25608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25609 if test "$GCC" = yes; then
25610   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25611 fi
25612
25613 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25615 hardcode_action_GCJ=
25616 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25617    test -n "$runpath_var_GCJ" || \
25618    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25619
25620   # We can hardcode non-existant directories.
25621   if test "$hardcode_direct_GCJ" != no &&
25622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25623      # have to relink, otherwise we might link with an installed library
25624      # when we should be linking with a yet-to-be-installed one
25625      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25626      test "$hardcode_minus_L_GCJ" != no; then
25627     # Linking always hardcodes the temporary library directory.
25628     hardcode_action_GCJ=relink
25629   else
25630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25631     hardcode_action_GCJ=immediate
25632   fi
25633 else
25634   # We cannot hardcode anything, or else we can only hardcode existing
25635   # directories.
25636   hardcode_action_GCJ=unsupported
25637 fi
25638 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25639 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25640
25641 if test "$hardcode_action_GCJ" = relink; then
25642   # Fast installation is not supported
25643   enable_fast_install=no
25644 elif test "$shlibpath_overrides_runpath" = yes ||
25645      test "$enable_shared" = no; then
25646   # Fast installation is not necessary
25647   enable_fast_install=needless
25648 fi
25649
25650
25651 # The else clause should only fire when bootstrapping the
25652 # libtool distribution, otherwise you forgot to ship ltmain.sh
25653 # with your package, and you will get complaints that there are
25654 # no rules to generate ltmain.sh.
25655 if test -f "$ltmain"; then
25656   # See if we are running on zsh, and set the options which allow our commands through
25657   # without removal of \ escapes.
25658   if test -n "${ZSH_VERSION+set}" ; then
25659     setopt NO_GLOB_SUBST
25660   fi
25661   # Now quote all the things that may contain metacharacters while being
25662   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25663   # variables and quote the copies for generation of the libtool script.
25664   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25665     SED SHELL STRIP \
25666     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25667     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25668     deplibs_check_method reload_flag reload_cmds need_locks \
25669     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25670     lt_cv_sys_global_symbol_to_c_name_address \
25671     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25672     old_postinstall_cmds old_postuninstall_cmds \
25673     compiler_GCJ \
25674     CC_GCJ \
25675     LD_GCJ \
25676     lt_prog_compiler_wl_GCJ \
25677     lt_prog_compiler_pic_GCJ \
25678     lt_prog_compiler_static_GCJ \
25679     lt_prog_compiler_no_builtin_flag_GCJ \
25680     export_dynamic_flag_spec_GCJ \
25681     thread_safe_flag_spec_GCJ \
25682     whole_archive_flag_spec_GCJ \
25683     enable_shared_with_static_runtimes_GCJ \
25684     old_archive_cmds_GCJ \
25685     old_archive_from_new_cmds_GCJ \
25686     predep_objects_GCJ \
25687     postdep_objects_GCJ \
25688     predeps_GCJ \
25689     postdeps_GCJ \
25690     compiler_lib_search_path_GCJ \
25691     archive_cmds_GCJ \
25692     archive_expsym_cmds_GCJ \
25693     postinstall_cmds_GCJ \
25694     postuninstall_cmds_GCJ \
25695     old_archive_from_expsyms_cmds_GCJ \
25696     allow_undefined_flag_GCJ \
25697     no_undefined_flag_GCJ \
25698     export_symbols_cmds_GCJ \
25699     hardcode_libdir_flag_spec_GCJ \
25700     hardcode_libdir_flag_spec_ld_GCJ \
25701     hardcode_libdir_separator_GCJ \
25702     hardcode_automatic_GCJ \
25703     module_cmds_GCJ \
25704     module_expsym_cmds_GCJ \
25705     lt_cv_prog_compiler_c_o_GCJ \
25706     exclude_expsyms_GCJ \
25707     include_expsyms_GCJ; do
25708
25709     case $var in
25710     old_archive_cmds_GCJ | \
25711     old_archive_from_new_cmds_GCJ | \
25712     archive_cmds_GCJ | \
25713     archive_expsym_cmds_GCJ | \
25714     module_cmds_GCJ | \
25715     module_expsym_cmds_GCJ | \
25716     old_archive_from_expsyms_cmds_GCJ | \
25717     export_symbols_cmds_GCJ | \
25718     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25719     postinstall_cmds | postuninstall_cmds | \
25720     old_postinstall_cmds | old_postuninstall_cmds | \
25721     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25722       # Double-quote double-evaled strings.
25723       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25724       ;;
25725     *)
25726       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25727       ;;
25728     esac
25729   done
25730
25731   case $lt_echo in
25732   *'\$0 --fallback-echo"')
25733     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25734     ;;
25735   esac
25736
25737 cfgfile="$ofile"
25738
25739   cat <<__EOF__ >> "$cfgfile"
25740 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25741
25742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25743
25744 # Shell to use when invoking shell scripts.
25745 SHELL=$lt_SHELL
25746
25747 # Whether or not to build shared libraries.
25748 build_libtool_libs=$enable_shared
25749
25750 # Whether or not to build static libraries.
25751 build_old_libs=$enable_static
25752
25753 # Whether or not to add -lc for building shared libraries.
25754 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25755
25756 # Whether or not to disallow shared libs when runtime libs are static
25757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25758
25759 # Whether or not to optimize for fast installation.
25760 fast_install=$enable_fast_install
25761
25762 # The host system.
25763 host_alias=$host_alias
25764 host=$host
25765 host_os=$host_os
25766
25767 # The build system.
25768 build_alias=$build_alias
25769 build=$build
25770 build_os=$build_os
25771
25772 # An echo program that does not interpret backslashes.
25773 echo=$lt_echo
25774
25775 # The archiver.
25776 AR=$lt_AR
25777 AR_FLAGS=$lt_AR_FLAGS
25778
25779 # A C compiler.
25780 LTCC=$lt_LTCC
25781
25782 # LTCC compiler flags.
25783 LTCFLAGS=$lt_LTCFLAGS
25784
25785 # A language-specific compiler.
25786 CC=$lt_compiler_GCJ
25787
25788 # Is the compiler the GNU C compiler?
25789 with_gcc=$GCC_GCJ
25790
25791 # An ERE matcher.
25792 EGREP=$lt_EGREP
25793
25794 # The linker used to build libraries.
25795 LD=$lt_LD_GCJ
25796
25797 # Whether we need hard or soft links.
25798 LN_S=$lt_LN_S
25799
25800 # A BSD-compatible nm program.
25801 NM=$lt_NM
25802
25803 # A symbol stripping program
25804 STRIP=$lt_STRIP
25805
25806 # Used to examine libraries when file_magic_cmd begins "file"
25807 MAGIC_CMD=$MAGIC_CMD
25808
25809 # Used on cygwin: DLL creation program.
25810 DLLTOOL="$DLLTOOL"
25811
25812 # Used on cygwin: object dumper.
25813 OBJDUMP="$OBJDUMP"
25814
25815 # Used on cygwin: assembler.
25816 AS="$AS"
25817
25818 # The name of the directory that contains temporary libtool files.
25819 objdir=$objdir
25820
25821 # How to create reloadable object files.
25822 reload_flag=$lt_reload_flag
25823 reload_cmds=$lt_reload_cmds
25824
25825 # How to pass a linker flag through the compiler.
25826 wl=$lt_lt_prog_compiler_wl_GCJ
25827
25828 # Object file suffix (normally "o").
25829 objext="$ac_objext"
25830
25831 # Old archive suffix (normally "a").
25832 libext="$libext"
25833
25834 # Shared library suffix (normally ".so").
25835 shrext_cmds='$shrext_cmds'
25836
25837 # Executable file suffix (normally "").
25838 exeext="$exeext"
25839
25840 # Additional compiler flags for building library objects.
25841 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25842 pic_mode=$pic_mode
25843
25844 # What is the maximum length of a command?
25845 max_cmd_len=$lt_cv_sys_max_cmd_len
25846
25847 # Does compiler simultaneously support -c and -o options?
25848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25849
25850 # Must we lock files when doing compilation?
25851 need_locks=$lt_need_locks
25852
25853 # Do we need the lib prefix for modules?
25854 need_lib_prefix=$need_lib_prefix
25855
25856 # Do we need a version for libraries?
25857 need_version=$need_version
25858
25859 # Whether dlopen is supported.
25860 dlopen_support=$enable_dlopen
25861
25862 # Whether dlopen of programs is supported.
25863 dlopen_self=$enable_dlopen_self
25864
25865 # Whether dlopen of statically linked programs is supported.
25866 dlopen_self_static=$enable_dlopen_self_static
25867
25868 # Compiler flag to prevent dynamic linking.
25869 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25870
25871 # Compiler flag to turn off builtin functions.
25872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25873
25874 # Compiler flag to allow reflexive dlopens.
25875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25876
25877 # Compiler flag to generate shared objects directly from archives.
25878 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25879
25880 # Compiler flag to generate thread-safe objects.
25881 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25882
25883 # Library versioning type.
25884 version_type=$version_type
25885
25886 # Format of library name prefix.
25887 libname_spec=$lt_libname_spec
25888
25889 # List of archive names.  First name is the real one, the rest are links.
25890 # The last name is the one that the linker finds with -lNAME.
25891 library_names_spec=$lt_library_names_spec
25892
25893 # The coded name of the library, if different from the real name.
25894 soname_spec=$lt_soname_spec
25895
25896 # Commands used to build and install an old-style archive.
25897 RANLIB=$lt_RANLIB
25898 old_archive_cmds=$lt_old_archive_cmds_GCJ
25899 old_postinstall_cmds=$lt_old_postinstall_cmds
25900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25901
25902 # Create an old-style archive from a shared archive.
25903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25904
25905 # Create a temporary old-style archive to link instead of a shared archive.
25906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25907
25908 # Commands used to build and install a shared archive.
25909 archive_cmds=$lt_archive_cmds_GCJ
25910 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25911 postinstall_cmds=$lt_postinstall_cmds
25912 postuninstall_cmds=$lt_postuninstall_cmds
25913
25914 # Commands used to build a loadable module (assumed same as above if empty)
25915 module_cmds=$lt_module_cmds_GCJ
25916 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25917
25918 # Commands to strip libraries.
25919 old_striplib=$lt_old_striplib
25920 striplib=$lt_striplib
25921
25922 # Dependencies to place before the objects being linked to create a
25923 # shared library.
25924 predep_objects=$lt_predep_objects_GCJ
25925
25926 # Dependencies to place after the objects being linked to create a
25927 # shared library.
25928 postdep_objects=$lt_postdep_objects_GCJ
25929
25930 # Dependencies to place before the objects being linked to create a
25931 # shared library.
25932 predeps=$lt_predeps_GCJ
25933
25934 # Dependencies to place after the objects being linked to create a
25935 # shared library.
25936 postdeps=$lt_postdeps_GCJ
25937
25938 # The library search path used internally by the compiler when linking
25939 # a shared library.
25940 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25941
25942 # Method to check whether dependent libraries are shared objects.
25943 deplibs_check_method=$lt_deplibs_check_method
25944
25945 # Command to use when deplibs_check_method == file_magic.
25946 file_magic_cmd=$lt_file_magic_cmd
25947
25948 # Flag that allows shared libraries with undefined symbols to be built.
25949 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25950
25951 # Flag that forces no undefined symbols.
25952 no_undefined_flag=$lt_no_undefined_flag_GCJ
25953
25954 # Commands used to finish a libtool library installation in a directory.
25955 finish_cmds=$lt_finish_cmds
25956
25957 # Same as above, but a single script fragment to be evaled but not shown.
25958 finish_eval=$lt_finish_eval
25959
25960 # Take the output of nm and produce a listing of raw symbols and C names.
25961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25962
25963 # Transform the output of nm in a proper C declaration
25964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25965
25966 # Transform the output of nm in a C name address pair
25967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25968
25969 # This is the shared library runtime path variable.
25970 runpath_var=$runpath_var
25971
25972 # This is the shared library path variable.
25973 shlibpath_var=$shlibpath_var
25974
25975 # Is shlibpath searched before the hard-coded library search path?
25976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25977
25978 # How to hardcode a shared library path into an executable.
25979 hardcode_action=$hardcode_action_GCJ
25980
25981 # Whether we should hardcode library paths into libraries.
25982 hardcode_into_libs=$hardcode_into_libs
25983
25984 # Flag to hardcode \$libdir into a binary during linking.
25985 # This must work even if \$libdir does not exist.
25986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25987
25988 # If ld is used when linking, flag to hardcode \$libdir into
25989 # a binary during linking. This must work even if \$libdir does
25990 # not exist.
25991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25992
25993 # Whether we need a single -rpath flag with a separated argument.
25994 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25995
25996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25997 # resulting binary.
25998 hardcode_direct=$hardcode_direct_GCJ
25999
26000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26001 # resulting binary.
26002 hardcode_minus_L=$hardcode_minus_L_GCJ
26003
26004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26005 # the resulting binary.
26006 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26007
26008 # Set to yes if building a shared library automatically hardcodes DIR into the library
26009 # and all subsequent libraries and executables linked against it.
26010 hardcode_automatic=$hardcode_automatic_GCJ
26011
26012 # Variables whose values should be saved in libtool wrapper scripts and
26013 # restored at relink time.
26014 variables_saved_for_relink="$variables_saved_for_relink"
26015
26016 # Whether libtool must link a program against all its dependency libraries.
26017 link_all_deplibs=$link_all_deplibs_GCJ
26018
26019 # Compile-time system search path for libraries
26020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26021
26022 # Run-time system search path for libraries
26023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26024
26025 # Fix the shell variable \$srcfile for the compiler.
26026 fix_srcfile_path="$fix_srcfile_path_GCJ"
26027
26028 # Set to yes if exported symbols are required.
26029 always_export_symbols=$always_export_symbols_GCJ
26030
26031 # The commands to list exported symbols.
26032 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26033
26034 # The commands to extract the exported symbol list from a shared archive.
26035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26036
26037 # Symbols that should not be listed in the preloaded symbols.
26038 exclude_expsyms=$lt_exclude_expsyms_GCJ
26039
26040 # Symbols that must always be exported.
26041 include_expsyms=$lt_include_expsyms_GCJ
26042
26043 # ### END LIBTOOL TAG CONFIG: $tagname
26044
26045 __EOF__
26046
26047
26048 else
26049   # If there is no Makefile yet, we rely on a make rule to execute
26050   # `config.status --recheck' to rerun these tests and create the
26051   # libtool script then.
26052   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26053   if test -f "$ltmain_in"; then
26054     test -f Makefile && make "$ltmain"
26055   fi
26056 fi
26057
26058
26059 ac_ext=c
26060 ac_cpp='$CPP $CPPFLAGS'
26061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26064
26065 CC="$lt_save_CC"
26066
26067         else
26068           tagname=""
26069         fi
26070         ;;
26071
26072       RC)
26073         ac_ext=c
26074 ac_cpp='$CPP $CPPFLAGS'
26075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26078
26079
26080 # Source file extension for RC test sources.
26081 ac_ext=rc
26082
26083 # Object file extension for compiled RC test sources.
26084 objext=o
26085 objext_RC=$objext
26086
26087 # Code to be used in simple compile tests
26088 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26089
26090 # Code to be used in simple link tests
26091 lt_simple_link_test_code="$lt_simple_compile_test_code"
26092
26093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26094
26095 # If no C compiler was specified, use CC.
26096 LTCC=${LTCC-"$CC"}
26097
26098 # If no C compiler flags were specified, use CFLAGS.
26099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26100
26101 # Allow CC to be a program name with arguments.
26102 compiler=$CC
26103
26104
26105 # save warnings/boilerplate of simple test code
26106 ac_outfile=conftest.$ac_objext
26107 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26109 _lt_compiler_boilerplate=`cat conftest.err`
26110 $rm conftest*
26111
26112 ac_outfile=conftest.$ac_objext
26113 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26115 _lt_linker_boilerplate=`cat conftest.err`
26116 $rm conftest*
26117
26118
26119 # Allow CC to be a program name with arguments.
26120 lt_save_CC="$CC"
26121 CC=${RC-"windres"}
26122 compiler=$CC
26123 compiler_RC=$CC
26124 for cc_temp in $compiler""; do
26125   case $cc_temp in
26126     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26127     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26128     \-*) ;;
26129     *) break;;
26130   esac
26131 done
26132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26133
26134 lt_cv_prog_compiler_c_o_RC=yes
26135
26136 # The else clause should only fire when bootstrapping the
26137 # libtool distribution, otherwise you forgot to ship ltmain.sh
26138 # with your package, and you will get complaints that there are
26139 # no rules to generate ltmain.sh.
26140 if test -f "$ltmain"; then
26141   # See if we are running on zsh, and set the options which allow our commands through
26142   # without removal of \ escapes.
26143   if test -n "${ZSH_VERSION+set}" ; then
26144     setopt NO_GLOB_SUBST
26145   fi
26146   # Now quote all the things that may contain metacharacters while being
26147   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26148   # variables and quote the copies for generation of the libtool script.
26149   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26150     SED SHELL STRIP \
26151     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26152     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26153     deplibs_check_method reload_flag reload_cmds need_locks \
26154     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26155     lt_cv_sys_global_symbol_to_c_name_address \
26156     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26157     old_postinstall_cmds old_postuninstall_cmds \
26158     compiler_RC \
26159     CC_RC \
26160     LD_RC \
26161     lt_prog_compiler_wl_RC \
26162     lt_prog_compiler_pic_RC \
26163     lt_prog_compiler_static_RC \
26164     lt_prog_compiler_no_builtin_flag_RC \
26165     export_dynamic_flag_spec_RC \
26166     thread_safe_flag_spec_RC \
26167     whole_archive_flag_spec_RC \
26168     enable_shared_with_static_runtimes_RC \
26169     old_archive_cmds_RC \
26170     old_archive_from_new_cmds_RC \
26171     predep_objects_RC \
26172     postdep_objects_RC \
26173     predeps_RC \
26174     postdeps_RC \
26175     compiler_lib_search_path_RC \
26176     archive_cmds_RC \
26177     archive_expsym_cmds_RC \
26178     postinstall_cmds_RC \
26179     postuninstall_cmds_RC \
26180     old_archive_from_expsyms_cmds_RC \
26181     allow_undefined_flag_RC \
26182     no_undefined_flag_RC \
26183     export_symbols_cmds_RC \
26184     hardcode_libdir_flag_spec_RC \
26185     hardcode_libdir_flag_spec_ld_RC \
26186     hardcode_libdir_separator_RC \
26187     hardcode_automatic_RC \
26188     module_cmds_RC \
26189     module_expsym_cmds_RC \
26190     lt_cv_prog_compiler_c_o_RC \
26191     exclude_expsyms_RC \
26192     include_expsyms_RC; do
26193
26194     case $var in
26195     old_archive_cmds_RC | \
26196     old_archive_from_new_cmds_RC | \
26197     archive_cmds_RC | \
26198     archive_expsym_cmds_RC | \
26199     module_cmds_RC | \
26200     module_expsym_cmds_RC | \
26201     old_archive_from_expsyms_cmds_RC | \
26202     export_symbols_cmds_RC | \
26203     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26204     postinstall_cmds | postuninstall_cmds | \
26205     old_postinstall_cmds | old_postuninstall_cmds | \
26206     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26207       # Double-quote double-evaled strings.
26208       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26209       ;;
26210     *)
26211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26212       ;;
26213     esac
26214   done
26215
26216   case $lt_echo in
26217   *'\$0 --fallback-echo"')
26218     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26219     ;;
26220   esac
26221
26222 cfgfile="$ofile"
26223
26224   cat <<__EOF__ >> "$cfgfile"
26225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26226
26227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26228
26229 # Shell to use when invoking shell scripts.
26230 SHELL=$lt_SHELL
26231
26232 # Whether or not to build shared libraries.
26233 build_libtool_libs=$enable_shared
26234
26235 # Whether or not to build static libraries.
26236 build_old_libs=$enable_static
26237
26238 # Whether or not to add -lc for building shared libraries.
26239 build_libtool_need_lc=$archive_cmds_need_lc_RC
26240
26241 # Whether or not to disallow shared libs when runtime libs are static
26242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26243
26244 # Whether or not to optimize for fast installation.
26245 fast_install=$enable_fast_install
26246
26247 # The host system.
26248 host_alias=$host_alias
26249 host=$host
26250 host_os=$host_os
26251
26252 # The build system.
26253 build_alias=$build_alias
26254 build=$build
26255 build_os=$build_os
26256
26257 # An echo program that does not interpret backslashes.
26258 echo=$lt_echo
26259
26260 # The archiver.
26261 AR=$lt_AR
26262 AR_FLAGS=$lt_AR_FLAGS
26263
26264 # A C compiler.
26265 LTCC=$lt_LTCC
26266
26267 # LTCC compiler flags.
26268 LTCFLAGS=$lt_LTCFLAGS
26269
26270 # A language-specific compiler.
26271 CC=$lt_compiler_RC
26272
26273 # Is the compiler the GNU C compiler?
26274 with_gcc=$GCC_RC
26275
26276 # An ERE matcher.
26277 EGREP=$lt_EGREP
26278
26279 # The linker used to build libraries.
26280 LD=$lt_LD_RC
26281
26282 # Whether we need hard or soft links.
26283 LN_S=$lt_LN_S
26284
26285 # A BSD-compatible nm program.
26286 NM=$lt_NM
26287
26288 # A symbol stripping program
26289 STRIP=$lt_STRIP
26290
26291 # Used to examine libraries when file_magic_cmd begins "file"
26292 MAGIC_CMD=$MAGIC_CMD
26293
26294 # Used on cygwin: DLL creation program.
26295 DLLTOOL="$DLLTOOL"
26296
26297 # Used on cygwin: object dumper.
26298 OBJDUMP="$OBJDUMP"
26299
26300 # Used on cygwin: assembler.
26301 AS="$AS"
26302
26303 # The name of the directory that contains temporary libtool files.
26304 objdir=$objdir
26305
26306 # How to create reloadable object files.
26307 reload_flag=$lt_reload_flag
26308 reload_cmds=$lt_reload_cmds
26309
26310 # How to pass a linker flag through the compiler.
26311 wl=$lt_lt_prog_compiler_wl_RC
26312
26313 # Object file suffix (normally "o").
26314 objext="$ac_objext"
26315
26316 # Old archive suffix (normally "a").
26317 libext="$libext"
26318
26319 # Shared library suffix (normally ".so").
26320 shrext_cmds='$shrext_cmds'
26321
26322 # Executable file suffix (normally "").
26323 exeext="$exeext"
26324
26325 # Additional compiler flags for building library objects.
26326 pic_flag=$lt_lt_prog_compiler_pic_RC
26327 pic_mode=$pic_mode
26328
26329 # What is the maximum length of a command?
26330 max_cmd_len=$lt_cv_sys_max_cmd_len
26331
26332 # Does compiler simultaneously support -c and -o options?
26333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26334
26335 # Must we lock files when doing compilation?
26336 need_locks=$lt_need_locks
26337
26338 # Do we need the lib prefix for modules?
26339 need_lib_prefix=$need_lib_prefix
26340
26341 # Do we need a version for libraries?
26342 need_version=$need_version
26343
26344 # Whether dlopen is supported.
26345 dlopen_support=$enable_dlopen
26346
26347 # Whether dlopen of programs is supported.
26348 dlopen_self=$enable_dlopen_self
26349
26350 # Whether dlopen of statically linked programs is supported.
26351 dlopen_self_static=$enable_dlopen_self_static
26352
26353 # Compiler flag to prevent dynamic linking.
26354 link_static_flag=$lt_lt_prog_compiler_static_RC
26355
26356 # Compiler flag to turn off builtin functions.
26357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26358
26359 # Compiler flag to allow reflexive dlopens.
26360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26361
26362 # Compiler flag to generate shared objects directly from archives.
26363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26364
26365 # Compiler flag to generate thread-safe objects.
26366 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26367
26368 # Library versioning type.
26369 version_type=$version_type
26370
26371 # Format of library name prefix.
26372 libname_spec=$lt_libname_spec
26373
26374 # List of archive names.  First name is the real one, the rest are links.
26375 # The last name is the one that the linker finds with -lNAME.
26376 library_names_spec=$lt_library_names_spec
26377
26378 # The coded name of the library, if different from the real name.
26379 soname_spec=$lt_soname_spec
26380
26381 # Commands used to build and install an old-style archive.
26382 RANLIB=$lt_RANLIB
26383 old_archive_cmds=$lt_old_archive_cmds_RC
26384 old_postinstall_cmds=$lt_old_postinstall_cmds
26385 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26386
26387 # Create an old-style archive from a shared archive.
26388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26389
26390 # Create a temporary old-style archive to link instead of a shared archive.
26391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26392
26393 # Commands used to build and install a shared archive.
26394 archive_cmds=$lt_archive_cmds_RC
26395 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26396 postinstall_cmds=$lt_postinstall_cmds
26397 postuninstall_cmds=$lt_postuninstall_cmds
26398
26399 # Commands used to build a loadable module (assumed same as above if empty)
26400 module_cmds=$lt_module_cmds_RC
26401 module_expsym_cmds=$lt_module_expsym_cmds_RC
26402
26403 # Commands to strip libraries.
26404 old_striplib=$lt_old_striplib
26405 striplib=$lt_striplib
26406
26407 # Dependencies to place before the objects being linked to create a
26408 # shared library.
26409 predep_objects=$lt_predep_objects_RC
26410
26411 # Dependencies to place after the objects being linked to create a
26412 # shared library.
26413 postdep_objects=$lt_postdep_objects_RC
26414
26415 # Dependencies to place before the objects being linked to create a
26416 # shared library.
26417 predeps=$lt_predeps_RC
26418
26419 # Dependencies to place after the objects being linked to create a
26420 # shared library.
26421 postdeps=$lt_postdeps_RC
26422
26423 # The library search path used internally by the compiler when linking
26424 # a shared library.
26425 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26426
26427 # Method to check whether dependent libraries are shared objects.
26428 deplibs_check_method=$lt_deplibs_check_method
26429
26430 # Command to use when deplibs_check_method == file_magic.
26431 file_magic_cmd=$lt_file_magic_cmd
26432
26433 # Flag that allows shared libraries with undefined symbols to be built.
26434 allow_undefined_flag=$lt_allow_undefined_flag_RC
26435
26436 # Flag that forces no undefined symbols.
26437 no_undefined_flag=$lt_no_undefined_flag_RC
26438
26439 # Commands used to finish a libtool library installation in a directory.
26440 finish_cmds=$lt_finish_cmds
26441
26442 # Same as above, but a single script fragment to be evaled but not shown.
26443 finish_eval=$lt_finish_eval
26444
26445 # Take the output of nm and produce a listing of raw symbols and C names.
26446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26447
26448 # Transform the output of nm in a proper C declaration
26449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26450
26451 # Transform the output of nm in a C name address pair
26452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26453
26454 # This is the shared library runtime path variable.
26455 runpath_var=$runpath_var
26456
26457 # This is the shared library path variable.
26458 shlibpath_var=$shlibpath_var
26459
26460 # Is shlibpath searched before the hard-coded library search path?
26461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26462
26463 # How to hardcode a shared library path into an executable.
26464 hardcode_action=$hardcode_action_RC
26465
26466 # Whether we should hardcode library paths into libraries.
26467 hardcode_into_libs=$hardcode_into_libs
26468
26469 # Flag to hardcode \$libdir into a binary during linking.
26470 # This must work even if \$libdir does not exist.
26471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26472
26473 # If ld is used when linking, flag to hardcode \$libdir into
26474 # a binary during linking. This must work even if \$libdir does
26475 # not exist.
26476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26477
26478 # Whether we need a single -rpath flag with a separated argument.
26479 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26480
26481 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26482 # resulting binary.
26483 hardcode_direct=$hardcode_direct_RC
26484
26485 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26486 # resulting binary.
26487 hardcode_minus_L=$hardcode_minus_L_RC
26488
26489 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26490 # the resulting binary.
26491 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26492
26493 # Set to yes if building a shared library automatically hardcodes DIR into the library
26494 # and all subsequent libraries and executables linked against it.
26495 hardcode_automatic=$hardcode_automatic_RC
26496
26497 # Variables whose values should be saved in libtool wrapper scripts and
26498 # restored at relink time.
26499 variables_saved_for_relink="$variables_saved_for_relink"
26500
26501 # Whether libtool must link a program against all its dependency libraries.
26502 link_all_deplibs=$link_all_deplibs_RC
26503
26504 # Compile-time system search path for libraries
26505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26506
26507 # Run-time system search path for libraries
26508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26509
26510 # Fix the shell variable \$srcfile for the compiler.
26511 fix_srcfile_path="$fix_srcfile_path_RC"
26512
26513 # Set to yes if exported symbols are required.
26514 always_export_symbols=$always_export_symbols_RC
26515
26516 # The commands to list exported symbols.
26517 export_symbols_cmds=$lt_export_symbols_cmds_RC
26518
26519 # The commands to extract the exported symbol list from a shared archive.
26520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26521
26522 # Symbols that should not be listed in the preloaded symbols.
26523 exclude_expsyms=$lt_exclude_expsyms_RC
26524
26525 # Symbols that must always be exported.
26526 include_expsyms=$lt_include_expsyms_RC
26527
26528 # ### END LIBTOOL TAG CONFIG: $tagname
26529
26530 __EOF__
26531
26532
26533 else
26534   # If there is no Makefile yet, we rely on a make rule to execute
26535   # `config.status --recheck' to rerun these tests and create the
26536   # libtool script then.
26537   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26538   if test -f "$ltmain_in"; then
26539     test -f Makefile && make "$ltmain"
26540   fi
26541 fi
26542
26543
26544 ac_ext=c
26545 ac_cpp='$CPP $CPPFLAGS'
26546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26549
26550 CC="$lt_save_CC"
26551
26552         ;;
26553
26554       *)
26555         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26556 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26557    { (exit 1); exit 1; }; }
26558         ;;
26559       esac
26560
26561       # Append the new tag name to the list of available tags.
26562       if test -n "$tagname" ; then
26563       available_tags="$available_tags $tagname"
26564     fi
26565     fi
26566   done
26567   IFS="$lt_save_ifs"
26568
26569   # Now substitute the updated list of available tags.
26570   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26571     mv "${ofile}T" "$ofile"
26572     chmod +x "$ofile"
26573   else
26574     rm -f "${ofile}T"
26575     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26576 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26577    { (exit 1); exit 1; }; }
26578   fi
26579 fi
26580
26581
26582
26583 # This can be used to rebuild libtool when needed
26584 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26585
26586 # Always use our own libtool.
26587 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26588
26589 # Prevent multiple expansion
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611 if test "$lt_cv_dlopen_self" = "yes" ; then
26612
26613 cat >>confdefs.h <<\_ACEOF
26614 #define CAN_DLOPEN_SELF 1
26615 _ACEOF
26616
26617 fi
26618
26619 etags_version=`$ETAGS --version 2>&1`
26620 case "$etags_version" in
26621         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26622         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26623         *) ETAGSFLAGS="" ;;
26624 esac
26625 ETAGSFLAGS=$ETAGSFLAGS
26626
26627
26628 if test "$WITH_LLVMGCCDIR" = "default" ; then
26629   LLVMGCC="llvm-gcc${EXEEXT}"
26630   LLVMGXX="llvm-g++${EXEEXT}"
26631   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26632 set dummy $LLVMGCC; ac_word=$2
26633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26635 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26636   echo $ECHO_N "(cached) $ECHO_C" >&6
26637 else
26638   case $LLVMGCC in
26639   [\\/]* | ?:[\\/]*)
26640   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26641   ;;
26642   *)
26643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644 for as_dir in $PATH
26645 do
26646   IFS=$as_save_IFS
26647   test -z "$as_dir" && as_dir=.
26648   for ac_exec_ext in '' $ac_executable_extensions; do
26649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26650     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26652     break 2
26653   fi
26654 done
26655 done
26656 IFS=$as_save_IFS
26657
26658   ;;
26659 esac
26660 fi
26661 LLVMGCC=$ac_cv_path_LLVMGCC
26662 if test -n "$LLVMGCC"; then
26663   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26664 echo "${ECHO_T}$LLVMGCC" >&6; }
26665 else
26666   { echo "$as_me:$LINENO: result: no" >&5
26667 echo "${ECHO_T}no" >&6; }
26668 fi
26669
26670
26671   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26672 set dummy $LLVMGXX; ac_word=$2
26673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26675 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26676   echo $ECHO_N "(cached) $ECHO_C" >&6
26677 else
26678   case $LLVMGXX in
26679   [\\/]* | ?:[\\/]*)
26680   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26681   ;;
26682   *)
26683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26684 for as_dir in $PATH
26685 do
26686   IFS=$as_save_IFS
26687   test -z "$as_dir" && as_dir=.
26688   for ac_exec_ext in '' $ac_executable_extensions; do
26689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26690     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26692     break 2
26693   fi
26694 done
26695 done
26696 IFS=$as_save_IFS
26697
26698   ;;
26699 esac
26700 fi
26701 LLVMGXX=$ac_cv_path_LLVMGXX
26702 if test -n "$LLVMGXX"; then
26703   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26704 echo "${ECHO_T}$LLVMGXX" >&6; }
26705 else
26706   { echo "$as_me:$LINENO: result: no" >&5
26707 echo "${ECHO_T}no" >&6; }
26708 fi
26709
26710
26711 else
26712   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26713   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26714   LLVMGCC=$LLVMGCC
26715
26716   LLVMGXX=$LLVMGXX
26717
26718 fi
26719
26720 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26721 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26722
26723 ICC=no
26724 IXX=no
26725 case $CC in
26726   icc*|icpc*)
26727     ICC=yes
26728     IXX=yes
26729     ;;
26730    *)
26731     ;;
26732 esac
26733
26734 if test "$GCC" != "yes" && test "$ICC" != "yes"
26735 then
26736   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26737 echo "$as_me: error: gcc|icc required but not found" >&2;}
26738    { (exit 1); exit 1; }; }
26739 fi
26740
26741 if test "$GXX" != "yes" && test "$IXX" != "yes"
26742 then
26743   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26744 echo "$as_me: error: g++|icc required but not found" >&2;}
26745    { (exit 1); exit 1; }; }
26746 fi
26747
26748 if test "$GCC" = "yes"
26749 then
26750   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26751   if test "$gccmajor" -lt "3"
26752   then
26753     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26754 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26755    { (exit 1); exit 1; }; }
26756   fi
26757 fi
26758
26759 if test -z "$llvm_cv_gnu_make_command"
26760 then
26761   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26762 echo "$as_me: error: GNU Make required but not found" >&2;}
26763    { (exit 1); exit 1; }; }
26764 fi
26765
26766 { echo "$as_me:$LINENO: result: ok" >&5
26767 echo "${ECHO_T}ok" >&6; }
26768
26769
26770
26771 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26772 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26773 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26774   echo $ECHO_N "(cached) $ECHO_C" >&6
26775 else
26776   ac_check_lib_save_LIBS=$LIBS
26777 LIBS="-lelf  $LIBS"
26778 cat >conftest.$ac_ext <<_ACEOF
26779 /* confdefs.h.  */
26780 _ACEOF
26781 cat confdefs.h >>conftest.$ac_ext
26782 cat >>conftest.$ac_ext <<_ACEOF
26783 /* end confdefs.h.  */
26784
26785 /* Override any GCC internal prototype to avoid an error.
26786    Use char because int might match the return type of a GCC
26787    builtin and then its argument prototype would still apply.  */
26788 #ifdef __cplusplus
26789 extern "C"
26790 #endif
26791 char elf_begin ();
26792 int
26793 main ()
26794 {
26795 return elf_begin ();
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 rm -f conftest.$ac_objext conftest$ac_exeext
26801 if { (ac_try="$ac_link"
26802 case "(($ac_try" in
26803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804   *) ac_try_echo=$ac_try;;
26805 esac
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807   (eval "$ac_link") 2>conftest.er1
26808   ac_status=$?
26809   grep -v '^ *+' conftest.er1 >conftest.err
26810   rm -f conftest.er1
26811   cat conftest.err >&5
26812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813   (exit $ac_status); } &&
26814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26815   { (case "(($ac_try" in
26816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817   *) ac_try_echo=$ac_try;;
26818 esac
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820   (eval "$ac_try") 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; } &&
26824          { ac_try='test -s conftest$ac_exeext'
26825   { (case "(($ac_try" in
26826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827   *) ac_try_echo=$ac_try;;
26828 esac
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830   (eval "$ac_try") 2>&5
26831   ac_status=$?
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); }; }; then
26834   ac_cv_lib_elf_elf_begin=yes
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839         ac_cv_lib_elf_elf_begin=no
26840 fi
26841
26842 rm -f core conftest.err conftest.$ac_objext \
26843       conftest$ac_exeext conftest.$ac_ext
26844 LIBS=$ac_check_lib_save_LIBS
26845 fi
26846 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26847 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26848 if test $ac_cv_lib_elf_elf_begin = yes; then
26849   cat >>confdefs.h <<_ACEOF
26850 #define HAVE_LIBELF 1
26851 _ACEOF
26852
26853   LIBS="-lelf $LIBS"
26854
26855 fi
26856
26857
26858 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26859 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26860 if test "${ac_cv_lib_m_sin+set}" = set; then
26861   echo $ECHO_N "(cached) $ECHO_C" >&6
26862 else
26863   ac_check_lib_save_LIBS=$LIBS
26864 LIBS="-lm  $LIBS"
26865 cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871
26872 /* Override any GCC internal prototype to avoid an error.
26873    Use char because int might match the return type of a GCC
26874    builtin and then its argument prototype would still apply.  */
26875 #ifdef __cplusplus
26876 extern "C"
26877 #endif
26878 char sin ();
26879 int
26880 main ()
26881 {
26882 return sin ();
26883   ;
26884   return 0;
26885 }
26886 _ACEOF
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (ac_try="$ac_link"
26889 case "(($ac_try" in
26890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891   *) ac_try_echo=$ac_try;;
26892 esac
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894   (eval "$ac_link") 2>conftest.er1
26895   ac_status=$?
26896   grep -v '^ *+' conftest.er1 >conftest.err
26897   rm -f conftest.er1
26898   cat conftest.err >&5
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); } &&
26901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26902   { (case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907   (eval "$ac_try") 2>&5
26908   ac_status=$?
26909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910   (exit $ac_status); }; } &&
26911          { ac_try='test -s conftest$ac_exeext'
26912   { (case "(($ac_try" in
26913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26914   *) ac_try_echo=$ac_try;;
26915 esac
26916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917   (eval "$ac_try") 2>&5
26918   ac_status=$?
26919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); }; }; then
26921   ac_cv_lib_m_sin=yes
26922 else
26923   echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926         ac_cv_lib_m_sin=no
26927 fi
26928
26929 rm -f core conftest.err conftest.$ac_objext \
26930       conftest$ac_exeext conftest.$ac_ext
26931 LIBS=$ac_check_lib_save_LIBS
26932 fi
26933 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26934 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26935 if test $ac_cv_lib_m_sin = yes; then
26936   cat >>confdefs.h <<_ACEOF
26937 #define HAVE_LIBM 1
26938 _ACEOF
26939
26940   LIBS="-lm $LIBS"
26941
26942 fi
26943
26944 if test "$llvm_cv_os_type" = "MingW" ; then
26945
26946 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26947 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26948 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26949   echo $ECHO_N "(cached) $ECHO_C" >&6
26950 else
26951   ac_check_lib_save_LIBS=$LIBS
26952 LIBS="-limagehlp  $LIBS"
26953 cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h.  */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h.  */
26959
26960
26961 int
26962 main ()
26963 {
26964 return main ();
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (ac_try="$ac_link"
26971 case "(($ac_try" in
26972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973   *) ac_try_echo=$ac_try;;
26974 esac
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976   (eval "$ac_link") 2>conftest.er1
26977   ac_status=$?
26978   grep -v '^ *+' conftest.er1 >conftest.err
26979   rm -f conftest.er1
26980   cat conftest.err >&5
26981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982   (exit $ac_status); } &&
26983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26984   { (case "(($ac_try" in
26985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986   *) ac_try_echo=$ac_try;;
26987 esac
26988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26989   (eval "$ac_try") 2>&5
26990   ac_status=$?
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); }; } &&
26993          { ac_try='test -s conftest$ac_exeext'
26994   { (case "(($ac_try" in
26995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996   *) ac_try_echo=$ac_try;;
26997 esac
26998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999   (eval "$ac_try") 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); }; }; then
27003   ac_cv_lib_imagehlp_main=yes
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008         ac_cv_lib_imagehlp_main=no
27009 fi
27010
27011 rm -f core conftest.err conftest.$ac_objext \
27012       conftest$ac_exeext conftest.$ac_ext
27013 LIBS=$ac_check_lib_save_LIBS
27014 fi
27015 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27016 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27017 if test $ac_cv_lib_imagehlp_main = yes; then
27018   cat >>confdefs.h <<_ACEOF
27019 #define HAVE_LIBIMAGEHLP 1
27020 _ACEOF
27021
27022   LIBS="-limagehlp $LIBS"
27023
27024 fi
27025
27026
27027 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27028 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27029 if test "${ac_cv_lib_psapi_main+set}" = set; then
27030   echo $ECHO_N "(cached) $ECHO_C" >&6
27031 else
27032   ac_check_lib_save_LIBS=$LIBS
27033 LIBS="-lpsapi  $LIBS"
27034 cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040
27041
27042 int
27043 main ()
27044 {
27045 return main ();
27046   ;
27047   return 0;
27048 }
27049 _ACEOF
27050 rm -f conftest.$ac_objext conftest$ac_exeext
27051 if { (ac_try="$ac_link"
27052 case "(($ac_try" in
27053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054   *) ac_try_echo=$ac_try;;
27055 esac
27056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057   (eval "$ac_link") 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } &&
27064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27065   { (case "(($ac_try" in
27066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067   *) ac_try_echo=$ac_try;;
27068 esac
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070   (eval "$ac_try") 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; } &&
27074          { ac_try='test -s conftest$ac_exeext'
27075   { (case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080   (eval "$ac_try") 2>&5
27081   ac_status=$?
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); }; }; then
27084   ac_cv_lib_psapi_main=yes
27085 else
27086   echo "$as_me: failed program was:" >&5
27087 sed 's/^/| /' conftest.$ac_ext >&5
27088
27089         ac_cv_lib_psapi_main=no
27090 fi
27091
27092 rm -f core conftest.err conftest.$ac_objext \
27093       conftest$ac_exeext conftest.$ac_ext
27094 LIBS=$ac_check_lib_save_LIBS
27095 fi
27096 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27097 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27098 if test $ac_cv_lib_psapi_main = yes; then
27099   cat >>confdefs.h <<_ACEOF
27100 #define HAVE_LIBPSAPI 1
27101 _ACEOF
27102
27103   LIBS="-lpsapi $LIBS"
27104
27105 fi
27106
27107 fi
27108
27109 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27110 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27111 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27112   echo $ECHO_N "(cached) $ECHO_C" >&6
27113 else
27114   ac_func_search_save_LIBS=$LIBS
27115 cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121
27122 /* Override any GCC internal prototype to avoid an error.
27123    Use char because int might match the return type of a GCC
27124    builtin and then its argument prototype would still apply.  */
27125 #ifdef __cplusplus
27126 extern "C"
27127 #endif
27128 char lt_dlopen ();
27129 int
27130 main ()
27131 {
27132 return lt_dlopen ();
27133   ;
27134   return 0;
27135 }
27136 _ACEOF
27137 for ac_lib in '' ltdl; do
27138   if test -z "$ac_lib"; then
27139     ac_res="none required"
27140   else
27141     ac_res=-l$ac_lib
27142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27143   fi
27144   rm -f conftest.$ac_objext conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148   *) ac_try_echo=$ac_try;;
27149 esac
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151   (eval "$ac_link") 2>conftest.er1
27152   ac_status=$?
27153   grep -v '^ *+' conftest.er1 >conftest.err
27154   rm -f conftest.er1
27155   cat conftest.err >&5
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); } &&
27158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27159   { (case "(($ac_try" in
27160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161   *) ac_try_echo=$ac_try;;
27162 esac
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164   (eval "$ac_try") 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); }; } &&
27168          { ac_try='test -s conftest$ac_exeext'
27169   { (case "(($ac_try" in
27170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27171   *) ac_try_echo=$ac_try;;
27172 esac
27173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27174   (eval "$ac_try") 2>&5
27175   ac_status=$?
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); }; }; then
27178   ac_cv_search_lt_dlopen=$ac_res
27179 else
27180   echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27182
27183
27184 fi
27185
27186 rm -f core conftest.err conftest.$ac_objext \
27187       conftest$ac_exeext
27188   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27189   break
27190 fi
27191 done
27192 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27193   :
27194 else
27195   ac_cv_search_lt_dlopen=no
27196 fi
27197 rm conftest.$ac_ext
27198 LIBS=$ac_func_search_save_LIBS
27199 fi
27200 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27201 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27202 ac_res=$ac_cv_search_lt_dlopen
27203 if test "$ac_res" != no; then
27204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27205
27206 cat >>confdefs.h <<\_ACEOF
27207 #define HAVE_LT_DLOPEN 1
27208 _ACEOF
27209
27210 else
27211   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27212                            not be available" >&5
27213 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27214                            not be available" >&2;}
27215 fi
27216
27217
27218 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27219 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27220 if test "${ac_cv_search_dlopen+set}" = set; then
27221   echo $ECHO_N "(cached) $ECHO_C" >&6
27222 else
27223   ac_func_search_save_LIBS=$LIBS
27224 cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h.  */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h.  */
27230
27231 /* Override any GCC internal prototype to avoid an error.
27232    Use char because int might match the return type of a GCC
27233    builtin and then its argument prototype would still apply.  */
27234 #ifdef __cplusplus
27235 extern "C"
27236 #endif
27237 char dlopen ();
27238 int
27239 main ()
27240 {
27241 return dlopen ();
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 for ac_lib in '' dl; do
27247   if test -z "$ac_lib"; then
27248     ac_res="none required"
27249   else
27250     ac_res=-l$ac_lib
27251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27252   fi
27253   rm -f conftest.$ac_objext conftest$ac_exeext
27254 if { (ac_try="$ac_link"
27255 case "(($ac_try" in
27256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257   *) ac_try_echo=$ac_try;;
27258 esac
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260   (eval "$ac_link") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } &&
27267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268   { (case "(($ac_try" in
27269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270   *) ac_try_echo=$ac_try;;
27271 esac
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273   (eval "$ac_try") 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; } &&
27277          { ac_try='test -s conftest$ac_exeext'
27278   { (case "(($ac_try" in
27279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280   *) ac_try_echo=$ac_try;;
27281 esac
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283   (eval "$ac_try") 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; }; then
27287   ac_cv_search_dlopen=$ac_res
27288 else
27289   echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27291
27292
27293 fi
27294
27295 rm -f core conftest.err conftest.$ac_objext \
27296       conftest$ac_exeext
27297   if test "${ac_cv_search_dlopen+set}" = set; then
27298   break
27299 fi
27300 done
27301 if test "${ac_cv_search_dlopen+set}" = set; then
27302   :
27303 else
27304   ac_cv_search_dlopen=no
27305 fi
27306 rm conftest.$ac_ext
27307 LIBS=$ac_func_search_save_LIBS
27308 fi
27309 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27310 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27311 ac_res=$ac_cv_search_dlopen
27312 if test "$ac_res" != no; then
27313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27314
27315 cat >>confdefs.h <<\_ACEOF
27316 #define HAVE_DLOPEN 1
27317 _ACEOF
27318
27319 else
27320   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27321 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27322 fi
27323
27324
27325 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27326 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27327 if test "${ac_cv_search_mallinfo+set}" = set; then
27328   echo $ECHO_N "(cached) $ECHO_C" >&6
27329 else
27330   ac_func_search_save_LIBS=$LIBS
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h.  */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h.  */
27337
27338 /* Override any GCC internal prototype to avoid an error.
27339    Use char because int might match the return type of a GCC
27340    builtin and then its argument prototype would still apply.  */
27341 #ifdef __cplusplus
27342 extern "C"
27343 #endif
27344 char mallinfo ();
27345 int
27346 main ()
27347 {
27348 return mallinfo ();
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 for ac_lib in '' malloc; do
27354   if test -z "$ac_lib"; then
27355     ac_res="none required"
27356   else
27357     ac_res=-l$ac_lib
27358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27359   fi
27360   rm -f conftest.$ac_objext conftest$ac_exeext
27361 if { (ac_try="$ac_link"
27362 case "(($ac_try" in
27363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364   *) ac_try_echo=$ac_try;;
27365 esac
27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367   (eval "$ac_link") 2>conftest.er1
27368   ac_status=$?
27369   grep -v '^ *+' conftest.er1 >conftest.err
27370   rm -f conftest.er1
27371   cat conftest.err >&5
27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); } &&
27374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27375   { (case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_try") 2>&5
27381   ac_status=$?
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); }; } &&
27384          { ac_try='test -s conftest$ac_exeext'
27385   { (case "(($ac_try" in
27386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387   *) ac_try_echo=$ac_try;;
27388 esac
27389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390   (eval "$ac_try") 2>&5
27391   ac_status=$?
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); }; }; then
27394   ac_cv_search_mallinfo=$ac_res
27395 else
27396   echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27398
27399
27400 fi
27401
27402 rm -f core conftest.err conftest.$ac_objext \
27403       conftest$ac_exeext
27404   if test "${ac_cv_search_mallinfo+set}" = set; then
27405   break
27406 fi
27407 done
27408 if test "${ac_cv_search_mallinfo+set}" = set; then
27409   :
27410 else
27411   ac_cv_search_mallinfo=no
27412 fi
27413 rm conftest.$ac_ext
27414 LIBS=$ac_func_search_save_LIBS
27415 fi
27416 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27417 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27418 ac_res=$ac_cv_search_mallinfo
27419 if test "$ac_res" != no; then
27420   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27421
27422 cat >>confdefs.h <<\_ACEOF
27423 #define HAVE_MALLINFO 1
27424 _ACEOF
27425
27426 fi
27427
27428
27429 if test "$ENABLE_THREADS" -eq 1 ; then
27430
27431 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27432 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27433 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 else
27436   ac_check_lib_save_LIBS=$LIBS
27437 LIBS="-lpthread  $LIBS"
27438 cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444
27445 /* Override any GCC internal prototype to avoid an error.
27446    Use char because int might match the return type of a GCC
27447    builtin and then its argument prototype would still apply.  */
27448 #ifdef __cplusplus
27449 extern "C"
27450 #endif
27451 char pthread_mutex_init ();
27452 int
27453 main ()
27454 {
27455 return pthread_mutex_init ();
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_link") 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } &&
27474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27475   { (case "(($ac_try" in
27476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477   *) ac_try_echo=$ac_try;;
27478 esac
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480   (eval "$ac_try") 2>&5
27481   ac_status=$?
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); }; } &&
27484          { ac_try='test -s conftest$ac_exeext'
27485   { (case "(($ac_try" in
27486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487   *) ac_try_echo=$ac_try;;
27488 esac
27489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490   (eval "$ac_try") 2>&5
27491   ac_status=$?
27492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493   (exit $ac_status); }; }; then
27494   ac_cv_lib_pthread_pthread_mutex_init=yes
27495 else
27496   echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27498
27499         ac_cv_lib_pthread_pthread_mutex_init=no
27500 fi
27501
27502 rm -f core conftest.err conftest.$ac_objext \
27503       conftest$ac_exeext conftest.$ac_ext
27504 LIBS=$ac_check_lib_save_LIBS
27505 fi
27506 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27507 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27508 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27509   cat >>confdefs.h <<_ACEOF
27510 #define HAVE_LIBPTHREAD 1
27511 _ACEOF
27512
27513   LIBS="-lpthread $LIBS"
27514
27515 fi
27516
27517   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27518 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27519 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27520   echo $ECHO_N "(cached) $ECHO_C" >&6
27521 else
27522   ac_func_search_save_LIBS=$LIBS
27523 cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h.  */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h.  */
27529
27530 /* Override any GCC internal prototype to avoid an error.
27531    Use char because int might match the return type of a GCC
27532    builtin and then its argument prototype would still apply.  */
27533 #ifdef __cplusplus
27534 extern "C"
27535 #endif
27536 char pthread_mutex_lock ();
27537 int
27538 main ()
27539 {
27540 return pthread_mutex_lock ();
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 for ac_lib in '' pthread; do
27546   if test -z "$ac_lib"; then
27547     ac_res="none required"
27548   else
27549     ac_res=-l$ac_lib
27550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27551   fi
27552   rm -f conftest.$ac_objext conftest$ac_exeext
27553 if { (ac_try="$ac_link"
27554 case "(($ac_try" in
27555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556   *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559   (eval "$ac_link") 2>conftest.er1
27560   ac_status=$?
27561   grep -v '^ *+' conftest.er1 >conftest.err
27562   rm -f conftest.er1
27563   cat conftest.err >&5
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); } &&
27566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567   { (case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_try") 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; } &&
27576          { ac_try='test -s conftest$ac_exeext'
27577   { (case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_try") 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   ac_cv_search_pthread_mutex_lock=$ac_res
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591
27592 fi
27593
27594 rm -f core conftest.err conftest.$ac_objext \
27595       conftest$ac_exeext
27596   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27597   break
27598 fi
27599 done
27600 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27601   :
27602 else
27603   ac_cv_search_pthread_mutex_lock=no
27604 fi
27605 rm conftest.$ac_ext
27606 LIBS=$ac_func_search_save_LIBS
27607 fi
27608 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27609 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27610 ac_res=$ac_cv_search_pthread_mutex_lock
27611 if test "$ac_res" != no; then
27612   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27613
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_PTHREAD_MUTEX_LOCK 1
27616 _ACEOF
27617
27618 fi
27619
27620 fi
27621
27622
27623 # Check whether --with-udis86 was given.
27624 if test "${with_udis86+set}" = set; then
27625   withval=$with_udis86;
27626       USE_UDIS86=1
27627
27628       case "$withval" in
27629         /usr/lib|yes) ;;
27630         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27631       esac
27632
27633 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27634 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27635 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27636   echo $ECHO_N "(cached) $ECHO_C" >&6
27637 else
27638   ac_check_lib_save_LIBS=$LIBS
27639 LIBS="-ludis86  $LIBS"
27640 cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646
27647 /* Override any GCC internal prototype to avoid an error.
27648    Use char because int might match the return type of a GCC
27649    builtin and then its argument prototype would still apply.  */
27650 #ifdef __cplusplus
27651 extern "C"
27652 #endif
27653 char ud_init ();
27654 int
27655 main ()
27656 {
27657 return ud_init ();
27658   ;
27659   return 0;
27660 }
27661 _ACEOF
27662 rm -f conftest.$ac_objext conftest$ac_exeext
27663 if { (ac_try="$ac_link"
27664 case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_link") 2>conftest.er1
27670   ac_status=$?
27671   grep -v '^ *+' conftest.er1 >conftest.err
27672   rm -f conftest.er1
27673   cat conftest.err >&5
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); } &&
27676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27677   { (case "(($ac_try" in
27678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679   *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682   (eval "$ac_try") 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; } &&
27686          { ac_try='test -s conftest$ac_exeext'
27687   { (case "(($ac_try" in
27688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689   *) ac_try_echo=$ac_try;;
27690 esac
27691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692   (eval "$ac_try") 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); }; }; then
27696   ac_cv_lib_udis86_ud_init=yes
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701         ac_cv_lib_udis86_ud_init=no
27702 fi
27703
27704 rm -f core conftest.err conftest.$ac_objext \
27705       conftest$ac_exeext conftest.$ac_ext
27706 LIBS=$ac_check_lib_save_LIBS
27707 fi
27708 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27709 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27710 if test $ac_cv_lib_udis86_ud_init = yes; then
27711   cat >>confdefs.h <<_ACEOF
27712 #define HAVE_LIBUDIS86 1
27713 _ACEOF
27714
27715   LIBS="-ludis86 $LIBS"
27716
27717 else
27718
27719         echo "Error! You need to have libudis86 around."
27720         exit -1
27721
27722 fi
27723
27724
27725 else
27726   USE_UDIS86=0
27727
27728 fi
27729
27730
27731 cat >>confdefs.h <<_ACEOF
27732 #define USE_UDIS86 $USE_UDIS86
27733 _ACEOF
27734
27735
27736
27737
27738
27739
27740
27741
27742 ac_header_dirent=no
27743 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27744   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27745 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27746 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756 #include <sys/types.h>
27757 #include <$ac_hdr>
27758
27759 int
27760 main ()
27761 {
27762 if ((DIR *) 0)
27763 return 0;
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 rm -f conftest.$ac_objext
27769 if { (ac_try="$ac_compile"
27770 case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775   (eval "$ac_compile") 2>conftest.er1
27776   ac_status=$?
27777   grep -v '^ *+' conftest.er1 >conftest.err
27778   rm -f conftest.er1
27779   cat conftest.err >&5
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); } &&
27782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27783   { (case "(($ac_try" in
27784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785   *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788   (eval "$ac_try") 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; } &&
27792          { ac_try='test -s conftest.$ac_objext'
27793   { (case "(($ac_try" in
27794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795   *) ac_try_echo=$ac_try;;
27796 esac
27797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27798   (eval "$ac_try") 2>&5
27799   ac_status=$?
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); }; }; then
27802   eval "$as_ac_Header=yes"
27803 else
27804   echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27806
27807         eval "$as_ac_Header=no"
27808 fi
27809
27810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27811 fi
27812 ac_res=`eval echo '${'$as_ac_Header'}'`
27813                { echo "$as_me:$LINENO: result: $ac_res" >&5
27814 echo "${ECHO_T}$ac_res" >&6; }
27815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27816   cat >>confdefs.h <<_ACEOF
27817 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27818 _ACEOF
27819
27820 ac_header_dirent=$ac_hdr; break
27821 fi
27822
27823 done
27824 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27825 if test $ac_header_dirent = dirent.h; then
27826   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27827 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27828 if test "${ac_cv_search_opendir+set}" = set; then
27829   echo $ECHO_N "(cached) $ECHO_C" >&6
27830 else
27831   ac_func_search_save_LIBS=$LIBS
27832 cat >conftest.$ac_ext <<_ACEOF
27833 /* confdefs.h.  */
27834 _ACEOF
27835 cat confdefs.h >>conftest.$ac_ext
27836 cat >>conftest.$ac_ext <<_ACEOF
27837 /* end confdefs.h.  */
27838
27839 /* Override any GCC internal prototype to avoid an error.
27840    Use char because int might match the return type of a GCC
27841    builtin and then its argument prototype would still apply.  */
27842 #ifdef __cplusplus
27843 extern "C"
27844 #endif
27845 char opendir ();
27846 int
27847 main ()
27848 {
27849 return opendir ();
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 for ac_lib in '' dir; do
27855   if test -z "$ac_lib"; then
27856     ac_res="none required"
27857   else
27858     ac_res=-l$ac_lib
27859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27860   fi
27861   rm -f conftest.$ac_objext conftest$ac_exeext
27862 if { (ac_try="$ac_link"
27863 case "(($ac_try" in
27864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865   *) ac_try_echo=$ac_try;;
27866 esac
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868   (eval "$ac_link") 2>conftest.er1
27869   ac_status=$?
27870   grep -v '^ *+' conftest.er1 >conftest.err
27871   rm -f conftest.er1
27872   cat conftest.err >&5
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); } &&
27875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27876   { (case "(($ac_try" in
27877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878   *) ac_try_echo=$ac_try;;
27879 esac
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881   (eval "$ac_try") 2>&5
27882   ac_status=$?
27883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884   (exit $ac_status); }; } &&
27885          { ac_try='test -s conftest$ac_exeext'
27886   { (case "(($ac_try" in
27887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888   *) ac_try_echo=$ac_try;;
27889 esac
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891   (eval "$ac_try") 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; }; then
27895   ac_cv_search_opendir=$ac_res
27896 else
27897   echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900
27901 fi
27902
27903 rm -f core conftest.err conftest.$ac_objext \
27904       conftest$ac_exeext
27905   if test "${ac_cv_search_opendir+set}" = set; then
27906   break
27907 fi
27908 done
27909 if test "${ac_cv_search_opendir+set}" = set; then
27910   :
27911 else
27912   ac_cv_search_opendir=no
27913 fi
27914 rm conftest.$ac_ext
27915 LIBS=$ac_func_search_save_LIBS
27916 fi
27917 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27918 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27919 ac_res=$ac_cv_search_opendir
27920 if test "$ac_res" != no; then
27921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27922
27923 fi
27924
27925 else
27926   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27927 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27928 if test "${ac_cv_search_opendir+set}" = set; then
27929   echo $ECHO_N "(cached) $ECHO_C" >&6
27930 else
27931   ac_func_search_save_LIBS=$LIBS
27932 cat >conftest.$ac_ext <<_ACEOF
27933 /* confdefs.h.  */
27934 _ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h.  */
27938
27939 /* Override any GCC internal prototype to avoid an error.
27940    Use char because int might match the return type of a GCC
27941    builtin and then its argument prototype would still apply.  */
27942 #ifdef __cplusplus
27943 extern "C"
27944 #endif
27945 char opendir ();
27946 int
27947 main ()
27948 {
27949 return opendir ();
27950   ;
27951   return 0;
27952 }
27953 _ACEOF
27954 for ac_lib in '' x; do
27955   if test -z "$ac_lib"; then
27956     ac_res="none required"
27957   else
27958     ac_res=-l$ac_lib
27959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27960   fi
27961   rm -f conftest.$ac_objext conftest$ac_exeext
27962 if { (ac_try="$ac_link"
27963 case "(($ac_try" in
27964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965   *) ac_try_echo=$ac_try;;
27966 esac
27967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27968   (eval "$ac_link") 2>conftest.er1
27969   ac_status=$?
27970   grep -v '^ *+' conftest.er1 >conftest.err
27971   rm -f conftest.er1
27972   cat conftest.err >&5
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); } &&
27975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27976   { (case "(($ac_try" in
27977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978   *) ac_try_echo=$ac_try;;
27979 esac
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981   (eval "$ac_try") 2>&5
27982   ac_status=$?
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); }; } &&
27985          { ac_try='test -s conftest$ac_exeext'
27986   { (case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_try") 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); }; }; then
27995   ac_cv_search_opendir=$ac_res
27996 else
27997   echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
27999
28000
28001 fi
28002
28003 rm -f core conftest.err conftest.$ac_objext \
28004       conftest$ac_exeext
28005   if test "${ac_cv_search_opendir+set}" = set; then
28006   break
28007 fi
28008 done
28009 if test "${ac_cv_search_opendir+set}" = set; then
28010   :
28011 else
28012   ac_cv_search_opendir=no
28013 fi
28014 rm conftest.$ac_ext
28015 LIBS=$ac_func_search_save_LIBS
28016 fi
28017 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28018 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28019 ac_res=$ac_cv_search_opendir
28020 if test "$ac_res" != no; then
28021   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28022
28023 fi
28024
28025 fi
28026
28027 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28028 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28029 if test "${ac_cv_header_mmap_anon+set}" = set; then
28030   echo $ECHO_N "(cached) $ECHO_C" >&6
28031 else
28032    ac_ext=c
28033 ac_cpp='$CPP $CPPFLAGS'
28034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28037
28038   cat >conftest.$ac_ext <<_ACEOF
28039 /* confdefs.h.  */
28040 _ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h.  */
28044 #include <sys/mman.h>
28045 #include <unistd.h>
28046 #include <fcntl.h>
28047 int
28048 main ()
28049 {
28050 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28051   ;
28052   return 0;
28053 }
28054 _ACEOF
28055 rm -f conftest.$ac_objext
28056 if { (ac_try="$ac_compile"
28057 case "(($ac_try" in
28058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059   *) ac_try_echo=$ac_try;;
28060 esac
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062   (eval "$ac_compile") 2>conftest.er1
28063   ac_status=$?
28064   grep -v '^ *+' conftest.er1 >conftest.err
28065   rm -f conftest.er1
28066   cat conftest.err >&5
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); } &&
28069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070   { (case "(($ac_try" in
28071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072   *) ac_try_echo=$ac_try;;
28073 esac
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075   (eval "$ac_try") 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; } &&
28079          { ac_try='test -s conftest.$ac_objext'
28080   { (case "(($ac_try" in
28081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082   *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085   (eval "$ac_try") 2>&5
28086   ac_status=$?
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); }; }; then
28089   ac_cv_header_mmap_anon=yes
28090 else
28091   echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28093
28094         ac_cv_header_mmap_anon=no
28095 fi
28096
28097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28098   ac_ext=c
28099 ac_cpp='$CPP $CPPFLAGS'
28100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28103
28104
28105 fi
28106 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28107 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28108 if test "$ac_cv_header_mmap_anon" = yes; then
28109
28110 cat >>confdefs.h <<\_ACEOF
28111 #define HAVE_MMAP_ANONYMOUS 1
28112 _ACEOF
28113
28114 fi
28115
28116 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28117 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28118 if test "${ac_cv_header_stat_broken+set}" = set; then
28119   echo $ECHO_N "(cached) $ECHO_C" >&6
28120 else
28121   cat >conftest.$ac_ext <<_ACEOF
28122 /* confdefs.h.  */
28123 _ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h.  */
28127 #include <sys/types.h>
28128 #include <sys/stat.h>
28129
28130 #if defined S_ISBLK && defined S_IFDIR
28131 # if S_ISBLK (S_IFDIR)
28132 You lose.
28133 # endif
28134 #endif
28135
28136 #if defined S_ISBLK && defined S_IFCHR
28137 # if S_ISBLK (S_IFCHR)
28138 You lose.
28139 # endif
28140 #endif
28141
28142 #if defined S_ISLNK && defined S_IFREG
28143 # if S_ISLNK (S_IFREG)
28144 You lose.
28145 # endif
28146 #endif
28147
28148 #if defined S_ISSOCK && defined S_IFREG
28149 # if S_ISSOCK (S_IFREG)
28150 You lose.
28151 # endif
28152 #endif
28153
28154 _ACEOF
28155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28156   $EGREP "You lose" >/dev/null 2>&1; then
28157   ac_cv_header_stat_broken=yes
28158 else
28159   ac_cv_header_stat_broken=no
28160 fi
28161 rm -f conftest*
28162
28163 fi
28164 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28165 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28166 if test $ac_cv_header_stat_broken = yes; then
28167
28168 cat >>confdefs.h <<\_ACEOF
28169 #define STAT_MACROS_BROKEN 1
28170 _ACEOF
28171
28172 fi
28173
28174 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28176 if test "${ac_cv_header_stdc+set}" = set; then
28177   echo $ECHO_N "(cached) $ECHO_C" >&6
28178 else
28179   cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h.  */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h.  */
28185 #include <stdlib.h>
28186 #include <stdarg.h>
28187 #include <string.h>
28188 #include <float.h>
28189
28190 int
28191 main ()
28192 {
28193
28194   ;
28195   return 0;
28196 }
28197 _ACEOF
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202   *) ac_try_echo=$ac_try;;
28203 esac
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205   (eval "$ac_compile") 2>conftest.er1
28206   ac_status=$?
28207   grep -v '^ *+' conftest.er1 >conftest.err
28208   rm -f conftest.er1
28209   cat conftest.err >&5
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); } &&
28212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28213   { (case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_try") 2>&5
28219   ac_status=$?
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); }; } &&
28222          { ac_try='test -s conftest.$ac_objext'
28223   { (case "(($ac_try" in
28224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225   *) ac_try_echo=$ac_try;;
28226 esac
28227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28228   (eval "$ac_try") 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; }; then
28232   ac_cv_header_stdc=yes
28233 else
28234   echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28236
28237         ac_cv_header_stdc=no
28238 fi
28239
28240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241
28242 if test $ac_cv_header_stdc = yes; then
28243   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28244   cat >conftest.$ac_ext <<_ACEOF
28245 /* confdefs.h.  */
28246 _ACEOF
28247 cat confdefs.h >>conftest.$ac_ext
28248 cat >>conftest.$ac_ext <<_ACEOF
28249 /* end confdefs.h.  */
28250 #include <string.h>
28251
28252 _ACEOF
28253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28254   $EGREP "memchr" >/dev/null 2>&1; then
28255   :
28256 else
28257   ac_cv_header_stdc=no
28258 fi
28259 rm -f conftest*
28260
28261 fi
28262
28263 if test $ac_cv_header_stdc = yes; then
28264   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28265   cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h.  */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h.  */
28271 #include <stdlib.h>
28272
28273 _ACEOF
28274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28275   $EGREP "free" >/dev/null 2>&1; then
28276   :
28277 else
28278   ac_cv_header_stdc=no
28279 fi
28280 rm -f conftest*
28281
28282 fi
28283
28284 if test $ac_cv_header_stdc = yes; then
28285   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28286   if test "$cross_compiling" = yes; then
28287   :
28288 else
28289   cat >conftest.$ac_ext <<_ACEOF
28290 /* confdefs.h.  */
28291 _ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h.  */
28295 #include <ctype.h>
28296 #include <stdlib.h>
28297 #if ((' ' & 0x0FF) == 0x020)
28298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28300 #else
28301 # define ISLOWER(c) \
28302                    (('a' <= (c) && (c) <= 'i') \
28303                      || ('j' <= (c) && (c) <= 'r') \
28304                      || ('s' <= (c) && (c) <= 'z'))
28305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28306 #endif
28307
28308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28309 int
28310 main ()
28311 {
28312   int i;
28313   for (i = 0; i < 256; i++)
28314     if (XOR (islower (i), ISLOWER (i))
28315         || toupper (i) != TOUPPER (i))
28316       return 2;
28317   return 0;
28318 }
28319 _ACEOF
28320 rm -f conftest$ac_exeext
28321 if { (ac_try="$ac_link"
28322 case "(($ac_try" in
28323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28324   *) ac_try_echo=$ac_try;;
28325 esac
28326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28327   (eval "$ac_link") 2>&5
28328   ac_status=$?
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28331   { (case "(($ac_try" in
28332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333   *) ac_try_echo=$ac_try;;
28334 esac
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336   (eval "$ac_try") 2>&5
28337   ac_status=$?
28338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); }; }; then
28340   :
28341 else
28342   echo "$as_me: program exited with status $ac_status" >&5
28343 echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346 ( exit $ac_status )
28347 ac_cv_header_stdc=no
28348 fi
28349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28350 fi
28351
28352
28353 fi
28354 fi
28355 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28356 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28357 if test $ac_cv_header_stdc = yes; then
28358
28359 cat >>confdefs.h <<\_ACEOF
28360 #define STDC_HEADERS 1
28361 _ACEOF
28362
28363 fi
28364
28365 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28366 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28367 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370   cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h.  */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h.  */
28376 #include <sys/types.h>
28377 #include <sys/wait.h>
28378 #ifndef WEXITSTATUS
28379 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28380 #endif
28381 #ifndef WIFEXITED
28382 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28383 #endif
28384
28385 int
28386 main ()
28387 {
28388   int s;
28389   wait (&s);
28390   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28391   ;
28392   return 0;
28393 }
28394 _ACEOF
28395 rm -f conftest.$ac_objext
28396 if { (ac_try="$ac_compile"
28397 case "(($ac_try" in
28398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399   *) ac_try_echo=$ac_try;;
28400 esac
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402   (eval "$ac_compile") 2>conftest.er1
28403   ac_status=$?
28404   grep -v '^ *+' conftest.er1 >conftest.err
28405   rm -f conftest.er1
28406   cat conftest.err >&5
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); } &&
28409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410   { (case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_try") 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); }; } &&
28419          { ac_try='test -s conftest.$ac_objext'
28420   { (case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_try") 2>&5
28426   ac_status=$?
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); }; }; then
28429   ac_cv_header_sys_wait_h=yes
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         ac_cv_header_sys_wait_h=no
28435 fi
28436
28437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28438 fi
28439 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28440 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28441 if test $ac_cv_header_sys_wait_h = yes; then
28442
28443 cat >>confdefs.h <<\_ACEOF
28444 #define HAVE_SYS_WAIT_H 1
28445 _ACEOF
28446
28447 fi
28448
28449 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28450 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28451 if test "${ac_cv_header_time+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454   cat >conftest.$ac_ext <<_ACEOF
28455 /* confdefs.h.  */
28456 _ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h.  */
28460 #include <sys/types.h>
28461 #include <sys/time.h>
28462 #include <time.h>
28463
28464 int
28465 main ()
28466 {
28467 if ((struct tm *) 0)
28468 return 0;
28469   ;
28470   return 0;
28471 }
28472 _ACEOF
28473 rm -f conftest.$ac_objext
28474 if { (ac_try="$ac_compile"
28475 case "(($ac_try" in
28476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477   *) ac_try_echo=$ac_try;;
28478 esac
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480   (eval "$ac_compile") 2>conftest.er1
28481   ac_status=$?
28482   grep -v '^ *+' conftest.er1 >conftest.err
28483   rm -f conftest.er1
28484   cat conftest.err >&5
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); } &&
28487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28488   { (case "(($ac_try" in
28489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490   *) ac_try_echo=$ac_try;;
28491 esac
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493   (eval "$ac_try") 2>&5
28494   ac_status=$?
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); }; } &&
28497          { ac_try='test -s conftest.$ac_objext'
28498   { (case "(($ac_try" in
28499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500   *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503   (eval "$ac_try") 2>&5
28504   ac_status=$?
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); }; }; then
28507   ac_cv_header_time=yes
28508 else
28509   echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512         ac_cv_header_time=no
28513 fi
28514
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 fi
28517 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28518 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28519 if test $ac_cv_header_time = yes; then
28520
28521 cat >>confdefs.h <<\_ACEOF
28522 #define TIME_WITH_SYS_TIME 1
28523 _ACEOF
28524
28525 fi
28526
28527
28528
28529
28530
28531
28532
28533
28534 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28535 do
28536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28541   echo $ECHO_N "(cached) $ECHO_C" >&6
28542 fi
28543 ac_res=`eval echo '${'$as_ac_Header'}'`
28544                { echo "$as_me:$LINENO: result: $ac_res" >&5
28545 echo "${ECHO_T}$ac_res" >&6; }
28546 else
28547   # Is the header compilable?
28548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28550 cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 $ac_includes_default
28557 #include <$ac_header>
28558 _ACEOF
28559 rm -f conftest.$ac_objext
28560 if { (ac_try="$ac_compile"
28561 case "(($ac_try" in
28562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563   *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566   (eval "$ac_compile") 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } &&
28573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28574   { (case "(($ac_try" in
28575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576   *) ac_try_echo=$ac_try;;
28577 esac
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579   (eval "$ac_try") 2>&5
28580   ac_status=$?
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); }; } &&
28583          { ac_try='test -s conftest.$ac_objext'
28584   { (case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_try") 2>&5
28590   ac_status=$?
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); }; }; then
28593   ac_header_compiler=yes
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598         ac_header_compiler=no
28599 fi
28600
28601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28603 echo "${ECHO_T}$ac_header_compiler" >&6; }
28604
28605 # Is the header present?
28606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28608 cat >conftest.$ac_ext <<_ACEOF
28609 /* confdefs.h.  */
28610 _ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h.  */
28614 #include <$ac_header>
28615 _ACEOF
28616 if { (ac_try="$ac_cpp conftest.$ac_ext"
28617 case "(($ac_try" in
28618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619   *) ac_try_echo=$ac_try;;
28620 esac
28621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28623   ac_status=$?
28624   grep -v '^ *+' conftest.er1 >conftest.err
28625   rm -f conftest.er1
28626   cat conftest.err >&5
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); } >/dev/null; then
28629   if test -s conftest.err; then
28630     ac_cpp_err=$ac_c_preproc_warn_flag
28631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28632   else
28633     ac_cpp_err=
28634   fi
28635 else
28636   ac_cpp_err=yes
28637 fi
28638 if test -z "$ac_cpp_err"; then
28639   ac_header_preproc=yes
28640 else
28641   echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28643
28644   ac_header_preproc=no
28645 fi
28646
28647 rm -f conftest.err conftest.$ac_ext
28648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28649 echo "${ECHO_T}$ac_header_preproc" >&6; }
28650
28651 # So?  What about this header?
28652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28653   yes:no: )
28654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28658     ac_header_preproc=yes
28659     ;;
28660   no:yes:* )
28661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28673     ( cat <<\_ASBOX
28674 ## ----------------------------------- ##
28675 ## Report this to llvmbugs@cs.uiuc.edu ##
28676 ## ----------------------------------- ##
28677 _ASBOX
28678      ) | sed "s/^/$as_me: WARNING:     /" >&2
28679     ;;
28680 esac
28681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28684   echo $ECHO_N "(cached) $ECHO_C" >&6
28685 else
28686   eval "$as_ac_Header=\$ac_header_preproc"
28687 fi
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689                { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28691
28692 fi
28693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28694   cat >>confdefs.h <<_ACEOF
28695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28696 _ACEOF
28697
28698 fi
28699
28700 done
28701
28702
28703
28704
28705
28706
28707
28708 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28709 do
28710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28715   echo $ECHO_N "(cached) $ECHO_C" >&6
28716 fi
28717 ac_res=`eval echo '${'$as_ac_Header'}'`
28718                { echo "$as_me:$LINENO: result: $ac_res" >&5
28719 echo "${ECHO_T}$ac_res" >&6; }
28720 else
28721   # Is the header compilable?
28722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28724 cat >conftest.$ac_ext <<_ACEOF
28725 /* confdefs.h.  */
28726 _ACEOF
28727 cat confdefs.h >>conftest.$ac_ext
28728 cat >>conftest.$ac_ext <<_ACEOF
28729 /* end confdefs.h.  */
28730 $ac_includes_default
28731 #include <$ac_header>
28732 _ACEOF
28733 rm -f conftest.$ac_objext
28734 if { (ac_try="$ac_compile"
28735 case "(($ac_try" in
28736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737   *) ac_try_echo=$ac_try;;
28738 esac
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740   (eval "$ac_compile") 2>conftest.er1
28741   ac_status=$?
28742   grep -v '^ *+' conftest.er1 >conftest.err
28743   rm -f conftest.er1
28744   cat conftest.err >&5
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); } &&
28747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28748   { (case "(($ac_try" in
28749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750   *) ac_try_echo=$ac_try;;
28751 esac
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753   (eval "$ac_try") 2>&5
28754   ac_status=$?
28755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756   (exit $ac_status); }; } &&
28757          { ac_try='test -s conftest.$ac_objext'
28758   { (case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_try") 2>&5
28764   ac_status=$?
28765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766   (exit $ac_status); }; }; then
28767   ac_header_compiler=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772         ac_header_compiler=no
28773 fi
28774
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28777 echo "${ECHO_T}$ac_header_compiler" >&6; }
28778
28779 # Is the header present?
28780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28782 cat >conftest.$ac_ext <<_ACEOF
28783 /* confdefs.h.  */
28784 _ACEOF
28785 cat confdefs.h >>conftest.$ac_ext
28786 cat >>conftest.$ac_ext <<_ACEOF
28787 /* end confdefs.h.  */
28788 #include <$ac_header>
28789 _ACEOF
28790 if { (ac_try="$ac_cpp conftest.$ac_ext"
28791 case "(($ac_try" in
28792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793   *) ac_try_echo=$ac_try;;
28794 esac
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28797   ac_status=$?
28798   grep -v '^ *+' conftest.er1 >conftest.err
28799   rm -f conftest.er1
28800   cat conftest.err >&5
28801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); } >/dev/null; then
28803   if test -s conftest.err; then
28804     ac_cpp_err=$ac_c_preproc_warn_flag
28805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28806   else
28807     ac_cpp_err=
28808   fi
28809 else
28810   ac_cpp_err=yes
28811 fi
28812 if test -z "$ac_cpp_err"; then
28813   ac_header_preproc=yes
28814 else
28815   echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28817
28818   ac_header_preproc=no
28819 fi
28820
28821 rm -f conftest.err conftest.$ac_ext
28822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28823 echo "${ECHO_T}$ac_header_preproc" >&6; }
28824
28825 # So?  What about this header?
28826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28827   yes:no: )
28828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28832     ac_header_preproc=yes
28833     ;;
28834   no:yes:* )
28835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28847     ( cat <<\_ASBOX
28848 ## ----------------------------------- ##
28849 ## Report this to llvmbugs@cs.uiuc.edu ##
28850 ## ----------------------------------- ##
28851 _ASBOX
28852      ) | sed "s/^/$as_me: WARNING:     /" >&2
28853     ;;
28854 esac
28855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28858   echo $ECHO_N "(cached) $ECHO_C" >&6
28859 else
28860   eval "$as_ac_Header=\$ac_header_preproc"
28861 fi
28862 ac_res=`eval echo '${'$as_ac_Header'}'`
28863                { echo "$as_me:$LINENO: result: $ac_res" >&5
28864 echo "${ECHO_T}$ac_res" >&6; }
28865
28866 fi
28867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28868   cat >>confdefs.h <<_ACEOF
28869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28870 _ACEOF
28871
28872 fi
28873
28874 done
28875
28876
28877
28878
28879
28880
28881 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28882 do
28883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28888   echo $ECHO_N "(cached) $ECHO_C" >&6
28889 fi
28890 ac_res=`eval echo '${'$as_ac_Header'}'`
28891                { echo "$as_me:$LINENO: result: $ac_res" >&5
28892 echo "${ECHO_T}$ac_res" >&6; }
28893 else
28894   # Is the header compilable?
28895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28897 cat >conftest.$ac_ext <<_ACEOF
28898 /* confdefs.h.  */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h.  */
28903 $ac_includes_default
28904 #include <$ac_header>
28905 _ACEOF
28906 rm -f conftest.$ac_objext
28907 if { (ac_try="$ac_compile"
28908 case "(($ac_try" in
28909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910   *) ac_try_echo=$ac_try;;
28911 esac
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913   (eval "$ac_compile") 2>conftest.er1
28914   ac_status=$?
28915   grep -v '^ *+' conftest.er1 >conftest.err
28916   rm -f conftest.er1
28917   cat conftest.err >&5
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); } &&
28920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28921   { (case "(($ac_try" in
28922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923   *) ac_try_echo=$ac_try;;
28924 esac
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926   (eval "$ac_try") 2>&5
28927   ac_status=$?
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); }; } &&
28930          { ac_try='test -s conftest.$ac_objext'
28931   { (case "(($ac_try" in
28932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28933   *) ac_try_echo=$ac_try;;
28934 esac
28935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28936   (eval "$ac_try") 2>&5
28937   ac_status=$?
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); }; }; then
28940   ac_header_compiler=yes
28941 else
28942   echo "$as_me: failed program was:" >&5
28943 sed 's/^/| /' conftest.$ac_ext >&5
28944
28945         ac_header_compiler=no
28946 fi
28947
28948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28950 echo "${ECHO_T}$ac_header_compiler" >&6; }
28951
28952 # Is the header present?
28953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28955 cat >conftest.$ac_ext <<_ACEOF
28956 /* confdefs.h.  */
28957 _ACEOF
28958 cat confdefs.h >>conftest.$ac_ext
28959 cat >>conftest.$ac_ext <<_ACEOF
28960 /* end confdefs.h.  */
28961 #include <$ac_header>
28962 _ACEOF
28963 if { (ac_try="$ac_cpp conftest.$ac_ext"
28964 case "(($ac_try" in
28965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966   *) ac_try_echo=$ac_try;;
28967 esac
28968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28970   ac_status=$?
28971   grep -v '^ *+' conftest.er1 >conftest.err
28972   rm -f conftest.er1
28973   cat conftest.err >&5
28974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975   (exit $ac_status); } >/dev/null; then
28976   if test -s conftest.err; then
28977     ac_cpp_err=$ac_c_preproc_warn_flag
28978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28979   else
28980     ac_cpp_err=
28981   fi
28982 else
28983   ac_cpp_err=yes
28984 fi
28985 if test -z "$ac_cpp_err"; then
28986   ac_header_preproc=yes
28987 else
28988   echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28990
28991   ac_header_preproc=no
28992 fi
28993
28994 rm -f conftest.err conftest.$ac_ext
28995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28996 echo "${ECHO_T}$ac_header_preproc" >&6; }
28997
28998 # So?  What about this header?
28999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29000   yes:no: )
29001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29005     ac_header_preproc=yes
29006     ;;
29007   no:yes:* )
29008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29020     ( cat <<\_ASBOX
29021 ## ----------------------------------- ##
29022 ## Report this to llvmbugs@cs.uiuc.edu ##
29023 ## ----------------------------------- ##
29024 _ASBOX
29025      ) | sed "s/^/$as_me: WARNING:     /" >&2
29026     ;;
29027 esac
29028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29031   echo $ECHO_N "(cached) $ECHO_C" >&6
29032 else
29033   eval "$as_ac_Header=\$ac_header_preproc"
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
29039 fi
29040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29041   cat >>confdefs.h <<_ACEOF
29042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29043 _ACEOF
29044
29045 fi
29046
29047 done
29048
29049
29050
29051
29052 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29053 do
29054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29059   echo $ECHO_N "(cached) $ECHO_C" >&6
29060 fi
29061 ac_res=`eval echo '${'$as_ac_Header'}'`
29062                { echo "$as_me:$LINENO: result: $ac_res" >&5
29063 echo "${ECHO_T}$ac_res" >&6; }
29064 else
29065   # Is the header compilable?
29066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29068 cat >conftest.$ac_ext <<_ACEOF
29069 /* confdefs.h.  */
29070 _ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h.  */
29074 $ac_includes_default
29075 #include <$ac_header>
29076 _ACEOF
29077 rm -f conftest.$ac_objext
29078 if { (ac_try="$ac_compile"
29079 case "(($ac_try" in
29080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081   *) ac_try_echo=$ac_try;;
29082 esac
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084   (eval "$ac_compile") 2>conftest.er1
29085   ac_status=$?
29086   grep -v '^ *+' conftest.er1 >conftest.err
29087   rm -f conftest.er1
29088   cat conftest.err >&5
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); } &&
29091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29092   { (case "(($ac_try" in
29093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094   *) ac_try_echo=$ac_try;;
29095 esac
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097   (eval "$ac_try") 2>&5
29098   ac_status=$?
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); }; } &&
29101          { ac_try='test -s conftest.$ac_objext'
29102   { (case "(($ac_try" in
29103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104   *) ac_try_echo=$ac_try;;
29105 esac
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107   (eval "$ac_try") 2>&5
29108   ac_status=$?
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); }; }; then
29111   ac_header_compiler=yes
29112 else
29113   echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29115
29116         ac_header_compiler=no
29117 fi
29118
29119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29121 echo "${ECHO_T}$ac_header_compiler" >&6; }
29122
29123 # Is the header present?
29124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29126 cat >conftest.$ac_ext <<_ACEOF
29127 /* confdefs.h.  */
29128 _ACEOF
29129 cat confdefs.h >>conftest.$ac_ext
29130 cat >>conftest.$ac_ext <<_ACEOF
29131 /* end confdefs.h.  */
29132 #include <$ac_header>
29133 _ACEOF
29134 if { (ac_try="$ac_cpp conftest.$ac_ext"
29135 case "(($ac_try" in
29136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137   *) ac_try_echo=$ac_try;;
29138 esac
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29141   ac_status=$?
29142   grep -v '^ *+' conftest.er1 >conftest.err
29143   rm -f conftest.er1
29144   cat conftest.err >&5
29145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146   (exit $ac_status); } >/dev/null; then
29147   if test -s conftest.err; then
29148     ac_cpp_err=$ac_c_preproc_warn_flag
29149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29150   else
29151     ac_cpp_err=
29152   fi
29153 else
29154   ac_cpp_err=yes
29155 fi
29156 if test -z "$ac_cpp_err"; then
29157   ac_header_preproc=yes
29158 else
29159   echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29161
29162   ac_header_preproc=no
29163 fi
29164
29165 rm -f conftest.err conftest.$ac_ext
29166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29167 echo "${ECHO_T}$ac_header_preproc" >&6; }
29168
29169 # So?  What about this header?
29170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29171   yes:no: )
29172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29176     ac_header_preproc=yes
29177     ;;
29178   no:yes:* )
29179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29191     ( cat <<\_ASBOX
29192 ## ----------------------------------- ##
29193 ## Report this to llvmbugs@cs.uiuc.edu ##
29194 ## ----------------------------------- ##
29195 _ASBOX
29196      ) | sed "s/^/$as_me: WARNING:     /" >&2
29197     ;;
29198 esac
29199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29202   echo $ECHO_N "(cached) $ECHO_C" >&6
29203 else
29204   eval "$as_ac_Header=\$ac_header_preproc"
29205 fi
29206 ac_res=`eval echo '${'$as_ac_Header'}'`
29207                { echo "$as_me:$LINENO: result: $ac_res" >&5
29208 echo "${ECHO_T}$ac_res" >&6; }
29209
29210 fi
29211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29212   cat >>confdefs.h <<_ACEOF
29213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29214 _ACEOF
29215
29216 fi
29217
29218 done
29219
29220 if test "$ENABLE_THREADS" -eq 1 ; then
29221   if test "${ac_cv_header_pthread_h+set}" = set; then
29222   { echo "$as_me:$LINENO: checking for pthread.h" >&5
29223 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29224 if test "${ac_cv_header_pthread_h+set}" = set; then
29225   echo $ECHO_N "(cached) $ECHO_C" >&6
29226 fi
29227 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29228 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29229 else
29230   # Is the header compilable?
29231 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29232 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29233 cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239 $ac_includes_default
29240 #include <pthread.h>
29241 _ACEOF
29242 rm -f conftest.$ac_objext
29243 if { (ac_try="$ac_compile"
29244 case "(($ac_try" in
29245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246   *) ac_try_echo=$ac_try;;
29247 esac
29248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249   (eval "$ac_compile") 2>conftest.er1
29250   ac_status=$?
29251   grep -v '^ *+' conftest.er1 >conftest.err
29252   rm -f conftest.er1
29253   cat conftest.err >&5
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); } &&
29256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29257   { (case "(($ac_try" in
29258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29259   *) ac_try_echo=$ac_try;;
29260 esac
29261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29262   (eval "$ac_try") 2>&5
29263   ac_status=$?
29264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265   (exit $ac_status); }; } &&
29266          { ac_try='test -s conftest.$ac_objext'
29267   { (case "(($ac_try" in
29268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269   *) ac_try_echo=$ac_try;;
29270 esac
29271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272   (eval "$ac_try") 2>&5
29273   ac_status=$?
29274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275   (exit $ac_status); }; }; then
29276   ac_header_compiler=yes
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281         ac_header_compiler=no
29282 fi
29283
29284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29286 echo "${ECHO_T}$ac_header_compiler" >&6; }
29287
29288 # Is the header present?
29289 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29290 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29291 cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297 #include <pthread.h>
29298 _ACEOF
29299 if { (ac_try="$ac_cpp conftest.$ac_ext"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29306   ac_status=$?
29307   grep -v '^ *+' conftest.er1 >conftest.err
29308   rm -f conftest.er1
29309   cat conftest.err >&5
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); } >/dev/null; then
29312   if test -s conftest.err; then
29313     ac_cpp_err=$ac_c_preproc_warn_flag
29314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29315   else
29316     ac_cpp_err=
29317   fi
29318 else
29319   ac_cpp_err=yes
29320 fi
29321 if test -z "$ac_cpp_err"; then
29322   ac_header_preproc=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327   ac_header_preproc=no
29328 fi
29329
29330 rm -f conftest.err conftest.$ac_ext
29331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29332 echo "${ECHO_T}$ac_header_preproc" >&6; }
29333
29334 # So?  What about this header?
29335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29336   yes:no: )
29337     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29338 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29339     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29340 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29341     ac_header_preproc=yes
29342     ;;
29343   no:yes:* )
29344     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29345 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29346     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29347 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29348     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29349 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29350     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29351 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29352     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29353 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29354     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29355 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29356     ( cat <<\_ASBOX
29357 ## ----------------------------------- ##
29358 ## Report this to llvmbugs@cs.uiuc.edu ##
29359 ## ----------------------------------- ##
29360 _ASBOX
29361      ) | sed "s/^/$as_me: WARNING:     /" >&2
29362     ;;
29363 esac
29364 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29365 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29366 if test "${ac_cv_header_pthread_h+set}" = set; then
29367   echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369   ac_cv_header_pthread_h=$ac_header_preproc
29370 fi
29371 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29372 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29373
29374 fi
29375 if test $ac_cv_header_pthread_h = yes; then
29376   HAVE_PTHREAD=1
29377
29378 else
29379   HAVE_PTHREAD=0
29380
29381 fi
29382
29383
29384 else
29385   HAVE_PTHREAD=0
29386
29387 fi
29388
29389
29390
29391   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29392 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29393 if test "${ac_cv_huge_val_sanity+set}" = set; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396
29397     ac_ext=cpp
29398 ac_cpp='$CXXCPP $CPPFLAGS'
29399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29402
29403     CXXFLAGS=-pedantic
29404     if test "$cross_compiling" = yes; then
29405   ac_cv_huge_val_sanity=yes
29406 else
29407   cat >conftest.$ac_ext <<_ACEOF
29408 /* confdefs.h.  */
29409 _ACEOF
29410 cat confdefs.h >>conftest.$ac_ext
29411 cat >>conftest.$ac_ext <<_ACEOF
29412 /* end confdefs.h.  */
29413 #include <math.h>
29414 int
29415 main ()
29416 {
29417 double x = HUGE_VAL; return x != x;
29418   ;
29419   return 0;
29420 }
29421 _ACEOF
29422 rm -f conftest$ac_exeext
29423 if { (ac_try="$ac_link"
29424 case "(($ac_try" in
29425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426   *) ac_try_echo=$ac_try;;
29427 esac
29428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429   (eval "$ac_link") 2>&5
29430   ac_status=$?
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29433   { (case "(($ac_try" in
29434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435   *) ac_try_echo=$ac_try;;
29436 esac
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438   (eval "$ac_try") 2>&5
29439   ac_status=$?
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); }; }; then
29442   ac_cv_huge_val_sanity=yes
29443 else
29444   echo "$as_me: program exited with status $ac_status" >&5
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29447
29448 ( exit $ac_status )
29449 ac_cv_huge_val_sanity=no
29450 fi
29451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29452 fi
29453
29454
29455     ac_ext=c
29456 ac_cpp='$CPP $CPPFLAGS'
29457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29460
29461
29462 fi
29463 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29464 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29465   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29466
29467
29468 { echo "$as_me:$LINENO: checking for pid_t" >&5
29469 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29470 if test "${ac_cv_type_pid_t+set}" = set; then
29471   echo $ECHO_N "(cached) $ECHO_C" >&6
29472 else
29473   cat >conftest.$ac_ext <<_ACEOF
29474 /* confdefs.h.  */
29475 _ACEOF
29476 cat confdefs.h >>conftest.$ac_ext
29477 cat >>conftest.$ac_ext <<_ACEOF
29478 /* end confdefs.h.  */
29479 $ac_includes_default
29480 typedef pid_t ac__type_new_;
29481 int
29482 main ()
29483 {
29484 if ((ac__type_new_ *) 0)
29485   return 0;
29486 if (sizeof (ac__type_new_))
29487   return 0;
29488   ;
29489   return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest.$ac_objext
29493 if { (ac_try="$ac_compile"
29494 case "(($ac_try" in
29495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496   *) ac_try_echo=$ac_try;;
29497 esac
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499   (eval "$ac_compile") 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } &&
29506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29507   { (case "(($ac_try" in
29508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509   *) ac_try_echo=$ac_try;;
29510 esac
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512   (eval "$ac_try") 2>&5
29513   ac_status=$?
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); }; } &&
29516          { ac_try='test -s conftest.$ac_objext'
29517   { (case "(($ac_try" in
29518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519   *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522   (eval "$ac_try") 2>&5
29523   ac_status=$?
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); }; }; then
29526   ac_cv_type_pid_t=yes
29527 else
29528   echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29530
29531         ac_cv_type_pid_t=no
29532 fi
29533
29534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29535 fi
29536 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29537 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29538 if test $ac_cv_type_pid_t = yes; then
29539   :
29540 else
29541
29542 cat >>confdefs.h <<_ACEOF
29543 #define pid_t int
29544 _ACEOF
29545
29546 fi
29547
29548 { echo "$as_me:$LINENO: checking for size_t" >&5
29549 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29550 if test "${ac_cv_type_size_t+set}" = set; then
29551   echo $ECHO_N "(cached) $ECHO_C" >&6
29552 else
29553   cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559 $ac_includes_default
29560 typedef size_t ac__type_new_;
29561 int
29562 main ()
29563 {
29564 if ((ac__type_new_ *) 0)
29565   return 0;
29566 if (sizeof (ac__type_new_))
29567   return 0;
29568   ;
29569   return 0;
29570 }
29571 _ACEOF
29572 rm -f conftest.$ac_objext
29573 if { (ac_try="$ac_compile"
29574 case "(($ac_try" in
29575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576   *) ac_try_echo=$ac_try;;
29577 esac
29578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579   (eval "$ac_compile") 2>conftest.er1
29580   ac_status=$?
29581   grep -v '^ *+' conftest.er1 >conftest.err
29582   rm -f conftest.er1
29583   cat conftest.err >&5
29584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585   (exit $ac_status); } &&
29586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29587   { (case "(($ac_try" in
29588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589   *) ac_try_echo=$ac_try;;
29590 esac
29591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29592   (eval "$ac_try") 2>&5
29593   ac_status=$?
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); }; } &&
29596          { ac_try='test -s conftest.$ac_objext'
29597   { (case "(($ac_try" in
29598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599   *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602   (eval "$ac_try") 2>&5
29603   ac_status=$?
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); }; }; then
29606   ac_cv_type_size_t=yes
29607 else
29608   echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29610
29611         ac_cv_type_size_t=no
29612 fi
29613
29614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29615 fi
29616 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29617 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29618 if test $ac_cv_type_size_t = yes; then
29619   :
29620 else
29621
29622 cat >>confdefs.h <<_ACEOF
29623 #define size_t unsigned int
29624 _ACEOF
29625
29626 fi
29627
29628 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29629 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29630 if test "${ac_cv_type_signal+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   cat >conftest.$ac_ext <<_ACEOF
29634 /* confdefs.h.  */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h.  */
29639 #include <sys/types.h>
29640 #include <signal.h>
29641
29642 int
29643 main ()
29644 {
29645 return *(signal (0, 0)) (0) == 1;
29646   ;
29647   return 0;
29648 }
29649 _ACEOF
29650 rm -f conftest.$ac_objext
29651 if { (ac_try="$ac_compile"
29652 case "(($ac_try" in
29653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654   *) ac_try_echo=$ac_try;;
29655 esac
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657   (eval "$ac_compile") 2>conftest.er1
29658   ac_status=$?
29659   grep -v '^ *+' conftest.er1 >conftest.err
29660   rm -f conftest.er1
29661   cat conftest.err >&5
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } &&
29664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29665   { (case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_try") 2>&5
29671   ac_status=$?
29672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); }; } &&
29674          { ac_try='test -s conftest.$ac_objext'
29675   { (case "(($ac_try" in
29676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677   *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680   (eval "$ac_try") 2>&5
29681   ac_status=$?
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); }; }; then
29684   ac_cv_type_signal=int
29685 else
29686   echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689         ac_cv_type_signal=void
29690 fi
29691
29692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29693 fi
29694 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29695 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29696
29697 cat >>confdefs.h <<_ACEOF
29698 #define RETSIGTYPE $ac_cv_type_signal
29699 _ACEOF
29700
29701
29702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29704 if test "${ac_cv_struct_tm+set}" = set; then
29705   echo $ECHO_N "(cached) $ECHO_C" >&6
29706 else
29707   cat >conftest.$ac_ext <<_ACEOF
29708 /* confdefs.h.  */
29709 _ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h.  */
29713 #include <sys/types.h>
29714 #include <time.h>
29715
29716 int
29717 main ()
29718 {
29719 struct tm *tp; tp->tm_sec;
29720   ;
29721   return 0;
29722 }
29723 _ACEOF
29724 rm -f conftest.$ac_objext
29725 if { (ac_try="$ac_compile"
29726 case "(($ac_try" in
29727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728   *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731   (eval "$ac_compile") 2>conftest.er1
29732   ac_status=$?
29733   grep -v '^ *+' conftest.er1 >conftest.err
29734   rm -f conftest.er1
29735   cat conftest.err >&5
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); } &&
29738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29739   { (case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_try") 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); }; } &&
29748          { ac_try='test -s conftest.$ac_objext'
29749   { (case "(($ac_try" in
29750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751   *) ac_try_echo=$ac_try;;
29752 esac
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754   (eval "$ac_try") 2>&5
29755   ac_status=$?
29756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757   (exit $ac_status); }; }; then
29758   ac_cv_struct_tm=time.h
29759 else
29760   echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763         ac_cv_struct_tm=sys/time.h
29764 fi
29765
29766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29767 fi
29768 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29769 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29770 if test $ac_cv_struct_tm = sys/time.h; then
29771
29772 cat >>confdefs.h <<\_ACEOF
29773 #define TM_IN_SYS_TIME 1
29774 _ACEOF
29775
29776 fi
29777
29778 { echo "$as_me:$LINENO: checking for int64_t" >&5
29779 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29780 if test "${ac_cv_type_int64_t+set}" = set; then
29781   echo $ECHO_N "(cached) $ECHO_C" >&6
29782 else
29783   cat >conftest.$ac_ext <<_ACEOF
29784 /* confdefs.h.  */
29785 _ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h.  */
29789 $ac_includes_default
29790 typedef int64_t ac__type_new_;
29791 int
29792 main ()
29793 {
29794 if ((ac__type_new_ *) 0)
29795   return 0;
29796 if (sizeof (ac__type_new_))
29797   return 0;
29798   ;
29799   return 0;
29800 }
29801 _ACEOF
29802 rm -f conftest.$ac_objext
29803 if { (ac_try="$ac_compile"
29804 case "(($ac_try" in
29805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806   *) ac_try_echo=$ac_try;;
29807 esac
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809   (eval "$ac_compile") 2>conftest.er1
29810   ac_status=$?
29811   grep -v '^ *+' conftest.er1 >conftest.err
29812   rm -f conftest.er1
29813   cat conftest.err >&5
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); } &&
29816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29817   { (case "(($ac_try" in
29818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819   *) ac_try_echo=$ac_try;;
29820 esac
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822   (eval "$ac_try") 2>&5
29823   ac_status=$?
29824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825   (exit $ac_status); }; } &&
29826          { ac_try='test -s conftest.$ac_objext'
29827   { (case "(($ac_try" in
29828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829   *) ac_try_echo=$ac_try;;
29830 esac
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832   (eval "$ac_try") 2>&5
29833   ac_status=$?
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); }; }; then
29836   ac_cv_type_int64_t=yes
29837 else
29838   echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29840
29841         ac_cv_type_int64_t=no
29842 fi
29843
29844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29845 fi
29846 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29847 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29848 if test $ac_cv_type_int64_t = yes; then
29849
29850 cat >>confdefs.h <<_ACEOF
29851 #define HAVE_INT64_T 1
29852 _ACEOF
29853
29854
29855 else
29856   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29857 echo "$as_me: error: Type int64_t required but not found" >&2;}
29858    { (exit 1); exit 1; }; }
29859 fi
29860
29861 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29862 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29863 if test "${ac_cv_type_uint64_t+set}" = set; then
29864   echo $ECHO_N "(cached) $ECHO_C" >&6
29865 else
29866   cat >conftest.$ac_ext <<_ACEOF
29867 /* confdefs.h.  */
29868 _ACEOF
29869 cat confdefs.h >>conftest.$ac_ext
29870 cat >>conftest.$ac_ext <<_ACEOF
29871 /* end confdefs.h.  */
29872 $ac_includes_default
29873 typedef uint64_t ac__type_new_;
29874 int
29875 main ()
29876 {
29877 if ((ac__type_new_ *) 0)
29878   return 0;
29879 if (sizeof (ac__type_new_))
29880   return 0;
29881   ;
29882   return 0;
29883 }
29884 _ACEOF
29885 rm -f conftest.$ac_objext
29886 if { (ac_try="$ac_compile"
29887 case "(($ac_try" in
29888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889   *) ac_try_echo=$ac_try;;
29890 esac
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892   (eval "$ac_compile") 2>conftest.er1
29893   ac_status=$?
29894   grep -v '^ *+' conftest.er1 >conftest.err
29895   rm -f conftest.er1
29896   cat conftest.err >&5
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); } &&
29899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29900   { (case "(($ac_try" in
29901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902   *) ac_try_echo=$ac_try;;
29903 esac
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905   (eval "$ac_try") 2>&5
29906   ac_status=$?
29907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908   (exit $ac_status); }; } &&
29909          { ac_try='test -s conftest.$ac_objext'
29910   { (case "(($ac_try" in
29911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912   *) ac_try_echo=$ac_try;;
29913 esac
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915   (eval "$ac_try") 2>&5
29916   ac_status=$?
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); }; }; then
29919   ac_cv_type_uint64_t=yes
29920 else
29921   echo "$as_me: failed program was:" >&5
29922 sed 's/^/| /' conftest.$ac_ext >&5
29923
29924         ac_cv_type_uint64_t=no
29925 fi
29926
29927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29928 fi
29929 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29930 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29931 if test $ac_cv_type_uint64_t = yes; then
29932
29933 cat >>confdefs.h <<_ACEOF
29934 #define HAVE_UINT64_T 1
29935 _ACEOF
29936
29937
29938 else
29939   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29940 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29941 if test "${ac_cv_type_u_int64_t+set}" = set; then
29942   echo $ECHO_N "(cached) $ECHO_C" >&6
29943 else
29944   cat >conftest.$ac_ext <<_ACEOF
29945 /* confdefs.h.  */
29946 _ACEOF
29947 cat confdefs.h >>conftest.$ac_ext
29948 cat >>conftest.$ac_ext <<_ACEOF
29949 /* end confdefs.h.  */
29950 $ac_includes_default
29951 typedef u_int64_t ac__type_new_;
29952 int
29953 main ()
29954 {
29955 if ((ac__type_new_ *) 0)
29956   return 0;
29957 if (sizeof (ac__type_new_))
29958   return 0;
29959   ;
29960   return 0;
29961 }
29962 _ACEOF
29963 rm -f conftest.$ac_objext
29964 if { (ac_try="$ac_compile"
29965 case "(($ac_try" in
29966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967   *) ac_try_echo=$ac_try;;
29968 esac
29969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970   (eval "$ac_compile") 2>conftest.er1
29971   ac_status=$?
29972   grep -v '^ *+' conftest.er1 >conftest.err
29973   rm -f conftest.er1
29974   cat conftest.err >&5
29975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976   (exit $ac_status); } &&
29977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29978   { (case "(($ac_try" in
29979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980   *) ac_try_echo=$ac_try;;
29981 esac
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983   (eval "$ac_try") 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; } &&
29987          { ac_try='test -s conftest.$ac_objext'
29988   { (case "(($ac_try" in
29989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29990   *) ac_try_echo=$ac_try;;
29991 esac
29992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29993   (eval "$ac_try") 2>&5
29994   ac_status=$?
29995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996   (exit $ac_status); }; }; then
29997   ac_cv_type_u_int64_t=yes
29998 else
29999   echo "$as_me: failed program was:" >&5
30000 sed 's/^/| /' conftest.$ac_ext >&5
30001
30002         ac_cv_type_u_int64_t=no
30003 fi
30004
30005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30006 fi
30007 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30008 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30009 if test $ac_cv_type_u_int64_t = yes; then
30010
30011 cat >>confdefs.h <<_ACEOF
30012 #define HAVE_U_INT64_T 1
30013 _ACEOF
30014
30015
30016 else
30017   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30018 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30019    { (exit 1); exit 1; }; }
30020 fi
30021
30022 fi
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30034 do
30035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30039   echo $ECHO_N "(cached) $ECHO_C" >&6
30040 else
30041   cat >conftest.$ac_ext <<_ACEOF
30042 /* confdefs.h.  */
30043 _ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h.  */
30047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30049 #define $ac_func innocuous_$ac_func
30050
30051 /* System header to define __stub macros and hopefully few prototypes,
30052     which can conflict with char $ac_func (); below.
30053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30054     <limits.h> exists even on freestanding compilers.  */
30055
30056 #ifdef __STDC__
30057 # include <limits.h>
30058 #else
30059 # include <assert.h>
30060 #endif
30061
30062 #undef $ac_func
30063
30064 /* Override any GCC internal prototype to avoid an error.
30065    Use char because int might match the return type of a GCC
30066    builtin and then its argument prototype would still apply.  */
30067 #ifdef __cplusplus
30068 extern "C"
30069 #endif
30070 char $ac_func ();
30071 /* The GNU C library defines this for functions which it implements
30072     to always fail with ENOSYS.  Some functions are actually named
30073     something starting with __ and the normal name is an alias.  */
30074 #if defined __stub_$ac_func || defined __stub___$ac_func
30075 choke me
30076 #endif
30077
30078 int
30079 main ()
30080 {
30081 return $ac_func ();
30082   ;
30083   return 0;
30084 }
30085 _ACEOF
30086 rm -f conftest.$ac_objext conftest$ac_exeext
30087 if { (ac_try="$ac_link"
30088 case "(($ac_try" in
30089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090   *) ac_try_echo=$ac_try;;
30091 esac
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093   (eval "$ac_link") 2>conftest.er1
30094   ac_status=$?
30095   grep -v '^ *+' conftest.er1 >conftest.err
30096   rm -f conftest.er1
30097   cat conftest.err >&5
30098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099   (exit $ac_status); } &&
30100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30101   { (case "(($ac_try" in
30102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103   *) ac_try_echo=$ac_try;;
30104 esac
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106   (eval "$ac_try") 2>&5
30107   ac_status=$?
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); }; } &&
30110          { ac_try='test -s conftest$ac_exeext'
30111   { (case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_try") 2>&5
30117   ac_status=$?
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); }; }; then
30120   eval "$as_ac_var=yes"
30121 else
30122   echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30124
30125         eval "$as_ac_var=no"
30126 fi
30127
30128 rm -f core conftest.err conftest.$ac_objext \
30129       conftest$ac_exeext conftest.$ac_ext
30130 fi
30131 ac_res=`eval echo '${'$as_ac_var'}'`
30132                { echo "$as_me:$LINENO: result: $ac_res" >&5
30133 echo "${ECHO_T}$ac_res" >&6; }
30134 if test `eval echo '${'$as_ac_var'}'` = yes; then
30135   cat >>confdefs.h <<_ACEOF
30136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30137 _ACEOF
30138
30139 fi
30140 done
30141
30142
30143
30144
30145
30146 for ac_func in powf fmodf strtof round
30147 do
30148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30152   echo $ECHO_N "(cached) $ECHO_C" >&6
30153 else
30154   cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30162 #define $ac_func innocuous_$ac_func
30163
30164 /* System header to define __stub macros and hopefully few prototypes,
30165     which can conflict with char $ac_func (); below.
30166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30167     <limits.h> exists even on freestanding compilers.  */
30168
30169 #ifdef __STDC__
30170 # include <limits.h>
30171 #else
30172 # include <assert.h>
30173 #endif
30174
30175 #undef $ac_func
30176
30177 /* Override any GCC internal prototype to avoid an error.
30178    Use char because int might match the return type of a GCC
30179    builtin and then its argument prototype would still apply.  */
30180 #ifdef __cplusplus
30181 extern "C"
30182 #endif
30183 char $ac_func ();
30184 /* The GNU C library defines this for functions which it implements
30185     to always fail with ENOSYS.  Some functions are actually named
30186     something starting with __ and the normal name is an alias.  */
30187 #if defined __stub_$ac_func || defined __stub___$ac_func
30188 choke me
30189 #endif
30190
30191 int
30192 main ()
30193 {
30194 return $ac_func ();
30195   ;
30196   return 0;
30197 }
30198 _ACEOF
30199 rm -f conftest.$ac_objext conftest$ac_exeext
30200 if { (ac_try="$ac_link"
30201 case "(($ac_try" in
30202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203   *) ac_try_echo=$ac_try;;
30204 esac
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206   (eval "$ac_link") 2>conftest.er1
30207   ac_status=$?
30208   grep -v '^ *+' conftest.er1 >conftest.err
30209   rm -f conftest.er1
30210   cat conftest.err >&5
30211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212   (exit $ac_status); } &&
30213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30214   { (case "(($ac_try" in
30215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216   *) ac_try_echo=$ac_try;;
30217 esac
30218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219   (eval "$ac_try") 2>&5
30220   ac_status=$?
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); }; } &&
30223          { ac_try='test -s conftest$ac_exeext'
30224   { (case "(($ac_try" in
30225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226   *) ac_try_echo=$ac_try;;
30227 esac
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229   (eval "$ac_try") 2>&5
30230   ac_status=$?
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); }; }; then
30233   eval "$as_ac_var=yes"
30234 else
30235   echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.$ac_ext >&5
30237
30238         eval "$as_ac_var=no"
30239 fi
30240
30241 rm -f core conftest.err conftest.$ac_objext \
30242       conftest$ac_exeext conftest.$ac_ext
30243 fi
30244 ac_res=`eval echo '${'$as_ac_var'}'`
30245                { echo "$as_me:$LINENO: result: $ac_res" >&5
30246 echo "${ECHO_T}$ac_res" >&6; }
30247 if test `eval echo '${'$as_ac_var'}'` = yes; then
30248   cat >>confdefs.h <<_ACEOF
30249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30250 _ACEOF
30251
30252 fi
30253 done
30254
30255
30256
30257
30258
30259
30260 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30261 do
30262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30266   echo $ECHO_N "(cached) $ECHO_C" >&6
30267 else
30268   cat >conftest.$ac_ext <<_ACEOF
30269 /* confdefs.h.  */
30270 _ACEOF
30271 cat confdefs.h >>conftest.$ac_ext
30272 cat >>conftest.$ac_ext <<_ACEOF
30273 /* end confdefs.h.  */
30274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30276 #define $ac_func innocuous_$ac_func
30277
30278 /* System header to define __stub macros and hopefully few prototypes,
30279     which can conflict with char $ac_func (); below.
30280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30281     <limits.h> exists even on freestanding compilers.  */
30282
30283 #ifdef __STDC__
30284 # include <limits.h>
30285 #else
30286 # include <assert.h>
30287 #endif
30288
30289 #undef $ac_func
30290
30291 /* Override any GCC internal prototype to avoid an error.
30292    Use char because int might match the return type of a GCC
30293    builtin and then its argument prototype would still apply.  */
30294 #ifdef __cplusplus
30295 extern "C"
30296 #endif
30297 char $ac_func ();
30298 /* The GNU C library defines this for functions which it implements
30299     to always fail with ENOSYS.  Some functions are actually named
30300     something starting with __ and the normal name is an alias.  */
30301 #if defined __stub_$ac_func || defined __stub___$ac_func
30302 choke me
30303 #endif
30304
30305 int
30306 main ()
30307 {
30308 return $ac_func ();
30309   ;
30310   return 0;
30311 }
30312 _ACEOF
30313 rm -f conftest.$ac_objext conftest$ac_exeext
30314 if { (ac_try="$ac_link"
30315 case "(($ac_try" in
30316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317   *) ac_try_echo=$ac_try;;
30318 esac
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320   (eval "$ac_link") 2>conftest.er1
30321   ac_status=$?
30322   grep -v '^ *+' conftest.er1 >conftest.err
30323   rm -f conftest.er1
30324   cat conftest.err >&5
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); } &&
30327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30328   { (case "(($ac_try" in
30329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330   *) ac_try_echo=$ac_try;;
30331 esac
30332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333   (eval "$ac_try") 2>&5
30334   ac_status=$?
30335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336   (exit $ac_status); }; } &&
30337          { ac_try='test -s conftest$ac_exeext'
30338   { (case "(($ac_try" in
30339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340   *) ac_try_echo=$ac_try;;
30341 esac
30342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343   (eval "$ac_try") 2>&5
30344   ac_status=$?
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); }; }; then
30347   eval "$as_ac_var=yes"
30348 else
30349   echo "$as_me: failed program was:" >&5
30350 sed 's/^/| /' conftest.$ac_ext >&5
30351
30352         eval "$as_ac_var=no"
30353 fi
30354
30355 rm -f core conftest.err conftest.$ac_objext \
30356       conftest$ac_exeext conftest.$ac_ext
30357 fi
30358 ac_res=`eval echo '${'$as_ac_var'}'`
30359                { echo "$as_me:$LINENO: result: $ac_res" >&5
30360 echo "${ECHO_T}$ac_res" >&6; }
30361 if test `eval echo '${'$as_ac_var'}'` = yes; then
30362   cat >>confdefs.h <<_ACEOF
30363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30364 _ACEOF
30365
30366 fi
30367 done
30368
30369
30370
30371
30372 for ac_func in isatty mkdtemp mkstemp
30373 do
30374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30378   echo $ECHO_N "(cached) $ECHO_C" >&6
30379 else
30380   cat >conftest.$ac_ext <<_ACEOF
30381 /* confdefs.h.  */
30382 _ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h.  */
30386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30388 #define $ac_func innocuous_$ac_func
30389
30390 /* System header to define __stub macros and hopefully few prototypes,
30391     which can conflict with char $ac_func (); below.
30392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30393     <limits.h> exists even on freestanding compilers.  */
30394
30395 #ifdef __STDC__
30396 # include <limits.h>
30397 #else
30398 # include <assert.h>
30399 #endif
30400
30401 #undef $ac_func
30402
30403 /* Override any GCC internal prototype to avoid an error.
30404    Use char because int might match the return type of a GCC
30405    builtin and then its argument prototype would still apply.  */
30406 #ifdef __cplusplus
30407 extern "C"
30408 #endif
30409 char $ac_func ();
30410 /* The GNU C library defines this for functions which it implements
30411     to always fail with ENOSYS.  Some functions are actually named
30412     something starting with __ and the normal name is an alias.  */
30413 #if defined __stub_$ac_func || defined __stub___$ac_func
30414 choke me
30415 #endif
30416
30417 int
30418 main ()
30419 {
30420 return $ac_func ();
30421   ;
30422   return 0;
30423 }
30424 _ACEOF
30425 rm -f conftest.$ac_objext conftest$ac_exeext
30426 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30433   ac_status=$?
30434   grep -v '^ *+' conftest.er1 >conftest.err
30435   rm -f conftest.er1
30436   cat conftest.err >&5
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); } &&
30439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30440   { (case "(($ac_try" in
30441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442   *) ac_try_echo=$ac_try;;
30443 esac
30444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445   (eval "$ac_try") 2>&5
30446   ac_status=$?
30447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448   (exit $ac_status); }; } &&
30449          { ac_try='test -s conftest$ac_exeext'
30450   { (case "(($ac_try" in
30451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30452   *) ac_try_echo=$ac_try;;
30453 esac
30454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30455   (eval "$ac_try") 2>&5
30456   ac_status=$?
30457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458   (exit $ac_status); }; }; then
30459   eval "$as_ac_var=yes"
30460 else
30461   echo "$as_me: failed program was:" >&5
30462 sed 's/^/| /' conftest.$ac_ext >&5
30463
30464         eval "$as_ac_var=no"
30465 fi
30466
30467 rm -f core conftest.err conftest.$ac_objext \
30468       conftest$ac_exeext conftest.$ac_ext
30469 fi
30470 ac_res=`eval echo '${'$as_ac_var'}'`
30471                { echo "$as_me:$LINENO: result: $ac_res" >&5
30472 echo "${ECHO_T}$ac_res" >&6; }
30473 if test `eval echo '${'$as_ac_var'}'` = yes; then
30474   cat >>confdefs.h <<_ACEOF
30475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30476 _ACEOF
30477
30478 fi
30479 done
30480
30481
30482
30483
30484
30485
30486
30487
30488 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30489 do
30490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30494   echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496   cat >conftest.$ac_ext <<_ACEOF
30497 /* confdefs.h.  */
30498 _ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h.  */
30502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30504 #define $ac_func innocuous_$ac_func
30505
30506 /* System header to define __stub macros and hopefully few prototypes,
30507     which can conflict with char $ac_func (); below.
30508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30509     <limits.h> exists even on freestanding compilers.  */
30510
30511 #ifdef __STDC__
30512 # include <limits.h>
30513 #else
30514 # include <assert.h>
30515 #endif
30516
30517 #undef $ac_func
30518
30519 /* Override any GCC internal prototype to avoid an error.
30520    Use char because int might match the return type of a GCC
30521    builtin and then its argument prototype would still apply.  */
30522 #ifdef __cplusplus
30523 extern "C"
30524 #endif
30525 char $ac_func ();
30526 /* The GNU C library defines this for functions which it implements
30527     to always fail with ENOSYS.  Some functions are actually named
30528     something starting with __ and the normal name is an alias.  */
30529 #if defined __stub_$ac_func || defined __stub___$ac_func
30530 choke me
30531 #endif
30532
30533 int
30534 main ()
30535 {
30536 return $ac_func ();
30537   ;
30538   return 0;
30539 }
30540 _ACEOF
30541 rm -f conftest.$ac_objext conftest$ac_exeext
30542 if { (ac_try="$ac_link"
30543 case "(($ac_try" in
30544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545   *) ac_try_echo=$ac_try;;
30546 esac
30547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30548   (eval "$ac_link") 2>conftest.er1
30549   ac_status=$?
30550   grep -v '^ *+' conftest.er1 >conftest.err
30551   rm -f conftest.er1
30552   cat conftest.err >&5
30553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554   (exit $ac_status); } &&
30555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30556   { (case "(($ac_try" in
30557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30558   *) ac_try_echo=$ac_try;;
30559 esac
30560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30561   (eval "$ac_try") 2>&5
30562   ac_status=$?
30563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564   (exit $ac_status); }; } &&
30565          { ac_try='test -s conftest$ac_exeext'
30566   { (case "(($ac_try" in
30567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30568   *) ac_try_echo=$ac_try;;
30569 esac
30570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30571   (eval "$ac_try") 2>&5
30572   ac_status=$?
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); }; }; then
30575   eval "$as_ac_var=yes"
30576 else
30577   echo "$as_me: failed program was:" >&5
30578 sed 's/^/| /' conftest.$ac_ext >&5
30579
30580         eval "$as_ac_var=no"
30581 fi
30582
30583 rm -f core conftest.err conftest.$ac_objext \
30584       conftest$ac_exeext conftest.$ac_ext
30585 fi
30586 ac_res=`eval echo '${'$as_ac_var'}'`
30587                { echo "$as_me:$LINENO: result: $ac_res" >&5
30588 echo "${ECHO_T}$ac_res" >&6; }
30589 if test `eval echo '${'$as_ac_var'}'` = yes; then
30590   cat >>confdefs.h <<_ACEOF
30591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30592 _ACEOF
30593
30594 fi
30595 done
30596
30597
30598
30599
30600
30601 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30602 do
30603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609   cat >conftest.$ac_ext <<_ACEOF
30610 /* confdefs.h.  */
30611 _ACEOF
30612 cat confdefs.h >>conftest.$ac_ext
30613 cat >>conftest.$ac_ext <<_ACEOF
30614 /* end confdefs.h.  */
30615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30617 #define $ac_func innocuous_$ac_func
30618
30619 /* System header to define __stub macros and hopefully few prototypes,
30620     which can conflict with char $ac_func (); below.
30621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30622     <limits.h> exists even on freestanding compilers.  */
30623
30624 #ifdef __STDC__
30625 # include <limits.h>
30626 #else
30627 # include <assert.h>
30628 #endif
30629
30630 #undef $ac_func
30631
30632 /* Override any GCC internal prototype to avoid an error.
30633    Use char because int might match the return type of a GCC
30634    builtin and then its argument prototype would still apply.  */
30635 #ifdef __cplusplus
30636 extern "C"
30637 #endif
30638 char $ac_func ();
30639 /* The GNU C library defines this for functions which it implements
30640     to always fail with ENOSYS.  Some functions are actually named
30641     something starting with __ and the normal name is an alias.  */
30642 #if defined __stub_$ac_func || defined __stub___$ac_func
30643 choke me
30644 #endif
30645
30646 int
30647 main ()
30648 {
30649 return $ac_func ();
30650   ;
30651   return 0;
30652 }
30653 _ACEOF
30654 rm -f conftest.$ac_objext conftest$ac_exeext
30655 if { (ac_try="$ac_link"
30656 case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661   (eval "$ac_link") 2>conftest.er1
30662   ac_status=$?
30663   grep -v '^ *+' conftest.er1 >conftest.err
30664   rm -f conftest.er1
30665   cat conftest.err >&5
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); } &&
30668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30669   { (case "(($ac_try" in
30670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671   *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674   (eval "$ac_try") 2>&5
30675   ac_status=$?
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); }; } &&
30678          { ac_try='test -s conftest$ac_exeext'
30679   { (case "(($ac_try" in
30680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681   *) ac_try_echo=$ac_try;;
30682 esac
30683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684   (eval "$ac_try") 2>&5
30685   ac_status=$?
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); }; }; then
30688   eval "$as_ac_var=yes"
30689 else
30690   echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30692
30693         eval "$as_ac_var=no"
30694 fi
30695
30696 rm -f core conftest.err conftest.$ac_objext \
30697       conftest$ac_exeext conftest.$ac_ext
30698 fi
30699 ac_res=`eval echo '${'$as_ac_var'}'`
30700                { echo "$as_me:$LINENO: result: $ac_res" >&5
30701 echo "${ECHO_T}$ac_res" >&6; }
30702 if test `eval echo '${'$as_ac_var'}'` = yes; then
30703   cat >>confdefs.h <<_ACEOF
30704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30705 _ACEOF
30706
30707 fi
30708 done
30709
30710
30711
30712
30713
30714 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30715 do
30716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30720   echo $ECHO_N "(cached) $ECHO_C" >&6
30721 else
30722   cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30730 #define $ac_func innocuous_$ac_func
30731
30732 /* System header to define __stub macros and hopefully few prototypes,
30733     which can conflict with char $ac_func (); below.
30734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30735     <limits.h> exists even on freestanding compilers.  */
30736
30737 #ifdef __STDC__
30738 # include <limits.h>
30739 #else
30740 # include <assert.h>
30741 #endif
30742
30743 #undef $ac_func
30744
30745 /* Override any GCC internal prototype to avoid an error.
30746    Use char because int might match the return type of a GCC
30747    builtin and then its argument prototype would still apply.  */
30748 #ifdef __cplusplus
30749 extern "C"
30750 #endif
30751 char $ac_func ();
30752 /* The GNU C library defines this for functions which it implements
30753     to always fail with ENOSYS.  Some functions are actually named
30754     something starting with __ and the normal name is an alias.  */
30755 #if defined __stub_$ac_func || defined __stub___$ac_func
30756 choke me
30757 #endif
30758
30759 int
30760 main ()
30761 {
30762 return $ac_func ();
30763   ;
30764   return 0;
30765 }
30766 _ACEOF
30767 rm -f conftest.$ac_objext conftest$ac_exeext
30768 if { (ac_try="$ac_link"
30769 case "(($ac_try" in
30770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771   *) ac_try_echo=$ac_try;;
30772 esac
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774   (eval "$ac_link") 2>conftest.er1
30775   ac_status=$?
30776   grep -v '^ *+' conftest.er1 >conftest.err
30777   rm -f conftest.er1
30778   cat conftest.err >&5
30779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780   (exit $ac_status); } &&
30781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30782   { (case "(($ac_try" in
30783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784   *) ac_try_echo=$ac_try;;
30785 esac
30786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30787   (eval "$ac_try") 2>&5
30788   ac_status=$?
30789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790   (exit $ac_status); }; } &&
30791          { ac_try='test -s conftest$ac_exeext'
30792   { (case "(($ac_try" in
30793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794   *) ac_try_echo=$ac_try;;
30795 esac
30796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30797   (eval "$ac_try") 2>&5
30798   ac_status=$?
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); }; }; then
30801   eval "$as_ac_var=yes"
30802 else
30803   echo "$as_me: failed program was:" >&5
30804 sed 's/^/| /' conftest.$ac_ext >&5
30805
30806         eval "$as_ac_var=no"
30807 fi
30808
30809 rm -f core conftest.err conftest.$ac_objext \
30810       conftest$ac_exeext conftest.$ac_ext
30811 fi
30812 ac_res=`eval echo '${'$as_ac_var'}'`
30813                { echo "$as_me:$LINENO: result: $ac_res" >&5
30814 echo "${ECHO_T}$ac_res" >&6; }
30815 if test `eval echo '${'$as_ac_var'}'` = yes; then
30816   cat >>confdefs.h <<_ACEOF
30817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30818 _ACEOF
30819
30820 fi
30821 done
30822
30823 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30824 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30825 if test "${llvm_cv_c_printf_a+set}" = set; then
30826   echo $ECHO_N "(cached) $ECHO_C" >&6
30827 else
30828   ac_ext=c
30829 ac_cpp='$CPP $CPPFLAGS'
30830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30833
30834  if test "$cross_compiling" = yes; then
30835   llvmac_cv_c_printf_a=no
30836 else
30837   cat >conftest.$ac_ext <<_ACEOF
30838
30839   /* confdefs.h.  */
30840 _ACEOF
30841 cat confdefs.h >>conftest.$ac_ext
30842 cat >>conftest.$ac_ext <<_ACEOF
30843 /* end confdefs.h.  */
30844
30845 #include <stdio.h>
30846 #include <stdlib.h>
30847
30848 int
30849 main ()
30850 {
30851
30852 volatile double A, B;
30853 char Buffer[100];
30854 A = 1;
30855 A /= 10.0;
30856 sprintf(Buffer, "%a", A);
30857 B = atof(Buffer);
30858 if (A != B)
30859   return (1);
30860 if (A != 0x1.999999999999ap-4)
30861   return (1);
30862 return (0);
30863   ;
30864   return 0;
30865 }
30866 _ACEOF
30867 rm -f conftest$ac_exeext
30868 if { (ac_try="$ac_link"
30869 case "(($ac_try" in
30870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871   *) ac_try_echo=$ac_try;;
30872 esac
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874   (eval "$ac_link") 2>&5
30875   ac_status=$?
30876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30878   { (case "(($ac_try" in
30879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880   *) ac_try_echo=$ac_try;;
30881 esac
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883   (eval "$ac_try") 2>&5
30884   ac_status=$?
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); }; }; then
30887   llvm_cv_c_printf_a=yes
30888 else
30889   echo "$as_me: program exited with status $ac_status" >&5
30890 echo "$as_me: failed program was:" >&5
30891 sed 's/^/| /' conftest.$ac_ext >&5
30892
30893 ( exit $ac_status )
30894 llvmac_cv_c_printf_a=no
30895 fi
30896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30897 fi
30898
30899
30900  ac_ext=c
30901 ac_cpp='$CPP $CPPFLAGS'
30902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30905
30906 fi
30907 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30908 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30909  if test "$llvm_cv_c_printf_a" = "yes"; then
30910
30911 cat >>confdefs.h <<\_ACEOF
30912 #define HAVE_PRINTF_A 1
30913 _ACEOF
30914
30915  fi
30916
30917 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30918 # for constant arguments.  Useless!
30919 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30920 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30921 if test "${ac_cv_working_alloca_h+set}" = set; then
30922   echo $ECHO_N "(cached) $ECHO_C" >&6
30923 else
30924   cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930 #include <alloca.h>
30931 int
30932 main ()
30933 {
30934 char *p = (char *) alloca (2 * sizeof (int));
30935                           if (p) return 0;
30936   ;
30937   return 0;
30938 }
30939 _ACEOF
30940 rm -f conftest.$ac_objext conftest$ac_exeext
30941 if { (ac_try="$ac_link"
30942 case "(($ac_try" in
30943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944   *) ac_try_echo=$ac_try;;
30945 esac
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947   (eval "$ac_link") 2>conftest.er1
30948   ac_status=$?
30949   grep -v '^ *+' conftest.er1 >conftest.err
30950   rm -f conftest.er1
30951   cat conftest.err >&5
30952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953   (exit $ac_status); } &&
30954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30955   { (case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_try") 2>&5
30961   ac_status=$?
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); }; } &&
30964          { ac_try='test -s conftest$ac_exeext'
30965   { (case "(($ac_try" in
30966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967   *) ac_try_echo=$ac_try;;
30968 esac
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970   (eval "$ac_try") 2>&5
30971   ac_status=$?
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); }; }; then
30974   ac_cv_working_alloca_h=yes
30975 else
30976   echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30978
30979         ac_cv_working_alloca_h=no
30980 fi
30981
30982 rm -f core conftest.err conftest.$ac_objext \
30983       conftest$ac_exeext conftest.$ac_ext
30984 fi
30985 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30986 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30987 if test $ac_cv_working_alloca_h = yes; then
30988
30989 cat >>confdefs.h <<\_ACEOF
30990 #define HAVE_ALLOCA_H 1
30991 _ACEOF
30992
30993 fi
30994
30995 { echo "$as_me:$LINENO: checking for alloca" >&5
30996 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30997 if test "${ac_cv_func_alloca_works+set}" = set; then
30998   echo $ECHO_N "(cached) $ECHO_C" >&6
30999 else
31000   cat >conftest.$ac_ext <<_ACEOF
31001 /* confdefs.h.  */
31002 _ACEOF
31003 cat confdefs.h >>conftest.$ac_ext
31004 cat >>conftest.$ac_ext <<_ACEOF
31005 /* end confdefs.h.  */
31006 #ifdef __GNUC__
31007 # define alloca __builtin_alloca
31008 #else
31009 # ifdef _MSC_VER
31010 #  include <malloc.h>
31011 #  define alloca _alloca
31012 # else
31013 #  if HAVE_ALLOCA_H
31014 #   include <alloca.h>
31015 #  else
31016 #   ifdef _AIX
31017  #pragma alloca
31018 #   else
31019 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31020 char *alloca ();
31021 #    endif
31022 #   endif
31023 #  endif
31024 # endif
31025 #endif
31026
31027 int
31028 main ()
31029 {
31030 char *p = (char *) alloca (1);
31031                                     if (p) return 0;
31032   ;
31033   return 0;
31034 }
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (ac_try="$ac_link"
31038 case "(($ac_try" in
31039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040   *) ac_try_echo=$ac_try;;
31041 esac
31042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043   (eval "$ac_link") 2>conftest.er1
31044   ac_status=$?
31045   grep -v '^ *+' conftest.er1 >conftest.err
31046   rm -f conftest.er1
31047   cat conftest.err >&5
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); } &&
31050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31051   { (case "(($ac_try" in
31052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053   *) ac_try_echo=$ac_try;;
31054 esac
31055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31056   (eval "$ac_try") 2>&5
31057   ac_status=$?
31058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059   (exit $ac_status); }; } &&
31060          { ac_try='test -s conftest$ac_exeext'
31061   { (case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_try") 2>&5
31067   ac_status=$?
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); }; }; then
31070   ac_cv_func_alloca_works=yes
31071 else
31072   echo "$as_me: failed program was:" >&5
31073 sed 's/^/| /' conftest.$ac_ext >&5
31074
31075         ac_cv_func_alloca_works=no
31076 fi
31077
31078 rm -f core conftest.err conftest.$ac_objext \
31079       conftest$ac_exeext conftest.$ac_ext
31080 fi
31081 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31082 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31083
31084 if test $ac_cv_func_alloca_works = yes; then
31085
31086 cat >>confdefs.h <<\_ACEOF
31087 #define HAVE_ALLOCA 1
31088 _ACEOF
31089
31090 else
31091   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31092 # that cause trouble.  Some versions do not even contain alloca or
31093 # contain a buggy version.  If you still want to use their alloca,
31094 # use ar to extract alloca.o from them instead of compiling alloca.c.
31095
31096 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31097
31098 cat >>confdefs.h <<\_ACEOF
31099 #define C_ALLOCA 1
31100 _ACEOF
31101
31102
31103 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31104 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31105 if test "${ac_cv_os_cray+set}" = set; then
31106   echo $ECHO_N "(cached) $ECHO_C" >&6
31107 else
31108   cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114 #if defined CRAY && ! defined CRAY2
31115 webecray
31116 #else
31117 wenotbecray
31118 #endif
31119
31120 _ACEOF
31121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31122   $EGREP "webecray" >/dev/null 2>&1; then
31123   ac_cv_os_cray=yes
31124 else
31125   ac_cv_os_cray=no
31126 fi
31127 rm -f conftest*
31128
31129 fi
31130 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31131 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31132 if test $ac_cv_os_cray = yes; then
31133   for ac_func in _getb67 GETB67 getb67; do
31134     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31138   echo $ECHO_N "(cached) $ECHO_C" >&6
31139 else
31140   cat >conftest.$ac_ext <<_ACEOF
31141 /* confdefs.h.  */
31142 _ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h.  */
31146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31148 #define $ac_func innocuous_$ac_func
31149
31150 /* System header to define __stub macros and hopefully few prototypes,
31151     which can conflict with char $ac_func (); below.
31152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31153     <limits.h> exists even on freestanding compilers.  */
31154
31155 #ifdef __STDC__
31156 # include <limits.h>
31157 #else
31158 # include <assert.h>
31159 #endif
31160
31161 #undef $ac_func
31162
31163 /* Override any GCC internal prototype to avoid an error.
31164    Use char because int might match the return type of a GCC
31165    builtin and then its argument prototype would still apply.  */
31166 #ifdef __cplusplus
31167 extern "C"
31168 #endif
31169 char $ac_func ();
31170 /* The GNU C library defines this for functions which it implements
31171     to always fail with ENOSYS.  Some functions are actually named
31172     something starting with __ and the normal name is an alias.  */
31173 #if defined __stub_$ac_func || defined __stub___$ac_func
31174 choke me
31175 #endif
31176
31177 int
31178 main ()
31179 {
31180 return $ac_func ();
31181   ;
31182   return 0;
31183 }
31184 _ACEOF
31185 rm -f conftest.$ac_objext conftest$ac_exeext
31186 if { (ac_try="$ac_link"
31187 case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_link") 2>conftest.er1
31193   ac_status=$?
31194   grep -v '^ *+' conftest.er1 >conftest.err
31195   rm -f conftest.er1
31196   cat conftest.err >&5
31197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198   (exit $ac_status); } &&
31199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31200   { (case "(($ac_try" in
31201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202   *) ac_try_echo=$ac_try;;
31203 esac
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205   (eval "$ac_try") 2>&5
31206   ac_status=$?
31207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208   (exit $ac_status); }; } &&
31209          { ac_try='test -s conftest$ac_exeext'
31210   { (case "(($ac_try" in
31211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212   *) ac_try_echo=$ac_try;;
31213 esac
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215   (eval "$ac_try") 2>&5
31216   ac_status=$?
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); }; }; then
31219   eval "$as_ac_var=yes"
31220 else
31221   echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31223
31224         eval "$as_ac_var=no"
31225 fi
31226
31227 rm -f core conftest.err conftest.$ac_objext \
31228       conftest$ac_exeext conftest.$ac_ext
31229 fi
31230 ac_res=`eval echo '${'$as_ac_var'}'`
31231                { echo "$as_me:$LINENO: result: $ac_res" >&5
31232 echo "${ECHO_T}$ac_res" >&6; }
31233 if test `eval echo '${'$as_ac_var'}'` = yes; then
31234
31235 cat >>confdefs.h <<_ACEOF
31236 #define CRAY_STACKSEG_END $ac_func
31237 _ACEOF
31238
31239     break
31240 fi
31241
31242   done
31243 fi
31244
31245 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31246 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31247 if test "${ac_cv_c_stack_direction+set}" = set; then
31248   echo $ECHO_N "(cached) $ECHO_C" >&6
31249 else
31250   if test "$cross_compiling" = yes; then
31251   ac_cv_c_stack_direction=0
31252 else
31253   cat >conftest.$ac_ext <<_ACEOF
31254 /* confdefs.h.  */
31255 _ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h.  */
31259 $ac_includes_default
31260 int
31261 find_stack_direction ()
31262 {
31263   static char *addr = 0;
31264   auto char dummy;
31265   if (addr == 0)
31266     {
31267       addr = &dummy;
31268       return find_stack_direction ();
31269     }
31270   else
31271     return (&dummy > addr) ? 1 : -1;
31272 }
31273
31274 int
31275 main ()
31276 {
31277   return find_stack_direction () < 0;
31278 }
31279 _ACEOF
31280 rm -f conftest$ac_exeext
31281 if { (ac_try="$ac_link"
31282 case "(($ac_try" in
31283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284   *) ac_try_echo=$ac_try;;
31285 esac
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287   (eval "$ac_link") 2>&5
31288   ac_status=$?
31289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31291   { (case "(($ac_try" in
31292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293   *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296   (eval "$ac_try") 2>&5
31297   ac_status=$?
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); }; }; then
31300   ac_cv_c_stack_direction=1
31301 else
31302   echo "$as_me: program exited with status $ac_status" >&5
31303 echo "$as_me: failed program was:" >&5
31304 sed 's/^/| /' conftest.$ac_ext >&5
31305
31306 ( exit $ac_status )
31307 ac_cv_c_stack_direction=-1
31308 fi
31309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31310 fi
31311
31312
31313 fi
31314 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31315 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31316
31317 cat >>confdefs.h <<_ACEOF
31318 #define STACK_DIRECTION $ac_cv_c_stack_direction
31319 _ACEOF
31320
31321
31322 fi
31323
31324
31325 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31326 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31327 if test "${ac_cv_func_rand48+set}" = set; then
31328   echo $ECHO_N "(cached) $ECHO_C" >&6
31329 else
31330   ac_ext=cpp
31331 ac_cpp='$CXXCPP $CPPFLAGS'
31332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31335
31336    cat >conftest.$ac_ext <<_ACEOF
31337 /* confdefs.h.  */
31338 _ACEOF
31339 cat confdefs.h >>conftest.$ac_ext
31340 cat >>conftest.$ac_ext <<_ACEOF
31341 /* end confdefs.h.  */
31342 #include <stdlib.h>
31343 int
31344 main ()
31345 {
31346 srand48(0);lrand48();drand48();
31347   ;
31348   return 0;
31349 }
31350 _ACEOF
31351 rm -f conftest.$ac_objext
31352 if { (ac_try="$ac_compile"
31353 case "(($ac_try" in
31354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355   *) ac_try_echo=$ac_try;;
31356 esac
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358   (eval "$ac_compile") 2>conftest.er1
31359   ac_status=$?
31360   grep -v '^ *+' conftest.er1 >conftest.err
31361   rm -f conftest.er1
31362   cat conftest.err >&5
31363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364   (exit $ac_status); } &&
31365          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31366   { (case "(($ac_try" in
31367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368   *) ac_try_echo=$ac_try;;
31369 esac
31370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371   (eval "$ac_try") 2>&5
31372   ac_status=$?
31373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374   (exit $ac_status); }; } &&
31375          { ac_try='test -s conftest.$ac_objext'
31376   { (case "(($ac_try" in
31377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378   *) ac_try_echo=$ac_try;;
31379 esac
31380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381   (eval "$ac_try") 2>&5
31382   ac_status=$?
31383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384   (exit $ac_status); }; }; then
31385   ac_cv_func_rand48=yes
31386 else
31387   echo "$as_me: failed program was:" >&5
31388 sed 's/^/| /' conftest.$ac_ext >&5
31389
31390         ac_cv_func_rand48=no
31391 fi
31392
31393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31394   ac_ext=c
31395 ac_cpp='$CPP $CPPFLAGS'
31396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31399
31400 fi
31401 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31402 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31403
31404 if test "$ac_cv_func_rand48" = "yes" ; then
31405
31406 cat >>confdefs.h <<\_ACEOF
31407 #define HAVE_RAND48 1
31408 _ACEOF
31409
31410 fi
31411
31412
31413 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31414 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31415 if test "${ac_cv_cxx_namespaces+set}" = set; then
31416   echo $ECHO_N "(cached) $ECHO_C" >&6
31417 else
31418   ac_ext=cpp
31419 ac_cpp='$CXXCPP $CPPFLAGS'
31420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31423
31424  cat >conftest.$ac_ext <<_ACEOF
31425 /* confdefs.h.  */
31426 _ACEOF
31427 cat confdefs.h >>conftest.$ac_ext
31428 cat >>conftest.$ac_ext <<_ACEOF
31429 /* end confdefs.h.  */
31430 namespace Outer { namespace Inner { int i = 0; }}
31431 int
31432 main ()
31433 {
31434 using namespace Outer::Inner; return i;
31435   ;
31436   return 0;
31437 }
31438 _ACEOF
31439 rm -f conftest.$ac_objext
31440 if { (ac_try="$ac_compile"
31441 case "(($ac_try" in
31442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443   *) ac_try_echo=$ac_try;;
31444 esac
31445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446   (eval "$ac_compile") 2>conftest.er1
31447   ac_status=$?
31448   grep -v '^ *+' conftest.er1 >conftest.err
31449   rm -f conftest.er1
31450   cat conftest.err >&5
31451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452   (exit $ac_status); } &&
31453          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31454   { (case "(($ac_try" in
31455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456   *) ac_try_echo=$ac_try;;
31457 esac
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459   (eval "$ac_try") 2>&5
31460   ac_status=$?
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); }; } &&
31463          { ac_try='test -s conftest.$ac_objext'
31464   { (case "(($ac_try" in
31465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466   *) ac_try_echo=$ac_try;;
31467 esac
31468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469   (eval "$ac_try") 2>&5
31470   ac_status=$?
31471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472   (exit $ac_status); }; }; then
31473   ac_cv_cxx_namespaces=yes
31474 else
31475   echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31477
31478         ac_cv_cxx_namespaces=no
31479 fi
31480
31481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31482  ac_ext=c
31483 ac_cpp='$CPP $CPPFLAGS'
31484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31487
31488
31489 fi
31490 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31491 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31492 if test "$ac_cv_cxx_namespaces" = yes; then
31493
31494 cat >>confdefs.h <<\_ACEOF
31495 #define HAVE_NAMESPACES
31496 _ACEOF
31497
31498 fi
31499
31500 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31501 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31502 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31503   echo $ECHO_N "(cached) $ECHO_C" >&6
31504 else
31505
31506   ac_ext=cpp
31507 ac_cpp='$CXXCPP $CPPFLAGS'
31508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31511
31512   cat >conftest.$ac_ext <<_ACEOF
31513 /* confdefs.h.  */
31514 _ACEOF
31515 cat confdefs.h >>conftest.$ac_ext
31516 cat >>conftest.$ac_ext <<_ACEOF
31517 /* end confdefs.h.  */
31518 #include <ext/hash_map>
31519 #ifdef HAVE_NAMESPACES
31520 using namespace std;
31521 #endif
31522 int
31523 main ()
31524 {
31525 hash_map<int, int> t;
31526   ;
31527   return 0;
31528 }
31529 _ACEOF
31530 rm -f conftest.$ac_objext
31531 if { (ac_try="$ac_compile"
31532 case "(($ac_try" in
31533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534   *) ac_try_echo=$ac_try;;
31535 esac
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537   (eval "$ac_compile") 2>conftest.er1
31538   ac_status=$?
31539   grep -v '^ *+' conftest.er1 >conftest.err
31540   rm -f conftest.er1
31541   cat conftest.err >&5
31542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543   (exit $ac_status); } &&
31544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31545   { (case "(($ac_try" in
31546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547   *) ac_try_echo=$ac_try;;
31548 esac
31549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550   (eval "$ac_try") 2>&5
31551   ac_status=$?
31552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553   (exit $ac_status); }; } &&
31554          { ac_try='test -s conftest.$ac_objext'
31555   { (case "(($ac_try" in
31556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557   *) ac_try_echo=$ac_try;;
31558 esac
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560   (eval "$ac_try") 2>&5
31561   ac_status=$?
31562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563   (exit $ac_status); }; }; then
31564   ac_cv_cxx_have_std_ext_hash_map=yes
31565 else
31566   echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31568
31569         ac_cv_cxx_have_std_ext_hash_map=no
31570 fi
31571
31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31573   ac_ext=c
31574 ac_cpp='$CPP $CPPFLAGS'
31575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31578
31579 fi
31580 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31581 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31582  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31583  then
31584
31585 cat >>confdefs.h <<\_ACEOF
31586 #define HAVE_STD_EXT_HASH_MAP 1
31587 _ACEOF
31588
31589  else
31590
31591 cat >>confdefs.h <<\_ACEOF
31592 #define HAVE_STD_EXT_HASH_MAP 0
31593 _ACEOF
31594
31595  fi
31596
31597  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31598 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31599 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31600   echo $ECHO_N "(cached) $ECHO_C" >&6
31601 else
31602
31603   ac_ext=cpp
31604 ac_cpp='$CXXCPP $CPPFLAGS'
31605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31608
31609   cat >conftest.$ac_ext <<_ACEOF
31610 /* confdefs.h.  */
31611 _ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h.  */
31615 #include <ext/hash_map>
31616 #ifdef HAVE_NAMESPACES
31617 using namespace __gnu_cxx;
31618 #endif
31619 int
31620 main ()
31621 {
31622 hash_map<int,int> t;
31623   ;
31624   return 0;
31625 }
31626 _ACEOF
31627 rm -f conftest.$ac_objext
31628 if { (ac_try="$ac_compile"
31629 case "(($ac_try" in
31630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631   *) ac_try_echo=$ac_try;;
31632 esac
31633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634   (eval "$ac_compile") 2>conftest.er1
31635   ac_status=$?
31636   grep -v '^ *+' conftest.er1 >conftest.err
31637   rm -f conftest.er1
31638   cat conftest.err >&5
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); } &&
31641          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31642   { (case "(($ac_try" in
31643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644   *) ac_try_echo=$ac_try;;
31645 esac
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647   (eval "$ac_try") 2>&5
31648   ac_status=$?
31649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650   (exit $ac_status); }; } &&
31651          { ac_try='test -s conftest.$ac_objext'
31652   { (case "(($ac_try" in
31653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654   *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657   (eval "$ac_try") 2>&5
31658   ac_status=$?
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); }; }; then
31661   ac_cv_cxx_have_gnu_ext_hash_map=yes
31662 else
31663   echo "$as_me: failed program was:" >&5
31664 sed 's/^/| /' conftest.$ac_ext >&5
31665
31666         ac_cv_cxx_have_gnu_ext_hash_map=no
31667 fi
31668
31669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31670   ac_ext=c
31671 ac_cpp='$CPP $CPPFLAGS'
31672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31675
31676 fi
31677 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31678 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31679  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31680  then
31681
31682 cat >>confdefs.h <<\_ACEOF
31683 #define HAVE_GNU_EXT_HASH_MAP 1
31684 _ACEOF
31685
31686  else
31687
31688 cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_GNU_EXT_HASH_MAP 0
31690 _ACEOF
31691
31692  fi
31693
31694  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31695 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31696 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31697   echo $ECHO_N "(cached) $ECHO_C" >&6
31698 else
31699
31700   ac_ext=cpp
31701 ac_cpp='$CXXCPP $CPPFLAGS'
31702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31705
31706   cat >conftest.$ac_ext <<_ACEOF
31707 /* confdefs.h.  */
31708 _ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h.  */
31712 #include <hash_map>
31713 int
31714 main ()
31715 {
31716 hash_map<int,int> t;
31717   ;
31718   return 0;
31719 }
31720 _ACEOF
31721 rm -f conftest.$ac_objext
31722 if { (ac_try="$ac_compile"
31723 case "(($ac_try" in
31724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725   *) ac_try_echo=$ac_try;;
31726 esac
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728   (eval "$ac_compile") 2>conftest.er1
31729   ac_status=$?
31730   grep -v '^ *+' conftest.er1 >conftest.err
31731   rm -f conftest.er1
31732   cat conftest.err >&5
31733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734   (exit $ac_status); } &&
31735          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31736   { (case "(($ac_try" in
31737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738   *) ac_try_echo=$ac_try;;
31739 esac
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741   (eval "$ac_try") 2>&5
31742   ac_status=$?
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); }; } &&
31745          { ac_try='test -s conftest.$ac_objext'
31746   { (case "(($ac_try" in
31747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748   *) ac_try_echo=$ac_try;;
31749 esac
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751   (eval "$ac_try") 2>&5
31752   ac_status=$?
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); }; }; then
31755   ac_cv_cxx_have_global_hash_map=yes
31756 else
31757   echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31759
31760         ac_cv_cxx_have_global_hash_map=no
31761 fi
31762
31763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31764   ac_ext=c
31765 ac_cpp='$CPP $CPPFLAGS'
31766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31769
31770 fi
31771 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31772 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31773  if test "$ac_cv_cxx_have_global_hash_map" = yes
31774  then
31775
31776 cat >>confdefs.h <<\_ACEOF
31777 #define HAVE_GLOBAL_HASH_MAP 1
31778 _ACEOF
31779
31780  else
31781
31782 cat >>confdefs.h <<\_ACEOF
31783 #define HAVE_GLOBAL_HASH_MAP 0
31784 _ACEOF
31785
31786  fi
31787
31788 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31789 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31790 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31791   echo $ECHO_N "(cached) $ECHO_C" >&6
31792 else
31793
31794   ac_ext=cpp
31795 ac_cpp='$CXXCPP $CPPFLAGS'
31796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31799
31800   cat >conftest.$ac_ext <<_ACEOF
31801 /* confdefs.h.  */
31802 _ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h.  */
31806 #include <ext/hash_set>
31807 #ifdef HAVE_NAMESPACES
31808 using namespace std;
31809 #endif
31810 int
31811 main ()
31812 {
31813 hash_set<int> t;
31814   ;
31815   return 0;
31816 }
31817 _ACEOF
31818 rm -f conftest.$ac_objext
31819 if { (ac_try="$ac_compile"
31820 case "(($ac_try" in
31821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822   *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825   (eval "$ac_compile") 2>conftest.er1
31826   ac_status=$?
31827   grep -v '^ *+' conftest.er1 >conftest.err
31828   rm -f conftest.er1
31829   cat conftest.err >&5
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); } &&
31832          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31833   { (case "(($ac_try" in
31834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835   *) ac_try_echo=$ac_try;;
31836 esac
31837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838   (eval "$ac_try") 2>&5
31839   ac_status=$?
31840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841   (exit $ac_status); }; } &&
31842          { ac_try='test -s conftest.$ac_objext'
31843   { (case "(($ac_try" in
31844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845   *) ac_try_echo=$ac_try;;
31846 esac
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848   (eval "$ac_try") 2>&5
31849   ac_status=$?
31850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851   (exit $ac_status); }; }; then
31852   ac_cv_cxx_have_std_ext_hash_set=yes
31853 else
31854   echo "$as_me: failed program was:" >&5
31855 sed 's/^/| /' conftest.$ac_ext >&5
31856
31857         ac_cv_cxx_have_std_ext_hash_set=no
31858 fi
31859
31860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31861   ac_ext=c
31862 ac_cpp='$CPP $CPPFLAGS'
31863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31866
31867 fi
31868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31869 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31870  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31871  then
31872
31873 cat >>confdefs.h <<\_ACEOF
31874 #define HAVE_STD_EXT_HASH_SET 1
31875 _ACEOF
31876
31877  else
31878
31879 cat >>confdefs.h <<\_ACEOF
31880 #define HAVE_STD_EXT_HASH_SET 0
31881 _ACEOF
31882
31883  fi
31884
31885  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31886 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31887 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31888   echo $ECHO_N "(cached) $ECHO_C" >&6
31889 else
31890
31891   ac_ext=cpp
31892 ac_cpp='$CXXCPP $CPPFLAGS'
31893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31896
31897   cat >conftest.$ac_ext <<_ACEOF
31898 /* confdefs.h.  */
31899 _ACEOF
31900 cat confdefs.h >>conftest.$ac_ext
31901 cat >>conftest.$ac_ext <<_ACEOF
31902 /* end confdefs.h.  */
31903 #include <ext/hash_set>
31904 #ifdef HAVE_NAMESPACES
31905 using namespace __gnu_cxx;
31906 #endif
31907 int
31908 main ()
31909 {
31910 hash_set<int> t;
31911   ;
31912   return 0;
31913 }
31914 _ACEOF
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919   *) ac_try_echo=$ac_try;;
31920 esac
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922   (eval "$ac_compile") 2>conftest.er1
31923   ac_status=$?
31924   grep -v '^ *+' conftest.er1 >conftest.err
31925   rm -f conftest.er1
31926   cat conftest.err >&5
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); } &&
31929          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31930   { (case "(($ac_try" in
31931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932   *) ac_try_echo=$ac_try;;
31933 esac
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935   (eval "$ac_try") 2>&5
31936   ac_status=$?
31937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938   (exit $ac_status); }; } &&
31939          { ac_try='test -s conftest.$ac_objext'
31940   { (case "(($ac_try" in
31941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31942   *) ac_try_echo=$ac_try;;
31943 esac
31944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945   (eval "$ac_try") 2>&5
31946   ac_status=$?
31947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948   (exit $ac_status); }; }; then
31949   ac_cv_cxx_have_gnu_ext_hash_set=yes
31950 else
31951   echo "$as_me: failed program was:" >&5
31952 sed 's/^/| /' conftest.$ac_ext >&5
31953
31954         ac_cv_cxx_have_gnu_ext_hash_set=no
31955 fi
31956
31957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31958   ac_ext=c
31959 ac_cpp='$CPP $CPPFLAGS'
31960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31963
31964 fi
31965 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31966 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31967  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31968  then
31969
31970 cat >>confdefs.h <<\_ACEOF
31971 #define HAVE_GNU_EXT_HASH_SET 1
31972 _ACEOF
31973
31974  else
31975
31976 cat >>confdefs.h <<\_ACEOF
31977 #define HAVE_GNU_EXT_HASH_SET 0
31978 _ACEOF
31979
31980  fi
31981
31982  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31983 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31984 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31985   echo $ECHO_N "(cached) $ECHO_C" >&6
31986 else
31987
31988   ac_ext=cpp
31989 ac_cpp='$CXXCPP $CPPFLAGS'
31990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31993
31994   cat >conftest.$ac_ext <<_ACEOF
31995 /* confdefs.h.  */
31996 _ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h.  */
32000 #include <hash_set>
32001 int
32002 main ()
32003 {
32004 hash_set<int> t; return 0;
32005   ;
32006   return 0;
32007 }
32008 _ACEOF
32009 rm -f conftest.$ac_objext
32010 if { (ac_try="$ac_compile"
32011 case "(($ac_try" in
32012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013   *) ac_try_echo=$ac_try;;
32014 esac
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016   (eval "$ac_compile") 2>conftest.er1
32017   ac_status=$?
32018   grep -v '^ *+' conftest.er1 >conftest.err
32019   rm -f conftest.er1
32020   cat conftest.err >&5
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); } &&
32023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32024   { (case "(($ac_try" in
32025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026   *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029   (eval "$ac_try") 2>&5
32030   ac_status=$?
32031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); }; } &&
32033          { ac_try='test -s conftest.$ac_objext'
32034   { (case "(($ac_try" in
32035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036   *) ac_try_echo=$ac_try;;
32037 esac
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039   (eval "$ac_try") 2>&5
32040   ac_status=$?
32041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); }; }; then
32043   ac_cv_cxx_have_global_hash_set=yes
32044 else
32045   echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32047
32048         ac_cv_cxx_have_global_hash_set=no
32049 fi
32050
32051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32052   ac_ext=c
32053 ac_cpp='$CPP $CPPFLAGS'
32054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32057
32058 fi
32059 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32060 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32061  if test "$ac_cv_cxx_have_global_hash_set" = yes
32062  then
32063
32064 cat >>confdefs.h <<\_ACEOF
32065 #define HAVE_GLOBAL_HASH_SET 1
32066 _ACEOF
32067
32068  else
32069
32070 cat >>confdefs.h <<\_ACEOF
32071 #define HAVE_GLOBAL_HASH_SET 0
32072 _ACEOF
32073
32074  fi
32075
32076 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32077 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32078 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32079   echo $ECHO_N "(cached) $ECHO_C" >&6
32080 else
32081
32082   ac_ext=cpp
32083 ac_cpp='$CXXCPP $CPPFLAGS'
32084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32087
32088   cat >conftest.$ac_ext <<_ACEOF
32089 /* confdefs.h.  */
32090 _ACEOF
32091 cat confdefs.h >>conftest.$ac_ext
32092 cat >>conftest.$ac_ext <<_ACEOF
32093 /* end confdefs.h.  */
32094 #include <iterator>
32095 #ifdef HAVE_NAMESPACES
32096 using namespace std;
32097 #endif
32098 int
32099 main ()
32100 {
32101 iterator<int,int,int> t; return 0;
32102   ;
32103   return 0;
32104 }
32105 _ACEOF
32106 rm -f conftest.$ac_objext
32107 if { (ac_try="$ac_compile"
32108 case "(($ac_try" in
32109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110   *) ac_try_echo=$ac_try;;
32111 esac
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113   (eval "$ac_compile") 2>conftest.er1
32114   ac_status=$?
32115   grep -v '^ *+' conftest.er1 >conftest.err
32116   rm -f conftest.er1
32117   cat conftest.err >&5
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); } &&
32120          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32121   { (case "(($ac_try" in
32122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123   *) ac_try_echo=$ac_try;;
32124 esac
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126   (eval "$ac_try") 2>&5
32127   ac_status=$?
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); }; } &&
32130          { ac_try='test -s conftest.$ac_objext'
32131   { (case "(($ac_try" in
32132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133   *) ac_try_echo=$ac_try;;
32134 esac
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136   (eval "$ac_try") 2>&5
32137   ac_status=$?
32138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139   (exit $ac_status); }; }; then
32140   ac_cv_cxx_have_std_iterator=yes
32141 else
32142   echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32144
32145         ac_cv_cxx_have_std_iterator=no
32146 fi
32147
32148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32149   ac_ext=c
32150 ac_cpp='$CPP $CPPFLAGS'
32151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32154
32155
32156 fi
32157 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32158 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32159 if test "$ac_cv_cxx_have_std_iterator" = yes
32160 then
32161
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_STD_ITERATOR 1
32164 _ACEOF
32165
32166 else
32167
32168 cat >>confdefs.h <<\_ACEOF
32169 #define HAVE_STD_ITERATOR 0
32170 _ACEOF
32171
32172 fi
32173
32174 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32175 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32176 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32179
32180   ac_ext=cpp
32181 ac_cpp='$CXXCPP $CPPFLAGS'
32182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32185
32186   cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192 #include <iterator>
32193 #ifdef HAVE_NAMESPACES
32194 using namespace std;
32195 #endif
32196 int
32197 main ()
32198 {
32199 bidirectional_iterator<int,int> t; return 0;
32200   ;
32201   return 0;
32202 }
32203 _ACEOF
32204 rm -f conftest.$ac_objext
32205 if { (ac_try="$ac_compile"
32206 case "(($ac_try" in
32207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208   *) ac_try_echo=$ac_try;;
32209 esac
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211   (eval "$ac_compile") 2>conftest.er1
32212   ac_status=$?
32213   grep -v '^ *+' conftest.er1 >conftest.err
32214   rm -f conftest.er1
32215   cat conftest.err >&5
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); } &&
32218          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32219   { (case "(($ac_try" in
32220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221   *) ac_try_echo=$ac_try;;
32222 esac
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224   (eval "$ac_try") 2>&5
32225   ac_status=$?
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); }; } &&
32228          { ac_try='test -s conftest.$ac_objext'
32229   { (case "(($ac_try" in
32230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231   *) ac_try_echo=$ac_try;;
32232 esac
32233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234   (eval "$ac_try") 2>&5
32235   ac_status=$?
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); }; }; then
32238   ac_cv_cxx_have_bi_iterator=yes
32239 else
32240   echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32242
32243         ac_cv_cxx_have_bi_iterator=no
32244 fi
32245
32246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32247   ac_ext=c
32248 ac_cpp='$CPP $CPPFLAGS'
32249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32252
32253
32254 fi
32255 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32256 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32257 if test "$ac_cv_cxx_have_bi_iterator" = yes
32258 then
32259
32260 cat >>confdefs.h <<\_ACEOF
32261 #define HAVE_BI_ITERATOR 1
32262 _ACEOF
32263
32264 else
32265
32266 cat >>confdefs.h <<\_ACEOF
32267 #define HAVE_BI_ITERATOR 0
32268 _ACEOF
32269
32270 fi
32271
32272 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32273 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32274 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32275   echo $ECHO_N "(cached) $ECHO_C" >&6
32276 else
32277
32278   ac_ext=cpp
32279 ac_cpp='$CXXCPP $CPPFLAGS'
32280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283
32284   cat >conftest.$ac_ext <<_ACEOF
32285 /* confdefs.h.  */
32286 _ACEOF
32287 cat confdefs.h >>conftest.$ac_ext
32288 cat >>conftest.$ac_ext <<_ACEOF
32289 /* end confdefs.h.  */
32290 #include <iterator>
32291 #ifdef HAVE_NAMESPACES
32292 using namespace std;
32293 #endif
32294 int
32295 main ()
32296 {
32297 forward_iterator<int,int> t; return 0;
32298   ;
32299   return 0;
32300 }
32301 _ACEOF
32302 rm -f conftest.$ac_objext
32303 if { (ac_try="$ac_compile"
32304 case "(($ac_try" in
32305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306   *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309   (eval "$ac_compile") 2>conftest.er1
32310   ac_status=$?
32311   grep -v '^ *+' conftest.er1 >conftest.err
32312   rm -f conftest.er1
32313   cat conftest.err >&5
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); } &&
32316          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32317   { (case "(($ac_try" in
32318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319   *) ac_try_echo=$ac_try;;
32320 esac
32321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322   (eval "$ac_try") 2>&5
32323   ac_status=$?
32324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325   (exit $ac_status); }; } &&
32326          { ac_try='test -s conftest.$ac_objext'
32327   { (case "(($ac_try" in
32328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32329   *) ac_try_echo=$ac_try;;
32330 esac
32331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32332   (eval "$ac_try") 2>&5
32333   ac_status=$?
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); }; }; then
32336   ac_cv_cxx_have_fwd_iterator=yes
32337 else
32338   echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.$ac_ext >&5
32340
32341         ac_cv_cxx_have_fwd_iterator=no
32342 fi
32343
32344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32345   ac_ext=c
32346 ac_cpp='$CPP $CPPFLAGS'
32347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32350
32351
32352 fi
32353 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32354 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32355 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32356 then
32357
32358 cat >>confdefs.h <<\_ACEOF
32359 #define HAVE_FWD_ITERATOR 1
32360 _ACEOF
32361
32362 else
32363
32364 cat >>confdefs.h <<\_ACEOF
32365 #define HAVE_FWD_ITERATOR 0
32366 _ACEOF
32367
32368 fi
32369
32370
32371 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32372 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32373 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32374   echo $ECHO_N "(cached) $ECHO_C" >&6
32375 else
32376   ac_ext=cpp
32377 ac_cpp='$CXXCPP $CPPFLAGS'
32378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32381
32382    cat >conftest.$ac_ext <<_ACEOF
32383 /* confdefs.h.  */
32384 _ACEOF
32385 cat confdefs.h >>conftest.$ac_ext
32386 cat >>conftest.$ac_ext <<_ACEOF
32387 /* end confdefs.h.  */
32388 #include <math.h>
32389 int
32390 main ()
32391 {
32392 float f; isnan(f);
32393   ;
32394   return 0;
32395 }
32396 _ACEOF
32397 rm -f conftest.$ac_objext
32398 if { (ac_try="$ac_compile"
32399 case "(($ac_try" in
32400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401   *) ac_try_echo=$ac_try;;
32402 esac
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404   (eval "$ac_compile") 2>conftest.er1
32405   ac_status=$?
32406   grep -v '^ *+' conftest.er1 >conftest.err
32407   rm -f conftest.er1
32408   cat conftest.err >&5
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); } &&
32411          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32412   { (case "(($ac_try" in
32413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414   *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417   (eval "$ac_try") 2>&5
32418   ac_status=$?
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); }; } &&
32421          { ac_try='test -s conftest.$ac_objext'
32422   { (case "(($ac_try" in
32423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424   *) ac_try_echo=$ac_try;;
32425 esac
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427   (eval "$ac_try") 2>&5
32428   ac_status=$?
32429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430   (exit $ac_status); }; }; then
32431   ac_cv_func_isnan_in_math_h=yes
32432 else
32433   echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32435
32436         ac_cv_func_isnan_in_math_h=no
32437 fi
32438
32439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32440   ac_ext=c
32441 ac_cpp='$CPP $CPPFLAGS'
32442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32445
32446 fi
32447 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32448 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32449
32450
32451 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32452
32453 cat >>confdefs.h <<\_ACEOF
32454 #define HAVE_ISNAN_IN_MATH_H 1
32455 _ACEOF
32456
32457 fi
32458
32459 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32460 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32461 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32462   echo $ECHO_N "(cached) $ECHO_C" >&6
32463 else
32464   ac_ext=cpp
32465 ac_cpp='$CXXCPP $CPPFLAGS'
32466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32469
32470    cat >conftest.$ac_ext <<_ACEOF
32471 /* confdefs.h.  */
32472 _ACEOF
32473 cat confdefs.h >>conftest.$ac_ext
32474 cat >>conftest.$ac_ext <<_ACEOF
32475 /* end confdefs.h.  */
32476 #include <cmath>
32477 int
32478 main ()
32479 {
32480 float f; isnan(f);
32481   ;
32482   return 0;
32483 }
32484 _ACEOF
32485 rm -f conftest.$ac_objext
32486 if { (ac_try="$ac_compile"
32487 case "(($ac_try" in
32488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489   *) ac_try_echo=$ac_try;;
32490 esac
32491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492   (eval "$ac_compile") 2>conftest.er1
32493   ac_status=$?
32494   grep -v '^ *+' conftest.er1 >conftest.err
32495   rm -f conftest.er1
32496   cat conftest.err >&5
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); } &&
32499          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32500   { (case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_try") 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); }; } &&
32509          { ac_try='test -s conftest.$ac_objext'
32510   { (case "(($ac_try" in
32511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512   *) ac_try_echo=$ac_try;;
32513 esac
32514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515   (eval "$ac_try") 2>&5
32516   ac_status=$?
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); }; }; then
32519   ac_cv_func_isnan_in_cmath=yes
32520 else
32521   echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32523
32524         ac_cv_func_isnan_in_cmath=no
32525 fi
32526
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528   ac_ext=c
32529 ac_cpp='$CPP $CPPFLAGS'
32530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32533
32534 fi
32535 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32536 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32537
32538 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32539
32540 cat >>confdefs.h <<\_ACEOF
32541 #define HAVE_ISNAN_IN_CMATH 1
32542 _ACEOF
32543
32544 fi
32545
32546 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32547 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32548 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32549   echo $ECHO_N "(cached) $ECHO_C" >&6
32550 else
32551   ac_ext=cpp
32552 ac_cpp='$CXXCPP $CPPFLAGS'
32553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32556
32557    cat >conftest.$ac_ext <<_ACEOF
32558 /* confdefs.h.  */
32559 _ACEOF
32560 cat confdefs.h >>conftest.$ac_ext
32561 cat >>conftest.$ac_ext <<_ACEOF
32562 /* end confdefs.h.  */
32563 #include <cmath>
32564 int
32565 main ()
32566 {
32567 float f; std::isnan(f);
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579   (eval "$ac_compile") 2>conftest.er1
32580   ac_status=$?
32581   grep -v '^ *+' conftest.er1 >conftest.err
32582   rm -f conftest.er1
32583   cat conftest.err >&5
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } &&
32586          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32587   { (case "(($ac_try" in
32588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589   *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592   (eval "$ac_try") 2>&5
32593   ac_status=$?
32594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595   (exit $ac_status); }; } &&
32596          { ac_try='test -s conftest.$ac_objext'
32597   { (case "(($ac_try" in
32598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599   *) ac_try_echo=$ac_try;;
32600 esac
32601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602   (eval "$ac_try") 2>&5
32603   ac_status=$?
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); }; }; then
32606   ac_cv_func_std_isnan_in_cmath=yes
32607 else
32608   echo "$as_me: failed program was:" >&5
32609 sed 's/^/| /' conftest.$ac_ext >&5
32610
32611         ac_cv_func_std_isnan_in_cmath=no
32612 fi
32613
32614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32615   ac_ext=c
32616 ac_cpp='$CPP $CPPFLAGS'
32617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32620
32621 fi
32622 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32623 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32624
32625 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32626
32627 cat >>confdefs.h <<\_ACEOF
32628 #define HAVE_STD_ISNAN_IN_CMATH 1
32629 _ACEOF
32630
32631 fi
32632
32633
32634 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32635 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32636 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32637   echo $ECHO_N "(cached) $ECHO_C" >&6
32638 else
32639   ac_ext=cpp
32640 ac_cpp='$CXXCPP $CPPFLAGS'
32641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32644
32645    cat >conftest.$ac_ext <<_ACEOF
32646 /* confdefs.h.  */
32647 _ACEOF
32648 cat confdefs.h >>conftest.$ac_ext
32649 cat >>conftest.$ac_ext <<_ACEOF
32650 /* end confdefs.h.  */
32651 #include <math.h>
32652 int
32653 main ()
32654 {
32655 float f; isinf(f);
32656   ;
32657   return 0;
32658 }
32659 _ACEOF
32660 rm -f conftest.$ac_objext
32661 if { (ac_try="$ac_compile"
32662 case "(($ac_try" in
32663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664   *) ac_try_echo=$ac_try;;
32665 esac
32666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667   (eval "$ac_compile") 2>conftest.er1
32668   ac_status=$?
32669   grep -v '^ *+' conftest.er1 >conftest.err
32670   rm -f conftest.er1
32671   cat conftest.err >&5
32672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673   (exit $ac_status); } &&
32674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32675   { (case "(($ac_try" in
32676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677   *) ac_try_echo=$ac_try;;
32678 esac
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680   (eval "$ac_try") 2>&5
32681   ac_status=$?
32682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683   (exit $ac_status); }; } &&
32684          { ac_try='test -s conftest.$ac_objext'
32685   { (case "(($ac_try" in
32686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687   *) ac_try_echo=$ac_try;;
32688 esac
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690   (eval "$ac_try") 2>&5
32691   ac_status=$?
32692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693   (exit $ac_status); }; }; then
32694   ac_cv_func_isinf_in_math_h=yes
32695 else
32696   echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32698
32699         ac_cv_func_isinf_in_math_h=no
32700 fi
32701
32702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32703   ac_ext=c
32704 ac_cpp='$CPP $CPPFLAGS'
32705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32708
32709 fi
32710 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32711 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32712
32713 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32714
32715 cat >>confdefs.h <<\_ACEOF
32716 #define HAVE_ISINF_IN_MATH_H 1
32717 _ACEOF
32718
32719 fi
32720
32721 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32722 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32723 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32724   echo $ECHO_N "(cached) $ECHO_C" >&6
32725 else
32726   ac_ext=cpp
32727 ac_cpp='$CXXCPP $CPPFLAGS'
32728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
32732    cat >conftest.$ac_ext <<_ACEOF
32733 /* confdefs.h.  */
32734 _ACEOF
32735 cat confdefs.h >>conftest.$ac_ext
32736 cat >>conftest.$ac_ext <<_ACEOF
32737 /* end confdefs.h.  */
32738 #include <cmath>
32739 int
32740 main ()
32741 {
32742 float f; isinf(f);
32743   ;
32744   return 0;
32745 }
32746 _ACEOF
32747 rm -f conftest.$ac_objext
32748 if { (ac_try="$ac_compile"
32749 case "(($ac_try" in
32750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751   *) ac_try_echo=$ac_try;;
32752 esac
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754   (eval "$ac_compile") 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } &&
32761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32762   { (case "(($ac_try" in
32763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764   *) ac_try_echo=$ac_try;;
32765 esac
32766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767   (eval "$ac_try") 2>&5
32768   ac_status=$?
32769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); }; } &&
32771          { ac_try='test -s conftest.$ac_objext'
32772   { (case "(($ac_try" in
32773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774   *) ac_try_echo=$ac_try;;
32775 esac
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777   (eval "$ac_try") 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   ac_cv_func_isinf_in_cmath=yes
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786         ac_cv_func_isinf_in_cmath=no
32787 fi
32788
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790   ac_ext=c
32791 ac_cpp='$CPP $CPPFLAGS'
32792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32795
32796 fi
32797 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32798 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32799
32800 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32801
32802 cat >>confdefs.h <<\_ACEOF
32803 #define HAVE_ISINF_IN_CMATH 1
32804 _ACEOF
32805
32806 fi
32807
32808 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32809 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32810 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32811   echo $ECHO_N "(cached) $ECHO_C" >&6
32812 else
32813   ac_ext=cpp
32814 ac_cpp='$CXXCPP $CPPFLAGS'
32815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32818
32819    cat >conftest.$ac_ext <<_ACEOF
32820 /* confdefs.h.  */
32821 _ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h.  */
32825 #include <cmath>
32826 int
32827 main ()
32828 {
32829 float f; std::isinf(f)}
32830   ;
32831   return 0;
32832 }
32833 _ACEOF
32834 rm -f conftest.$ac_objext
32835 if { (ac_try="$ac_compile"
32836 case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_compile") 2>conftest.er1
32842   ac_status=$?
32843   grep -v '^ *+' conftest.er1 >conftest.err
32844   rm -f conftest.er1
32845   cat conftest.err >&5
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); } &&
32848          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32849   { (case "(($ac_try" in
32850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851   *) ac_try_echo=$ac_try;;
32852 esac
32853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854   (eval "$ac_try") 2>&5
32855   ac_status=$?
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); }; } &&
32858          { ac_try='test -s conftest.$ac_objext'
32859   { (case "(($ac_try" in
32860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861   *) ac_try_echo=$ac_try;;
32862 esac
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864   (eval "$ac_try") 2>&5
32865   ac_status=$?
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); }; }; then
32868   ac_cv_func_std_isinf_in_cmath=yes
32869 else
32870   echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32872
32873         ac_cv_func_std_isinf_in_cmath=no
32874 fi
32875
32876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32877   ac_ext=c
32878 ac_cpp='$CPP $CPPFLAGS'
32879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32882
32883 fi
32884 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32885 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32886
32887 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32888
32889 cat >>confdefs.h <<\_ACEOF
32890 #define HAVE_STD_ISINF_IN_CMATH 1
32891 _ACEOF
32892
32893 fi
32894
32895 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32896 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32897 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32898   echo $ECHO_N "(cached) $ECHO_C" >&6
32899 else
32900   ac_ext=cpp
32901 ac_cpp='$CXXCPP $CPPFLAGS'
32902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32905
32906    cat >conftest.$ac_ext <<_ACEOF
32907 /* confdefs.h.  */
32908 _ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h.  */
32912 #include <ieeefp.h>
32913 int
32914 main ()
32915 {
32916 float f; finite(f);
32917   ;
32918   return 0;
32919 }
32920 _ACEOF
32921 rm -f conftest.$ac_objext
32922 if { (ac_try="$ac_compile"
32923 case "(($ac_try" in
32924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925   *) ac_try_echo=$ac_try;;
32926 esac
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928   (eval "$ac_compile") 2>conftest.er1
32929   ac_status=$?
32930   grep -v '^ *+' conftest.er1 >conftest.err
32931   rm -f conftest.er1
32932   cat conftest.err >&5
32933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934   (exit $ac_status); } &&
32935          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32936   { (case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_try") 2>&5
32942   ac_status=$?
32943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944   (exit $ac_status); }; } &&
32945          { ac_try='test -s conftest.$ac_objext'
32946   { (case "(($ac_try" in
32947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948   *) ac_try_echo=$ac_try;;
32949 esac
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951   (eval "$ac_try") 2>&5
32952   ac_status=$?
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); }; }; then
32955   ac_cv_func_finite_in_ieeefp_h=yes
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960         ac_cv_func_finite_in_ieeefp_h=no
32961 fi
32962
32963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32964   ac_ext=c
32965 ac_cpp='$CPP $CPPFLAGS'
32966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32969
32970 fi
32971 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32972 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32973
32974 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32975
32976 cat >>confdefs.h <<\_ACEOF
32977 #define HAVE_FINITE_IN_IEEEFP_H 1
32978 _ACEOF
32979
32980 fi
32981
32982
32983
32984 if test "$llvm_cv_platform_type" = "Unix" ; then
32985
32986
32987 for ac_header in stdlib.h unistd.h
32988 do
32989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32994   echo $ECHO_N "(cached) $ECHO_C" >&6
32995 fi
32996 ac_res=`eval echo '${'$as_ac_Header'}'`
32997                { echo "$as_me:$LINENO: result: $ac_res" >&5
32998 echo "${ECHO_T}$ac_res" >&6; }
32999 else
33000   # Is the header compilable?
33001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33003 cat >conftest.$ac_ext <<_ACEOF
33004 /* confdefs.h.  */
33005 _ACEOF
33006 cat confdefs.h >>conftest.$ac_ext
33007 cat >>conftest.$ac_ext <<_ACEOF
33008 /* end confdefs.h.  */
33009 $ac_includes_default
33010 #include <$ac_header>
33011 _ACEOF
33012 rm -f conftest.$ac_objext
33013 if { (ac_try="$ac_compile"
33014 case "(($ac_try" in
33015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33016   *) ac_try_echo=$ac_try;;
33017 esac
33018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33019   (eval "$ac_compile") 2>conftest.er1
33020   ac_status=$?
33021   grep -v '^ *+' conftest.er1 >conftest.err
33022   rm -f conftest.er1
33023   cat conftest.err >&5
33024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); } &&
33026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33027   { (case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032   (eval "$ac_try") 2>&5
33033   ac_status=$?
33034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); }; } &&
33036          { ac_try='test -s conftest.$ac_objext'
33037   { (case "(($ac_try" in
33038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039   *) ac_try_echo=$ac_try;;
33040 esac
33041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33042   (eval "$ac_try") 2>&5
33043   ac_status=$?
33044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045   (exit $ac_status); }; }; then
33046   ac_header_compiler=yes
33047 else
33048   echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33050
33051         ac_header_compiler=no
33052 fi
33053
33054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33056 echo "${ECHO_T}$ac_header_compiler" >&6; }
33057
33058 # Is the header present?
33059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33061 cat >conftest.$ac_ext <<_ACEOF
33062 /* confdefs.h.  */
33063 _ACEOF
33064 cat confdefs.h >>conftest.$ac_ext
33065 cat >>conftest.$ac_ext <<_ACEOF
33066 /* end confdefs.h.  */
33067 #include <$ac_header>
33068 _ACEOF
33069 if { (ac_try="$ac_cpp conftest.$ac_ext"
33070 case "(($ac_try" in
33071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072   *) ac_try_echo=$ac_try;;
33073 esac
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33076   ac_status=$?
33077   grep -v '^ *+' conftest.er1 >conftest.err
33078   rm -f conftest.er1
33079   cat conftest.err >&5
33080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081   (exit $ac_status); } >/dev/null; then
33082   if test -s conftest.err; then
33083     ac_cpp_err=$ac_c_preproc_warn_flag
33084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33085   else
33086     ac_cpp_err=
33087   fi
33088 else
33089   ac_cpp_err=yes
33090 fi
33091 if test -z "$ac_cpp_err"; then
33092   ac_header_preproc=yes
33093 else
33094   echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33096
33097   ac_header_preproc=no
33098 fi
33099
33100 rm -f conftest.err conftest.$ac_ext
33101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33102 echo "${ECHO_T}$ac_header_preproc" >&6; }
33103
33104 # So?  What about this header?
33105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33106   yes:no: )
33107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33111     ac_header_preproc=yes
33112     ;;
33113   no:yes:* )
33114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33126     ( cat <<\_ASBOX
33127 ## ----------------------------------- ##
33128 ## Report this to llvmbugs@cs.uiuc.edu ##
33129 ## ----------------------------------- ##
33130 _ASBOX
33131      ) | sed "s/^/$as_me: WARNING:     /" >&2
33132     ;;
33133 esac
33134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33137   echo $ECHO_N "(cached) $ECHO_C" >&6
33138 else
33139   eval "$as_ac_Header=\$ac_header_preproc"
33140 fi
33141 ac_res=`eval echo '${'$as_ac_Header'}'`
33142                { echo "$as_me:$LINENO: result: $ac_res" >&5
33143 echo "${ECHO_T}$ac_res" >&6; }
33144
33145 fi
33146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33147   cat >>confdefs.h <<_ACEOF
33148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33149 _ACEOF
33150
33151 fi
33152
33153 done
33154
33155
33156 for ac_func in getpagesize
33157 do
33158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33162   echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164   cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h.  */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h.  */
33170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33172 #define $ac_func innocuous_$ac_func
33173
33174 /* System header to define __stub macros and hopefully few prototypes,
33175     which can conflict with char $ac_func (); below.
33176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177     <limits.h> exists even on freestanding compilers.  */
33178
33179 #ifdef __STDC__
33180 # include <limits.h>
33181 #else
33182 # include <assert.h>
33183 #endif
33184
33185 #undef $ac_func
33186
33187 /* Override any GCC internal prototype to avoid an error.
33188    Use char because int might match the return type of a GCC
33189    builtin and then its argument prototype would still apply.  */
33190 #ifdef __cplusplus
33191 extern "C"
33192 #endif
33193 char $ac_func ();
33194 /* The GNU C library defines this for functions which it implements
33195     to always fail with ENOSYS.  Some functions are actually named
33196     something starting with __ and the normal name is an alias.  */
33197 #if defined __stub_$ac_func || defined __stub___$ac_func
33198 choke me
33199 #endif
33200
33201 int
33202 main ()
33203 {
33204 return $ac_func ();
33205   ;
33206   return 0;
33207 }
33208 _ACEOF
33209 rm -f conftest.$ac_objext conftest$ac_exeext
33210 if { (ac_try="$ac_link"
33211 case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_link") 2>conftest.er1
33217   ac_status=$?
33218   grep -v '^ *+' conftest.er1 >conftest.err
33219   rm -f conftest.er1
33220   cat conftest.err >&5
33221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222   (exit $ac_status); } &&
33223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33224   { (case "(($ac_try" in
33225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226   *) ac_try_echo=$ac_try;;
33227 esac
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229   (eval "$ac_try") 2>&5
33230   ac_status=$?
33231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232   (exit $ac_status); }; } &&
33233          { ac_try='test -s conftest$ac_exeext'
33234   { (case "(($ac_try" in
33235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236   *) ac_try_echo=$ac_try;;
33237 esac
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239   (eval "$ac_try") 2>&5
33240   ac_status=$?
33241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242   (exit $ac_status); }; }; then
33243   eval "$as_ac_var=yes"
33244 else
33245   echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33247
33248         eval "$as_ac_var=no"
33249 fi
33250
33251 rm -f core conftest.err conftest.$ac_objext \
33252       conftest$ac_exeext conftest.$ac_ext
33253 fi
33254 ac_res=`eval echo '${'$as_ac_var'}'`
33255                { echo "$as_me:$LINENO: result: $ac_res" >&5
33256 echo "${ECHO_T}$ac_res" >&6; }
33257 if test `eval echo '${'$as_ac_var'}'` = yes; then
33258   cat >>confdefs.h <<_ACEOF
33259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33260 _ACEOF
33261
33262 fi
33263 done
33264
33265 { echo "$as_me:$LINENO: checking for working mmap" >&5
33266 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33267 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33268   echo $ECHO_N "(cached) $ECHO_C" >&6
33269 else
33270   if test "$cross_compiling" = yes; then
33271   ac_cv_func_mmap_fixed_mapped=no
33272 else
33273   cat >conftest.$ac_ext <<_ACEOF
33274 /* confdefs.h.  */
33275 _ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h.  */
33279 $ac_includes_default
33280 /* malloc might have been renamed as rpl_malloc. */
33281 #undef malloc
33282
33283 /* Thanks to Mike Haertel and Jim Avera for this test.
33284    Here is a matrix of mmap possibilities:
33285         mmap private not fixed
33286         mmap private fixed at somewhere currently unmapped
33287         mmap private fixed at somewhere already mapped
33288         mmap shared not fixed
33289         mmap shared fixed at somewhere currently unmapped
33290         mmap shared fixed at somewhere already mapped
33291    For private mappings, we should verify that changes cannot be read()
33292    back from the file, nor mmap's back from the file at a different
33293    address.  (There have been systems where private was not correctly
33294    implemented like the infamous i386 svr4.0, and systems where the
33295    VM page cache was not coherent with the file system buffer cache
33296    like early versions of FreeBSD and possibly contemporary NetBSD.)
33297    For shared mappings, we should conversely verify that changes get
33298    propagated back to all the places they're supposed to be.
33299
33300    Grep wants private fixed already mapped.
33301    The main things grep needs to know about mmap are:
33302    * does it exist and is it safe to write into the mmap'd area
33303    * how to use it (BSD variants)  */
33304
33305 #include <fcntl.h>
33306 #include <sys/mman.h>
33307
33308 #if !STDC_HEADERS && !HAVE_STDLIB_H
33309 char *malloc ();
33310 #endif
33311
33312 /* This mess was copied from the GNU getpagesize.h.  */
33313 #if !HAVE_GETPAGESIZE
33314 /* Assume that all systems that can run configure have sys/param.h.  */
33315 # if !HAVE_SYS_PARAM_H
33316 #  define HAVE_SYS_PARAM_H 1
33317 # endif
33318
33319 # ifdef _SC_PAGESIZE
33320 #  define getpagesize() sysconf(_SC_PAGESIZE)
33321 # else /* no _SC_PAGESIZE */
33322 #  if HAVE_SYS_PARAM_H
33323 #   include <sys/param.h>
33324 #   ifdef EXEC_PAGESIZE
33325 #    define getpagesize() EXEC_PAGESIZE
33326 #   else /* no EXEC_PAGESIZE */
33327 #    ifdef NBPG
33328 #     define getpagesize() NBPG * CLSIZE
33329 #     ifndef CLSIZE
33330 #      define CLSIZE 1
33331 #     endif /* no CLSIZE */
33332 #    else /* no NBPG */
33333 #     ifdef NBPC
33334 #      define getpagesize() NBPC
33335 #     else /* no NBPC */
33336 #      ifdef PAGESIZE
33337 #       define getpagesize() PAGESIZE
33338 #      endif /* PAGESIZE */
33339 #     endif /* no NBPC */
33340 #    endif /* no NBPG */
33341 #   endif /* no EXEC_PAGESIZE */
33342 #  else /* no HAVE_SYS_PARAM_H */
33343 #   define getpagesize() 8192   /* punt totally */
33344 #  endif /* no HAVE_SYS_PARAM_H */
33345 # endif /* no _SC_PAGESIZE */
33346
33347 #endif /* no HAVE_GETPAGESIZE */
33348
33349 int
33350 main ()
33351 {
33352   char *data, *data2, *data3;
33353   int i, pagesize;
33354   int fd;
33355
33356   pagesize = getpagesize ();
33357
33358   /* First, make a file with some known garbage in it. */
33359   data = (char *) malloc (pagesize);
33360   if (!data)
33361     return 1;
33362   for (i = 0; i < pagesize; ++i)
33363     *(data + i) = rand ();
33364   umask (0);
33365   fd = creat ("conftest.mmap", 0600);
33366   if (fd < 0)
33367     return 1;
33368   if (write (fd, data, pagesize) != pagesize)
33369     return 1;
33370   close (fd);
33371
33372   /* Next, try to mmap the file at a fixed address which already has
33373      something else allocated at it.  If we can, also make sure that
33374      we see the same garbage.  */
33375   fd = open ("conftest.mmap", O_RDWR);
33376   if (fd < 0)
33377     return 1;
33378   data2 = (char *) malloc (2 * pagesize);
33379   if (!data2)
33380     return 1;
33381   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33382   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33383                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33384     return 1;
33385   for (i = 0; i < pagesize; ++i)
33386     if (*(data + i) != *(data2 + i))
33387       return 1;
33388
33389   /* Finally, make sure that changes to the mapped area do not
33390      percolate back to the file as seen by read().  (This is a bug on
33391      some variants of i386 svr4.0.)  */
33392   for (i = 0; i < pagesize; ++i)
33393     *(data2 + i) = *(data2 + i) + 1;
33394   data3 = (char *) malloc (pagesize);
33395   if (!data3)
33396     return 1;
33397   if (read (fd, data3, pagesize) != pagesize)
33398     return 1;
33399   for (i = 0; i < pagesize; ++i)
33400     if (*(data + i) != *(data3 + i))
33401       return 1;
33402   close (fd);
33403   return 0;
33404 }
33405 _ACEOF
33406 rm -f conftest$ac_exeext
33407 if { (ac_try="$ac_link"
33408 case "(($ac_try" in
33409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410   *) ac_try_echo=$ac_try;;
33411 esac
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413   (eval "$ac_link") 2>&5
33414   ac_status=$?
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33417   { (case "(($ac_try" in
33418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419   *) ac_try_echo=$ac_try;;
33420 esac
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422   (eval "$ac_try") 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; }; then
33426   ac_cv_func_mmap_fixed_mapped=yes
33427 else
33428   echo "$as_me: program exited with status $ac_status" >&5
33429 echo "$as_me: failed program was:" >&5
33430 sed 's/^/| /' conftest.$ac_ext >&5
33431
33432 ( exit $ac_status )
33433 ac_cv_func_mmap_fixed_mapped=no
33434 fi
33435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33436 fi
33437
33438
33439 fi
33440 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33441 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33442 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33443
33444 cat >>confdefs.h <<\_ACEOF
33445 #define HAVE_MMAP 1
33446 _ACEOF
33447
33448 fi
33449 rm -f conftest.mmap
33450
33451   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33452 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33453 if test "${ac_cv_func_mmap_file+set}" = set; then
33454   echo $ECHO_N "(cached) $ECHO_C" >&6
33455 else
33456    ac_ext=c
33457 ac_cpp='$CPP $CPPFLAGS'
33458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33461
33462   if test "$cross_compiling" = yes; then
33463   ac_cv_func_mmap_file=no
33464 else
33465   cat >conftest.$ac_ext <<_ACEOF
33466
33467     /* confdefs.h.  */
33468 _ACEOF
33469 cat confdefs.h >>conftest.$ac_ext
33470 cat >>conftest.$ac_ext <<_ACEOF
33471 /* end confdefs.h.  */
33472
33473 #include <sys/types.h>
33474 #include <sys/mman.h>
33475 #include <fcntl.h>
33476
33477 int
33478 main ()
33479 {
33480
33481   int fd;
33482   fd = creat ("foo",0777);
33483   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33484   unlink ("foo");
33485   return (fd != (int) MAP_FAILED);
33486   ;
33487   return 0;
33488 }
33489 _ACEOF
33490 rm -f conftest$ac_exeext
33491 if { (ac_try="$ac_link"
33492 case "(($ac_try" in
33493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494   *) ac_try_echo=$ac_try;;
33495 esac
33496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497   (eval "$ac_link") 2>&5
33498   ac_status=$?
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33501   { (case "(($ac_try" in
33502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33503   *) ac_try_echo=$ac_try;;
33504 esac
33505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33506   (eval "$ac_try") 2>&5
33507   ac_status=$?
33508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509   (exit $ac_status); }; }; then
33510   ac_cv_func_mmap_file=yes
33511 else
33512   echo "$as_me: program exited with status $ac_status" >&5
33513 echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33515
33516 ( exit $ac_status )
33517 ac_cv_func_mmap_file=no
33518 fi
33519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33520 fi
33521
33522
33523   ac_ext=c
33524 ac_cpp='$CPP $CPPFLAGS'
33525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33528
33529
33530 fi
33531 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33532 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33533 if test "$ac_cv_func_mmap_file" = yes; then
33534
33535 cat >>confdefs.h <<\_ACEOF
33536 #define HAVE_MMAP_FILE
33537 _ACEOF
33538
33539    MMAP_FILE=yes
33540
33541 fi
33542
33543   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33544 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33545 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33546   echo $ECHO_N "(cached) $ECHO_C" >&6
33547 else
33548   if test "$llvm_cv_os_type" = "Interix" ; then
33549    ac_cv_need_dev_zero_for_mmap=yes
33550  else
33551    ac_cv_need_dev_zero_for_mmap=no
33552  fi
33553
33554 fi
33555 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33556 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33557 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33558
33559 cat >>confdefs.h <<\_ACEOF
33560 #define NEED_DEV_ZERO_FOR_MMAP 1
33561 _ACEOF
33562
33563 fi
33564
33565   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33566   then
33567     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33568 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33569   fi
33570   if test "$ac_cv_func_mmap_file" = "no"
33571   then
33572     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33573 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33574   fi
33575 fi
33576
33577
33578
33579 for ac_func in __dso_handle
33580 do
33581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587   cat >conftest.$ac_ext <<_ACEOF
33588 /* confdefs.h.  */
33589 _ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h.  */
33593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33595 #define $ac_func innocuous_$ac_func
33596
33597 /* System header to define __stub macros and hopefully few prototypes,
33598     which can conflict with char $ac_func (); below.
33599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33600     <limits.h> exists even on freestanding compilers.  */
33601
33602 #ifdef __STDC__
33603 # include <limits.h>
33604 #else
33605 # include <assert.h>
33606 #endif
33607
33608 #undef $ac_func
33609
33610 /* Override any GCC internal prototype to avoid an error.
33611    Use char because int might match the return type of a GCC
33612    builtin and then its argument prototype would still apply.  */
33613 #ifdef __cplusplus
33614 extern "C"
33615 #endif
33616 char $ac_func ();
33617 /* The GNU C library defines this for functions which it implements
33618     to always fail with ENOSYS.  Some functions are actually named
33619     something starting with __ and the normal name is an alias.  */
33620 #if defined __stub_$ac_func || defined __stub___$ac_func
33621 choke me
33622 #endif
33623
33624 int
33625 main ()
33626 {
33627 return $ac_func ();
33628   ;
33629   return 0;
33630 }
33631 _ACEOF
33632 rm -f conftest.$ac_objext conftest$ac_exeext
33633 if { (ac_try="$ac_link"
33634 case "(($ac_try" in
33635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33636   *) ac_try_echo=$ac_try;;
33637 esac
33638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33639   (eval "$ac_link") 2>conftest.er1
33640   ac_status=$?
33641   grep -v '^ *+' conftest.er1 >conftest.err
33642   rm -f conftest.er1
33643   cat conftest.err >&5
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); } &&
33646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33647   { (case "(($ac_try" in
33648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649   *) ac_try_echo=$ac_try;;
33650 esac
33651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652   (eval "$ac_try") 2>&5
33653   ac_status=$?
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); }; } &&
33656          { ac_try='test -s conftest$ac_exeext'
33657   { (case "(($ac_try" in
33658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33659   *) ac_try_echo=$ac_try;;
33660 esac
33661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33662   (eval "$ac_try") 2>&5
33663   ac_status=$?
33664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665   (exit $ac_status); }; }; then
33666   eval "$as_ac_var=yes"
33667 else
33668   echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33670
33671         eval "$as_ac_var=no"
33672 fi
33673
33674 rm -f core conftest.err conftest.$ac_objext \
33675       conftest$ac_exeext conftest.$ac_ext
33676 fi
33677 ac_res=`eval echo '${'$as_ac_var'}'`
33678                { echo "$as_me:$LINENO: result: $ac_res" >&5
33679 echo "${ECHO_T}$ac_res" >&6; }
33680 if test `eval echo '${'$as_ac_var'}'` = yes; then
33681   cat >>confdefs.h <<_ACEOF
33682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33683 _ACEOF
33684
33685 fi
33686 done
33687
33688
33689 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33690 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33691 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33692   echo $ECHO_N "(cached) $ECHO_C" >&6
33693 else
33694   llvm_cv_llvmgcc_sanity="no"
33695 if test -x "$LLVMGCC" ; then
33696   cp /dev/null conftest.c
33697   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33698       grep 'target datalayout =' > /dev/null 2>&1
33699   if test $? -eq 0 ; then
33700     llvm_cv_llvmgcc_sanity="yes"
33701   fi
33702   rm conftest.c
33703 fi
33704 fi
33705 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33706 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33707
33708 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33709   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33710 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33711   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33712   LLVMCC1=$llvmcc1path
33713
33714   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33715   LLVMCC1PLUS=$llvmcc1pluspath
33716
33717   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33718   LLVMGCCDIR=$llvmgccdir
33719
33720   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33721   LLVMGCCLIBEXEC=$llvmgcclibexec
33722
33723   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33724   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33725   LLVMGCC_VERSION=$llvmgccversion
33726
33727   LLVMGCC_MAJVERS=$llvmgccmajvers
33728
33729   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33730   LLVMGCC_LANGS=$llvmgcclangs
33731
33732   { echo "$as_me:$LINENO: result: ok" >&5
33733 echo "${ECHO_T}ok" >&6; }
33734 fi
33735
33736 SHLIBEXT=$libltdl_cv_shlibext
33737
33738
33739 # Translate the various configuration directories and other basic
33740 # information into substitutions that will end up in Makefile.config.in
33741 # that these configured values can be used by the makefiles
33742 if test "${prefix}" = "NONE" ; then
33743   prefix="/usr/local"
33744 fi
33745 eval LLVM_PREFIX="${prefix}";
33746 eval LLVM_BINDIR="${prefix}/bin";
33747 eval LLVM_LIBDIR="${prefix}/lib";
33748 eval LLVM_DATADIR="${prefix}/share/llvm";
33749 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33750 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33751 eval LLVM_INCLUDEDIR="${prefix}/include";
33752 eval LLVM_INFODIR="${prefix}/info";
33753 eval LLVM_MANDIR="${prefix}/man";
33754 LLVM_CONFIGTIME=`date`
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766 # Place the various directores into the config.h file as #defines so that we
33767 # can know about the installation paths within LLVM.
33768
33769 cat >>confdefs.h <<_ACEOF
33770 #define LLVM_PREFIX "$LLVM_PREFIX"
33771 _ACEOF
33772
33773
33774 cat >>confdefs.h <<_ACEOF
33775 #define LLVM_BINDIR "$LLVM_BINDIR"
33776 _ACEOF
33777
33778
33779 cat >>confdefs.h <<_ACEOF
33780 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33781 _ACEOF
33782
33783
33784 cat >>confdefs.h <<_ACEOF
33785 #define LLVM_DATADIR "$LLVM_DATADIR"
33786 _ACEOF
33787
33788
33789 cat >>confdefs.h <<_ACEOF
33790 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33791 _ACEOF
33792
33793
33794 cat >>confdefs.h <<_ACEOF
33795 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33796 _ACEOF
33797
33798
33799 cat >>confdefs.h <<_ACEOF
33800 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33801 _ACEOF
33802
33803
33804 cat >>confdefs.h <<_ACEOF
33805 #define LLVM_INFODIR "$LLVM_INFODIR"
33806 _ACEOF
33807
33808
33809 cat >>confdefs.h <<_ACEOF
33810 #define LLVM_MANDIR "$LLVM_MANDIR"
33811 _ACEOF
33812
33813
33814 cat >>confdefs.h <<_ACEOF
33815 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33816 _ACEOF
33817
33818
33819
33820 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33821
33822 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33823
33824 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33825
33826 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33827
33828 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33829
33830
33831 ac_config_files="$ac_config_files Makefile.config"
33832
33833
33834 ac_config_files="$ac_config_files llvm.spec"
33835
33836
33837 ac_config_files="$ac_config_files docs/doxygen.cfg"
33838
33839
33840 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33841
33842
33843 ac_config_commands="$ac_config_commands setup"
33844
33845 ac_config_commands="$ac_config_commands Makefile"
33846
33847
33848 ac_config_commands="$ac_config_commands Makefile.common"
33849
33850
33851 ac_config_commands="$ac_config_commands examples/Makefile"
33852
33853
33854 ac_config_commands="$ac_config_commands lib/Makefile"
33855
33856
33857 ac_config_commands="$ac_config_commands runtime/Makefile"
33858
33859
33860 ac_config_commands="$ac_config_commands test/Makefile"
33861
33862
33863 ac_config_commands="$ac_config_commands test/Makefile.tests"
33864
33865
33866 ac_config_commands="$ac_config_commands tools/Makefile"
33867
33868
33869 ac_config_commands="$ac_config_commands utils/Makefile"
33870
33871
33872 ac_config_commands="$ac_config_commands projects/Makefile"
33873
33874
33875
33876 cat >confcache <<\_ACEOF
33877 # This file is a shell script that caches the results of configure
33878 # tests run on this system so they can be shared between configure
33879 # scripts and configure runs, see configure's option --config-cache.
33880 # It is not useful on other systems.  If it contains results you don't
33881 # want to keep, you may remove or edit it.
33882 #
33883 # config.status only pays attention to the cache file if you give it
33884 # the --recheck option to rerun configure.
33885 #
33886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33888 # following values.
33889
33890 _ACEOF
33891
33892 # The following way of writing the cache mishandles newlines in values,
33893 # but we know of no workaround that is simple, portable, and efficient.
33894 # So, we kill variables containing newlines.
33895 # Ultrix sh set writes to stderr and can't be redirected directly,
33896 # and sets the high bit in the cache file unless we assign to the vars.
33897 (
33898   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33899     eval ac_val=\$$ac_var
33900     case $ac_val in #(
33901     *${as_nl}*)
33902       case $ac_var in #(
33903       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33904 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33905       esac
33906       case $ac_var in #(
33907       _ | IFS | as_nl) ;; #(
33908       *) $as_unset $ac_var ;;
33909       esac ;;
33910     esac
33911   done
33912
33913   (set) 2>&1 |
33914     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33915     *${as_nl}ac_space=\ *)
33916       # `set' does not quote correctly, so add quotes (double-quote
33917       # substitution turns \\\\ into \\, and sed turns \\ into \).
33918       sed -n \
33919         "s/'/'\\\\''/g;
33920           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33921       ;; #(
33922     *)
33923       # `set' quotes correctly as required by POSIX, so do not add quotes.
33924       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33925       ;;
33926     esac |
33927     sort
33928 ) |
33929   sed '
33930      /^ac_cv_env_/b end
33931      t clear
33932      :clear
33933      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33934      t end
33935      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33936      :end' >>confcache
33937 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33938   if test -w "$cache_file"; then
33939     test "x$cache_file" != "x/dev/null" &&
33940       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33941 echo "$as_me: updating cache $cache_file" >&6;}
33942     cat confcache >$cache_file
33943   else
33944     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33945 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33946   fi
33947 fi
33948 rm -f confcache
33949
33950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33951 # Let make expand exec_prefix.
33952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33953
33954 DEFS=-DHAVE_CONFIG_H
33955
33956 ac_libobjs=
33957 ac_ltlibobjs=
33958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33959   # 1. Remove the extension, and $U if already installed.
33960   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33961   ac_i=`echo "$ac_i" | sed "$ac_script"`
33962   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33963   #    will be set to the directory where LIBOBJS objects are built.
33964   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33965   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33966 done
33967 LIBOBJS=$ac_libobjs
33968
33969 LTLIBOBJS=$ac_ltlibobjs
33970
33971
33972 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33973   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33974 Usually this means the macro was only invoked conditionally." >&5
33975 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33976 Usually this means the macro was only invoked conditionally." >&2;}
33977    { (exit 1); exit 1; }; }
33978 fi
33979 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33980   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33981 Usually this means the macro was only invoked conditionally." >&5
33982 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33983 Usually this means the macro was only invoked conditionally." >&2;}
33984    { (exit 1); exit 1; }; }
33985 fi
33986
33987 : ${CONFIG_STATUS=./config.status}
33988 ac_clean_files_save=$ac_clean_files
33989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33992 cat >$CONFIG_STATUS <<_ACEOF
33993 #! $SHELL
33994 # Generated by $as_me.
33995 # Run this file to recreate the current configuration.
33996 # Compiler output produced by configure, useful for debugging
33997 # configure, is in config.log if it exists.
33998
33999 debug=false
34000 ac_cs_recheck=false
34001 ac_cs_silent=false
34002 SHELL=\${CONFIG_SHELL-$SHELL}
34003 _ACEOF
34004
34005 cat >>$CONFIG_STATUS <<\_ACEOF
34006 ## --------------------- ##
34007 ## M4sh Initialization.  ##
34008 ## --------------------- ##
34009
34010 # Be Bourne compatible
34011 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34012   emulate sh
34013   NULLCMD=:
34014   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34015   # is contrary to our usage.  Disable this feature.
34016   alias -g '${1+"$@"}'='"$@"'
34017   setopt NO_GLOB_SUBST
34018 else
34019   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34020 fi
34021 BIN_SH=xpg4; export BIN_SH # for Tru64
34022 DUALCASE=1; export DUALCASE # for MKS sh
34023
34024
34025 # PATH needs CR
34026 # Avoid depending upon Character Ranges.
34027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34030 as_cr_digits='0123456789'
34031 as_cr_alnum=$as_cr_Letters$as_cr_digits
34032
34033 # The user is always right.
34034 if test "${PATH_SEPARATOR+set}" != set; then
34035   echo "#! /bin/sh" >conf$$.sh
34036   echo  "exit 0"   >>conf$$.sh
34037   chmod +x conf$$.sh
34038   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34039     PATH_SEPARATOR=';'
34040   else
34041     PATH_SEPARATOR=:
34042   fi
34043   rm -f conf$$.sh
34044 fi
34045
34046 # Support unset when possible.
34047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34048   as_unset=unset
34049 else
34050   as_unset=false
34051 fi
34052
34053
34054 # IFS
34055 # We need space, tab and new line, in precisely that order.  Quoting is
34056 # there to prevent editors from complaining about space-tab.
34057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34058 # splitting by setting IFS to empty value.)
34059 as_nl='
34060 '
34061 IFS=" ""        $as_nl"
34062
34063 # Find who we are.  Look in the path if we contain no directory separator.
34064 case $0 in
34065   *[\\/]* ) as_myself=$0 ;;
34066   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34067 for as_dir in $PATH
34068 do
34069   IFS=$as_save_IFS
34070   test -z "$as_dir" && as_dir=.
34071   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34072 done
34073 IFS=$as_save_IFS
34074
34075      ;;
34076 esac
34077 # We did not find ourselves, most probably we were run as `sh COMMAND'
34078 # in which case we are not to be found in the path.
34079 if test "x$as_myself" = x; then
34080   as_myself=$0
34081 fi
34082 if test ! -f "$as_myself"; then
34083   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34084   { (exit 1); exit 1; }
34085 fi
34086
34087 # Work around bugs in pre-3.0 UWIN ksh.
34088 for as_var in ENV MAIL MAILPATH
34089 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34090 done
34091 PS1='$ '
34092 PS2='> '
34093 PS4='+ '
34094
34095 # NLS nuisances.
34096 for as_var in \
34097   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34098   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34099   LC_TELEPHONE LC_TIME
34100 do
34101   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34102     eval $as_var=C; export $as_var
34103   else
34104     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34105   fi
34106 done
34107
34108 # Required to use basename.
34109 if expr a : '\(a\)' >/dev/null 2>&1 &&
34110    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34111   as_expr=expr
34112 else
34113   as_expr=false
34114 fi
34115
34116 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34117   as_basename=basename
34118 else
34119   as_basename=false
34120 fi
34121
34122
34123 # Name of the executable.
34124 as_me=`$as_basename -- "$0" ||
34125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34126          X"$0" : 'X\(//\)$' \| \
34127          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34128 echo X/"$0" |
34129     sed '/^.*\/\([^/][^/]*\)\/*$/{
34130             s//\1/
34131             q
34132           }
34133           /^X\/\(\/\/\)$/{
34134             s//\1/
34135             q
34136           }
34137           /^X\/\(\/\).*/{
34138             s//\1/
34139             q
34140           }
34141           s/.*/./; q'`
34142
34143 # CDPATH.
34144 $as_unset CDPATH
34145
34146
34147
34148   as_lineno_1=$LINENO
34149   as_lineno_2=$LINENO
34150   test "x$as_lineno_1" != "x$as_lineno_2" &&
34151   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34152
34153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34154   # uniformly replaced by the line number.  The first 'sed' inserts a
34155   # line-number line after each line using $LINENO; the second 'sed'
34156   # does the real work.  The second script uses 'N' to pair each
34157   # line-number line with the line containing $LINENO, and appends
34158   # trailing '-' during substitution so that $LINENO is not a special
34159   # case at line end.
34160   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34161   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34162   # E. McMahon (1931-1989) for sed's syntax.  :-)
34163   sed -n '
34164     p
34165     /[$]LINENO/=
34166   ' <$as_myself |
34167     sed '
34168       s/[$]LINENO.*/&-/
34169       t lineno
34170       b
34171       :lineno
34172       N
34173       :loop
34174       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34175       t loop
34176       s/-\n.*//
34177     ' >$as_me.lineno &&
34178   chmod +x "$as_me.lineno" ||
34179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34180    { (exit 1); exit 1; }; }
34181
34182   # Don't try to exec as it changes $[0], causing all sort of problems
34183   # (the dirname of $[0] is not the place where we might find the
34184   # original and so on.  Autoconf is especially sensitive to this).
34185   . "./$as_me.lineno"
34186   # Exit status is that of the last command.
34187   exit
34188 }
34189
34190
34191 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34192   as_dirname=dirname
34193 else
34194   as_dirname=false
34195 fi
34196
34197 ECHO_C= ECHO_N= ECHO_T=
34198 case `echo -n x` in
34199 -n*)
34200   case `echo 'x\c'` in
34201   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34202   *)   ECHO_C='\c';;
34203   esac;;
34204 *)
34205   ECHO_N='-n';;
34206 esac
34207
34208 if expr a : '\(a\)' >/dev/null 2>&1 &&
34209    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34210   as_expr=expr
34211 else
34212   as_expr=false
34213 fi
34214
34215 rm -f conf$$ conf$$.exe conf$$.file
34216 if test -d conf$$.dir; then
34217   rm -f conf$$.dir/conf$$.file
34218 else
34219   rm -f conf$$.dir
34220   mkdir conf$$.dir
34221 fi
34222 echo >conf$$.file
34223 if ln -s conf$$.file conf$$ 2>/dev/null; then
34224   as_ln_s='ln -s'
34225   # ... but there are two gotchas:
34226   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34227   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34228   # In both cases, we have to default to `cp -p'.
34229   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34230     as_ln_s='cp -p'
34231 elif ln conf$$.file conf$$ 2>/dev/null; then
34232   as_ln_s=ln
34233 else
34234   as_ln_s='cp -p'
34235 fi
34236 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34237 rmdir conf$$.dir 2>/dev/null
34238
34239 if mkdir -p . 2>/dev/null; then
34240   as_mkdir_p=:
34241 else
34242   test -d ./-p && rmdir ./-p
34243   as_mkdir_p=false
34244 fi
34245
34246 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34247 # systems may use methods other than mode bits to determine executability.
34248 cat >conf$$.file <<_ASEOF
34249 #! /bin/sh
34250 exit 0
34251 _ASEOF
34252 chmod +x conf$$.file
34253 if test -x conf$$.file >/dev/null 2>&1; then
34254   as_executable_p="test -x"
34255 else
34256   as_executable_p=:
34257 fi
34258 rm -f conf$$.file
34259
34260 # Sed expression to map a string onto a valid CPP name.
34261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34262
34263 # Sed expression to map a string onto a valid variable name.
34264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34265
34266
34267 exec 6>&1
34268
34269 # Save the log message, to keep $[0] and so on meaningful, and to
34270 # report actual input values of CONFIG_FILES etc. instead of their
34271 # values after options handling.
34272 ac_log="
34273 This file was extended by llvm $as_me 2.1svn, which was
34274 generated by GNU Autoconf 2.60.  Invocation command line was
34275
34276   CONFIG_FILES    = $CONFIG_FILES
34277   CONFIG_HEADERS  = $CONFIG_HEADERS
34278   CONFIG_LINKS    = $CONFIG_LINKS
34279   CONFIG_COMMANDS = $CONFIG_COMMANDS
34280   $ $0 $@
34281
34282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34283 "
34284
34285 _ACEOF
34286
34287 cat >>$CONFIG_STATUS <<_ACEOF
34288 # Files that config.status was made for.
34289 config_files="$ac_config_files"
34290 config_headers="$ac_config_headers"
34291 config_commands="$ac_config_commands"
34292
34293 _ACEOF
34294
34295 cat >>$CONFIG_STATUS <<\_ACEOF
34296 ac_cs_usage="\
34297 \`$as_me' instantiates files from templates according to the
34298 current configuration.
34299
34300 Usage: $0 [OPTIONS] [FILE]...
34301
34302   -h, --help       print this help, then exit
34303   -V, --version    print version number, then exit
34304   -q, --quiet      do not print progress messages
34305   -d, --debug      don't remove temporary files
34306       --recheck    update $as_me by reconfiguring in the same conditions
34307   --file=FILE[:TEMPLATE]
34308                    instantiate the configuration file FILE
34309   --header=FILE[:TEMPLATE]
34310                    instantiate the configuration header FILE
34311
34312 Configuration files:
34313 $config_files
34314
34315 Configuration headers:
34316 $config_headers
34317
34318 Configuration commands:
34319 $config_commands
34320
34321 Report bugs to <bug-autoconf@gnu.org>."
34322
34323 _ACEOF
34324 cat >>$CONFIG_STATUS <<_ACEOF
34325 ac_cs_version="\\
34326 llvm config.status 2.1svn
34327 configured by $0, generated by GNU Autoconf 2.60,
34328   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34329
34330 Copyright (C) 2006 Free Software Foundation, Inc.
34331 This config.status script is free software; the Free Software Foundation
34332 gives unlimited permission to copy, distribute and modify it."
34333
34334 ac_pwd='$ac_pwd'
34335 srcdir='$srcdir'
34336 INSTALL='$INSTALL'
34337 _ACEOF
34338
34339 cat >>$CONFIG_STATUS <<\_ACEOF
34340 # If no file are specified by the user, then we need to provide default
34341 # value.  By we need to know if files were specified by the user.
34342 ac_need_defaults=:
34343 while test $# != 0
34344 do
34345   case $1 in
34346   --*=*)
34347     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34348     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34349     ac_shift=:
34350     ;;
34351   *)
34352     ac_option=$1
34353     ac_optarg=$2
34354     ac_shift=shift
34355     ;;
34356   esac
34357
34358   case $ac_option in
34359   # Handling of the options.
34360   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34361     ac_cs_recheck=: ;;
34362   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34363     echo "$ac_cs_version"; exit ;;
34364   --debug | --debu | --deb | --de | --d | -d )
34365     debug=: ;;
34366   --file | --fil | --fi | --f )
34367     $ac_shift
34368     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34369     ac_need_defaults=false;;
34370   --header | --heade | --head | --hea )
34371     $ac_shift
34372     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34373     ac_need_defaults=false;;
34374   --he | --h)
34375     # Conflict between --help and --header
34376     { echo "$as_me: error: ambiguous option: $1
34377 Try \`$0 --help' for more information." >&2
34378    { (exit 1); exit 1; }; };;
34379   --help | --hel | -h )
34380     echo "$ac_cs_usage"; exit ;;
34381   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34382   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34383     ac_cs_silent=: ;;
34384
34385   # This is an error.
34386   -*) { echo "$as_me: error: unrecognized option: $1
34387 Try \`$0 --help' for more information." >&2
34388    { (exit 1); exit 1; }; } ;;
34389
34390   *) ac_config_targets="$ac_config_targets $1"
34391      ac_need_defaults=false ;;
34392
34393   esac
34394   shift
34395 done
34396
34397 ac_configure_extra_args=
34398
34399 if $ac_cs_silent; then
34400   exec 6>/dev/null
34401   ac_configure_extra_args="$ac_configure_extra_args --silent"
34402 fi
34403
34404 _ACEOF
34405 cat >>$CONFIG_STATUS <<_ACEOF
34406 if \$ac_cs_recheck; then
34407   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34408   CONFIG_SHELL=$SHELL
34409   export CONFIG_SHELL
34410   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34411 fi
34412
34413 _ACEOF
34414 cat >>$CONFIG_STATUS <<\_ACEOF
34415 exec 5>>config.log
34416 {
34417   echo
34418   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34419 ## Running $as_me. ##
34420 _ASBOX
34421   echo "$ac_log"
34422 } >&5
34423
34424 _ACEOF
34425 cat >>$CONFIG_STATUS <<_ACEOF
34426 #
34427 # INIT-COMMANDS
34428 #
34429 llvm_src="${srcdir}"
34430
34431 _ACEOF
34432
34433 cat >>$CONFIG_STATUS <<\_ACEOF
34434
34435 # Handling of arguments.
34436 for ac_config_target in $ac_config_targets
34437 do
34438   case $ac_config_target in
34439     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34440     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34441     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34442     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34443     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34444     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34445     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34446     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34447     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34448     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34449     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34450     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34451     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34452     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34453     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34454     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34455     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34456     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34457     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34458     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34459
34460   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34461 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34462    { (exit 1); exit 1; }; };;
34463   esac
34464 done
34465
34466
34467 # If the user did not use the arguments to specify the items to instantiate,
34468 # then the envvar interface is used.  Set only those that are not.
34469 # We use the long form for the default assignment because of an extremely
34470 # bizarre bug on SunOS 4.1.3.
34471 if $ac_need_defaults; then
34472   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34473   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34474   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34475 fi
34476
34477 # Have a temporary directory for convenience.  Make it in the build tree
34478 # simply because there is no reason against having it here, and in addition,
34479 # creating and moving files from /tmp can sometimes cause problems.
34480 # Hook for its removal unless debugging.
34481 # Note that there is a small window in which the directory will not be cleaned:
34482 # after its creation but before its name has been assigned to `$tmp'.
34483 $debug ||
34484 {
34485   tmp=
34486   trap 'exit_status=$?
34487   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34488 ' 0
34489   trap '{ (exit 1); exit 1; }' 1 2 13 15
34490 }
34491 # Create a (secure) tmp directory for tmp files.
34492
34493 {
34494   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34495   test -n "$tmp" && test -d "$tmp"
34496 }  ||
34497 {
34498   tmp=./conf$$-$RANDOM
34499   (umask 077 && mkdir "$tmp")
34500 } ||
34501 {
34502    echo "$me: cannot create a temporary directory in ." >&2
34503    { (exit 1); exit 1; }
34504 }
34505
34506 #
34507 # Set up the sed scripts for CONFIG_FILES section.
34508 #
34509
34510 # No need to generate the scripts if there are no CONFIG_FILES.
34511 # This happens for instance when ./config.status config.h
34512 if test -n "$CONFIG_FILES"; then
34513
34514 _ACEOF
34515
34516
34517
34518 ac_delim='%!_!# '
34519 for ac_last_try in false false false false false :; do
34520   cat >conf$$subs.sed <<_ACEOF
34521 SHELL!$SHELL$ac_delim
34522 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34523 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34524 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34525 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34526 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34527 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34528 exec_prefix!$exec_prefix$ac_delim
34529 prefix!$prefix$ac_delim
34530 program_transform_name!$program_transform_name$ac_delim
34531 bindir!$bindir$ac_delim
34532 sbindir!$sbindir$ac_delim
34533 libexecdir!$libexecdir$ac_delim
34534 datarootdir!$datarootdir$ac_delim
34535 datadir!$datadir$ac_delim
34536 sysconfdir!$sysconfdir$ac_delim
34537 sharedstatedir!$sharedstatedir$ac_delim
34538 localstatedir!$localstatedir$ac_delim
34539 includedir!$includedir$ac_delim
34540 oldincludedir!$oldincludedir$ac_delim
34541 docdir!$docdir$ac_delim
34542 infodir!$infodir$ac_delim
34543 htmldir!$htmldir$ac_delim
34544 dvidir!$dvidir$ac_delim
34545 pdfdir!$pdfdir$ac_delim
34546 psdir!$psdir$ac_delim
34547 libdir!$libdir$ac_delim
34548 localedir!$localedir$ac_delim
34549 mandir!$mandir$ac_delim
34550 DEFS!$DEFS$ac_delim
34551 ECHO_C!$ECHO_C$ac_delim
34552 ECHO_N!$ECHO_N$ac_delim
34553 ECHO_T!$ECHO_T$ac_delim
34554 LIBS!$LIBS$ac_delim
34555 build_alias!$build_alias$ac_delim
34556 host_alias!$host_alias$ac_delim
34557 target_alias!$target_alias$ac_delim
34558 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34559 subdirs!$subdirs$ac_delim
34560 build!$build$ac_delim
34561 build_cpu!$build_cpu$ac_delim
34562 build_vendor!$build_vendor$ac_delim
34563 build_os!$build_os$ac_delim
34564 host!$host$ac_delim
34565 host_cpu!$host_cpu$ac_delim
34566 host_vendor!$host_vendor$ac_delim
34567 host_os!$host_os$ac_delim
34568 target!$target$ac_delim
34569 target_cpu!$target_cpu$ac_delim
34570 target_vendor!$target_vendor$ac_delim
34571 target_os!$target_os$ac_delim
34572 OS!$OS$ac_delim
34573 LINKALL!$LINKALL$ac_delim
34574 NOLINKALL!$NOLINKALL$ac_delim
34575 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34576 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34577 ARCH!$ARCH$ac_delim
34578 ENDIAN!$ENDIAN$ac_delim
34579 CC!$CC$ac_delim
34580 CFLAGS!$CFLAGS$ac_delim
34581 LDFLAGS!$LDFLAGS$ac_delim
34582 CPPFLAGS!$CPPFLAGS$ac_delim
34583 ac_ct_CC!$ac_ct_CC$ac_delim
34584 EXEEXT!$EXEEXT$ac_delim
34585 OBJEXT!$OBJEXT$ac_delim
34586 CPP!$CPP$ac_delim
34587 GREP!$GREP$ac_delim
34588 EGREP!$EGREP$ac_delim
34589 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34590 BUILD_CC!$BUILD_CC$ac_delim
34591 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34592 CVSBUILD!$CVSBUILD$ac_delim
34593 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34594 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34595 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34596 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34597 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34598 JIT!$JIT$ac_delim
34599 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34600 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34601 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34602 ENABLE_PIC!$ENABLE_PIC$ac_delim
34603 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34604 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34605 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34606 CXX!$CXX$ac_delim
34607 CXXFLAGS!$CXXFLAGS$ac_delim
34608 ac_ct_CXX!$ac_ct_CXX$ac_delim
34609 LEX!$LEX$ac_delim
34610 LEXLIB!$LEXLIB$ac_delim
34611 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34612 FLEX!$FLEX$ac_delim
34613 YACC!$YACC$ac_delim
34614 YFLAGS!$YFLAGS$ac_delim
34615 BISON!$BISON$ac_delim
34616 NM!$NM$ac_delim
34617 ifGNUmake!$ifGNUmake$ac_delim
34618 _ACEOF
34619
34620   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34621     break
34622   elif $ac_last_try; then
34623     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34625    { (exit 1); exit 1; }; }
34626   else
34627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34628   fi
34629 done
34630
34631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34632 if test -n "$ac_eof"; then
34633   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34634   ac_eof=`expr $ac_eof + 1`
34635 fi
34636
34637 cat >>$CONFIG_STATUS <<_ACEOF
34638 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34640 _ACEOF
34641 sed '
34642 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34643 s/^/s,@/; s/!/@,|#_!!_#|/
34644 :n
34645 t n
34646 s/'"$ac_delim"'$/,g/; t
34647 s/$/\\/; p
34648 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34649 ' >>$CONFIG_STATUS <conf$$subs.sed
34650 rm -f conf$$subs.sed
34651 cat >>$CONFIG_STATUS <<_ACEOF
34652 CEOF$ac_eof
34653 _ACEOF
34654
34655
34656 ac_delim='%!_!# '
34657 for ac_last_try in false false false false false :; do
34658   cat >conf$$subs.sed <<_ACEOF
34659 LN_S!$LN_S$ac_delim
34660 CMP!$CMP$ac_delim
34661 CP!$CP$ac_delim
34662 DATE!$DATE$ac_delim
34663 FIND!$FIND$ac_delim
34664 MKDIR!$MKDIR$ac_delim
34665 MV!$MV$ac_delim
34666 RANLIB!$RANLIB$ac_delim
34667 RM!$RM$ac_delim
34668 SED!$SED$ac_delim
34669 TAR!$TAR$ac_delim
34670 BINPWD!$BINPWD$ac_delim
34671 GRAPHVIZ!$GRAPHVIZ$ac_delim
34672 DOT!$DOT$ac_delim
34673 GV!$GV$ac_delim
34674 DOTTY!$DOTTY$ac_delim
34675 PERL!$PERL$ac_delim
34676 HAVE_PERL!$HAVE_PERL$ac_delim
34677 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34678 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34679 INSTALL_DATA!$INSTALL_DATA$ac_delim
34680 BZIP2!$BZIP2$ac_delim
34681 DOXYGEN!$DOXYGEN$ac_delim
34682 GROFF!$GROFF$ac_delim
34683 GZIP!$GZIP$ac_delim
34684 POD2HTML!$POD2HTML$ac_delim
34685 POD2MAN!$POD2MAN$ac_delim
34686 RUNTEST!$RUNTEST$ac_delim
34687 TCLSH!$TCLSH$ac_delim
34688 ZIP!$ZIP$ac_delim
34689 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34690 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34691 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34692 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34693 LIBADD_DL!$LIBADD_DL$ac_delim
34694 ECHO!$ECHO$ac_delim
34695 AR!$AR$ac_delim
34696 STRIP!$STRIP$ac_delim
34697 CXXCPP!$CXXCPP$ac_delim
34698 F77!$F77$ac_delim
34699 FFLAGS!$FFLAGS$ac_delim
34700 ac_ct_F77!$ac_ct_F77$ac_delim
34701 LIBTOOL!$LIBTOOL$ac_delim
34702 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34703 LLVMGCC!$LLVMGCC$ac_delim
34704 LLVMGXX!$LLVMGXX$ac_delim
34705 USE_UDIS86!$USE_UDIS86$ac_delim
34706 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34707 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34708 ALLOCA!$ALLOCA$ac_delim
34709 MMAP_FILE!$MMAP_FILE$ac_delim
34710 LLVMCC1!$LLVMCC1$ac_delim
34711 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34712 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34713 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34714 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34715 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34716 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34717 SHLIBEXT!$SHLIBEXT$ac_delim
34718 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34719 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34720 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34721 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34722 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34723 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34724 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34725 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34726 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34727 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34728 LIBOBJS!$LIBOBJS$ac_delim
34729 LTLIBOBJS!$LTLIBOBJS$ac_delim
34730 _ACEOF
34731
34732   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
34733     break
34734   elif $ac_last_try; then
34735     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34736 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34737    { (exit 1); exit 1; }; }
34738   else
34739     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34740   fi
34741 done
34742
34743 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34744 if test -n "$ac_eof"; then
34745   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34746   ac_eof=`expr $ac_eof + 1`
34747 fi
34748
34749 cat >>$CONFIG_STATUS <<_ACEOF
34750 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34752 _ACEOF
34753 sed '
34754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34755 s/^/s,@/; s/!/@,|#_!!_#|/
34756 :n
34757 t n
34758 s/'"$ac_delim"'$/,g/; t
34759 s/$/\\/; p
34760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34761 ' >>$CONFIG_STATUS <conf$$subs.sed
34762 rm -f conf$$subs.sed
34763 cat >>$CONFIG_STATUS <<_ACEOF
34764 :end
34765 s/|#_!!_#|//g
34766 CEOF$ac_eof
34767 _ACEOF
34768
34769
34770 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34771 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34772 # trailing colons and then remove the whole line if VPATH becomes empty
34773 # (actually we leave an empty line to preserve line numbers).
34774 if test "x$srcdir" = x.; then
34775   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34776 s/:*\$(srcdir):*/:/
34777 s/:*\${srcdir}:*/:/
34778 s/:*@srcdir@:*/:/
34779 s/^\([^=]*=[     ]*\):*/\1/
34780 s/:*$//
34781 s/^[^=]*=[       ]*$//
34782 }'
34783 fi
34784
34785 cat >>$CONFIG_STATUS <<\_ACEOF
34786 fi # test -n "$CONFIG_FILES"
34787
34788
34789 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34790 do
34791   case $ac_tag in
34792   :[FHLC]) ac_mode=$ac_tag; continue;;
34793   esac
34794   case $ac_mode$ac_tag in
34795   :[FHL]*:*);;
34796   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34797 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34798    { (exit 1); exit 1; }; };;
34799   :[FH]-) ac_tag=-:-;;
34800   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34801   esac
34802   ac_save_IFS=$IFS
34803   IFS=:
34804   set x $ac_tag
34805   IFS=$ac_save_IFS
34806   shift
34807   ac_file=$1
34808   shift
34809
34810   case $ac_mode in
34811   :L) ac_source=$1;;
34812   :[FH])
34813     ac_file_inputs=
34814     for ac_f
34815     do
34816       case $ac_f in
34817       -) ac_f="$tmp/stdin";;
34818       *) # Look for the file first in the build tree, then in the source tree
34819          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34820          # because $ac_f cannot contain `:'.
34821          test -f "$ac_f" ||
34822            case $ac_f in
34823            [\\/$]*) false;;
34824            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34825            esac ||
34826            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34827 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34828    { (exit 1); exit 1; }; };;
34829       esac
34830       ac_file_inputs="$ac_file_inputs $ac_f"
34831     done
34832
34833     # Let's still pretend it is `configure' which instantiates (i.e., don't
34834     # use $as_me), people would be surprised to read:
34835     #    /* config.h.  Generated by config.status.  */
34836     configure_input="Generated from "`IFS=:
34837           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34838     if test x"$ac_file" != x-; then
34839       configure_input="$ac_file.  $configure_input"
34840       { echo "$as_me:$LINENO: creating $ac_file" >&5
34841 echo "$as_me: creating $ac_file" >&6;}
34842     fi
34843
34844     case $ac_tag in
34845     *:-:* | *:-) cat >"$tmp/stdin";;
34846     esac
34847     ;;
34848   esac
34849
34850   ac_dir=`$as_dirname -- "$ac_file" ||
34851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34852          X"$ac_file" : 'X\(//\)[^/]' \| \
34853          X"$ac_file" : 'X\(//\)$' \| \
34854          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34855 echo X"$ac_file" |
34856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34857             s//\1/
34858             q
34859           }
34860           /^X\(\/\/\)[^/].*/{
34861             s//\1/
34862             q
34863           }
34864           /^X\(\/\/\)$/{
34865             s//\1/
34866             q
34867           }
34868           /^X\(\/\).*/{
34869             s//\1/
34870             q
34871           }
34872           s/.*/./; q'`
34873   { as_dir="$ac_dir"
34874   case $as_dir in #(
34875   -*) as_dir=./$as_dir;;
34876   esac
34877   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34878     as_dirs=
34879     while :; do
34880       case $as_dir in #(
34881       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34882       *) as_qdir=$as_dir;;
34883       esac
34884       as_dirs="'$as_qdir' $as_dirs"
34885       as_dir=`$as_dirname -- "$as_dir" ||
34886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34887          X"$as_dir" : 'X\(//\)[^/]' \| \
34888          X"$as_dir" : 'X\(//\)$' \| \
34889          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34890 echo X"$as_dir" |
34891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34892             s//\1/
34893             q
34894           }
34895           /^X\(\/\/\)[^/].*/{
34896             s//\1/
34897             q
34898           }
34899           /^X\(\/\/\)$/{
34900             s//\1/
34901             q
34902           }
34903           /^X\(\/\).*/{
34904             s//\1/
34905             q
34906           }
34907           s/.*/./; q'`
34908       test -d "$as_dir" && break
34909     done
34910     test -z "$as_dirs" || eval "mkdir $as_dirs"
34911   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34912 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34913    { (exit 1); exit 1; }; }; }
34914   ac_builddir=.
34915
34916 case "$ac_dir" in
34917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34918 *)
34919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34920   # A ".." for each directory in $ac_dir_suffix.
34921   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34922   case $ac_top_builddir_sub in
34923   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34924   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34925   esac ;;
34926 esac
34927 ac_abs_top_builddir=$ac_pwd
34928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34929 # for backward compatibility:
34930 ac_top_builddir=$ac_top_build_prefix
34931
34932 case $srcdir in
34933   .)  # We are building in place.
34934     ac_srcdir=.
34935     ac_top_srcdir=$ac_top_builddir_sub
34936     ac_abs_top_srcdir=$ac_pwd ;;
34937   [\\/]* | ?:[\\/]* )  # Absolute name.
34938     ac_srcdir=$srcdir$ac_dir_suffix;
34939     ac_top_srcdir=$srcdir
34940     ac_abs_top_srcdir=$srcdir ;;
34941   *) # Relative name.
34942     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34943     ac_top_srcdir=$ac_top_build_prefix$srcdir
34944     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34945 esac
34946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34947
34948
34949   case $ac_mode in
34950   :F)
34951   #
34952   # CONFIG_FILE
34953   #
34954
34955   case $INSTALL in
34956   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34957   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34958   esac
34959 _ACEOF
34960
34961 cat >>$CONFIG_STATUS <<\_ACEOF
34962 # If the template does not know about datarootdir, expand it.
34963 # FIXME: This hack should be removed a few years after 2.60.
34964 ac_datarootdir_hack=; ac_datarootdir_seen=
34965
34966 case `sed -n '/datarootdir/ {
34967   p
34968   q
34969 }
34970 /@datadir@/p
34971 /@docdir@/p
34972 /@infodir@/p
34973 /@localedir@/p
34974 /@mandir@/p
34975 ' $ac_file_inputs` in
34976 *datarootdir*) ac_datarootdir_seen=yes;;
34977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34978   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34979 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34980 _ACEOF
34981 cat >>$CONFIG_STATUS <<_ACEOF
34982   ac_datarootdir_hack='
34983   s&@datadir@&$datadir&g
34984   s&@docdir@&$docdir&g
34985   s&@infodir@&$infodir&g
34986   s&@localedir@&$localedir&g
34987   s&@mandir@&$mandir&g
34988     s&\\\${datarootdir}&$datarootdir&g' ;;
34989 esac
34990 _ACEOF
34991
34992 # Neutralize VPATH when `$srcdir' = `.'.
34993 # Shell code in configure.ac might set extrasub.
34994 # FIXME: do we really want to maintain this feature?
34995 cat >>$CONFIG_STATUS <<_ACEOF
34996   sed "$ac_vpsub
34997 $extrasub
34998 _ACEOF
34999 cat >>$CONFIG_STATUS <<\_ACEOF
35000 :t
35001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35002 s&@configure_input@&$configure_input&;t t
35003 s&@top_builddir@&$ac_top_builddir_sub&;t t
35004 s&@srcdir@&$ac_srcdir&;t t
35005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35006 s&@top_srcdir@&$ac_top_srcdir&;t t
35007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35008 s&@builddir@&$ac_builddir&;t t
35009 s&@abs_builddir@&$ac_abs_builddir&;t t
35010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35011 s&@INSTALL@&$ac_INSTALL&;t t
35012 $ac_datarootdir_hack
35013 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35014
35015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35016   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35017   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35018   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35019 which seems to be undefined.  Please make sure it is defined." >&5
35020 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35021 which seems to be undefined.  Please make sure it is defined." >&2;}
35022
35023   rm -f "$tmp/stdin"
35024   case $ac_file in
35025   -) cat "$tmp/out"; rm -f "$tmp/out";;
35026   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35027   esac
35028  ;;
35029   :H)
35030   #
35031   # CONFIG_HEADER
35032   #
35033 _ACEOF
35034
35035 # Transform confdefs.h into a sed script `conftest.defines', that
35036 # substitutes the proper values into config.h.in to produce config.h.
35037 rm -f conftest.defines conftest.tail
35038 # First, append a space to every undef/define line, to ease matching.
35039 echo 's/$/ /' >conftest.defines
35040 # Then, protect against being on the right side of a sed subst, or in
35041 # an unquoted here document, in config.status.  If some macros were
35042 # called several times there might be several #defines for the same
35043 # symbol, which is useless.  But do not sort them, since the last
35044 # AC_DEFINE must be honored.
35045 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35046 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35047 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35048 # PARAMS is the parameter list in the macro definition--in most cases, it's
35049 # just an empty string.
35050 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35051 ac_dB='\\)[      (].*,\\1define\\2'
35052 ac_dC=' '
35053 ac_dD=' ,'
35054
35055 uniq confdefs.h |
35056   sed -n '
35057         t rset
35058         :rset
35059         s/^[     ]*#[    ]*define[       ][      ]*//
35060         t ok
35061         d
35062         :ok
35063         s/[\\&,]/\\&/g
35064         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35065         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35066   ' >>conftest.defines
35067
35068 # Remove the space that was appended to ease matching.
35069 # Then replace #undef with comments.  This is necessary, for
35070 # example, in the case of _POSIX_SOURCE, which is predefined and required
35071 # on some systems where configure will not decide to define it.
35072 # (The regexp can be short, since the line contains either #define or #undef.)
35073 echo 's/ $//
35074 s,^[     #]*u.*,/* & */,' >>conftest.defines
35075
35076 # Break up conftest.defines:
35077 ac_max_sed_lines=50
35078
35079 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35080 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35081 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35082 # et cetera.
35083 ac_in='$ac_file_inputs'
35084 ac_out='"$tmp/out1"'
35085 ac_nxt='"$tmp/out2"'
35086
35087 while :
35088 do
35089   # Write a here document:
35090     cat >>$CONFIG_STATUS <<_ACEOF
35091     # First, check the format of the line:
35092     cat >"\$tmp/defines.sed" <<\\CEOF
35093 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35094 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35095 b
35096 :def
35097 _ACEOF
35098   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35099   echo 'CEOF
35100     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35101   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35102   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35103   grep . conftest.tail >/dev/null || break
35104   rm -f conftest.defines
35105   mv conftest.tail conftest.defines
35106 done
35107 rm -f conftest.defines conftest.tail
35108
35109 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35110 cat >>$CONFIG_STATUS <<\_ACEOF
35111   if test x"$ac_file" != x-; then
35112     echo "/* $configure_input  */" >"$tmp/config.h"
35113     cat "$ac_result" >>"$tmp/config.h"
35114     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35115       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35116 echo "$as_me: $ac_file is unchanged" >&6;}
35117     else
35118       rm -f $ac_file
35119       mv "$tmp/config.h" $ac_file
35120     fi
35121   else
35122     echo "/* $configure_input  */"
35123     cat "$ac_result"
35124   fi
35125   rm -f "$tmp/out12"
35126  ;;
35127
35128   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35129 echo "$as_me: executing $ac_file commands" >&6;}
35130  ;;
35131   esac
35132
35133
35134   case $ac_file$ac_mode in
35135     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35136    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35137     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35138    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35139     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35140    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35141     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35142    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35143     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35144    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35145     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35146    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35147     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35148    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35149     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35150    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35151     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35152    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35153     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35154    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35155
35156   esac
35157 done # for ac_tag
35158
35159
35160 { (exit 0); exit 0; }
35161 _ACEOF
35162 chmod +x $CONFIG_STATUS
35163 ac_clean_files=$ac_clean_files_save
35164
35165
35166 # configure is writing to config.log, and then calls config.status.
35167 # config.status does its own redirection, appending to config.log.
35168 # Unfortunately, on DOS this fails, as config.log is still kept open
35169 # by configure, so config.status won't be able to write to it; its
35170 # output is simply discarded.  So we exec the FD to /dev/null,
35171 # effectively closing config.log, so it can be properly (re)opened and
35172 # appended to by config.status.  When coming back to configure, we
35173 # need to make the FD available again.
35174 if test "$no_create" != yes; then
35175   ac_cs_success=:
35176   ac_config_status_args=
35177   test "$silent" = yes &&
35178     ac_config_status_args="$ac_config_status_args --quiet"
35179   exec 5>/dev/null
35180   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35181   exec 5>>config.log
35182   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35183   # would make configure fail if this is the last instruction.
35184   $ac_cs_success || { (exit 1); exit 1; }
35185 fi
35186
35187 #
35188 # CONFIG_SUBDIRS section.
35189 #
35190 if test "$no_recursion" != yes; then
35191
35192   # Remove --cache-file and --srcdir arguments so they do not pile up.
35193   ac_sub_configure_args=
35194   ac_prev=
35195   eval "set x $ac_configure_args"
35196   shift
35197   for ac_arg
35198   do
35199     if test -n "$ac_prev"; then
35200       ac_prev=
35201       continue
35202     fi
35203     case $ac_arg in
35204     -cache-file | --cache-file | --cache-fil | --cache-fi \
35205     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35206       ac_prev=cache_file ;;
35207     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35208     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35209     | --c=*)
35210       ;;
35211     --config-cache | -C)
35212       ;;
35213     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35214       ac_prev=srcdir ;;
35215     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35216       ;;
35217     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35218       ac_prev=prefix ;;
35219     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35220       ;;
35221     *)
35222       case $ac_arg in
35223       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35224       esac
35225       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35226     esac
35227   done
35228
35229   # Always prepend --prefix to ensure using the same prefix
35230   # in subdir configurations.
35231   ac_arg="--prefix=$prefix"
35232   case $ac_arg in
35233   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35234   esac
35235   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35236
35237   ac_popdir=`pwd`
35238   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35239
35240     # Do not complain, so a configure script can configure whichever
35241     # parts of a large source tree are present.
35242     test -d "$srcdir/$ac_dir" || continue
35243
35244     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35245     echo "$as_me:$LINENO: $ac_msg" >&5
35246     echo "$ac_msg" >&6
35247     { as_dir="$ac_dir"
35248   case $as_dir in #(
35249   -*) as_dir=./$as_dir;;
35250   esac
35251   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35252     as_dirs=
35253     while :; do
35254       case $as_dir in #(
35255       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35256       *) as_qdir=$as_dir;;
35257       esac
35258       as_dirs="'$as_qdir' $as_dirs"
35259       as_dir=`$as_dirname -- "$as_dir" ||
35260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35261          X"$as_dir" : 'X\(//\)[^/]' \| \
35262          X"$as_dir" : 'X\(//\)$' \| \
35263          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35264 echo X"$as_dir" |
35265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35266             s//\1/
35267             q
35268           }
35269           /^X\(\/\/\)[^/].*/{
35270             s//\1/
35271             q
35272           }
35273           /^X\(\/\/\)$/{
35274             s//\1/
35275             q
35276           }
35277           /^X\(\/\).*/{
35278             s//\1/
35279             q
35280           }
35281           s/.*/./; q'`
35282       test -d "$as_dir" && break
35283     done
35284     test -z "$as_dirs" || eval "mkdir $as_dirs"
35285   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35286 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35287    { (exit 1); exit 1; }; }; }
35288     ac_builddir=.
35289
35290 case "$ac_dir" in
35291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35292 *)
35293   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35294   # A ".." for each directory in $ac_dir_suffix.
35295   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35296   case $ac_top_builddir_sub in
35297   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35298   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35299   esac ;;
35300 esac
35301 ac_abs_top_builddir=$ac_pwd
35302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35303 # for backward compatibility:
35304 ac_top_builddir=$ac_top_build_prefix
35305
35306 case $srcdir in
35307   .)  # We are building in place.
35308     ac_srcdir=.
35309     ac_top_srcdir=$ac_top_builddir_sub
35310     ac_abs_top_srcdir=$ac_pwd ;;
35311   [\\/]* | ?:[\\/]* )  # Absolute name.
35312     ac_srcdir=$srcdir$ac_dir_suffix;
35313     ac_top_srcdir=$srcdir
35314     ac_abs_top_srcdir=$srcdir ;;
35315   *) # Relative name.
35316     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35317     ac_top_srcdir=$ac_top_build_prefix$srcdir
35318     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35319 esac
35320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35321
35322
35323     cd "$ac_dir"
35324
35325     # Check for guested configure; otherwise get Cygnus style configure.
35326     if test -f "$ac_srcdir/configure.gnu"; then
35327       ac_sub_configure=$ac_srcdir/configure.gnu
35328     elif test -f "$ac_srcdir/configure"; then
35329       ac_sub_configure=$ac_srcdir/configure
35330     elif test -f "$ac_srcdir/configure.in"; then
35331       # This should be Cygnus configure.
35332       ac_sub_configure=$ac_aux_dir/configure
35333     else
35334       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35335 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35336       ac_sub_configure=
35337     fi
35338
35339     # The recursion is here.
35340     if test -n "$ac_sub_configure"; then
35341       # Make the cache file name correct relative to the subdirectory.
35342       case $cache_file in
35343       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35344       *) # Relative name.
35345         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35346       esac
35347
35348       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35349 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35350       # The eval makes quoting arguments work.
35351       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35352            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35353         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35354 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35355    { (exit 1); exit 1; }; }
35356     fi
35357
35358     cd "$ac_popdir"
35359   done
35360 fi
35361
35362