61378672a454cd45bb9821f1652b750e0f48aede
[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.0cvs.
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-2005 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.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 DEBUG_RUNTIME
834 JIT
835 TARGET_HAS_JIT
836 ENABLE_DOXYGEN
837 ENABLE_THREADS
838 ENABLE_PIC
839 TARGETS_TO_BUILD
840 ENABLE_CBE_PRINTF_A
841 EXTRA_OPTIONS
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 LEX
846 LEXLIB
847 LEX_OUTPUT_ROOT
848 FLEX
849 YACC
850 YFLAGS
851 BISON
852 NM
853 ifGNUmake
854 LN_S
855 CMP
856 CP
857 DATE
858 FIND
859 MKDIR
860 MV
861 RANLIB
862 RM
863 SED
864 TAR
865 BINPWD
866 GRAPHVIZ
867 DOT
868 GV
869 DOTTY
870 PERL
871 HAVE_PERL
872 INSTALL_PROGRAM
873 INSTALL_SCRIPT
874 INSTALL_DATA
875 BZIP2
876 DOXYGEN
877 GROFF
878 GZIP
879 POD2HTML
880 POD2MAN
881 RUNTEST
882 TCLSH
883 ZIP
884 INSTALL_LTDL_TRUE
885 INSTALL_LTDL_FALSE
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
888 LIBADD_DL
889 ECHO
890 AR
891 STRIP
892 CXXCPP
893 F77
894 FFLAGS
895 ac_ct_F77
896 LIBTOOL
897 ETAGSFLAGS
898 LLVMGCC
899 LLVMGXX
900 HAVE_PTHREAD
901 HUGE_VAL_SANITY
902 ALLOCA
903 MMAP_FILE
904 LLVMCC1
905 LLVMCC1PLUS
906 LLVMGCCDIR
907 LLVMGCC_VERSION
908 LLVMGCC_MAJVERS
909 SHLIBEXT
910 LLVM_PREFIX
911 LLVM_BINDIR
912 LLVM_LIBDIR
913 LLVM_DATADIR
914 LLVM_DOCSDIR
915 LLVM_ETCDIR
916 LLVM_INCLUDEDIR
917 LLVM_INFODIR
918 LLVM_MANDIR
919 LLVM_CONFIGTIME
920 LIBOBJS
921 LTLIBOBJS'
922 ac_subst_files=''
923       ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 CPPFLAGS
930 CPP
931 CXX
932 CXXFLAGS
933 CCC
934 YACC
935 YFLAGS
936 CXXCPP
937 F77
938 FFLAGS'
939 ac_subdirs_all='projects/sample
940 projects/Stacker
941 projects/privbracket
942 projects/llvm-test
943 projects/llvm-reopt
944 projects/llvm-gcc
945 projects/llvm-java
946 projects/llvm-tv
947 projects/llvm-poolalloc
948 projects/llvm-kernel'
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000   # If the previous option needs an argument, assign it.
1001   if test -n "$ac_prev"; then
1002     eval $ac_prev=\$ac_option
1003     ac_prev=
1004     continue
1005   fi
1006
1007   case $ac_option in
1008   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1054       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055    { (exit 1); exit 1; }; }
1056     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1057     eval enable_$ac_feature=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1073       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074    { (exit 1); exit 1; }; }
1075     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1076     eval enable_$ac_feature=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1270       { echo "$as_me: error: invalid package name: $ac_package" >&2
1271    { (exit 1); exit 1; }; }
1272     ac_package=`echo $ac_package| sed 's/-/_/g'`
1273     eval with_$ac_package=\$ac_optarg ;;
1274
1275   -without-* | --without-*)
1276     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package | sed 's/-/_/g'`
1282     eval with_$ac_package=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304    { (exit 1); exit 1; }; }
1305     ;;
1306
1307   *=*)
1308     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312    { (exit 1); exit 1; }; }
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   { echo "$as_me: error: missing argument to $ac_option" >&2
1330    { (exit 1); exit 1; }; }
1331 fi
1332
1333 # Be sure to have absolute directory names.
1334 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335                 datadir sysconfdir sharedstatedir localstatedir includedir \
1336                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337                 libdir localedir mandir
1338 do
1339   eval ac_val=\$$ac_var
1340   case $ac_val in
1341     [\\/$]* | ?:[\\/]* )  continue;;
1342     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343   esac
1344   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345    { (exit 1); exit 1; }; }
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357   if test "x$build_alias" = x; then
1358     cross_compiling=maybe
1359     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360     If a cross compiler is detected then cross compile mode will be used." >&2
1361   elif test "x$build_alias" != "x$host_alias"; then
1362     cross_compiling=yes
1363   fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375   { echo "$as_me: error: Working directory cannot be determined" >&2
1376    { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   { echo "$as_me: error: pwd does not report name of working directory" >&2
1379    { (exit 1); exit 1; }; }
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$0" : 'X\(//\)[^/]' \| \
1389          X"$0" : 'X\(//\)$' \| \
1390          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391 echo X"$0" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419    { (exit 1); exit 1; }; }
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424    { (exit 1); exit 1; }; }
1425         pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428   srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR           user executables [EPREFIX/bin]
1485   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR       program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1488   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR           object code libraries [EPREFIX/lib]
1491   --includedir=DIR       C header files [PREFIX/include]
1492   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR          info documentation [DATAROOTDIR/info]
1496   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR           man documentation [DATAROOTDIR/man]
1498   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1499   --htmldir=DIR          html documentation [DOCDIR]
1500   --dvidir=DIR           dvi documentation [DOCDIR]
1501   --pdfdir=DIR           pdf documentation [DOCDIR]
1502   --psdir=DIR            ps documentation [DOCDIR]
1503 _ACEOF
1504
1505   cat <<\_ACEOF
1506
1507 System types:
1508   --build=BUILD     configure for building on BUILD [guessed]
1509   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510   --target=TARGET   configure for building compilers for TARGET [HOST]
1511 _ACEOF
1512 fi
1513
1514 if test -n "$ac_init_help"; then
1515   case $ac_init_help in
1516      short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1517    esac
1518   cat <<\_ACEOF
1519
1520 Optional Features:
1521   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523   --enable-optimized
1524   --enable-assertions
1525   --enable-debug-runtime
1526   --enable-jit            Enable Just In Time Compiling (default is YES)
1527   --enable-doxygen        Build doxygen documentation (default is NO)
1528   --enable-threads        Use threads if available (default is YES)
1529   --enable-pic            Build LLVM with Position Independent Code (default
1530                           is NO)
1531   --enable-targets        Build specific host targets:
1532                           all,host-only,{target-name} (default=all)
1533   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1534                           %a (default is YES)
1535   --enable-ltdl-install   install libltdl
1536   --enable-shared[=PKGS]  build shared libraries
1537                           [default=enable_shared_default]
1538   --enable-static[=PKGS]  build static libraries
1539                           [default=enable_static_default]
1540   --enable-fast-install[=PKGS]
1541                           optimize for fast installation
1542                           [default=enable_Fast_install_default]
1543   --disable-libtool-lock  avoid locking (might break parallel builds)
1544
1545 Optional Packages:
1546   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1549                           searches PATH)
1550   --with-extra-options    Specify addtional options to compile LLVM with
1551   --with-tclinclude       directory where tcl headers are
1552   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553   --with-pic              try to use only PIC/non-PIC objects [default=use
1554                           both]
1555   --with-tags[=TAGS]      include additional configurations [automatic]
1556
1557 Some influential environment variables:
1558   CC          C compiler command
1559   CFLAGS      C compiler flags
1560   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561               nonstandard directory <lib dir>
1562   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563               you have headers in a nonstandard directory <include dir>
1564   CPP         C preprocessor
1565   CXX         C++ compiler command
1566   CXXFLAGS    C++ compiler flags
1567   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1568               the first program found out of: `bison -y', `byacc', `yacc'.
1569   YFLAGS      The list of arguments that will be passed by default to $YACC.
1570               This script will default YFLAGS to the empty string to avoid a
1571               default value of `-d' given by some make applications.
1572   CXXCPP      C++ preprocessor
1573   F77         Fortran 77 compiler command
1574   FFLAGS      Fortran 77 compiler flags
1575
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1578
1579 Report bugs to <llvmbugs@cs.uiuc.edu>.
1580 _ACEOF
1581 ac_status=$?
1582 fi
1583
1584 if test "$ac_init_help" = "recursive"; then
1585   # If there are subdirs, report their specific --help.
1586   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587     test -d "$ac_dir" || continue
1588     ac_builddir=.
1589
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *)
1593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594   # A ".." for each directory in $ac_dir_suffix.
1595   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596   case $ac_top_builddir_sub in
1597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599   esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1605
1606 case $srcdir in
1607   .)  # We are building in place.
1608     ac_srcdir=.
1609     ac_top_srcdir=$ac_top_builddir_sub
1610     ac_abs_top_srcdir=$ac_pwd ;;
1611   [\\/]* | ?:[\\/]* )  # Absolute name.
1612     ac_srcdir=$srcdir$ac_dir_suffix;
1613     ac_top_srcdir=$srcdir
1614     ac_abs_top_srcdir=$srcdir ;;
1615   *) # Relative name.
1616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617     ac_top_srcdir=$ac_top_build_prefix$srcdir
1618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622     cd "$ac_dir" || { ac_status=$?; continue; }
1623     # Check for guested configure.
1624     if test -f "$ac_srcdir/configure.gnu"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627     elif test -f "$ac_srcdir/configure"; then
1628       echo &&
1629       $SHELL "$ac_srcdir/configure" --help=recursive
1630     else
1631       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632     fi || ac_status=$?
1633     cd "$ac_pwd" || { ac_status=$?; break; }
1634   done
1635 fi
1636
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1639   cat <<\_ACEOF
1640 llvm configure 2.0cvs
1641 generated by GNU Autoconf 2.60
1642
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647
1648 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1649 _ACEOF
1650   exit
1651 fi
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1655
1656 It was created by llvm $as_me 2.0cvs, which was
1657 generated by GNU Autoconf 2.60.  Invocation command line was
1658
1659   $ $0 $@
1660
1661 _ACEOF
1662 exec 5>>config.log
1663 {
1664 cat <<_ASUNAME
1665 ## --------- ##
1666 ## Platform. ##
1667 ## --------- ##
1668
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1677
1678 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1679 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1682 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1683 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1684 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1685
1686 _ASUNAME
1687
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   echo "PATH: $as_dir"
1694 done
1695 IFS=$as_save_IFS
1696
1697 } >&5
1698
1699 cat >&5 <<_ACEOF
1700
1701
1702 ## ----------- ##
1703 ## Core tests. ##
1704 ## ----------- ##
1705
1706 _ACEOF
1707
1708
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_configure_args=
1715 ac_configure_args0=
1716 ac_configure_args1=
1717 ac_must_keep_next=false
1718 for ac_pass in 1 2
1719 do
1720   for ac_arg
1721   do
1722     case $ac_arg in
1723     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725     | -silent | --silent | --silen | --sile | --sil)
1726       continue ;;
1727     *\'*)
1728       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729     esac
1730     case $ac_pass in
1731     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732     2)
1733       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734       if test $ac_must_keep_next = true; then
1735         ac_must_keep_next=false # Got value, back to normal.
1736       else
1737         case $ac_arg in
1738           *=* | --config-cache | -C | -disable-* | --disable-* \
1739           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741           | -with-* | --with-* | -without-* | --without-* | --x)
1742             case "$ac_configure_args0 " in
1743               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744             esac
1745             ;;
1746           -* ) ac_must_keep_next=true ;;
1747         esac
1748       fi
1749       ac_configure_args="$ac_configure_args '$ac_arg'"
1750       ;;
1751     esac
1752   done
1753 done
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log.  We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763   # Save into config.log some information that might help in debugging.
1764   {
1765     echo
1766
1767     cat <<\_ASBOX
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1771 _ASBOX
1772     echo
1773     # The following way of writing the cache mishandles newlines in values,
1774 (
1775   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776     eval ac_val=\$$ac_var
1777     case $ac_val in #(
1778     *${as_nl}*)
1779       case $ac_var in #(
1780       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782       esac
1783       case $ac_var in #(
1784       _ | IFS | as_nl) ;; #(
1785       *) $as_unset $ac_var ;;
1786       esac ;;
1787     esac
1788   done
1789   (set) 2>&1 |
1790     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791     *${as_nl}ac_space=\ *)
1792       sed -n \
1793         "s/'\''/'\''\\\\'\'''\''/g;
1794           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795       ;; #(
1796     *)
1797       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798       ;;
1799     esac |
1800     sort
1801 )
1802     echo
1803
1804     cat <<\_ASBOX
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1808 _ASBOX
1809     echo
1810     for ac_var in $ac_subst_vars
1811     do
1812       eval ac_val=\$$ac_var
1813       case $ac_val in
1814       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815       esac
1816       echo "$ac_var='\''$ac_val'\''"
1817     done | sort
1818     echo
1819
1820     if test -n "$ac_subst_files"; then
1821       cat <<\_ASBOX
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1825 _ASBOX
1826       echo
1827       for ac_var in $ac_subst_files
1828       do
1829         eval ac_val=\$$ac_var
1830         case $ac_val in
1831         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832         esac
1833         echo "$ac_var='\''$ac_val'\''"
1834       done | sort
1835       echo
1836     fi
1837
1838     if test -s confdefs.h; then
1839       cat <<\_ASBOX
1840 ## ----------- ##
1841 ## confdefs.h. ##
1842 ## ----------- ##
1843 _ASBOX
1844       echo
1845       cat confdefs.h
1846       echo
1847     fi
1848     test "$ac_signal" != 0 &&
1849       echo "$as_me: caught signal $ac_signal"
1850     echo "$as_me: exit $exit_status"
1851   } >&5
1852   rm -f core *.core core.conftest.* &&
1853     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854     exit $exit_status
1855 ' 0
1856 for ac_signal in 1 2 13 15; do
1857   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 done
1859 ac_signal=0
1860
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1863
1864 # Predefined preprocessor variables.
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 _ACEOF
1889
1890
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer explicitly selected file to automatically selected ones.
1893 if test -n "$CONFIG_SITE"; then
1894   set x "$CONFIG_SITE"
1895 elif test "x$prefix" != xNONE; then
1896   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1897 else
1898   set x "$ac_default_prefix/share/config.site" \
1899         "$ac_default_prefix/etc/config.site"
1900 fi
1901 shift
1902 for ac_site_file
1903 do
1904   if test -r "$ac_site_file"; then
1905     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906 echo "$as_me: loading site script $ac_site_file" >&6;}
1907     sed 's/^/| /' "$ac_site_file" >&5
1908     . "$ac_site_file"
1909   fi
1910 done
1911
1912 if test -r "$cache_file"; then
1913   # Some versions of bash will fail to source /dev/null (special
1914   # files actually), so we avoid doing that.
1915   if test -f "$cache_file"; then
1916     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917 echo "$as_me: loading cache $cache_file" >&6;}
1918     case $cache_file in
1919       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920       *)                      . "./$cache_file";;
1921     esac
1922   fi
1923 else
1924   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925 echo "$as_me: creating cache $cache_file" >&6;}
1926   >$cache_file
1927 fi
1928
1929 # Check that the precious variables saved in the cache have kept the same
1930 # value.
1931 ac_cache_corrupted=false
1932 for ac_var in $ac_precious_vars; do
1933   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934   eval ac_new_set=\$ac_env_${ac_var}_set
1935   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936   eval ac_new_val=\$ac_env_${ac_var}_value
1937   case $ac_old_set,$ac_new_set in
1938     set,)
1939       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941       ac_cache_corrupted=: ;;
1942     ,set)
1943       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945       ac_cache_corrupted=: ;;
1946     ,);;
1947     *)
1948       if test "x$ac_old_val" != "x$ac_new_val"; then
1949         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1950 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1951         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1952 echo "$as_me:   former value:  $ac_old_val" >&2;}
1953         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1954 echo "$as_me:   current value: $ac_new_val" >&2;}
1955         ac_cache_corrupted=:
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2011
2012
2013
2014
2015
2016
2017
2018 ac_aux_dir=
2019 for ac_dir in autoconf "$srcdir"/autoconf; do
2020   if test -f "$ac_dir/install-sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install-sh -c"
2023     break
2024   elif test -f "$ac_dir/install.sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install.sh -c"
2027     break
2028   elif test -f "$ac_dir/shtool"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/shtool install -c"
2031     break
2032   fi
2033 done
2034 if test -z "$ac_aux_dir"; then
2035   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2036 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050 if test ${srcdir} != "." ; then
2051   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2052     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2053 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2054    { (exit 1); exit 1; }; }
2055   fi
2056 fi
2057
2058 for i in `ls ${srcdir}/projects`
2059 do
2060   if test -d ${srcdir}/projects/${i} ; then
2061     case ${i} in
2062       "CVS") ;;
2063       "sample")       subdirs="$subdirs projects/sample"
2064     ;;
2065       "Stacker")      subdirs="$subdirs projects/Stacker"
2066    ;;
2067       "privbracket")  subdirs="$subdirs projects/privbracket"
2068  ;;
2069       "llvm-test")    subdirs="$subdirs projects/llvm-test"
2070  ;;
2071       "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2072 ;;
2073       "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2074   ;;
2075       "llvm-java")    subdirs="$subdirs projects/llvm-java"
2076  ;;
2077       "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2078    ;;
2079       "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2080  ;;
2081       "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2082  ;;
2083       *)
2084         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2085 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2086         ;;
2087     esac
2088   fi
2089 done
2090
2091
2092 # Make sure we can run config.sub.
2093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2094   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2096    { (exit 1); exit 1; }; }
2097
2098 { echo "$as_me:$LINENO: checking build system type" >&5
2099 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_build+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   ac_build_alias=$build_alias
2104 test "x$ac_build_alias" = x &&
2105   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106 test "x$ac_build_alias" = x &&
2107   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109    { (exit 1); exit 1; }; }
2110 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2111   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2113    { (exit 1); exit 1; }; }
2114
2115 fi
2116 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117 echo "${ECHO_T}$ac_cv_build" >&6; }
2118 case $ac_cv_build in
2119 *-*-*) ;;
2120 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121 echo "$as_me: error: invalid value of canonical build" >&2;}
2122    { (exit 1); exit 1; }; };;
2123 esac
2124 build=$ac_cv_build
2125 ac_save_IFS=$IFS; IFS='-'
2126 set x $ac_cv_build
2127 shift
2128 build_cpu=$1
2129 build_vendor=$2
2130 shift; shift
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2133 build_os=$*
2134 IFS=$ac_save_IFS
2135 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2136
2137
2138 { echo "$as_me:$LINENO: checking host system type" >&5
2139 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_host+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test "x$host_alias" = x; then
2144   ac_cv_host=$ac_cv_build
2145 else
2146   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2147     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 fi
2153 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154 echo "${ECHO_T}$ac_cv_host" >&6; }
2155 case $ac_cv_host in
2156 *-*-*) ;;
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158 echo "$as_me: error: invalid value of canonical host" >&2;}
2159    { (exit 1); exit 1; }; };;
2160 esac
2161 host=$ac_cv_host
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_host
2164 shift
2165 host_cpu=$1
2166 host_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 host_os=$*
2171 IFS=$ac_save_IFS
2172 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173
2174
2175 { echo "$as_me:$LINENO: checking target system type" >&5
2176 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_target+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test "x$target_alias" = x; then
2181   ac_cv_target=$ac_cv_host
2182 else
2183   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2184     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2186    { (exit 1); exit 1; }; }
2187 fi
2188
2189 fi
2190 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191 echo "${ECHO_T}$ac_cv_target" >&6; }
2192 case $ac_cv_target in
2193 *-*-*) ;;
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195 echo "$as_me: error: invalid value of canonical target" >&2;}
2196    { (exit 1); exit 1; }; };;
2197 esac
2198 target=$ac_cv_target
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_target
2201 shift
2202 target_cpu=$1
2203 target_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 target_os=$*
2208 IFS=$ac_save_IFS
2209 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2210
2211
2212 # The aliases save the names the user supplied, while $host etc.
2213 # will get canonicalized.
2214 test -n "$target_alias" &&
2215   test "$program_prefix$program_suffix$program_transform_name" = \
2216     NONENONEs,x,x, &&
2217   program_prefix=${target_alias}-
2218
2219 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2220 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2221 if test "${llvm_cv_os_type+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   case $host in
2225   *-*-aix*)
2226     llvm_cv_link_all_option="-Wl,--whole-archive"
2227     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228     llvm_cv_os_type="AIX"
2229     llvm_cv_platform_type="Unix" ;;
2230   *-*-irix*)
2231     llvm_cv_link_all_option="-Wl,--whole-archive"
2232     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233     llvm_cv_os_type="IRIX"
2234     llvm_cv_platform_type="Unix" ;;
2235   *-*-cygwin*)
2236     llvm_cv_link_all_option="-Wl,--whole-archive"
2237     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238     llvm_cv_os_type="Cygwin"
2239     llvm_cv_platform_type="Unix" ;;
2240   *-*-darwin*)
2241     llvm_cv_link_all_option="-Wl,-all_load"
2242     llvm_cv_link_all_option="-Wl,-noall_load"
2243     llvm_cv_os_type="Darwin"
2244     llvm_cv_platform_type="Unix" ;;
2245   *-*-freebsd*)
2246     llvm_cv_link_all_option="-Wl,--whole-archive"
2247     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248     llvm_cv_os_type="FreeBSD"
2249     llvm_cv_platform_type="Unix" ;;
2250   *-*-openbsd*)
2251     llvm_cv_link_all_option="-Wl,--whole-archive"
2252     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253     llvm_cv_os_type="OpenBSD"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-hpux*)
2256     llvm_cv_link_all_option="-Wl,--whole-archive"
2257     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258     llvm_cv_os_type="HP-UX"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-interix*)
2261     llvm_cv_link_all_option="-Wl,--whole-archive"
2262     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263     llvm_cv_os_type="Interix"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-linux*)
2266     llvm_cv_link_all_option="-Wl,--whole-archive"
2267     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268     llvm_cv_os_type="Linux"
2269     llvm_cv_platform_type="Unix" ;;
2270   *-*-solaris*)
2271     llvm_cv_link_all_option="-Wl,-z,allextract"
2272     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2273     llvm_cv_os_type="SunOS"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-*-win32*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="Win32"
2279     llvm_cv_platform_type="Win32" ;;
2280   *-*-mingw*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="MingW"
2284     llvm_cv_platform_type="Win32" ;;
2285   *)
2286     llvm_cv_link_all_option=""
2287     llvm_cv_no_link_all_option=""
2288     llvm_cv_os_type="Unknown"
2289     llvm_cv_platform_type="Unknown" ;;
2290 esac
2291 fi
2292 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2294
2295 if test "$llvm_cv_os_type" = "Unknown" ; then
2296   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2297 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2298    { (exit 1); exit 1; }; }
2299 fi
2300
2301 OS=$llvm_cv_os_type
2302
2303
2304 LINKALL=$llvm_cv_link_all_option
2305
2306 NOLINKALL=$llvm_cv_no_link_all_option
2307
2308
2309 case $llvm_cv_platform_type in
2310   Unix)
2311
2312 cat >>confdefs.h <<\_ACEOF
2313 #define LLVM_ON_UNIX 1
2314 _ACEOF
2315
2316     LLVM_ON_UNIX=1
2317
2318     LLVM_ON_WIN32=0
2319
2320     ;;
2321   Win32)
2322
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_WIN32 1
2325 _ACEOF
2326
2327     LLVM_ON_UNIX=0
2328
2329     LLVM_ON_WIN32=1
2330
2331     ;;
2332 esac
2333
2334 { echo "$as_me:$LINENO: checking target architecture" >&5
2335 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2336 if test "${llvm_cv_target_arch+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   case $target in
2340   i?86-*)                 llvm_cv_target_arch="x86" ;;
2341   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2342   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2343   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2344   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2345   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2346   *)                      llvm_cv_target_arch="Unknown" ;;
2347 esac
2348 fi
2349 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2350 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2351
2352 if test "$llvm_cv_target_arch" = "Unknown" ; then
2353   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2354 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2355 fi
2356
2357 ARCH=$llvm_cv_target_arch
2358
2359
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 if test -n "$ac_tool_prefix"; then
2366   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_CC+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   if test -n "$CC"; then
2374   ac_cv_prog_CC="$CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379   IFS=$as_save_IFS
2380   test -z "$as_dir" && as_dir=.
2381   for ac_exec_ext in '' $ac_executable_extensions; do
2382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2383     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385     break 2
2386   fi
2387 done
2388 done
2389 IFS=$as_save_IFS
2390
2391 fi
2392 fi
2393 CC=$ac_cv_prog_CC
2394 if test -n "$CC"; then
2395   { echo "$as_me:$LINENO: result: $CC" >&5
2396 echo "${ECHO_T}$CC" >&6; }
2397 else
2398   { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400 fi
2401
2402
2403 fi
2404 if test -z "$ac_cv_prog_CC"; then
2405   ac_ct_CC=$CC
2406   # Extract the first word of "gcc", so it can be a program name with args.
2407 set dummy gcc; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   if test -n "$ac_ct_CC"; then
2414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421   for ac_exec_ext in '' $ac_executable_extensions; do
2422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423     ac_cv_prog_ac_ct_CC="gcc"
2424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6; }
2437 else
2438   { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2440 fi
2441
2442   if test "x$ac_ct_CC" = x; then
2443     CC=""
2444   else
2445     case $cross_compiling:$ac_tool_warned in
2446 yes:)
2447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet.  If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&5
2450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2451 whose name does not start with the host triplet.  If you think this
2452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2453 ac_tool_warned=yes ;;
2454 esac
2455     CC=$ac_ct_CC
2456   fi
2457 else
2458   CC="$ac_cv_prog_CC"
2459 fi
2460
2461 if test -z "$CC"; then
2462           if test -n "$ac_tool_prefix"; then
2463     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}cc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$CC"; then
2471   ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_CC="${ac_tool_prefix}cc"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492   { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499
2500   fi
2501 fi
2502 if test -z "$CC"; then
2503   # Extract the first word of "cc", so it can be a program name with args.
2504 set dummy cc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$CC"; then
2511   ac_cv_prog_CC="$CC" # Let the user override the test.
2512 else
2513   ac_prog_rejected=no
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517   IFS=$as_save_IFS
2518   test -z "$as_dir" && as_dir=.
2519   for ac_exec_ext in '' $ac_executable_extensions; do
2520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2521     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2522        ac_prog_rejected=yes
2523        continue
2524      fi
2525     ac_cv_prog_CC="cc"
2526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527     break 2
2528   fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 if test $ac_prog_rejected = yes; then
2534   # We found a bogon in the path, so make sure we never use it.
2535   set dummy $ac_cv_prog_CC
2536   shift
2537   if test $# != 0; then
2538     # We chose a different compiler from the bogus one.
2539     # However, it has the same basename, so the bogon will be chosen
2540     # first if we set CC to just the basename; use the full file name.
2541     shift
2542     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543   fi
2544 fi
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549   { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$CC"; then
2559   if test -n "$ac_tool_prefix"; then
2560   for ac_prog in cl.exe
2561   do
2562     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   if test -n "$CC"; then
2570   ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577   for ac_exec_ext in '' $ac_executable_extensions; do
2578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2579     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591   { echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6; }
2593 else
2594   { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598
2599     test -n "$CC" && break
2600   done
2601 fi
2602 if test -z "$CC"; then
2603   ac_ct_CC=$CC
2604   for ac_prog in cl.exe
2605 do
2606   # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   if test -n "$ac_ct_CC"; then
2614   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621   for ac_exec_ext in '' $ac_executable_extensions; do
2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623     ac_cv_prog_ac_ct_CC="$ac_prog"
2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634 if test -n "$ac_ct_CC"; then
2635   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 echo "${ECHO_T}$ac_ct_CC" >&6; }
2637 else
2638   { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2640 fi
2641
2642
2643   test -n "$ac_ct_CC" && break
2644 done
2645
2646   if test "x$ac_ct_CC" = x; then
2647     CC=""
2648   else
2649     case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet.  If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&5
2654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet.  If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657 ac_tool_warned=yes ;;
2658 esac
2659     CC=$ac_ct_CC
2660   fi
2661 fi
2662
2663 fi
2664
2665
2666 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&2;}
2670    { (exit 1); exit 1; }; }
2671
2672 # Provide some information about the compiler.
2673 echo "$as_me:$LINENO: checking for C compiler version" >&5
2674 ac_compiler=`set X $ac_compile; echo $2`
2675 { (ac_try="$ac_compiler --version >&5"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681   (eval "$ac_compiler --version >&5") 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }
2685 { (ac_try="$ac_compiler -v >&5"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compiler -v >&5") 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695 { (ac_try="$ac_compiler -V >&5"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701   (eval "$ac_compiler -V >&5") 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }
2705
2706 cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h.  */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h.  */
2712
2713 int
2714 main ()
2715 {
2716
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 ac_clean_files_save=$ac_clean_files
2722 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2723 # Try to create an executable without -o first, disregard a.out.
2724 # It will help us diagnose broken compilers, and finding out an intuition
2725 # of exeext.
2726 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2727 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2728 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729 #
2730 # List of possible output files, starting from the most likely.
2731 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2732 # only as a last resort.  b.out is created by i960 compilers.
2733 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2734 #
2735 # The IRIX 6 linker writes into existing files which may not be
2736 # executable, retaining their permissions.  Remove them first so a
2737 # subsequent execution test works.
2738 ac_rmfiles=
2739 for ac_file in $ac_files
2740 do
2741   case $ac_file in
2742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744   esac
2745 done
2746 rm -f $ac_rmfiles
2747
2748 if { (ac_try="$ac_link_default"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_link_default") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; then
2758   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2761 # so that the user can short-circuit this test for compilers unknown to
2762 # Autoconf.
2763 for ac_file in $ac_files
2764 do
2765   test -f "$ac_file" || continue
2766   case $ac_file in
2767     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2768         ;;
2769     [ab].out )
2770         # We found the default executable, but exeext='' is most
2771         # certainly right.
2772         break;;
2773     *.* )
2774         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775         then :; else
2776            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777         fi
2778         # We set ac_cv_exeext here because the later test for it is not
2779         # safe: cross compilers may not add the suffix if given an `-o'
2780         # argument, so we may need to know it at that point already.
2781         # Even if this section looks crufty: it has the advantage of
2782         # actually working.
2783         break;;
2784     * )
2785         break;;
2786   esac
2787 done
2788 test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795 See \`config.log' for more details." >&5
2796 echo "$as_me: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&2;}
2798    { (exit 77); exit 77; }; }
2799 fi
2800
2801 ac_exeext=$ac_cv_exeext
2802 { echo "$as_me:$LINENO: result: $ac_file" >&5
2803 echo "${ECHO_T}$ac_file" >&6; }
2804
2805 # Check that the compiler produces executables we can run.  If not, either
2806 # the compiler is broken, or we cross compile.
2807 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2810 # If not cross compiling, check that we can run a simple program.
2811 if test "$cross_compiling" != yes; then
2812   if { ac_try='./$ac_file'
2813   { (case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_try") 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822     cross_compiling=no
2823   else
2824     if test "$cross_compiling" = maybe; then
2825         cross_compiling=yes
2826     else
2827         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot run C compiled programs.
2831 If you meant to cross compile, use \`--host'.
2832 See \`config.log' for more details." >&2;}
2833    { (exit 1); exit 1; }; }
2834     fi
2835   fi
2836 fi
2837 { echo "$as_me:$LINENO: result: yes" >&5
2838 echo "${ECHO_T}yes" >&6; }
2839
2840 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2841 ac_clean_files=$ac_clean_files_save
2842 # Check that the compiler produces executables we can run.  If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2845 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2846 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2847 echo "${ECHO_T}$cross_compiling" >&6; }
2848
2849 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2850 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2851 if { (ac_try="$ac_link"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857   (eval "$ac_link") 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; then
2861   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2862 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2863 # work properly (i.e., refer to `conftest.exe'), while it won't with
2864 # `rm'.
2865 for ac_file in conftest.exe conftest conftest.*; do
2866   test -f "$ac_file" || continue
2867   case $ac_file in
2868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2869     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870           break;;
2871     * ) break;;
2872   esac
2873 done
2874 else
2875   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2878 See \`config.log' for more details." >&2;}
2879    { (exit 1); exit 1; }; }
2880 fi
2881
2882 rm -f conftest$ac_cv_exeext
2883 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2884 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2885
2886 rm -f conftest.$ac_ext
2887 EXEEXT=$ac_cv_exeext
2888 ac_exeext=$EXEEXT
2889 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2890 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2891 if test "${ac_cv_objext+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900
2901 int
2902 main ()
2903 {
2904
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.o conftest.obj
2910 if { (ac_try="$ac_compile"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_compile") 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; then
2920   for ac_file in conftest.o conftest.obj conftest.*; do
2921   test -f "$ac_file" || continue;
2922   case $ac_file in
2923     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2924     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925        break;;
2926   esac
2927 done
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&5
2934 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2935 See \`config.log' for more details." >&2;}
2936    { (exit 1); exit 1; }; }
2937 fi
2938
2939 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940 fi
2941 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2942 echo "${ECHO_T}$ac_cv_objext" >&6; }
2943 OBJEXT=$ac_cv_objext
2944 ac_objext=$OBJEXT
2945 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2946 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956
2957 int
2958 main ()
2959 {
2960 #ifndef __GNUC__
2961        choke me
2962 #endif
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_compile") 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983   { (case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_try") 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; } &&
2992          { ac_try='test -s conftest.$ac_objext'
2993   { (case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_try") 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; }; then
3002   ac_compiler_gnu=yes
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007         ac_compiler_gnu=no
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3012
3013 fi
3014 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3016 GCC=`test $ac_compiler_gnu = yes && echo yes`
3017 ac_test_CFLAGS=${CFLAGS+set}
3018 ac_save_CFLAGS=$CFLAGS
3019 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_cc_g+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   ac_save_c_werror_flag=$ac_c_werror_flag
3025    ac_c_werror_flag=yes
3026    ac_cv_prog_cc_g=no
3027    CFLAGS="-g"
3028    cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_compile") 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } &&
3057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3058   { (case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_try") 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; } &&
3067          { ac_try='test -s conftest.$ac_objext'
3068   { (case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_try") 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; }; then
3077   ac_cv_prog_cc_g=yes
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082         CFLAGS=""
3083       cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113   { (case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_try") 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; } &&
3122          { ac_try='test -s conftest.$ac_objext'
3123   { (case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   :
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137         ac_c_werror_flag=$ac_save_c_werror_flag
3138          CFLAGS="-g"
3139          cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_compile") 2>conftest.er1
3162   ac_status=$?
3163   grep -v '^ *+' conftest.er1 >conftest.err
3164   rm -f conftest.er1
3165   cat conftest.err >&5
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); } &&
3168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169   { (case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_try") 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_try") 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; }; then
3188   ac_cv_prog_cc_g=yes
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203    ac_c_werror_flag=$ac_save_c_werror_flag
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208   CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210   if test "$GCC" = yes; then
3211     CFLAGS="-g -O2"
3212   else
3213     CFLAGS="-g"
3214   fi
3215 else
3216   if test "$GCC" = yes; then
3217     CFLAGS="-O2"
3218   else
3219     CFLAGS=
3220   fi
3221 fi
3222 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227   ac_cv_prog_cc_c89=no
3228 ac_save_CC=$CC
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #include <stdarg.h>
3236 #include <stdio.h>
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243      char **p;
3244      int i;
3245 {
3246   return p[i];
3247 }
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3249 {
3250   char *s;
3251   va_list v;
3252   va_start (v,p);
3253   s = g (p, va_arg (v,int));
3254   va_end (v);
3255   return s;
3256 }
3257
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3259    function prototypes and stuff, but not '\xHH' hex character constants.
3260    These don't provoke an error unfortunately, instead are silently treated
3261    as 'x'.  The following induces an error, until -std is added to get
3262    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3263    array size at least.  It's necessary to write '\x00'==0 to get something
3264    that's true only with -std.  */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268    inside strings and character constants.  */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3278 int
3279 main ()
3280 {
3281 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 do
3289   CC="$ac_save_CC $ac_arg"
3290   rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_compile") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } &&
3304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305   { (case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310   (eval "$ac_try") 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }; } &&
3314          { ac_try='test -s conftest.$ac_objext'
3315   { (case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_try") 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }; }; then
3324   ac_cv_prog_cc_c89=$ac_arg
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext
3333   test "x$ac_cv_prog_cc_c89" != "xno" && break
3334 done
3335 rm -f conftest.$ac_ext
3336 CC=$ac_save_CC
3337
3338 fi
3339 # AC_CACHE_VAL
3340 case "x$ac_cv_prog_cc_c89" in
3341   x)
3342     { echo "$as_me:$LINENO: result: none needed" >&5
3343 echo "${ECHO_T}none needed" >&6; } ;;
3344   xno)
3345     { echo "$as_me:$LINENO: result: unsupported" >&5
3346 echo "${ECHO_T}unsupported" >&6; } ;;
3347   *)
3348     CC="$CC $ac_cv_prog_cc_c89"
3349     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3351 esac
3352
3353
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370   CPP=
3371 fi
3372 if test -z "$CPP"; then
3373   if test "${ac_cv_prog_CPP+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376       # Double quotes because CPP needs to be expanded
3377     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378     do
3379       ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382   # Use a header file that comes with gcc, so configuring glibc
3383   # with a fresh cross-compiler works.
3384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385   # <limits.h> exists even on freestanding compilers.
3386   # On the NeXT, cc -E runs the code through the compiler's parser,
3387   # not just through cpp. "Syntax error" is here to catch this case.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #ifdef __STDC__
3395 # include <limits.h>
3396 #else
3397 # include <assert.h>
3398 #endif
3399                      Syntax error
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   :
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429   # Broken: fails on valid input.
3430 continue
3431 fi
3432
3433 rm -f conftest.err conftest.$ac_ext
3434
3435   # OK, works on sane cases.  Now check whether nonexistent headers
3436   # can be detected and how.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #include <ac_nonexistent.h>
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461   else
3462     ac_cpp_err=
3463   fi
3464 else
3465   ac_cpp_err=yes
3466 fi
3467 if test -z "$ac_cpp_err"; then
3468   # Broken: success on invalid input.
3469 continue
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3477 fi
3478
3479 rm -f conftest.err conftest.$ac_ext
3480
3481 done
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3485   break
3486 fi
3487
3488     done
3489     ac_cv_prog_CPP=$CPP
3490
3491 fi
3492   CPP=$ac_cv_prog_CPP
3493 else
3494   ac_cv_prog_CPP=$CPP
3495 fi
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3498 ac_preproc_ok=false
3499 for ac_c_preproc_warn_flag in '' yes
3500 do
3501   # Use a header file that comes with gcc, so configuring glibc
3502   # with a fresh cross-compiler works.
3503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504   # <limits.h> exists even on freestanding compilers.
3505   # On the NeXT, cc -E runs the code through the compiler's parser,
3506   # not just through cpp. "Syntax error" is here to catch this case.
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #ifdef __STDC__
3514 # include <limits.h>
3515 #else
3516 # include <assert.h>
3517 #endif
3518                      Syntax error
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536   else
3537     ac_cpp_err=
3538   fi
3539 else
3540   ac_cpp_err=yes
3541 fi
3542 if test -z "$ac_cpp_err"; then
3543   :
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Broken: fails on valid input.
3549 continue
3550 fi
3551
3552 rm -f conftest.err conftest.$ac_ext
3553
3554   # OK, works on sane cases.  Now check whether nonexistent headers
3555   # can be detected and how.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #include <ac_nonexistent.h>
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } >/dev/null; then
3577   if test -s conftest.err; then
3578     ac_cpp_err=$ac_c_preproc_warn_flag
3579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580   else
3581     ac_cpp_err=
3582   fi
3583 else
3584   ac_cpp_err=yes
3585 fi
3586 if test -z "$ac_cpp_err"; then
3587   # Broken: success on invalid input.
3588 continue
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593   # Passes both tests.
3594 ac_preproc_ok=:
3595 break
3596 fi
3597
3598 rm -f conftest.err conftest.$ac_ext
3599
3600 done
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then
3604   :
3605 else
3606   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details." >&5
3608 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details." >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   # Extract the first word of "grep ggrep" to use in msg output
3626 if test -z "$GREP"; then
3627 set dummy grep ggrep; ac_prog_name=$2
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638   for ac_prog in grep ggrep; do
3639   for ac_exec_ext in '' $ac_executable_extensions; do
3640     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642     # Check for GNU ac_path_GREP and select it if it is found.
3643   # Check for GNU $ac_path_GREP
3644 case `"$ac_path_GREP" --version 2>&1` in
3645 *GNU*)
3646   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647 *)
3648   ac_count=0
3649   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3650   while :
3651   do
3652     cat "conftest.in" "conftest.in" >"conftest.tmp"
3653     mv "conftest.tmp" "conftest.in"
3654     cp "conftest.in" "conftest.nl"
3655     echo 'GREP' >> "conftest.nl"
3656     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658     ac_count=`expr $ac_count + 1`
3659     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660       # Best one so far, save it but keep looking for a better one
3661       ac_cv_path_GREP="$ac_path_GREP"
3662       ac_path_GREP_max=$ac_count
3663     fi
3664     # 10*(2^10) chars as input seems more than enough
3665     test $ac_count -gt 10 && break
3666   done
3667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 esac
3669
3670
3671     $ac_path_GREP_found && break 3
3672   done
3673 done
3674
3675 done
3676 IFS=$as_save_IFS
3677
3678
3679 fi
3680
3681 GREP="$ac_cv_path_GREP"
3682 if test -z "$GREP"; then
3683   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685    { (exit 1); exit 1; }; }
3686 fi
3687
3688 else
3689   ac_cv_path_GREP=$GREP
3690 fi
3691
3692
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696  GREP="$ac_cv_path_GREP"
3697
3698
3699 { echo "$as_me:$LINENO: checking for egrep" >&5
3700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705    then ac_cv_path_EGREP="$GREP -E"
3706    else
3707      # Extract the first word of "egrep" to use in msg output
3708 if test -z "$EGREP"; then
3709 set dummy egrep; ac_prog_name=$2
3710 if test "${ac_cv_path_EGREP+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   ac_path_EGREP_found=false
3714 # Loop through the user's path and test for each of PROGNAME-LIST
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720   for ac_prog in egrep; do
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724     # Check for GNU ac_path_EGREP and select it if it is found.
3725   # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3727 *GNU*)
3728   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729 *)
3730   ac_count=0
3731   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3732   while :
3733   do
3734     cat "conftest.in" "conftest.in" >"conftest.tmp"
3735     mv "conftest.tmp" "conftest.in"
3736     cp "conftest.in" "conftest.nl"
3737     echo 'EGREP' >> "conftest.nl"
3738     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740     ac_count=`expr $ac_count + 1`
3741     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742       # Best one so far, save it but keep looking for a better one
3743       ac_cv_path_EGREP="$ac_path_EGREP"
3744       ac_path_EGREP_max=$ac_count
3745     fi
3746     # 10*(2^10) chars as input seems more than enough
3747     test $ac_count -gt 10 && break
3748   done
3749   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 esac
3751
3752
3753     $ac_path_EGREP_found && break 3
3754   done
3755 done
3756
3757 done
3758 IFS=$as_save_IFS
3759
3760
3761 fi
3762
3763 EGREP="$ac_cv_path_EGREP"
3764 if test -z "$EGREP"; then
3765   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 else
3771   ac_cv_path_EGREP=$EGREP
3772 fi
3773
3774
3775    fi
3776 fi
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779  EGREP="$ac_cv_path_EGREP"
3780
3781
3782 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3784 if test "${ac_cv_header_stdc+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h.  */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h.  */
3793 #include <stdlib.h>
3794 #include <stdarg.h>
3795 #include <string.h>
3796 #include <float.h>
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.$ac_objext
3807 if { (ac_try="$ac_compile"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813   (eval "$ac_compile") 2>conftest.er1
3814   ac_status=$?
3815   grep -v '^ *+' conftest.er1 >conftest.err
3816   rm -f conftest.er1
3817   cat conftest.err >&5
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } &&
3820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3821   { (case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826   (eval "$ac_try") 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); }; } &&
3830          { ac_try='test -s conftest.$ac_objext'
3831   { (case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836   (eval "$ac_try") 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   ac_cv_header_stdc=yes
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845         ac_cv_header_stdc=no
3846 fi
3847
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849
3850 if test $ac_cv_header_stdc = yes; then
3851   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852   cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858 #include <string.h>
3859
3860 _ACEOF
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862   $EGREP "memchr" >/dev/null 2>&1; then
3863   :
3864 else
3865   ac_cv_header_stdc=no
3866 fi
3867 rm -f conftest*
3868
3869 fi
3870
3871 if test $ac_cv_header_stdc = yes; then
3872   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879 #include <stdlib.h>
3880
3881 _ACEOF
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883   $EGREP "free" >/dev/null 2>&1; then
3884   :
3885 else
3886   ac_cv_header_stdc=no
3887 fi
3888 rm -f conftest*
3889
3890 fi
3891
3892 if test $ac_cv_header_stdc = yes; then
3893   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3894   if test "$cross_compiling" = yes; then
3895   :
3896 else
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <ctype.h>
3904 #include <stdlib.h>
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 #else
3909 # define ISLOWER(c) \
3910                    (('a' <= (c) && (c) <= 'i') \
3911                      || ('j' <= (c) && (c) <= 'r') \
3912                      || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914 #endif
3915
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 int
3918 main ()
3919 {
3920   int i;
3921   for (i = 0; i < 256; i++)
3922     if (XOR (islower (i), ISLOWER (i))
3923         || toupper (i) != TOUPPER (i))
3924       return 2;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest$ac_exeext
3929 if { (ac_try="$ac_link"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935   (eval "$ac_link") 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3939   { (case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944   (eval "$ac_try") 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; }; then
3948   :
3949 else
3950   echo "$as_me: program exited with status $ac_status" >&5
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 ( exit $ac_status )
3955 ac_cv_header_stdc=no
3956 fi
3957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3958 fi
3959
3960
3961 fi
3962 fi
3963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3965 if test $ac_cv_header_stdc = yes; then
3966
3967 cat >>confdefs.h <<\_ACEOF
3968 #define STDC_HEADERS 1
3969 _ACEOF
3970
3971 fi
3972
3973 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3984                   inttypes.h stdint.h unistd.h
3985 do
3986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998 $ac_includes_default
3999
4000 #include <$ac_header>
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4004 case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009   (eval "$ac_compile") 2>conftest.er1
4010   ac_status=$?
4011   grep -v '^ *+' conftest.er1 >conftest.err
4012   rm -f conftest.er1
4013   cat conftest.err >&5
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } &&
4016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017   { (case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022   (eval "$ac_try") 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; } &&
4026          { ac_try='test -s conftest.$ac_objext'
4027   { (case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_try") 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; }; then
4036   eval "$as_ac_Header=yes"
4037 else
4038   echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041         eval "$as_ac_Header=no"
4042 fi
4043
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 fi
4046 ac_res=`eval echo '${'$as_ac_Header'}'`
4047                { echo "$as_me:$LINENO: result: $ac_res" >&5
4048 echo "${ECHO_T}$ac_res" >&6; }
4049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050   cat >>confdefs.h <<_ACEOF
4051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052 _ACEOF
4053
4054 fi
4055
4056 done
4057
4058
4059 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4060 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4061 if test "${ac_cv_c_bigendian+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   # See if sys/param.h defines the BYTE_ORDER macro.
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #include <sys/types.h>
4072 #include <sys/param.h>
4073
4074 int
4075 main ()
4076 {
4077 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4078  bogus endian macros
4079 #endif
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_compile") 2>conftest.er1
4093   ac_status=$?
4094   grep -v '^ *+' conftest.er1 >conftest.err
4095   rm -f conftest.er1
4096   cat conftest.err >&5
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } &&
4099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100   { (case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105   (eval "$ac_try") 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; } &&
4109          { ac_try='test -s conftest.$ac_objext'
4110   { (case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115   (eval "$ac_try") 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); }; }; then
4119   # It does; now see whether it defined to BIG_ENDIAN or not.
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 #include <sys/types.h>
4127 #include <sys/param.h>
4128
4129 int
4130 main ()
4131 {
4132 #if BYTE_ORDER != BIG_ENDIAN
4133  not big endian
4134 #endif
4135
4136   ;
4137   return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4142 case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_compile") 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; } &&
4164          { ac_try='test -s conftest.$ac_objext'
4165   { (case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_try") 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   ac_cv_c_bigendian=yes
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179         ac_cv_c_bigendian=no
4180 fi
4181
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187         # It does not; compile a test program.
4188 if test "$cross_compiling" = yes; then
4189   # try to guess the endianness by grepping values into an object file
4190   ac_cv_c_bigendian=unknown
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4198 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4199 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4200 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4201 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4203 int
4204 main ()
4205 {
4206  _ascii (); _ebcdic ();
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218   (eval "$ac_compile") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } &&
4225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226   { (case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231   (eval "$ac_try") 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241   (eval "$ac_try") 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4246   ac_cv_c_bigendian=yes
4247 fi
4248 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4249   if test "$ac_cv_c_bigendian" = unknown; then
4250     ac_cv_c_bigendian=no
4251   else
4252     # finding both strings is unlikely to happen, but who knows?
4253     ac_cv_c_bigendian=unknown
4254   fi
4255 fi
4256 else
4257   echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260
4261 fi
4262
4263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 else
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 $ac_includes_default
4272 int
4273 main ()
4274 {
4275
4276   /* Are we little or big endian?  From Harbison&Steele.  */
4277   union
4278   {
4279     long int l;
4280     char c[sizeof (long int)];
4281   } u;
4282   u.l = 1;
4283   return u.c[sizeof (long int) - 1] == 1;
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest$ac_exeext
4290 if { (ac_try="$ac_link"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_link") 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4300   { (case "(($ac_try" in
4301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302   *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305   (eval "$ac_try") 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }; }; then
4309   ac_cv_c_bigendian=no
4310 else
4311   echo "$as_me: program exited with status $ac_status" >&5
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 ( exit $ac_status )
4316 ac_cv_c_bigendian=yes
4317 fi
4318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4319 fi
4320
4321
4322 fi
4323
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 fi
4326 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4327 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4328 case $ac_cv_c_bigendian in
4329   yes)
4330     ENDIAN=big
4331  ;;
4332   no)
4333     ENDIAN=little
4334  ;;
4335   *)
4336     { { echo "$as_me:$LINENO: error: unknown endianness
4337 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4338 echo "$as_me: error: unknown endianness
4339 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4340    { (exit 1); exit 1; }; } ;;
4341 esac
4342
4343
4344 if test "$cross_compiling" = yes; then
4345   LLVM_CROSS_COMPILING=1
4346
4347
4348 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4349 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4350 if test "${ac_cv_build_exeext+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4354   ac_cv_build_exeext=.exe
4355 else
4356   ac_build_prefix=${build_alias}-
4357
4358   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4359 set dummy ${ac_build_prefix}gcc; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if test -n "$BUILD_CC"; then
4366   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 BUILD_CC=$ac_cv_prog_BUILD_CC
4386 if test -n "$BUILD_CC"; then
4387   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4388 echo "${ECHO_T}$BUILD_CC" >&6; }
4389 else
4390   { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4392 fi
4393
4394
4395   if test -z "$BUILD_CC"; then
4396      # Extract the first word of "gcc", so it can be a program name with args.
4397 set dummy gcc; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$BUILD_CC"; then
4404   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_prog_BUILD_CC="gcc"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
4423 BUILD_CC=$ac_cv_prog_BUILD_CC
4424 if test -n "$BUILD_CC"; then
4425   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426 echo "${ECHO_T}$BUILD_CC" >&6; }
4427 else
4428   { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4430 fi
4431
4432
4433      if test -z "$BUILD_CC"; then
4434        # Extract the first word of "cc", so it can be a program name with args.
4435 set dummy cc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$BUILD_CC"; then
4442   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443 else
4444   ac_prog_rejected=no
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4452     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4453        ac_prog_rejected=yes
4454        continue
4455      fi
4456     ac_cv_prog_BUILD_CC="cc"
4457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4463
4464 if test $ac_prog_rejected = yes; then
4465   # We found a bogon in the path, so make sure we never use it.
4466   set dummy $ac_cv_prog_BUILD_CC
4467   shift
4468   if test $# != 0; then
4469     # We chose a different compiler from the bogus one.
4470     # However, it has the same basename, so the bogon will be chosen
4471     # first if we set BUILD_CC to just the basename; use the full file name.
4472     shift
4473     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4474   fi
4475 fi
4476 fi
4477 fi
4478 BUILD_CC=$ac_cv_prog_BUILD_CC
4479 if test -n "$BUILD_CC"; then
4480   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4481 echo "${ECHO_T}$BUILD_CC" >&6; }
4482 else
4483   { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4485 fi
4486
4487
4488      fi
4489   fi
4490   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4491 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4492    { (exit 1); exit 1; }; }
4493   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4494   rm -f conftest*
4495   echo 'int main () { return 0; }' > conftest.$ac_ext
4496   ac_cv_build_exeext=
4497   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4498   (eval $ac_build_link) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; then
4502     for file in conftest.*; do
4503       case $file in
4504       *.c | *.o | *.obj) ;;
4505       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4506       esac
4507     done
4508   else
4509     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4510 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4511    { (exit 1); exit 1; }; }
4512   fi
4513   rm -f conftest*
4514   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4515 fi
4516 fi
4517
4518 BUILD_EXEEXT=""
4519 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4520 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4521 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4522 ac_build_exeext=$BUILD_EXEEXT
4523
4524 else
4525   LLVM_CROSS_COMPILING=0
4526
4527 fi
4528
4529 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4530   cvsbuild="yes"
4531   optimize="no"
4532   CVSBUILD=CVSBUILD=1
4533
4534 else
4535   cvsbuild="no"
4536   optimize="yes"
4537 fi
4538
4539
4540 # Check whether --enable-optimized was given.
4541 if test "${enable_optimized+set}" = set; then
4542   enableval=$enable_optimized;
4543 else
4544   enableval=$optimize
4545 fi
4546
4547 if test ${enableval} = "no" ; then
4548   ENABLE_OPTIMIZED=
4549
4550 else
4551   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4552
4553 fi
4554
4555 # Check whether --enable-assertions was given.
4556 if test "${enable_assertions+set}" = set; then
4557   enableval=$enable_assertions;
4558 else
4559   enableval="yes"
4560 fi
4561
4562 if test ${enableval} = "yes" ; then
4563   DISABLE_ASSERTIONS=
4564
4565 else
4566   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4567
4568 fi
4569
4570 # Check whether --enable-debug-runtime was given.
4571 if test "${enable_debug_runtime+set}" = set; then
4572   enableval=$enable_debug_runtime;
4573 else
4574   enableval=no
4575 fi
4576
4577 if test ${enableval} = "no" ; then
4578   DEBUG_RUNTIME=
4579
4580 else
4581   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4582
4583 fi
4584
4585 # Check whether --enable-jit was given.
4586 if test "${enable_jit+set}" = set; then
4587   enableval=$enable_jit;
4588 else
4589   enableval=default
4590 fi
4591
4592 if test ${enableval} = "no"
4593 then
4594   JIT=
4595
4596 else
4597   case "$llvm_cv_target_arch" in
4598     x86)     TARGET_HAS_JIT=1
4599  ;;
4600     Sparc)   TARGET_HAS_JIT=1
4601  ;;
4602     PowerPC) TARGET_HAS_JIT=1
4603  ;;
4604     x86_64)  TARGET_HAS_JIT=0
4605  ;;
4606     Alpha)   TARGET_HAS_JIT=1
4607  ;;
4608     IA64)    TARGET_HAS_JIT=0
4609  ;;
4610     *)       TARGET_HAS_JIT=0
4611  ;;
4612   esac
4613 fi
4614
4615 # Check whether --enable-doxygen was given.
4616 if test "${enable_doxygen+set}" = set; then
4617   enableval=$enable_doxygen;
4618 else
4619   enableval=default
4620 fi
4621
4622 case "$enableval" in
4623   yes) ENABLE_DOXYGEN=1
4624  ;;
4625   no)  ENABLE_DOXYGEN=0
4626  ;;
4627   default) ENABLE_DOXYGEN=0
4628  ;;
4629   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4630 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4631    { (exit 1); exit 1; }; } ;;
4632 esac
4633
4634 # Check whether --enable-threads was given.
4635 if test "${enable_threads+set}" = set; then
4636   enableval=$enable_threads;
4637 else
4638   enableval=default
4639 fi
4640
4641 case "$enableval" in
4642   yes) ENABLE_THREADS=1
4643  ;;
4644   no)  ENABLE_THREADS=0
4645  ;;
4646   default) ENABLE_THREADS=1
4647  ;;
4648   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4649 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4650    { (exit 1); exit 1; }; } ;;
4651 esac
4652
4653 cat >>confdefs.h <<_ACEOF
4654 #define ENABLE_THREADS $ENABLE_THREADS
4655 _ACEOF
4656
4657
4658 # Check whether --enable-pic was given.
4659 if test "${enable_pic+set}" = set; then
4660   enableval=$enable_pic;
4661 else
4662   enableval=default
4663 fi
4664
4665 case "$enableval" in
4666   yes) ENABLE_PIC=1
4667  ;;
4668   no)  ENABLE_PIC=0
4669  ;;
4670   default) ENABLE_PIC=0
4671  ;;
4672   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4673 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4674    { (exit 1); exit 1; }; } ;;
4675 esac
4676
4677 cat >>confdefs.h <<_ACEOF
4678 #define ENABLE_PIC $ENABLE_PIC
4679 _ACEOF
4680
4681
4682 TARGETS_TO_BUILD=""
4683 # Check whether --enable-targets was given.
4684 if test "${enable_targets+set}" = set; then
4685   enableval=$enable_targets;
4686 else
4687   enableval=all
4688 fi
4689
4690 case "$enableval" in
4691   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4692   host-only)
4693     case "$llvm_cv_target_arch" in
4694       x86)     TARGETS_TO_BUILD="X86" ;;
4695       x86_64)  TARGETS_TO_BUILD="X86" ;;
4696       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4697       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4698       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4699       IA64)    TARGETS_TO_BUILD="IA64" ;;
4700       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4701 echo "$as_me: error: Can not set target to build" >&2;}
4702    { (exit 1); exit 1; }; } ;;
4703     esac
4704     ;;
4705   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4706       case "$a_target" in
4707         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4708         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4710         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4711         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4712         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4713         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4714 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4715    { (exit 1); exit 1; }; } ;;
4716       esac
4717   done
4718   ;;
4719 esac
4720 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4721 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4722
4723
4724 # Check whether --enable-cbe-printf-a was given.
4725 if test "${enable_cbe_printf_a+set}" = set; then
4726   enableval=$enable_cbe_printf_a;
4727 else
4728   enableval=default
4729 fi
4730
4731 case "$enableval" in
4732   yes) ENABLE_CBE_PRINTF_A=1
4733  ;;
4734   no)  ENABLE_CBE_PRINTF_A=0
4735  ;;
4736   default)  ENABLE_CBE_PRINTF_A=1
4737  ;;
4738   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4739 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4740    { (exit 1); exit 1; }; } ;;
4741 esac
4742
4743 cat >>confdefs.h <<_ACEOF
4744 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4745 _ACEOF
4746
4747
4748
4749 # Check whether --with-llvmgccdir was given.
4750 if test "${with_llvmgccdir+set}" = set; then
4751   withval=$with_llvmgccdir;
4752 else
4753   withval=default
4754 fi
4755
4756 case "$withval" in
4757   default) WITH_LLVMGCCDIR=default ;;
4758   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4759   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4760 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4761    { (exit 1); exit 1; }; } ;;
4762 esac
4763
4764
4765 # Check whether --with-extra-options was given.
4766 if test "${with_extra_options+set}" = set; then
4767   withval=$with_extra_options;
4768 else
4769   withval=default
4770 fi
4771
4772 case "$withval" in
4773   default) EXTRA_OPTIONS= ;;
4774   *) EXTRA_OPTIONS=$withval ;;
4775 esac
4776 EXTRA_OPTIONS=$EXTRA_OPTIONS
4777
4778
4779
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4786 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4787 # On Suns, sometimes $CPP names a directory.
4788 if test -n "$CPP" && test -d "$CPP"; then
4789   CPP=
4790 fi
4791 if test -z "$CPP"; then
4792   if test "${ac_cv_prog_CPP+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795       # Double quotes because CPP needs to be expanded
4796     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797     do
4798       ac_preproc_ok=false
4799 for ac_c_preproc_warn_flag in '' yes
4800 do
4801   # Use a header file that comes with gcc, so configuring glibc
4802   # with a fresh cross-compiler works.
4803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804   # <limits.h> exists even on freestanding compilers.
4805   # On the NeXT, cc -E runs the code through the compiler's parser,
4806   # not just through cpp. "Syntax error" is here to catch this case.
4807   cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 #ifdef __STDC__
4814 # include <limits.h>
4815 #else
4816 # include <assert.h>
4817 #endif
4818                      Syntax error
4819 _ACEOF
4820 if { (ac_try="$ac_cpp conftest.$ac_ext"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827   ac_status=$?
4828   grep -v '^ *+' conftest.er1 >conftest.err
4829   rm -f conftest.er1
4830   cat conftest.err >&5
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } >/dev/null; then
4833   if test -s conftest.err; then
4834     ac_cpp_err=$ac_c_preproc_warn_flag
4835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4836   else
4837     ac_cpp_err=
4838   fi
4839 else
4840   ac_cpp_err=yes
4841 fi
4842 if test -z "$ac_cpp_err"; then
4843   :
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848   # Broken: fails on valid input.
4849 continue
4850 fi
4851
4852 rm -f conftest.err conftest.$ac_ext
4853
4854   # OK, works on sane cases.  Now check whether nonexistent headers
4855   # can be detected and how.
4856   cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <ac_nonexistent.h>
4863 _ACEOF
4864 if { (ac_try="$ac_cpp conftest.$ac_ext"
4865 case "(($ac_try" in
4866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867   *) ac_try_echo=$ac_try;;
4868 esac
4869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } >/dev/null; then
4877   if test -s conftest.err; then
4878     ac_cpp_err=$ac_c_preproc_warn_flag
4879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4880   else
4881     ac_cpp_err=
4882   fi
4883 else
4884   ac_cpp_err=yes
4885 fi
4886 if test -z "$ac_cpp_err"; then
4887   # Broken: success on invalid input.
4888 continue
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893   # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4896 fi
4897
4898 rm -f conftest.err conftest.$ac_ext
4899
4900 done
4901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902 rm -f conftest.err conftest.$ac_ext
4903 if $ac_preproc_ok; then
4904   break
4905 fi
4906
4907     done
4908     ac_cv_prog_CPP=$CPP
4909
4910 fi
4911   CPP=$ac_cv_prog_CPP
4912 else
4913   ac_cv_prog_CPP=$CPP
4914 fi
4915 { echo "$as_me:$LINENO: result: $CPP" >&5
4916 echo "${ECHO_T}$CPP" >&6; }
4917 ac_preproc_ok=false
4918 for ac_c_preproc_warn_flag in '' yes
4919 do
4920   # Use a header file that comes with gcc, so configuring glibc
4921   # with a fresh cross-compiler works.
4922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923   # <limits.h> exists even on freestanding compilers.
4924   # On the NeXT, cc -E runs the code through the compiler's parser,
4925   # not just through cpp. "Syntax error" is here to catch this case.
4926   cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937                      Syntax error
4938 _ACEOF
4939 if { (ac_try="$ac_cpp conftest.$ac_ext"
4940 case "(($ac_try" in
4941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942   *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946   ac_status=$?
4947   grep -v '^ *+' conftest.er1 >conftest.err
4948   rm -f conftest.er1
4949   cat conftest.err >&5
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); } >/dev/null; then
4952   if test -s conftest.err; then
4953     ac_cpp_err=$ac_c_preproc_warn_flag
4954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4955   else
4956     ac_cpp_err=
4957   fi
4958 else
4959   ac_cpp_err=yes
4960 fi
4961 if test -z "$ac_cpp_err"; then
4962   :
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967   # Broken: fails on valid input.
4968 continue
4969 fi
4970
4971 rm -f conftest.err conftest.$ac_ext
4972
4973   # OK, works on sane cases.  Now check whether nonexistent headers
4974   # can be detected and how.
4975   cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 #include <ac_nonexistent.h>
4982 _ACEOF
4983 if { (ac_try="$ac_cpp conftest.$ac_ext"
4984 case "(($ac_try" in
4985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986   *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990   ac_status=$?
4991   grep -v '^ *+' conftest.er1 >conftest.err
4992   rm -f conftest.er1
4993   cat conftest.err >&5
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); } >/dev/null; then
4996   if test -s conftest.err; then
4997     ac_cpp_err=$ac_c_preproc_warn_flag
4998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4999   else
5000     ac_cpp_err=
5001   fi
5002 else
5003   ac_cpp_err=yes
5004 fi
5005 if test -z "$ac_cpp_err"; then
5006   # Broken: success on invalid input.
5007 continue
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Passes both tests.
5013 ac_preproc_ok=:
5014 break
5015 fi
5016
5017 rm -f conftest.err conftest.$ac_ext
5018
5019 done
5020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021 rm -f conftest.err conftest.$ac_ext
5022 if $ac_preproc_ok; then
5023   :
5024 else
5025   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5026 See \`config.log' for more details." >&5
5027 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." >&2;}
5029    { (exit 1); exit 1; }; }
5030 fi
5031
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 if test -n "$ac_tool_prefix"; then
5044   for ac_prog in gcc
5045   do
5046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_CC+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   if test -n "$CC"; then
5054   ac_cv_prog_CC="$CC" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 CC=$ac_cv_prog_CC
5074 if test -n "$CC"; then
5075   { echo "$as_me:$LINENO: result: $CC" >&5
5076 echo "${ECHO_T}$CC" >&6; }
5077 else
5078   { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5080 fi
5081
5082
5083     test -n "$CC" && break
5084   done
5085 fi
5086 if test -z "$CC"; then
5087   ac_ct_CC=$CC
5088   for ac_prog in gcc
5089 do
5090   # Extract the first word of "$ac_prog", so it can be a program name with args.
5091 set dummy $ac_prog; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   if test -n "$ac_ct_CC"; then
5098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_prog_ac_ct_CC="$ac_prog"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115 fi
5116 fi
5117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5118 if test -n "$ac_ct_CC"; then
5119   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5120 echo "${ECHO_T}$ac_ct_CC" >&6; }
5121 else
5122   { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5124 fi
5125
5126
5127   test -n "$ac_ct_CC" && break
5128 done
5129
5130   if test "x$ac_ct_CC" = x; then
5131     CC=""
5132   else
5133     case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5136 whose name does not start with the host triplet.  If you think this
5137 configuration is useful to you, please write to autoconf@gnu.org." >&5
5138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet.  If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143     CC=$ac_ct_CC
5144   fi
5145 fi
5146
5147
5148 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5149 See \`config.log' for more details." >&5
5150 echo "$as_me: error: no acceptable C compiler found in \$PATH
5151 See \`config.log' for more details." >&2;}
5152    { (exit 1); exit 1; }; }
5153
5154 # Provide some information about the compiler.
5155 echo "$as_me:$LINENO: checking for C compiler version" >&5
5156 ac_compiler=`set X $ac_compile; echo $2`
5157 { (ac_try="$ac_compiler --version >&5"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_compiler --version >&5") 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }
5167 { (ac_try="$ac_compiler -v >&5"
5168 case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_compiler -v >&5") 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }
5177 { (ac_try="$ac_compiler -V >&5"
5178 case "(($ac_try" in
5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180   *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183   (eval "$ac_compiler -V >&5") 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }
5187
5188 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5189 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5190 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199
5200 int
5201 main ()
5202 {
5203 #ifndef __GNUC__
5204        choke me
5205 #endif
5206
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext
5212 if { (ac_try="$ac_compile"
5213 case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218   (eval "$ac_compile") 2>conftest.er1
5219   ac_status=$?
5220   grep -v '^ *+' conftest.er1 >conftest.err
5221   rm -f conftest.er1
5222   cat conftest.err >&5
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); } &&
5225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5226   { (case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_try") 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }; } &&
5235          { ac_try='test -s conftest.$ac_objext'
5236   { (case "(($ac_try" in
5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238   *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241   (eval "$ac_try") 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; }; then
5245   ac_compiler_gnu=yes
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250         ac_compiler_gnu=no
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5255
5256 fi
5257 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5259 GCC=`test $ac_compiler_gnu = yes && echo yes`
5260 ac_test_CFLAGS=${CFLAGS+set}
5261 ac_save_CFLAGS=$CFLAGS
5262 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5264 if test "${ac_cv_prog_cc_g+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   ac_save_c_werror_flag=$ac_c_werror_flag
5268    ac_c_werror_flag=yes
5269    ac_cv_prog_cc_g=no
5270    CFLAGS="-g"
5271    cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277
5278 int
5279 main ()
5280 {
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (ac_try="$ac_compile"
5288 case "(($ac_try" in
5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290   *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293   (eval "$ac_compile") 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301   { (case "(($ac_try" in
5302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303   *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306   (eval "$ac_try") 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; } &&
5310          { ac_try='test -s conftest.$ac_objext'
5311   { (case "(($ac_try" in
5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313   *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316   (eval "$ac_try") 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_prog_cc_g=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325         CFLAGS=""
5326       cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332
5333 int
5334 main ()
5335 {
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_compile") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356   { (case "(($ac_try" in
5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358   *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361   (eval "$ac_try") 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; } &&
5365          { ac_try='test -s conftest.$ac_objext'
5366   { (case "(($ac_try" in
5367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368   *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371   (eval "$ac_try") 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; }; then
5375   :
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380         ac_c_werror_flag=$ac_save_c_werror_flag
5381          CFLAGS="-g"
5382          cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h.  */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h.  */
5388
5389 int
5390 main ()
5391 {
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404   (eval "$ac_compile") 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } &&
5411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412   { (case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_try") 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; } &&
5421          { ac_try='test -s conftest.$ac_objext'
5422   { (case "(($ac_try" in
5423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424   *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427   (eval "$ac_try") 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; }; then
5431   ac_cv_prog_cc_g=yes
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 fi
5441
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 fi
5444
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446    ac_c_werror_flag=$ac_save_c_werror_flag
5447 fi
5448 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5450 if test "$ac_test_CFLAGS" = set; then
5451   CFLAGS=$ac_save_CFLAGS
5452 elif test $ac_cv_prog_cc_g = yes; then
5453   if test "$GCC" = yes; then
5454     CFLAGS="-g -O2"
5455   else
5456     CFLAGS="-g"
5457   fi
5458 else
5459   if test "$GCC" = yes; then
5460     CFLAGS="-O2"
5461   else
5462     CFLAGS=
5463   fi
5464 fi
5465 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5466 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_cc_c89+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   ac_cv_prog_cc_c89=no
5471 ac_save_CC=$CC
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 #include <stdarg.h>
5479 #include <stdio.h>
5480 #include <sys/types.h>
5481 #include <sys/stat.h>
5482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5483 struct buf { int x; };
5484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5485 static char *e (p, i)
5486      char **p;
5487      int i;
5488 {
5489   return p[i];
5490 }
5491 static char *f (char * (*g) (char **, int), char **p, ...)
5492 {
5493   char *s;
5494   va_list v;
5495   va_start (v,p);
5496   s = g (p, va_arg (v,int));
5497   va_end (v);
5498   return s;
5499 }
5500
5501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5502    function prototypes and stuff, but not '\xHH' hex character constants.
5503    These don't provoke an error unfortunately, instead are silently treated
5504    as 'x'.  The following induces an error, until -std is added to get
5505    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5506    array size at least.  It's necessary to write '\x00'==0 to get something
5507    that's true only with -std.  */
5508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5509
5510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5511    inside strings and character constants.  */
5512 #define FOO(x) 'x'
5513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5514
5515 int test (int i, double x);
5516 struct s1 {int (*f) (int a);};
5517 struct s2 {int (*f) (double a);};
5518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5519 int argc;
5520 char **argv;
5521 int
5522 main ()
5523 {
5524 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5530         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5531 do
5532   CC="$ac_save_CC $ac_arg"
5533   rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537   *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540   (eval "$ac_compile") 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548   { (case "(($ac_try" in
5549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550   *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553   (eval "$ac_try") 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; } &&
5557          { ac_try='test -s conftest.$ac_objext'
5558   { (case "(($ac_try" in
5559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560   *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563   (eval "$ac_try") 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); }; }; then
5567   ac_cv_prog_cc_c89=$ac_arg
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext
5576   test "x$ac_cv_prog_cc_c89" != "xno" && break
5577 done
5578 rm -f conftest.$ac_ext
5579 CC=$ac_save_CC
5580
5581 fi
5582 # AC_CACHE_VAL
5583 case "x$ac_cv_prog_cc_c89" in
5584   x)
5585     { echo "$as_me:$LINENO: result: none needed" >&5
5586 echo "${ECHO_T}none needed" >&6; } ;;
5587   xno)
5588     { echo "$as_me:$LINENO: result: unsupported" >&5
5589 echo "${ECHO_T}unsupported" >&6; } ;;
5590   *)
5591     CC="$CC $ac_cv_prog_cc_c89"
5592     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5593 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5594 esac
5595
5596
5597 ac_ext=c
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602
5603 ac_ext=cpp
5604 ac_cpp='$CXXCPP $CPPFLAGS'
5605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5608 if test -z "$CXX"; then
5609   if test -n "$CCC"; then
5610     CXX=$CCC
5611   else
5612     if test -n "$ac_tool_prefix"; then
5613   for ac_prog in g++
5614   do
5615     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619 if test "${ac_cv_prog_CXX+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   if test -n "$CXX"; then
5623   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630   for ac_exec_ext in '' $ac_executable_extensions; do
5631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5632     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 CXX=$ac_cv_prog_CXX
5643 if test -n "$CXX"; then
5644   { echo "$as_me:$LINENO: result: $CXX" >&5
5645 echo "${ECHO_T}$CXX" >&6; }
5646 else
5647   { echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6; }
5649 fi
5650
5651
5652     test -n "$CXX" && break
5653   done
5654 fi
5655 if test -z "$CXX"; then
5656   ac_ct_CXX=$CXX
5657   for ac_prog in g++
5658 do
5659   # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   if test -n "$ac_ct_CXX"; then
5667   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672   IFS=$as_save_IFS
5673   test -z "$as_dir" && as_dir=.
5674   for ac_exec_ext in '' $ac_executable_extensions; do
5675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676     ac_cv_prog_ac_ct_CXX="$ac_prog"
5677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678     break 2
5679   fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5687 if test -n "$ac_ct_CXX"; then
5688   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5689 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5690 else
5691   { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5693 fi
5694
5695
5696   test -n "$ac_ct_CXX" && break
5697 done
5698
5699   if test "x$ac_ct_CXX" = x; then
5700     CXX="g++"
5701   else
5702     case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5705 whose name does not start with the host triplet.  If you think this
5706 configuration is useful to you, please write to autoconf@gnu.org." >&5
5707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5708 whose name does not start with the host triplet.  If you think this
5709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5710 ac_tool_warned=yes ;;
5711 esac
5712     CXX=$ac_ct_CXX
5713   fi
5714 fi
5715
5716   fi
5717 fi
5718 # Provide some information about the compiler.
5719 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5720 ac_compiler=`set X $ac_compile; echo $2`
5721 { (ac_try="$ac_compiler --version >&5"
5722 case "(($ac_try" in
5723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724   *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727   (eval "$ac_compiler --version >&5") 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }
5731 { (ac_try="$ac_compiler -v >&5"
5732 case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737   (eval "$ac_compiler -v >&5") 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }
5741 { (ac_try="$ac_compiler -V >&5"
5742 case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747   (eval "$ac_compiler -V >&5") 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }
5751
5752 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5753 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5754 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763
5764 int
5765 main ()
5766 {
5767 #ifndef __GNUC__
5768        choke me
5769 #endif
5770
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_compile") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } &&
5789          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5790   { (case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_try") 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; } &&
5799          { ac_try='test -s conftest.$ac_objext'
5800   { (case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_try") 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; }; then
5809   ac_compiler_gnu=yes
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814         ac_compiler_gnu=no
5815 fi
5816
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5819
5820 fi
5821 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5822 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5823 GXX=`test $ac_compiler_gnu = yes && echo yes`
5824 ac_test_CXXFLAGS=${CXXFLAGS+set}
5825 ac_save_CXXFLAGS=$CXXFLAGS
5826 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5827 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5828 if test "${ac_cv_prog_cxx_g+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5832    ac_cxx_werror_flag=yes
5833    ac_cv_prog_cxx_g=no
5834    CXXFLAGS="-g"
5835    cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841
5842 int
5843 main ()
5844 {
5845
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compile") 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } &&
5864          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5865   { (case "(($ac_try" in
5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867   *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870   (eval "$ac_try") 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest.$ac_objext'
5875   { (case "(($ac_try" in
5876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877   *) ac_try_echo=$ac_try;;
5878 esac
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880   (eval "$ac_try") 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   ac_cv_prog_cxx_g=yes
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889         CXXFLAGS=""
5890       cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896
5897 int
5898 main ()
5899 {
5900
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920   { (case "(($ac_try" in
5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922   *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925   (eval "$ac_try") 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest.$ac_objext'
5930   { (case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_try") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; }; then
5939   :
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5945          CXXFLAGS="-g"
5946          cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952
5953 int
5954 main ()
5955 {
5956
5957   ;
5958   return 0;
5959 }
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_compile") 2>conftest.er1
5969   ac_status=$?
5970   grep -v '^ *+' conftest.er1 >conftest.err
5971   rm -f conftest.er1
5972   cat conftest.err >&5
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); } &&
5975          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5976   { (case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_try") 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); }; } &&
5985          { ac_try='test -s conftest.$ac_objext'
5986   { (case "(($ac_try" in
5987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988   *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991   (eval "$ac_try") 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; }; then
5995   ac_cv_prog_cxx_g=yes
5996 else
5997   echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000
6001 fi
6002
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 fi
6008
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6011 fi
6012 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6013 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6014 if test "$ac_test_CXXFLAGS" = set; then
6015   CXXFLAGS=$ac_save_CXXFLAGS
6016 elif test $ac_cv_prog_cxx_g = yes; then
6017   if test "$GXX" = yes; then
6018     CXXFLAGS="-g -O2"
6019   else
6020     CXXFLAGS="-g"
6021   fi
6022 else
6023   if test "$GXX" = yes; then
6024     CXXFLAGS="-O2"
6025   else
6026     CXXFLAGS=
6027   fi
6028 fi
6029 ac_ext=c
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035 { echo "$as_me:$LINENO: checking " >&5
6036 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6037 if test "${ac_cv_has_flex+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   for ac_prog in flex lex
6041 do
6042   # Extract the first word of "$ac_prog", so it can be a program name with args.
6043 set dummy $ac_prog; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_LEX+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   if test -n "$LEX"; then
6050   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057   for ac_exec_ext in '' $ac_executable_extensions; do
6058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059     ac_cv_prog_LEX="$ac_prog"
6060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 LEX=$ac_cv_prog_LEX
6070 if test -n "$LEX"; then
6071   { echo "$as_me:$LINENO: result: $LEX" >&5
6072 echo "${ECHO_T}$LEX" >&6; }
6073 else
6074   { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6076 fi
6077
6078
6079   test -n "$LEX" && break
6080 done
6081 test -n "$LEX" || LEX=":"
6082
6083 if test -z "$LEXLIB"
6084 then
6085   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6086 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6087 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lfl  $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098
6099 /* Override any GCC internal prototype to avoid an error.
6100    Use char because int might match the return type of a GCC
6101    builtin and then its argument prototype would still apply.  */
6102 #ifdef __cplusplus
6103 extern "C"
6104 #endif
6105 char yywrap ();
6106 int
6107 main ()
6108 {
6109 return yywrap ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (ac_try="$ac_link"
6116 case "(($ac_try" in
6117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118   *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121   (eval "$ac_link") 2>conftest.er1
6122   ac_status=$?
6123   grep -v '^ *+' conftest.er1 >conftest.err
6124   rm -f conftest.er1
6125   cat conftest.err >&5
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } &&
6128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6129   { (case "(($ac_try" in
6130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131   *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134   (eval "$ac_try") 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; } &&
6138          { ac_try='test -s conftest$ac_exeext'
6139   { (case "(($ac_try" in
6140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141   *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144   (eval "$ac_try") 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; }; then
6148   ac_cv_lib_fl_yywrap=yes
6149 else
6150   echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153         ac_cv_lib_fl_yywrap=no
6154 fi
6155
6156 rm -f core conftest.err conftest.$ac_objext \
6157       conftest$ac_exeext conftest.$ac_ext
6158 LIBS=$ac_check_lib_save_LIBS
6159 fi
6160 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6161 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6162 if test $ac_cv_lib_fl_yywrap = yes; then
6163   LEXLIB="-lfl"
6164 else
6165   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6166 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6167 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   ac_check_lib_save_LIBS=$LIBS
6171 LIBS="-ll  $LIBS"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h.  */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h.  */
6178
6179 /* Override any GCC internal prototype to avoid an error.
6180    Use char because int might match the return type of a GCC
6181    builtin and then its argument prototype would still apply.  */
6182 #ifdef __cplusplus
6183 extern "C"
6184 #endif
6185 char yywrap ();
6186 int
6187 main ()
6188 {
6189 return yywrap ();
6190   ;
6191   return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6196 case "(($ac_try" in
6197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198   *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201   (eval "$ac_link") 2>conftest.er1
6202   ac_status=$?
6203   grep -v '^ *+' conftest.er1 >conftest.err
6204   rm -f conftest.er1
6205   cat conftest.err >&5
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } &&
6208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6209   { (case "(($ac_try" in
6210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211   *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214   (eval "$ac_try") 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; } &&
6218          { ac_try='test -s conftest$ac_exeext'
6219   { (case "(($ac_try" in
6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221   *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224   (eval "$ac_try") 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_lib_l_yywrap=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233         ac_cv_lib_l_yywrap=no
6234 fi
6235
6236 rm -f core conftest.err conftest.$ac_objext \
6237       conftest$ac_exeext conftest.$ac_ext
6238 LIBS=$ac_check_lib_save_LIBS
6239 fi
6240 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6241 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6242 if test $ac_cv_lib_l_yywrap = yes; then
6243   LEXLIB="-ll"
6244 fi
6245
6246 fi
6247
6248 fi
6249
6250 if test "x$LEX" != "x:"; then
6251   { echo "$as_me:$LINENO: checking lex output file root" >&5
6252 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_lex_root+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   # The minimal lex program is just a single line: %%.  But some broken lexes
6257 # (Solaris, I think it was) want two %% lines, so accommodate them.
6258 cat >conftest.l <<_ACEOF
6259 %%
6260 %%
6261 _ACEOF
6262 { (ac_try="$LEX conftest.l"
6263 case "(($ac_try" in
6264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265   *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268   (eval "$LEX conftest.l") 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }
6272 if test -f lex.yy.c; then
6273   ac_cv_prog_lex_root=lex.yy
6274 elif test -f lexyy.c; then
6275   ac_cv_prog_lex_root=lexyy
6276 else
6277   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6278 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6279    { (exit 1); exit 1; }; }
6280 fi
6281 fi
6282 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6283 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6284 rm -f conftest.l
6285 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6286
6287 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6288 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   # POSIX says lex can declare yytext either as a pointer or an array; the
6293 # default is implementation-dependent. Figure out which it is, since
6294 # not all implementations provide the %pointer and %array declarations.
6295 ac_cv_prog_lex_yytext_pointer=no
6296 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6297 ac_save_LIBS=$LIBS
6298 LIBS="$LIBS $LEXLIB"
6299 cat >conftest.$ac_ext <<_ACEOF
6300 `cat $LEX_OUTPUT_ROOT.c`
6301 _ACEOF
6302 rm -f conftest.$ac_objext conftest$ac_exeext
6303 if { (ac_try="$ac_link"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_link") 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } &&
6316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317   { (case "(($ac_try" in
6318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319   *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322   (eval "$ac_try") 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; } &&
6326          { ac_try='test -s conftest$ac_exeext'
6327   { (case "(($ac_try" in
6328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329   *) ac_try_echo=$ac_try;;
6330 esac
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332   (eval "$ac_try") 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   ac_cv_prog_lex_yytext_pointer=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341
6342 fi
6343
6344 rm -f core conftest.err conftest.$ac_objext \
6345       conftest$ac_exeext conftest.$ac_ext
6346 LIBS=$ac_save_LIBS
6347 rm -f "${LEX_OUTPUT_ROOT}.c"
6348
6349 fi
6350 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6351 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6352 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6353
6354 cat >>confdefs.h <<\_ACEOF
6355 #define YYTEXT_POINTER 1
6356 _ACEOF
6357
6358 fi
6359
6360 fi
6361
6362 fi
6363 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6364 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6365 if test "$LEX" != "flex"; then
6366   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6367 echo "$as_me: error: flex not found but required" >&2;}
6368    { (exit 1); exit 1; }; }
6369 else
6370   FLEX=flex
6371
6372 fi
6373
6374 { echo "$as_me:$LINENO: checking " >&5
6375 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6376 if test "${llvm_cv_has_bison+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   for ac_prog in 'bison -y' byacc
6380 do
6381   # Extract the first word of "$ac_prog", so it can be a program name with args.
6382 set dummy $ac_prog; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_YACC+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   if test -n "$YACC"; then
6389   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396   for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_prog_YACC="$ac_prog"
6399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 YACC=$ac_cv_prog_YACC
6409 if test -n "$YACC"; then
6410   { echo "$as_me:$LINENO: result: $YACC" >&5
6411 echo "${ECHO_T}$YACC" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6416
6417
6418   test -n "$YACC" && break
6419 done
6420 test -n "$YACC" || YACC="yacc"
6421
6422 fi
6423 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6424 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6425 if test "$YACC" != "bison -y"; then
6426
6427   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6428 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6429 else
6430   BISON=bison
6431
6432 fi
6433
6434 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6435 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6436 if test "${lt_cv_path_NM+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   if test -n "$NM"; then
6440   # Let the user override the test.
6441   lt_cv_path_NM="$NM"
6442 else
6443   lt_nm_to_check="${ac_tool_prefix}nm"
6444   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6445     lt_nm_to_check="$lt_nm_to_check nm"
6446   fi
6447   for lt_tmp_nm in $lt_nm_to_check; do
6448     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6449     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6450       IFS="$lt_save_ifs"
6451       test -z "$ac_dir" && ac_dir=.
6452       tmp_nm="$ac_dir/$lt_tmp_nm"
6453       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6454         # Check to see if the nm accepts a BSD-compat flag.
6455         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6456         #   nm: unknown option "B" ignored
6457         # Tru64's nm complains that /dev/null is an invalid object file
6458         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6459         */dev/null* | *'Invalid file or object type'*)
6460           lt_cv_path_NM="$tmp_nm -B"
6461           break
6462           ;;
6463         *)
6464           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6465           */dev/null*)
6466             lt_cv_path_NM="$tmp_nm -p"
6467             break
6468             ;;
6469           *)
6470             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6471             continue # so that we can try to find one that supports BSD flags
6472             ;;
6473           esac
6474           ;;
6475         esac
6476       fi
6477     done
6478     IFS="$lt_save_ifs"
6479   done
6480   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6481 fi
6482 fi
6483 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6484 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6485 NM="$lt_cv_path_NM"
6486
6487
6488
6489 { echo "$as_me:$LINENO: checking for GNU make" >&5
6490 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6491 if test "${llvm_cv_gnu_make_command+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   llvm_cv_gnu_make_command=''
6495  for a in "$MAKE" make gmake gnumake ; do
6496   if test -z "$a" ; then continue ; fi ;
6497   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6498   then
6499    llvm_cv_gnu_make_command=$a ;
6500    break;
6501   fi
6502  done
6503 fi
6504 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6505 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6506  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6507    ifGNUmake='' ;
6508  else
6509    ifGNUmake='#' ;
6510    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6511 echo "${ECHO_T}\"Not found\"" >&6; };
6512  fi
6513
6514
6515 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6516 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6517 LN_S=$as_ln_s
6518 if test "$LN_S" = "ln -s"; then
6519   { echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6; }
6521 else
6522   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6523 echo "${ECHO_T}no, using $LN_S" >&6; }
6524 fi
6525
6526 # Extract the first word of "cmp", so it can be a program name with args.
6527 set dummy cmp; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_path_CMP+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   case $CMP in
6534   [\\/]* | ?:[\\/]*)
6535   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6536   ;;
6537   *)
6538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6554   ;;
6555 esac
6556 fi
6557 CMP=$ac_cv_path_CMP
6558 if test -n "$CMP"; then
6559   { echo "$as_me:$LINENO: result: $CMP" >&5
6560 echo "${ECHO_T}$CMP" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6564 fi
6565
6566
6567 # Extract the first word of "cp", so it can be a program name with args.
6568 set dummy cp; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_path_CP+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   case $CP in
6575   [\\/]* | ?:[\\/]*)
6576   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6577   ;;
6578   *)
6579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584   for ac_exec_ext in '' $ac_executable_extensions; do
6585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6595   ;;
6596 esac
6597 fi
6598 CP=$ac_cv_path_CP
6599 if test -n "$CP"; then
6600   { echo "$as_me:$LINENO: result: $CP" >&5
6601 echo "${ECHO_T}$CP" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607
6608 # Extract the first word of "date", so it can be a program name with args.
6609 set dummy date; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_path_DATE+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   case $DATE in
6616   [\\/]* | ?:[\\/]*)
6617   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6618   ;;
6619   *)
6620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625   for ac_exec_ext in '' $ac_executable_extensions; do
6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6636   ;;
6637 esac
6638 fi
6639 DATE=$ac_cv_path_DATE
6640 if test -n "$DATE"; then
6641   { echo "$as_me:$LINENO: result: $DATE" >&5
6642 echo "${ECHO_T}$DATE" >&6; }
6643 else
6644   { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6646 fi
6647
6648
6649 # Extract the first word of "find", so it can be a program name with args.
6650 set dummy find; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_path_FIND+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   case $FIND in
6657   [\\/]* | ?:[\\/]*)
6658   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6659   ;;
6660   *)
6661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666   for ac_exec_ext in '' $ac_executable_extensions; do
6667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6677   ;;
6678 esac
6679 fi
6680 FIND=$ac_cv_path_FIND
6681 if test -n "$FIND"; then
6682   { echo "$as_me:$LINENO: result: $FIND" >&5
6683 echo "${ECHO_T}$FIND" >&6; }
6684 else
6685   { echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6; }
6687 fi
6688
6689
6690 # Extract the first word of "grep", so it can be a program name with args.
6691 set dummy grep; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_GREP+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   case $GREP in
6698   [\\/]* | ?:[\\/]*)
6699   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6700   ;;
6701   *)
6702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707   for ac_exec_ext in '' $ac_executable_extensions; do
6708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6718   ;;
6719 esac
6720 fi
6721 GREP=$ac_cv_path_GREP
6722 if test -n "$GREP"; then
6723   { echo "$as_me:$LINENO: result: $GREP" >&5
6724 echo "${ECHO_T}$GREP" >&6; }
6725 else
6726   { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6728 fi
6729
6730
6731 # Extract the first word of "mkdir", so it can be a program name with args.
6732 set dummy mkdir; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_MKDIR+set}" = set; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   case $MKDIR in
6739   [\\/]* | ?:[\\/]*)
6740   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6741   ;;
6742   *)
6743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748   for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6759   ;;
6760 esac
6761 fi
6762 MKDIR=$ac_cv_path_MKDIR
6763 if test -n "$MKDIR"; then
6764   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6765 echo "${ECHO_T}$MKDIR" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772 # Extract the first word of "mv", so it can be a program name with args.
6773 set dummy mv; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_MV+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   case $MV in
6780   [\\/]* | ?:[\\/]*)
6781   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6782   ;;
6783   *)
6784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6800   ;;
6801 esac
6802 fi
6803 MV=$ac_cv_path_MV
6804 if test -n "$MV"; then
6805   { echo "$as_me:$LINENO: result: $MV" >&5
6806 echo "${ECHO_T}$MV" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812
6813 if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_RANLIB+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$RANLIB"; then
6822   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823 else
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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 fi
6840 fi
6841 RANLIB=$ac_cv_prog_RANLIB
6842 if test -n "$RANLIB"; then
6843   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6844 echo "${ECHO_T}$RANLIB" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_RANLIB"; then
6853   ac_ct_RANLIB=$RANLIB
6854   # Extract the first word of "ranlib", so it can be a program name with args.
6855 set dummy 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_ac_ct_RANLIB+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$ac_ct_RANLIB"; then
6862   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882 if test -n "$ac_ct_RANLIB"; then
6883   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6884 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_RANLIB" = x; then
6891     RANLIB=":"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet.  If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet.  If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     RANLIB=$ac_ct_RANLIB
6904   fi
6905 else
6906   RANLIB="$ac_cv_prog_RANLIB"
6907 fi
6908
6909 # Extract the first word of "rm", so it can be a program name with args.
6910 set dummy rm; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_RM+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   case $RM in
6917   [\\/]* | ?:[\\/]*)
6918   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6919   ;;
6920   *)
6921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6937   ;;
6938 esac
6939 fi
6940 RM=$ac_cv_path_RM
6941 if test -n "$RM"; then
6942   { echo "$as_me:$LINENO: result: $RM" >&5
6943 echo "${ECHO_T}$RM" >&6; }
6944 else
6945   { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6948
6949
6950 # Extract the first word of "sed", so it can be a program name with args.
6951 set dummy sed; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_SED+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   case $SED in
6958   [\\/]* | ?:[\\/]*)
6959   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6960   ;;
6961   *)
6962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967   for ac_exec_ext in '' $ac_executable_extensions; do
6968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6978   ;;
6979 esac
6980 fi
6981 SED=$ac_cv_path_SED
6982 if test -n "$SED"; then
6983   { echo "$as_me:$LINENO: result: $SED" >&5
6984 echo "${ECHO_T}$SED" >&6; }
6985 else
6986   { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6988 fi
6989
6990
6991 # Extract the first word of "tar", so it can be a program name with args.
6992 set dummy tar; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_path_TAR+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   case $TAR in
6999   [\\/]* | ?:[\\/]*)
7000   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7001   ;;
7002   *)
7003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008   for ac_exec_ext in '' $ac_executable_extensions; do
7009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7019   ;;
7020 esac
7021 fi
7022 TAR=$ac_cv_path_TAR
7023 if test -n "$TAR"; then
7024   { echo "$as_me:$LINENO: result: $TAR" >&5
7025 echo "${ECHO_T}$TAR" >&6; }
7026 else
7027   { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7029 fi
7030
7031
7032 # Extract the first word of "pwd", so it can be a program name with args.
7033 set dummy pwd; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_path_BINPWD+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   case $BINPWD in
7040   [\\/]* | ?:[\\/]*)
7041   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7042   ;;
7043   *)
7044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047   IFS=$as_save_IFS
7048   test -z "$as_dir" && as_dir=.
7049   for ac_exec_ext in '' $ac_executable_extensions; do
7050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053     break 2
7054   fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7060   ;;
7061 esac
7062 fi
7063 BINPWD=$ac_cv_path_BINPWD
7064 if test -n "$BINPWD"; then
7065   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7066 echo "${ECHO_T}$BINPWD" >&6; }
7067 else
7068   { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7070 fi
7071
7072
7073
7074 # Extract the first word of "Graphviz", so it can be a program name with args.
7075 set dummy Graphviz; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   case $GRAPHVIZ in
7082   [\\/]* | ?:[\\/]*)
7083   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7084   ;;
7085   *)
7086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091   for ac_exec_ext in '' $ac_executable_extensions; do
7092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7102   ;;
7103 esac
7104 fi
7105 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7106 if test -n "$GRAPHVIZ"; then
7107   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7108 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7109 else
7110   { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7112 fi
7113
7114
7115 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7116
7117 cat >>confdefs.h <<\_ACEOF
7118 #define HAVE_GRAPHVIZ 1
7119 _ACEOF
7120
7121     if test "$llvm_cv_os_type" == "MingW" ; then
7122     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7123   fi
7124
7125 cat >>confdefs.h <<_ACEOF
7126 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7127 _ACEOF
7128
7129 fi
7130 # Extract the first word of "dot", so it can be a program name with args.
7131 set dummy dot; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_DOT+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   case $DOT in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7140   ;;
7141   *)
7142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7158   ;;
7159 esac
7160 fi
7161 DOT=$ac_cv_path_DOT
7162 if test -n "$DOT"; then
7163   { echo "$as_me:$LINENO: result: $DOT" >&5
7164 echo "${ECHO_T}$DOT" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170
7171 if test "$DOT" != "echo dot" ; then
7172
7173 cat >>confdefs.h <<\_ACEOF
7174 #define HAVE_DOT 1
7175 _ACEOF
7176
7177     if test "$llvm_cv_os_type" == "MingW" ; then
7178     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7179   fi
7180
7181 cat >>confdefs.h <<_ACEOF
7182 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7183 _ACEOF
7184
7185 fi
7186 for ac_prog in gv gsview32
7187 do
7188   # Extract the first word of "$ac_prog", so it can be a program name with args.
7189 set dummy $ac_prog; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_GV+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   case $GV in
7196   [\\/]* | ?:[\\/]*)
7197   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7198   ;;
7199   *)
7200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205   for ac_exec_ext in '' $ac_executable_extensions; do
7206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215   ;;
7216 esac
7217 fi
7218 GV=$ac_cv_path_GV
7219 if test -n "$GV"; then
7220   { echo "$as_me:$LINENO: result: $GV" >&5
7221 echo "${ECHO_T}$GV" >&6; }
7222 else
7223   { echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6; }
7225 fi
7226
7227
7228   test -n "$GV" && break
7229 done
7230 test -n "$GV" || GV="echo gv"
7231
7232 if test "$GV" != "echo gv" ; then
7233
7234 cat >>confdefs.h <<\_ACEOF
7235 #define HAVE_GV 1
7236 _ACEOF
7237
7238     if test "$llvm_cv_os_type" == "MingW" ; then
7239     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7240   fi
7241
7242 cat >>confdefs.h <<_ACEOF
7243 #define LLVM_PATH_GV "$GV${EXEEXT}"
7244 _ACEOF
7245
7246 fi
7247 # Extract the first word of "dotty", so it can be a program name with args.
7248 set dummy dotty; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_DOTTY+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   case $DOTTY in
7255   [\\/]* | ?:[\\/]*)
7256   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7257   ;;
7258   *)
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264   for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7275   ;;
7276 esac
7277 fi
7278 DOTTY=$ac_cv_path_DOTTY
7279 if test -n "$DOTTY"; then
7280   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7281 echo "${ECHO_T}$DOTTY" >&6; }
7282 else
7283   { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7285 fi
7286
7287
7288 if test "$DOTTY" != "echo dotty" ; then
7289
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_DOTTY 1
7292 _ACEOF
7293
7294     if test "$llvm_cv_os_type" == "MingW" ; then
7295     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7296   fi
7297
7298 cat >>confdefs.h <<_ACEOF
7299 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7300 _ACEOF
7301
7302 fi
7303
7304
7305 # Extract the first word of "perl", so it can be a program name with args.
7306 set dummy perl; ac_word=$2
7307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309 if test "${ac_cv_path_PERL+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   case $PERL in
7313   [\\/]* | ?:[\\/]*)
7314   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7315   ;;
7316   *)
7317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322   for ac_exec_ext in '' $ac_executable_extensions; do
7323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329 done
7330 IFS=$as_save_IFS
7331
7332   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7333   ;;
7334 esac
7335 fi
7336 PERL=$ac_cv_path_PERL
7337 if test -n "$PERL"; then
7338   { echo "$as_me:$LINENO: result: $PERL" >&5
7339 echo "${ECHO_T}$PERL" >&6; }
7340 else
7341   { echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6; }
7343 fi
7344
7345
7346 if test "$PERL" != "none"; then
7347   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7348 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7349   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7350     { echo "$as_me:$LINENO: result: yes" >&5
7351 echo "${ECHO_T}yes" >&6; }
7352   else
7353     PERL=none
7354     { echo "$as_me:$LINENO: result: not found" >&5
7355 echo "${ECHO_T}not found" >&6; }
7356   fi
7357 fi
7358
7359
7360 if test x"$PERL" = xnone; then
7361    HAVE_PERL=0
7362
7363 else
7364    HAVE_PERL=1
7365
7366 fi
7367
7368 # Find a good install program.  We prefer a C program (faster),
7369 # so one script is as good as another.  But avoid the broken or
7370 # incompatible versions:
7371 # SysV /etc/install, /usr/sbin/install
7372 # SunOS /usr/etc/install
7373 # IRIX /sbin/install
7374 # AIX /bin/install
7375 # AmigaOS /C/install, which installs bootblocks on floppy discs
7376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7379 # OS/2's system install, which has a completely different semantic
7380 # ./install, which can be erroneously created by make from ./install.sh.
7381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7383 if test -z "$INSTALL"; then
7384 if test "${ac_cv_path_install+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   # Account for people who put trailing slashes in PATH elements.
7393 case $as_dir/ in
7394   ./ | .// | /cC/* | \
7395   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7396   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7397   /usr/ucb/* ) ;;
7398   *)
7399     # OSF1 and SCO ODT 3.0 have their own names for install.
7400     # Don't use installbsd from OSF since it installs stuff as root
7401     # by default.
7402     for ac_prog in ginstall scoinst install; do
7403       for ac_exec_ext in '' $ac_executable_extensions; do
7404         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7405           if test $ac_prog = install &&
7406             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7407             # AIX install.  It has an incompatible calling convention.
7408             :
7409           elif test $ac_prog = install &&
7410             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7411             # program-specific install script used by HP pwplus--don't use.
7412             :
7413           else
7414             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7415             break 3
7416           fi
7417         fi
7418       done
7419     done
7420     ;;
7421 esac
7422 done
7423 IFS=$as_save_IFS
7424
7425
7426 fi
7427   if test "${ac_cv_path_install+set}" = set; then
7428     INSTALL=$ac_cv_path_install
7429   else
7430     # As a last resort, use the slow shell script.  Don't cache a
7431     # value for INSTALL within a source directory, because that will
7432     # break other packages using the cache if that directory is
7433     # removed, or if the value is a relative name.
7434     INSTALL=$ac_install_sh
7435   fi
7436 fi
7437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7438 echo "${ECHO_T}$INSTALL" >&6; }
7439
7440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7441 # It thinks the first close brace ends the variable substitution.
7442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7443
7444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7445
7446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7447
7448
7449 # Extract the first word of "bzip2", so it can be a program name with args.
7450 set dummy bzip2; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_BZIP2+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   case $BZIP2 in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466   for ac_exec_ext in '' $ac_executable_extensions; do
7467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7477   ;;
7478 esac
7479 fi
7480 BZIP2=$ac_cv_path_BZIP2
7481 if test -n "$BZIP2"; then
7482   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7483 echo "${ECHO_T}$BZIP2" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490 # Extract the first word of "doxygen", so it can be a program name with args.
7491 set dummy doxygen; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   case $DOXYGEN in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7518   ;;
7519 esac
7520 fi
7521 DOXYGEN=$ac_cv_path_DOXYGEN
7522 if test -n "$DOXYGEN"; then
7523   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7524 echo "${ECHO_T}$DOXYGEN" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530
7531 # Extract the first word of "groff", so it can be a program name with args.
7532 set dummy groff; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_GROFF+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   case $GROFF in
7539   [\\/]* | ?:[\\/]*)
7540   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7541   ;;
7542   *)
7543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548   for ac_exec_ext in '' $ac_executable_extensions; do
7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7559   ;;
7560 esac
7561 fi
7562 GROFF=$ac_cv_path_GROFF
7563 if test -n "$GROFF"; then
7564   { echo "$as_me:$LINENO: result: $GROFF" >&5
7565 echo "${ECHO_T}$GROFF" >&6; }
7566 else
7567   { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7569 fi
7570
7571
7572 # Extract the first word of "gzip", so it can be a program name with args.
7573 set dummy gzip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_GZIP+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $GZIP in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7600   ;;
7601 esac
7602 fi
7603 GZIP=$ac_cv_path_GZIP
7604 if test -n "$GZIP"; then
7605   { echo "$as_me:$LINENO: result: $GZIP" >&5
7606 echo "${ECHO_T}$GZIP" >&6; }
7607 else
7608   { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7610 fi
7611
7612
7613 # Extract the first word of "pod2html", so it can be a program name with args.
7614 set dummy pod2html; ac_word=$2
7615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617 if test "${ac_cv_path_POD2HTML+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   case $POD2HTML in
7621   [\\/]* | ?:[\\/]*)
7622   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7623   ;;
7624   *)
7625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630   for ac_exec_ext in '' $ac_executable_extensions; do
7631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7632     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7641   ;;
7642 esac
7643 fi
7644 POD2HTML=$ac_cv_path_POD2HTML
7645 if test -n "$POD2HTML"; then
7646   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7647 echo "${ECHO_T}$POD2HTML" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7652
7653
7654 # Extract the first word of "pod2man", so it can be a program name with args.
7655 set dummy pod2man; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_path_POD2MAN+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   case $POD2MAN in
7662   [\\/]* | ?:[\\/]*)
7663   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7664   ;;
7665   *)
7666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671   for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7682   ;;
7683 esac
7684 fi
7685 POD2MAN=$ac_cv_path_POD2MAN
7686 if test -n "$POD2MAN"; then
7687   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7688 echo "${ECHO_T}$POD2MAN" >&6; }
7689 else
7690   { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7692 fi
7693
7694
7695 # Extract the first word of "runtest", so it can be a program name with args.
7696 set dummy runtest; ac_word=$2
7697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699 if test "${ac_cv_path_RUNTEST+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   case $RUNTEST in
7703   [\\/]* | ?:[\\/]*)
7704   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7705   ;;
7706   *)
7707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712   for ac_exec_ext in '' $ac_executable_extensions; do
7713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7714     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7723   ;;
7724 esac
7725 fi
7726 RUNTEST=$ac_cv_path_RUNTEST
7727 if test -n "$RUNTEST"; then
7728   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7729 echo "${ECHO_T}$RUNTEST" >&6; }
7730 else
7731   { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7733 fi
7734
7735
7736
7737 no_itcl=true
7738 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7739 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7740
7741 # Check whether --with-tclinclude was given.
7742 if test "${with_tclinclude+set}" = set; then
7743   withval=$with_tclinclude; with_tclinclude=${withval}
7744 else
7745   with_tclinclude=''
7746 fi
7747
7748 if test "${ac_cv_path_tclsh+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751
7752 if test x"${with_tclinclude}" != x ; then
7753   if test -f ${with_tclinclude}/tclsh ; then
7754     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7755   elif test -f ${with_tclinclude}/src/tclsh ; then
7756     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7757   else
7758     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7759 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7760    { (exit 1); exit 1; }; }
7761   fi
7762 fi
7763
7764 if test x"${ac_cv_path_tclsh}" = x ; then
7765   { echo "$as_me:$LINENO: result: none" >&5
7766 echo "${ECHO_T}none" >&6; }
7767   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
7768 do
7769   # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773 if test "${ac_cv_path_TCLSH+set}" = set; then
7774   echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776   case $TCLSH in
7777   [\\/]* | ?:[\\/]*)
7778   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7779   ;;
7780   *)
7781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   test -z "$as_dir" && as_dir=.
7786   for ac_exec_ext in '' $ac_executable_extensions; do
7787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796   ;;
7797 esac
7798 fi
7799 TCLSH=$ac_cv_path_TCLSH
7800 if test -n "$TCLSH"; then
7801   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7802 echo "${ECHO_T}$TCLSH" >&6; }
7803 else
7804   { echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6; }
7806 fi
7807
7808
7809   test -n "$TCLSH" && break
7810 done
7811
7812   if test x"${TCLSH}" = x ; then
7813     ac_cv_path_tclsh='';
7814   else
7815     ac_cv_path_tclsh="${TCLSH}";
7816   fi
7817 else
7818   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7819 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7820   TCLSH="${ac_cv_path_tclsh}"
7821
7822 fi
7823
7824 fi
7825
7826 # Extract the first word of "zip", so it can be a program name with args.
7827 set dummy zip; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_ZIP+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   case $ZIP in
7834   [\\/]* | ?:[\\/]*)
7835   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7836   ;;
7837   *)
7838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843   for ac_exec_ext in '' $ac_executable_extensions; do
7844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7854   ;;
7855 esac
7856 fi
7857 ZIP=$ac_cv_path_ZIP
7858 if test -n "$ZIP"; then
7859   { echo "$as_me:$LINENO: result: $ZIP" >&5
7860 echo "${ECHO_T}$ZIP" >&6; }
7861 else
7862   { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7864 fi
7865
7866
7867
7868 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7869 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7870 if test "${llvm_cv_link_use_r+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873    ac_ext=c
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879   oldcflags="$CFLAGS"
7880   CFLAGS="$CFLAGS -Wl,-R."
7881   cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h.  */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h.  */
7887
7888 int
7889 main ()
7890 {
7891 int main() { return 0; }
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7898 case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903   (eval "$ac_link") 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7911   { (case "(($ac_try" in
7912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913   *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916   (eval "$ac_try") 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; } &&
7920          { ac_try='test -s conftest$ac_exeext'
7921   { (case "(($ac_try" in
7922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923   *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926   (eval "$ac_try") 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930   llvm_cv_link_use_r=yes
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935         llvm_cv_link_use_r=no
7936 fi
7937
7938 rm -f core conftest.err conftest.$ac_objext \
7939       conftest$ac_exeext conftest.$ac_ext
7940   CFLAGS="$oldcflags"
7941   ac_ext=c
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947
7948 fi
7949 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7950 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7951 if test "$llvm_cv_link_use_r" = yes ; then
7952
7953 cat >>confdefs.h <<\_ACEOF
7954 #define HAVE_LINK_R 1
7955 _ACEOF
7956
7957   fi
7958
7959
7960
7961
7962 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7963 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7964 if test "${ac_cv_c_const+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973
7974 int
7975 main ()
7976 {
7977 /* FIXME: Include the comments suggested by Paul. */
7978 #ifndef __cplusplus
7979   /* Ultrix mips cc rejects this.  */
7980   typedef int charset[2];
7981   const charset x;
7982   /* SunOS 4.1.1 cc rejects this.  */
7983   char const *const *ccp;
7984   char **p;
7985   /* NEC SVR4.0.2 mips cc rejects this.  */
7986   struct point {int x, y;};
7987   static struct point const zero = {0,0};
7988   /* AIX XL C 1.02.0.0 rejects this.
7989      It does not let you subtract one const X* pointer from another in
7990      an arm of an if-expression whose if-part is not a constant
7991      expression */
7992   const char *g = "string";
7993   ccp = &g + (g ? g-g : 0);
7994   /* HPUX 7.0 cc rejects these. */
7995   ++ccp;
7996   p = (char**) ccp;
7997   ccp = (char const *const *) p;
7998   { /* SCO 3.2v4 cc rejects this.  */
7999     char *t;
8000     char const *s = 0 ? (char *) 0 : (char const *) 0;
8001
8002     *t++ = 0;
8003     if (s) return 0;
8004   }
8005   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8006     int x[] = {25, 17};
8007     const int *foo = &x[0];
8008     ++foo;
8009   }
8010   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8011     typedef const int *iptr;
8012     iptr p = 0;
8013     ++p;
8014   }
8015   { /* AIX XL C 1.02.0.0 rejects this saying
8016        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8017     struct s { int j; const int *ap[3]; };
8018     struct s *b; b->j = 5;
8019   }
8020   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8021     const int foo = 10;
8022     if (!foo) return 0;
8023   }
8024   return !x[0] && !zero.x;
8025 #endif
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_compile") 2>conftest.er1
8039   ac_status=$?
8040   grep -v '^ *+' conftest.er1 >conftest.err
8041   rm -f conftest.er1
8042   cat conftest.err >&5
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; } &&
8055          { ac_try='test -s conftest.$ac_objext'
8056   { (case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_try") 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_cv_c_const=yes
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070         ac_cv_c_const=no
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8076 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8077 if test $ac_cv_c_const = no; then
8078
8079 cat >>confdefs.h <<\_ACEOF
8080 #define const
8081 _ACEOF
8082
8083 fi
8084
8085
8086
8087
8088
8089
8090 ac_header_dirent=no
8091 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8092   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8093 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8094 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <sys/types.h>
8105 #include <$ac_hdr>
8106
8107 int
8108 main ()
8109 {
8110 if ((DIR *) 0)
8111 return 0;
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8118 case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_compile") 2>conftest.er1
8124   ac_status=$?
8125   grep -v '^ *+' conftest.er1 >conftest.err
8126   rm -f conftest.er1
8127   cat conftest.err >&5
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } &&
8130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8131   { (case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136   (eval "$ac_try") 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; } &&
8140          { ac_try='test -s conftest.$ac_objext'
8141   { (case "(($ac_try" in
8142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143   *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146   (eval "$ac_try") 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   eval "$as_ac_Header=yes"
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155         eval "$as_ac_Header=no"
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 ac_res=`eval echo '${'$as_ac_Header'}'`
8161                { echo "$as_me:$LINENO: result: $ac_res" >&5
8162 echo "${ECHO_T}$ac_res" >&6; }
8163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8164   cat >>confdefs.h <<_ACEOF
8165 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8166 _ACEOF
8167
8168 ac_header_dirent=$ac_hdr; break
8169 fi
8170
8171 done
8172 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8173 if test $ac_header_dirent = dirent.h; then
8174   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8175 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8176 if test "${ac_cv_search_opendir+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   ac_func_search_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 /* Override any GCC internal prototype to avoid an error.
8188    Use char because int might match the return type of a GCC
8189    builtin and then its argument prototype would still apply.  */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char opendir ();
8194 int
8195 main ()
8196 {
8197 return opendir ();
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 for ac_lib in '' dir; do
8203   if test -z "$ac_lib"; then
8204     ac_res="none required"
8205   else
8206     ac_res=-l$ac_lib
8207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8208   fi
8209   rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_link") 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224   { (case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_try") 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; } &&
8233          { ac_try='test -s conftest$ac_exeext'
8234   { (case "(($ac_try" in
8235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236   *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239   (eval "$ac_try") 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   ac_cv_search_opendir=$ac_res
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248
8249 fi
8250
8251 rm -f core conftest.err conftest.$ac_objext \
8252       conftest$ac_exeext
8253   if test "${ac_cv_search_opendir+set}" = set; then
8254   break
8255 fi
8256 done
8257 if test "${ac_cv_search_opendir+set}" = set; then
8258   :
8259 else
8260   ac_cv_search_opendir=no
8261 fi
8262 rm conftest.$ac_ext
8263 LIBS=$ac_func_search_save_LIBS
8264 fi
8265 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8266 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8267 ac_res=$ac_cv_search_opendir
8268 if test "$ac_res" != no; then
8269   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8270
8271 fi
8272
8273 else
8274   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8275 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8276 if test "${ac_cv_search_opendir+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   ac_func_search_save_LIBS=$LIBS
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 /* Override any GCC internal prototype to avoid an error.
8288    Use char because int might match the return type of a GCC
8289    builtin and then its argument prototype would still apply.  */
8290 #ifdef __cplusplus
8291 extern "C"
8292 #endif
8293 char opendir ();
8294 int
8295 main ()
8296 {
8297 return opendir ();
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 for ac_lib in '' x; do
8303   if test -z "$ac_lib"; then
8304     ac_res="none required"
8305   else
8306     ac_res=-l$ac_lib
8307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8308   fi
8309   rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_link") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324   { (case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329   (eval "$ac_try") 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; } &&
8333          { ac_try='test -s conftest$ac_exeext'
8334   { (case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_try") 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_cv_search_opendir=$ac_res
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext \
8352       conftest$ac_exeext
8353   if test "${ac_cv_search_opendir+set}" = set; then
8354   break
8355 fi
8356 done
8357 if test "${ac_cv_search_opendir+set}" = set; then
8358   :
8359 else
8360   ac_cv_search_opendir=no
8361 fi
8362 rm conftest.$ac_ext
8363 LIBS=$ac_func_search_save_LIBS
8364 fi
8365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8367 ac_res=$ac_cv_search_opendir
8368 if test "$ac_res" != no; then
8369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8370
8371 fi
8372
8373 fi
8374
8375
8376 for ac_header in dlfcn.h
8377 do
8378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 fi
8385 ac_res=`eval echo '${'$as_ac_Header'}'`
8386                { echo "$as_me:$LINENO: result: $ac_res" >&5
8387 echo "${ECHO_T}$ac_res" >&6; }
8388 else
8389   # Is the header compilable?
8390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 $ac_includes_default
8399 #include <$ac_header>
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_compile") 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416   { (case "(($ac_try" in
8417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418   *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421   (eval "$ac_try") 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; } &&
8425          { ac_try='test -s conftest.$ac_objext'
8426   { (case "(($ac_try" in
8427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428   *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431   (eval "$ac_try") 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_header_compiler=yes
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440         ac_header_compiler=no
8441 fi
8442
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6; }
8446
8447 # Is the header present?
8448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 #include <$ac_header>
8457 _ACEOF
8458 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } >/dev/null; then
8471   if test -s conftest.err; then
8472     ac_cpp_err=$ac_c_preproc_warn_flag
8473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8474   else
8475     ac_cpp_err=
8476   fi
8477 else
8478   ac_cpp_err=yes
8479 fi
8480 if test -z "$ac_cpp_err"; then
8481   ac_header_preproc=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486   ac_header_preproc=no
8487 fi
8488
8489 rm -f conftest.err conftest.$ac_ext
8490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491 echo "${ECHO_T}$ac_header_preproc" >&6; }
8492
8493 # So?  What about this header?
8494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8495   yes:no: )
8496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8500     ac_header_preproc=yes
8501     ;;
8502   no:yes:* )
8503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8515     ( cat <<\_ASBOX
8516 ## ----------------------------------- ##
8517 ## Report this to llvmbugs@cs.uiuc.edu ##
8518 ## ----------------------------------- ##
8519 _ASBOX
8520      ) | sed "s/^/$as_me: WARNING:     /" >&2
8521     ;;
8522 esac
8523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   eval "$as_ac_Header=\$ac_header_preproc"
8529 fi
8530 ac_res=`eval echo '${'$as_ac_Header'}'`
8531                { echo "$as_me:$LINENO: result: $ac_res" >&5
8532 echo "${ECHO_T}$ac_res" >&6; }
8533
8534 fi
8535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8536   cat >>confdefs.h <<_ACEOF
8537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538 _ACEOF
8539
8540 fi
8541
8542 done
8543
8544 # Check whether --enable-ltdl-install was given.
8545 if test "${enable_ltdl_install+set}" = set; then
8546   enableval=$enable_ltdl_install;
8547 fi
8548
8549
8550
8551
8552 if test x"${enable_ltdl_install-no}" != xno; then
8553   INSTALL_LTDL_TRUE=
8554   INSTALL_LTDL_FALSE='#'
8555 else
8556   INSTALL_LTDL_TRUE='#'
8557   INSTALL_LTDL_FALSE=
8558 fi
8559
8560
8561
8562 if test x"${enable_ltdl_convenience-no}" != xno; then
8563   CONVENIENCE_LTDL_TRUE=
8564   CONVENIENCE_LTDL_FALSE='#'
8565 else
8566   CONVENIENCE_LTDL_TRUE='#'
8567   CONVENIENCE_LTDL_FALSE=
8568 fi
8569
8570
8571 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8572 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8573 library_names_spec=
8574 libname_spec='lib$name'
8575 soname_spec=
8576 shrext_cmds=".so"
8577 postinstall_cmds=
8578 postuninstall_cmds=
8579 finish_cmds=
8580 finish_eval=
8581 shlibpath_var=
8582 shlibpath_overrides_runpath=unknown
8583 version_type=none
8584 dynamic_linker="$host_os ld.so"
8585 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8586 if test "$GCC" = yes; then
8587   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8588   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8589     # if the path contains ";" then we assume it to be the separator
8590     # otherwise default to the standard path separator (i.e. ":") - it is
8591     # assumed that no part of a normal pathname contains ";" but that should
8592     # okay in the real world where ";" in dirpaths is itself problematic.
8593     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8594   else
8595     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8596   fi
8597 else
8598   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8599 fi
8600 need_lib_prefix=unknown
8601 hardcode_into_libs=no
8602
8603 # when you set need_version to no, make sure it does not cause -set_version
8604 # flags to be left without arguments
8605 need_version=unknown
8606
8607 case $host_os in
8608 aix3*)
8609   version_type=linux
8610   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8611   shlibpath_var=LIBPATH
8612
8613   # AIX 3 has no versioning support, so we append a major version to the name.
8614   soname_spec='${libname}${release}${shared_ext}$major'
8615   ;;
8616
8617 aix4* | aix5*)
8618   version_type=linux
8619   need_lib_prefix=no
8620   need_version=no
8621   hardcode_into_libs=yes
8622   if test "$host_cpu" = ia64; then
8623     # AIX 5 supports IA64
8624     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8625     shlibpath_var=LD_LIBRARY_PATH
8626   else
8627     # With GCC up to 2.95.x, collect2 would create an import file
8628     # for dependence libraries.  The import file would start with
8629     # the line `#! .'.  This would cause the generated library to
8630     # depend on `.', always an invalid library.  This was fixed in
8631     # development snapshots of GCC prior to 3.0.
8632     case $host_os in
8633       aix4 | aix4.[01] | aix4.[01].*)
8634       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8635            echo ' yes '
8636            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8637         :
8638       else
8639         can_build_shared=no
8640       fi
8641       ;;
8642     esac
8643     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8644     # soname into executable. Probably we can add versioning support to
8645     # collect2, so additional links can be useful in future.
8646     if test "$aix_use_runtimelinking" = yes; then
8647       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8648       # instead of lib<name>.a to let people know that these are not
8649       # typical AIX shared libraries.
8650       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651     else
8652       # We preserve .a as extension for shared libraries through AIX4.2
8653       # and later when we are not doing run time linking.
8654       library_names_spec='${libname}${release}.a $libname.a'
8655       soname_spec='${libname}${release}${shared_ext}$major'
8656     fi
8657     shlibpath_var=LIBPATH
8658   fi
8659   ;;
8660
8661 amigaos*)
8662   library_names_spec='$libname.ixlibrary $libname.a'
8663   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8664   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'
8665   ;;
8666
8667 beos*)
8668   library_names_spec='${libname}${shared_ext}'
8669   dynamic_linker="$host_os ld.so"
8670   shlibpath_var=LIBRARY_PATH
8671   ;;
8672
8673 bsdi[45]*)
8674   version_type=linux
8675   need_version=no
8676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677   soname_spec='${libname}${release}${shared_ext}$major'
8678   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8679   shlibpath_var=LD_LIBRARY_PATH
8680   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8681   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8682   # the default ld.so.conf also contains /usr/contrib/lib and
8683   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8684   # libtool to hard-code these into programs
8685   ;;
8686
8687 cygwin* | mingw* | pw32*)
8688   version_type=windows
8689   shrext_cmds=".dll"
8690   need_version=no
8691   need_lib_prefix=no
8692
8693   case $GCC,$host_os in
8694   yes,cygwin* | yes,mingw* | yes,pw32*)
8695     library_names_spec='$libname.dll.a'
8696     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8697     postinstall_cmds='base_file=`basename \${file}`~
8698       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8699       dldir=$destdir/`dirname \$dlpath`~
8700       test -d \$dldir || mkdir -p \$dldir~
8701       $install_prog $dir/$dlname \$dldir/$dlname~
8702       chmod a+x \$dldir/$dlname'
8703     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8704       dlpath=$dir/\$dldll~
8705        $rm \$dlpath'
8706     shlibpath_overrides_runpath=yes
8707
8708     case $host_os in
8709     cygwin*)
8710       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8711       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8713       ;;
8714     mingw*)
8715       # MinGW DLLs use traditional 'lib' prefix
8716       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8719         # It is most probably a Windows format PATH printed by
8720         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8721         # path with ; separators, and with drive letters. We can handle the
8722         # drive letters (cygwin fileutils understands them), so leave them,
8723         # especially as we might pass files found there to a mingw objdump,
8724         # which wouldn't understand a cygwinified path. Ahh.
8725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726       else
8727         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8728       fi
8729       ;;
8730     pw32*)
8731       # pw32 DLLs use 'pw' prefix rather than 'lib'
8732       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8733       ;;
8734     esac
8735     ;;
8736
8737   *)
8738     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8739     ;;
8740   esac
8741   dynamic_linker='Win32 ld.exe'
8742   # FIXME: first we should search . and the directory the executable is in
8743   shlibpath_var=PATH
8744   ;;
8745
8746 darwin* | rhapsody*)
8747   dynamic_linker="$host_os dyld"
8748   version_type=darwin
8749   need_lib_prefix=no
8750   need_version=no
8751   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8752   soname_spec='${libname}${release}${major}$shared_ext'
8753   shlibpath_overrides_runpath=yes
8754   shlibpath_var=DYLD_LIBRARY_PATH
8755   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8756   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8757   if test "$GCC" = yes; then
8758     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"`
8759   else
8760     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8761   fi
8762   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8763   ;;
8764
8765 dgux*)
8766   version_type=linux
8767   need_lib_prefix=no
8768   need_version=no
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8770   soname_spec='${libname}${release}${shared_ext}$major'
8771   shlibpath_var=LD_LIBRARY_PATH
8772   ;;
8773
8774 freebsd1*)
8775   dynamic_linker=no
8776   ;;
8777
8778 kfreebsd*-gnu)
8779   version_type=linux
8780   need_lib_prefix=no
8781   need_version=no
8782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8783   soname_spec='${libname}${release}${shared_ext}$major'
8784   shlibpath_var=LD_LIBRARY_PATH
8785   shlibpath_overrides_runpath=no
8786   hardcode_into_libs=yes
8787   dynamic_linker='GNU ld.so'
8788   ;;
8789
8790 freebsd* | dragonfly*)
8791   # DragonFly does not have aout.  When/if they implement a new
8792   # versioning mechanism, adjust this.
8793   if test -x /usr/bin/objformat; then
8794     objformat=`/usr/bin/objformat`
8795   else
8796     case $host_os in
8797     freebsd[123]*) objformat=aout ;;
8798     *) objformat=elf ;;
8799     esac
8800   fi
8801   version_type=freebsd-$objformat
8802   case $version_type in
8803     freebsd-elf*)
8804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8805       need_version=no
8806       need_lib_prefix=no
8807       ;;
8808     freebsd-*)
8809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8810       need_version=yes
8811       ;;
8812   esac
8813   shlibpath_var=LD_LIBRARY_PATH
8814   case $host_os in
8815   freebsd2*)
8816     shlibpath_overrides_runpath=yes
8817     ;;
8818   freebsd3.[01]* | freebsdelf3.[01]*)
8819     shlibpath_overrides_runpath=yes
8820     hardcode_into_libs=yes
8821     ;;
8822   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8823   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8824     shlibpath_overrides_runpath=no
8825     hardcode_into_libs=yes
8826     ;;
8827   freebsd*) # from 4.6 on
8828     shlibpath_overrides_runpath=yes
8829     hardcode_into_libs=yes
8830     ;;
8831   esac
8832   ;;
8833
8834 gnu*)
8835   version_type=linux
8836   need_lib_prefix=no
8837   need_version=no
8838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8839   soname_spec='${libname}${release}${shared_ext}$major'
8840   shlibpath_var=LD_LIBRARY_PATH
8841   hardcode_into_libs=yes
8842   ;;
8843
8844 hpux9* | hpux10* | hpux11*)
8845   # Give a soname corresponding to the major version so that dld.sl refuses to
8846   # link against other versions.
8847   version_type=sunos
8848   need_lib_prefix=no
8849   need_version=no
8850   case $host_cpu in
8851   ia64*)
8852     shrext_cmds='.so'
8853     hardcode_into_libs=yes
8854     dynamic_linker="$host_os dld.so"
8855     shlibpath_var=LD_LIBRARY_PATH
8856     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858     soname_spec='${libname}${release}${shared_ext}$major'
8859     if test "X$HPUX_IA64_MODE" = X32; then
8860       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8861     else
8862       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8863     fi
8864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865     ;;
8866    hppa*64*)
8867      shrext_cmds='.sl'
8868      hardcode_into_libs=yes
8869      dynamic_linker="$host_os dld.sl"
8870      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8871      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8872      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873      soname_spec='${libname}${release}${shared_ext}$major'
8874      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8875      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8876      ;;
8877    *)
8878     shrext_cmds='.sl'
8879     dynamic_linker="$host_os dld.sl"
8880     shlibpath_var=SHLIB_PATH
8881     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883     soname_spec='${libname}${release}${shared_ext}$major'
8884     ;;
8885   esac
8886   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8887   postinstall_cmds='chmod 555 $lib'
8888   ;;
8889
8890 interix3*)
8891   version_type=linux
8892   need_lib_prefix=no
8893   need_version=no
8894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8895   soname_spec='${libname}${release}${shared_ext}$major'
8896   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8897   shlibpath_var=LD_LIBRARY_PATH
8898   shlibpath_overrides_runpath=no
8899   hardcode_into_libs=yes
8900   ;;
8901
8902 irix5* | irix6* | nonstopux*)
8903   case $host_os in
8904     nonstopux*) version_type=nonstopux ;;
8905     *)
8906         if test "$lt_cv_prog_gnu_ld" = yes; then
8907                 version_type=linux
8908         else
8909                 version_type=irix
8910         fi ;;
8911   esac
8912   need_lib_prefix=no
8913   need_version=no
8914   soname_spec='${libname}${release}${shared_ext}$major'
8915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8916   case $host_os in
8917   irix5* | nonstopux*)
8918     libsuff= shlibsuff=
8919     ;;
8920   *)
8921     case $LD in # libtool.m4 will add one of these switches to LD
8922     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8923       libsuff= shlibsuff= libmagic=32-bit;;
8924     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8925       libsuff=32 shlibsuff=N32 libmagic=N32;;
8926     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8927       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8928     *) libsuff= shlibsuff= libmagic=never-match;;
8929     esac
8930     ;;
8931   esac
8932   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8933   shlibpath_overrides_runpath=no
8934   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8935   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8936   hardcode_into_libs=yes
8937   ;;
8938
8939 # No shared lib support for Linux oldld, aout, or coff.
8940 linux*oldld* | linux*aout* | linux*coff*)
8941   dynamic_linker=no
8942   ;;
8943
8944 # This must be Linux ELF.
8945 linux*)
8946   version_type=linux
8947   need_lib_prefix=no
8948   need_version=no
8949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950   soname_spec='${libname}${release}${shared_ext}$major'
8951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8952   shlibpath_var=LD_LIBRARY_PATH
8953   shlibpath_overrides_runpath=no
8954   # This implies no fast_install, which is unacceptable.
8955   # Some rework will be needed to allow for fast_install
8956   # before this can be enabled.
8957   hardcode_into_libs=yes
8958
8959   # Append ld.so.conf contents to the search path
8960   if test -f /etc/ld.so.conf; then
8961     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' ' '`
8962     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8963   fi
8964
8965   # We used to test for /lib/ld.so.1 and disable shared libraries on
8966   # powerpc, because MkLinux only supported shared libraries with the
8967   # GNU dynamic linker.  Since this was broken with cross compilers,
8968   # most powerpc-linux boxes support dynamic linking these days and
8969   # people can always --disable-shared, the test was removed, and we
8970   # assume the GNU/Linux dynamic linker is in use.
8971   dynamic_linker='GNU/Linux ld.so'
8972   ;;
8973
8974 knetbsd*-gnu)
8975   version_type=linux
8976   need_lib_prefix=no
8977   need_version=no
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   shlibpath_overrides_runpath=no
8982   hardcode_into_libs=yes
8983   dynamic_linker='GNU ld.so'
8984   ;;
8985
8986 netbsd*)
8987   version_type=sunos
8988   need_lib_prefix=no
8989   need_version=no
8990   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8993     dynamic_linker='NetBSD (a.out) ld.so'
8994   else
8995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996     soname_spec='${libname}${release}${shared_ext}$major'
8997     dynamic_linker='NetBSD ld.elf_so'
8998   fi
8999   shlibpath_var=LD_LIBRARY_PATH
9000   shlibpath_overrides_runpath=yes
9001   hardcode_into_libs=yes
9002   ;;
9003
9004 newsos6)
9005   version_type=linux
9006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   shlibpath_overrides_runpath=yes
9009   ;;
9010
9011 nto-qnx*)
9012   version_type=linux
9013   need_lib_prefix=no
9014   need_version=no
9015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016   soname_spec='${libname}${release}${shared_ext}$major'
9017   shlibpath_var=LD_LIBRARY_PATH
9018   shlibpath_overrides_runpath=yes
9019   ;;
9020
9021 openbsd*)
9022   version_type=sunos
9023   sys_lib_dlsearch_path_spec="/usr/lib"
9024   need_lib_prefix=no
9025   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9026   case $host_os in
9027     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9028     *)                         need_version=no  ;;
9029   esac
9030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9034     case $host_os in
9035       openbsd2.[89] | openbsd2.[89].*)
9036         shlibpath_overrides_runpath=no
9037         ;;
9038       *)
9039         shlibpath_overrides_runpath=yes
9040         ;;
9041       esac
9042   else
9043     shlibpath_overrides_runpath=yes
9044   fi
9045   ;;
9046
9047 os2*)
9048   libname_spec='$name'
9049   shrext_cmds=".dll"
9050   need_lib_prefix=no
9051   library_names_spec='$libname${shared_ext} $libname.a'
9052   dynamic_linker='OS/2 ld.exe'
9053   shlibpath_var=LIBPATH
9054   ;;
9055
9056 osf3* | osf4* | osf5*)
9057   version_type=osf
9058   need_lib_prefix=no
9059   need_version=no
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062   shlibpath_var=LD_LIBRARY_PATH
9063   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9064   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9065   ;;
9066
9067 solaris*)
9068   version_type=linux
9069   need_lib_prefix=no
9070   need_version=no
9071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072   soname_spec='${libname}${release}${shared_ext}$major'
9073   shlibpath_var=LD_LIBRARY_PATH
9074   shlibpath_overrides_runpath=yes
9075   hardcode_into_libs=yes
9076   # ldd complains unless libraries are executable
9077   postinstall_cmds='chmod +x $lib'
9078   ;;
9079
9080 sunos4*)
9081   version_type=sunos
9082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9083   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9084   shlibpath_var=LD_LIBRARY_PATH
9085   shlibpath_overrides_runpath=yes
9086   if test "$with_gnu_ld" = yes; then
9087     need_lib_prefix=no
9088   fi
9089   need_version=yes
9090   ;;
9091
9092 sysv4 | sysv4.3*)
9093   version_type=linux
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   case $host_vendor in
9098     sni)
9099       shlibpath_overrides_runpath=no
9100       need_lib_prefix=no
9101       export_dynamic_flag_spec='${wl}-Blargedynsym'
9102       runpath_var=LD_RUN_PATH
9103       ;;
9104     siemens)
9105       need_lib_prefix=no
9106       ;;
9107     motorola)
9108       need_lib_prefix=no
9109       need_version=no
9110       shlibpath_overrides_runpath=no
9111       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9112       ;;
9113   esac
9114   ;;
9115
9116 sysv4*MP*)
9117   if test -d /usr/nec ;then
9118     version_type=linux
9119     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9120     soname_spec='$libname${shared_ext}.$major'
9121     shlibpath_var=LD_LIBRARY_PATH
9122   fi
9123   ;;
9124
9125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9126   version_type=freebsd-elf
9127   need_lib_prefix=no
9128   need_version=no
9129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9130   soname_spec='${libname}${release}${shared_ext}$major'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   hardcode_into_libs=yes
9133   if test "$with_gnu_ld" = yes; then
9134     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9135     shlibpath_overrides_runpath=no
9136   else
9137     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9138     shlibpath_overrides_runpath=yes
9139     case $host_os in
9140       sco3.2v5*)
9141         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9142         ;;
9143     esac
9144   fi
9145   sys_lib_dlsearch_path_spec='/usr/lib'
9146   ;;
9147
9148 uts4*)
9149   version_type=linux
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   ;;
9154
9155 *)
9156   dynamic_linker=no
9157   ;;
9158 esac
9159 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9160 echo "${ECHO_T}$dynamic_linker" >&6; }
9161 test "$dynamic_linker" = no && can_build_shared=no
9162
9163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9164 if test "$GCC" = yes; then
9165   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9166 fi
9167
9168
9169 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9170 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9171 if test "${libltdl_cv_shlibext+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174
9175 module=yes
9176 eval libltdl_cv_shlibext=$shrext_cmds
9177
9178 fi
9179 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9180 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9181 if test -n "$libltdl_cv_shlibext"; then
9182
9183 cat >>confdefs.h <<_ACEOF
9184 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9185 _ACEOF
9186
9187 fi
9188
9189
9190 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9191 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9192 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   libltdl_cv_shlibpath_var="$shlibpath_var"
9196 fi
9197 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9198 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9199 if test -n "$libltdl_cv_shlibpath_var"; then
9200
9201 cat >>confdefs.h <<_ACEOF
9202 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9203 _ACEOF
9204
9205 fi
9206
9207
9208 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9209 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9210 if test "${libltdl_cv_sys_search_path+set}" = set; then
9211   echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9214 fi
9215 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9216 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9217 if test -n "$libltdl_cv_sys_search_path"; then
9218   sys_search_path=
9219   for dir in $libltdl_cv_sys_search_path; do
9220     if test -z "$sys_search_path"; then
9221       sys_search_path="$dir"
9222     else
9223       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9224     fi
9225   done
9226
9227 cat >>confdefs.h <<_ACEOF
9228 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9229 _ACEOF
9230
9231 fi
9232
9233 { echo "$as_me:$LINENO: checking for objdir" >&5
9234 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9235 if test "${libltdl_cv_objdir+set}" = set; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   libltdl_cv_objdir="$objdir"
9239   if test -n "$objdir"; then
9240     :
9241   else
9242     rm -f .libs 2>/dev/null
9243     mkdir .libs 2>/dev/null
9244     if test -d .libs; then
9245       libltdl_cv_objdir=.libs
9246     else
9247       # MS-DOS does not allow filenames that begin with a dot.
9248       libltdl_cv_objdir=_libs
9249     fi
9250   rmdir .libs 2>/dev/null
9251   fi
9252
9253 fi
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9255 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9256
9257 cat >>confdefs.h <<_ACEOF
9258 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9259 _ACEOF
9260
9261
9262
9263
9264
9265
9266 # Check for command to grab the raw symbol name followed by C symbol from nm.
9267 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9270   echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272
9273 # These are sane defaults that work on at least a few old systems.
9274 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9275
9276 # Character class describing NM global symbol codes.
9277 symcode='[BCDEGRST]'
9278
9279 # Regexp to match symbols that can be accessed directly from C.
9280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9281
9282 # Transform an extracted symbol line into a proper C declaration
9283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9284
9285 # Transform an extracted symbol line into symbol name and symbol address
9286 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'"
9287
9288 # Define system-specific variables.
9289 case $host_os in
9290 aix*)
9291   symcode='[BCDT]'
9292   ;;
9293 cygwin* | mingw* | pw32*)
9294   symcode='[ABCDGISTW]'
9295   ;;
9296 hpux*) # Its linker distinguishes data from code symbols
9297   if test "$host_cpu" = ia64; then
9298     symcode='[ABCDEGRST]'
9299   fi
9300   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9301   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'"
9302   ;;
9303 linux*)
9304   if test "$host_cpu" = ia64; then
9305     symcode='[ABCDGIRSTW]'
9306     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9307     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'"
9308   fi
9309   ;;
9310 irix* | nonstopux*)
9311   symcode='[BCDEGRST]'
9312   ;;
9313 osf*)
9314   symcode='[BCDEGQRST]'
9315   ;;
9316 solaris*)
9317   symcode='[BDRT]'
9318   ;;
9319 sco3.2v5*)
9320   symcode='[DT]'
9321   ;;
9322 sysv4.2uw2*)
9323   symcode='[DT]'
9324   ;;
9325 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9326   symcode='[ABDT]'
9327   ;;
9328 sysv4)
9329   symcode='[DFNSTU]'
9330   ;;
9331 esac
9332
9333 # Handle CRLF in mingw tool chain
9334 opt_cr=
9335 case $build_os in
9336 mingw*)
9337   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9338   ;;
9339 esac
9340
9341 # If we're using GNU nm, then use its standard symbol codes.
9342 case `$NM -V 2>&1` in
9343 *GNU* | *'with BFD'*)
9344   symcode='[ABCDGIRSTW]' ;;
9345 esac
9346
9347 # Try without a prefix undercore, then with it.
9348 for ac_symprfx in "" "_"; do
9349
9350   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9351   symxfrm="\\1 $ac_symprfx\\2 \\2"
9352
9353   # Write the raw and C identifiers.
9354   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9355
9356   # Check to see that the pipe works correctly.
9357   pipe_works=no
9358
9359   rm -f conftest*
9360   cat > conftest.$ac_ext <<EOF
9361 #ifdef __cplusplus
9362 extern "C" {
9363 #endif
9364 char nm_test_var;
9365 void nm_test_func(){}
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369 int main(){nm_test_var='a';nm_test_func();return(0);}
9370 EOF
9371
9372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373   (eval $ac_compile) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; then
9377     # Now try to grab the symbols.
9378     nlist=conftest.nm
9379     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9380   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } && test -s "$nlist"; then
9384       # Try sorting and uniquifying the output.
9385       if sort "$nlist" | uniq > "$nlist"T; then
9386         mv -f "$nlist"T "$nlist"
9387       else
9388         rm -f "$nlist"T
9389       fi
9390
9391       # Make sure that we snagged all the symbols we need.
9392       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9393         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9394           cat <<EOF > conftest.$ac_ext
9395 #ifdef __cplusplus
9396 extern "C" {
9397 #endif
9398
9399 EOF
9400           # Now generate the symbol file.
9401           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9402
9403           cat <<EOF >> conftest.$ac_ext
9404 #if defined (__STDC__) && __STDC__
9405 # define lt_ptr_t void *
9406 #else
9407 # define lt_ptr_t char *
9408 # define const
9409 #endif
9410
9411 /* The mapping between symbol names and symbols. */
9412 const struct {
9413   const char *name;
9414   lt_ptr_t address;
9415 }
9416 lt_preloaded_symbols[] =
9417 {
9418 EOF
9419           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9420           cat <<\EOF >> conftest.$ac_ext
9421   {0, (lt_ptr_t) 0}
9422 };
9423
9424 #ifdef __cplusplus
9425 }
9426 #endif
9427 EOF
9428           # Now try linking the two files.
9429           mv conftest.$ac_objext conftstm.$ac_objext
9430           lt_save_LIBS="$LIBS"
9431           lt_save_CFLAGS="$CFLAGS"
9432           LIBS="conftstm.$ac_objext"
9433           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9434           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435   (eval $ac_link) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9439             pipe_works=yes
9440           fi
9441           LIBS="$lt_save_LIBS"
9442           CFLAGS="$lt_save_CFLAGS"
9443         else
9444           echo "cannot find nm_test_func in $nlist" >&5
9445         fi
9446       else
9447         echo "cannot find nm_test_var in $nlist" >&5
9448       fi
9449     else
9450       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9451     fi
9452   else
9453     echo "$progname: failed program was:" >&5
9454     cat conftest.$ac_ext >&5
9455   fi
9456   rm -f conftest* conftst*
9457
9458   # Do not use the global_symbol_pipe unless it works.
9459   if test "$pipe_works" = yes; then
9460     break
9461   else
9462     lt_cv_sys_global_symbol_pipe=
9463   fi
9464 done
9465
9466 fi
9467
9468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9469   lt_cv_sys_global_symbol_to_cdecl=
9470 fi
9471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9472   { echo "$as_me:$LINENO: result: failed" >&5
9473 echo "${ECHO_T}failed" >&6; }
9474 else
9475   { echo "$as_me:$LINENO: result: ok" >&5
9476 echo "${ECHO_T}ok" >&6; }
9477 fi
9478
9479
9480 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9481 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9482 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9486     libltdl_cv_preloaded_symbols=yes
9487   else
9488     libltdl_cv_preloaded_symbols=no
9489   fi
9490
9491 fi
9492 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9493 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9494 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9495
9496 cat >>confdefs.h <<\_ACEOF
9497 #define HAVE_PRELOADED_SYMBOLS 1
9498 _ACEOF
9499
9500 fi
9501
9502 LIBADD_DL=
9503
9504 ac_ext=c
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509
9510
9511 { echo "$as_me:$LINENO: checking for shl_load" >&5
9512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9513 if test "${ac_cv_func_shl_load+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9524 #define shl_load innocuous_shl_load
9525
9526 /* System header to define __stub macros and hopefully few prototypes,
9527     which can conflict with char shl_load (); below.
9528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529     <limits.h> exists even on freestanding compilers.  */
9530
9531 #ifdef __STDC__
9532 # include <limits.h>
9533 #else
9534 # include <assert.h>
9535 #endif
9536
9537 #undef shl_load
9538
9539 /* Override any GCC internal prototype to avoid an error.
9540    Use char because int might match the return type of a GCC
9541    builtin and then its argument prototype would still apply.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char shl_load ();
9546 /* The GNU C library defines this for functions which it implements
9547     to always fail with ENOSYS.  Some functions are actually named
9548     something starting with __ and the normal name is an alias.  */
9549 #if defined __stub_shl_load || defined __stub___shl_load
9550 choke me
9551 #endif
9552
9553 int
9554 main ()
9555 {
9556 return shl_load ();
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_link") 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576   { (case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581   (eval "$ac_try") 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; } &&
9585          { ac_try='test -s conftest$ac_exeext'
9586   { (case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_try") 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   ac_cv_func_shl_load=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600         ac_cv_func_shl_load=no
9601 fi
9602
9603 rm -f core conftest.err conftest.$ac_objext \
9604       conftest$ac_exeext conftest.$ac_ext
9605 fi
9606 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9607 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9608 if test $ac_cv_func_shl_load = yes; then
9609
9610 cat >>confdefs.h <<\_ACEOF
9611 #define HAVE_SHL_LOAD 1
9612 _ACEOF
9613
9614 else
9615   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9616 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   ac_check_lib_save_LIBS=$LIBS
9621 LIBS="-ldld  $LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628
9629 /* Override any GCC internal prototype to avoid an error.
9630    Use char because int might match the return type of a GCC
9631    builtin and then its argument prototype would still apply.  */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 char shl_load ();
9636 int
9637 main ()
9638 {
9639 return shl_load ();
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9646 case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_link") 2>conftest.er1
9652   ac_status=$?
9653   grep -v '^ *+' conftest.er1 >conftest.err
9654   rm -f conftest.er1
9655   cat conftest.err >&5
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } &&
9658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659   { (case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_try") 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_try") 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_lib_dld_shl_load=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683         ac_cv_lib_dld_shl_load=no
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext \
9687       conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9689 fi
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9691 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9692 if test $ac_cv_lib_dld_shl_load = yes; then
9693
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_SHL_LOAD 1
9696 _ACEOF
9697
9698         LIBADD_DL="$LIBADD_DL -ldld"
9699 else
9700   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-ldl  $LIBS"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713
9714 /* Override any GCC internal prototype to avoid an error.
9715    Use char because int might match the return type of a GCC
9716    builtin and then its argument prototype would still apply.  */
9717 #ifdef __cplusplus
9718 extern "C"
9719 #endif
9720 char dlopen ();
9721 int
9722 main ()
9723 {
9724 return dlopen ();
9725   ;
9726   return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9731 case "(($ac_try" in
9732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733   *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736   (eval "$ac_link") 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744   { (case "(($ac_try" in
9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746   *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749   (eval "$ac_try") 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; } &&
9753          { ac_try='test -s conftest$ac_exeext'
9754   { (case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759   (eval "$ac_try") 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763   ac_cv_lib_dl_dlopen=yes
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768         ac_cv_lib_dl_dlopen=no
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext \
9772       conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9774 fi
9775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9777 if test $ac_cv_lib_dl_dlopen = yes; then
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_LIBDL 1
9781 _ACEOF
9782
9783                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9784 else
9785   cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791 #if HAVE_DLFCN_H
9792 #  include <dlfcn.h>
9793 #endif
9794
9795 int
9796 main ()
9797 {
9798 dlopen(0, 0);
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9805 case "(($ac_try" in
9806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807   *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810   (eval "$ac_link") 2>conftest.er1
9811   ac_status=$?
9812   grep -v '^ *+' conftest.er1 >conftest.err
9813   rm -f conftest.er1
9814   cat conftest.err >&5
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818   { (case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_try") 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; } &&
9827          { ac_try='test -s conftest$ac_exeext'
9828   { (case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_try") 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; }; then
9837
9838 cat >>confdefs.h <<\_ACEOF
9839 #define HAVE_LIBDL 1
9840 _ACEOF
9841  libltdl_cv_func_dlopen="yes"
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-lsvld  $LIBS"
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859
9860 /* Override any GCC internal prototype to avoid an error.
9861    Use char because int might match the return type of a GCC
9862    builtin and then its argument prototype would still apply.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char dlopen ();
9867 int
9868 main ()
9869 {
9870 return dlopen ();
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_link") 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } &&
9889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890   { (case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_try") 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest$ac_exeext'
9900   { (case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_try") 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   ac_cv_lib_svld_dlopen=yes
9910 else
9911   echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914         ac_cv_lib_svld_dlopen=no
9915 fi
9916
9917 rm -f core conftest.err conftest.$ac_objext \
9918       conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9920 fi
9921 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9922 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9923 if test $ac_cv_lib_svld_dlopen = yes; then
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_LIBDL 1
9927 _ACEOF
9928
9929                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9930 else
9931   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9932 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-ldld  $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946    Use char because int might match the return type of a GCC
9947    builtin and then its argument prototype would still apply.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char dld_link ();
9952 int
9953 main ()
9954 {
9955 return dld_link ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_link") 2>conftest.er1
9968   ac_status=$?
9969   grep -v '^ *+' conftest.er1 >conftest.err
9970   rm -f conftest.er1
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } &&
9974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975   { (case "(($ac_try" in
9976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977   *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980   (eval "$ac_try") 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; } &&
9984          { ac_try='test -s conftest$ac_exeext'
9985   { (case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_try") 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; }; then
9994   ac_cv_lib_dld_dld_link=yes
9995 else
9996   echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999         ac_cv_lib_dld_dld_link=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext \
10003       conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10005 fi
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10008 if test $ac_cv_lib_dld_dld_link = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_DLD 1
10012 _ACEOF
10013
10014                 LIBADD_DL="$LIBADD_DL -ldld"
10015 else
10016   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10017 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10018 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10029 #define _dyld_func_lookup innocuous__dyld_func_lookup
10030
10031 /* System header to define __stub macros and hopefully few prototypes,
10032     which can conflict with char _dyld_func_lookup (); below.
10033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034     <limits.h> exists even on freestanding compilers.  */
10035
10036 #ifdef __STDC__
10037 # include <limits.h>
10038 #else
10039 # include <assert.h>
10040 #endif
10041
10042 #undef _dyld_func_lookup
10043
10044 /* Override any GCC internal prototype to avoid an error.
10045    Use char because int might match the return type of a GCC
10046    builtin and then its argument prototype would still apply.  */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 char _dyld_func_lookup ();
10051 /* The GNU C library defines this for functions which it implements
10052     to always fail with ENOSYS.  Some functions are actually named
10053     something starting with __ and the normal name is an alias.  */
10054 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10055 choke me
10056 #endif
10057
10058 int
10059 main ()
10060 {
10061 return _dyld_func_lookup ();
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_link") 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } &&
10080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10081   { (case "(($ac_try" in
10082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083   *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086   (eval "$ac_try") 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); }; } &&
10090          { ac_try='test -s conftest$ac_exeext'
10091   { (case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_try") 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; }; then
10100   ac_cv_func__dyld_func_lookup=yes
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105         ac_cv_func__dyld_func_lookup=no
10106 fi
10107
10108 rm -f core conftest.err conftest.$ac_objext \
10109       conftest$ac_exeext conftest.$ac_ext
10110 fi
10111 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10112 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10113 if test $ac_cv_func__dyld_func_lookup = yes; then
10114
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_DYLD 1
10117 _ACEOF
10118
10119 fi
10120
10121
10122 fi
10123
10124
10125 fi
10126
10127
10128 fi
10129
10130 rm -f core conftest.err conftest.$ac_objext \
10131       conftest$ac_exeext conftest.$ac_ext
10132
10133 fi
10134
10135
10136 fi
10137
10138
10139 fi
10140
10141
10142 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10143 then
10144   lt_save_LIBS="$LIBS"
10145   LIBS="$LIBS $LIBADD_DL"
10146
10147 for ac_func in dlerror
10148 do
10149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10163 #define $ac_func innocuous_$ac_func
10164
10165 /* System header to define __stub macros and hopefully few prototypes,
10166     which can conflict with char $ac_func (); below.
10167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168     <limits.h> exists even on freestanding compilers.  */
10169
10170 #ifdef __STDC__
10171 # include <limits.h>
10172 #else
10173 # include <assert.h>
10174 #endif
10175
10176 #undef $ac_func
10177
10178 /* Override any GCC internal prototype to avoid an error.
10179    Use char because int might match the return type of a GCC
10180    builtin and then its argument prototype would still apply.  */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char $ac_func ();
10185 /* The GNU C library defines this for functions which it implements
10186     to always fail with ENOSYS.  Some functions are actually named
10187     something starting with __ and the normal name is an alias.  */
10188 #if defined __stub_$ac_func || defined __stub___$ac_func
10189 choke me
10190 #endif
10191
10192 int
10193 main ()
10194 {
10195 return $ac_func ();
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_link") 2>conftest.er1
10208   ac_status=$?
10209   grep -v '^ *+' conftest.er1 >conftest.err
10210   rm -f conftest.er1
10211   cat conftest.err >&5
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } &&
10214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215   { (case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_try") 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; } &&
10224          { ac_try='test -s conftest$ac_exeext'
10225   { (case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_try") 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); }; }; then
10234   eval "$as_ac_var=yes"
10235 else
10236   echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239         eval "$as_ac_var=no"
10240 fi
10241
10242 rm -f core conftest.err conftest.$ac_objext \
10243       conftest$ac_exeext conftest.$ac_ext
10244 fi
10245 ac_res=`eval echo '${'$as_ac_var'}'`
10246                { echo "$as_me:$LINENO: result: $ac_res" >&5
10247 echo "${ECHO_T}$ac_res" >&6; }
10248 if test `eval echo '${'$as_ac_var'}'` = yes; then
10249   cat >>confdefs.h <<_ACEOF
10250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10251 _ACEOF
10252
10253 fi
10254 done
10255
10256   LIBS="$lt_save_LIBS"
10257 fi
10258 ac_ext=c
10259 ac_cpp='$CPP $CPPFLAGS'
10260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10263
10264
10265
10266 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10267 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10268 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   ac_cv_sys_symbol_underscore=no
10272   cat > conftest.$ac_ext <<EOF
10273 void nm_test_func(){}
10274 int main(){nm_test_func;return 0;}
10275 EOF
10276   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277   (eval $ac_compile) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; then
10281     # Now try to grab the symbols.
10282     ac_nlist=conftest.nm
10283     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10284   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } && test -s "$ac_nlist"; then
10288       # See whether the symbols have a leading underscore.
10289       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10290         ac_cv_sys_symbol_underscore=yes
10291       else
10292         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10293           :
10294         else
10295           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10296         fi
10297       fi
10298     else
10299       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10300     fi
10301   else
10302     echo "configure: failed program was:" >&5
10303     cat conftest.c >&5
10304   fi
10305   rm -rf conftest*
10306
10307 fi
10308 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10309 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10310
10311
10312 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10313   if test x"$libltdl_cv_func_dlopen" = xyes ||
10314      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10315         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10316 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10317 if test "${libltdl_cv_need_uscore+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   libltdl_cv_need_uscore=unknown
10321           save_LIBS="$LIBS"
10322           LIBS="$LIBS $LIBADD_DL"
10323           if test "$cross_compiling" = yes; then :
10324   libltdl_cv_need_uscore=cross
10325 else
10326   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10327   lt_status=$lt_dlunknown
10328   cat > conftest.$ac_ext <<EOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10331
10332 #if HAVE_DLFCN_H
10333 #include <dlfcn.h>
10334 #endif
10335
10336 #include <stdio.h>
10337
10338 #ifdef RTLD_GLOBAL
10339 #  define LT_DLGLOBAL           RTLD_GLOBAL
10340 #else
10341 #  ifdef DL_GLOBAL
10342 #    define LT_DLGLOBAL         DL_GLOBAL
10343 #  else
10344 #    define LT_DLGLOBAL         0
10345 #  endif
10346 #endif
10347
10348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10349    find out it does not work in some platform. */
10350 #ifndef LT_DLLAZY_OR_NOW
10351 #  ifdef RTLD_LAZY
10352 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10353 #  else
10354 #    ifdef DL_LAZY
10355 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10356 #    else
10357 #      ifdef RTLD_NOW
10358 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10359 #      else
10360 #        ifdef DL_NOW
10361 #          define LT_DLLAZY_OR_NOW      DL_NOW
10362 #        else
10363 #          define LT_DLLAZY_OR_NOW      0
10364 #        endif
10365 #      endif
10366 #    endif
10367 #  endif
10368 #endif
10369
10370 #ifdef __cplusplus
10371 extern "C" void exit (int);
10372 #endif
10373
10374 void fnord() { int i=42;}
10375 int main ()
10376 {
10377   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10378   int status = $lt_dlunknown;
10379
10380   if (self)
10381     {
10382       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10383       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10384       /* dlclose (self); */
10385     }
10386   else
10387     puts (dlerror ());
10388
10389     exit (status);
10390 }
10391 EOF
10392   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393   (eval $ac_link) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10397     (./conftest; exit; ) >&5 2>/dev/null
10398     lt_status=$?
10399     case x$lt_status in
10400       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10401       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10402       x$lt_dlunknown|x*)  ;;
10403     esac
10404   else :
10405     # compilation failed
10406
10407   fi
10408 fi
10409 rm -fr conftest*
10410
10411           LIBS="$save_LIBS"
10412
10413 fi
10414 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10415 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10416   fi
10417 fi
10418
10419 if test x"$libltdl_cv_need_uscore" = xyes; then
10420
10421 cat >>confdefs.h <<\_ACEOF
10422 #define NEED_USCORE 1
10423 _ACEOF
10424
10425 fi
10426
10427
10428 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10429 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10430 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   # PORTME does your system automatically load deplibs for dlopen?
10434   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10435   # For now, we just catch OSes we know something about -- in the
10436   # future, we'll try test this programmatically.
10437   libltdl_cv_sys_dlopen_deplibs=unknown
10438   case "$host_os" in
10439   aix3*|aix4.1.*|aix4.2.*)
10440     # Unknown whether this is true for these versions of AIX, but
10441     # we want this `case' here to explicitly catch those versions.
10442     libltdl_cv_sys_dlopen_deplibs=unknown
10443     ;;
10444   aix[45]*)
10445     libltdl_cv_sys_dlopen_deplibs=yes
10446     ;;
10447   darwin*)
10448     # Assuming the user has installed a libdl from somewhere, this is true
10449     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10450     libltdl_cv_sys_dlopen_deplibs=yes
10451     ;;
10452   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10453     # GNU and its variants, using gnu ld.so (Glibc)
10454     libltdl_cv_sys_dlopen_deplibs=yes
10455     ;;
10456   hpux10*|hpux11*)
10457     libltdl_cv_sys_dlopen_deplibs=yes
10458     ;;
10459   interix*)
10460     libltdl_cv_sys_dlopen_deplibs=yes
10461     ;;
10462   irix[12345]*|irix6.[01]*)
10463     # Catch all versions of IRIX before 6.2, and indicate that we don't
10464     # know how it worked for any of those versions.
10465     libltdl_cv_sys_dlopen_deplibs=unknown
10466     ;;
10467   irix*)
10468     # The case above catches anything before 6.2, and it's known that
10469     # at 6.2 and later dlopen does load deplibs.
10470     libltdl_cv_sys_dlopen_deplibs=yes
10471     ;;
10472   netbsd*)
10473     libltdl_cv_sys_dlopen_deplibs=yes
10474     ;;
10475   openbsd*)
10476     libltdl_cv_sys_dlopen_deplibs=yes
10477     ;;
10478   osf[1234]*)
10479     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10480     # it did *not* use an RPATH in a shared library to find objects the
10481     # library depends on, so we explictly say `no'.
10482     libltdl_cv_sys_dlopen_deplibs=no
10483     ;;
10484   osf5.0|osf5.0a|osf5.1)
10485     # dlopen *does* load deplibs and with the right loader patch applied
10486     # it even uses RPATH in a shared library to search for shared objects
10487     # that the library depends on, but there's no easy way to know if that
10488     # patch is installed.  Since this is the case, all we can really
10489     # say is unknown -- it depends on the patch being installed.  If
10490     # it is, this changes to `yes'.  Without it, it would be `no'.
10491     libltdl_cv_sys_dlopen_deplibs=unknown
10492     ;;
10493   osf*)
10494     # the two cases above should catch all versions of osf <= 5.1.  Read
10495     # the comments above for what we know about them.
10496     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10497     # is used to find them so we can finally say `yes'.
10498     libltdl_cv_sys_dlopen_deplibs=yes
10499     ;;
10500   solaris*)
10501     libltdl_cv_sys_dlopen_deplibs=yes
10502     ;;
10503   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10504     libltdl_cv_sys_dlopen_deplibs=yes
10505     ;;
10506   esac
10507
10508 fi
10509 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10510 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10511 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10512
10513 cat >>confdefs.h <<\_ACEOF
10514 #define LTDL_DLOPEN_DEPLIBS 1
10515 _ACEOF
10516
10517 fi
10518
10519
10520 for ac_header in argz.h
10521 do
10522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 fi
10529 ac_res=`eval echo '${'$as_ac_Header'}'`
10530                { echo "$as_me:$LINENO: result: $ac_res" >&5
10531 echo "${ECHO_T}$ac_res" >&6; }
10532 else
10533   # Is the header compilable?
10534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 $ac_includes_default
10543 #include <$ac_header>
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_compile") 2>conftest.er1
10553   ac_status=$?
10554   grep -v '^ *+' conftest.er1 >conftest.err
10555   rm -f conftest.er1
10556   cat conftest.err >&5
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; } &&
10569          { ac_try='test -s conftest.$ac_objext'
10570   { (case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575   (eval "$ac_try") 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; }; then
10579   ac_header_compiler=yes
10580 else
10581   echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584         ac_header_compiler=no
10585 fi
10586
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10589 echo "${ECHO_T}$ac_header_compiler" >&6; }
10590
10591 # Is the header present?
10592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600 #include <$ac_header>
10601 _ACEOF
10602 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } >/dev/null; then
10615   if test -s conftest.err; then
10616     ac_cpp_err=$ac_c_preproc_warn_flag
10617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10618   else
10619     ac_cpp_err=
10620   fi
10621 else
10622   ac_cpp_err=yes
10623 fi
10624 if test -z "$ac_cpp_err"; then
10625   ac_header_preproc=yes
10626 else
10627   echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630   ac_header_preproc=no
10631 fi
10632
10633 rm -f conftest.err conftest.$ac_ext
10634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10635 echo "${ECHO_T}$ac_header_preproc" >&6; }
10636
10637 # So?  What about this header?
10638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10639   yes:no: )
10640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10644     ac_header_preproc=yes
10645     ;;
10646   no:yes:* )
10647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10659     ( cat <<\_ASBOX
10660 ## ----------------------------------- ##
10661 ## Report this to llvmbugs@cs.uiuc.edu ##
10662 ## ----------------------------------- ##
10663 _ASBOX
10664      ) | sed "s/^/$as_me: WARNING:     /" >&2
10665     ;;
10666 esac
10667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   eval "$as_ac_Header=\$ac_header_preproc"
10673 fi
10674 ac_res=`eval echo '${'$as_ac_Header'}'`
10675                { echo "$as_me:$LINENO: result: $ac_res" >&5
10676 echo "${ECHO_T}$ac_res" >&6; }
10677
10678 fi
10679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680   cat >>confdefs.h <<_ACEOF
10681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682 _ACEOF
10683
10684 fi
10685
10686 done
10687
10688
10689 { echo "$as_me:$LINENO: checking for error_t" >&5
10690 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10691 if test "${ac_cv_type_error_t+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700 #if HAVE_ARGZ_H
10701 #  include <argz.h>
10702 #endif
10703
10704 typedef error_t ac__type_new_;
10705 int
10706 main ()
10707 {
10708 if ((ac__type_new_ *) 0)
10709   return 0;
10710 if (sizeof (ac__type_new_))
10711   return 0;
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_compile") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } &&
10730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731   { (case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736   (eval "$ac_try") 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; } &&
10740          { ac_try='test -s conftest.$ac_objext'
10741   { (case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_try") 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_cv_type_error_t=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755         ac_cv_type_error_t=no
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10761 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10762 if test $ac_cv_type_error_t = yes; then
10763
10764 cat >>confdefs.h <<_ACEOF
10765 #define HAVE_ERROR_T 1
10766 _ACEOF
10767
10768
10769 else
10770
10771 cat >>confdefs.h <<\_ACEOF
10772 #define error_t int
10773 _ACEOF
10774
10775 fi
10776
10777
10778
10779
10780
10781
10782
10783 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10784 do
10785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h.  */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h.  */
10797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10799 #define $ac_func innocuous_$ac_func
10800
10801 /* System header to define __stub macros and hopefully few prototypes,
10802     which can conflict with char $ac_func (); below.
10803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804     <limits.h> exists even on freestanding compilers.  */
10805
10806 #ifdef __STDC__
10807 # include <limits.h>
10808 #else
10809 # include <assert.h>
10810 #endif
10811
10812 #undef $ac_func
10813
10814 /* Override any GCC internal prototype to avoid an error.
10815    Use char because int might match the return type of a GCC
10816    builtin and then its argument prototype would still apply.  */
10817 #ifdef __cplusplus
10818 extern "C"
10819 #endif
10820 char $ac_func ();
10821 /* The GNU C library defines this for functions which it implements
10822     to always fail with ENOSYS.  Some functions are actually named
10823     something starting with __ and the normal name is an alias.  */
10824 #if defined __stub_$ac_func || defined __stub___$ac_func
10825 choke me
10826 #endif
10827
10828 int
10829 main ()
10830 {
10831 return $ac_func ();
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_link") 2>conftest.er1
10844   ac_status=$?
10845   grep -v '^ *+' conftest.er1 >conftest.err
10846   rm -f conftest.er1
10847   cat conftest.err >&5
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); } &&
10850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10851   { (case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_try") 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; } &&
10860          { ac_try='test -s conftest$ac_exeext'
10861   { (case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_try") 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }; }; then
10870   eval "$as_ac_var=yes"
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875         eval "$as_ac_var=no"
10876 fi
10877
10878 rm -f core conftest.err conftest.$ac_objext \
10879       conftest$ac_exeext conftest.$ac_ext
10880 fi
10881 ac_res=`eval echo '${'$as_ac_var'}'`
10882                { echo "$as_me:$LINENO: result: $ac_res" >&5
10883 echo "${ECHO_T}$ac_res" >&6; }
10884 if test `eval echo '${'$as_ac_var'}'` = yes; then
10885   cat >>confdefs.h <<_ACEOF
10886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10887 _ACEOF
10888
10889 fi
10890 done
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10920                   stdio.h unistd.h
10921 do
10922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10924   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 fi
10929 ac_res=`eval echo '${'$as_ac_Header'}'`
10930                { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 else
10933   # Is the header compilable?
10934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942 $ac_includes_default
10943 #include <$ac_header>
10944 _ACEOF
10945 rm -f conftest.$ac_objext
10946 if { (ac_try="$ac_compile"
10947 case "(($ac_try" in
10948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949   *) ac_try_echo=$ac_try;;
10950 esac
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952   (eval "$ac_compile") 2>conftest.er1
10953   ac_status=$?
10954   grep -v '^ *+' conftest.er1 >conftest.err
10955   rm -f conftest.er1
10956   cat conftest.err >&5
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); } &&
10959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10960   { (case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_try") 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; } &&
10969          { ac_try='test -s conftest.$ac_objext'
10970   { (case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975   (eval "$ac_try") 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; }; then
10979   ac_header_compiler=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984         ac_header_compiler=no
10985 fi
10986
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10989 echo "${ECHO_T}$ac_header_compiler" >&6; }
10990
10991 # Is the header present?
10992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 #include <$ac_header>
11001 _ACEOF
11002 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } >/dev/null; then
11015   if test -s conftest.err; then
11016     ac_cpp_err=$ac_c_preproc_warn_flag
11017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11018   else
11019     ac_cpp_err=
11020   fi
11021 else
11022   ac_cpp_err=yes
11023 fi
11024 if test -z "$ac_cpp_err"; then
11025   ac_header_preproc=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030   ac_header_preproc=no
11031 fi
11032
11033 rm -f conftest.err conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11035 echo "${ECHO_T}$ac_header_preproc" >&6; }
11036
11037 # So?  What about this header?
11038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11039   yes:no: )
11040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11044     ac_header_preproc=yes
11045     ;;
11046   no:yes:* )
11047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11059     ( cat <<\_ASBOX
11060 ## ----------------------------------- ##
11061 ## Report this to llvmbugs@cs.uiuc.edu ##
11062 ## ----------------------------------- ##
11063 _ASBOX
11064      ) | sed "s/^/$as_me: WARNING:     /" >&2
11065     ;;
11066 esac
11067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072   eval "$as_ac_Header=\$ac_header_preproc"
11073 fi
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075                { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11077
11078 fi
11079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11080   cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 _ACEOF
11083
11084 fi
11085
11086 done
11087
11088
11089
11090
11091
11092 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11093 do
11094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 fi
11101 ac_res=`eval echo '${'$as_ac_Header'}'`
11102                { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11104 else
11105   # Is the header compilable?
11106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 $ac_includes_default
11115 #include <$ac_header>
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (ac_try="$ac_compile"
11119 case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_compile") 2>conftest.er1
11125   ac_status=$?
11126   grep -v '^ *+' conftest.er1 >conftest.err
11127   rm -f conftest.er1
11128   cat conftest.err >&5
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } &&
11131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132   { (case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_try") 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; } &&
11141          { ac_try='test -s conftest.$ac_objext'
11142   { (case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_try") 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_header_compiler=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156         ac_header_compiler=no
11157 fi
11158
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161 echo "${ECHO_T}$ac_header_compiler" >&6; }
11162
11163 # Is the header present?
11164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172 #include <$ac_header>
11173 _ACEOF
11174 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } >/dev/null; then
11187   if test -s conftest.err; then
11188     ac_cpp_err=$ac_c_preproc_warn_flag
11189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190   else
11191     ac_cpp_err=
11192   fi
11193 else
11194   ac_cpp_err=yes
11195 fi
11196 if test -z "$ac_cpp_err"; then
11197   ac_header_preproc=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202   ac_header_preproc=no
11203 fi
11204
11205 rm -f conftest.err conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208
11209 # So?  What about this header?
11210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211   yes:no: )
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216     ac_header_preproc=yes
11217     ;;
11218   no:yes:* )
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231     ( cat <<\_ASBOX
11232 ## ----------------------------------- ##
11233 ## Report this to llvmbugs@cs.uiuc.edu ##
11234 ## ----------------------------------- ##
11235 _ASBOX
11236      ) | sed "s/^/$as_me: WARNING:     /" >&2
11237     ;;
11238 esac
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   eval "$as_ac_Header=\$ac_header_preproc"
11245 fi
11246 ac_res=`eval echo '${'$as_ac_Header'}'`
11247                { echo "$as_me:$LINENO: result: $ac_res" >&5
11248 echo "${ECHO_T}$ac_res" >&6; }
11249
11250 fi
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252   cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11254 _ACEOF
11255
11256 fi
11257
11258 done
11259
11260
11261
11262 for ac_header in string.h strings.h
11263 do
11264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 fi
11271 ac_res=`eval echo '${'$as_ac_Header'}'`
11272                { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 else
11275   # Is the header compilable?
11276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 $ac_includes_default
11285 #include <$ac_header>
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (ac_try="$ac_compile"
11289 case "(($ac_try" in
11290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291   *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294   (eval "$ac_compile") 2>conftest.er1
11295   ac_status=$?
11296   grep -v '^ *+' conftest.er1 >conftest.err
11297   rm -f conftest.er1
11298   cat conftest.err >&5
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); } &&
11301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302   { (case "(($ac_try" in
11303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304   *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307   (eval "$ac_try") 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; } &&
11311          { ac_try='test -s conftest.$ac_objext'
11312   { (case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_try") 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; }; then
11321   ac_header_compiler=yes
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326         ac_header_compiler=no
11327 fi
11328
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331 echo "${ECHO_T}$ac_header_compiler" >&6; }
11332
11333 # Is the header present?
11334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342 #include <$ac_header>
11343 _ACEOF
11344 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } >/dev/null; then
11357   if test -s conftest.err; then
11358     ac_cpp_err=$ac_c_preproc_warn_flag
11359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11360   else
11361     ac_cpp_err=
11362   fi
11363 else
11364   ac_cpp_err=yes
11365 fi
11366 if test -z "$ac_cpp_err"; then
11367   ac_header_preproc=yes
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372   ac_header_preproc=no
11373 fi
11374
11375 rm -f conftest.err conftest.$ac_ext
11376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377 echo "${ECHO_T}$ac_header_preproc" >&6; }
11378
11379 # So?  What about this header?
11380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11381   yes:no: )
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11386     ac_header_preproc=yes
11387     ;;
11388   no:yes:* )
11389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11392 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11396 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11401     ( cat <<\_ASBOX
11402 ## ----------------------------------- ##
11403 ## Report this to llvmbugs@cs.uiuc.edu ##
11404 ## ----------------------------------- ##
11405 _ASBOX
11406      ) | sed "s/^/$as_me: WARNING:     /" >&2
11407     ;;
11408 esac
11409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   eval "$as_ac_Header=\$ac_header_preproc"
11415 fi
11416 ac_res=`eval echo '${'$as_ac_Header'}'`
11417                { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419
11420 fi
11421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11422   cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11424 _ACEOF
11425  break
11426 fi
11427
11428 done
11429
11430
11431
11432
11433 for ac_func in strchr index
11434 do
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441   cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11449 #define $ac_func innocuous_$ac_func
11450
11451 /* System header to define __stub macros and hopefully few prototypes,
11452     which can conflict with char $ac_func (); below.
11453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454     <limits.h> exists even on freestanding compilers.  */
11455
11456 #ifdef __STDC__
11457 # include <limits.h>
11458 #else
11459 # include <assert.h>
11460 #endif
11461
11462 #undef $ac_func
11463
11464 /* Override any GCC internal prototype to avoid an error.
11465    Use char because int might match the return type of a GCC
11466    builtin and then its argument prototype would still apply.  */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 char $ac_func ();
11471 /* The GNU C library defines this for functions which it implements
11472     to always fail with ENOSYS.  Some functions are actually named
11473     something starting with __ and the normal name is an alias.  */
11474 #if defined __stub_$ac_func || defined __stub___$ac_func
11475 choke me
11476 #endif
11477
11478 int
11479 main ()
11480 {
11481 return $ac_func ();
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_link") 2>conftest.er1
11494   ac_status=$?
11495   grep -v '^ *+' conftest.er1 >conftest.err
11496   rm -f conftest.er1
11497   cat conftest.err >&5
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501   { (case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_try") 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; } &&
11510          { ac_try='test -s conftest$ac_exeext'
11511   { (case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516   (eval "$ac_try") 2>&5
11517   ac_status=$?
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); }; }; then
11520   eval "$as_ac_var=yes"
11521 else
11522   echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525         eval "$as_ac_var=no"
11526 fi
11527
11528 rm -f core conftest.err conftest.$ac_objext \
11529       conftest$ac_exeext conftest.$ac_ext
11530 fi
11531 ac_res=`eval echo '${'$as_ac_var'}'`
11532                { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535   cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537 _ACEOF
11538  break
11539 fi
11540 done
11541
11542
11543
11544 for ac_func in strrchr rindex
11545 do
11546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h.  */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h.  */
11558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11560 #define $ac_func innocuous_$ac_func
11561
11562 /* System header to define __stub macros and hopefully few prototypes,
11563     which can conflict with char $ac_func (); below.
11564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11565     <limits.h> exists even on freestanding compilers.  */
11566
11567 #ifdef __STDC__
11568 # include <limits.h>
11569 #else
11570 # include <assert.h>
11571 #endif
11572
11573 #undef $ac_func
11574
11575 /* Override any GCC internal prototype to avoid an error.
11576    Use char because int might match the return type of a GCC
11577    builtin and then its argument prototype would still apply.  */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char $ac_func ();
11582 /* The GNU C library defines this for functions which it implements
11583     to always fail with ENOSYS.  Some functions are actually named
11584     something starting with __ and the normal name is an alias.  */
11585 #if defined __stub_$ac_func || defined __stub___$ac_func
11586 choke me
11587 #endif
11588
11589 int
11590 main ()
11591 {
11592 return $ac_func ();
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (ac_try="$ac_link"
11599 case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_link") 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612   { (case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; } &&
11621          { ac_try='test -s conftest$ac_exeext'
11622   { (case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_try") 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   eval "$as_ac_var=yes"
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636         eval "$as_ac_var=no"
11637 fi
11638
11639 rm -f core conftest.err conftest.$ac_objext \
11640       conftest$ac_exeext conftest.$ac_ext
11641 fi
11642 ac_res=`eval echo '${'$as_ac_var'}'`
11643                { echo "$as_me:$LINENO: result: $ac_res" >&5
11644 echo "${ECHO_T}$ac_res" >&6; }
11645 if test `eval echo '${'$as_ac_var'}'` = yes; then
11646   cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11648 _ACEOF
11649  break
11650 fi
11651 done
11652
11653
11654
11655 for ac_func in memcpy bcopy
11656 do
11657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663   cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h.  */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h.  */
11669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11671 #define $ac_func innocuous_$ac_func
11672
11673 /* System header to define __stub macros and hopefully few prototypes,
11674     which can conflict with char $ac_func (); below.
11675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676     <limits.h> exists even on freestanding compilers.  */
11677
11678 #ifdef __STDC__
11679 # include <limits.h>
11680 #else
11681 # include <assert.h>
11682 #endif
11683
11684 #undef $ac_func
11685
11686 /* Override any GCC internal prototype to avoid an error.
11687    Use char because int might match the return type of a GCC
11688    builtin and then its argument prototype would still apply.  */
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 char $ac_func ();
11693 /* The GNU C library defines this for functions which it implements
11694     to always fail with ENOSYS.  Some functions are actually named
11695     something starting with __ and the normal name is an alias.  */
11696 #if defined __stub_$ac_func || defined __stub___$ac_func
11697 choke me
11698 #endif
11699
11700 int
11701 main ()
11702 {
11703 return $ac_func ();
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest.$ac_objext conftest$ac_exeext
11709 if { (ac_try="$ac_link"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_link") 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } &&
11722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11723   { (case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_try") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; } &&
11732          { ac_try='test -s conftest$ac_exeext'
11733   { (case "(($ac_try" in
11734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735   *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738   (eval "$ac_try") 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; }; then
11742   eval "$as_ac_var=yes"
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747         eval "$as_ac_var=no"
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext \
11751       conftest$ac_exeext conftest.$ac_ext
11752 fi
11753 ac_res=`eval echo '${'$as_ac_var'}'`
11754                { echo "$as_me:$LINENO: result: $ac_res" >&5
11755 echo "${ECHO_T}$ac_res" >&6; }
11756 if test `eval echo '${'$as_ac_var'}'` = yes; then
11757   cat >>confdefs.h <<_ACEOF
11758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759 _ACEOF
11760  break
11761 fi
11762 done
11763
11764
11765
11766 for ac_func in memmove strcmp
11767 do
11768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h.  */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h.  */
11780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11782 #define $ac_func innocuous_$ac_func
11783
11784 /* System header to define __stub macros and hopefully few prototypes,
11785     which can conflict with char $ac_func (); below.
11786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787     <limits.h> exists even on freestanding compilers.  */
11788
11789 #ifdef __STDC__
11790 # include <limits.h>
11791 #else
11792 # include <assert.h>
11793 #endif
11794
11795 #undef $ac_func
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798    Use char because int might match the return type of a GCC
11799    builtin and then its argument prototype would still apply.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char $ac_func ();
11804 /* The GNU C library defines this for functions which it implements
11805     to always fail with ENOSYS.  Some functions are actually named
11806     something starting with __ and the normal name is an alias.  */
11807 #if defined __stub_$ac_func || defined __stub___$ac_func
11808 choke me
11809 #endif
11810
11811 int
11812 main ()
11813 {
11814 return $ac_func ();
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_link") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834   { (case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839   (eval "$ac_try") 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest$ac_exeext'
11844   { (case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_try") 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   eval "$as_ac_var=yes"
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858         eval "$as_ac_var=no"
11859 fi
11860
11861 rm -f core conftest.err conftest.$ac_objext \
11862       conftest$ac_exeext conftest.$ac_ext
11863 fi
11864 ac_res=`eval echo '${'$as_ac_var'}'`
11865                { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11867 if test `eval echo '${'$as_ac_var'}'` = yes; then
11868   cat >>confdefs.h <<_ACEOF
11869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11870 _ACEOF
11871
11872 fi
11873 done
11874
11875
11876
11877
11878 for ac_func in closedir opendir readdir
11879 do
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11894 #define $ac_func innocuous_$ac_func
11895
11896 /* System header to define __stub macros and hopefully few prototypes,
11897     which can conflict with char $ac_func (); below.
11898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899     <limits.h> exists even on freestanding compilers.  */
11900
11901 #ifdef __STDC__
11902 # include <limits.h>
11903 #else
11904 # include <assert.h>
11905 #endif
11906
11907 #undef $ac_func
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910    Use char because int might match the return type of a GCC
11911    builtin and then its argument prototype would still apply.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char $ac_func ();
11916 /* The GNU C library defines this for functions which it implements
11917     to always fail with ENOSYS.  Some functions are actually named
11918     something starting with __ and the normal name is an alias.  */
11919 #if defined __stub_$ac_func || defined __stub___$ac_func
11920 choke me
11921 #endif
11922
11923 int
11924 main ()
11925 {
11926 return $ac_func ();
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_link") 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946   { (case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951   (eval "$ac_try") 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; } &&
11955          { ac_try='test -s conftest$ac_exeext'
11956   { (case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_try") 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   eval "$as_ac_var=yes"
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970         eval "$as_ac_var=no"
11971 fi
11972
11973 rm -f core conftest.err conftest.$ac_objext \
11974       conftest$ac_exeext conftest.$ac_ext
11975 fi
11976 ac_res=`eval echo '${'$as_ac_var'}'`
11977                { echo "$as_me:$LINENO: result: $ac_res" >&5
11978 echo "${ECHO_T}$ac_res" >&6; }
11979 if test `eval echo '${'$as_ac_var'}'` = yes; then
11980   cat >>confdefs.h <<_ACEOF
11981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11982 _ACEOF
11983
11984 fi
11985 done
11986
11987
11988 # Check whether --enable-shared was given.
11989 if test "${enable_shared+set}" = set; then
11990   enableval=$enable_shared; p=${PACKAGE-default}
11991     case $enableval in
11992     yes) enable_shared=yes ;;
11993     no) enable_shared=no ;;
11994     *)
11995       enable_shared=no
11996       # Look at the argument we got.  We use all the common list separators.
11997       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998       for pkg in $enableval; do
11999         IFS="$lt_save_ifs"
12000         if test "X$pkg" = "X$p"; then
12001           enable_shared=yes
12002         fi
12003       done
12004       IFS="$lt_save_ifs"
12005       ;;
12006     esac
12007 else
12008   enable_shared=yes
12009 fi
12010
12011
12012 # Check whether --enable-static was given.
12013 if test "${enable_static+set}" = set; then
12014   enableval=$enable_static; p=${PACKAGE-default}
12015     case $enableval in
12016     yes) enable_static=yes ;;
12017     no) enable_static=no ;;
12018     *)
12019      enable_static=no
12020       # Look at the argument we got.  We use all the common list separators.
12021       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12022       for pkg in $enableval; do
12023         IFS="$lt_save_ifs"
12024         if test "X$pkg" = "X$p"; then
12025           enable_static=yes
12026         fi
12027       done
12028       IFS="$lt_save_ifs"
12029       ;;
12030     esac
12031 else
12032   enable_static=yes
12033 fi
12034
12035
12036 # Check whether --enable-fast-install was given.
12037 if test "${enable_fast_install+set}" = set; then
12038   enableval=$enable_fast_install; p=${PACKAGE-default}
12039     case $enableval in
12040     yes) enable_fast_install=yes ;;
12041     no) enable_fast_install=no ;;
12042     *)
12043       enable_fast_install=no
12044       # Look at the argument we got.  We use all the common list separators.
12045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046       for pkg in $enableval; do
12047         IFS="$lt_save_ifs"
12048         if test "X$pkg" = "X$p"; then
12049           enable_fast_install=yes
12050         fi
12051       done
12052       IFS="$lt_save_ifs"
12053       ;;
12054     esac
12055 else
12056   enable_fast_install=yes
12057 fi
12058
12059
12060 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12061 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12062 if test "${lt_cv_path_SED+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   # Loop through the user's path and test for sed and gsed.
12066 # Then use that list of sed's as ones to test for truncation.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070   IFS=$as_save_IFS
12071   test -z "$as_dir" && as_dir=.
12072   for lt_ac_prog in sed gsed; do
12073     for ac_exec_ext in '' $ac_executable_extensions; do
12074       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12075         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12076       fi
12077     done
12078   done
12079 done
12080 lt_ac_max=0
12081 lt_ac_count=0
12082 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12083 # along with /bin/sed that truncates output.
12084 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12085   test ! -f $lt_ac_sed && continue
12086   cat /dev/null > conftest.in
12087   lt_ac_count=0
12088   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12089   # Check for GNU sed and select it if it is found.
12090   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12091     lt_cv_path_SED=$lt_ac_sed
12092     break
12093   fi
12094   while true; do
12095     cat conftest.in conftest.in >conftest.tmp
12096     mv conftest.tmp conftest.in
12097     cp conftest.in conftest.nl
12098     echo >>conftest.nl
12099     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12100     cmp -s conftest.out conftest.nl || break
12101     # 10000 chars as input seems more than enough
12102     test $lt_ac_count -gt 10 && break
12103     lt_ac_count=`expr $lt_ac_count + 1`
12104     if test $lt_ac_count -gt $lt_ac_max; then
12105       lt_ac_max=$lt_ac_count
12106       lt_cv_path_SED=$lt_ac_sed
12107     fi
12108   done
12109 done
12110
12111 fi
12112
12113 SED=$lt_cv_path_SED
12114 { echo "$as_me:$LINENO: result: $SED" >&5
12115 echo "${ECHO_T}$SED" >&6; }
12116
12117
12118 # Check whether --with-gnu-ld was given.
12119 if test "${with_gnu_ld+set}" = set; then
12120   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12121 else
12122   with_gnu_ld=no
12123 fi
12124
12125 ac_prog=ld
12126 if test "$GCC" = yes; then
12127   # Check if gcc -print-prog-name=ld gives a path.
12128   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12129 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12130   case $host in
12131   *-*-mingw*)
12132     # gcc leaves a trailing carriage return which upsets mingw
12133     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12134   *)
12135     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12136   esac
12137   case $ac_prog in
12138     # Accept absolute paths.
12139     [\\/]* | ?:[\\/]*)
12140       re_direlt='/[^/][^/]*/\.\./'
12141       # Canonicalize the pathname of ld
12142       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12143       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12144         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12145       done
12146       test -z "$LD" && LD="$ac_prog"
12147       ;;
12148   "")
12149     # If it fails, then pretend we aren't using GCC.
12150     ac_prog=ld
12151     ;;
12152   *)
12153     # If it is relative, then search for the first ld in PATH.
12154     with_gnu_ld=unknown
12155     ;;
12156   esac
12157 elif test "$with_gnu_ld" = yes; then
12158   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12159 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12160 else
12161   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12162 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12163 fi
12164 if test "${lt_cv_path_LD+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   if test -z "$LD"; then
12168   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12169   for ac_dir in $PATH; do
12170     IFS="$lt_save_ifs"
12171     test -z "$ac_dir" && ac_dir=.
12172     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12173       lt_cv_path_LD="$ac_dir/$ac_prog"
12174       # Check to see if the program is GNU ld.  I'd rather use --version,
12175       # but apparently some variants of GNU ld only accept -v.
12176       # Break only if it was the GNU/non-GNU ld that we prefer.
12177       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12178       *GNU* | *'with BFD'*)
12179         test "$with_gnu_ld" != no && break
12180         ;;
12181       *)
12182         test "$with_gnu_ld" != yes && break
12183         ;;
12184       esac
12185     fi
12186   done
12187   IFS="$lt_save_ifs"
12188 else
12189   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12190 fi
12191 fi
12192
12193 LD="$lt_cv_path_LD"
12194 if test -n "$LD"; then
12195   { echo "$as_me:$LINENO: result: $LD" >&5
12196 echo "${ECHO_T}$LD" >&6; }
12197 else
12198   { echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6; }
12200 fi
12201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12203    { (exit 1); exit 1; }; }
12204 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12210 case `$LD -v 2>&1 </dev/null` in
12211 *GNU* | *'with BFD'*)
12212   lt_cv_prog_gnu_ld=yes
12213   ;;
12214 *)
12215   lt_cv_prog_gnu_ld=no
12216   ;;
12217 esac
12218 fi
12219 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12220 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12221 with_gnu_ld=$lt_cv_prog_gnu_ld
12222
12223
12224 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12225 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12226 if test "${lt_cv_ld_reload_flag+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   lt_cv_ld_reload_flag='-r'
12230 fi
12231 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12232 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12233 reload_flag=$lt_cv_ld_reload_flag
12234 case $reload_flag in
12235 "" | " "*) ;;
12236 *) reload_flag=" $reload_flag" ;;
12237 esac
12238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12239 case $host_os in
12240   darwin*)
12241     if test "$GCC" = yes; then
12242       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12243     else
12244       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12245     fi
12246     ;;
12247 esac
12248
12249 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12250 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12251 if test "${lt_cv_deplibs_check_method+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254   lt_cv_file_magic_cmd='$MAGIC_CMD'
12255 lt_cv_file_magic_test_file=
12256 lt_cv_deplibs_check_method='unknown'
12257 # Need to set the preceding variable on all platforms that support
12258 # interlibrary dependencies.
12259 # 'none' -- dependencies not supported.
12260 # `unknown' -- same as none, but documents that we really don't know.
12261 # 'pass_all' -- all dependencies passed with no checks.
12262 # 'test_compile' -- check by making test program.
12263 # 'file_magic [[regex]]' -- check by looking for files in library path
12264 # which responds to the $file_magic_cmd with a given extended regex.
12265 # If you have `file' or equivalent on your system and you're not sure
12266 # whether `pass_all' will *always* work, you probably want this one.
12267
12268 case $host_os in
12269 aix4* | aix5*)
12270   lt_cv_deplibs_check_method=pass_all
12271   ;;
12272
12273 beos*)
12274   lt_cv_deplibs_check_method=pass_all
12275   ;;
12276
12277 bsdi[45]*)
12278   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12279   lt_cv_file_magic_cmd='/usr/bin/file -L'
12280   lt_cv_file_magic_test_file=/shlib/libc.so
12281   ;;
12282
12283 cygwin*)
12284   # func_win32_libid is a shell function defined in ltmain.sh
12285   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12286   lt_cv_file_magic_cmd='func_win32_libid'
12287   ;;
12288
12289 mingw* | pw32*)
12290   # Base MSYS/MinGW do not provide the 'file' command needed by
12291   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12292   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12293   lt_cv_file_magic_cmd='$OBJDUMP -f'
12294   ;;
12295
12296 darwin* | rhapsody*)
12297   lt_cv_deplibs_check_method=pass_all
12298   ;;
12299
12300 freebsd* | kfreebsd*-gnu | dragonfly*)
12301   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12302     case $host_cpu in
12303     i*86 )
12304       # Not sure whether the presence of OpenBSD here was a mistake.
12305       # Let's accept both of them until this is cleared up.
12306       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12307       lt_cv_file_magic_cmd=/usr/bin/file
12308       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12309       ;;
12310     esac
12311   else
12312     lt_cv_deplibs_check_method=pass_all
12313   fi
12314   ;;
12315
12316 gnu*)
12317   lt_cv_deplibs_check_method=pass_all
12318   ;;
12319
12320 hpux10.20* | hpux11*)
12321   lt_cv_file_magic_cmd=/usr/bin/file
12322   case $host_cpu in
12323   ia64*)
12324     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12325     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12326     ;;
12327   hppa*64*)
12328     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]'
12329     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12330     ;;
12331   *)
12332     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12333     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12334     ;;
12335   esac
12336   ;;
12337
12338 interix3*)
12339   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12340   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12341   ;;
12342
12343 irix5* | irix6* | nonstopux*)
12344   case $LD in
12345   *-32|*"-32 ") libmagic=32-bit;;
12346   *-n32|*"-n32 ") libmagic=N32;;
12347   *-64|*"-64 ") libmagic=64-bit;;
12348   *) libmagic=never-match;;
12349   esac
12350   lt_cv_deplibs_check_method=pass_all
12351   ;;
12352
12353 # This must be Linux ELF.
12354 linux*)
12355   lt_cv_deplibs_check_method=pass_all
12356   ;;
12357
12358 netbsd*)
12359   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12360     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12361   else
12362     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12363   fi
12364   ;;
12365
12366 newos6*)
12367   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12368   lt_cv_file_magic_cmd=/usr/bin/file
12369   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12370   ;;
12371
12372 nto-qnx*)
12373   lt_cv_deplibs_check_method=unknown
12374   ;;
12375
12376 openbsd*)
12377   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12378     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12379   else
12380     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12381   fi
12382   ;;
12383
12384 osf3* | osf4* | osf5*)
12385   lt_cv_deplibs_check_method=pass_all
12386   ;;
12387
12388 solaris*)
12389   lt_cv_deplibs_check_method=pass_all
12390   ;;
12391
12392 sysv4 | sysv4.3*)
12393   case $host_vendor in
12394   motorola)
12395     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]'
12396     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12397     ;;
12398   ncr)
12399     lt_cv_deplibs_check_method=pass_all
12400     ;;
12401   sequent)
12402     lt_cv_file_magic_cmd='/bin/file'
12403     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12404     ;;
12405   sni)
12406     lt_cv_file_magic_cmd='/bin/file'
12407     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12408     lt_cv_file_magic_test_file=/lib/libc.so
12409     ;;
12410   siemens)
12411     lt_cv_deplibs_check_method=pass_all
12412     ;;
12413   pc)
12414     lt_cv_deplibs_check_method=pass_all
12415     ;;
12416   esac
12417   ;;
12418
12419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12420   lt_cv_deplibs_check_method=pass_all
12421   ;;
12422 esac
12423
12424 fi
12425 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12426 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12427 file_magic_cmd=$lt_cv_file_magic_cmd
12428 deplibs_check_method=$lt_cv_deplibs_check_method
12429 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12430
12431
12432
12433 # If no C compiler was specified, use CC.
12434 LTCC=${LTCC-"$CC"}
12435
12436 # If no C compiler flags were specified, use CFLAGS.
12437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12438
12439 # Allow CC to be a program name with arguments.
12440 compiler=$CC
12441
12442 # Check whether --enable-libtool-lock was given.
12443 if test "${enable_libtool_lock+set}" = set; then
12444   enableval=$enable_libtool_lock;
12445 fi
12446
12447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12448
12449 # Some flags need to be propagated to the compiler or linker for good
12450 # libtool support.
12451 case $host in
12452 ia64-*-hpux*)
12453   # Find out which ABI we are using.
12454   echo 'int i;' > conftest.$ac_ext
12455   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456   (eval $ac_compile) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; then
12460     case `/usr/bin/file conftest.$ac_objext` in
12461     *ELF-32*)
12462       HPUX_IA64_MODE="32"
12463       ;;
12464     *ELF-64*)
12465       HPUX_IA64_MODE="64"
12466       ;;
12467     esac
12468   fi
12469   rm -rf conftest*
12470   ;;
12471 *-*-irix6*)
12472   # Find out which ABI we are using.
12473   echo '#line 12473 "configure"' > conftest.$ac_ext
12474   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475   (eval $ac_compile) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; then
12479    if test "$lt_cv_prog_gnu_ld" = yes; then
12480     case `/usr/bin/file conftest.$ac_objext` in
12481     *32-bit*)
12482       LD="${LD-ld} -melf32bsmip"
12483       ;;
12484     *N32*)
12485       LD="${LD-ld} -melf32bmipn32"
12486       ;;
12487     *64-bit*)
12488       LD="${LD-ld} -melf64bmip"
12489       ;;
12490     esac
12491    else
12492     case `/usr/bin/file conftest.$ac_objext` in
12493     *32-bit*)
12494       LD="${LD-ld} -32"
12495       ;;
12496     *N32*)
12497       LD="${LD-ld} -n32"
12498       ;;
12499     *64-bit*)
12500       LD="${LD-ld} -64"
12501       ;;
12502     esac
12503    fi
12504   fi
12505   rm -rf conftest*
12506   ;;
12507
12508 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12509   # Find out which ABI we are using.
12510   echo 'int i;' > conftest.$ac_ext
12511   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512   (eval $ac_compile) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; then
12516     case `/usr/bin/file conftest.o` in
12517     *32-bit*)
12518       case $host in
12519         x86_64-*linux*)
12520           LD="${LD-ld} -m elf_i386"
12521           ;;
12522         ppc64-*linux*|powerpc64-*linux*)
12523           LD="${LD-ld} -m elf32ppclinux"
12524           ;;
12525         s390x-*linux*)
12526           LD="${LD-ld} -m elf_s390"
12527           ;;
12528         sparc64-*linux*)
12529           LD="${LD-ld} -m elf32_sparc"
12530           ;;
12531       esac
12532       ;;
12533     *64-bit*)
12534       case $host in
12535         x86_64-*linux*)
12536           LD="${LD-ld} -m elf_x86_64"
12537           ;;
12538         ppc*-*linux*|powerpc*-*linux*)
12539           LD="${LD-ld} -m elf64ppc"
12540           ;;
12541         s390*-*linux*)
12542           LD="${LD-ld} -m elf64_s390"
12543           ;;
12544         sparc*-*linux*)
12545           LD="${LD-ld} -m elf64_sparc"
12546           ;;
12547       esac
12548       ;;
12549     esac
12550   fi
12551   rm -rf conftest*
12552   ;;
12553
12554 *-*-sco3.2v5*)
12555   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12556   SAVE_CFLAGS="$CFLAGS"
12557   CFLAGS="$CFLAGS -belf"
12558   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12559 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12560 if test "${lt_cv_cc_needs_belf+set}" = set; then
12561   echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563   ac_ext=c
12564 ac_cpp='$CPP $CPPFLAGS'
12565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
12569      cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h.  */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h.  */
12575
12576 int
12577 main ()
12578 {
12579
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_link") 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } &&
12598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599   { (case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_try") 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_try") 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   lt_cv_cc_needs_belf=yes
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623         lt_cv_cc_needs_belf=no
12624 fi
12625
12626 rm -f core conftest.err conftest.$ac_objext \
12627       conftest$ac_exeext conftest.$ac_ext
12628      ac_ext=c
12629 ac_cpp='$CPP $CPPFLAGS'
12630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633
12634 fi
12635 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12636 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12637   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12638     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12639     CFLAGS="$SAVE_CFLAGS"
12640   fi
12641   ;;
12642 sparc*-*solaris*)
12643   # Find out which ABI we are using.
12644   echo 'int i;' > conftest.$ac_ext
12645   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12646   (eval $ac_compile) 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; then
12650     case `/usr/bin/file conftest.o` in
12651     *64-bit*)
12652       case $lt_cv_prog_gnu_ld in
12653       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12654       *)    LD="${LD-ld} -64" ;;
12655       esac
12656       ;;
12657     esac
12658   fi
12659   rm -rf conftest*
12660   ;;
12661
12662
12663 esac
12664
12665 need_locks="$enable_libtool_lock"
12666
12667
12668
12669
12670 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12671     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12672     (test "X$CXX" != "Xg++"))) ; then
12673   ac_ext=cpp
12674 ac_cpp='$CXXCPP $CPPFLAGS'
12675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12678 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12679 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12680 if test -z "$CXXCPP"; then
12681   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684       # Double quotes because CXXCPP needs to be expanded
12685     for CXXCPP in "$CXX -E" "/lib/cpp"
12686     do
12687       ac_preproc_ok=false
12688 for ac_cxx_preproc_warn_flag in '' yes
12689 do
12690   # Use a header file that comes with gcc, so configuring glibc
12691   # with a fresh cross-compiler works.
12692   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693   # <limits.h> exists even on freestanding compilers.
12694   # On the NeXT, cc -E runs the code through the compiler's parser,
12695   # not just through cpp. "Syntax error" is here to catch this case.
12696   cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 #ifdef __STDC__
12703 # include <limits.h>
12704 #else
12705 # include <assert.h>
12706 #endif
12707                      Syntax error
12708 _ACEOF
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } >/dev/null; then
12722   if test -s conftest.err; then
12723     ac_cpp_err=$ac_cxx_preproc_warn_flag
12724     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12725   else
12726     ac_cpp_err=
12727   fi
12728 else
12729   ac_cpp_err=yes
12730 fi
12731 if test -z "$ac_cpp_err"; then
12732   :
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737   # Broken: fails on valid input.
12738 continue
12739 fi
12740
12741 rm -f conftest.err conftest.$ac_ext
12742
12743   # OK, works on sane cases.  Now check whether nonexistent headers
12744   # can be detected and how.
12745   cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751 #include <ac_nonexistent.h>
12752 _ACEOF
12753 if { (ac_try="$ac_cpp conftest.$ac_ext"
12754 case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12760   ac_status=$?
12761   grep -v '^ *+' conftest.er1 >conftest.err
12762   rm -f conftest.er1
12763   cat conftest.err >&5
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } >/dev/null; then
12766   if test -s conftest.err; then
12767     ac_cpp_err=$ac_cxx_preproc_warn_flag
12768     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12769   else
12770     ac_cpp_err=
12771   fi
12772 else
12773   ac_cpp_err=yes
12774 fi
12775 if test -z "$ac_cpp_err"; then
12776   # Broken: success on invalid input.
12777 continue
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782   # Passes both tests.
12783 ac_preproc_ok=:
12784 break
12785 fi
12786
12787 rm -f conftest.err conftest.$ac_ext
12788
12789 done
12790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12791 rm -f conftest.err conftest.$ac_ext
12792 if $ac_preproc_ok; then
12793   break
12794 fi
12795
12796     done
12797     ac_cv_prog_CXXCPP=$CXXCPP
12798
12799 fi
12800   CXXCPP=$ac_cv_prog_CXXCPP
12801 else
12802   ac_cv_prog_CXXCPP=$CXXCPP
12803 fi
12804 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12805 echo "${ECHO_T}$CXXCPP" >&6; }
12806 ac_preproc_ok=false
12807 for ac_cxx_preproc_warn_flag in '' yes
12808 do
12809   # Use a header file that comes with gcc, so configuring glibc
12810   # with a fresh cross-compiler works.
12811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12812   # <limits.h> exists even on freestanding compilers.
12813   # On the NeXT, cc -E runs the code through the compiler's parser,
12814   # not just through cpp. "Syntax error" is here to catch this case.
12815   cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h.  */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h.  */
12821 #ifdef __STDC__
12822 # include <limits.h>
12823 #else
12824 # include <assert.h>
12825 #endif
12826                      Syntax error
12827 _ACEOF
12828 if { (ac_try="$ac_cpp conftest.$ac_ext"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12835   ac_status=$?
12836   grep -v '^ *+' conftest.er1 >conftest.err
12837   rm -f conftest.er1
12838   cat conftest.err >&5
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } >/dev/null; then
12841   if test -s conftest.err; then
12842     ac_cpp_err=$ac_cxx_preproc_warn_flag
12843     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12844   else
12845     ac_cpp_err=
12846   fi
12847 else
12848   ac_cpp_err=yes
12849 fi
12850 if test -z "$ac_cpp_err"; then
12851   :
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856   # Broken: fails on valid input.
12857 continue
12858 fi
12859
12860 rm -f conftest.err conftest.$ac_ext
12861
12862   # OK, works on sane cases.  Now check whether nonexistent headers
12863   # can be detected and how.
12864   cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h.  */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h.  */
12870 #include <ac_nonexistent.h>
12871 _ACEOF
12872 if { (ac_try="$ac_cpp conftest.$ac_ext"
12873 case "(($ac_try" in
12874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875   *) ac_try_echo=$ac_try;;
12876 esac
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } >/dev/null; then
12885   if test -s conftest.err; then
12886     ac_cpp_err=$ac_cxx_preproc_warn_flag
12887     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12888   else
12889     ac_cpp_err=
12890   fi
12891 else
12892   ac_cpp_err=yes
12893 fi
12894 if test -z "$ac_cpp_err"; then
12895   # Broken: success on invalid input.
12896 continue
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901   # Passes both tests.
12902 ac_preproc_ok=:
12903 break
12904 fi
12905
12906 rm -f conftest.err conftest.$ac_ext
12907
12908 done
12909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12910 rm -f conftest.err conftest.$ac_ext
12911 if $ac_preproc_ok; then
12912   :
12913 else
12914   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12915 See \`config.log' for more details." >&5
12916 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12917 See \`config.log' for more details." >&2;}
12918    { (exit 1); exit 1; }; }
12919 fi
12920
12921 ac_ext=cpp
12922 ac_cpp='$CXXCPP $CPPFLAGS'
12923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12926
12927 fi
12928
12929
12930 ac_ext=f
12931 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12932 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12934 if test -n "$ac_tool_prefix"; then
12935   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
12936   do
12937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12941 if test "${ac_cv_prog_F77+set}" = set; then
12942   echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944   if test -n "$F77"; then
12945   ac_cv_prog_F77="$F77" # Let the user override the test.
12946 else
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12949 do
12950   IFS=$as_save_IFS
12951   test -z "$as_dir" && as_dir=.
12952   for ac_exec_ext in '' $ac_executable_extensions; do
12953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12954     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12956     break 2
12957   fi
12958 done
12959 done
12960 IFS=$as_save_IFS
12961
12962 fi
12963 fi
12964 F77=$ac_cv_prog_F77
12965 if test -n "$F77"; then
12966   { echo "$as_me:$LINENO: result: $F77" >&5
12967 echo "${ECHO_T}$F77" >&6; }
12968 else
12969   { echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6; }
12971 fi
12972
12973
12974     test -n "$F77" && break
12975   done
12976 fi
12977 if test -z "$F77"; then
12978   ac_ct_F77=$F77
12979   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
12980 do
12981   # Extract the first word of "$ac_prog", so it can be a program name with args.
12982 set dummy $ac_prog; ac_word=$2
12983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12985 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12986   echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988   if test -n "$ac_ct_F77"; then
12989   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12990 else
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12993 do
12994   IFS=$as_save_IFS
12995   test -z "$as_dir" && as_dir=.
12996   for ac_exec_ext in '' $ac_executable_extensions; do
12997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12998     ac_cv_prog_ac_ct_F77="$ac_prog"
12999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000     break 2
13001   fi
13002 done
13003 done
13004 IFS=$as_save_IFS
13005
13006 fi
13007 fi
13008 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13009 if test -n "$ac_ct_F77"; then
13010   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13011 echo "${ECHO_T}$ac_ct_F77" >&6; }
13012 else
13013   { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13015 fi
13016
13017
13018   test -n "$ac_ct_F77" && break
13019 done
13020
13021   if test "x$ac_ct_F77" = x; then
13022     F77=""
13023   else
13024     case $cross_compiling:$ac_tool_warned in
13025 yes:)
13026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13027 whose name does not start with the host triplet.  If you think this
13028 configuration is useful to you, please write to autoconf@gnu.org." >&5
13029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13030 whose name does not start with the host triplet.  If you think this
13031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13032 ac_tool_warned=yes ;;
13033 esac
13034     F77=$ac_ct_F77
13035   fi
13036 fi
13037
13038
13039 # Provide some information about the compiler.
13040 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13041 ac_compiler=`set X $ac_compile; echo $2`
13042 { (ac_try="$ac_compiler --version >&5"
13043 case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_compiler --version >&5") 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }
13052 { (ac_try="$ac_compiler -v >&5"
13053 case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_compiler -v >&5") 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }
13062 { (ac_try="$ac_compiler -V >&5"
13063 case "(($ac_try" in
13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065   *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068   (eval "$ac_compiler -V >&5") 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }
13072 rm -f a.out
13073
13074 # If we don't use `.F' as extension, the preprocessor is not run on the
13075 # input file.  (Note that this only needs to work for GNU compilers.)
13076 ac_save_ext=$ac_ext
13077 ac_ext=F
13078 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13079 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13080 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   cat >conftest.$ac_ext <<_ACEOF
13084       program main
13085 #ifndef __GNUC__
13086        choke me
13087 #endif
13088
13089       end
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095   *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098   (eval "$ac_compile") 2>conftest.er1
13099   ac_status=$?
13100   grep -v '^ *+' conftest.er1 >conftest.err
13101   rm -f conftest.er1
13102   cat conftest.err >&5
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } &&
13105          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; } &&
13115          { ac_try='test -s conftest.$ac_objext'
13116   { (case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_try") 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; }; then
13125   ac_compiler_gnu=yes
13126 else
13127   echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130         ac_compiler_gnu=no
13131 fi
13132
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13135
13136 fi
13137 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13138 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13139 ac_ext=$ac_save_ext
13140 ac_test_FFLAGS=${FFLAGS+set}
13141 ac_save_FFLAGS=$FFLAGS
13142 FFLAGS=
13143 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13144 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13145 if test "${ac_cv_prog_f77_g+set}" = set; then
13146   echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148   FFLAGS=-g
13149 cat >conftest.$ac_ext <<_ACEOF
13150       program main
13151
13152       end
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_compile") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } &&
13168          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13169   { (case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_try") 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; } &&
13178          { ac_try='test -s conftest.$ac_objext'
13179   { (case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_try") 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; }; then
13188   ac_cv_prog_f77_g=yes
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193         ac_cv_prog_f77_g=no
13194 fi
13195
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197
13198 fi
13199 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13200 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13201 if test "$ac_test_FFLAGS" = set; then
13202   FFLAGS=$ac_save_FFLAGS
13203 elif test $ac_cv_prog_f77_g = yes; then
13204   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13205     FFLAGS="-g -O2"
13206   else
13207     FFLAGS="-g"
13208   fi
13209 else
13210   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13211     FFLAGS="-O2"
13212   else
13213     FFLAGS=
13214   fi
13215 fi
13216
13217 G77=`test $ac_compiler_gnu = yes && echo yes`
13218 ac_ext=c
13219 ac_cpp='$CPP $CPPFLAGS'
13220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224
13225
13226 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13227
13228 # find the maximum length of command line arguments
13229 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13230 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13231 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13232   echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234     i=0
13235   teststring="ABCD"
13236
13237   case $build_os in
13238   msdosdjgpp*)
13239     # On DJGPP, this test can blow up pretty badly due to problems in libc
13240     # (any single argument exceeding 2000 bytes causes a buffer overrun
13241     # during glob expansion).  Even if it were fixed, the result of this
13242     # check would be larger than it should be.
13243     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13244     ;;
13245
13246   gnu*)
13247     # Under GNU Hurd, this test is not required because there is
13248     # no limit to the length of command line arguments.
13249     # Libtool will interpret -1 as no limit whatsoever
13250     lt_cv_sys_max_cmd_len=-1;
13251     ;;
13252
13253   cygwin* | mingw*)
13254     # On Win9x/ME, this test blows up -- it succeeds, but takes
13255     # about 5 minutes as the teststring grows exponentially.
13256     # Worse, since 9x/ME are not pre-emptively multitasking,
13257     # you end up with a "frozen" computer, even though with patience
13258     # the test eventually succeeds (with a max line length of 256k).
13259     # Instead, let's just punt: use the minimum linelength reported by
13260     # all of the supported platforms: 8192 (on NT/2K/XP).
13261     lt_cv_sys_max_cmd_len=8192;
13262     ;;
13263
13264   amigaos*)
13265     # On AmigaOS with pdksh, this test takes hours, literally.
13266     # So we just punt and use a minimum line length of 8192.
13267     lt_cv_sys_max_cmd_len=8192;
13268     ;;
13269
13270   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13271     # This has been around since 386BSD, at least.  Likely further.
13272     if test -x /sbin/sysctl; then
13273       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13274     elif test -x /usr/sbin/sysctl; then
13275       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13276     else
13277       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13278     fi
13279     # And add a safety zone
13280     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13282     ;;
13283
13284   interix*)
13285     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13286     lt_cv_sys_max_cmd_len=196608
13287     ;;
13288
13289   osf*)
13290     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13291     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13292     # nice to cause kernel panics so lets avoid the loop below.
13293     # First set a reasonable default.
13294     lt_cv_sys_max_cmd_len=16384
13295     #
13296     if test -x /sbin/sysconfig; then
13297       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13298         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13299       esac
13300     fi
13301     ;;
13302   sco3.2v5*)
13303     lt_cv_sys_max_cmd_len=102400
13304     ;;
13305   sysv5* | sco5v6* | sysv4.2uw2*)
13306     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13307     if test -n "$kargmax"; then
13308       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13309     else
13310       lt_cv_sys_max_cmd_len=32768
13311     fi
13312     ;;
13313   *)
13314     # If test is not a shell built-in, we'll probably end up computing a
13315     # maximum length that is only half of the actual maximum length, but
13316     # we can't tell.
13317     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13318     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13319                = "XX$teststring") >/dev/null 2>&1 &&
13320             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13321             lt_cv_sys_max_cmd_len=$new_result &&
13322             test $i != 17 # 1/2 MB should be enough
13323     do
13324       i=`expr $i + 1`
13325       teststring=$teststring$teststring
13326     done
13327     teststring=
13328     # Add a significant safety factor because C++ compilers can tack on massive
13329     # amounts of additional arguments before passing them to the linker.
13330     # It appears as though 1/2 is a usable value.
13331     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13332     ;;
13333   esac
13334
13335 fi
13336
13337 if test -n $lt_cv_sys_max_cmd_len ; then
13338   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13339 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13340 else
13341   { echo "$as_me:$LINENO: result: none" >&5
13342 echo "${ECHO_T}none" >&6; }
13343 fi
13344
13345
13346
13347
13348 # Check for command to grab the raw symbol name followed by C symbol from nm.
13349 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13350 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13351 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354
13355 # These are sane defaults that work on at least a few old systems.
13356 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13357
13358 # Character class describing NM global symbol codes.
13359 symcode='[BCDEGRST]'
13360
13361 # Regexp to match symbols that can be accessed directly from C.
13362 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13363
13364 # Transform an extracted symbol line into a proper C declaration
13365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13366
13367 # Transform an extracted symbol line into symbol name and symbol address
13368 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'"
13369
13370 # Define system-specific variables.
13371 case $host_os in
13372 aix*)
13373   symcode='[BCDT]'
13374   ;;
13375 cygwin* | mingw* | pw32*)
13376   symcode='[ABCDGISTW]'
13377   ;;
13378 hpux*) # Its linker distinguishes data from code symbols
13379   if test "$host_cpu" = ia64; then
13380     symcode='[ABCDEGRST]'
13381   fi
13382   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13383   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'"
13384   ;;
13385 linux*)
13386   if test "$host_cpu" = ia64; then
13387     symcode='[ABCDGIRSTW]'
13388     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13389     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'"
13390   fi
13391   ;;
13392 irix* | nonstopux*)
13393   symcode='[BCDEGRST]'
13394   ;;
13395 osf*)
13396   symcode='[BCDEGQRST]'
13397   ;;
13398 solaris*)
13399   symcode='[BDRT]'
13400   ;;
13401 sco3.2v5*)
13402   symcode='[DT]'
13403   ;;
13404 sysv4.2uw2*)
13405   symcode='[DT]'
13406   ;;
13407 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13408   symcode='[ABDT]'
13409   ;;
13410 sysv4)
13411   symcode='[DFNSTU]'
13412   ;;
13413 esac
13414
13415 # Handle CRLF in mingw tool chain
13416 opt_cr=
13417 case $build_os in
13418 mingw*)
13419   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13420   ;;
13421 esac
13422
13423 # If we're using GNU nm, then use its standard symbol codes.
13424 case `$NM -V 2>&1` in
13425 *GNU* | *'with BFD'*)
13426   symcode='[ABCDGIRSTW]' ;;
13427 esac
13428
13429 # Try without a prefix undercore, then with it.
13430 for ac_symprfx in "" "_"; do
13431
13432   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13433   symxfrm="\\1 $ac_symprfx\\2 \\2"
13434
13435   # Write the raw and C identifiers.
13436   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13437
13438   # Check to see that the pipe works correctly.
13439   pipe_works=no
13440
13441   rm -f conftest*
13442   cat > conftest.$ac_ext <<EOF
13443 #ifdef __cplusplus
13444 extern "C" {
13445 #endif
13446 char nm_test_var;
13447 void nm_test_func(){}
13448 #ifdef __cplusplus
13449 }
13450 #endif
13451 int main(){nm_test_var='a';nm_test_func();return(0);}
13452 EOF
13453
13454   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455   (eval $ac_compile) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; then
13459     # Now try to grab the symbols.
13460     nlist=conftest.nm
13461     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13462   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } && test -s "$nlist"; then
13466       # Try sorting and uniquifying the output.
13467       if sort "$nlist" | uniq > "$nlist"T; then
13468         mv -f "$nlist"T "$nlist"
13469       else
13470         rm -f "$nlist"T
13471       fi
13472
13473       # Make sure that we snagged all the symbols we need.
13474       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13475         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13476           cat <<EOF > conftest.$ac_ext
13477 #ifdef __cplusplus
13478 extern "C" {
13479 #endif
13480
13481 EOF
13482           # Now generate the symbol file.
13483           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13484
13485           cat <<EOF >> conftest.$ac_ext
13486 #if defined (__STDC__) && __STDC__
13487 # define lt_ptr_t void *
13488 #else
13489 # define lt_ptr_t char *
13490 # define const
13491 #endif
13492
13493 /* The mapping between symbol names and symbols. */
13494 const struct {
13495   const char *name;
13496   lt_ptr_t address;
13497 }
13498 lt_preloaded_symbols[] =
13499 {
13500 EOF
13501           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13502           cat <<\EOF >> conftest.$ac_ext
13503   {0, (lt_ptr_t) 0}
13504 };
13505
13506 #ifdef __cplusplus
13507 }
13508 #endif
13509 EOF
13510           # Now try linking the two files.
13511           mv conftest.$ac_objext conftstm.$ac_objext
13512           lt_save_LIBS="$LIBS"
13513           lt_save_CFLAGS="$CFLAGS"
13514           LIBS="conftstm.$ac_objext"
13515           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13516           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13517   (eval $ac_link) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13521             pipe_works=yes
13522           fi
13523           LIBS="$lt_save_LIBS"
13524           CFLAGS="$lt_save_CFLAGS"
13525         else
13526           echo "cannot find nm_test_func in $nlist" >&5
13527         fi
13528       else
13529         echo "cannot find nm_test_var in $nlist" >&5
13530       fi
13531     else
13532       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13533     fi
13534   else
13535     echo "$progname: failed program was:" >&5
13536     cat conftest.$ac_ext >&5
13537   fi
13538   rm -f conftest* conftst*
13539
13540   # Do not use the global_symbol_pipe unless it works.
13541   if test "$pipe_works" = yes; then
13542     break
13543   else
13544     lt_cv_sys_global_symbol_pipe=
13545   fi
13546 done
13547
13548 fi
13549
13550 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13551   lt_cv_sys_global_symbol_to_cdecl=
13552 fi
13553 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13554   { echo "$as_me:$LINENO: result: failed" >&5
13555 echo "${ECHO_T}failed" >&6; }
13556 else
13557   { echo "$as_me:$LINENO: result: ok" >&5
13558 echo "${ECHO_T}ok" >&6; }
13559 fi
13560
13561 { echo "$as_me:$LINENO: checking for objdir" >&5
13562 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13563 if test "${lt_cv_objdir+set}" = set; then
13564   echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566   rm -f .libs 2>/dev/null
13567 mkdir .libs 2>/dev/null
13568 if test -d .libs; then
13569   lt_cv_objdir=.libs
13570 else
13571   # MS-DOS does not allow filenames that begin with a dot.
13572   lt_cv_objdir=_libs
13573 fi
13574 rmdir .libs 2>/dev/null
13575 fi
13576 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13577 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13578 objdir=$lt_cv_objdir
13579
13580
13581
13582
13583
13584 case $host_os in
13585 aix3*)
13586   # AIX sometimes has problems with the GCC collect2 program.  For some
13587   # reason, if we set the COLLECT_NAMES environment variable, the problems
13588   # vanish in a puff of smoke.
13589   if test "X${COLLECT_NAMES+set}" != Xset; then
13590     COLLECT_NAMES=
13591     export COLLECT_NAMES
13592   fi
13593   ;;
13594 esac
13595
13596 # Sed substitution that helps us do robust quoting.  It backslashifies
13597 # metacharacters that are still active within double-quoted strings.
13598 Xsed='sed -e 1s/^X//'
13599 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13600
13601 # Same as above, but do not quote variable references.
13602 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13603
13604 # Sed substitution to delay expansion of an escaped shell variable in a
13605 # double_quote_subst'ed string.
13606 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13607
13608 # Sed substitution to avoid accidental globbing in evaled expressions
13609 no_glob_subst='s/\*/\\\*/g'
13610
13611 # Constants:
13612 rm="rm -f"
13613
13614 # Global variables:
13615 default_ofile=mklib
13616 can_build_shared=yes
13617
13618 # All known linkers require a `.a' archive for static linking (except MSVC,
13619 # which needs '.lib').
13620 libext=a
13621 ltmain="$ac_aux_dir/ltmain.sh"
13622 ofile="$default_ofile"
13623 with_gnu_ld="$lt_cv_prog_gnu_ld"
13624
13625 if test -n "$ac_tool_prefix"; then
13626   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13627 set dummy ${ac_tool_prefix}ar; ac_word=$2
13628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13630 if test "${ac_cv_prog_AR+set}" = set; then
13631   echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633   if test -n "$AR"; then
13634   ac_cv_prog_AR="$AR" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13638 do
13639   IFS=$as_save_IFS
13640   test -z "$as_dir" && as_dir=.
13641   for ac_exec_ext in '' $ac_executable_extensions; do
13642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13643     ac_cv_prog_AR="${ac_tool_prefix}ar"
13644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13645     break 2
13646   fi
13647 done
13648 done
13649 IFS=$as_save_IFS
13650
13651 fi
13652 fi
13653 AR=$ac_cv_prog_AR
13654 if test -n "$AR"; then
13655   { echo "$as_me:$LINENO: result: $AR" >&5
13656 echo "${ECHO_T}$AR" >&6; }
13657 else
13658   { echo "$as_me:$LINENO: result: no" >&5
13659 echo "${ECHO_T}no" >&6; }
13660 fi
13661
13662
13663 fi
13664 if test -z "$ac_cv_prog_AR"; then
13665   ac_ct_AR=$AR
13666   # Extract the first word of "ar", so it can be a program name with args.
13667 set dummy ar; ac_word=$2
13668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   if test -n "$ac_ct_AR"; then
13674   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13675 else
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13678 do
13679   IFS=$as_save_IFS
13680   test -z "$as_dir" && as_dir=.
13681   for ac_exec_ext in '' $ac_executable_extensions; do
13682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13683     ac_cv_prog_ac_ct_AR="ar"
13684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685     break 2
13686   fi
13687 done
13688 done
13689 IFS=$as_save_IFS
13690
13691 fi
13692 fi
13693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13694 if test -n "$ac_ct_AR"; then
13695   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13696 echo "${ECHO_T}$ac_ct_AR" >&6; }
13697 else
13698   { echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6; }
13700 fi
13701
13702   if test "x$ac_ct_AR" = x; then
13703     AR="false"
13704   else
13705     case $cross_compiling:$ac_tool_warned in
13706 yes:)
13707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13708 whose name does not start with the host triplet.  If you think this
13709 configuration is useful to you, please write to autoconf@gnu.org." >&5
13710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13711 whose name does not start with the host triplet.  If you think this
13712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13713 ac_tool_warned=yes ;;
13714 esac
13715     AR=$ac_ct_AR
13716   fi
13717 else
13718   AR="$ac_cv_prog_AR"
13719 fi
13720
13721 if test -n "$ac_tool_prefix"; then
13722   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13726 if test "${ac_cv_prog_RANLIB+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729   if test -n "$RANLIB"; then
13730   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735   IFS=$as_save_IFS
13736   test -z "$as_dir" && as_dir=.
13737   for ac_exec_ext in '' $ac_executable_extensions; do
13738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13739     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13741     break 2
13742   fi
13743 done
13744 done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 RANLIB=$ac_cv_prog_RANLIB
13750 if test -n "$RANLIB"; then
13751   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13752 echo "${ECHO_T}$RANLIB" >&6; }
13753 else
13754   { echo "$as_me:$LINENO: result: no" >&5
13755 echo "${ECHO_T}no" >&6; }
13756 fi
13757
13758
13759 fi
13760 if test -z "$ac_cv_prog_RANLIB"; then
13761   ac_ct_RANLIB=$RANLIB
13762   # Extract the first word of "ranlib", so it can be a program name with args.
13763 set dummy ranlib; ac_word=$2
13764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   if test -n "$ac_ct_RANLIB"; then
13770   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775   IFS=$as_save_IFS
13776   test -z "$as_dir" && as_dir=.
13777   for ac_exec_ext in '' $ac_executable_extensions; do
13778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13779     ac_cv_prog_ac_ct_RANLIB="ranlib"
13780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781     break 2
13782   fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi
13788 fi
13789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13790 if test -n "$ac_ct_RANLIB"; then
13791   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13793 else
13794   { echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6; }
13796 fi
13797
13798   if test "x$ac_ct_RANLIB" = x; then
13799     RANLIB=":"
13800   else
13801     case $cross_compiling:$ac_tool_warned in
13802 yes:)
13803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13804 whose name does not start with the host triplet.  If you think this
13805 configuration is useful to you, please write to autoconf@gnu.org." >&5
13806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13807 whose name does not start with the host triplet.  If you think this
13808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13809 ac_tool_warned=yes ;;
13810 esac
13811     RANLIB=$ac_ct_RANLIB
13812   fi
13813 else
13814   RANLIB="$ac_cv_prog_RANLIB"
13815 fi
13816
13817 if test -n "$ac_tool_prefix"; then
13818   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13819 set dummy ${ac_tool_prefix}strip; ac_word=$2
13820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13822 if test "${ac_cv_prog_STRIP+set}" = set; then
13823   echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825   if test -n "$STRIP"; then
13826   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13827 else
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13830 do
13831   IFS=$as_save_IFS
13832   test -z "$as_dir" && as_dir=.
13833   for ac_exec_ext in '' $ac_executable_extensions; do
13834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13835     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13837     break 2
13838   fi
13839 done
13840 done
13841 IFS=$as_save_IFS
13842
13843 fi
13844 fi
13845 STRIP=$ac_cv_prog_STRIP
13846 if test -n "$STRIP"; then
13847   { echo "$as_me:$LINENO: result: $STRIP" >&5
13848 echo "${ECHO_T}$STRIP" >&6; }
13849 else
13850   { echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6; }
13852 fi
13853
13854
13855 fi
13856 if test -z "$ac_cv_prog_STRIP"; then
13857   ac_ct_STRIP=$STRIP
13858   # Extract the first word of "strip", so it can be a program name with args.
13859 set dummy strip; ac_word=$2
13860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   if test -n "$ac_ct_STRIP"; then
13866   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13870 do
13871   IFS=$as_save_IFS
13872   test -z "$as_dir" && as_dir=.
13873   for ac_exec_ext in '' $ac_executable_extensions; do
13874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13875     ac_cv_prog_ac_ct_STRIP="strip"
13876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877     break 2
13878   fi
13879 done
13880 done
13881 IFS=$as_save_IFS
13882
13883 fi
13884 fi
13885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13886 if test -n "$ac_ct_STRIP"; then
13887   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13888 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13889 else
13890   { echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6; }
13892 fi
13893
13894   if test "x$ac_ct_STRIP" = x; then
13895     STRIP=":"
13896   else
13897     case $cross_compiling:$ac_tool_warned in
13898 yes:)
13899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13900 whose name does not start with the host triplet.  If you think this
13901 configuration is useful to you, please write to autoconf@gnu.org." >&5
13902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13903 whose name does not start with the host triplet.  If you think this
13904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13905 ac_tool_warned=yes ;;
13906 esac
13907     STRIP=$ac_ct_STRIP
13908   fi
13909 else
13910   STRIP="$ac_cv_prog_STRIP"
13911 fi
13912
13913
13914 old_CC="$CC"
13915 old_CFLAGS="$CFLAGS"
13916
13917 # Set sane defaults for various variables
13918 test -z "$AR" && AR=ar
13919 test -z "$AR_FLAGS" && AR_FLAGS=cru
13920 test -z "$AS" && AS=as
13921 test -z "$CC" && CC=cc
13922 test -z "$LTCC" && LTCC=$CC
13923 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13924 test -z "$DLLTOOL" && DLLTOOL=dlltool
13925 test -z "$LD" && LD=ld
13926 test -z "$LN_S" && LN_S="ln -s"
13927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13928 test -z "$NM" && NM=nm
13929 test -z "$SED" && SED=sed
13930 test -z "$OBJDUMP" && OBJDUMP=objdump
13931 test -z "$RANLIB" && RANLIB=:
13932 test -z "$STRIP" && STRIP=:
13933 test -z "$ac_objext" && ac_objext=o
13934
13935 # Determine commands to create old-style static archives.
13936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13937 old_postinstall_cmds='chmod 644 $oldlib'
13938 old_postuninstall_cmds=
13939
13940 if test -n "$RANLIB"; then
13941   case $host_os in
13942   openbsd*)
13943     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13944     ;;
13945   *)
13946     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13947     ;;
13948   esac
13949   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13950 fi
13951
13952 for cc_temp in $compiler""; do
13953   case $cc_temp in
13954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13956     \-*) ;;
13957     *) break;;
13958   esac
13959 done
13960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13961
13962
13963 # Only perform the check for file, if the check method requires it
13964 case $deplibs_check_method in
13965 file_magic*)
13966   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13967     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13968 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13969 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13970   echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972   case $MAGIC_CMD in
13973 [\\/*] |  ?:[\\/]*)
13974   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13975   ;;
13976 *)
13977   lt_save_MAGIC_CMD="$MAGIC_CMD"
13978   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13979   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13980   for ac_dir in $ac_dummy; do
13981     IFS="$lt_save_ifs"
13982     test -z "$ac_dir" && ac_dir=.
13983     if test -f $ac_dir/${ac_tool_prefix}file; then
13984       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13985       if test -n "$file_magic_test_file"; then
13986         case $deplibs_check_method in
13987         "file_magic "*)
13988           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13989           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13990           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13991             $EGREP "$file_magic_regex" > /dev/null; then
13992             :
13993           else
13994             cat <<EOF 1>&2
13995
13996 *** Warning: the command libtool uses to detect shared libraries,
13997 *** $file_magic_cmd, produces output that libtool cannot recognize.
13998 *** The result is that libtool may fail to recognize shared libraries
13999 *** as such.  This will affect the creation of libtool libraries that
14000 *** depend on shared libraries, but programs linked with such libtool
14001 *** libraries will work regardless of this problem.  Nevertheless, you
14002 *** may want to report the problem to your system manager and/or to
14003 *** bug-libtool@gnu.org
14004
14005 EOF
14006           fi ;;
14007         esac
14008       fi
14009       break
14010     fi
14011   done
14012   IFS="$lt_save_ifs"
14013   MAGIC_CMD="$lt_save_MAGIC_CMD"
14014   ;;
14015 esac
14016 fi
14017
14018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14019 if test -n "$MAGIC_CMD"; then
14020   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14021 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14022 else
14023   { echo "$as_me:$LINENO: result: no" >&5
14024 echo "${ECHO_T}no" >&6; }
14025 fi
14026
14027 if test -z "$lt_cv_path_MAGIC_CMD"; then
14028   if test -n "$ac_tool_prefix"; then
14029     { echo "$as_me:$LINENO: checking for file" >&5
14030 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   case $MAGIC_CMD in
14035 [\\/*] |  ?:[\\/]*)
14036   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14037   ;;
14038 *)
14039   lt_save_MAGIC_CMD="$MAGIC_CMD"
14040   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14041   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14042   for ac_dir in $ac_dummy; do
14043     IFS="$lt_save_ifs"
14044     test -z "$ac_dir" && ac_dir=.
14045     if test -f $ac_dir/file; then
14046       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14047       if test -n "$file_magic_test_file"; then
14048         case $deplibs_check_method in
14049         "file_magic "*)
14050           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14051           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14052           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14053             $EGREP "$file_magic_regex" > /dev/null; then
14054             :
14055           else
14056             cat <<EOF 1>&2
14057
14058 *** Warning: the command libtool uses to detect shared libraries,
14059 *** $file_magic_cmd, produces output that libtool cannot recognize.
14060 *** The result is that libtool may fail to recognize shared libraries
14061 *** as such.  This will affect the creation of libtool libraries that
14062 *** depend on shared libraries, but programs linked with such libtool
14063 *** libraries will work regardless of this problem.  Nevertheless, you
14064 *** may want to report the problem to your system manager and/or to
14065 *** bug-libtool@gnu.org
14066
14067 EOF
14068           fi ;;
14069         esac
14070       fi
14071       break
14072     fi
14073   done
14074   IFS="$lt_save_ifs"
14075   MAGIC_CMD="$lt_save_MAGIC_CMD"
14076   ;;
14077 esac
14078 fi
14079
14080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14081 if test -n "$MAGIC_CMD"; then
14082   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14083 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14084 else
14085   { echo "$as_me:$LINENO: result: no" >&5
14086 echo "${ECHO_T}no" >&6; }
14087 fi
14088
14089   else
14090     MAGIC_CMD=:
14091   fi
14092 fi
14093
14094   fi
14095   ;;
14096 esac
14097
14098 enable_dlopen=yes
14099 enable_win32_dll=no
14100
14101 # Check whether --enable-libtool-lock was given.
14102 if test "${enable_libtool_lock+set}" = set; then
14103   enableval=$enable_libtool_lock;
14104 fi
14105
14106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14107
14108
14109 # Check whether --with-pic was given.
14110 if test "${with_pic+set}" = set; then
14111   withval=$with_pic; pic_mode="$withval"
14112 else
14113   pic_mode=default
14114 fi
14115
14116 test -z "$pic_mode" && pic_mode=default
14117
14118 # Use C for the default configuration in the libtool script
14119 tagname=
14120 lt_save_CC="$CC"
14121 ac_ext=c
14122 ac_cpp='$CPP $CPPFLAGS'
14123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126
14127
14128 # Source file extension for C test sources.
14129 ac_ext=c
14130
14131 # Object file extension for compiled C test sources.
14132 objext=o
14133 objext=$objext
14134
14135 # Code to be used in simple compile tests
14136 lt_simple_compile_test_code="int some_variable = 0;\n"
14137
14138 # Code to be used in simple link tests
14139 lt_simple_link_test_code='int main(){return(0);}\n'
14140
14141
14142 # If no C compiler was specified, use CC.
14143 LTCC=${LTCC-"$CC"}
14144
14145 # If no C compiler flags were specified, use CFLAGS.
14146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14147
14148 # Allow CC to be a program name with arguments.
14149 compiler=$CC
14150
14151
14152 # save warnings/boilerplate of simple test code
14153 ac_outfile=conftest.$ac_objext
14154 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14156 _lt_compiler_boilerplate=`cat conftest.err`
14157 $rm conftest*
14158
14159 ac_outfile=conftest.$ac_objext
14160 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14162 _lt_linker_boilerplate=`cat conftest.err`
14163 $rm conftest*
14164
14165
14166
14167 lt_prog_compiler_no_builtin_flag=
14168
14169 if test "$GCC" = yes; then
14170   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14171
14172
14173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178   lt_cv_prog_compiler_rtti_exceptions=no
14179   ac_outfile=conftest.$ac_objext
14180    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14181    lt_compiler_flag="-fno-rtti -fno-exceptions"
14182    # Insert the option either (1) after the last *FLAGS variable, or
14183    # (2) before a word containing "conftest.", or (3) at the end.
14184    # Note that $ac_compile itself does not contain backslashes and begins
14185    # with a dollar sign (not a hyphen), so the echo should work correctly.
14186    # The option is referenced via a variable to avoid confusing sed.
14187    lt_compile=`echo "$ac_compile" | $SED \
14188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190    -e 's:$: $lt_compiler_flag:'`
14191    (eval echo "\"\$as_me:14191: $lt_compile\"" >&5)
14192    (eval "$lt_compile" 2>conftest.err)
14193    ac_status=$?
14194    cat conftest.err >&5
14195    echo "$as_me:14195: \$? = $ac_status" >&5
14196    if (exit $ac_status) && test -s "$ac_outfile"; then
14197      # The compiler can only warn and ignore the option if not recognized
14198      # So say no if there are warnings other than the usual output.
14199      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14200      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14201      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14202        lt_cv_prog_compiler_rtti_exceptions=yes
14203      fi
14204    fi
14205    $rm conftest*
14206
14207 fi
14208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14210
14211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14212     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14213 else
14214     :
14215 fi
14216
14217 fi
14218
14219 lt_prog_compiler_wl=
14220 lt_prog_compiler_pic=
14221 lt_prog_compiler_static=
14222
14223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14225
14226   if test "$GCC" = yes; then
14227     lt_prog_compiler_wl='-Wl,'
14228     lt_prog_compiler_static='-static'
14229
14230     case $host_os in
14231       aix*)
14232       # All AIX code is PIC.
14233       if test "$host_cpu" = ia64; then
14234         # AIX 5 now supports IA64 processor
14235         lt_prog_compiler_static='-Bstatic'
14236       fi
14237       ;;
14238
14239     amigaos*)
14240       # FIXME: we need at least 68020 code to build shared libraries, but
14241       # adding the `-m68020' flag to GCC prevents building anything better,
14242       # like `-m68040'.
14243       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14244       ;;
14245
14246     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14247       # PIC is the default for these OSes.
14248       ;;
14249
14250     mingw* | pw32* | os2*)
14251       # This hack is so that the source file can tell whether it is being
14252       # built for inclusion in a dll (and should export symbols for example).
14253       lt_prog_compiler_pic='-DDLL_EXPORT'
14254       ;;
14255
14256     darwin* | rhapsody*)
14257       # PIC is the default on this platform
14258       # Common symbols not allowed in MH_DYLIB files
14259       lt_prog_compiler_pic='-fno-common'
14260       ;;
14261
14262     interix3*)
14263       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14264       # Instead, we relocate shared libraries at runtime.
14265       ;;
14266
14267     msdosdjgpp*)
14268       # Just because we use GCC doesn't mean we suddenly get shared libraries
14269       # on systems that don't support them.
14270       lt_prog_compiler_can_build_shared=no
14271       enable_shared=no
14272       ;;
14273
14274     sysv4*MP*)
14275       if test -d /usr/nec; then
14276         lt_prog_compiler_pic=-Kconform_pic
14277       fi
14278       ;;
14279
14280     hpux*)
14281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14282       # not for PA HP-UX.
14283       case $host_cpu in
14284       hppa*64*|ia64*)
14285         # +Z the default
14286         ;;
14287       *)
14288         lt_prog_compiler_pic='-fPIC'
14289         ;;
14290       esac
14291       ;;
14292
14293     *)
14294       lt_prog_compiler_pic='-fPIC'
14295       ;;
14296     esac
14297   else
14298     # PORTME Check for flag to pass linker flags through the system compiler.
14299     case $host_os in
14300     aix*)
14301       lt_prog_compiler_wl='-Wl,'
14302       if test "$host_cpu" = ia64; then
14303         # AIX 5 now supports IA64 processor
14304         lt_prog_compiler_static='-Bstatic'
14305       else
14306         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14307       fi
14308       ;;
14309       darwin*)
14310         # PIC is the default on this platform
14311         # Common symbols not allowed in MH_DYLIB files
14312        case $cc_basename in
14313          xlc*)
14314          lt_prog_compiler_pic='-qnocommon'
14315          lt_prog_compiler_wl='-Wl,'
14316          ;;
14317        esac
14318        ;;
14319
14320     mingw* | pw32* | os2*)
14321       # This hack is so that the source file can tell whether it is being
14322       # built for inclusion in a dll (and should export symbols for example).
14323       lt_prog_compiler_pic='-DDLL_EXPORT'
14324       ;;
14325
14326     hpux9* | hpux10* | hpux11*)
14327       lt_prog_compiler_wl='-Wl,'
14328       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14329       # not for PA HP-UX.
14330       case $host_cpu in
14331       hppa*64*|ia64*)
14332         # +Z the default
14333         ;;
14334       *)
14335         lt_prog_compiler_pic='+Z'
14336         ;;
14337       esac
14338       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14339       lt_prog_compiler_static='${wl}-a ${wl}archive'
14340       ;;
14341
14342     irix5* | irix6* | nonstopux*)
14343       lt_prog_compiler_wl='-Wl,'
14344       # PIC (with -KPIC) is the default.
14345       lt_prog_compiler_static='-non_shared'
14346       ;;
14347
14348     newsos6)
14349       lt_prog_compiler_pic='-KPIC'
14350       lt_prog_compiler_static='-Bstatic'
14351       ;;
14352
14353     linux*)
14354       case $cc_basename in
14355       icc* | ecc*)
14356         lt_prog_compiler_wl='-Wl,'
14357         lt_prog_compiler_pic='-KPIC'
14358         lt_prog_compiler_static='-static'
14359         ;;
14360       pgcc* | pgf77* | pgf90* | pgf95*)
14361         # Portland Group compilers (*not* the Pentium gcc compiler,
14362         # which looks to be a dead project)
14363         lt_prog_compiler_wl='-Wl,'
14364         lt_prog_compiler_pic='-fpic'
14365         lt_prog_compiler_static='-Bstatic'
14366         ;;
14367       ccc*)
14368         lt_prog_compiler_wl='-Wl,'
14369         # All Alpha code is PIC.
14370         lt_prog_compiler_static='-non_shared'
14371         ;;
14372       esac
14373       ;;
14374
14375     osf3* | osf4* | osf5*)
14376       lt_prog_compiler_wl='-Wl,'
14377       # All OSF/1 code is PIC.
14378       lt_prog_compiler_static='-non_shared'
14379       ;;
14380
14381     solaris*)
14382       lt_prog_compiler_pic='-KPIC'
14383       lt_prog_compiler_static='-Bstatic'
14384       case $cc_basename in
14385       f77* | f90* | f95*)
14386         lt_prog_compiler_wl='-Qoption ld ';;
14387       *)
14388         lt_prog_compiler_wl='-Wl,';;
14389       esac
14390       ;;
14391
14392     sunos4*)
14393       lt_prog_compiler_wl='-Qoption ld '
14394       lt_prog_compiler_pic='-PIC'
14395       lt_prog_compiler_static='-Bstatic'
14396       ;;
14397
14398     sysv4 | sysv4.2uw2* | sysv4.3*)
14399       lt_prog_compiler_wl='-Wl,'
14400       lt_prog_compiler_pic='-KPIC'
14401       lt_prog_compiler_static='-Bstatic'
14402       ;;
14403
14404     sysv4*MP*)
14405       if test -d /usr/nec ;then
14406         lt_prog_compiler_pic='-Kconform_pic'
14407         lt_prog_compiler_static='-Bstatic'
14408       fi
14409       ;;
14410
14411     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14412       lt_prog_compiler_wl='-Wl,'
14413       lt_prog_compiler_pic='-KPIC'
14414       lt_prog_compiler_static='-Bstatic'
14415       ;;
14416
14417     unicos*)
14418       lt_prog_compiler_wl='-Wl,'
14419       lt_prog_compiler_can_build_shared=no
14420       ;;
14421
14422     uts4*)
14423       lt_prog_compiler_pic='-pic'
14424       lt_prog_compiler_static='-Bstatic'
14425       ;;
14426
14427     *)
14428       lt_prog_compiler_can_build_shared=no
14429       ;;
14430     esac
14431   fi
14432
14433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14434 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14435
14436 #
14437 # Check to make sure the PIC flag actually works.
14438 #
14439 if test -n "$lt_prog_compiler_pic"; then
14440
14441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14443 if test "${lt_prog_compiler_pic_works+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   lt_prog_compiler_pic_works=no
14447   ac_outfile=conftest.$ac_objext
14448    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14450    # Insert the option either (1) after the last *FLAGS variable, or
14451    # (2) before a word containing "conftest.", or (3) at the end.
14452    # Note that $ac_compile itself does not contain backslashes and begins
14453    # with a dollar sign (not a hyphen), so the echo should work correctly.
14454    # The option is referenced via a variable to avoid confusing sed.
14455    lt_compile=`echo "$ac_compile" | $SED \
14456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458    -e 's:$: $lt_compiler_flag:'`
14459    (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
14460    (eval "$lt_compile" 2>conftest.err)
14461    ac_status=$?
14462    cat conftest.err >&5
14463    echo "$as_me:14463: \$? = $ac_status" >&5
14464    if (exit $ac_status) && test -s "$ac_outfile"; then
14465      # The compiler can only warn and ignore the option if not recognized
14466      # So say no if there are warnings other than the usual output.
14467      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470        lt_prog_compiler_pic_works=yes
14471      fi
14472    fi
14473    $rm conftest*
14474
14475 fi
14476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14477 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14478
14479 if test x"$lt_prog_compiler_pic_works" = xyes; then
14480     case $lt_prog_compiler_pic in
14481      "" | " "*) ;;
14482      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14483      esac
14484 else
14485     lt_prog_compiler_pic=
14486      lt_prog_compiler_can_build_shared=no
14487 fi
14488
14489 fi
14490 case $host_os in
14491   # For platforms which do not support PIC, -DPIC is meaningless:
14492   *djgpp*)
14493     lt_prog_compiler_pic=
14494     ;;
14495   *)
14496     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14497     ;;
14498 esac
14499
14500 #
14501 # Check to make sure the static flag actually works.
14502 #
14503 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14506 if test "${lt_prog_compiler_static_works+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   lt_prog_compiler_static_works=no
14510    save_LDFLAGS="$LDFLAGS"
14511    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14512    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14513    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14514      # The linker can only warn and ignore the option if not recognized
14515      # So say no if there are warnings
14516      if test -s conftest.err; then
14517        # Append any errors to the config.log.
14518        cat conftest.err 1>&5
14519        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14520        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521        if diff conftest.exp conftest.er2 >/dev/null; then
14522          lt_prog_compiler_static_works=yes
14523        fi
14524      else
14525        lt_prog_compiler_static_works=yes
14526      fi
14527    fi
14528    $rm conftest*
14529    LDFLAGS="$save_LDFLAGS"
14530
14531 fi
14532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14533 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14534
14535 if test x"$lt_prog_compiler_static_works" = xyes; then
14536     :
14537 else
14538     lt_prog_compiler_static=
14539 fi
14540
14541
14542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   lt_cv_prog_compiler_c_o=no
14548    $rm -r conftest 2>/dev/null
14549    mkdir conftest
14550    cd conftest
14551    mkdir out
14552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14553
14554    lt_compiler_flag="-o out/conftest2.$ac_objext"
14555    # Insert the option either (1) after the last *FLAGS variable, or
14556    # (2) before a word containing "conftest.", or (3) at the end.
14557    # Note that $ac_compile itself does not contain backslashes and begins
14558    # with a dollar sign (not a hyphen), so the echo should work correctly.
14559    lt_compile=`echo "$ac_compile" | $SED \
14560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562    -e 's:$: $lt_compiler_flag:'`
14563    (eval echo "\"\$as_me:14563: $lt_compile\"" >&5)
14564    (eval "$lt_compile" 2>out/conftest.err)
14565    ac_status=$?
14566    cat out/conftest.err >&5
14567    echo "$as_me:14567: \$? = $ac_status" >&5
14568    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14569    then
14570      # The compiler can only warn and ignore the option if not recognized
14571      # So say no if there are warnings
14572      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14573      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14574      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14575        lt_cv_prog_compiler_c_o=yes
14576      fi
14577    fi
14578    chmod u+w . 2>&5
14579    $rm conftest*
14580    # SGI C++ compiler will create directory out/ii_files/ for
14581    # template instantiation
14582    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14583    $rm out/* && rmdir out
14584    cd ..
14585    rmdir conftest
14586    $rm conftest*
14587
14588 fi
14589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14591
14592
14593 hard_links="nottested"
14594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14595   # do not overwrite the value of need_locks provided by the user
14596   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14598   hard_links=yes
14599   $rm conftest*
14600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14601   touch conftest.a
14602   ln conftest.a conftest.b 2>&5 || hard_links=no
14603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14604   { echo "$as_me:$LINENO: result: $hard_links" >&5
14605 echo "${ECHO_T}$hard_links" >&6; }
14606   if test "$hard_links" = no; then
14607     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14609     need_locks=warn
14610   fi
14611 else
14612   need_locks=no
14613 fi
14614
14615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14617
14618   runpath_var=
14619   allow_undefined_flag=
14620   enable_shared_with_static_runtimes=no
14621   archive_cmds=
14622   archive_expsym_cmds=
14623   old_archive_From_new_cmds=
14624   old_archive_from_expsyms_cmds=
14625   export_dynamic_flag_spec=
14626   whole_archive_flag_spec=
14627   thread_safe_flag_spec=
14628   hardcode_libdir_flag_spec=
14629   hardcode_libdir_flag_spec_ld=
14630   hardcode_libdir_separator=
14631   hardcode_direct=no
14632   hardcode_minus_L=no
14633   hardcode_shlibpath_var=unsupported
14634   link_all_deplibs=unknown
14635   hardcode_automatic=no
14636   module_cmds=
14637   module_expsym_cmds=
14638   always_export_symbols=no
14639   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14640   # include_expsyms should be a list of space-separated symbols to be *always*
14641   # included in the symbol list
14642   include_expsyms=
14643   # exclude_expsyms can be an extended regexp of symbols to exclude
14644   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14645   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14646   # as well as any symbol that contains `d'.
14647   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14648   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14649   # platforms (ab)use it in PIC code, but their linkers get confused if
14650   # the symbol is explicitly referenced.  Since portable code cannot
14651   # rely on this symbol name, it's probably fine to never include it in
14652   # preloaded symbol tables.
14653   extract_expsyms_cmds=
14654   # Just being paranoid about ensuring that cc_basename is set.
14655   for cc_temp in $compiler""; do
14656   case $cc_temp in
14657     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14658     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14659     \-*) ;;
14660     *) break;;
14661   esac
14662 done
14663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14664
14665   case $host_os in
14666   cygwin* | mingw* | pw32*)
14667     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14668     # When not using gcc, we currently assume that we are using
14669     # Microsoft Visual C++.
14670     if test "$GCC" != yes; then
14671       with_gnu_ld=no
14672     fi
14673     ;;
14674   interix*)
14675     # we just hope/assume this is gcc and not c89 (= MSVC++)
14676     with_gnu_ld=yes
14677     ;;
14678   openbsd*)
14679     with_gnu_ld=no
14680     ;;
14681   esac
14682
14683   ld_shlibs=yes
14684   if test "$with_gnu_ld" = yes; then
14685     # If archive_cmds runs LD, not CC, wlarc should be empty
14686     wlarc='${wl}'
14687
14688     # Set some defaults for GNU ld with shared library support. These
14689     # are reset later if shared libraries are not supported. Putting them
14690     # here allows them to be overridden if necessary.
14691     runpath_var=LD_RUN_PATH
14692     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14693     export_dynamic_flag_spec='${wl}--export-dynamic'
14694     # ancient GNU ld didn't support --whole-archive et. al.
14695     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14696         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14697       else
14698         whole_archive_flag_spec=
14699     fi
14700     supports_anon_versioning=no
14701     case `$LD -v 2>/dev/null` in
14702       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14703       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14704       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14705       *\ 2.11.*) ;; # other 2.11 versions
14706       *) supports_anon_versioning=yes ;;
14707     esac
14708
14709     # See if GNU ld supports shared libraries.
14710     case $host_os in
14711     aix3* | aix4* | aix5*)
14712       # On AIX/PPC, the GNU linker is very broken
14713       if test "$host_cpu" != ia64; then
14714         ld_shlibs=no
14715         cat <<EOF 1>&2
14716
14717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14718 *** to be unable to reliably create shared libraries on AIX.
14719 *** Therefore, libtool is disabling shared libraries support.  If you
14720 *** really care for shared libraries, you may want to modify your PATH
14721 *** so that a non-GNU linker is found, and then restart.
14722
14723 EOF
14724       fi
14725       ;;
14726
14727     amigaos*)
14728       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)'
14729       hardcode_libdir_flag_spec='-L$libdir'
14730       hardcode_minus_L=yes
14731
14732       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14733       # that the semantics of dynamic libraries on AmigaOS, at least up
14734       # to version 4, is to share data among multiple programs linked
14735       # with the same dynamic library.  Since this doesn't match the
14736       # behavior of shared libraries on other platforms, we can't use
14737       # them.
14738       ld_shlibs=no
14739       ;;
14740
14741     beos*)
14742       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743         allow_undefined_flag=unsupported
14744         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745         # support --undefined.  This deserves some investigation.  FIXME
14746         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747       else
14748         ld_shlibs=no
14749       fi
14750       ;;
14751
14752     cygwin* | mingw* | pw32*)
14753       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754       # as there is no search path for DLLs.
14755       hardcode_libdir_flag_spec='-L$libdir'
14756       allow_undefined_flag=unsupported
14757       always_export_symbols=no
14758       enable_shared_with_static_runtimes=yes
14759       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14760
14761       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14762         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14763         # If the export-symbols file already is a .def file (1st line
14764         # is EXPORTS), use it as is; otherwise, prepend...
14765         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14766           cp $export_symbols $output_objdir/$soname.def;
14767         else
14768           echo EXPORTS > $output_objdir/$soname.def;
14769           cat $export_symbols >> $output_objdir/$soname.def;
14770         fi~
14771         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14772       else
14773         ld_shlibs=no
14774       fi
14775       ;;
14776
14777     interix3*)
14778       hardcode_direct=no
14779       hardcode_shlibpath_var=no
14780       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14781       export_dynamic_flag_spec='${wl}-E'
14782       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14783       # Instead, shared libraries are loaded at an image base (0x10000000 by
14784       # default) and relocated if they conflict, which is a slow very memory
14785       # consuming and fragmenting process.  To avoid this, we pick a random,
14786       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14787       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14788       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14789       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'
14790       ;;
14791
14792     linux*)
14793       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794         tmp_addflag=
14795         case $cc_basename,$host_cpu in
14796         pgcc*)                          # Portland Group C compiler
14797           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'
14798           tmp_addflag=' $pic_flag'
14799           ;;
14800         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14801           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'
14802           tmp_addflag=' $pic_flag -Mnomain' ;;
14803         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14804           tmp_addflag=' -i_dynamic' ;;
14805         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14806           tmp_addflag=' -i_dynamic -nofor_main' ;;
14807         ifc* | ifort*)                  # Intel Fortran compiler
14808           tmp_addflag=' -nofor_main' ;;
14809         esac
14810         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14811
14812         if test $supports_anon_versioning = yes; then
14813           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14814   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14815   $echo "local: *; };" >> $output_objdir/$libname.ver~
14816           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14817         fi
14818       else
14819         ld_shlibs=no
14820       fi
14821       ;;
14822
14823     netbsd*)
14824       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14825         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14826         wlarc=
14827       else
14828         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14829         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14830       fi
14831       ;;
14832
14833     solaris*)
14834       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14835         ld_shlibs=no
14836         cat <<EOF 1>&2
14837
14838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14839 *** create shared libraries on Solaris systems.  Therefore, libtool
14840 *** is disabling shared libraries support.  We urge you to upgrade GNU
14841 *** binutils to release 2.9.1 or newer.  Another option is to modify
14842 *** your PATH or compiler configuration so that the native linker is
14843 *** used, and then restart.
14844
14845 EOF
14846       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14849       else
14850         ld_shlibs=no
14851       fi
14852       ;;
14853
14854     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14855       case `$LD -v 2>&1` in
14856         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14857         ld_shlibs=no
14858         cat <<_LT_EOF 1>&2
14859
14860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14861 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14862 *** is disabling shared libraries support.  We urge you to upgrade GNU
14863 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14864 *** your PATH or compiler configuration so that the native linker is
14865 *** used, and then restart.
14866
14867 _LT_EOF
14868         ;;
14869         *)
14870           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14871             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14872             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14873             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14874           else
14875             ld_shlibs=no
14876           fi
14877         ;;
14878       esac
14879       ;;
14880
14881     sunos4*)
14882       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14883       wlarc=
14884       hardcode_direct=yes
14885       hardcode_shlibpath_var=no
14886       ;;
14887
14888     *)
14889       if $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     esac
14897
14898     if test "$ld_shlibs" = no; then
14899       runpath_var=
14900       hardcode_libdir_flag_spec=
14901       export_dynamic_flag_spec=
14902       whole_archive_flag_spec=
14903     fi
14904   else
14905     # PORTME fill in a description of your system's linker (not GNU ld)
14906     case $host_os in
14907     aix3*)
14908       allow_undefined_flag=unsupported
14909       always_export_symbols=yes
14910       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'
14911       # Note: this linker hardcodes the directories in LIBPATH if there
14912       # are no directories specified by -L.
14913       hardcode_minus_L=yes
14914       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14915         # Neither direct hardcoding nor static linking is supported with a
14916         # broken collect2.
14917         hardcode_direct=unsupported
14918       fi
14919       ;;
14920
14921     aix4* | aix5*)
14922       if test "$host_cpu" = ia64; then
14923         # On IA64, the linker does run time linking by default, so we don't
14924         # have to do anything special.
14925         aix_use_runtimelinking=no
14926         exp_sym_flag='-Bexport'
14927         no_entry_flag=""
14928       else
14929         # If we're using GNU nm, then we don't want the "-C" option.
14930         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14931         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14932           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'
14933         else
14934           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'
14935         fi
14936         aix_use_runtimelinking=no
14937
14938         # Test if we are trying to use run time linking or normal
14939         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14940         # need to do runtime linking.
14941         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14942           for ld_flag in $LDFLAGS; do
14943           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14944             aix_use_runtimelinking=yes
14945             break
14946           fi
14947           done
14948           ;;
14949         esac
14950
14951         exp_sym_flag='-bexport'
14952         no_entry_flag='-bnoentry'
14953       fi
14954
14955       # When large executables or shared objects are built, AIX ld can
14956       # have problems creating the table of contents.  If linking a library
14957       # or program results in "error TOC overflow" add -mminimal-toc to
14958       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14959       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14960
14961       archive_cmds=''
14962       hardcode_direct=yes
14963       hardcode_libdir_separator=':'
14964       link_all_deplibs=yes
14965
14966       if test "$GCC" = yes; then
14967         case $host_os in aix4.[012]|aix4.[012].*)
14968         # We only want to do this on AIX 4.2 and lower, the check
14969         # below for broken collect2 doesn't work under 4.3+
14970           collect2name=`${CC} -print-prog-name=collect2`
14971           if test -f "$collect2name" && \
14972            strings "$collect2name" | grep resolve_lib_name >/dev/null
14973           then
14974           # We have reworked collect2
14975           hardcode_direct=yes
14976           else
14977           # We have old collect2
14978           hardcode_direct=unsupported
14979           # It fails to find uninstalled libraries when the uninstalled
14980           # path is not listed in the libpath.  Setting hardcode_minus_L
14981           # to unsupported forces relinking
14982           hardcode_minus_L=yes
14983           hardcode_libdir_flag_spec='-L$libdir'
14984           hardcode_libdir_separator=
14985           fi
14986           ;;
14987         esac
14988         shared_flag='-shared'
14989         if test "$aix_use_runtimelinking" = yes; then
14990           shared_flag="$shared_flag "'${wl}-G'
14991         fi
14992       else
14993         # not using gcc
14994         if test "$host_cpu" = ia64; then
14995         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14996         # chokes on -Wl,-G. The following line is correct:
14997           shared_flag='-G'
14998         else
14999           if test "$aix_use_runtimelinking" = yes; then
15000             shared_flag='${wl}-G'
15001           else
15002             shared_flag='${wl}-bM:SRE'
15003           fi
15004         fi
15005       fi
15006
15007       # It seems that -bexpall does not export symbols beginning with
15008       # underscore (_), so it is better to generate a list of symbols to export.
15009       always_export_symbols=yes
15010       if test "$aix_use_runtimelinking" = yes; then
15011         # Warning - without using the other runtime loading flags (-brtl),
15012         # -berok will link without error, but may produce a broken library.
15013         allow_undefined_flag='-berok'
15014        # Determine the default libpath from the value encoded in an empty executable.
15015        cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022 int
15023 main ()
15024 {
15025
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034   *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037   (eval "$ac_link") 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } &&
15044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045   { (case "(($ac_try" in
15046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047   *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050   (eval "$ac_try") 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; } &&
15054          { ac_try='test -s conftest$ac_exeext'
15055   { (case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_try") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; }; then
15064
15065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15066 }'`
15067 # Check for a 64-bit object if we didn't find anything.
15068 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; }
15069 }'`; fi
15070 else
15071   echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074
15075 fi
15076
15077 rm -f core conftest.err conftest.$ac_objext \
15078       conftest$ac_exeext conftest.$ac_ext
15079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15080
15081        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15082         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"
15083        else
15084         if test "$host_cpu" = ia64; then
15085           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15086           allow_undefined_flag="-z nodefs"
15087           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"
15088         else
15089          # Determine the default libpath from the value encoded in an empty executable.
15090          cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096
15097 int
15098 main ()
15099 {
15100
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109   *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112   (eval "$ac_link") 2>conftest.er1
15113   ac_status=$?
15114   grep -v '^ *+' conftest.er1 >conftest.err
15115   rm -f conftest.er1
15116   cat conftest.err >&5
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120   { (case "(($ac_try" in
15121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122   *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125   (eval "$ac_try") 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; } &&
15129          { ac_try='test -s conftest$ac_exeext'
15130   { (case "(($ac_try" in
15131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132   *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135   (eval "$ac_try") 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; }; then
15139
15140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15141 }'`
15142 # Check for a 64-bit object if we didn't find anything.
15143 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; }
15144 }'`; fi
15145 else
15146   echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149
15150 fi
15151
15152 rm -f core conftest.err conftest.$ac_objext \
15153       conftest$ac_exeext conftest.$ac_ext
15154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15155
15156          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15157           # Warning - without using the other run time loading flags,
15158           # -berok will link without error, but may produce a broken library.
15159           no_undefined_flag=' ${wl}-bernotok'
15160           allow_undefined_flag=' ${wl}-berok'
15161           # Exported symbols can be pulled into shared objects from archives
15162           whole_archive_flag_spec='$convenience'
15163           archive_cmds_need_lc=yes
15164           # This is similar to how AIX traditionally builds its shared libraries.
15165           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'
15166         fi
15167       fi
15168       ;;
15169
15170     amigaos*)
15171       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)'
15172       hardcode_libdir_flag_spec='-L$libdir'
15173       hardcode_minus_L=yes
15174       # see comment about different semantics on the GNU ld section
15175       ld_shlibs=no
15176       ;;
15177
15178     bsdi[45]*)
15179       export_dynamic_flag_spec=-rdynamic
15180       ;;
15181
15182     cygwin* | mingw* | pw32*)
15183       # When not using gcc, we currently assume that we are using
15184       # Microsoft Visual C++.
15185       # hardcode_libdir_flag_spec is actually meaningless, as there is
15186       # no search path for DLLs.
15187       hardcode_libdir_flag_spec=' '
15188       allow_undefined_flag=unsupported
15189       # Tell ltmain to make .lib files, not .a files.
15190       libext=lib
15191       # Tell ltmain to make .dll files, not .so files.
15192       shrext_cmds=".dll"
15193       # FIXME: Setting linknames here is a bad hack.
15194       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15195       # The linker will automatically build a .lib file if we build a DLL.
15196       old_archive_From_new_cmds='true'
15197       # FIXME: Should let the user specify the lib program.
15198       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15199       fix_srcfile_path='`cygpath -w "$srcfile"`'
15200       enable_shared_with_static_runtimes=yes
15201       ;;
15202
15203     darwin* | rhapsody*)
15204       case $host_os in
15205         rhapsody* | darwin1.[012])
15206          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15207          ;;
15208        *) # Darwin 1.3 on
15209          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15210            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15211          else
15212            case ${MACOSX_DEPLOYMENT_TARGET} in
15213              10.[012])
15214                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15215                ;;
15216              10.*)
15217                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15218                ;;
15219            esac
15220          fi
15221          ;;
15222       esac
15223       archive_cmds_need_lc=no
15224       hardcode_direct=no
15225       hardcode_automatic=yes
15226       hardcode_shlibpath_var=unsupported
15227       whole_archive_flag_spec=''
15228       link_all_deplibs=yes
15229     if test "$GCC" = yes ; then
15230         output_verbose_link_cmd='echo'
15231         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15232       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15233       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15234       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}'
15235       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}'
15236     else
15237       case $cc_basename in
15238         xlc*)
15239          output_verbose_link_cmd='echo'
15240          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15241          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15242           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15243          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}'
15244           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}'
15245           ;;
15246        *)
15247          ld_shlibs=no
15248           ;;
15249       esac
15250     fi
15251       ;;
15252
15253     dgux*)
15254       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255       hardcode_libdir_flag_spec='-L$libdir'
15256       hardcode_shlibpath_var=no
15257       ;;
15258
15259     freebsd1*)
15260       ld_shlibs=no
15261       ;;
15262
15263     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15264     # support.  Future versions do this automatically, but an explicit c++rt0.o
15265     # does not break anything, and helps significantly (at the cost of a little
15266     # extra space).
15267     freebsd2.2*)
15268       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15269       hardcode_libdir_flag_spec='-R$libdir'
15270       hardcode_direct=yes
15271       hardcode_shlibpath_var=no
15272       ;;
15273
15274     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15275     freebsd2*)
15276       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15277       hardcode_direct=yes
15278       hardcode_minus_L=yes
15279       hardcode_shlibpath_var=no
15280       ;;
15281
15282     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15283     freebsd* | kfreebsd*-gnu | dragonfly*)
15284       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15285       hardcode_libdir_flag_spec='-R$libdir'
15286       hardcode_direct=yes
15287       hardcode_shlibpath_var=no
15288       ;;
15289
15290     hpux9*)
15291       if test "$GCC" = yes; then
15292         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'
15293       else
15294         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'
15295       fi
15296       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15297       hardcode_libdir_separator=:
15298       hardcode_direct=yes
15299
15300       # hardcode_minus_L: Not really in the search PATH,
15301       # but as the default location of the library.
15302       hardcode_minus_L=yes
15303       export_dynamic_flag_spec='${wl}-E'
15304       ;;
15305
15306     hpux10*)
15307       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15308         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15309       else
15310         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15311       fi
15312       if test "$with_gnu_ld" = no; then
15313         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15314         hardcode_libdir_separator=:
15315
15316         hardcode_direct=yes
15317         export_dynamic_flag_spec='${wl}-E'
15318
15319         # hardcode_minus_L: Not really in the search PATH,
15320         # but as the default location of the library.
15321         hardcode_minus_L=yes
15322       fi
15323       ;;
15324
15325     hpux11*)
15326       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15327         case $host_cpu in
15328         hppa*64*)
15329           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330           ;;
15331         ia64*)
15332           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15333           ;;
15334         *)
15335           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15336           ;;
15337         esac
15338       else
15339         case $host_cpu in
15340         hppa*64*)
15341           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15342           ;;
15343         ia64*)
15344           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15345           ;;
15346         *)
15347           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15348           ;;
15349         esac
15350       fi
15351       if test "$with_gnu_ld" = no; then
15352         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15353         hardcode_libdir_separator=:
15354
15355         case $host_cpu in
15356         hppa*64*|ia64*)
15357           hardcode_libdir_flag_spec_ld='+b $libdir'
15358           hardcode_direct=no
15359           hardcode_shlibpath_var=no
15360           ;;
15361         *)
15362           hardcode_direct=yes
15363           export_dynamic_flag_spec='${wl}-E'
15364
15365           # hardcode_minus_L: Not really in the search PATH,
15366           # but as the default location of the library.
15367           hardcode_minus_L=yes
15368           ;;
15369         esac
15370       fi
15371       ;;
15372
15373     irix5* | irix6* | nonstopux*)
15374       if test "$GCC" = yes; then
15375         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'
15376       else
15377         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'
15378         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15379       fi
15380       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15381       hardcode_libdir_separator=:
15382       link_all_deplibs=yes
15383       ;;
15384
15385     netbsd*)
15386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15388       else
15389         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15390       fi
15391       hardcode_libdir_flag_spec='-R$libdir'
15392       hardcode_direct=yes
15393       hardcode_shlibpath_var=no
15394       ;;
15395
15396     newsos6)
15397       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398       hardcode_direct=yes
15399       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15400       hardcode_libdir_separator=:
15401       hardcode_shlibpath_var=no
15402       ;;
15403
15404     openbsd*)
15405       hardcode_direct=yes
15406       hardcode_shlibpath_var=no
15407       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15408         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15409         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15410         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15411         export_dynamic_flag_spec='${wl}-E'
15412       else
15413        case $host_os in
15414          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15415            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15416            hardcode_libdir_flag_spec='-R$libdir'
15417            ;;
15418          *)
15419            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15420            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15421            ;;
15422        esac
15423       fi
15424       ;;
15425
15426     os2*)
15427       hardcode_libdir_flag_spec='-L$libdir'
15428       hardcode_minus_L=yes
15429       allow_undefined_flag=unsupported
15430       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'
15431       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15432       ;;
15433
15434     osf3*)
15435       if test "$GCC" = yes; then
15436         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15437         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'
15438       else
15439         allow_undefined_flag=' -expect_unresolved \*'
15440         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'
15441       fi
15442       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443       hardcode_libdir_separator=:
15444       ;;
15445
15446     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15447       if test "$GCC" = yes; then
15448         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15449         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'
15450         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15451       else
15452         allow_undefined_flag=' -expect_unresolved \*'
15453         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'
15454         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15455         $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'
15456
15457         # Both c and cxx compiler support -rpath directly
15458         hardcode_libdir_flag_spec='-rpath $libdir'
15459       fi
15460       hardcode_libdir_separator=:
15461       ;;
15462
15463     solaris*)
15464       no_undefined_flag=' -z text'
15465       if test "$GCC" = yes; then
15466         wlarc='${wl}'
15467         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15469           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15470       else
15471         wlarc=''
15472         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15474         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15475       fi
15476       hardcode_libdir_flag_spec='-R$libdir'
15477       hardcode_shlibpath_var=no
15478       case $host_os in
15479       solaris2.[0-5] | solaris2.[0-5].*) ;;
15480       *)
15481         # The compiler driver will combine linker options so we
15482         # cannot just pass the convience library names through
15483         # without $wl, iff we do not link with $LD.
15484         # Luckily, gcc supports the same syntax we need for Sun Studio.
15485         # Supported since Solaris 2.6 (maybe 2.5.1?)
15486         case $wlarc in
15487         '')
15488           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15489         *)
15490           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' ;;
15491         esac ;;
15492       esac
15493       link_all_deplibs=yes
15494       ;;
15495
15496     sunos4*)
15497       if test "x$host_vendor" = xsequent; then
15498         # Use $CC to link under sequent, because it throws in some extra .o
15499         # files that make .init and .fini sections work.
15500         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15501       else
15502         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15503       fi
15504       hardcode_libdir_flag_spec='-L$libdir'
15505       hardcode_direct=yes
15506       hardcode_minus_L=yes
15507       hardcode_shlibpath_var=no
15508       ;;
15509
15510     sysv4)
15511       case $host_vendor in
15512         sni)
15513           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514           hardcode_direct=yes # is this really true???
15515         ;;
15516         siemens)
15517           ## LD is ld it makes a PLAMLIB
15518           ## CC just makes a GrossModule.
15519           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15520           reload_cmds='$CC -r -o $output$reload_objs'
15521           hardcode_direct=no
15522         ;;
15523         motorola)
15524           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15526         ;;
15527       esac
15528       runpath_var='LD_RUN_PATH'
15529       hardcode_shlibpath_var=no
15530       ;;
15531
15532     sysv4.3*)
15533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534       hardcode_shlibpath_var=no
15535       export_dynamic_flag_spec='-Bexport'
15536       ;;
15537
15538     sysv4*MP*)
15539       if test -d /usr/nec; then
15540         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541         hardcode_shlibpath_var=no
15542         runpath_var=LD_RUN_PATH
15543         hardcode_runpath_var=yes
15544         ld_shlibs=yes
15545       fi
15546       ;;
15547
15548     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15549       no_undefined_flag='${wl}-z,text'
15550       archive_cmds_need_lc=no
15551       hardcode_shlibpath_var=no
15552       runpath_var='LD_RUN_PATH'
15553
15554       if test "$GCC" = yes; then
15555         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15556         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557       else
15558         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560       fi
15561       ;;
15562
15563     sysv5* | sco3.2v5* | sco5v6*)
15564       # Note: We can NOT use -z defs as we might desire, because we do not
15565       # link with -lc, and that would cause any symbols used from libc to
15566       # always be unresolved, which means just about no library would
15567       # ever link correctly.  If we're not using GNU ld we use -z text
15568       # though, which does catch some bad symbols but isn't as heavy-handed
15569       # as -z defs.
15570       no_undefined_flag='${wl}-z,text'
15571       allow_undefined_flag='${wl}-z,nodefs'
15572       archive_cmds_need_lc=no
15573       hardcode_shlibpath_var=no
15574       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15575       hardcode_libdir_separator=':'
15576       link_all_deplibs=yes
15577       export_dynamic_flag_spec='${wl}-Bexport'
15578       runpath_var='LD_RUN_PATH'
15579
15580       if test "$GCC" = yes; then
15581         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15582         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583       else
15584         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586       fi
15587       ;;
15588
15589     uts4*)
15590       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591       hardcode_libdir_flag_spec='-L$libdir'
15592       hardcode_shlibpath_var=no
15593       ;;
15594
15595     *)
15596       ld_shlibs=no
15597       ;;
15598     esac
15599   fi
15600
15601 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15602 echo "${ECHO_T}$ld_shlibs" >&6; }
15603 test "$ld_shlibs" = no && can_build_shared=no
15604
15605 #
15606 # Do we need to explicitly link libc?
15607 #
15608 case "x$archive_cmds_need_lc" in
15609 x|xyes)
15610   # Assume -lc should be added
15611   archive_cmds_need_lc=yes
15612
15613   if test "$enable_shared" = yes && test "$GCC" = yes; then
15614     case $archive_cmds in
15615     *'~'*)
15616       # FIXME: we may have to deal with multi-command sequences.
15617       ;;
15618     '$CC '*)
15619       # Test whether the compiler implicitly links with -lc since on some
15620       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15621       # to ld, don't add -lc before -lgcc.
15622       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15624       $rm conftest*
15625       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15626
15627       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628   (eval $ac_compile) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } 2>conftest.err; then
15632         soname=conftest
15633         lib=conftest
15634         libobjs=conftest.$ac_objext
15635         deplibs=
15636         wl=$lt_prog_compiler_wl
15637         pic_flag=$lt_prog_compiler_pic
15638         compiler_flags=-v
15639         linker_flags=-v
15640         verstring=
15641         output_objdir=.
15642         libname=conftest
15643         lt_save_allow_undefined_flag=$allow_undefined_flag
15644         allow_undefined_flag=
15645         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15646   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); }
15650         then
15651           archive_cmds_need_lc=no
15652         else
15653           archive_cmds_need_lc=yes
15654         fi
15655         allow_undefined_flag=$lt_save_allow_undefined_flag
15656       else
15657         cat conftest.err 1>&5
15658       fi
15659       $rm conftest*
15660       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15661 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15662       ;;
15663     esac
15664   fi
15665   ;;
15666 esac
15667
15668 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15669 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15670 library_names_spec=
15671 libname_spec='lib$name'
15672 soname_spec=
15673 shrext_cmds=".so"
15674 postinstall_cmds=
15675 postuninstall_cmds=
15676 finish_cmds=
15677 finish_eval=
15678 shlibpath_var=
15679 shlibpath_overrides_runpath=unknown
15680 version_type=none
15681 dynamic_linker="$host_os ld.so"
15682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15683 if test "$GCC" = yes; then
15684   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15685   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15686     # if the path contains ";" then we assume it to be the separator
15687     # otherwise default to the standard path separator (i.e. ":") - it is
15688     # assumed that no part of a normal pathname contains ";" but that should
15689     # okay in the real world where ";" in dirpaths is itself problematic.
15690     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15691   else
15692     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15693   fi
15694 else
15695   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15696 fi
15697 need_lib_prefix=unknown
15698 hardcode_into_libs=no
15699
15700 # when you set need_version to no, make sure it does not cause -set_version
15701 # flags to be left without arguments
15702 need_version=unknown
15703
15704 case $host_os in
15705 aix3*)
15706   version_type=linux
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15708   shlibpath_var=LIBPATH
15709
15710   # AIX 3 has no versioning support, so we append a major version to the name.
15711   soname_spec='${libname}${release}${shared_ext}$major'
15712   ;;
15713
15714 aix4* | aix5*)
15715   version_type=linux
15716   need_lib_prefix=no
15717   need_version=no
15718   hardcode_into_libs=yes
15719   if test "$host_cpu" = ia64; then
15720     # AIX 5 supports IA64
15721     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15722     shlibpath_var=LD_LIBRARY_PATH
15723   else
15724     # With GCC up to 2.95.x, collect2 would create an import file
15725     # for dependence libraries.  The import file would start with
15726     # the line `#! .'.  This would cause the generated library to
15727     # depend on `.', always an invalid library.  This was fixed in
15728     # development snapshots of GCC prior to 3.0.
15729     case $host_os in
15730       aix4 | aix4.[01] | aix4.[01].*)
15731       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15732            echo ' yes '
15733            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15734         :
15735       else
15736         can_build_shared=no
15737       fi
15738       ;;
15739     esac
15740     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15741     # soname into executable. Probably we can add versioning support to
15742     # collect2, so additional links can be useful in future.
15743     if test "$aix_use_runtimelinking" = yes; then
15744       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15745       # instead of lib<name>.a to let people know that these are not
15746       # typical AIX shared libraries.
15747       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748     else
15749       # We preserve .a as extension for shared libraries through AIX4.2
15750       # and later when we are not doing run time linking.
15751       library_names_spec='${libname}${release}.a $libname.a'
15752       soname_spec='${libname}${release}${shared_ext}$major'
15753     fi
15754     shlibpath_var=LIBPATH
15755   fi
15756   ;;
15757
15758 amigaos*)
15759   library_names_spec='$libname.ixlibrary $libname.a'
15760   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15761   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'
15762   ;;
15763
15764 beos*)
15765   library_names_spec='${libname}${shared_ext}'
15766   dynamic_linker="$host_os ld.so"
15767   shlibpath_var=LIBRARY_PATH
15768   ;;
15769
15770 bsdi[45]*)
15771   version_type=linux
15772   need_version=no
15773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774   soname_spec='${libname}${release}${shared_ext}$major'
15775   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15776   shlibpath_var=LD_LIBRARY_PATH
15777   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15778   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15779   # the default ld.so.conf also contains /usr/contrib/lib and
15780   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15781   # libtool to hard-code these into programs
15782   ;;
15783
15784 cygwin* | mingw* | pw32*)
15785   version_type=windows
15786   shrext_cmds=".dll"
15787   need_version=no
15788   need_lib_prefix=no
15789
15790   case $GCC,$host_os in
15791   yes,cygwin* | yes,mingw* | yes,pw32*)
15792     library_names_spec='$libname.dll.a'
15793     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15794     postinstall_cmds='base_file=`basename \${file}`~
15795       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15796       dldir=$destdir/`dirname \$dlpath`~
15797       test -d \$dldir || mkdir -p \$dldir~
15798       $install_prog $dir/$dlname \$dldir/$dlname~
15799       chmod a+x \$dldir/$dlname'
15800     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15801       dlpath=$dir/\$dldll~
15802        $rm \$dlpath'
15803     shlibpath_overrides_runpath=yes
15804
15805     case $host_os in
15806     cygwin*)
15807       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15808       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15810       ;;
15811     mingw*)
15812       # MinGW DLLs use traditional 'lib' prefix
15813       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15815       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15816         # It is most probably a Windows format PATH printed by
15817         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15818         # path with ; separators, and with drive letters. We can handle the
15819         # drive letters (cygwin fileutils understands them), so leave them,
15820         # especially as we might pass files found there to a mingw objdump,
15821         # which wouldn't understand a cygwinified path. Ahh.
15822         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823       else
15824         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15825       fi
15826       ;;
15827     pw32*)
15828       # pw32 DLLs use 'pw' prefix rather than 'lib'
15829       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15830       ;;
15831     esac
15832     ;;
15833
15834   *)
15835     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15836     ;;
15837   esac
15838   dynamic_linker='Win32 ld.exe'
15839   # FIXME: first we should search . and the directory the executable is in
15840   shlibpath_var=PATH
15841   ;;
15842
15843 darwin* | rhapsody*)
15844   dynamic_linker="$host_os dyld"
15845   version_type=darwin
15846   need_lib_prefix=no
15847   need_version=no
15848   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15849   soname_spec='${libname}${release}${major}$shared_ext'
15850   shlibpath_overrides_runpath=yes
15851   shlibpath_var=DYLD_LIBRARY_PATH
15852   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15853   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15854   if test "$GCC" = yes; then
15855     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"`
15856   else
15857     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15858   fi
15859   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15860   ;;
15861
15862 dgux*)
15863   version_type=linux
15864   need_lib_prefix=no
15865   need_version=no
15866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15867   soname_spec='${libname}${release}${shared_ext}$major'
15868   shlibpath_var=LD_LIBRARY_PATH
15869   ;;
15870
15871 freebsd1*)
15872   dynamic_linker=no
15873   ;;
15874
15875 kfreebsd*-gnu)
15876   version_type=linux
15877   need_lib_prefix=no
15878   need_version=no
15879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880   soname_spec='${libname}${release}${shared_ext}$major'
15881   shlibpath_var=LD_LIBRARY_PATH
15882   shlibpath_overrides_runpath=no
15883   hardcode_into_libs=yes
15884   dynamic_linker='GNU ld.so'
15885   ;;
15886
15887 freebsd* | dragonfly*)
15888   # DragonFly does not have aout.  When/if they implement a new
15889   # versioning mechanism, adjust this.
15890   if test -x /usr/bin/objformat; then
15891     objformat=`/usr/bin/objformat`
15892   else
15893     case $host_os in
15894     freebsd[123]*) objformat=aout ;;
15895     *) objformat=elf ;;
15896     esac
15897   fi
15898   version_type=freebsd-$objformat
15899   case $version_type in
15900     freebsd-elf*)
15901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15902       need_version=no
15903       need_lib_prefix=no
15904       ;;
15905     freebsd-*)
15906       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15907       need_version=yes
15908       ;;
15909   esac
15910   shlibpath_var=LD_LIBRARY_PATH
15911   case $host_os in
15912   freebsd2*)
15913     shlibpath_overrides_runpath=yes
15914     ;;
15915   freebsd3.[01]* | freebsdelf3.[01]*)
15916     shlibpath_overrides_runpath=yes
15917     hardcode_into_libs=yes
15918     ;;
15919   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15920   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15921     shlibpath_overrides_runpath=no
15922     hardcode_into_libs=yes
15923     ;;
15924   freebsd*) # from 4.6 on
15925     shlibpath_overrides_runpath=yes
15926     hardcode_into_libs=yes
15927     ;;
15928   esac
15929   ;;
15930
15931 gnu*)
15932   version_type=linux
15933   need_lib_prefix=no
15934   need_version=no
15935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15936   soname_spec='${libname}${release}${shared_ext}$major'
15937   shlibpath_var=LD_LIBRARY_PATH
15938   hardcode_into_libs=yes
15939   ;;
15940
15941 hpux9* | hpux10* | hpux11*)
15942   # Give a soname corresponding to the major version so that dld.sl refuses to
15943   # link against other versions.
15944   version_type=sunos
15945   need_lib_prefix=no
15946   need_version=no
15947   case $host_cpu in
15948   ia64*)
15949     shrext_cmds='.so'
15950     hardcode_into_libs=yes
15951     dynamic_linker="$host_os dld.so"
15952     shlibpath_var=LD_LIBRARY_PATH
15953     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955     soname_spec='${libname}${release}${shared_ext}$major'
15956     if test "X$HPUX_IA64_MODE" = X32; then
15957       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15958     else
15959       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15960     fi
15961     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15962     ;;
15963    hppa*64*)
15964      shrext_cmds='.sl'
15965      hardcode_into_libs=yes
15966      dynamic_linker="$host_os dld.sl"
15967      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15968      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15969      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970      soname_spec='${libname}${release}${shared_ext}$major'
15971      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15972      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15973      ;;
15974    *)
15975     shrext_cmds='.sl'
15976     dynamic_linker="$host_os dld.sl"
15977     shlibpath_var=SHLIB_PATH
15978     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980     soname_spec='${libname}${release}${shared_ext}$major'
15981     ;;
15982   esac
15983   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15984   postinstall_cmds='chmod 555 $lib'
15985   ;;
15986
15987 interix3*)
15988   version_type=linux
15989   need_lib_prefix=no
15990   need_version=no
15991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992   soname_spec='${libname}${release}${shared_ext}$major'
15993   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15994   shlibpath_var=LD_LIBRARY_PATH
15995   shlibpath_overrides_runpath=no
15996   hardcode_into_libs=yes
15997   ;;
15998
15999 irix5* | irix6* | nonstopux*)
16000   case $host_os in
16001     nonstopux*) version_type=nonstopux ;;
16002     *)
16003         if test "$lt_cv_prog_gnu_ld" = yes; then
16004                 version_type=linux
16005         else
16006                 version_type=irix
16007         fi ;;
16008   esac
16009   need_lib_prefix=no
16010   need_version=no
16011   soname_spec='${libname}${release}${shared_ext}$major'
16012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16013   case $host_os in
16014   irix5* | nonstopux*)
16015     libsuff= shlibsuff=
16016     ;;
16017   *)
16018     case $LD in # libtool.m4 will add one of these switches to LD
16019     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16020       libsuff= shlibsuff= libmagic=32-bit;;
16021     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16022       libsuff=32 shlibsuff=N32 libmagic=N32;;
16023     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16024       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16025     *) libsuff= shlibsuff= libmagic=never-match;;
16026     esac
16027     ;;
16028   esac
16029   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16030   shlibpath_overrides_runpath=no
16031   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16032   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16033   hardcode_into_libs=yes
16034   ;;
16035
16036 # No shared lib support for Linux oldld, aout, or coff.
16037 linux*oldld* | linux*aout* | linux*coff*)
16038   dynamic_linker=no
16039   ;;
16040
16041 # This must be Linux ELF.
16042 linux*)
16043   version_type=linux
16044   need_lib_prefix=no
16045   need_version=no
16046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047   soname_spec='${libname}${release}${shared_ext}$major'
16048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16049   shlibpath_var=LD_LIBRARY_PATH
16050   shlibpath_overrides_runpath=no
16051   # This implies no fast_install, which is unacceptable.
16052   # Some rework will be needed to allow for fast_install
16053   # before this can be enabled.
16054   hardcode_into_libs=yes
16055
16056   # Append ld.so.conf contents to the search path
16057   if test -f /etc/ld.so.conf; then
16058     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' ' '`
16059     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16060   fi
16061
16062   # We used to test for /lib/ld.so.1 and disable shared libraries on
16063   # powerpc, because MkLinux only supported shared libraries with the
16064   # GNU dynamic linker.  Since this was broken with cross compilers,
16065   # most powerpc-linux boxes support dynamic linking these days and
16066   # people can always --disable-shared, the test was removed, and we
16067   # assume the GNU/Linux dynamic linker is in use.
16068   dynamic_linker='GNU/Linux ld.so'
16069   ;;
16070
16071 knetbsd*-gnu)
16072   version_type=linux
16073   need_lib_prefix=no
16074   need_version=no
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076   soname_spec='${libname}${release}${shared_ext}$major'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   shlibpath_overrides_runpath=no
16079   hardcode_into_libs=yes
16080   dynamic_linker='GNU ld.so'
16081   ;;
16082
16083 netbsd*)
16084   version_type=sunos
16085   need_lib_prefix=no
16086   need_version=no
16087   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16089     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090     dynamic_linker='NetBSD (a.out) ld.so'
16091   else
16092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16093     soname_spec='${libname}${release}${shared_ext}$major'
16094     dynamic_linker='NetBSD ld.elf_so'
16095   fi
16096   shlibpath_var=LD_LIBRARY_PATH
16097   shlibpath_overrides_runpath=yes
16098   hardcode_into_libs=yes
16099   ;;
16100
16101 newsos6)
16102   version_type=linux
16103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104   shlibpath_var=LD_LIBRARY_PATH
16105   shlibpath_overrides_runpath=yes
16106   ;;
16107
16108 nto-qnx*)
16109   version_type=linux
16110   need_lib_prefix=no
16111   need_version=no
16112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113   soname_spec='${libname}${release}${shared_ext}$major'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   shlibpath_overrides_runpath=yes
16116   ;;
16117
16118 openbsd*)
16119   version_type=sunos
16120   sys_lib_dlsearch_path_spec="/usr/lib"
16121   need_lib_prefix=no
16122   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16123   case $host_os in
16124     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16125     *)                         need_version=no  ;;
16126   esac
16127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16128   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16131     case $host_os in
16132       openbsd2.[89] | openbsd2.[89].*)
16133         shlibpath_overrides_runpath=no
16134         ;;
16135       *)
16136         shlibpath_overrides_runpath=yes
16137         ;;
16138       esac
16139   else
16140     shlibpath_overrides_runpath=yes
16141   fi
16142   ;;
16143
16144 os2*)
16145   libname_spec='$name'
16146   shrext_cmds=".dll"
16147   need_lib_prefix=no
16148   library_names_spec='$libname${shared_ext} $libname.a'
16149   dynamic_linker='OS/2 ld.exe'
16150   shlibpath_var=LIBPATH
16151   ;;
16152
16153 osf3* | osf4* | osf5*)
16154   version_type=osf
16155   need_lib_prefix=no
16156   need_version=no
16157   soname_spec='${libname}${release}${shared_ext}$major'
16158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159   shlibpath_var=LD_LIBRARY_PATH
16160   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16161   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16162   ;;
16163
16164 solaris*)
16165   version_type=linux
16166   need_lib_prefix=no
16167   need_version=no
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   shlibpath_overrides_runpath=yes
16172   hardcode_into_libs=yes
16173   # ldd complains unless libraries are executable
16174   postinstall_cmds='chmod +x $lib'
16175   ;;
16176
16177 sunos4*)
16178   version_type=sunos
16179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   shlibpath_overrides_runpath=yes
16183   if test "$with_gnu_ld" = yes; then
16184     need_lib_prefix=no
16185   fi
16186   need_version=yes
16187   ;;
16188
16189 sysv4 | sysv4.3*)
16190   version_type=linux
16191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192   soname_spec='${libname}${release}${shared_ext}$major'
16193   shlibpath_var=LD_LIBRARY_PATH
16194   case $host_vendor in
16195     sni)
16196       shlibpath_overrides_runpath=no
16197       need_lib_prefix=no
16198       export_dynamic_flag_spec='${wl}-Blargedynsym'
16199       runpath_var=LD_RUN_PATH
16200       ;;
16201     siemens)
16202       need_lib_prefix=no
16203       ;;
16204     motorola)
16205       need_lib_prefix=no
16206       need_version=no
16207       shlibpath_overrides_runpath=no
16208       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16209       ;;
16210   esac
16211   ;;
16212
16213 sysv4*MP*)
16214   if test -d /usr/nec ;then
16215     version_type=linux
16216     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16217     soname_spec='$libname${shared_ext}.$major'
16218     shlibpath_var=LD_LIBRARY_PATH
16219   fi
16220   ;;
16221
16222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16223   version_type=freebsd-elf
16224   need_lib_prefix=no
16225   need_version=no
16226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227   soname_spec='${libname}${release}${shared_ext}$major'
16228   shlibpath_var=LD_LIBRARY_PATH
16229   hardcode_into_libs=yes
16230   if test "$with_gnu_ld" = yes; then
16231     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16232     shlibpath_overrides_runpath=no
16233   else
16234     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16235     shlibpath_overrides_runpath=yes
16236     case $host_os in
16237       sco3.2v5*)
16238         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16239         ;;
16240     esac
16241   fi
16242   sys_lib_dlsearch_path_spec='/usr/lib'
16243   ;;
16244
16245 uts4*)
16246   version_type=linux
16247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   shlibpath_var=LD_LIBRARY_PATH
16250   ;;
16251
16252 *)
16253   dynamic_linker=no
16254   ;;
16255 esac
16256 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16257 echo "${ECHO_T}$dynamic_linker" >&6; }
16258 test "$dynamic_linker" = no && can_build_shared=no
16259
16260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16261 if test "$GCC" = yes; then
16262   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16263 fi
16264
16265 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16266 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16267 hardcode_action=
16268 if test -n "$hardcode_libdir_flag_spec" || \
16269    test -n "$runpath_var" || \
16270    test "X$hardcode_automatic" = "Xyes" ; then
16271
16272   # We can hardcode non-existant directories.
16273   if test "$hardcode_direct" != no &&
16274      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275      # have to relink, otherwise we might link with an installed library
16276      # when we should be linking with a yet-to-be-installed one
16277      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16278      test "$hardcode_minus_L" != no; then
16279     # Linking always hardcodes the temporary library directory.
16280     hardcode_action=relink
16281   else
16282     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283     hardcode_action=immediate
16284   fi
16285 else
16286   # We cannot hardcode anything, or else we can only hardcode existing
16287   # directories.
16288   hardcode_action=unsupported
16289 fi
16290 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16291 echo "${ECHO_T}$hardcode_action" >&6; }
16292
16293 if test "$hardcode_action" = relink; then
16294   # Fast installation is not supported
16295   enable_fast_install=no
16296 elif test "$shlibpath_overrides_runpath" = yes ||
16297      test "$enable_shared" = no; then
16298   # Fast installation is not necessary
16299   enable_fast_install=needless
16300 fi
16301
16302 striplib=
16303 old_striplib=
16304 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16305 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16306 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16307   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16308   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16309   { echo "$as_me:$LINENO: result: yes" >&5
16310 echo "${ECHO_T}yes" >&6; }
16311 else
16312 # FIXME - insert some real tests, host_os isn't really good enough
16313   case $host_os in
16314    darwin*)
16315        if test -n "$STRIP" ; then
16316          striplib="$STRIP -x"
16317          { echo "$as_me:$LINENO: result: yes" >&5
16318 echo "${ECHO_T}yes" >&6; }
16319        else
16320   { echo "$as_me:$LINENO: result: no" >&5
16321 echo "${ECHO_T}no" >&6; }
16322 fi
16323        ;;
16324    *)
16325   { echo "$as_me:$LINENO: result: no" >&5
16326 echo "${ECHO_T}no" >&6; }
16327     ;;
16328   esac
16329 fi
16330
16331 if test "x$enable_dlopen" != xyes; then
16332   enable_dlopen=unknown
16333   enable_dlopen_self=unknown
16334   enable_dlopen_self_static=unknown
16335 else
16336   lt_cv_dlopen=no
16337   lt_cv_dlopen_libs=
16338
16339   case $host_os in
16340   beos*)
16341     lt_cv_dlopen="load_add_on"
16342     lt_cv_dlopen_libs=
16343     lt_cv_dlopen_self=yes
16344     ;;
16345
16346   mingw* | pw32*)
16347     lt_cv_dlopen="LoadLibrary"
16348     lt_cv_dlopen_libs=
16349    ;;
16350
16351   cygwin*)
16352     lt_cv_dlopen="dlopen"
16353     lt_cv_dlopen_libs=
16354    ;;
16355
16356   darwin*)
16357   # if libdl is installed we need to link against it
16358     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16359 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16360 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16361   echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363   ac_check_lib_save_LIBS=$LIBS
16364 LIBS="-ldl  $LIBS"
16365 cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h.  */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h.  */
16371
16372 /* Override any GCC internal prototype to avoid an error.
16373    Use char because int might match the return type of a GCC
16374    builtin and then its argument prototype would still apply.  */
16375 #ifdef __cplusplus
16376 extern "C"
16377 #endif
16378 char dlopen ();
16379 int
16380 main ()
16381 {
16382 return dlopen ();
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (ac_try="$ac_link"
16389 case "(($ac_try" in
16390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391   *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394   (eval "$ac_link") 2>conftest.er1
16395   ac_status=$?
16396   grep -v '^ *+' conftest.er1 >conftest.err
16397   rm -f conftest.er1
16398   cat conftest.err >&5
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } &&
16401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402   { (case "(($ac_try" in
16403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404   *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407   (eval "$ac_try") 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; } &&
16411          { ac_try='test -s conftest$ac_exeext'
16412   { (case "(($ac_try" in
16413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414   *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417   (eval "$ac_try") 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   ac_cv_lib_dl_dlopen=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426         ac_cv_lib_dl_dlopen=no
16427 fi
16428
16429 rm -f core conftest.err conftest.$ac_objext \
16430       conftest$ac_exeext conftest.$ac_ext
16431 LIBS=$ac_check_lib_save_LIBS
16432 fi
16433 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16434 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16435 if test $ac_cv_lib_dl_dlopen = yes; then
16436   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16437 else
16438
16439     lt_cv_dlopen="dyld"
16440     lt_cv_dlopen_libs=
16441     lt_cv_dlopen_self=yes
16442
16443 fi
16444
16445    ;;
16446
16447   *)
16448     { echo "$as_me:$LINENO: checking for shl_load" >&5
16449 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16450 if test "${ac_cv_func_shl_load+set}" = set; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16461 #define shl_load innocuous_shl_load
16462
16463 /* System header to define __stub macros and hopefully few prototypes,
16464     which can conflict with char shl_load (); below.
16465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16466     <limits.h> exists even on freestanding compilers.  */
16467
16468 #ifdef __STDC__
16469 # include <limits.h>
16470 #else
16471 # include <assert.h>
16472 #endif
16473
16474 #undef shl_load
16475
16476 /* Override any GCC internal prototype to avoid an error.
16477    Use char because int might match the return type of a GCC
16478    builtin and then its argument prototype would still apply.  */
16479 #ifdef __cplusplus
16480 extern "C"
16481 #endif
16482 char shl_load ();
16483 /* The GNU C library defines this for functions which it implements
16484     to always fail with ENOSYS.  Some functions are actually named
16485     something starting with __ and the normal name is an alias.  */
16486 #if defined __stub_shl_load || defined __stub___shl_load
16487 choke me
16488 #endif
16489
16490 int
16491 main ()
16492 {
16493 return shl_load ();
16494   ;
16495   return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_link") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest$ac_exeext'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_cv_func_shl_load=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537         ac_cv_func_shl_load=no
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext \
16541       conftest$ac_exeext conftest.$ac_ext
16542 fi
16543 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16545 if test $ac_cv_func_shl_load = yes; then
16546   lt_cv_dlopen="shl_load"
16547 else
16548   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   ac_check_lib_save_LIBS=$LIBS
16554 LIBS="-ldld  $LIBS"
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561
16562 /* Override any GCC internal prototype to avoid an error.
16563    Use char because int might match the return type of a GCC
16564    builtin and then its argument prototype would still apply.  */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char shl_load ();
16569 int
16570 main ()
16571 {
16572 return shl_load ();
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_link") 2>conftest.er1
16585   ac_status=$?
16586   grep -v '^ *+' conftest.er1 >conftest.err
16587   rm -f conftest.er1
16588   cat conftest.err >&5
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); } &&
16591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592   { (case "(($ac_try" in
16593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594   *) ac_try_echo=$ac_try;;
16595 esac
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597   (eval "$ac_try") 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; } &&
16601          { ac_try='test -s conftest$ac_exeext'
16602   { (case "(($ac_try" in
16603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604   *) ac_try_echo=$ac_try;;
16605 esac
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607   (eval "$ac_try") 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); }; }; then
16611   ac_cv_lib_dld_shl_load=yes
16612 else
16613   echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616         ac_cv_lib_dld_shl_load=no
16617 fi
16618
16619 rm -f core conftest.err conftest.$ac_objext \
16620       conftest$ac_exeext conftest.$ac_ext
16621 LIBS=$ac_check_lib_save_LIBS
16622 fi
16623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16624 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16625 if test $ac_cv_lib_dld_shl_load = yes; then
16626   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16627 else
16628   { echo "$as_me:$LINENO: checking for dlopen" >&5
16629 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16630 if test "${ac_cv_func_dlopen+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h.  */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h.  */
16639 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16641 #define dlopen innocuous_dlopen
16642
16643 /* System header to define __stub macros and hopefully few prototypes,
16644     which can conflict with char dlopen (); below.
16645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646     <limits.h> exists even on freestanding compilers.  */
16647
16648 #ifdef __STDC__
16649 # include <limits.h>
16650 #else
16651 # include <assert.h>
16652 #endif
16653
16654 #undef dlopen
16655
16656 /* Override any GCC internal prototype to avoid an error.
16657    Use char because int might match the return type of a GCC
16658    builtin and then its argument prototype would still apply.  */
16659 #ifdef __cplusplus
16660 extern "C"
16661 #endif
16662 char dlopen ();
16663 /* The GNU C library defines this for functions which it implements
16664     to always fail with ENOSYS.  Some functions are actually named
16665     something starting with __ and the normal name is an alias.  */
16666 #if defined __stub_dlopen || defined __stub___dlopen
16667 choke me
16668 #endif
16669
16670 int
16671 main ()
16672 {
16673 return dlopen ();
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682   *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685   (eval "$ac_link") 2>conftest.er1
16686   ac_status=$?
16687   grep -v '^ *+' conftest.er1 >conftest.err
16688   rm -f conftest.er1
16689   cat conftest.err >&5
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } &&
16692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693   { (case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698   (eval "$ac_try") 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; } &&
16702          { ac_try='test -s conftest$ac_exeext'
16703   { (case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_try") 2>&5
16709   ac_status=$?
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); }; }; then
16712   ac_cv_func_dlopen=yes
16713 else
16714   echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717         ac_cv_func_dlopen=no
16718 fi
16719
16720 rm -f core conftest.err conftest.$ac_objext \
16721       conftest$ac_exeext conftest.$ac_ext
16722 fi
16723 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16724 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16725 if test $ac_cv_func_dlopen = yes; then
16726   lt_cv_dlopen="dlopen"
16727 else
16728   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16731   echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733   ac_check_lib_save_LIBS=$LIBS
16734 LIBS="-ldl  $LIBS"
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741
16742 /* Override any GCC internal prototype to avoid an error.
16743    Use char because int might match the return type of a GCC
16744    builtin and then its argument prototype would still apply.  */
16745 #ifdef __cplusplus
16746 extern "C"
16747 #endif
16748 char dlopen ();
16749 int
16750 main ()
16751 {
16752 return dlopen ();
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext conftest$ac_exeext
16758 if { (ac_try="$ac_link"
16759 case "(($ac_try" in
16760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761   *) ac_try_echo=$ac_try;;
16762 esac
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764   (eval "$ac_link") 2>conftest.er1
16765   ac_status=$?
16766   grep -v '^ *+' conftest.er1 >conftest.err
16767   rm -f conftest.er1
16768   cat conftest.err >&5
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } &&
16771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16772   { (case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_try") 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; } &&
16781          { ac_try='test -s conftest$ac_exeext'
16782   { (case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787   (eval "$ac_try") 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; }; then
16791   ac_cv_lib_dl_dlopen=yes
16792 else
16793   echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16795
16796         ac_cv_lib_dl_dlopen=no
16797 fi
16798
16799 rm -f core conftest.err conftest.$ac_objext \
16800       conftest$ac_exeext conftest.$ac_ext
16801 LIBS=$ac_check_lib_save_LIBS
16802 fi
16803 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16805 if test $ac_cv_lib_dl_dlopen = yes; then
16806   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16807 else
16808   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16809 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16810 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16811   echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813   ac_check_lib_save_LIBS=$LIBS
16814 LIBS="-lsvld  $LIBS"
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h.  */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h.  */
16821
16822 /* Override any GCC internal prototype to avoid an error.
16823    Use char because int might match the return type of a GCC
16824    builtin and then its argument prototype would still apply.  */
16825 #ifdef __cplusplus
16826 extern "C"
16827 #endif
16828 char dlopen ();
16829 int
16830 main ()
16831 {
16832 return dlopen ();
16833   ;
16834   return 0;
16835 }
16836 _ACEOF
16837 rm -f conftest.$ac_objext conftest$ac_exeext
16838 if { (ac_try="$ac_link"
16839 case "(($ac_try" in
16840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841   *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844   (eval "$ac_link") 2>conftest.er1
16845   ac_status=$?
16846   grep -v '^ *+' conftest.er1 >conftest.err
16847   rm -f conftest.er1
16848   cat conftest.err >&5
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); } &&
16851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16852   { (case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_try") 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; } &&
16861          { ac_try='test -s conftest$ac_exeext'
16862   { (case "(($ac_try" in
16863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864   *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867   (eval "$ac_try") 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   ac_cv_lib_svld_dlopen=yes
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876         ac_cv_lib_svld_dlopen=no
16877 fi
16878
16879 rm -f core conftest.err conftest.$ac_objext \
16880       conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16882 fi
16883 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16885 if test $ac_cv_lib_svld_dlopen = yes; then
16886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16887 else
16888   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893   ac_check_lib_save_LIBS=$LIBS
16894 LIBS="-ldld  $LIBS"
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h.  */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h.  */
16901
16902 /* Override any GCC internal prototype to avoid an error.
16903    Use char because int might match the return type of a GCC
16904    builtin and then its argument prototype would still apply.  */
16905 #ifdef __cplusplus
16906 extern "C"
16907 #endif
16908 char dld_link ();
16909 int
16910 main ()
16911 {
16912 return dld_link ();
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (ac_try="$ac_link"
16919 case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_link") 2>conftest.er1
16925   ac_status=$?
16926   grep -v '^ *+' conftest.er1 >conftest.err
16927   rm -f conftest.er1
16928   cat conftest.err >&5
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); } &&
16931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932   { (case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937   (eval "$ac_try") 2>&5
16938   ac_status=$?
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); }; } &&
16941          { ac_try='test -s conftest$ac_exeext'
16942   { (case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_try") 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; }; then
16951   ac_cv_lib_dld_dld_link=yes
16952 else
16953   echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16955
16956         ac_cv_lib_dld_dld_link=no
16957 fi
16958
16959 rm -f core conftest.err conftest.$ac_objext \
16960       conftest$ac_exeext conftest.$ac_ext
16961 LIBS=$ac_check_lib_save_LIBS
16962 fi
16963 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16964 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16965 if test $ac_cv_lib_dld_dld_link = yes; then
16966   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16967 fi
16968
16969
16970 fi
16971
16972
16973 fi
16974
16975
16976 fi
16977
16978
16979 fi
16980
16981
16982 fi
16983
16984     ;;
16985   esac
16986
16987   if test "x$lt_cv_dlopen" != xno; then
16988     enable_dlopen=yes
16989   else
16990     enable_dlopen=no
16991   fi
16992
16993   case $lt_cv_dlopen in
16994   dlopen)
16995     save_CPPFLAGS="$CPPFLAGS"
16996     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16997
16998     save_LDFLAGS="$LDFLAGS"
16999     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17000
17001     save_LIBS="$LIBS"
17002     LIBS="$lt_cv_dlopen_libs $LIBS"
17003
17004     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17005 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17006 if test "${lt_cv_dlopen_self+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009           if test "$cross_compiling" = yes; then :
17010   lt_cv_dlopen_self=cross
17011 else
17012   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17013   lt_status=$lt_dlunknown
17014   cat > conftest.$ac_ext <<EOF
17015 #line 17015 "configure"
17016 #include "confdefs.h"
17017
17018 #if HAVE_DLFCN_H
17019 #include <dlfcn.h>
17020 #endif
17021
17022 #include <stdio.h>
17023
17024 #ifdef RTLD_GLOBAL
17025 #  define LT_DLGLOBAL           RTLD_GLOBAL
17026 #else
17027 #  ifdef DL_GLOBAL
17028 #    define LT_DLGLOBAL         DL_GLOBAL
17029 #  else
17030 #    define LT_DLGLOBAL         0
17031 #  endif
17032 #endif
17033
17034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17035    find out it does not work in some platform. */
17036 #ifndef LT_DLLAZY_OR_NOW
17037 #  ifdef RTLD_LAZY
17038 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17039 #  else
17040 #    ifdef DL_LAZY
17041 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17042 #    else
17043 #      ifdef RTLD_NOW
17044 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17045 #      else
17046 #        ifdef DL_NOW
17047 #          define LT_DLLAZY_OR_NOW      DL_NOW
17048 #        else
17049 #          define LT_DLLAZY_OR_NOW      0
17050 #        endif
17051 #      endif
17052 #    endif
17053 #  endif
17054 #endif
17055
17056 #ifdef __cplusplus
17057 extern "C" void exit (int);
17058 #endif
17059
17060 void fnord() { int i=42;}
17061 int main ()
17062 {
17063   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17064   int status = $lt_dlunknown;
17065
17066   if (self)
17067     {
17068       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17069       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17070       /* dlclose (self); */
17071     }
17072   else
17073     puts (dlerror ());
17074
17075     exit (status);
17076 }
17077 EOF
17078   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079   (eval $ac_link) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17083     (./conftest; exit; ) >&5 2>/dev/null
17084     lt_status=$?
17085     case x$lt_status in
17086       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17087       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17088       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17089     esac
17090   else :
17091     # compilation failed
17092     lt_cv_dlopen_self=no
17093   fi
17094 fi
17095 rm -fr conftest*
17096
17097
17098 fi
17099 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17100 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17101
17102     if test "x$lt_cv_dlopen_self" = xyes; then
17103       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17104       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17105 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17106 if test "${lt_cv_dlopen_self_static+set}" = set; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109           if test "$cross_compiling" = yes; then :
17110   lt_cv_dlopen_self_static=cross
17111 else
17112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17113   lt_status=$lt_dlunknown
17114   cat > conftest.$ac_ext <<EOF
17115 #line 17115 "configure"
17116 #include "confdefs.h"
17117
17118 #if HAVE_DLFCN_H
17119 #include <dlfcn.h>
17120 #endif
17121
17122 #include <stdio.h>
17123
17124 #ifdef RTLD_GLOBAL
17125 #  define LT_DLGLOBAL           RTLD_GLOBAL
17126 #else
17127 #  ifdef DL_GLOBAL
17128 #    define LT_DLGLOBAL         DL_GLOBAL
17129 #  else
17130 #    define LT_DLGLOBAL         0
17131 #  endif
17132 #endif
17133
17134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17135    find out it does not work in some platform. */
17136 #ifndef LT_DLLAZY_OR_NOW
17137 #  ifdef RTLD_LAZY
17138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17139 #  else
17140 #    ifdef DL_LAZY
17141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17142 #    else
17143 #      ifdef RTLD_NOW
17144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17145 #      else
17146 #        ifdef DL_NOW
17147 #          define LT_DLLAZY_OR_NOW      DL_NOW
17148 #        else
17149 #          define LT_DLLAZY_OR_NOW      0
17150 #        endif
17151 #      endif
17152 #    endif
17153 #  endif
17154 #endif
17155
17156 #ifdef __cplusplus
17157 extern "C" void exit (int);
17158 #endif
17159
17160 void fnord() { int i=42;}
17161 int main ()
17162 {
17163   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17164   int status = $lt_dlunknown;
17165
17166   if (self)
17167     {
17168       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17169       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17170       /* dlclose (self); */
17171     }
17172   else
17173     puts (dlerror ());
17174
17175     exit (status);
17176 }
17177 EOF
17178   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179   (eval $ac_link) 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17183     (./conftest; exit; ) >&5 2>/dev/null
17184     lt_status=$?
17185     case x$lt_status in
17186       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17187       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17188       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17189     esac
17190   else :
17191     # compilation failed
17192     lt_cv_dlopen_self_static=no
17193   fi
17194 fi
17195 rm -fr conftest*
17196
17197
17198 fi
17199 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17200 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17201     fi
17202
17203     CPPFLAGS="$save_CPPFLAGS"
17204     LDFLAGS="$save_LDFLAGS"
17205     LIBS="$save_LIBS"
17206     ;;
17207   esac
17208
17209   case $lt_cv_dlopen_self in
17210   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17211   *) enable_dlopen_self=unknown ;;
17212   esac
17213
17214   case $lt_cv_dlopen_self_static in
17215   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17216   *) enable_dlopen_self_static=unknown ;;
17217   esac
17218 fi
17219
17220
17221 # Report which library types will actually be built
17222 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17223 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17224 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17225 echo "${ECHO_T}$can_build_shared" >&6; }
17226
17227 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17228 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17229 test "$can_build_shared" = "no" && enable_shared=no
17230
17231 # On AIX, shared libraries and static libraries use the same namespace, and
17232 # are all built from PIC.
17233 case $host_os in
17234 aix3*)
17235   test "$enable_shared" = yes && enable_static=no
17236   if test -n "$RANLIB"; then
17237     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17238     postinstall_cmds='$RANLIB $lib'
17239   fi
17240   ;;
17241
17242 aix4* | aix5*)
17243   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17244     test "$enable_shared" = yes && enable_static=no
17245   fi
17246     ;;
17247 esac
17248 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17249 echo "${ECHO_T}$enable_shared" >&6; }
17250
17251 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17252 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17253 # Make sure either enable_shared or enable_static is yes.
17254 test "$enable_shared" = yes || enable_static=yes
17255 { echo "$as_me:$LINENO: result: $enable_static" >&5
17256 echo "${ECHO_T}$enable_static" >&6; }
17257
17258 # The else clause should only fire when bootstrapping the
17259 # libtool distribution, otherwise you forgot to ship ltmain.sh
17260 # with your package, and you will get complaints that there are
17261 # no rules to generate ltmain.sh.
17262 if test -f "$ltmain"; then
17263   # See if we are running on zsh, and set the options which allow our commands through
17264   # without removal of \ escapes.
17265   if test -n "${ZSH_VERSION+set}" ; then
17266     setopt NO_GLOB_SUBST
17267   fi
17268   # Now quote all the things that may contain metacharacters while being
17269   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17270   # variables and quote the copies for generation of the libtool script.
17271   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17272     SED SHELL STRIP \
17273     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17274     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17275     deplibs_check_method reload_flag reload_cmds need_locks \
17276     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17277     lt_cv_sys_global_symbol_to_c_name_address \
17278     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17279     old_postinstall_cmds old_postuninstall_cmds \
17280     compiler \
17281     CC \
17282     LD \
17283     lt_prog_compiler_wl \
17284     lt_prog_compiler_pic \
17285     lt_prog_compiler_static \
17286     lt_prog_compiler_no_builtin_flag \
17287     export_dynamic_flag_spec \
17288     thread_safe_flag_spec \
17289     whole_archive_flag_spec \
17290     enable_shared_with_static_runtimes \
17291     old_archive_cmds \
17292     old_archive_from_new_cmds \
17293     predep_objects \
17294     postdep_objects \
17295     predeps \
17296     postdeps \
17297     compiler_lib_search_path \
17298     archive_cmds \
17299     archive_expsym_cmds \
17300     postinstall_cmds \
17301     postuninstall_cmds \
17302     old_archive_from_expsyms_cmds \
17303     allow_undefined_flag \
17304     no_undefined_flag \
17305     export_symbols_cmds \
17306     hardcode_libdir_flag_spec \
17307     hardcode_libdir_flag_spec_ld \
17308     hardcode_libdir_separator \
17309     hardcode_automatic \
17310     module_cmds \
17311     module_expsym_cmds \
17312     lt_cv_prog_compiler_c_o \
17313     exclude_expsyms \
17314     include_expsyms; do
17315
17316     case $var in
17317     old_archive_cmds | \
17318     old_archive_from_new_cmds | \
17319     archive_cmds | \
17320     archive_expsym_cmds | \
17321     module_cmds | \
17322     module_expsym_cmds | \
17323     old_archive_from_expsyms_cmds | \
17324     export_symbols_cmds | \
17325     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17326     postinstall_cmds | postuninstall_cmds | \
17327     old_postinstall_cmds | old_postuninstall_cmds | \
17328     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17329       # Double-quote double-evaled strings.
17330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17331       ;;
17332     *)
17333       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17334       ;;
17335     esac
17336   done
17337
17338   case $lt_echo in
17339   *'\$0 --fallback-echo"')
17340     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17341     ;;
17342   esac
17343
17344 cfgfile="${ofile}T"
17345   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17346   $rm -f "$cfgfile"
17347   { echo "$as_me:$LINENO: creating $ofile" >&5
17348 echo "$as_me: creating $ofile" >&6;}
17349
17350   cat <<__EOF__ >> "$cfgfile"
17351 #! $SHELL
17352
17353 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17354 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17355 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17356 #
17357 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17358 # Free Software Foundation, Inc.
17359 #
17360 # This file is part of GNU Libtool:
17361 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17362 #
17363 # This program is free software; you can redistribute it and/or modify
17364 # it under the terms of the GNU General Public License as published by
17365 # the Free Software Foundation; either version 2 of the License, or
17366 # (at your option) any later version.
17367 #
17368 # This program is distributed in the hope that it will be useful, but
17369 # WITHOUT ANY WARRANTY; without even the implied warranty of
17370 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17371 # General Public License for more details.
17372 #
17373 # You should have received a copy of the GNU General Public License
17374 # along with this program; if not, write to the Free Software
17375 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17376 #
17377 # As a special exception to the GNU General Public License, if you
17378 # distribute this file as part of a program that contains a
17379 # configuration script generated by Autoconf, you may include it under
17380 # the same distribution terms that you use for the rest of that program.
17381
17382 # A sed program that does not truncate output.
17383 SED=$lt_SED
17384
17385 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17386 Xsed="$SED -e 1s/^X//"
17387
17388 # The HP-UX ksh and POSIX shell print the target directory to stdout
17389 # if CDPATH is set.
17390 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17391
17392 # The names of the tagged configurations supported by this script.
17393 available_tags=
17394
17395 # ### BEGIN LIBTOOL CONFIG
17396
17397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17398
17399 # Shell to use when invoking shell scripts.
17400 SHELL=$lt_SHELL
17401
17402 # Whether or not to build shared libraries.
17403 build_libtool_libs=$enable_shared
17404
17405 # Whether or not to build static libraries.
17406 build_old_libs=$enable_static
17407
17408 # Whether or not to add -lc for building shared libraries.
17409 build_libtool_need_lc=$archive_cmds_need_lc
17410
17411 # Whether or not to disallow shared libs when runtime libs are static
17412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17413
17414 # Whether or not to optimize for fast installation.
17415 fast_install=$enable_fast_install
17416
17417 # The host system.
17418 host_alias=$host_alias
17419 host=$host
17420 host_os=$host_os
17421
17422 # The build system.
17423 build_alias=$build_alias
17424 build=$build
17425 build_os=$build_os
17426
17427 # An echo program that does not interpret backslashes.
17428 echo=$lt_echo
17429
17430 # The archiver.
17431 AR=$lt_AR
17432 AR_FLAGS=$lt_AR_FLAGS
17433
17434 # A C compiler.
17435 LTCC=$lt_LTCC
17436
17437 # LTCC compiler flags.
17438 LTCFLAGS=$lt_LTCFLAGS
17439
17440 # A language-specific compiler.
17441 CC=$lt_compiler
17442
17443 # Is the compiler the GNU C compiler?
17444 with_gcc=$GCC
17445
17446 # An ERE matcher.
17447 EGREP=$lt_EGREP
17448
17449 # The linker used to build libraries.
17450 LD=$lt_LD
17451
17452 # Whether we need hard or soft links.
17453 LN_S=$lt_LN_S
17454
17455 # A BSD-compatible nm program.
17456 NM=$lt_NM
17457
17458 # A symbol stripping program
17459 STRIP=$lt_STRIP
17460
17461 # Used to examine libraries when file_magic_cmd begins "file"
17462 MAGIC_CMD=$MAGIC_CMD
17463
17464 # Used on cygwin: DLL creation program.
17465 DLLTOOL="$DLLTOOL"
17466
17467 # Used on cygwin: object dumper.
17468 OBJDUMP="$OBJDUMP"
17469
17470 # Used on cygwin: assembler.
17471 AS="$AS"
17472
17473 # The name of the directory that contains temporary libtool files.
17474 objdir=$objdir
17475
17476 # How to create reloadable object files.
17477 reload_flag=$lt_reload_flag
17478 reload_cmds=$lt_reload_cmds
17479
17480 # How to pass a linker flag through the compiler.
17481 wl=$lt_lt_prog_compiler_wl
17482
17483 # Object file suffix (normally "o").
17484 objext="$ac_objext"
17485
17486 # Old archive suffix (normally "a").
17487 libext="$libext"
17488
17489 # Shared library suffix (normally ".so").
17490 shrext_cmds='$shrext_cmds'
17491
17492 # Executable file suffix (normally "").
17493 exeext="$exeext"
17494
17495 # Additional compiler flags for building library objects.
17496 pic_flag=$lt_lt_prog_compiler_pic
17497 pic_mode=$pic_mode
17498
17499 # What is the maximum length of a command?
17500 max_cmd_len=$lt_cv_sys_max_cmd_len
17501
17502 # Does compiler simultaneously support -c and -o options?
17503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17504
17505 # Must we lock files when doing compilation?
17506 need_locks=$lt_need_locks
17507
17508 # Do we need the lib prefix for modules?
17509 need_lib_prefix=$need_lib_prefix
17510
17511 # Do we need a version for libraries?
17512 need_version=$need_version
17513
17514 # Whether dlopen is supported.
17515 dlopen_support=$enable_dlopen
17516
17517 # Whether dlopen of programs is supported.
17518 dlopen_self=$enable_dlopen_self
17519
17520 # Whether dlopen of statically linked programs is supported.
17521 dlopen_self_static=$enable_dlopen_self_static
17522
17523 # Compiler flag to prevent dynamic linking.
17524 link_static_flag=$lt_lt_prog_compiler_static
17525
17526 # Compiler flag to turn off builtin functions.
17527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17528
17529 # Compiler flag to allow reflexive dlopens.
17530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17531
17532 # Compiler flag to generate shared objects directly from archives.
17533 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17534
17535 # Compiler flag to generate thread-safe objects.
17536 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17537
17538 # Library versioning type.
17539 version_type=$version_type
17540
17541 # Format of library name prefix.
17542 libname_spec=$lt_libname_spec
17543
17544 # List of archive names.  First name is the real one, the rest are links.
17545 # The last name is the one that the linker finds with -lNAME.
17546 library_names_spec=$lt_library_names_spec
17547
17548 # The coded name of the library, if different from the real name.
17549 soname_spec=$lt_soname_spec
17550
17551 # Commands used to build and install an old-style archive.
17552 RANLIB=$lt_RANLIB
17553 old_archive_cmds=$lt_old_archive_cmds
17554 old_postinstall_cmds=$lt_old_postinstall_cmds
17555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17556
17557 # Create an old-style archive from a shared archive.
17558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17559
17560 # Create a temporary old-style archive to link instead of a shared archive.
17561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17562
17563 # Commands used to build and install a shared archive.
17564 archive_cmds=$lt_archive_cmds
17565 archive_expsym_cmds=$lt_archive_expsym_cmds
17566 postinstall_cmds=$lt_postinstall_cmds
17567 postuninstall_cmds=$lt_postuninstall_cmds
17568
17569 # Commands used to build a loadable module (assumed same as above if empty)
17570 module_cmds=$lt_module_cmds
17571 module_expsym_cmds=$lt_module_expsym_cmds
17572
17573 # Commands to strip libraries.
17574 old_striplib=$lt_old_striplib
17575 striplib=$lt_striplib
17576
17577 # Dependencies to place before the objects being linked to create a
17578 # shared library.
17579 predep_objects=$lt_predep_objects
17580
17581 # Dependencies to place after the objects being linked to create a
17582 # shared library.
17583 postdep_objects=$lt_postdep_objects
17584
17585 # Dependencies to place before the objects being linked to create a
17586 # shared library.
17587 predeps=$lt_predeps
17588
17589 # Dependencies to place after the objects being linked to create a
17590 # shared library.
17591 postdeps=$lt_postdeps
17592
17593 # The library search path used internally by the compiler when linking
17594 # a shared library.
17595 compiler_lib_search_path=$lt_compiler_lib_search_path
17596
17597 # Method to check whether dependent libraries are shared objects.
17598 deplibs_check_method=$lt_deplibs_check_method
17599
17600 # Command to use when deplibs_check_method == file_magic.
17601 file_magic_cmd=$lt_file_magic_cmd
17602
17603 # Flag that allows shared libraries with undefined symbols to be built.
17604 allow_undefined_flag=$lt_allow_undefined_flag
17605
17606 # Flag that forces no undefined symbols.
17607 no_undefined_flag=$lt_no_undefined_flag
17608
17609 # Commands used to finish a libtool library installation in a directory.
17610 finish_cmds=$lt_finish_cmds
17611
17612 # Same as above, but a single script fragment to be evaled but not shown.
17613 finish_eval=$lt_finish_eval
17614
17615 # Take the output of nm and produce a listing of raw symbols and C names.
17616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17617
17618 # Transform the output of nm in a proper C declaration
17619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17620
17621 # Transform the output of nm in a C name address pair
17622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17623
17624 # This is the shared library runtime path variable.
17625 runpath_var=$runpath_var
17626
17627 # This is the shared library path variable.
17628 shlibpath_var=$shlibpath_var
17629
17630 # Is shlibpath searched before the hard-coded library search path?
17631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17632
17633 # How to hardcode a shared library path into an executable.
17634 hardcode_action=$hardcode_action
17635
17636 # Whether we should hardcode library paths into libraries.
17637 hardcode_into_libs=$hardcode_into_libs
17638
17639 # Flag to hardcode \$libdir into a binary during linking.
17640 # This must work even if \$libdir does not exist.
17641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17642
17643 # If ld is used when linking, flag to hardcode \$libdir into
17644 # a binary during linking. This must work even if \$libdir does
17645 # not exist.
17646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17647
17648 # Whether we need a single -rpath flag with a separated argument.
17649 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17650
17651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17652 # resulting binary.
17653 hardcode_direct=$hardcode_direct
17654
17655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17656 # resulting binary.
17657 hardcode_minus_L=$hardcode_minus_L
17658
17659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17660 # the resulting binary.
17661 hardcode_shlibpath_var=$hardcode_shlibpath_var
17662
17663 # Set to yes if building a shared library automatically hardcodes DIR into the library
17664 # and all subsequent libraries and executables linked against it.
17665 hardcode_automatic=$hardcode_automatic
17666
17667 # Variables whose values should be saved in libtool wrapper scripts and
17668 # restored at relink time.
17669 variables_saved_for_relink="$variables_saved_for_relink"
17670
17671 # Whether libtool must link a program against all its dependency libraries.
17672 link_all_deplibs=$link_all_deplibs
17673
17674 # Compile-time system search path for libraries
17675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17676
17677 # Run-time system search path for libraries
17678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17679
17680 # Fix the shell variable \$srcfile for the compiler.
17681 fix_srcfile_path="$fix_srcfile_path"
17682
17683 # Set to yes if exported symbols are required.
17684 always_export_symbols=$always_export_symbols
17685
17686 # The commands to list exported symbols.
17687 export_symbols_cmds=$lt_export_symbols_cmds
17688
17689 # The commands to extract the exported symbol list from a shared archive.
17690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17691
17692 # Symbols that should not be listed in the preloaded symbols.
17693 exclude_expsyms=$lt_exclude_expsyms
17694
17695 # Symbols that must always be exported.
17696 include_expsyms=$lt_include_expsyms
17697
17698 # ### END LIBTOOL CONFIG
17699
17700 __EOF__
17701
17702
17703   case $host_os in
17704   aix3*)
17705     cat <<\EOF >> "$cfgfile"
17706
17707 # AIX sometimes has problems with the GCC collect2 program.  For some
17708 # reason, if we set the COLLECT_NAMES environment variable, the problems
17709 # vanish in a puff of smoke.
17710 if test "X${COLLECT_NAMES+set}" != Xset; then
17711   COLLECT_NAMES=
17712   export COLLECT_NAMES
17713 fi
17714 EOF
17715     ;;
17716   esac
17717
17718   # We use sed instead of cat because bash on DJGPP gets confused if
17719   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17720   # text mode, it properly converts lines to CR/LF.  This bash problem
17721   # is reportedly fixed, but why not run on old versions too?
17722   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17723
17724   mv -f "$cfgfile" "$ofile" || \
17725     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17726   chmod +x "$ofile"
17727
17728 else
17729   # If there is no Makefile yet, we rely on a make rule to execute
17730   # `config.status --recheck' to rerun these tests and create the
17731   # libtool script then.
17732   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17733   if test -f "$ltmain_in"; then
17734     test -f Makefile && make "$ltmain"
17735   fi
17736 fi
17737
17738
17739 ac_ext=c
17740 ac_cpp='$CPP $CPPFLAGS'
17741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17744
17745 CC="$lt_save_CC"
17746
17747
17748 # Check whether --with-tags was given.
17749 if test "${with_tags+set}" = set; then
17750   withval=$with_tags; tagnames="$withval"
17751 fi
17752
17753
17754 if test -f "$ltmain" && test -n "$tagnames"; then
17755   if test ! -f "${ofile}"; then
17756     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17757 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17758   fi
17759
17760   if test -z "$LTCC"; then
17761     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17762     if test -z "$LTCC"; then
17763       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17764 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17765     else
17766       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17767 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17768     fi
17769   fi
17770   if test -z "$LTCFLAGS"; then
17771     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17772   fi
17773
17774   # Extract list of available tagged configurations in $ofile.
17775   # Note that this assumes the entire list is on one line.
17776   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17777
17778   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17779   for tagname in $tagnames; do
17780     IFS="$lt_save_ifs"
17781     # Check whether tagname contains only valid characters
17782     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17783     "") ;;
17784     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17785 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17786    { (exit 1); exit 1; }; }
17787         ;;
17788     esac
17789
17790     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17791     then
17792       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17793 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17794    { (exit 1); exit 1; }; }
17795     fi
17796
17797     # Update the list of available tags.
17798     if test -n "$tagname"; then
17799       echo appending configuration tag \"$tagname\" to $ofile
17800
17801       case $tagname in
17802       CXX)
17803         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17804             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17805             (test "X$CXX" != "Xg++"))) ; then
17806           ac_ext=cpp
17807 ac_cpp='$CXXCPP $CPPFLAGS'
17808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17811
17812
17813
17814
17815 archive_cmds_need_lc_CXX=no
17816 allow_undefined_flag_CXX=
17817 always_export_symbols_CXX=no
17818 archive_expsym_cmds_CXX=
17819 export_dynamic_flag_spec_CXX=
17820 hardcode_direct_CXX=no
17821 hardcode_libdir_flag_spec_CXX=
17822 hardcode_libdir_flag_spec_ld_CXX=
17823 hardcode_libdir_separator_CXX=
17824 hardcode_minus_L_CXX=no
17825 hardcode_shlibpath_var_CXX=unsupported
17826 hardcode_automatic_CXX=no
17827 module_cmds_CXX=
17828 module_expsym_cmds_CXX=
17829 link_all_deplibs_CXX=unknown
17830 old_archive_cmds_CXX=$old_archive_cmds
17831 no_undefined_flag_CXX=
17832 whole_archive_flag_spec_CXX=
17833 enable_shared_with_static_runtimes_CXX=no
17834
17835 # Dependencies to place before and after the object being linked:
17836 predep_objects_CXX=
17837 postdep_objects_CXX=
17838 predeps_CXX=
17839 postdeps_CXX=
17840 compiler_lib_search_path_CXX=
17841
17842 # Source file extension for C++ test sources.
17843 ac_ext=cpp
17844
17845 # Object file extension for compiled C++ test sources.
17846 objext=o
17847 objext_CXX=$objext
17848
17849 # Code to be used in simple compile tests
17850 lt_simple_compile_test_code="int some_variable = 0;\n"
17851
17852 # Code to be used in simple link tests
17853 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17854
17855 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17856
17857 # If no C compiler was specified, use CC.
17858 LTCC=${LTCC-"$CC"}
17859
17860 # If no C compiler flags were specified, use CFLAGS.
17861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17862
17863 # Allow CC to be a program name with arguments.
17864 compiler=$CC
17865
17866
17867 # save warnings/boilerplate of simple test code
17868 ac_outfile=conftest.$ac_objext
17869 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17870 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17871 _lt_compiler_boilerplate=`cat conftest.err`
17872 $rm conftest*
17873
17874 ac_outfile=conftest.$ac_objext
17875 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17876 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17877 _lt_linker_boilerplate=`cat conftest.err`
17878 $rm conftest*
17879
17880
17881 # Allow CC to be a program name with arguments.
17882 lt_save_CC=$CC
17883 lt_save_LD=$LD
17884 lt_save_GCC=$GCC
17885 GCC=$GXX
17886 lt_save_with_gnu_ld=$with_gnu_ld
17887 lt_save_path_LD=$lt_cv_path_LD
17888 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17889   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17890 else
17891   $as_unset lt_cv_prog_gnu_ld
17892 fi
17893 if test -n "${lt_cv_path_LDCXX+set}"; then
17894   lt_cv_path_LD=$lt_cv_path_LDCXX
17895 else
17896   $as_unset lt_cv_path_LD
17897 fi
17898 test -z "${LDCXX+set}" || LD=$LDCXX
17899 CC=${CXX-"c++"}
17900 compiler=$CC
17901 compiler_CXX=$CC
17902 for cc_temp in $compiler""; do
17903   case $cc_temp in
17904     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17905     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17906     \-*) ;;
17907     *) break;;
17908   esac
17909 done
17910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17911
17912
17913 # We don't want -fno-exception wen compiling C++ code, so set the
17914 # no_builtin_flag separately
17915 if test "$GXX" = yes; then
17916   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17917 else
17918   lt_prog_compiler_no_builtin_flag_CXX=
17919 fi
17920
17921 if test "$GXX" = yes; then
17922   # Set up default GNU C++ configuration
17923
17924
17925 # Check whether --with-gnu-ld was given.
17926 if test "${with_gnu_ld+set}" = set; then
17927   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17928 else
17929   with_gnu_ld=no
17930 fi
17931
17932 ac_prog=ld
17933 if test "$GCC" = yes; then
17934   # Check if gcc -print-prog-name=ld gives a path.
17935   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17936 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17937   case $host in
17938   *-*-mingw*)
17939     # gcc leaves a trailing carriage return which upsets mingw
17940     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17941   *)
17942     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17943   esac
17944   case $ac_prog in
17945     # Accept absolute paths.
17946     [\\/]* | ?:[\\/]*)
17947       re_direlt='/[^/][^/]*/\.\./'
17948       # Canonicalize the pathname of ld
17949       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17950       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17951         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17952       done
17953       test -z "$LD" && LD="$ac_prog"
17954       ;;
17955   "")
17956     # If it fails, then pretend we aren't using GCC.
17957     ac_prog=ld
17958     ;;
17959   *)
17960     # If it is relative, then search for the first ld in PATH.
17961     with_gnu_ld=unknown
17962     ;;
17963   esac
17964 elif test "$with_gnu_ld" = yes; then
17965   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17966 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17967 else
17968   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17969 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17970 fi
17971 if test "${lt_cv_path_LD+set}" = set; then
17972   echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17974   if test -z "$LD"; then
17975   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17976   for ac_dir in $PATH; do
17977     IFS="$lt_save_ifs"
17978     test -z "$ac_dir" && ac_dir=.
17979     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17980       lt_cv_path_LD="$ac_dir/$ac_prog"
17981       # Check to see if the program is GNU ld.  I'd rather use --version,
17982       # but apparently some variants of GNU ld only accept -v.
17983       # Break only if it was the GNU/non-GNU ld that we prefer.
17984       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17985       *GNU* | *'with BFD'*)
17986         test "$with_gnu_ld" != no && break
17987         ;;
17988       *)
17989         test "$with_gnu_ld" != yes && break
17990         ;;
17991       esac
17992     fi
17993   done
17994   IFS="$lt_save_ifs"
17995 else
17996   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17997 fi
17998 fi
17999
18000 LD="$lt_cv_path_LD"
18001 if test -n "$LD"; then
18002   { echo "$as_me:$LINENO: result: $LD" >&5
18003 echo "${ECHO_T}$LD" >&6; }
18004 else
18005   { echo "$as_me:$LINENO: result: no" >&5
18006 echo "${ECHO_T}no" >&6; }
18007 fi
18008 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18009 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18010    { (exit 1); exit 1; }; }
18011 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18012 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18013 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18014   echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18017 case `$LD -v 2>&1 </dev/null` in
18018 *GNU* | *'with BFD'*)
18019   lt_cv_prog_gnu_ld=yes
18020   ;;
18021 *)
18022   lt_cv_prog_gnu_ld=no
18023   ;;
18024 esac
18025 fi
18026 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18027 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18028 with_gnu_ld=$lt_cv_prog_gnu_ld
18029
18030
18031
18032   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18033   # archiving commands below assume that GNU ld is being used.
18034   if test "$with_gnu_ld" = yes; then
18035     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036     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'
18037
18038     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18039     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18040
18041     # If archive_cmds runs LD, not CC, wlarc should be empty
18042     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18043     #     investigate it a little bit more. (MM)
18044     wlarc='${wl}'
18045
18046     # ancient GNU ld didn't support --whole-archive et. al.
18047     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18048         grep 'no-whole-archive' > /dev/null; then
18049       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18050     else
18051       whole_archive_flag_spec_CXX=
18052     fi
18053   else
18054     with_gnu_ld=no
18055     wlarc=
18056
18057     # A generic and very simple default shared library creation
18058     # command for GNU C++ for the case where it uses the native
18059     # linker, instead of GNU ld.  If possible, this setting should
18060     # overridden to take advantage of the native linker features on
18061     # the platform it is being used on.
18062     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18063   fi
18064
18065   # Commands to make compiler produce verbose output that lists
18066   # what "hidden" libraries, object files and flags are used when
18067   # linking a shared library.
18068   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18069
18070 else
18071   GXX=no
18072   with_gnu_ld=no
18073   wlarc=
18074 fi
18075
18076 # PORTME: fill in a description of your system's C++ link characteristics
18077 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18079 ld_shlibs_CXX=yes
18080 case $host_os in
18081   aix3*)
18082     # FIXME: insert proper C++ library support
18083     ld_shlibs_CXX=no
18084     ;;
18085   aix4* | aix5*)
18086     if test "$host_cpu" = ia64; then
18087       # On IA64, the linker does run time linking by default, so we don't
18088       # have to do anything special.
18089       aix_use_runtimelinking=no
18090       exp_sym_flag='-Bexport'
18091       no_entry_flag=""
18092     else
18093       aix_use_runtimelinking=no
18094
18095       # Test if we are trying to use run time linking or normal
18096       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18097       # need to do runtime linking.
18098       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18099         for ld_flag in $LDFLAGS; do
18100           case $ld_flag in
18101           *-brtl*)
18102             aix_use_runtimelinking=yes
18103             break
18104             ;;
18105           esac
18106         done
18107         ;;
18108       esac
18109
18110       exp_sym_flag='-bexport'
18111       no_entry_flag='-bnoentry'
18112     fi
18113
18114     # When large executables or shared objects are built, AIX ld can
18115     # have problems creating the table of contents.  If linking a library
18116     # or program results in "error TOC overflow" add -mminimal-toc to
18117     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18118     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18119
18120     archive_cmds_CXX=''
18121     hardcode_direct_CXX=yes
18122     hardcode_libdir_separator_CXX=':'
18123     link_all_deplibs_CXX=yes
18124
18125     if test "$GXX" = yes; then
18126       case $host_os in aix4.[012]|aix4.[012].*)
18127       # We only want to do this on AIX 4.2 and lower, the check
18128       # below for broken collect2 doesn't work under 4.3+
18129         collect2name=`${CC} -print-prog-name=collect2`
18130         if test -f "$collect2name" && \
18131            strings "$collect2name" | grep resolve_lib_name >/dev/null
18132         then
18133           # We have reworked collect2
18134           hardcode_direct_CXX=yes
18135         else
18136           # We have old collect2
18137           hardcode_direct_CXX=unsupported
18138           # It fails to find uninstalled libraries when the uninstalled
18139           # path is not listed in the libpath.  Setting hardcode_minus_L
18140           # to unsupported forces relinking
18141           hardcode_minus_L_CXX=yes
18142           hardcode_libdir_flag_spec_CXX='-L$libdir'
18143           hardcode_libdir_separator_CXX=
18144         fi
18145         ;;
18146       esac
18147       shared_flag='-shared'
18148       if test "$aix_use_runtimelinking" = yes; then
18149         shared_flag="$shared_flag "'${wl}-G'
18150       fi
18151     else
18152       # not using gcc
18153       if test "$host_cpu" = ia64; then
18154         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18155         # chokes on -Wl,-G. The following line is correct:
18156         shared_flag='-G'
18157       else
18158         if test "$aix_use_runtimelinking" = yes; then
18159           shared_flag='${wl}-G'
18160         else
18161           shared_flag='${wl}-bM:SRE'
18162         fi
18163       fi
18164     fi
18165
18166     # It seems that -bexpall does not export symbols beginning with
18167     # underscore (_), so it is better to generate a list of symbols to export.
18168     always_export_symbols_CXX=yes
18169     if test "$aix_use_runtimelinking" = yes; then
18170       # Warning - without using the other runtime loading flags (-brtl),
18171       # -berok will link without error, but may produce a broken library.
18172       allow_undefined_flag_CXX='-berok'
18173       # Determine the default libpath from the value encoded in an empty executable.
18174       cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 int
18182 main ()
18183 {
18184
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (ac_try="$ac_link"
18191 case "(($ac_try" in
18192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193   *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196   (eval "$ac_link") 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18204   { (case "(($ac_try" in
18205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206   *) ac_try_echo=$ac_try;;
18207 esac
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209   (eval "$ac_try") 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; } &&
18213          { ac_try='test -s conftest$ac_exeext'
18214   { (case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_try") 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223
18224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18225 }'`
18226 # Check for a 64-bit object if we didn't find anything.
18227 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; }
18228 }'`; fi
18229 else
18230   echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233
18234 fi
18235
18236 rm -f core conftest.err conftest.$ac_objext \
18237       conftest$ac_exeext conftest.$ac_ext
18238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18239
18240       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18241
18242       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"
18243      else
18244       if test "$host_cpu" = ia64; then
18245         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18246         allow_undefined_flag_CXX="-z nodefs"
18247         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"
18248       else
18249         # Determine the default libpath from the value encoded in an empty executable.
18250         cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256
18257 int
18258 main ()
18259 {
18260
18261   ;
18262   return 0;
18263 }
18264 _ACEOF
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_link") 2>conftest.er1
18273   ac_status=$?
18274   grep -v '^ *+' conftest.er1 >conftest.err
18275   rm -f conftest.er1
18276   cat conftest.err >&5
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); } &&
18279          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18280   { (case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; } &&
18289          { ac_try='test -s conftest$ac_exeext'
18290   { (case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; }; then
18299
18300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18301 }'`
18302 # Check for a 64-bit object if we didn't find anything.
18303 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; }
18304 }'`; fi
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309
18310 fi
18311
18312 rm -f core conftest.err conftest.$ac_objext \
18313       conftest$ac_exeext conftest.$ac_ext
18314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18315
18316         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18317         # Warning - without using the other run time loading flags,
18318         # -berok will link without error, but may produce a broken library.
18319         no_undefined_flag_CXX=' ${wl}-bernotok'
18320         allow_undefined_flag_CXX=' ${wl}-berok'
18321         # Exported symbols can be pulled into shared objects from archives
18322         whole_archive_flag_spec_CXX='$convenience'
18323         archive_cmds_need_lc_CXX=yes
18324         # This is similar to how AIX traditionally builds its shared libraries.
18325         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'
18326       fi
18327     fi
18328     ;;
18329
18330   beos*)
18331     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18332       allow_undefined_flag_CXX=unsupported
18333       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18334       # support --undefined.  This deserves some investigation.  FIXME
18335       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18336     else
18337       ld_shlibs_CXX=no
18338     fi
18339     ;;
18340
18341   chorus*)
18342     case $cc_basename in
18343       *)
18344         # FIXME: insert proper C++ library support
18345         ld_shlibs_CXX=no
18346         ;;
18347     esac
18348     ;;
18349
18350   cygwin* | mingw* | pw32*)
18351     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18352     # as there is no search path for DLLs.
18353     hardcode_libdir_flag_spec_CXX='-L$libdir'
18354     allow_undefined_flag_CXX=unsupported
18355     always_export_symbols_CXX=no
18356     enable_shared_with_static_runtimes_CXX=yes
18357
18358     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18359       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'
18360       # If the export-symbols file already is a .def file (1st line
18361       # is EXPORTS), use it as is; otherwise, prepend...
18362       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18363         cp $export_symbols $output_objdir/$soname.def;
18364       else
18365         echo EXPORTS > $output_objdir/$soname.def;
18366         cat $export_symbols >> $output_objdir/$soname.def;
18367       fi~
18368       $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'
18369     else
18370       ld_shlibs_CXX=no
18371     fi
18372   ;;
18373       darwin* | rhapsody*)
18374         case $host_os in
18375         rhapsody* | darwin1.[012])
18376          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18377          ;;
18378        *) # Darwin 1.3 on
18379          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18380            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18381          else
18382            case ${MACOSX_DEPLOYMENT_TARGET} in
18383              10.[012])
18384                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18385                ;;
18386              10.*)
18387                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18388                ;;
18389            esac
18390          fi
18391          ;;
18392         esac
18393       archive_cmds_need_lc_CXX=no
18394       hardcode_direct_CXX=no
18395       hardcode_automatic_CXX=yes
18396       hardcode_shlibpath_var_CXX=unsupported
18397       whole_archive_flag_spec_CXX=''
18398       link_all_deplibs_CXX=yes
18399
18400     if test "$GXX" = yes ; then
18401       lt_int_apple_cc_single_mod=no
18402       output_verbose_link_cmd='echo'
18403       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18404        lt_int_apple_cc_single_mod=yes
18405       fi
18406       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18407        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18408       else
18409           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'
18410         fi
18411         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18412         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18413           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18414             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}'
18415           else
18416             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}'
18417           fi
18418             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}'
18419       else
18420       case $cc_basename in
18421         xlc*)
18422          output_verbose_link_cmd='echo'
18423           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'
18424           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18425           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18426           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}'
18427           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}'
18428           ;;
18429        *)
18430          ld_shlibs_CXX=no
18431           ;;
18432       esac
18433       fi
18434         ;;
18435
18436   dgux*)
18437     case $cc_basename in
18438       ec++*)
18439         # FIXME: insert proper C++ library support
18440         ld_shlibs_CXX=no
18441         ;;
18442       ghcx*)
18443         # Green Hills C++ Compiler
18444         # FIXME: insert proper C++ library support
18445         ld_shlibs_CXX=no
18446         ;;
18447       *)
18448         # FIXME: insert proper C++ library support
18449         ld_shlibs_CXX=no
18450         ;;
18451     esac
18452     ;;
18453   freebsd[12]*)
18454     # C++ shared libraries reported to be fairly broken before switch to ELF
18455     ld_shlibs_CXX=no
18456     ;;
18457   freebsd-elf*)
18458     archive_cmds_need_lc_CXX=no
18459     ;;
18460   freebsd* | kfreebsd*-gnu | dragonfly*)
18461     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18462     # conventions
18463     ld_shlibs_CXX=yes
18464     ;;
18465   gnu*)
18466     ;;
18467   hpux9*)
18468     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18469     hardcode_libdir_separator_CXX=:
18470     export_dynamic_flag_spec_CXX='${wl}-E'
18471     hardcode_direct_CXX=yes
18472     hardcode_minus_L_CXX=yes # Not in the search PATH,
18473                                 # but as the default
18474                                 # location of the library.
18475
18476     case $cc_basename in
18477     CC*)
18478       # FIXME: insert proper C++ library support
18479       ld_shlibs_CXX=no
18480       ;;
18481     aCC*)
18482       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'
18483       # Commands to make compiler produce verbose output that lists
18484       # what "hidden" libraries, object files and flags are used when
18485       # linking a shared library.
18486       #
18487       # There doesn't appear to be a way to prevent this compiler from
18488       # explicitly linking system object files so we need to strip them
18489       # from the output so that they don't get included in the library
18490       # dependencies.
18491       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'
18492       ;;
18493     *)
18494       if test "$GXX" = yes; then
18495         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'
18496       else
18497         # FIXME: insert proper C++ library support
18498         ld_shlibs_CXX=no
18499       fi
18500       ;;
18501     esac
18502     ;;
18503   hpux10*|hpux11*)
18504     if test $with_gnu_ld = no; then
18505       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18506       hardcode_libdir_separator_CXX=:
18507
18508       case $host_cpu in
18509       hppa*64*|ia64*)
18510         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18511         ;;
18512       *)
18513         export_dynamic_flag_spec_CXX='${wl}-E'
18514         ;;
18515       esac
18516     fi
18517     case $host_cpu in
18518     hppa*64*|ia64*)
18519       hardcode_direct_CXX=no
18520       hardcode_shlibpath_var_CXX=no
18521       ;;
18522     *)
18523       hardcode_direct_CXX=yes
18524       hardcode_minus_L_CXX=yes # Not in the search PATH,
18525                                               # but as the default
18526                                               # location of the library.
18527       ;;
18528     esac
18529
18530     case $cc_basename in
18531       CC*)
18532         # FIXME: insert proper C++ library support
18533         ld_shlibs_CXX=no
18534         ;;
18535       aCC*)
18536         case $host_cpu in
18537         hppa*64*)
18538           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18539           ;;
18540         ia64*)
18541           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18542           ;;
18543         *)
18544           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18545           ;;
18546         esac
18547         # Commands to make compiler produce verbose output that lists
18548         # what "hidden" libraries, object files and flags are used when
18549         # linking a shared library.
18550         #
18551         # There doesn't appear to be a way to prevent this compiler from
18552         # explicitly linking system object files so we need to strip them
18553         # from the output so that they don't get included in the library
18554         # dependencies.
18555         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'
18556         ;;
18557       *)
18558         if test "$GXX" = yes; then
18559           if test $with_gnu_ld = no; then
18560             case $host_cpu in
18561             hppa*64*)
18562               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18563               ;;
18564             ia64*)
18565               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18566               ;;
18567             *)
18568               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'
18569               ;;
18570             esac
18571           fi
18572         else
18573           # FIXME: insert proper C++ library support
18574           ld_shlibs_CXX=no
18575         fi
18576         ;;
18577     esac
18578     ;;
18579   interix3*)
18580     hardcode_direct_CXX=no
18581     hardcode_shlibpath_var_CXX=no
18582     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18583     export_dynamic_flag_spec_CXX='${wl}-E'
18584     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585     # Instead, shared libraries are loaded at an image base (0x10000000 by
18586     # default) and relocated if they conflict, which is a slow very memory
18587     # consuming and fragmenting process.  To avoid this, we pick a random,
18588     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18590     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'
18591     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'
18592     ;;
18593   irix5* | irix6*)
18594     case $cc_basename in
18595       CC*)
18596         # SGI C++
18597         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'
18598
18599         # Archives containing C++ object files must be created using
18600         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18601         # necessary to make sure instantiated templates are included
18602         # in the archive.
18603         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18604         ;;
18605       *)
18606         if test "$GXX" = yes; then
18607           if test "$with_gnu_ld" = no; then
18608             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'
18609           else
18610             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'
18611           fi
18612         fi
18613         link_all_deplibs_CXX=yes
18614         ;;
18615     esac
18616     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18617     hardcode_libdir_separator_CXX=:
18618     ;;
18619   linux*)
18620     case $cc_basename in
18621       KCC*)
18622         # Kuck and Associates, Inc. (KAI) C++ Compiler
18623
18624         # KCC will only create a shared library if the output file
18625         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18626         # to its proper name (with version) after linking.
18627         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'
18628         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'
18629         # Commands to make compiler produce verbose output that lists
18630         # what "hidden" libraries, object files and flags are used when
18631         # linking a shared library.
18632         #
18633         # There doesn't appear to be a way to prevent this compiler from
18634         # explicitly linking system object files so we need to strip them
18635         # from the output so that they don't get included in the library
18636         # dependencies.
18637         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'
18638
18639         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18640         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641
18642         # Archives containing C++ object files must be created using
18643         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18644         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18645         ;;
18646       icpc*)
18647         # Intel C++
18648         with_gnu_ld=yes
18649         # version 8.0 and above of icpc choke on multiply defined symbols
18650         # if we add $predep_objects and $postdep_objects, however 7.1 and
18651         # earlier do not add the objects themselves.
18652         case `$CC -V 2>&1` in
18653         *"Version 7."*)
18654           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655           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'
18656           ;;
18657         *)  # Version 8.0 or newer
18658           tmp_idyn=
18659           case $host_cpu in
18660             ia64*) tmp_idyn=' -i_dynamic';;
18661           esac
18662           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663           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'
18664           ;;
18665         esac
18666         archive_cmds_need_lc_CXX=no
18667         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18669         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18670         ;;
18671       pgCC*)
18672         # Portland Group C++ compiler
18673         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18674         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'
18675
18676         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18677         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18678         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'
18679         ;;
18680       cxx*)
18681         # Compaq C++
18682         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18683         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'
18684
18685         runpath_var=LD_RUN_PATH
18686         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18687         hardcode_libdir_separator_CXX=:
18688
18689         # Commands to make compiler produce verbose output that lists
18690         # what "hidden" libraries, object files and flags are used when
18691         # linking a shared library.
18692         #
18693         # There doesn't appear to be a way to prevent this compiler from
18694         # explicitly linking system object files so we need to strip them
18695         # from the output so that they don't get included in the library
18696         # dependencies.
18697         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'
18698         ;;
18699     esac
18700     ;;
18701   lynxos*)
18702     # FIXME: insert proper C++ library support
18703     ld_shlibs_CXX=no
18704     ;;
18705   m88k*)
18706     # FIXME: insert proper C++ library support
18707     ld_shlibs_CXX=no
18708     ;;
18709   mvs*)
18710     case $cc_basename in
18711       cxx*)
18712         # FIXME: insert proper C++ library support
18713         ld_shlibs_CXX=no
18714         ;;
18715       *)
18716         # FIXME: insert proper C++ library support
18717         ld_shlibs_CXX=no
18718         ;;
18719     esac
18720     ;;
18721   netbsd*)
18722     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18723       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18724       wlarc=
18725       hardcode_libdir_flag_spec_CXX='-R$libdir'
18726       hardcode_direct_CXX=yes
18727       hardcode_shlibpath_var_CXX=no
18728     fi
18729     # Workaround some broken pre-1.5 toolchains
18730     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18731     ;;
18732   openbsd2*)
18733     # C++ shared libraries are fairly broken
18734     ld_shlibs_CXX=no
18735     ;;
18736   openbsd*)
18737     hardcode_direct_CXX=yes
18738     hardcode_shlibpath_var_CXX=no
18739     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18740     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18741     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18742       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18743       export_dynamic_flag_spec_CXX='${wl}-E'
18744       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18745     fi
18746     output_verbose_link_cmd='echo'
18747     ;;
18748   osf3*)
18749     case $cc_basename in
18750       KCC*)
18751         # Kuck and Associates, Inc. (KAI) C++ Compiler
18752
18753         # KCC will only create a shared library if the output file
18754         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18755         # to its proper name (with version) after linking.
18756         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'
18757
18758         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18759         hardcode_libdir_separator_CXX=:
18760
18761         # Archives containing C++ object files must be created using
18762         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18763         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18764
18765         ;;
18766       RCC*)
18767         # Rational C++ 2.4.1
18768         # FIXME: insert proper C++ library support
18769         ld_shlibs_CXX=no
18770         ;;
18771       cxx*)
18772         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18773         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'
18774
18775         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18776         hardcode_libdir_separator_CXX=:
18777
18778         # Commands to make compiler produce verbose output that lists
18779         # what "hidden" libraries, object files and flags are used when
18780         # linking a shared library.
18781         #
18782         # There doesn't appear to be a way to prevent this compiler from
18783         # explicitly linking system object files so we need to strip them
18784         # from the output so that they don't get included in the library
18785         # dependencies.
18786         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'
18787         ;;
18788       *)
18789         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18790           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18791           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'
18792
18793           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18794           hardcode_libdir_separator_CXX=:
18795
18796           # Commands to make compiler produce verbose output that lists
18797           # what "hidden" libraries, object files and flags are used when
18798           # linking a shared library.
18799           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18800
18801         else
18802           # FIXME: insert proper C++ library support
18803           ld_shlibs_CXX=no
18804         fi
18805         ;;
18806     esac
18807     ;;
18808   osf4* | osf5*)
18809     case $cc_basename in
18810       KCC*)
18811         # Kuck and Associates, Inc. (KAI) C++ Compiler
18812
18813         # KCC will only create a shared library if the output file
18814         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18815         # to its proper name (with version) after linking.
18816         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'
18817
18818         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18819         hardcode_libdir_separator_CXX=:
18820
18821         # Archives containing C++ object files must be created using
18822         # the KAI C++ compiler.
18823         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18824         ;;
18825       RCC*)
18826         # Rational C++ 2.4.1
18827         # FIXME: insert proper C++ library support
18828         ld_shlibs_CXX=no
18829         ;;
18830       cxx*)
18831         allow_undefined_flag_CXX=' -expect_unresolved \*'
18832         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'
18833         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18834           echo "-hidden">> $lib.exp~
18835           $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~
18836           $rm $lib.exp'
18837
18838         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18839         hardcode_libdir_separator_CXX=:
18840
18841         # Commands to make compiler produce verbose output that lists
18842         # what "hidden" libraries, object files and flags are used when
18843         # linking a shared library.
18844         #
18845         # There doesn't appear to be a way to prevent this compiler from
18846         # explicitly linking system object files so we need to strip them
18847         # from the output so that they don't get included in the library
18848         # dependencies.
18849         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'
18850         ;;
18851       *)
18852         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18853           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18854          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'
18855
18856           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18857           hardcode_libdir_separator_CXX=:
18858
18859           # Commands to make compiler produce verbose output that lists
18860           # what "hidden" libraries, object files and flags are used when
18861           # linking a shared library.
18862           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18863
18864         else
18865           # FIXME: insert proper C++ library support
18866           ld_shlibs_CXX=no
18867         fi
18868         ;;
18869     esac
18870     ;;
18871   psos*)
18872     # FIXME: insert proper C++ library support
18873     ld_shlibs_CXX=no
18874     ;;
18875   sunos4*)
18876     case $cc_basename in
18877       CC*)
18878         # Sun C++ 4.x
18879         # FIXME: insert proper C++ library support
18880         ld_shlibs_CXX=no
18881         ;;
18882       lcc*)
18883         # Lucid
18884         # FIXME: insert proper C++ library support
18885         ld_shlibs_CXX=no
18886         ;;
18887       *)
18888         # FIXME: insert proper C++ library support
18889         ld_shlibs_CXX=no
18890         ;;
18891     esac
18892     ;;
18893   solaris*)
18894     case $cc_basename in
18895       CC*)
18896         # Sun C++ 4.2, 5.x and Centerline C++
18897         archive_cmds_need_lc_CXX=yes
18898         no_undefined_flag_CXX=' -zdefs'
18899         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18900         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18901         $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'
18902
18903         hardcode_libdir_flag_spec_CXX='-R$libdir'
18904         hardcode_shlibpath_var_CXX=no
18905         case $host_os in
18906           solaris2.[0-5] | solaris2.[0-5].*) ;;
18907           *)
18908             # The C++ compiler is used as linker so we must use $wl
18909             # flag to pass the commands to the underlying system
18910             # linker. We must also pass each convience library through
18911             # to the system linker between allextract/defaultextract.
18912             # The C++ compiler will combine linker options so we
18913             # cannot just pass the convience library names through
18914             # without $wl.
18915             # Supported since Solaris 2.6 (maybe 2.5.1?)
18916             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'
18917             ;;
18918         esac
18919         link_all_deplibs_CXX=yes
18920
18921         output_verbose_link_cmd='echo'
18922
18923         # Archives containing C++ object files must be created using
18924         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18925         # necessary to make sure instantiated templates are included
18926         # in the archive.
18927         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18928         ;;
18929       gcx*)
18930         # Green Hills C++ Compiler
18931         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18932
18933         # The C++ compiler must be used to create the archive.
18934         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18935         ;;
18936       *)
18937         # GNU C++ compiler with Solaris linker
18938         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18939           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18940           if $CC --version | grep -v '^2\.7' > /dev/null; then
18941             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18942             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18943                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18944
18945             # Commands to make compiler produce verbose output that lists
18946             # what "hidden" libraries, object files and flags are used when
18947             # linking a shared library.
18948             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18949           else
18950             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18951             # platform.
18952             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18953             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18954                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18955
18956             # Commands to make compiler produce verbose output that lists
18957             # what "hidden" libraries, object files and flags are used when
18958             # linking a shared library.
18959             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18960           fi
18961
18962           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18963         fi
18964         ;;
18965     esac
18966     ;;
18967   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18968     no_undefined_flag_CXX='${wl}-z,text'
18969     archive_cmds_need_lc_CXX=no
18970     hardcode_shlibpath_var_CXX=no
18971     runpath_var='LD_RUN_PATH'
18972
18973     case $cc_basename in
18974       CC*)
18975         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18976         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18977         ;;
18978       *)
18979         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18980         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18981         ;;
18982     esac
18983     ;;
18984   sysv5* | sco3.2v5* | sco5v6*)
18985     # Note: We can NOT use -z defs as we might desire, because we do not
18986     # link with -lc, and that would cause any symbols used from libc to
18987     # always be unresolved, which means just about no library would
18988     # ever link correctly.  If we're not using GNU ld we use -z text
18989     # though, which does catch some bad symbols but isn't as heavy-handed
18990     # as -z defs.
18991     # For security reasons, it is highly recommended that you always
18992     # use absolute paths for naming shared libraries, and exclude the
18993     # DT_RUNPATH tag from executables and libraries.  But doing so
18994     # requires that you compile everything twice, which is a pain.
18995     # So that behaviour is only enabled if SCOABSPATH is set to a
18996     # non-empty value in the environment.  Most likely only useful for
18997     # creating official distributions of packages.
18998     # This is a hack until libtool officially supports absolute path
18999     # names for shared libraries.
19000     no_undefined_flag_CXX='${wl}-z,text'
19001     allow_undefined_flag_CXX='${wl}-z,nodefs'
19002     archive_cmds_need_lc_CXX=no
19003     hardcode_shlibpath_var_CXX=no
19004     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19005     hardcode_libdir_separator_CXX=':'
19006     link_all_deplibs_CXX=yes
19007     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19008     runpath_var='LD_RUN_PATH'
19009
19010     case $cc_basename in
19011       CC*)
19012         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19013         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014         ;;
19015       *)
19016         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19018         ;;
19019     esac
19020     ;;
19021   tandem*)
19022     case $cc_basename in
19023       NCC*)
19024         # NonStop-UX NCC 3.20
19025         # FIXME: insert proper C++ library support
19026         ld_shlibs_CXX=no
19027         ;;
19028       *)
19029         # FIXME: insert proper C++ library support
19030         ld_shlibs_CXX=no
19031         ;;
19032     esac
19033     ;;
19034   vxworks*)
19035     # FIXME: insert proper C++ library support
19036     ld_shlibs_CXX=no
19037     ;;
19038   *)
19039     # FIXME: insert proper C++ library support
19040     ld_shlibs_CXX=no
19041     ;;
19042 esac
19043 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19044 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19045 test "$ld_shlibs_CXX" = no && can_build_shared=no
19046
19047 GCC_CXX="$GXX"
19048 LD_CXX="$LD"
19049
19050
19051 cat > conftest.$ac_ext <<EOF
19052 class Foo
19053 {
19054 public:
19055   Foo (void) { a = 0; }
19056 private:
19057   int a;
19058 };
19059 EOF
19060
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062   (eval $ac_compile) 2>&5
19063   ac_status=$?
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); }; then
19066   # Parse the compiler output and extract the necessary
19067   # objects, libraries and library flags.
19068
19069   # Sentinel used to keep track of whether or not we are before
19070   # the conftest object file.
19071   pre_test_object_deps_done=no
19072
19073   # The `*' in the case matches for architectures that use `case' in
19074   # $output_verbose_cmd can trigger glob expansion during the loop
19075   # eval without this substitution.
19076   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19077
19078   for p in `eval $output_verbose_link_cmd`; do
19079     case $p in
19080
19081     -L* | -R* | -l*)
19082        # Some compilers place space between "-{L,R}" and the path.
19083        # Remove the space.
19084        if test $p = "-L" \
19085           || test $p = "-R"; then
19086          prev=$p
19087          continue
19088        else
19089          prev=
19090        fi
19091
19092        if test "$pre_test_object_deps_done" = no; then
19093          case $p in
19094          -L* | -R*)
19095            # Internal compiler library paths should come after those
19096            # provided the user.  The postdeps already come after the
19097            # user supplied libs so there is no need to process them.
19098            if test -z "$compiler_lib_search_path_CXX"; then
19099              compiler_lib_search_path_CXX="${prev}${p}"
19100            else
19101              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19102            fi
19103            ;;
19104          # The "-l" case would never come before the object being
19105          # linked, so don't bother handling this case.
19106          esac
19107        else
19108          if test -z "$postdeps_CXX"; then
19109            postdeps_CXX="${prev}${p}"
19110          else
19111            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19112          fi
19113        fi
19114        ;;
19115
19116     *.$objext)
19117        # This assumes that the test object file only shows up
19118        # once in the compiler output.
19119        if test "$p" = "conftest.$objext"; then
19120          pre_test_object_deps_done=yes
19121          continue
19122        fi
19123
19124        if test "$pre_test_object_deps_done" = no; then
19125          if test -z "$predep_objects_CXX"; then
19126            predep_objects_CXX="$p"
19127          else
19128            predep_objects_CXX="$predep_objects_CXX $p"
19129          fi
19130        else
19131          if test -z "$postdep_objects_CXX"; then
19132            postdep_objects_CXX="$p"
19133          else
19134            postdep_objects_CXX="$postdep_objects_CXX $p"
19135          fi
19136        fi
19137        ;;
19138
19139     *) ;; # Ignore the rest.
19140
19141     esac
19142   done
19143
19144   # Clean up.
19145   rm -f a.out a.exe
19146 else
19147   echo "libtool.m4: error: problem compiling CXX test program"
19148 fi
19149
19150 $rm -f confest.$objext
19151
19152 # PORTME: override above test on systems where it is broken
19153 case $host_os in
19154 interix3*)
19155   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19156   # hack all around it, let's just trust "g++" to DTRT.
19157   predep_objects_CXX=
19158   postdep_objects_CXX=
19159   postdeps_CXX=
19160   ;;
19161
19162 solaris*)
19163   case $cc_basename in
19164   CC*)
19165     # Adding this requires a known-good setup of shared libraries for
19166     # Sun compiler versions before 5.6, else PIC objects from an old
19167     # archive will be linked into the output, leading to subtle bugs.
19168     postdeps_CXX='-lCstd -lCrun'
19169     ;;
19170   esac
19171   ;;
19172 esac
19173
19174
19175 case " $postdeps_CXX " in
19176 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19177 esac
19178
19179 lt_prog_compiler_wl_CXX=
19180 lt_prog_compiler_pic_CXX=
19181 lt_prog_compiler_static_CXX=
19182
19183 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19184 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19185
19186   # C++ specific cases for pic, static, wl, etc.
19187   if test "$GXX" = yes; then
19188     lt_prog_compiler_wl_CXX='-Wl,'
19189     lt_prog_compiler_static_CXX='-static'
19190
19191     case $host_os in
19192     aix*)
19193       # All AIX code is PIC.
19194       if test "$host_cpu" = ia64; then
19195         # AIX 5 now supports IA64 processor
19196         lt_prog_compiler_static_CXX='-Bstatic'
19197       fi
19198       ;;
19199     amigaos*)
19200       # FIXME: we need at least 68020 code to build shared libraries, but
19201       # adding the `-m68020' flag to GCC prevents building anything better,
19202       # like `-m68040'.
19203       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19204       ;;
19205     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19206       # PIC is the default for these OSes.
19207       ;;
19208     mingw* | os2* | pw32*)
19209       # This hack is so that the source file can tell whether it is being
19210       # built for inclusion in a dll (and should export symbols for example).
19211       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19212       ;;
19213     darwin* | rhapsody*)
19214       # PIC is the default on this platform
19215       # Common symbols not allowed in MH_DYLIB files
19216       lt_prog_compiler_pic_CXX='-fno-common'
19217       ;;
19218     *djgpp*)
19219       # DJGPP does not support shared libraries at all
19220       lt_prog_compiler_pic_CXX=
19221       ;;
19222     interix3*)
19223       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19224       # Instead, we relocate shared libraries at runtime.
19225       ;;
19226     sysv4*MP*)
19227       if test -d /usr/nec; then
19228         lt_prog_compiler_pic_CXX=-Kconform_pic
19229       fi
19230       ;;
19231     hpux*)
19232       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19233       # not for PA HP-UX.
19234       case $host_cpu in
19235       hppa*64*|ia64*)
19236         ;;
19237       *)
19238         lt_prog_compiler_pic_CXX='-fPIC'
19239         ;;
19240       esac
19241       ;;
19242     *)
19243       lt_prog_compiler_pic_CXX='-fPIC'
19244       ;;
19245     esac
19246   else
19247     case $host_os in
19248       aix4* | aix5*)
19249         # All AIX code is PIC.
19250         if test "$host_cpu" = ia64; then
19251           # AIX 5 now supports IA64 processor
19252           lt_prog_compiler_static_CXX='-Bstatic'
19253         else
19254           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19255         fi
19256         ;;
19257       chorus*)
19258         case $cc_basename in
19259         cxch68*)
19260           # Green Hills C++ Compiler
19261           # _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"
19262           ;;
19263         esac
19264         ;;
19265        darwin*)
19266          # PIC is the default on this platform
19267          # Common symbols not allowed in MH_DYLIB files
19268          case $cc_basename in
19269            xlc*)
19270            lt_prog_compiler_pic_CXX='-qnocommon'
19271            lt_prog_compiler_wl_CXX='-Wl,'
19272            ;;
19273          esac
19274        ;;
19275       dgux*)
19276         case $cc_basename in
19277           ec++*)
19278             lt_prog_compiler_pic_CXX='-KPIC'
19279             ;;
19280           ghcx*)
19281             # Green Hills C++ Compiler
19282             lt_prog_compiler_pic_CXX='-pic'
19283             ;;
19284           *)
19285             ;;
19286         esac
19287         ;;
19288       freebsd* | kfreebsd*-gnu | dragonfly*)
19289         # FreeBSD uses GNU C++
19290         ;;
19291       hpux9* | hpux10* | hpux11*)
19292         case $cc_basename in
19293           CC*)
19294             lt_prog_compiler_wl_CXX='-Wl,'
19295             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19296             if test "$host_cpu" != ia64; then
19297               lt_prog_compiler_pic_CXX='+Z'
19298             fi
19299             ;;
19300           aCC*)
19301             lt_prog_compiler_wl_CXX='-Wl,'
19302             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19303             case $host_cpu in
19304             hppa*64*|ia64*)
19305               # +Z the default
19306               ;;
19307             *)
19308               lt_prog_compiler_pic_CXX='+Z'
19309               ;;
19310             esac
19311             ;;
19312           *)
19313             ;;
19314         esac
19315         ;;
19316       interix*)
19317         # This is c89, which is MS Visual C++ (no shared libs)
19318         # Anyone wants to do a port?
19319         ;;
19320       irix5* | irix6* | nonstopux*)
19321         case $cc_basename in
19322           CC*)
19323             lt_prog_compiler_wl_CXX='-Wl,'
19324             lt_prog_compiler_static_CXX='-non_shared'
19325             # CC pic flag -KPIC is the default.
19326             ;;
19327           *)
19328             ;;
19329         esac
19330         ;;
19331       linux*)
19332         case $cc_basename in
19333           KCC*)
19334             # KAI C++ Compiler
19335             lt_prog_compiler_wl_CXX='--backend -Wl,'
19336             lt_prog_compiler_pic_CXX='-fPIC'
19337             ;;
19338           icpc* | ecpc*)
19339             # Intel C++
19340             lt_prog_compiler_wl_CXX='-Wl,'
19341             lt_prog_compiler_pic_CXX='-KPIC'
19342             lt_prog_compiler_static_CXX='-static'
19343             ;;
19344           pgCC*)
19345             # Portland Group C++ compiler.
19346             lt_prog_compiler_wl_CXX='-Wl,'
19347             lt_prog_compiler_pic_CXX='-fpic'
19348             lt_prog_compiler_static_CXX='-Bstatic'
19349             ;;
19350           cxx*)
19351             # Compaq C++
19352             # Make sure the PIC flag is empty.  It appears that all Alpha
19353             # Linux and Compaq Tru64 Unix objects are PIC.
19354             lt_prog_compiler_pic_CXX=
19355             lt_prog_compiler_static_CXX='-non_shared'
19356             ;;
19357           *)
19358             ;;
19359         esac
19360         ;;
19361       lynxos*)
19362         ;;
19363       m88k*)
19364         ;;
19365       mvs*)
19366         case $cc_basename in
19367           cxx*)
19368             lt_prog_compiler_pic_CXX='-W c,exportall'
19369             ;;
19370           *)
19371             ;;
19372         esac
19373         ;;
19374       netbsd*)
19375         ;;
19376       osf3* | osf4* | osf5*)
19377         case $cc_basename in
19378           KCC*)
19379             lt_prog_compiler_wl_CXX='--backend -Wl,'
19380             ;;
19381           RCC*)
19382             # Rational C++ 2.4.1
19383             lt_prog_compiler_pic_CXX='-pic'
19384             ;;
19385           cxx*)
19386             # Digital/Compaq C++
19387             lt_prog_compiler_wl_CXX='-Wl,'
19388             # Make sure the PIC flag is empty.  It appears that all Alpha
19389             # Linux and Compaq Tru64 Unix objects are PIC.
19390             lt_prog_compiler_pic_CXX=
19391             lt_prog_compiler_static_CXX='-non_shared'
19392             ;;
19393           *)
19394             ;;
19395         esac
19396         ;;
19397       psos*)
19398         ;;
19399       solaris*)
19400         case $cc_basename in
19401           CC*)
19402             # Sun C++ 4.2, 5.x and Centerline C++
19403             lt_prog_compiler_pic_CXX='-KPIC'
19404             lt_prog_compiler_static_CXX='-Bstatic'
19405             lt_prog_compiler_wl_CXX='-Qoption ld '
19406             ;;
19407           gcx*)
19408             # Green Hills C++ Compiler
19409             lt_prog_compiler_pic_CXX='-PIC'
19410             ;;
19411           *)
19412             ;;
19413         esac
19414         ;;
19415       sunos4*)
19416         case $cc_basename in
19417           CC*)
19418             # Sun C++ 4.x
19419             lt_prog_compiler_pic_CXX='-pic'
19420             lt_prog_compiler_static_CXX='-Bstatic'
19421             ;;
19422           lcc*)
19423             # Lucid
19424             lt_prog_compiler_pic_CXX='-pic'
19425             ;;
19426           *)
19427             ;;
19428         esac
19429         ;;
19430       tandem*)
19431         case $cc_basename in
19432           NCC*)
19433             # NonStop-UX NCC 3.20
19434             lt_prog_compiler_pic_CXX='-KPIC'
19435             ;;
19436           *)
19437             ;;
19438         esac
19439         ;;
19440       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19441         case $cc_basename in
19442           CC*)
19443             lt_prog_compiler_wl_CXX='-Wl,'
19444             lt_prog_compiler_pic_CXX='-KPIC'
19445             lt_prog_compiler_static_CXX='-Bstatic'
19446             ;;
19447         esac
19448         ;;
19449       vxworks*)
19450         ;;
19451       *)
19452         lt_prog_compiler_can_build_shared_CXX=no
19453         ;;
19454     esac
19455   fi
19456
19457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19458 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19459
19460 #
19461 # Check to make sure the PIC flag actually works.
19462 #
19463 if test -n "$lt_prog_compiler_pic_CXX"; then
19464
19465 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19467 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   lt_prog_compiler_pic_works_CXX=no
19471   ac_outfile=conftest.$ac_objext
19472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19473    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19474    # Insert the option either (1) after the last *FLAGS variable, or
19475    # (2) before a word containing "conftest.", or (3) at the end.
19476    # Note that $ac_compile itself does not contain backslashes and begins
19477    # with a dollar sign (not a hyphen), so the echo should work correctly.
19478    # The option is referenced via a variable to avoid confusing sed.
19479    lt_compile=`echo "$ac_compile" | $SED \
19480    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482    -e 's:$: $lt_compiler_flag:'`
19483    (eval echo "\"\$as_me:19483: $lt_compile\"" >&5)
19484    (eval "$lt_compile" 2>conftest.err)
19485    ac_status=$?
19486    cat conftest.err >&5
19487    echo "$as_me:19487: \$? = $ac_status" >&5
19488    if (exit $ac_status) && test -s "$ac_outfile"; then
19489      # The compiler can only warn and ignore the option if not recognized
19490      # So say no if there are warnings other than the usual output.
19491      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19492      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19493      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19494        lt_prog_compiler_pic_works_CXX=yes
19495      fi
19496    fi
19497    $rm conftest*
19498
19499 fi
19500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19501 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19502
19503 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19504     case $lt_prog_compiler_pic_CXX in
19505      "" | " "*) ;;
19506      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19507      esac
19508 else
19509     lt_prog_compiler_pic_CXX=
19510      lt_prog_compiler_can_build_shared_CXX=no
19511 fi
19512
19513 fi
19514 case $host_os in
19515   # For platforms which do not support PIC, -DPIC is meaningless:
19516   *djgpp*)
19517     lt_prog_compiler_pic_CXX=
19518     ;;
19519   *)
19520     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19521     ;;
19522 esac
19523
19524 #
19525 # Check to make sure the static flag actually works.
19526 #
19527 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19528 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19529 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19530 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   lt_prog_compiler_static_works_CXX=no
19534    save_LDFLAGS="$LDFLAGS"
19535    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19536    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19537    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19538      # The linker can only warn and ignore the option if not recognized
19539      # So say no if there are warnings
19540      if test -s conftest.err; then
19541        # Append any errors to the config.log.
19542        cat conftest.err 1>&5
19543        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19544        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19545        if diff conftest.exp conftest.er2 >/dev/null; then
19546          lt_prog_compiler_static_works_CXX=yes
19547        fi
19548      else
19549        lt_prog_compiler_static_works_CXX=yes
19550      fi
19551    fi
19552    $rm conftest*
19553    LDFLAGS="$save_LDFLAGS"
19554
19555 fi
19556 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19557 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19558
19559 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19560     :
19561 else
19562     lt_prog_compiler_static_CXX=
19563 fi
19564
19565
19566 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19567 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19568 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571   lt_cv_prog_compiler_c_o_CXX=no
19572    $rm -r conftest 2>/dev/null
19573    mkdir conftest
19574    cd conftest
19575    mkdir out
19576    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19577
19578    lt_compiler_flag="-o out/conftest2.$ac_objext"
19579    # Insert the option either (1) after the last *FLAGS variable, or
19580    # (2) before a word containing "conftest.", or (3) at the end.
19581    # Note that $ac_compile itself does not contain backslashes and begins
19582    # with a dollar sign (not a hyphen), so the echo should work correctly.
19583    lt_compile=`echo "$ac_compile" | $SED \
19584    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19586    -e 's:$: $lt_compiler_flag:'`
19587    (eval echo "\"\$as_me:19587: $lt_compile\"" >&5)
19588    (eval "$lt_compile" 2>out/conftest.err)
19589    ac_status=$?
19590    cat out/conftest.err >&5
19591    echo "$as_me:19591: \$? = $ac_status" >&5
19592    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19593    then
19594      # The compiler can only warn and ignore the option if not recognized
19595      # So say no if there are warnings
19596      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19597      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19598      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19599        lt_cv_prog_compiler_c_o_CXX=yes
19600      fi
19601    fi
19602    chmod u+w . 2>&5
19603    $rm conftest*
19604    # SGI C++ compiler will create directory out/ii_files/ for
19605    # template instantiation
19606    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19607    $rm out/* && rmdir out
19608    cd ..
19609    rmdir conftest
19610    $rm conftest*
19611
19612 fi
19613 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19614 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19615
19616
19617 hard_links="nottested"
19618 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19619   # do not overwrite the value of need_locks provided by the user
19620   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19621 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19622   hard_links=yes
19623   $rm conftest*
19624   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19625   touch conftest.a
19626   ln conftest.a conftest.b 2>&5 || hard_links=no
19627   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19628   { echo "$as_me:$LINENO: result: $hard_links" >&5
19629 echo "${ECHO_T}$hard_links" >&6; }
19630   if test "$hard_links" = no; then
19631     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19632 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19633     need_locks=warn
19634   fi
19635 else
19636   need_locks=no
19637 fi
19638
19639 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19640 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19641
19642   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19643   case $host_os in
19644   aix4* | aix5*)
19645     # If we're using GNU nm, then we don't want the "-C" option.
19646     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19647     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19648       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'
19649     else
19650       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'
19651     fi
19652     ;;
19653   pw32*)
19654     export_symbols_cmds_CXX="$ltdll_cmds"
19655   ;;
19656   cygwin* | mingw*)
19657     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'
19658   ;;
19659   *)
19660     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19661   ;;
19662   esac
19663
19664 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19665 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19666 test "$ld_shlibs_CXX" = no && can_build_shared=no
19667
19668 #
19669 # Do we need to explicitly link libc?
19670 #
19671 case "x$archive_cmds_need_lc_CXX" in
19672 x|xyes)
19673   # Assume -lc should be added
19674   archive_cmds_need_lc_CXX=yes
19675
19676   if test "$enable_shared" = yes && test "$GCC" = yes; then
19677     case $archive_cmds_CXX in
19678     *'~'*)
19679       # FIXME: we may have to deal with multi-command sequences.
19680       ;;
19681     '$CC '*)
19682       # Test whether the compiler implicitly links with -lc since on some
19683       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19684       # to ld, don't add -lc before -lgcc.
19685       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19687       $rm conftest*
19688       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19689
19690       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691   (eval $ac_compile) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } 2>conftest.err; then
19695         soname=conftest
19696         lib=conftest
19697         libobjs=conftest.$ac_objext
19698         deplibs=
19699         wl=$lt_prog_compiler_wl_CXX
19700         pic_flag=$lt_prog_compiler_pic_CXX
19701         compiler_flags=-v
19702         linker_flags=-v
19703         verstring=
19704         output_objdir=.
19705         libname=conftest
19706         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19707         allow_undefined_flag_CXX=
19708         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19709   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }
19713         then
19714           archive_cmds_need_lc_CXX=no
19715         else
19716           archive_cmds_need_lc_CXX=yes
19717         fi
19718         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19719       else
19720         cat conftest.err 1>&5
19721       fi
19722       $rm conftest*
19723       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19724 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19725       ;;
19726     esac
19727   fi
19728   ;;
19729 esac
19730
19731 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19732 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19733 library_names_spec=
19734 libname_spec='lib$name'
19735 soname_spec=
19736 shrext_cmds=".so"
19737 postinstall_cmds=
19738 postuninstall_cmds=
19739 finish_cmds=
19740 finish_eval=
19741 shlibpath_var=
19742 shlibpath_overrides_runpath=unknown
19743 version_type=none
19744 dynamic_linker="$host_os ld.so"
19745 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19746 if test "$GCC" = yes; then
19747   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19748   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19749     # if the path contains ";" then we assume it to be the separator
19750     # otherwise default to the standard path separator (i.e. ":") - it is
19751     # assumed that no part of a normal pathname contains ";" but that should
19752     # okay in the real world where ";" in dirpaths is itself problematic.
19753     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19754   else
19755     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19756   fi
19757 else
19758   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19759 fi
19760 need_lib_prefix=unknown
19761 hardcode_into_libs=no
19762
19763 # when you set need_version to no, make sure it does not cause -set_version
19764 # flags to be left without arguments
19765 need_version=unknown
19766
19767 case $host_os in
19768 aix3*)
19769   version_type=linux
19770   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19771   shlibpath_var=LIBPATH
19772
19773   # AIX 3 has no versioning support, so we append a major version to the name.
19774   soname_spec='${libname}${release}${shared_ext}$major'
19775   ;;
19776
19777 aix4* | aix5*)
19778   version_type=linux
19779   need_lib_prefix=no
19780   need_version=no
19781   hardcode_into_libs=yes
19782   if test "$host_cpu" = ia64; then
19783     # AIX 5 supports IA64
19784     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19785     shlibpath_var=LD_LIBRARY_PATH
19786   else
19787     # With GCC up to 2.95.x, collect2 would create an import file
19788     # for dependence libraries.  The import file would start with
19789     # the line `#! .'.  This would cause the generated library to
19790     # depend on `.', always an invalid library.  This was fixed in
19791     # development snapshots of GCC prior to 3.0.
19792     case $host_os in
19793       aix4 | aix4.[01] | aix4.[01].*)
19794       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19795            echo ' yes '
19796            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19797         :
19798       else
19799         can_build_shared=no
19800       fi
19801       ;;
19802     esac
19803     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19804     # soname into executable. Probably we can add versioning support to
19805     # collect2, so additional links can be useful in future.
19806     if test "$aix_use_runtimelinking" = yes; then
19807       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19808       # instead of lib<name>.a to let people know that these are not
19809       # typical AIX shared libraries.
19810       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811     else
19812       # We preserve .a as extension for shared libraries through AIX4.2
19813       # and later when we are not doing run time linking.
19814       library_names_spec='${libname}${release}.a $libname.a'
19815       soname_spec='${libname}${release}${shared_ext}$major'
19816     fi
19817     shlibpath_var=LIBPATH
19818   fi
19819   ;;
19820
19821 amigaos*)
19822   library_names_spec='$libname.ixlibrary $libname.a'
19823   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19824   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'
19825   ;;
19826
19827 beos*)
19828   library_names_spec='${libname}${shared_ext}'
19829   dynamic_linker="$host_os ld.so"
19830   shlibpath_var=LIBRARY_PATH
19831   ;;
19832
19833 bsdi[45]*)
19834   version_type=linux
19835   need_version=no
19836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19837   soname_spec='${libname}${release}${shared_ext}$major'
19838   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19839   shlibpath_var=LD_LIBRARY_PATH
19840   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19841   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19842   # the default ld.so.conf also contains /usr/contrib/lib and
19843   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19844   # libtool to hard-code these into programs
19845   ;;
19846
19847 cygwin* | mingw* | pw32*)
19848   version_type=windows
19849   shrext_cmds=".dll"
19850   need_version=no
19851   need_lib_prefix=no
19852
19853   case $GCC,$host_os in
19854   yes,cygwin* | yes,mingw* | yes,pw32*)
19855     library_names_spec='$libname.dll.a'
19856     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19857     postinstall_cmds='base_file=`basename \${file}`~
19858       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19859       dldir=$destdir/`dirname \$dlpath`~
19860       test -d \$dldir || mkdir -p \$dldir~
19861       $install_prog $dir/$dlname \$dldir/$dlname~
19862       chmod a+x \$dldir/$dlname'
19863     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19864       dlpath=$dir/\$dldll~
19865        $rm \$dlpath'
19866     shlibpath_overrides_runpath=yes
19867
19868     case $host_os in
19869     cygwin*)
19870       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19871       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19872       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19873       ;;
19874     mingw*)
19875       # MinGW DLLs use traditional 'lib' prefix
19876       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19878       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19879         # It is most probably a Windows format PATH printed by
19880         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19881         # path with ; separators, and with drive letters. We can handle the
19882         # drive letters (cygwin fileutils understands them), so leave them,
19883         # especially as we might pass files found there to a mingw objdump,
19884         # which wouldn't understand a cygwinified path. Ahh.
19885         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19886       else
19887         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19888       fi
19889       ;;
19890     pw32*)
19891       # pw32 DLLs use 'pw' prefix rather than 'lib'
19892       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19893       ;;
19894     esac
19895     ;;
19896
19897   *)
19898     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19899     ;;
19900   esac
19901   dynamic_linker='Win32 ld.exe'
19902   # FIXME: first we should search . and the directory the executable is in
19903   shlibpath_var=PATH
19904   ;;
19905
19906 darwin* | rhapsody*)
19907   dynamic_linker="$host_os dyld"
19908   version_type=darwin
19909   need_lib_prefix=no
19910   need_version=no
19911   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19912   soname_spec='${libname}${release}${major}$shared_ext'
19913   shlibpath_overrides_runpath=yes
19914   shlibpath_var=DYLD_LIBRARY_PATH
19915   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19916   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19917   if test "$GCC" = yes; then
19918     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"`
19919   else
19920     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19921   fi
19922   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19923   ;;
19924
19925 dgux*)
19926   version_type=linux
19927   need_lib_prefix=no
19928   need_version=no
19929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19930   soname_spec='${libname}${release}${shared_ext}$major'
19931   shlibpath_var=LD_LIBRARY_PATH
19932   ;;
19933
19934 freebsd1*)
19935   dynamic_linker=no
19936   ;;
19937
19938 kfreebsd*-gnu)
19939   version_type=linux
19940   need_lib_prefix=no
19941   need_version=no
19942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19943   soname_spec='${libname}${release}${shared_ext}$major'
19944   shlibpath_var=LD_LIBRARY_PATH
19945   shlibpath_overrides_runpath=no
19946   hardcode_into_libs=yes
19947   dynamic_linker='GNU ld.so'
19948   ;;
19949
19950 freebsd* | dragonfly*)
19951   # DragonFly does not have aout.  When/if they implement a new
19952   # versioning mechanism, adjust this.
19953   if test -x /usr/bin/objformat; then
19954     objformat=`/usr/bin/objformat`
19955   else
19956     case $host_os in
19957     freebsd[123]*) objformat=aout ;;
19958     *) objformat=elf ;;
19959     esac
19960   fi
19961   version_type=freebsd-$objformat
19962   case $version_type in
19963     freebsd-elf*)
19964       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19965       need_version=no
19966       need_lib_prefix=no
19967       ;;
19968     freebsd-*)
19969       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19970       need_version=yes
19971       ;;
19972   esac
19973   shlibpath_var=LD_LIBRARY_PATH
19974   case $host_os in
19975   freebsd2*)
19976     shlibpath_overrides_runpath=yes
19977     ;;
19978   freebsd3.[01]* | freebsdelf3.[01]*)
19979     shlibpath_overrides_runpath=yes
19980     hardcode_into_libs=yes
19981     ;;
19982   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19983   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19984     shlibpath_overrides_runpath=no
19985     hardcode_into_libs=yes
19986     ;;
19987   freebsd*) # from 4.6 on
19988     shlibpath_overrides_runpath=yes
19989     hardcode_into_libs=yes
19990     ;;
19991   esac
19992   ;;
19993
19994 gnu*)
19995   version_type=linux
19996   need_lib_prefix=no
19997   need_version=no
19998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19999   soname_spec='${libname}${release}${shared_ext}$major'
20000   shlibpath_var=LD_LIBRARY_PATH
20001   hardcode_into_libs=yes
20002   ;;
20003
20004 hpux9* | hpux10* | hpux11*)
20005   # Give a soname corresponding to the major version so that dld.sl refuses to
20006   # link against other versions.
20007   version_type=sunos
20008   need_lib_prefix=no
20009   need_version=no
20010   case $host_cpu in
20011   ia64*)
20012     shrext_cmds='.so'
20013     hardcode_into_libs=yes
20014     dynamic_linker="$host_os dld.so"
20015     shlibpath_var=LD_LIBRARY_PATH
20016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018     soname_spec='${libname}${release}${shared_ext}$major'
20019     if test "X$HPUX_IA64_MODE" = X32; then
20020       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20021     else
20022       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20023     fi
20024     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20025     ;;
20026    hppa*64*)
20027      shrext_cmds='.sl'
20028      hardcode_into_libs=yes
20029      dynamic_linker="$host_os dld.sl"
20030      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20031      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20032      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033      soname_spec='${libname}${release}${shared_ext}$major'
20034      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20036      ;;
20037    *)
20038     shrext_cmds='.sl'
20039     dynamic_linker="$host_os dld.sl"
20040     shlibpath_var=SHLIB_PATH
20041     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043     soname_spec='${libname}${release}${shared_ext}$major'
20044     ;;
20045   esac
20046   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20047   postinstall_cmds='chmod 555 $lib'
20048   ;;
20049
20050 interix3*)
20051   version_type=linux
20052   need_lib_prefix=no
20053   need_version=no
20054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20055   soname_spec='${libname}${release}${shared_ext}$major'
20056   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20057   shlibpath_var=LD_LIBRARY_PATH
20058   shlibpath_overrides_runpath=no
20059   hardcode_into_libs=yes
20060   ;;
20061
20062 irix5* | irix6* | nonstopux*)
20063   case $host_os in
20064     nonstopux*) version_type=nonstopux ;;
20065     *)
20066         if test "$lt_cv_prog_gnu_ld" = yes; then
20067                 version_type=linux
20068         else
20069                 version_type=irix
20070         fi ;;
20071   esac
20072   need_lib_prefix=no
20073   need_version=no
20074   soname_spec='${libname}${release}${shared_ext}$major'
20075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20076   case $host_os in
20077   irix5* | nonstopux*)
20078     libsuff= shlibsuff=
20079     ;;
20080   *)
20081     case $LD in # libtool.m4 will add one of these switches to LD
20082     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20083       libsuff= shlibsuff= libmagic=32-bit;;
20084     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20085       libsuff=32 shlibsuff=N32 libmagic=N32;;
20086     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20087       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20088     *) libsuff= shlibsuff= libmagic=never-match;;
20089     esac
20090     ;;
20091   esac
20092   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20093   shlibpath_overrides_runpath=no
20094   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20095   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20096   hardcode_into_libs=yes
20097   ;;
20098
20099 # No shared lib support for Linux oldld, aout, or coff.
20100 linux*oldld* | linux*aout* | linux*coff*)
20101   dynamic_linker=no
20102   ;;
20103
20104 # This must be Linux ELF.
20105 linux*)
20106   version_type=linux
20107   need_lib_prefix=no
20108   need_version=no
20109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110   soname_spec='${libname}${release}${shared_ext}$major'
20111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20112   shlibpath_var=LD_LIBRARY_PATH
20113   shlibpath_overrides_runpath=no
20114   # This implies no fast_install, which is unacceptable.
20115   # Some rework will be needed to allow for fast_install
20116   # before this can be enabled.
20117   hardcode_into_libs=yes
20118
20119   # Append ld.so.conf contents to the search path
20120   if test -f /etc/ld.so.conf; then
20121     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' ' '`
20122     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20123   fi
20124
20125   # We used to test for /lib/ld.so.1 and disable shared libraries on
20126   # powerpc, because MkLinux only supported shared libraries with the
20127   # GNU dynamic linker.  Since this was broken with cross compilers,
20128   # most powerpc-linux boxes support dynamic linking these days and
20129   # people can always --disable-shared, the test was removed, and we
20130   # assume the GNU/Linux dynamic linker is in use.
20131   dynamic_linker='GNU/Linux ld.so'
20132   ;;
20133
20134 knetbsd*-gnu)
20135   version_type=linux
20136   need_lib_prefix=no
20137   need_version=no
20138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20139   soname_spec='${libname}${release}${shared_ext}$major'
20140   shlibpath_var=LD_LIBRARY_PATH
20141   shlibpath_overrides_runpath=no
20142   hardcode_into_libs=yes
20143   dynamic_linker='GNU ld.so'
20144   ;;
20145
20146 netbsd*)
20147   version_type=sunos
20148   need_lib_prefix=no
20149   need_version=no
20150   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20152     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20153     dynamic_linker='NetBSD (a.out) ld.so'
20154   else
20155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20156     soname_spec='${libname}${release}${shared_ext}$major'
20157     dynamic_linker='NetBSD ld.elf_so'
20158   fi
20159   shlibpath_var=LD_LIBRARY_PATH
20160   shlibpath_overrides_runpath=yes
20161   hardcode_into_libs=yes
20162   ;;
20163
20164 newsos6)
20165   version_type=linux
20166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167   shlibpath_var=LD_LIBRARY_PATH
20168   shlibpath_overrides_runpath=yes
20169   ;;
20170
20171 nto-qnx*)
20172   version_type=linux
20173   need_lib_prefix=no
20174   need_version=no
20175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176   soname_spec='${libname}${release}${shared_ext}$major'
20177   shlibpath_var=LD_LIBRARY_PATH
20178   shlibpath_overrides_runpath=yes
20179   ;;
20180
20181 openbsd*)
20182   version_type=sunos
20183   sys_lib_dlsearch_path_spec="/usr/lib"
20184   need_lib_prefix=no
20185   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20186   case $host_os in
20187     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20188     *)                         need_version=no  ;;
20189   esac
20190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20192   shlibpath_var=LD_LIBRARY_PATH
20193   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20194     case $host_os in
20195       openbsd2.[89] | openbsd2.[89].*)
20196         shlibpath_overrides_runpath=no
20197         ;;
20198       *)
20199         shlibpath_overrides_runpath=yes
20200         ;;
20201       esac
20202   else
20203     shlibpath_overrides_runpath=yes
20204   fi
20205   ;;
20206
20207 os2*)
20208   libname_spec='$name'
20209   shrext_cmds=".dll"
20210   need_lib_prefix=no
20211   library_names_spec='$libname${shared_ext} $libname.a'
20212   dynamic_linker='OS/2 ld.exe'
20213   shlibpath_var=LIBPATH
20214   ;;
20215
20216 osf3* | osf4* | osf5*)
20217   version_type=osf
20218   need_lib_prefix=no
20219   need_version=no
20220   soname_spec='${libname}${release}${shared_ext}$major'
20221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222   shlibpath_var=LD_LIBRARY_PATH
20223   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20224   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20225   ;;
20226
20227 solaris*)
20228   version_type=linux
20229   need_lib_prefix=no
20230   need_version=no
20231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20232   soname_spec='${libname}${release}${shared_ext}$major'
20233   shlibpath_var=LD_LIBRARY_PATH
20234   shlibpath_overrides_runpath=yes
20235   hardcode_into_libs=yes
20236   # ldd complains unless libraries are executable
20237   postinstall_cmds='chmod +x $lib'
20238   ;;
20239
20240 sunos4*)
20241   version_type=sunos
20242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20243   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20244   shlibpath_var=LD_LIBRARY_PATH
20245   shlibpath_overrides_runpath=yes
20246   if test "$with_gnu_ld" = yes; then
20247     need_lib_prefix=no
20248   fi
20249   need_version=yes
20250   ;;
20251
20252 sysv4 | sysv4.3*)
20253   version_type=linux
20254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255   soname_spec='${libname}${release}${shared_ext}$major'
20256   shlibpath_var=LD_LIBRARY_PATH
20257   case $host_vendor in
20258     sni)
20259       shlibpath_overrides_runpath=no
20260       need_lib_prefix=no
20261       export_dynamic_flag_spec='${wl}-Blargedynsym'
20262       runpath_var=LD_RUN_PATH
20263       ;;
20264     siemens)
20265       need_lib_prefix=no
20266       ;;
20267     motorola)
20268       need_lib_prefix=no
20269       need_version=no
20270       shlibpath_overrides_runpath=no
20271       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20272       ;;
20273   esac
20274   ;;
20275
20276 sysv4*MP*)
20277   if test -d /usr/nec ;then
20278     version_type=linux
20279     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20280     soname_spec='$libname${shared_ext}.$major'
20281     shlibpath_var=LD_LIBRARY_PATH
20282   fi
20283   ;;
20284
20285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20286   version_type=freebsd-elf
20287   need_lib_prefix=no
20288   need_version=no
20289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20290   soname_spec='${libname}${release}${shared_ext}$major'
20291   shlibpath_var=LD_LIBRARY_PATH
20292   hardcode_into_libs=yes
20293   if test "$with_gnu_ld" = yes; then
20294     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20295     shlibpath_overrides_runpath=no
20296   else
20297     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20298     shlibpath_overrides_runpath=yes
20299     case $host_os in
20300       sco3.2v5*)
20301         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20302         ;;
20303     esac
20304   fi
20305   sys_lib_dlsearch_path_spec='/usr/lib'
20306   ;;
20307
20308 uts4*)
20309   version_type=linux
20310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311   soname_spec='${libname}${release}${shared_ext}$major'
20312   shlibpath_var=LD_LIBRARY_PATH
20313   ;;
20314
20315 *)
20316   dynamic_linker=no
20317   ;;
20318 esac
20319 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20320 echo "${ECHO_T}$dynamic_linker" >&6; }
20321 test "$dynamic_linker" = no && can_build_shared=no
20322
20323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20324 if test "$GCC" = yes; then
20325   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20326 fi
20327
20328 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20329 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20330 hardcode_action_CXX=
20331 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20332    test -n "$runpath_var_CXX" || \
20333    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20334
20335   # We can hardcode non-existant directories.
20336   if test "$hardcode_direct_CXX" != no &&
20337      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20338      # have to relink, otherwise we might link with an installed library
20339      # when we should be linking with a yet-to-be-installed one
20340      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20341      test "$hardcode_minus_L_CXX" != no; then
20342     # Linking always hardcodes the temporary library directory.
20343     hardcode_action_CXX=relink
20344   else
20345     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20346     hardcode_action_CXX=immediate
20347   fi
20348 else
20349   # We cannot hardcode anything, or else we can only hardcode existing
20350   # directories.
20351   hardcode_action_CXX=unsupported
20352 fi
20353 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20354 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20355
20356 if test "$hardcode_action_CXX" = relink; then
20357   # Fast installation is not supported
20358   enable_fast_install=no
20359 elif test "$shlibpath_overrides_runpath" = yes ||
20360      test "$enable_shared" = no; then
20361   # Fast installation is not necessary
20362   enable_fast_install=needless
20363 fi
20364
20365
20366 # The else clause should only fire when bootstrapping the
20367 # libtool distribution, otherwise you forgot to ship ltmain.sh
20368 # with your package, and you will get complaints that there are
20369 # no rules to generate ltmain.sh.
20370 if test -f "$ltmain"; then
20371   # See if we are running on zsh, and set the options which allow our commands through
20372   # without removal of \ escapes.
20373   if test -n "${ZSH_VERSION+set}" ; then
20374     setopt NO_GLOB_SUBST
20375   fi
20376   # Now quote all the things that may contain metacharacters while being
20377   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20378   # variables and quote the copies for generation of the libtool script.
20379   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20380     SED SHELL STRIP \
20381     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20382     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20383     deplibs_check_method reload_flag reload_cmds need_locks \
20384     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20385     lt_cv_sys_global_symbol_to_c_name_address \
20386     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20387     old_postinstall_cmds old_postuninstall_cmds \
20388     compiler_CXX \
20389     CC_CXX \
20390     LD_CXX \
20391     lt_prog_compiler_wl_CXX \
20392     lt_prog_compiler_pic_CXX \
20393     lt_prog_compiler_static_CXX \
20394     lt_prog_compiler_no_builtin_flag_CXX \
20395     export_dynamic_flag_spec_CXX \
20396     thread_safe_flag_spec_CXX \
20397     whole_archive_flag_spec_CXX \
20398     enable_shared_with_static_runtimes_CXX \
20399     old_archive_cmds_CXX \
20400     old_archive_from_new_cmds_CXX \
20401     predep_objects_CXX \
20402     postdep_objects_CXX \
20403     predeps_CXX \
20404     postdeps_CXX \
20405     compiler_lib_search_path_CXX \
20406     archive_cmds_CXX \
20407     archive_expsym_cmds_CXX \
20408     postinstall_cmds_CXX \
20409     postuninstall_cmds_CXX \
20410     old_archive_from_expsyms_cmds_CXX \
20411     allow_undefined_flag_CXX \
20412     no_undefined_flag_CXX \
20413     export_symbols_cmds_CXX \
20414     hardcode_libdir_flag_spec_CXX \
20415     hardcode_libdir_flag_spec_ld_CXX \
20416     hardcode_libdir_separator_CXX \
20417     hardcode_automatic_CXX \
20418     module_cmds_CXX \
20419     module_expsym_cmds_CXX \
20420     lt_cv_prog_compiler_c_o_CXX \
20421     exclude_expsyms_CXX \
20422     include_expsyms_CXX; do
20423
20424     case $var in
20425     old_archive_cmds_CXX | \
20426     old_archive_from_new_cmds_CXX | \
20427     archive_cmds_CXX | \
20428     archive_expsym_cmds_CXX | \
20429     module_cmds_CXX | \
20430     module_expsym_cmds_CXX | \
20431     old_archive_from_expsyms_cmds_CXX | \
20432     export_symbols_cmds_CXX | \
20433     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20434     postinstall_cmds | postuninstall_cmds | \
20435     old_postinstall_cmds | old_postuninstall_cmds | \
20436     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20437       # Double-quote double-evaled strings.
20438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20439       ;;
20440     *)
20441       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20442       ;;
20443     esac
20444   done
20445
20446   case $lt_echo in
20447   *'\$0 --fallback-echo"')
20448     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20449     ;;
20450   esac
20451
20452 cfgfile="$ofile"
20453
20454   cat <<__EOF__ >> "$cfgfile"
20455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20456
20457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20458
20459 # Shell to use when invoking shell scripts.
20460 SHELL=$lt_SHELL
20461
20462 # Whether or not to build shared libraries.
20463 build_libtool_libs=$enable_shared
20464
20465 # Whether or not to build static libraries.
20466 build_old_libs=$enable_static
20467
20468 # Whether or not to add -lc for building shared libraries.
20469 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20470
20471 # Whether or not to disallow shared libs when runtime libs are static
20472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20473
20474 # Whether or not to optimize for fast installation.
20475 fast_install=$enable_fast_install
20476
20477 # The host system.
20478 host_alias=$host_alias
20479 host=$host
20480 host_os=$host_os
20481
20482 # The build system.
20483 build_alias=$build_alias
20484 build=$build
20485 build_os=$build_os
20486
20487 # An echo program that does not interpret backslashes.
20488 echo=$lt_echo
20489
20490 # The archiver.
20491 AR=$lt_AR
20492 AR_FLAGS=$lt_AR_FLAGS
20493
20494 # A C compiler.
20495 LTCC=$lt_LTCC
20496
20497 # LTCC compiler flags.
20498 LTCFLAGS=$lt_LTCFLAGS
20499
20500 # A language-specific compiler.
20501 CC=$lt_compiler_CXX
20502
20503 # Is the compiler the GNU C compiler?
20504 with_gcc=$GCC_CXX
20505
20506 # An ERE matcher.
20507 EGREP=$lt_EGREP
20508
20509 # The linker used to build libraries.
20510 LD=$lt_LD_CXX
20511
20512 # Whether we need hard or soft links.
20513 LN_S=$lt_LN_S
20514
20515 # A BSD-compatible nm program.
20516 NM=$lt_NM
20517
20518 # A symbol stripping program
20519 STRIP=$lt_STRIP
20520
20521 # Used to examine libraries when file_magic_cmd begins "file"
20522 MAGIC_CMD=$MAGIC_CMD
20523
20524 # Used on cygwin: DLL creation program.
20525 DLLTOOL="$DLLTOOL"
20526
20527 # Used on cygwin: object dumper.
20528 OBJDUMP="$OBJDUMP"
20529
20530 # Used on cygwin: assembler.
20531 AS="$AS"
20532
20533 # The name of the directory that contains temporary libtool files.
20534 objdir=$objdir
20535
20536 # How to create reloadable object files.
20537 reload_flag=$lt_reload_flag
20538 reload_cmds=$lt_reload_cmds
20539
20540 # How to pass a linker flag through the compiler.
20541 wl=$lt_lt_prog_compiler_wl_CXX
20542
20543 # Object file suffix (normally "o").
20544 objext="$ac_objext"
20545
20546 # Old archive suffix (normally "a").
20547 libext="$libext"
20548
20549 # Shared library suffix (normally ".so").
20550 shrext_cmds='$shrext_cmds'
20551
20552 # Executable file suffix (normally "").
20553 exeext="$exeext"
20554
20555 # Additional compiler flags for building library objects.
20556 pic_flag=$lt_lt_prog_compiler_pic_CXX
20557 pic_mode=$pic_mode
20558
20559 # What is the maximum length of a command?
20560 max_cmd_len=$lt_cv_sys_max_cmd_len
20561
20562 # Does compiler simultaneously support -c and -o options?
20563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20564
20565 # Must we lock files when doing compilation?
20566 need_locks=$lt_need_locks
20567
20568 # Do we need the lib prefix for modules?
20569 need_lib_prefix=$need_lib_prefix
20570
20571 # Do we need a version for libraries?
20572 need_version=$need_version
20573
20574 # Whether dlopen is supported.
20575 dlopen_support=$enable_dlopen
20576
20577 # Whether dlopen of programs is supported.
20578 dlopen_self=$enable_dlopen_self
20579
20580 # Whether dlopen of statically linked programs is supported.
20581 dlopen_self_static=$enable_dlopen_self_static
20582
20583 # Compiler flag to prevent dynamic linking.
20584 link_static_flag=$lt_lt_prog_compiler_static_CXX
20585
20586 # Compiler flag to turn off builtin functions.
20587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20588
20589 # Compiler flag to allow reflexive dlopens.
20590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20591
20592 # Compiler flag to generate shared objects directly from archives.
20593 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20594
20595 # Compiler flag to generate thread-safe objects.
20596 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20597
20598 # Library versioning type.
20599 version_type=$version_type
20600
20601 # Format of library name prefix.
20602 libname_spec=$lt_libname_spec
20603
20604 # List of archive names.  First name is the real one, the rest are links.
20605 # The last name is the one that the linker finds with -lNAME.
20606 library_names_spec=$lt_library_names_spec
20607
20608 # The coded name of the library, if different from the real name.
20609 soname_spec=$lt_soname_spec
20610
20611 # Commands used to build and install an old-style archive.
20612 RANLIB=$lt_RANLIB
20613 old_archive_cmds=$lt_old_archive_cmds_CXX
20614 old_postinstall_cmds=$lt_old_postinstall_cmds
20615 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20616
20617 # Create an old-style archive from a shared archive.
20618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20619
20620 # Create a temporary old-style archive to link instead of a shared archive.
20621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20622
20623 # Commands used to build and install a shared archive.
20624 archive_cmds=$lt_archive_cmds_CXX
20625 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20626 postinstall_cmds=$lt_postinstall_cmds
20627 postuninstall_cmds=$lt_postuninstall_cmds
20628
20629 # Commands used to build a loadable module (assumed same as above if empty)
20630 module_cmds=$lt_module_cmds_CXX
20631 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20632
20633 # Commands to strip libraries.
20634 old_striplib=$lt_old_striplib
20635 striplib=$lt_striplib
20636
20637 # Dependencies to place before the objects being linked to create a
20638 # shared library.
20639 predep_objects=$lt_predep_objects_CXX
20640
20641 # Dependencies to place after the objects being linked to create a
20642 # shared library.
20643 postdep_objects=$lt_postdep_objects_CXX
20644
20645 # Dependencies to place before the objects being linked to create a
20646 # shared library.
20647 predeps=$lt_predeps_CXX
20648
20649 # Dependencies to place after the objects being linked to create a
20650 # shared library.
20651 postdeps=$lt_postdeps_CXX
20652
20653 # The library search path used internally by the compiler when linking
20654 # a shared library.
20655 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20656
20657 # Method to check whether dependent libraries are shared objects.
20658 deplibs_check_method=$lt_deplibs_check_method
20659
20660 # Command to use when deplibs_check_method == file_magic.
20661 file_magic_cmd=$lt_file_magic_cmd
20662
20663 # Flag that allows shared libraries with undefined symbols to be built.
20664 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20665
20666 # Flag that forces no undefined symbols.
20667 no_undefined_flag=$lt_no_undefined_flag_CXX
20668
20669 # Commands used to finish a libtool library installation in a directory.
20670 finish_cmds=$lt_finish_cmds
20671
20672 # Same as above, but a single script fragment to be evaled but not shown.
20673 finish_eval=$lt_finish_eval
20674
20675 # Take the output of nm and produce a listing of raw symbols and C names.
20676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20677
20678 # Transform the output of nm in a proper C declaration
20679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20680
20681 # Transform the output of nm in a C name address pair
20682 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20683
20684 # This is the shared library runtime path variable.
20685 runpath_var=$runpath_var
20686
20687 # This is the shared library path variable.
20688 shlibpath_var=$shlibpath_var
20689
20690 # Is shlibpath searched before the hard-coded library search path?
20691 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20692
20693 # How to hardcode a shared library path into an executable.
20694 hardcode_action=$hardcode_action_CXX
20695
20696 # Whether we should hardcode library paths into libraries.
20697 hardcode_into_libs=$hardcode_into_libs
20698
20699 # Flag to hardcode \$libdir into a binary during linking.
20700 # This must work even if \$libdir does not exist.
20701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20702
20703 # If ld is used when linking, flag to hardcode \$libdir into
20704 # a binary during linking. This must work even if \$libdir does
20705 # not exist.
20706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20707
20708 # Whether we need a single -rpath flag with a separated argument.
20709 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20710
20711 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20712 # resulting binary.
20713 hardcode_direct=$hardcode_direct_CXX
20714
20715 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20716 # resulting binary.
20717 hardcode_minus_L=$hardcode_minus_L_CXX
20718
20719 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20720 # the resulting binary.
20721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20722
20723 # Set to yes if building a shared library automatically hardcodes DIR into the library
20724 # and all subsequent libraries and executables linked against it.
20725 hardcode_automatic=$hardcode_automatic_CXX
20726
20727 # Variables whose values should be saved in libtool wrapper scripts and
20728 # restored at relink time.
20729 variables_saved_for_relink="$variables_saved_for_relink"
20730
20731 # Whether libtool must link a program against all its dependency libraries.
20732 link_all_deplibs=$link_all_deplibs_CXX
20733
20734 # Compile-time system search path for libraries
20735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20736
20737 # Run-time system search path for libraries
20738 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20739
20740 # Fix the shell variable \$srcfile for the compiler.
20741 fix_srcfile_path="$fix_srcfile_path_CXX"
20742
20743 # Set to yes if exported symbols are required.
20744 always_export_symbols=$always_export_symbols_CXX
20745
20746 # The commands to list exported symbols.
20747 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20748
20749 # The commands to extract the exported symbol list from a shared archive.
20750 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20751
20752 # Symbols that should not be listed in the preloaded symbols.
20753 exclude_expsyms=$lt_exclude_expsyms_CXX
20754
20755 # Symbols that must always be exported.
20756 include_expsyms=$lt_include_expsyms_CXX
20757
20758 # ### END LIBTOOL TAG CONFIG: $tagname
20759
20760 __EOF__
20761
20762
20763 else
20764   # If there is no Makefile yet, we rely on a make rule to execute
20765   # `config.status --recheck' to rerun these tests and create the
20766   # libtool script then.
20767   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20768   if test -f "$ltmain_in"; then
20769     test -f Makefile && make "$ltmain"
20770   fi
20771 fi
20772
20773
20774 ac_ext=c
20775 ac_cpp='$CPP $CPPFLAGS'
20776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20779
20780 CC=$lt_save_CC
20781 LDCXX=$LD
20782 LD=$lt_save_LD
20783 GCC=$lt_save_GCC
20784 with_gnu_ldcxx=$with_gnu_ld
20785 with_gnu_ld=$lt_save_with_gnu_ld
20786 lt_cv_path_LDCXX=$lt_cv_path_LD
20787 lt_cv_path_LD=$lt_save_path_LD
20788 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20789 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20790
20791         else
20792           tagname=""
20793         fi
20794         ;;
20795
20796       F77)
20797         if test -n "$F77" && test "X$F77" != "Xno"; then
20798
20799 ac_ext=f
20800 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20801 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20803
20804
20805 archive_cmds_need_lc_F77=no
20806 allow_undefined_flag_F77=
20807 always_export_symbols_F77=no
20808 archive_expsym_cmds_F77=
20809 export_dynamic_flag_spec_F77=
20810 hardcode_direct_F77=no
20811 hardcode_libdir_flag_spec_F77=
20812 hardcode_libdir_flag_spec_ld_F77=
20813 hardcode_libdir_separator_F77=
20814 hardcode_minus_L_F77=no
20815 hardcode_automatic_F77=no
20816 module_cmds_F77=
20817 module_expsym_cmds_F77=
20818 link_all_deplibs_F77=unknown
20819 old_archive_cmds_F77=$old_archive_cmds
20820 no_undefined_flag_F77=
20821 whole_archive_flag_spec_F77=
20822 enable_shared_with_static_runtimes_F77=no
20823
20824 # Source file extension for f77 test sources.
20825 ac_ext=f
20826
20827 # Object file extension for compiled f77 test sources.
20828 objext=o
20829 objext_F77=$objext
20830
20831 # Code to be used in simple compile tests
20832 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20833
20834 # Code to be used in simple link tests
20835 lt_simple_link_test_code="      program t\n      end\n"
20836
20837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20838
20839 # If no C compiler was specified, use CC.
20840 LTCC=${LTCC-"$CC"}
20841
20842 # If no C compiler flags were specified, use CFLAGS.
20843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20844
20845 # Allow CC to be a program name with arguments.
20846 compiler=$CC
20847
20848
20849 # save warnings/boilerplate of simple test code
20850 ac_outfile=conftest.$ac_objext
20851 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20853 _lt_compiler_boilerplate=`cat conftest.err`
20854 $rm conftest*
20855
20856 ac_outfile=conftest.$ac_objext
20857 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20859 _lt_linker_boilerplate=`cat conftest.err`
20860 $rm conftest*
20861
20862
20863 # Allow CC to be a program name with arguments.
20864 lt_save_CC="$CC"
20865 CC=${F77-"f77"}
20866 compiler=$CC
20867 compiler_F77=$CC
20868 for cc_temp in $compiler""; do
20869   case $cc_temp in
20870     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20871     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20872     \-*) ;;
20873     *) break;;
20874   esac
20875 done
20876 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20877
20878
20879 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20880 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20881 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20882 echo "${ECHO_T}$can_build_shared" >&6; }
20883
20884 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20885 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20886 test "$can_build_shared" = "no" && enable_shared=no
20887
20888 # On AIX, shared libraries and static libraries use the same namespace, and
20889 # are all built from PIC.
20890 case $host_os in
20891 aix3*)
20892   test "$enable_shared" = yes && enable_static=no
20893   if test -n "$RANLIB"; then
20894     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20895     postinstall_cmds='$RANLIB $lib'
20896   fi
20897   ;;
20898 aix4* | aix5*)
20899   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20900     test "$enable_shared" = yes && enable_static=no
20901   fi
20902   ;;
20903 esac
20904 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20905 echo "${ECHO_T}$enable_shared" >&6; }
20906
20907 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20909 # Make sure either enable_shared or enable_static is yes.
20910 test "$enable_shared" = yes || enable_static=yes
20911 { echo "$as_me:$LINENO: result: $enable_static" >&5
20912 echo "${ECHO_T}$enable_static" >&6; }
20913
20914 GCC_F77="$G77"
20915 LD_F77="$LD"
20916
20917 lt_prog_compiler_wl_F77=
20918 lt_prog_compiler_pic_F77=
20919 lt_prog_compiler_static_F77=
20920
20921 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20922 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20923
20924   if test "$GCC" = yes; then
20925     lt_prog_compiler_wl_F77='-Wl,'
20926     lt_prog_compiler_static_F77='-static'
20927
20928     case $host_os in
20929       aix*)
20930       # All AIX code is PIC.
20931       if test "$host_cpu" = ia64; then
20932         # AIX 5 now supports IA64 processor
20933         lt_prog_compiler_static_F77='-Bstatic'
20934       fi
20935       ;;
20936
20937     amigaos*)
20938       # FIXME: we need at least 68020 code to build shared libraries, but
20939       # adding the `-m68020' flag to GCC prevents building anything better,
20940       # like `-m68040'.
20941       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20942       ;;
20943
20944     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20945       # PIC is the default for these OSes.
20946       ;;
20947
20948     mingw* | pw32* | os2*)
20949       # This hack is so that the source file can tell whether it is being
20950       # built for inclusion in a dll (and should export symbols for example).
20951       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20952       ;;
20953
20954     darwin* | rhapsody*)
20955       # PIC is the default on this platform
20956       # Common symbols not allowed in MH_DYLIB files
20957       lt_prog_compiler_pic_F77='-fno-common'
20958       ;;
20959
20960     interix3*)
20961       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20962       # Instead, we relocate shared libraries at runtime.
20963       ;;
20964
20965     msdosdjgpp*)
20966       # Just because we use GCC doesn't mean we suddenly get shared libraries
20967       # on systems that don't support them.
20968       lt_prog_compiler_can_build_shared_F77=no
20969       enable_shared=no
20970       ;;
20971
20972     sysv4*MP*)
20973       if test -d /usr/nec; then
20974         lt_prog_compiler_pic_F77=-Kconform_pic
20975       fi
20976       ;;
20977
20978     hpux*)
20979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20980       # not for PA HP-UX.
20981       case $host_cpu in
20982       hppa*64*|ia64*)
20983         # +Z the default
20984         ;;
20985       *)
20986         lt_prog_compiler_pic_F77='-fPIC'
20987         ;;
20988       esac
20989       ;;
20990
20991     *)
20992       lt_prog_compiler_pic_F77='-fPIC'
20993       ;;
20994     esac
20995   else
20996     # PORTME Check for flag to pass linker flags through the system compiler.
20997     case $host_os in
20998     aix*)
20999       lt_prog_compiler_wl_F77='-Wl,'
21000       if test "$host_cpu" = ia64; then
21001         # AIX 5 now supports IA64 processor
21002         lt_prog_compiler_static_F77='-Bstatic'
21003       else
21004         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21005       fi
21006       ;;
21007       darwin*)
21008         # PIC is the default on this platform
21009         # Common symbols not allowed in MH_DYLIB files
21010        case $cc_basename in
21011          xlc*)
21012          lt_prog_compiler_pic_F77='-qnocommon'
21013          lt_prog_compiler_wl_F77='-Wl,'
21014          ;;
21015        esac
21016        ;;
21017
21018     mingw* | pw32* | os2*)
21019       # This hack is so that the source file can tell whether it is being
21020       # built for inclusion in a dll (and should export symbols for example).
21021       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21022       ;;
21023
21024     hpux9* | hpux10* | hpux11*)
21025       lt_prog_compiler_wl_F77='-Wl,'
21026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21027       # not for PA HP-UX.
21028       case $host_cpu in
21029       hppa*64*|ia64*)
21030         # +Z the default
21031         ;;
21032       *)
21033         lt_prog_compiler_pic_F77='+Z'
21034         ;;
21035       esac
21036       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21037       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21038       ;;
21039
21040     irix5* | irix6* | nonstopux*)
21041       lt_prog_compiler_wl_F77='-Wl,'
21042       # PIC (with -KPIC) is the default.
21043       lt_prog_compiler_static_F77='-non_shared'
21044       ;;
21045
21046     newsos6)
21047       lt_prog_compiler_pic_F77='-KPIC'
21048       lt_prog_compiler_static_F77='-Bstatic'
21049       ;;
21050
21051     linux*)
21052       case $cc_basename in
21053       icc* | ecc*)
21054         lt_prog_compiler_wl_F77='-Wl,'
21055         lt_prog_compiler_pic_F77='-KPIC'
21056         lt_prog_compiler_static_F77='-static'
21057         ;;
21058       pgcc* | pgf77* | pgf90* | pgf95*)
21059         # Portland Group compilers (*not* the Pentium gcc compiler,
21060         # which looks to be a dead project)
21061         lt_prog_compiler_wl_F77='-Wl,'
21062         lt_prog_compiler_pic_F77='-fpic'
21063         lt_prog_compiler_static_F77='-Bstatic'
21064         ;;
21065       ccc*)
21066         lt_prog_compiler_wl_F77='-Wl,'
21067         # All Alpha code is PIC.
21068         lt_prog_compiler_static_F77='-non_shared'
21069         ;;
21070       esac
21071       ;;
21072
21073     osf3* | osf4* | osf5*)
21074       lt_prog_compiler_wl_F77='-Wl,'
21075       # All OSF/1 code is PIC.
21076       lt_prog_compiler_static_F77='-non_shared'
21077       ;;
21078
21079     solaris*)
21080       lt_prog_compiler_pic_F77='-KPIC'
21081       lt_prog_compiler_static_F77='-Bstatic'
21082       case $cc_basename in
21083       f77* | f90* | f95*)
21084         lt_prog_compiler_wl_F77='-Qoption ld ';;
21085       *)
21086         lt_prog_compiler_wl_F77='-Wl,';;
21087       esac
21088       ;;
21089
21090     sunos4*)
21091       lt_prog_compiler_wl_F77='-Qoption ld '
21092       lt_prog_compiler_pic_F77='-PIC'
21093       lt_prog_compiler_static_F77='-Bstatic'
21094       ;;
21095
21096     sysv4 | sysv4.2uw2* | sysv4.3*)
21097       lt_prog_compiler_wl_F77='-Wl,'
21098       lt_prog_compiler_pic_F77='-KPIC'
21099       lt_prog_compiler_static_F77='-Bstatic'
21100       ;;
21101
21102     sysv4*MP*)
21103       if test -d /usr/nec ;then
21104         lt_prog_compiler_pic_F77='-Kconform_pic'
21105         lt_prog_compiler_static_F77='-Bstatic'
21106       fi
21107       ;;
21108
21109     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21110       lt_prog_compiler_wl_F77='-Wl,'
21111       lt_prog_compiler_pic_F77='-KPIC'
21112       lt_prog_compiler_static_F77='-Bstatic'
21113       ;;
21114
21115     unicos*)
21116       lt_prog_compiler_wl_F77='-Wl,'
21117       lt_prog_compiler_can_build_shared_F77=no
21118       ;;
21119
21120     uts4*)
21121       lt_prog_compiler_pic_F77='-pic'
21122       lt_prog_compiler_static_F77='-Bstatic'
21123       ;;
21124
21125     *)
21126       lt_prog_compiler_can_build_shared_F77=no
21127       ;;
21128     esac
21129   fi
21130
21131 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21132 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21133
21134 #
21135 # Check to make sure the PIC flag actually works.
21136 #
21137 if test -n "$lt_prog_compiler_pic_F77"; then
21138
21139 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21140 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21141 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21142   echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144   lt_prog_compiler_pic_works_F77=no
21145   ac_outfile=conftest.$ac_objext
21146    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21147    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21148    # Insert the option either (1) after the last *FLAGS variable, or
21149    # (2) before a word containing "conftest.", or (3) at the end.
21150    # Note that $ac_compile itself does not contain backslashes and begins
21151    # with a dollar sign (not a hyphen), so the echo should work correctly.
21152    # The option is referenced via a variable to avoid confusing sed.
21153    lt_compile=`echo "$ac_compile" | $SED \
21154    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21156    -e 's:$: $lt_compiler_flag:'`
21157    (eval echo "\"\$as_me:21157: $lt_compile\"" >&5)
21158    (eval "$lt_compile" 2>conftest.err)
21159    ac_status=$?
21160    cat conftest.err >&5
21161    echo "$as_me:21161: \$? = $ac_status" >&5
21162    if (exit $ac_status) && test -s "$ac_outfile"; then
21163      # The compiler can only warn and ignore the option if not recognized
21164      # So say no if there are warnings other than the usual output.
21165      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21166      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21167      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21168        lt_prog_compiler_pic_works_F77=yes
21169      fi
21170    fi
21171    $rm conftest*
21172
21173 fi
21174 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21175 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21176
21177 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21178     case $lt_prog_compiler_pic_F77 in
21179      "" | " "*) ;;
21180      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21181      esac
21182 else
21183     lt_prog_compiler_pic_F77=
21184      lt_prog_compiler_can_build_shared_F77=no
21185 fi
21186
21187 fi
21188 case $host_os in
21189   # For platforms which do not support PIC, -DPIC is meaningless:
21190   *djgpp*)
21191     lt_prog_compiler_pic_F77=
21192     ;;
21193   *)
21194     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21195     ;;
21196 esac
21197
21198 #
21199 # Check to make sure the static flag actually works.
21200 #
21201 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21202 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21203 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21204 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21205   echo $ECHO_N "(cached) $ECHO_C" >&6
21206 else
21207   lt_prog_compiler_static_works_F77=no
21208    save_LDFLAGS="$LDFLAGS"
21209    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21210    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21211    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21212      # The linker can only warn and ignore the option if not recognized
21213      # So say no if there are warnings
21214      if test -s conftest.err; then
21215        # Append any errors to the config.log.
21216        cat conftest.err 1>&5
21217        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21218        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21219        if diff conftest.exp conftest.er2 >/dev/null; then
21220          lt_prog_compiler_static_works_F77=yes
21221        fi
21222      else
21223        lt_prog_compiler_static_works_F77=yes
21224      fi
21225    fi
21226    $rm conftest*
21227    LDFLAGS="$save_LDFLAGS"
21228
21229 fi
21230 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21231 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21232
21233 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21234     :
21235 else
21236     lt_prog_compiler_static_F77=
21237 fi
21238
21239
21240 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21241 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21242 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21243   echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245   lt_cv_prog_compiler_c_o_F77=no
21246    $rm -r conftest 2>/dev/null
21247    mkdir conftest
21248    cd conftest
21249    mkdir out
21250    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21251
21252    lt_compiler_flag="-o out/conftest2.$ac_objext"
21253    # Insert the option either (1) after the last *FLAGS variable, or
21254    # (2) before a word containing "conftest.", or (3) at the end.
21255    # Note that $ac_compile itself does not contain backslashes and begins
21256    # with a dollar sign (not a hyphen), so the echo should work correctly.
21257    lt_compile=`echo "$ac_compile" | $SED \
21258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21260    -e 's:$: $lt_compiler_flag:'`
21261    (eval echo "\"\$as_me:21261: $lt_compile\"" >&5)
21262    (eval "$lt_compile" 2>out/conftest.err)
21263    ac_status=$?
21264    cat out/conftest.err >&5
21265    echo "$as_me:21265: \$? = $ac_status" >&5
21266    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21267    then
21268      # The compiler can only warn and ignore the option if not recognized
21269      # So say no if there are warnings
21270      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21271      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21272      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21273        lt_cv_prog_compiler_c_o_F77=yes
21274      fi
21275    fi
21276    chmod u+w . 2>&5
21277    $rm conftest*
21278    # SGI C++ compiler will create directory out/ii_files/ for
21279    # template instantiation
21280    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21281    $rm out/* && rmdir out
21282    cd ..
21283    rmdir conftest
21284    $rm conftest*
21285
21286 fi
21287 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21288 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21289
21290
21291 hard_links="nottested"
21292 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21293   # do not overwrite the value of need_locks provided by the user
21294   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21295 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21296   hard_links=yes
21297   $rm conftest*
21298   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299   touch conftest.a
21300   ln conftest.a conftest.b 2>&5 || hard_links=no
21301   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21302   { echo "$as_me:$LINENO: result: $hard_links" >&5
21303 echo "${ECHO_T}$hard_links" >&6; }
21304   if test "$hard_links" = no; then
21305     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21306 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21307     need_locks=warn
21308   fi
21309 else
21310   need_locks=no
21311 fi
21312
21313 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21314 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21315
21316   runpath_var=
21317   allow_undefined_flag_F77=
21318   enable_shared_with_static_runtimes_F77=no
21319   archive_cmds_F77=
21320   archive_expsym_cmds_F77=
21321   old_archive_From_new_cmds_F77=
21322   old_archive_from_expsyms_cmds_F77=
21323   export_dynamic_flag_spec_F77=
21324   whole_archive_flag_spec_F77=
21325   thread_safe_flag_spec_F77=
21326   hardcode_libdir_flag_spec_F77=
21327   hardcode_libdir_flag_spec_ld_F77=
21328   hardcode_libdir_separator_F77=
21329   hardcode_direct_F77=no
21330   hardcode_minus_L_F77=no
21331   hardcode_shlibpath_var_F77=unsupported
21332   link_all_deplibs_F77=unknown
21333   hardcode_automatic_F77=no
21334   module_cmds_F77=
21335   module_expsym_cmds_F77=
21336   always_export_symbols_F77=no
21337   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338   # include_expsyms should be a list of space-separated symbols to be *always*
21339   # included in the symbol list
21340   include_expsyms_F77=
21341   # exclude_expsyms can be an extended regexp of symbols to exclude
21342   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21343   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21344   # as well as any symbol that contains `d'.
21345   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21346   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21347   # platforms (ab)use it in PIC code, but their linkers get confused if
21348   # the symbol is explicitly referenced.  Since portable code cannot
21349   # rely on this symbol name, it's probably fine to never include it in
21350   # preloaded symbol tables.
21351   extract_expsyms_cmds=
21352   # Just being paranoid about ensuring that cc_basename is set.
21353   for cc_temp in $compiler""; do
21354   case $cc_temp in
21355     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21356     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21357     \-*) ;;
21358     *) break;;
21359   esac
21360 done
21361 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21362
21363   case $host_os in
21364   cygwin* | mingw* | pw32*)
21365     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21366     # When not using gcc, we currently assume that we are using
21367     # Microsoft Visual C++.
21368     if test "$GCC" != yes; then
21369       with_gnu_ld=no
21370     fi
21371     ;;
21372   interix*)
21373     # we just hope/assume this is gcc and not c89 (= MSVC++)
21374     with_gnu_ld=yes
21375     ;;
21376   openbsd*)
21377     with_gnu_ld=no
21378     ;;
21379   esac
21380
21381   ld_shlibs_F77=yes
21382   if test "$with_gnu_ld" = yes; then
21383     # If archive_cmds runs LD, not CC, wlarc should be empty
21384     wlarc='${wl}'
21385
21386     # Set some defaults for GNU ld with shared library support. These
21387     # are reset later if shared libraries are not supported. Putting them
21388     # here allows them to be overridden if necessary.
21389     runpath_var=LD_RUN_PATH
21390     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21391     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21392     # ancient GNU ld didn't support --whole-archive et. al.
21393     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21394         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21395       else
21396         whole_archive_flag_spec_F77=
21397     fi
21398     supports_anon_versioning=no
21399     case `$LD -v 2>/dev/null` in
21400       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21401       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21402       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21403       *\ 2.11.*) ;; # other 2.11 versions
21404       *) supports_anon_versioning=yes ;;
21405     esac
21406
21407     # See if GNU ld supports shared libraries.
21408     case $host_os in
21409     aix3* | aix4* | aix5*)
21410       # On AIX/PPC, the GNU linker is very broken
21411       if test "$host_cpu" != ia64; then
21412         ld_shlibs_F77=no
21413         cat <<EOF 1>&2
21414
21415 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21416 *** to be unable to reliably create shared libraries on AIX.
21417 *** Therefore, libtool is disabling shared libraries support.  If you
21418 *** really care for shared libraries, you may want to modify your PATH
21419 *** so that a non-GNU linker is found, and then restart.
21420
21421 EOF
21422       fi
21423       ;;
21424
21425     amigaos*)
21426       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)'
21427       hardcode_libdir_flag_spec_F77='-L$libdir'
21428       hardcode_minus_L_F77=yes
21429
21430       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21431       # that the semantics of dynamic libraries on AmigaOS, at least up
21432       # to version 4, is to share data among multiple programs linked
21433       # with the same dynamic library.  Since this doesn't match the
21434       # behavior of shared libraries on other platforms, we can't use
21435       # them.
21436       ld_shlibs_F77=no
21437       ;;
21438
21439     beos*)
21440       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21441         allow_undefined_flag_F77=unsupported
21442         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21443         # support --undefined.  This deserves some investigation.  FIXME
21444         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445       else
21446         ld_shlibs_F77=no
21447       fi
21448       ;;
21449
21450     cygwin* | mingw* | pw32*)
21451       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21452       # as there is no search path for DLLs.
21453       hardcode_libdir_flag_spec_F77='-L$libdir'
21454       allow_undefined_flag_F77=unsupported
21455       always_export_symbols_F77=no
21456       enable_shared_with_static_runtimes_F77=yes
21457       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21458
21459       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21460         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21461         # If the export-symbols file already is a .def file (1st line
21462         # is EXPORTS), use it as is; otherwise, prepend...
21463         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21464           cp $export_symbols $output_objdir/$soname.def;
21465         else
21466           echo EXPORTS > $output_objdir/$soname.def;
21467           cat $export_symbols >> $output_objdir/$soname.def;
21468         fi~
21469         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21470       else
21471         ld_shlibs_F77=no
21472       fi
21473       ;;
21474
21475     interix3*)
21476       hardcode_direct_F77=no
21477       hardcode_shlibpath_var_F77=no
21478       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21479       export_dynamic_flag_spec_F77='${wl}-E'
21480       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21481       # Instead, shared libraries are loaded at an image base (0x10000000 by
21482       # default) and relocated if they conflict, which is a slow very memory
21483       # consuming and fragmenting process.  To avoid this, we pick a random,
21484       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21485       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21486       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'
21487       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'
21488       ;;
21489
21490     linux*)
21491       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21492         tmp_addflag=
21493         case $cc_basename,$host_cpu in
21494         pgcc*)                          # Portland Group C compiler
21495           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'
21496           tmp_addflag=' $pic_flag'
21497           ;;
21498         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21499           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'
21500           tmp_addflag=' $pic_flag -Mnomain' ;;
21501         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21502           tmp_addflag=' -i_dynamic' ;;
21503         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21504           tmp_addflag=' -i_dynamic -nofor_main' ;;
21505         ifc* | ifort*)                  # Intel Fortran compiler
21506           tmp_addflag=' -nofor_main' ;;
21507         esac
21508         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21509
21510         if test $supports_anon_versioning = yes; then
21511           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21512   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21513   $echo "local: *; };" >> $output_objdir/$libname.ver~
21514           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21515         fi
21516       else
21517         ld_shlibs_F77=no
21518       fi
21519       ;;
21520
21521     netbsd*)
21522       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21523         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21524         wlarc=
21525       else
21526         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21527         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21528       fi
21529       ;;
21530
21531     solaris*)
21532       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21533         ld_shlibs_F77=no
21534         cat <<EOF 1>&2
21535
21536 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21537 *** create shared libraries on Solaris systems.  Therefore, libtool
21538 *** is disabling shared libraries support.  We urge you to upgrade GNU
21539 *** binutils to release 2.9.1 or newer.  Another option is to modify
21540 *** your PATH or compiler configuration so that the native linker is
21541 *** used, and then restart.
21542
21543 EOF
21544       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21545         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21546         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21547       else
21548         ld_shlibs_F77=no
21549       fi
21550       ;;
21551
21552     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21553       case `$LD -v 2>&1` in
21554         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21555         ld_shlibs_F77=no
21556         cat <<_LT_EOF 1>&2
21557
21558 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21559 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21560 *** is disabling shared libraries support.  We urge you to upgrade GNU
21561 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21562 *** your PATH or compiler configuration so that the native linker is
21563 *** used, and then restart.
21564
21565 _LT_EOF
21566         ;;
21567         *)
21568           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21569             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21570             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21571             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21572           else
21573             ld_shlibs_F77=no
21574           fi
21575         ;;
21576       esac
21577       ;;
21578
21579     sunos4*)
21580       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21581       wlarc=
21582       hardcode_direct_F77=yes
21583       hardcode_shlibpath_var_F77=no
21584       ;;
21585
21586     *)
21587       if $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     esac
21595
21596     if test "$ld_shlibs_F77" = no; then
21597       runpath_var=
21598       hardcode_libdir_flag_spec_F77=
21599       export_dynamic_flag_spec_F77=
21600       whole_archive_flag_spec_F77=
21601     fi
21602   else
21603     # PORTME fill in a description of your system's linker (not GNU ld)
21604     case $host_os in
21605     aix3*)
21606       allow_undefined_flag_F77=unsupported
21607       always_export_symbols_F77=yes
21608       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'
21609       # Note: this linker hardcodes the directories in LIBPATH if there
21610       # are no directories specified by -L.
21611       hardcode_minus_L_F77=yes
21612       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21613         # Neither direct hardcoding nor static linking is supported with a
21614         # broken collect2.
21615         hardcode_direct_F77=unsupported
21616       fi
21617       ;;
21618
21619     aix4* | aix5*)
21620       if test "$host_cpu" = ia64; then
21621         # On IA64, the linker does run time linking by default, so we don't
21622         # have to do anything special.
21623         aix_use_runtimelinking=no
21624         exp_sym_flag='-Bexport'
21625         no_entry_flag=""
21626       else
21627         # If we're using GNU nm, then we don't want the "-C" option.
21628         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21629         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21630           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'
21631         else
21632           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'
21633         fi
21634         aix_use_runtimelinking=no
21635
21636         # Test if we are trying to use run time linking or normal
21637         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21638         # need to do runtime linking.
21639         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21640           for ld_flag in $LDFLAGS; do
21641           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21642             aix_use_runtimelinking=yes
21643             break
21644           fi
21645           done
21646           ;;
21647         esac
21648
21649         exp_sym_flag='-bexport'
21650         no_entry_flag='-bnoentry'
21651       fi
21652
21653       # When large executables or shared objects are built, AIX ld can
21654       # have problems creating the table of contents.  If linking a library
21655       # or program results in "error TOC overflow" add -mminimal-toc to
21656       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21657       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21658
21659       archive_cmds_F77=''
21660       hardcode_direct_F77=yes
21661       hardcode_libdir_separator_F77=':'
21662       link_all_deplibs_F77=yes
21663
21664       if test "$GCC" = yes; then
21665         case $host_os in aix4.[012]|aix4.[012].*)
21666         # We only want to do this on AIX 4.2 and lower, the check
21667         # below for broken collect2 doesn't work under 4.3+
21668           collect2name=`${CC} -print-prog-name=collect2`
21669           if test -f "$collect2name" && \
21670            strings "$collect2name" | grep resolve_lib_name >/dev/null
21671           then
21672           # We have reworked collect2
21673           hardcode_direct_F77=yes
21674           else
21675           # We have old collect2
21676           hardcode_direct_F77=unsupported
21677           # It fails to find uninstalled libraries when the uninstalled
21678           # path is not listed in the libpath.  Setting hardcode_minus_L
21679           # to unsupported forces relinking
21680           hardcode_minus_L_F77=yes
21681           hardcode_libdir_flag_spec_F77='-L$libdir'
21682           hardcode_libdir_separator_F77=
21683           fi
21684           ;;
21685         esac
21686         shared_flag='-shared'
21687         if test "$aix_use_runtimelinking" = yes; then
21688           shared_flag="$shared_flag "'${wl}-G'
21689         fi
21690       else
21691         # not using gcc
21692         if test "$host_cpu" = ia64; then
21693         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21694         # chokes on -Wl,-G. The following line is correct:
21695           shared_flag='-G'
21696         else
21697           if test "$aix_use_runtimelinking" = yes; then
21698             shared_flag='${wl}-G'
21699           else
21700             shared_flag='${wl}-bM:SRE'
21701           fi
21702         fi
21703       fi
21704
21705       # It seems that -bexpall does not export symbols beginning with
21706       # underscore (_), so it is better to generate a list of symbols to export.
21707       always_export_symbols_F77=yes
21708       if test "$aix_use_runtimelinking" = yes; then
21709         # Warning - without using the other runtime loading flags (-brtl),
21710         # -berok will link without error, but may produce a broken library.
21711         allow_undefined_flag_F77='-berok'
21712        # Determine the default libpath from the value encoded in an empty executable.
21713        cat >conftest.$ac_ext <<_ACEOF
21714       program main
21715
21716       end
21717 _ACEOF
21718 rm -f conftest.$ac_objext conftest$ac_exeext
21719 if { (ac_try="$ac_link"
21720 case "(($ac_try" in
21721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722   *) ac_try_echo=$ac_try;;
21723 esac
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725   (eval "$ac_link") 2>conftest.er1
21726   ac_status=$?
21727   grep -v '^ *+' conftest.er1 >conftest.err
21728   rm -f conftest.er1
21729   cat conftest.err >&5
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); } &&
21732          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21733   { (case "(($ac_try" in
21734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735   *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738   (eval "$ac_try") 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; } &&
21742          { ac_try='test -s conftest$ac_exeext'
21743   { (case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_try") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; }; then
21752
21753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21754 }'`
21755 # Check for a 64-bit object if we didn't find anything.
21756 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; }
21757 }'`; fi
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext \
21766       conftest$ac_exeext conftest.$ac_ext
21767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21768
21769        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21770         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"
21771        else
21772         if test "$host_cpu" = ia64; then
21773           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21774           allow_undefined_flag_F77="-z nodefs"
21775           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"
21776         else
21777          # Determine the default libpath from the value encoded in an empty executable.
21778          cat >conftest.$ac_ext <<_ACEOF
21779       program main
21780
21781       end
21782 _ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787   *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790   (eval "$ac_link") 2>conftest.er1
21791   ac_status=$?
21792   grep -v '^ *+' conftest.er1 >conftest.err
21793   rm -f conftest.er1
21794   cat conftest.err >&5
21795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796   (exit $ac_status); } &&
21797          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21798   { (case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_try") 2>&5
21804   ac_status=$?
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); }; } &&
21807          { ac_try='test -s conftest$ac_exeext'
21808   { (case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_try") 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; }; then
21817
21818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21819 }'`
21820 # Check for a 64-bit object if we didn't find anything.
21821 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; }
21822 }'`; fi
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext \
21831       conftest$ac_exeext conftest.$ac_ext
21832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21833
21834          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21835           # Warning - without using the other run time loading flags,
21836           # -berok will link without error, but may produce a broken library.
21837           no_undefined_flag_F77=' ${wl}-bernotok'
21838           allow_undefined_flag_F77=' ${wl}-berok'
21839           # Exported symbols can be pulled into shared objects from archives
21840           whole_archive_flag_spec_F77='$convenience'
21841           archive_cmds_need_lc_F77=yes
21842           # This is similar to how AIX traditionally builds its shared libraries.
21843           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'
21844         fi
21845       fi
21846       ;;
21847
21848     amigaos*)
21849       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)'
21850       hardcode_libdir_flag_spec_F77='-L$libdir'
21851       hardcode_minus_L_F77=yes
21852       # see comment about different semantics on the GNU ld section
21853       ld_shlibs_F77=no
21854       ;;
21855
21856     bsdi[45]*)
21857       export_dynamic_flag_spec_F77=-rdynamic
21858       ;;
21859
21860     cygwin* | mingw* | pw32*)
21861       # When not using gcc, we currently assume that we are using
21862       # Microsoft Visual C++.
21863       # hardcode_libdir_flag_spec is actually meaningless, as there is
21864       # no search path for DLLs.
21865       hardcode_libdir_flag_spec_F77=' '
21866       allow_undefined_flag_F77=unsupported
21867       # Tell ltmain to make .lib files, not .a files.
21868       libext=lib
21869       # Tell ltmain to make .dll files, not .so files.
21870       shrext_cmds=".dll"
21871       # FIXME: Setting linknames here is a bad hack.
21872       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21873       # The linker will automatically build a .lib file if we build a DLL.
21874       old_archive_From_new_cmds_F77='true'
21875       # FIXME: Should let the user specify the lib program.
21876       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21877       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21878       enable_shared_with_static_runtimes_F77=yes
21879       ;;
21880
21881     darwin* | rhapsody*)
21882       case $host_os in
21883         rhapsody* | darwin1.[012])
21884          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21885          ;;
21886        *) # Darwin 1.3 on
21887          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21888            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21889          else
21890            case ${MACOSX_DEPLOYMENT_TARGET} in
21891              10.[012])
21892                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893                ;;
21894              10.*)
21895                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21896                ;;
21897            esac
21898          fi
21899          ;;
21900       esac
21901       archive_cmds_need_lc_F77=no
21902       hardcode_direct_F77=no
21903       hardcode_automatic_F77=yes
21904       hardcode_shlibpath_var_F77=unsupported
21905       whole_archive_flag_spec_F77=''
21906       link_all_deplibs_F77=yes
21907     if test "$GCC" = yes ; then
21908         output_verbose_link_cmd='echo'
21909         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21910       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21911       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21912       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}'
21913       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}'
21914     else
21915       case $cc_basename in
21916         xlc*)
21917          output_verbose_link_cmd='echo'
21918          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21919          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21920           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21921          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}'
21922           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}'
21923           ;;
21924        *)
21925          ld_shlibs_F77=no
21926           ;;
21927       esac
21928     fi
21929       ;;
21930
21931     dgux*)
21932       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21933       hardcode_libdir_flag_spec_F77='-L$libdir'
21934       hardcode_shlibpath_var_F77=no
21935       ;;
21936
21937     freebsd1*)
21938       ld_shlibs_F77=no
21939       ;;
21940
21941     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21942     # support.  Future versions do this automatically, but an explicit c++rt0.o
21943     # does not break anything, and helps significantly (at the cost of a little
21944     # extra space).
21945     freebsd2.2*)
21946       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21947       hardcode_libdir_flag_spec_F77='-R$libdir'
21948       hardcode_direct_F77=yes
21949       hardcode_shlibpath_var_F77=no
21950       ;;
21951
21952     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21953     freebsd2*)
21954       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21955       hardcode_direct_F77=yes
21956       hardcode_minus_L_F77=yes
21957       hardcode_shlibpath_var_F77=no
21958       ;;
21959
21960     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21961     freebsd* | kfreebsd*-gnu | dragonfly*)
21962       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21963       hardcode_libdir_flag_spec_F77='-R$libdir'
21964       hardcode_direct_F77=yes
21965       hardcode_shlibpath_var_F77=no
21966       ;;
21967
21968     hpux9*)
21969       if test "$GCC" = yes; then
21970         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'
21971       else
21972         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'
21973       fi
21974       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21975       hardcode_libdir_separator_F77=:
21976       hardcode_direct_F77=yes
21977
21978       # hardcode_minus_L: Not really in the search PATH,
21979       # but as the default location of the library.
21980       hardcode_minus_L_F77=yes
21981       export_dynamic_flag_spec_F77='${wl}-E'
21982       ;;
21983
21984     hpux10*)
21985       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21986         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21987       else
21988         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21989       fi
21990       if test "$with_gnu_ld" = no; then
21991         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21992         hardcode_libdir_separator_F77=:
21993
21994         hardcode_direct_F77=yes
21995         export_dynamic_flag_spec_F77='${wl}-E'
21996
21997         # hardcode_minus_L: Not really in the search PATH,
21998         # but as the default location of the library.
21999         hardcode_minus_L_F77=yes
22000       fi
22001       ;;
22002
22003     hpux11*)
22004       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22005         case $host_cpu in
22006         hppa*64*)
22007           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22008           ;;
22009         ia64*)
22010           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22011           ;;
22012         *)
22013           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22014           ;;
22015         esac
22016       else
22017         case $host_cpu in
22018         hppa*64*)
22019           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22020           ;;
22021         ia64*)
22022           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22023           ;;
22024         *)
22025           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22026           ;;
22027         esac
22028       fi
22029       if test "$with_gnu_ld" = no; then
22030         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22031         hardcode_libdir_separator_F77=:
22032
22033         case $host_cpu in
22034         hppa*64*|ia64*)
22035           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22036           hardcode_direct_F77=no
22037           hardcode_shlibpath_var_F77=no
22038           ;;
22039         *)
22040           hardcode_direct_F77=yes
22041           export_dynamic_flag_spec_F77='${wl}-E'
22042
22043           # hardcode_minus_L: Not really in the search PATH,
22044           # but as the default location of the library.
22045           hardcode_minus_L_F77=yes
22046           ;;
22047         esac
22048       fi
22049       ;;
22050
22051     irix5* | irix6* | nonstopux*)
22052       if test "$GCC" = yes; then
22053         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'
22054       else
22055         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'
22056         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22057       fi
22058       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22059       hardcode_libdir_separator_F77=:
22060       link_all_deplibs_F77=yes
22061       ;;
22062
22063     netbsd*)
22064       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22065         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22066       else
22067         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22068       fi
22069       hardcode_libdir_flag_spec_F77='-R$libdir'
22070       hardcode_direct_F77=yes
22071       hardcode_shlibpath_var_F77=no
22072       ;;
22073
22074     newsos6)
22075       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22076       hardcode_direct_F77=yes
22077       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22078       hardcode_libdir_separator_F77=:
22079       hardcode_shlibpath_var_F77=no
22080       ;;
22081
22082     openbsd*)
22083       hardcode_direct_F77=yes
22084       hardcode_shlibpath_var_F77=no
22085       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22086         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22087         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22088         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22089         export_dynamic_flag_spec_F77='${wl}-E'
22090       else
22091        case $host_os in
22092          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22093            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22094            hardcode_libdir_flag_spec_F77='-R$libdir'
22095            ;;
22096          *)
22097            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22098            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22099            ;;
22100        esac
22101       fi
22102       ;;
22103
22104     os2*)
22105       hardcode_libdir_flag_spec_F77='-L$libdir'
22106       hardcode_minus_L_F77=yes
22107       allow_undefined_flag_F77=unsupported
22108       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'
22109       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22110       ;;
22111
22112     osf3*)
22113       if test "$GCC" = yes; then
22114         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22115         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'
22116       else
22117         allow_undefined_flag_F77=' -expect_unresolved \*'
22118         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'
22119       fi
22120       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22121       hardcode_libdir_separator_F77=:
22122       ;;
22123
22124     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22125       if test "$GCC" = yes; then
22126         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22127         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'
22128         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22129       else
22130         allow_undefined_flag_F77=' -expect_unresolved \*'
22131         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'
22132         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~
22133         $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'
22134
22135         # Both c and cxx compiler support -rpath directly
22136         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22137       fi
22138       hardcode_libdir_separator_F77=:
22139       ;;
22140
22141     solaris*)
22142       no_undefined_flag_F77=' -z text'
22143       if test "$GCC" = yes; then
22144         wlarc='${wl}'
22145         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22146         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22148       else
22149         wlarc=''
22150         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22153       fi
22154       hardcode_libdir_flag_spec_F77='-R$libdir'
22155       hardcode_shlibpath_var_F77=no
22156       case $host_os in
22157       solaris2.[0-5] | solaris2.[0-5].*) ;;
22158       *)
22159         # The compiler driver will combine linker options so we
22160         # cannot just pass the convience library names through
22161         # without $wl, iff we do not link with $LD.
22162         # Luckily, gcc supports the same syntax we need for Sun Studio.
22163         # Supported since Solaris 2.6 (maybe 2.5.1?)
22164         case $wlarc in
22165         '')
22166           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22167         *)
22168           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' ;;
22169         esac ;;
22170       esac
22171       link_all_deplibs_F77=yes
22172       ;;
22173
22174     sunos4*)
22175       if test "x$host_vendor" = xsequent; then
22176         # Use $CC to link under sequent, because it throws in some extra .o
22177         # files that make .init and .fini sections work.
22178         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22179       else
22180         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22181       fi
22182       hardcode_libdir_flag_spec_F77='-L$libdir'
22183       hardcode_direct_F77=yes
22184       hardcode_minus_L_F77=yes
22185       hardcode_shlibpath_var_F77=no
22186       ;;
22187
22188     sysv4)
22189       case $host_vendor in
22190         sni)
22191           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192           hardcode_direct_F77=yes # is this really true???
22193         ;;
22194         siemens)
22195           ## LD is ld it makes a PLAMLIB
22196           ## CC just makes a GrossModule.
22197           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22198           reload_cmds_F77='$CC -r -o $output$reload_objs'
22199           hardcode_direct_F77=no
22200         ;;
22201         motorola)
22202           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22203           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22204         ;;
22205       esac
22206       runpath_var='LD_RUN_PATH'
22207       hardcode_shlibpath_var_F77=no
22208       ;;
22209
22210     sysv4.3*)
22211       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22212       hardcode_shlibpath_var_F77=no
22213       export_dynamic_flag_spec_F77='-Bexport'
22214       ;;
22215
22216     sysv4*MP*)
22217       if test -d /usr/nec; then
22218         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219         hardcode_shlibpath_var_F77=no
22220         runpath_var=LD_RUN_PATH
22221         hardcode_runpath_var=yes
22222         ld_shlibs_F77=yes
22223       fi
22224       ;;
22225
22226     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22227       no_undefined_flag_F77='${wl}-z,text'
22228       archive_cmds_need_lc_F77=no
22229       hardcode_shlibpath_var_F77=no
22230       runpath_var='LD_RUN_PATH'
22231
22232       if test "$GCC" = yes; then
22233         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22234         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22235       else
22236         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22238       fi
22239       ;;
22240
22241     sysv5* | sco3.2v5* | sco5v6*)
22242       # Note: We can NOT use -z defs as we might desire, because we do not
22243       # link with -lc, and that would cause any symbols used from libc to
22244       # always be unresolved, which means just about no library would
22245       # ever link correctly.  If we're not using GNU ld we use -z text
22246       # though, which does catch some bad symbols but isn't as heavy-handed
22247       # as -z defs.
22248       no_undefined_flag_F77='${wl}-z,text'
22249       allow_undefined_flag_F77='${wl}-z,nodefs'
22250       archive_cmds_need_lc_F77=no
22251       hardcode_shlibpath_var_F77=no
22252       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22253       hardcode_libdir_separator_F77=':'
22254       link_all_deplibs_F77=yes
22255       export_dynamic_flag_spec_F77='${wl}-Bexport'
22256       runpath_var='LD_RUN_PATH'
22257
22258       if test "$GCC" = yes; then
22259         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22260         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261       else
22262         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264       fi
22265       ;;
22266
22267     uts4*)
22268       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22269       hardcode_libdir_flag_spec_F77='-L$libdir'
22270       hardcode_shlibpath_var_F77=no
22271       ;;
22272
22273     *)
22274       ld_shlibs_F77=no
22275       ;;
22276     esac
22277   fi
22278
22279 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22280 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22281 test "$ld_shlibs_F77" = no && can_build_shared=no
22282
22283 #
22284 # Do we need to explicitly link libc?
22285 #
22286 case "x$archive_cmds_need_lc_F77" in
22287 x|xyes)
22288   # Assume -lc should be added
22289   archive_cmds_need_lc_F77=yes
22290
22291   if test "$enable_shared" = yes && test "$GCC" = yes; then
22292     case $archive_cmds_F77 in
22293     *'~'*)
22294       # FIXME: we may have to deal with multi-command sequences.
22295       ;;
22296     '$CC '*)
22297       # Test whether the compiler implicitly links with -lc since on some
22298       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22299       # to ld, don't add -lc before -lgcc.
22300       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22301 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22302       $rm conftest*
22303       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22304
22305       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306   (eval $ac_compile) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); } 2>conftest.err; then
22310         soname=conftest
22311         lib=conftest
22312         libobjs=conftest.$ac_objext
22313         deplibs=
22314         wl=$lt_prog_compiler_wl_F77
22315         pic_flag=$lt_prog_compiler_pic_F77
22316         compiler_flags=-v
22317         linker_flags=-v
22318         verstring=
22319         output_objdir=.
22320         libname=conftest
22321         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22322         allow_undefined_flag_F77=
22323         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22324   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }
22328         then
22329           archive_cmds_need_lc_F77=no
22330         else
22331           archive_cmds_need_lc_F77=yes
22332         fi
22333         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22334       else
22335         cat conftest.err 1>&5
22336       fi
22337       $rm conftest*
22338       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22339 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22340       ;;
22341     esac
22342   fi
22343   ;;
22344 esac
22345
22346 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22347 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22348 library_names_spec=
22349 libname_spec='lib$name'
22350 soname_spec=
22351 shrext_cmds=".so"
22352 postinstall_cmds=
22353 postuninstall_cmds=
22354 finish_cmds=
22355 finish_eval=
22356 shlibpath_var=
22357 shlibpath_overrides_runpath=unknown
22358 version_type=none
22359 dynamic_linker="$host_os ld.so"
22360 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22361 if test "$GCC" = yes; then
22362   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22363   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22364     # if the path contains ";" then we assume it to be the separator
22365     # otherwise default to the standard path separator (i.e. ":") - it is
22366     # assumed that no part of a normal pathname contains ";" but that should
22367     # okay in the real world where ";" in dirpaths is itself problematic.
22368     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22369   else
22370     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22371   fi
22372 else
22373   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22374 fi
22375 need_lib_prefix=unknown
22376 hardcode_into_libs=no
22377
22378 # when you set need_version to no, make sure it does not cause -set_version
22379 # flags to be left without arguments
22380 need_version=unknown
22381
22382 case $host_os in
22383 aix3*)
22384   version_type=linux
22385   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22386   shlibpath_var=LIBPATH
22387
22388   # AIX 3 has no versioning support, so we append a major version to the name.
22389   soname_spec='${libname}${release}${shared_ext}$major'
22390   ;;
22391
22392 aix4* | aix5*)
22393   version_type=linux
22394   need_lib_prefix=no
22395   need_version=no
22396   hardcode_into_libs=yes
22397   if test "$host_cpu" = ia64; then
22398     # AIX 5 supports IA64
22399     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22400     shlibpath_var=LD_LIBRARY_PATH
22401   else
22402     # With GCC up to 2.95.x, collect2 would create an import file
22403     # for dependence libraries.  The import file would start with
22404     # the line `#! .'.  This would cause the generated library to
22405     # depend on `.', always an invalid library.  This was fixed in
22406     # development snapshots of GCC prior to 3.0.
22407     case $host_os in
22408       aix4 | aix4.[01] | aix4.[01].*)
22409       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22410            echo ' yes '
22411            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22412         :
22413       else
22414         can_build_shared=no
22415       fi
22416       ;;
22417     esac
22418     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22419     # soname into executable. Probably we can add versioning support to
22420     # collect2, so additional links can be useful in future.
22421     if test "$aix_use_runtimelinking" = yes; then
22422       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22423       # instead of lib<name>.a to let people know that these are not
22424       # typical AIX shared libraries.
22425       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22426     else
22427       # We preserve .a as extension for shared libraries through AIX4.2
22428       # and later when we are not doing run time linking.
22429       library_names_spec='${libname}${release}.a $libname.a'
22430       soname_spec='${libname}${release}${shared_ext}$major'
22431     fi
22432     shlibpath_var=LIBPATH
22433   fi
22434   ;;
22435
22436 amigaos*)
22437   library_names_spec='$libname.ixlibrary $libname.a'
22438   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22439   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'
22440   ;;
22441
22442 beos*)
22443   library_names_spec='${libname}${shared_ext}'
22444   dynamic_linker="$host_os ld.so"
22445   shlibpath_var=LIBRARY_PATH
22446   ;;
22447
22448 bsdi[45]*)
22449   version_type=linux
22450   need_version=no
22451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452   soname_spec='${libname}${release}${shared_ext}$major'
22453   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22454   shlibpath_var=LD_LIBRARY_PATH
22455   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22456   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22457   # the default ld.so.conf also contains /usr/contrib/lib and
22458   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22459   # libtool to hard-code these into programs
22460   ;;
22461
22462 cygwin* | mingw* | pw32*)
22463   version_type=windows
22464   shrext_cmds=".dll"
22465   need_version=no
22466   need_lib_prefix=no
22467
22468   case $GCC,$host_os in
22469   yes,cygwin* | yes,mingw* | yes,pw32*)
22470     library_names_spec='$libname.dll.a'
22471     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22472     postinstall_cmds='base_file=`basename \${file}`~
22473       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22474       dldir=$destdir/`dirname \$dlpath`~
22475       test -d \$dldir || mkdir -p \$dldir~
22476       $install_prog $dir/$dlname \$dldir/$dlname~
22477       chmod a+x \$dldir/$dlname'
22478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22479       dlpath=$dir/\$dldll~
22480        $rm \$dlpath'
22481     shlibpath_overrides_runpath=yes
22482
22483     case $host_os in
22484     cygwin*)
22485       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22486       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22487       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22488       ;;
22489     mingw*)
22490       # MinGW DLLs use traditional 'lib' prefix
22491       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22492       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22493       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22494         # It is most probably a Windows format PATH printed by
22495         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22496         # path with ; separators, and with drive letters. We can handle the
22497         # drive letters (cygwin fileutils understands them), so leave them,
22498         # especially as we might pass files found there to a mingw objdump,
22499         # which wouldn't understand a cygwinified path. Ahh.
22500         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22501       else
22502         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22503       fi
22504       ;;
22505     pw32*)
22506       # pw32 DLLs use 'pw' prefix rather than 'lib'
22507       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22508       ;;
22509     esac
22510     ;;
22511
22512   *)
22513     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22514     ;;
22515   esac
22516   dynamic_linker='Win32 ld.exe'
22517   # FIXME: first we should search . and the directory the executable is in
22518   shlibpath_var=PATH
22519   ;;
22520
22521 darwin* | rhapsody*)
22522   dynamic_linker="$host_os dyld"
22523   version_type=darwin
22524   need_lib_prefix=no
22525   need_version=no
22526   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22527   soname_spec='${libname}${release}${major}$shared_ext'
22528   shlibpath_overrides_runpath=yes
22529   shlibpath_var=DYLD_LIBRARY_PATH
22530   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22531   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22532   if test "$GCC" = yes; then
22533     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"`
22534   else
22535     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22536   fi
22537   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22538   ;;
22539
22540 dgux*)
22541   version_type=linux
22542   need_lib_prefix=no
22543   need_version=no
22544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22545   soname_spec='${libname}${release}${shared_ext}$major'
22546   shlibpath_var=LD_LIBRARY_PATH
22547   ;;
22548
22549 freebsd1*)
22550   dynamic_linker=no
22551   ;;
22552
22553 kfreebsd*-gnu)
22554   version_type=linux
22555   need_lib_prefix=no
22556   need_version=no
22557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22558   soname_spec='${libname}${release}${shared_ext}$major'
22559   shlibpath_var=LD_LIBRARY_PATH
22560   shlibpath_overrides_runpath=no
22561   hardcode_into_libs=yes
22562   dynamic_linker='GNU ld.so'
22563   ;;
22564
22565 freebsd* | dragonfly*)
22566   # DragonFly does not have aout.  When/if they implement a new
22567   # versioning mechanism, adjust this.
22568   if test -x /usr/bin/objformat; then
22569     objformat=`/usr/bin/objformat`
22570   else
22571     case $host_os in
22572     freebsd[123]*) objformat=aout ;;
22573     *) objformat=elf ;;
22574     esac
22575   fi
22576   version_type=freebsd-$objformat
22577   case $version_type in
22578     freebsd-elf*)
22579       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22580       need_version=no
22581       need_lib_prefix=no
22582       ;;
22583     freebsd-*)
22584       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22585       need_version=yes
22586       ;;
22587   esac
22588   shlibpath_var=LD_LIBRARY_PATH
22589   case $host_os in
22590   freebsd2*)
22591     shlibpath_overrides_runpath=yes
22592     ;;
22593   freebsd3.[01]* | freebsdelf3.[01]*)
22594     shlibpath_overrides_runpath=yes
22595     hardcode_into_libs=yes
22596     ;;
22597   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22598   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22599     shlibpath_overrides_runpath=no
22600     hardcode_into_libs=yes
22601     ;;
22602   freebsd*) # from 4.6 on
22603     shlibpath_overrides_runpath=yes
22604     hardcode_into_libs=yes
22605     ;;
22606   esac
22607   ;;
22608
22609 gnu*)
22610   version_type=linux
22611   need_lib_prefix=no
22612   need_version=no
22613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22614   soname_spec='${libname}${release}${shared_ext}$major'
22615   shlibpath_var=LD_LIBRARY_PATH
22616   hardcode_into_libs=yes
22617   ;;
22618
22619 hpux9* | hpux10* | hpux11*)
22620   # Give a soname corresponding to the major version so that dld.sl refuses to
22621   # link against other versions.
22622   version_type=sunos
22623   need_lib_prefix=no
22624   need_version=no
22625   case $host_cpu in
22626   ia64*)
22627     shrext_cmds='.so'
22628     hardcode_into_libs=yes
22629     dynamic_linker="$host_os dld.so"
22630     shlibpath_var=LD_LIBRARY_PATH
22631     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22633     soname_spec='${libname}${release}${shared_ext}$major'
22634     if test "X$HPUX_IA64_MODE" = X32; then
22635       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22636     else
22637       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22638     fi
22639     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22640     ;;
22641    hppa*64*)
22642      shrext_cmds='.sl'
22643      hardcode_into_libs=yes
22644      dynamic_linker="$host_os dld.sl"
22645      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22646      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648      soname_spec='${libname}${release}${shared_ext}$major'
22649      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22650      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22651      ;;
22652    *)
22653     shrext_cmds='.sl'
22654     dynamic_linker="$host_os dld.sl"
22655     shlibpath_var=SHLIB_PATH
22656     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22658     soname_spec='${libname}${release}${shared_ext}$major'
22659     ;;
22660   esac
22661   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22662   postinstall_cmds='chmod 555 $lib'
22663   ;;
22664
22665 interix3*)
22666   version_type=linux
22667   need_lib_prefix=no
22668   need_version=no
22669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22670   soname_spec='${libname}${release}${shared_ext}$major'
22671   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22672   shlibpath_var=LD_LIBRARY_PATH
22673   shlibpath_overrides_runpath=no
22674   hardcode_into_libs=yes
22675   ;;
22676
22677 irix5* | irix6* | nonstopux*)
22678   case $host_os in
22679     nonstopux*) version_type=nonstopux ;;
22680     *)
22681         if test "$lt_cv_prog_gnu_ld" = yes; then
22682                 version_type=linux
22683         else
22684                 version_type=irix
22685         fi ;;
22686   esac
22687   need_lib_prefix=no
22688   need_version=no
22689   soname_spec='${libname}${release}${shared_ext}$major'
22690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22691   case $host_os in
22692   irix5* | nonstopux*)
22693     libsuff= shlibsuff=
22694     ;;
22695   *)
22696     case $LD in # libtool.m4 will add one of these switches to LD
22697     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22698       libsuff= shlibsuff= libmagic=32-bit;;
22699     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22700       libsuff=32 shlibsuff=N32 libmagic=N32;;
22701     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22702       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22703     *) libsuff= shlibsuff= libmagic=never-match;;
22704     esac
22705     ;;
22706   esac
22707   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22708   shlibpath_overrides_runpath=no
22709   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22710   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22711   hardcode_into_libs=yes
22712   ;;
22713
22714 # No shared lib support for Linux oldld, aout, or coff.
22715 linux*oldld* | linux*aout* | linux*coff*)
22716   dynamic_linker=no
22717   ;;
22718
22719 # This must be Linux ELF.
22720 linux*)
22721   version_type=linux
22722   need_lib_prefix=no
22723   need_version=no
22724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725   soname_spec='${libname}${release}${shared_ext}$major'
22726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22727   shlibpath_var=LD_LIBRARY_PATH
22728   shlibpath_overrides_runpath=no
22729   # This implies no fast_install, which is unacceptable.
22730   # Some rework will be needed to allow for fast_install
22731   # before this can be enabled.
22732   hardcode_into_libs=yes
22733
22734   # Append ld.so.conf contents to the search path
22735   if test -f /etc/ld.so.conf; then
22736     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' ' '`
22737     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22738   fi
22739
22740   # We used to test for /lib/ld.so.1 and disable shared libraries on
22741   # powerpc, because MkLinux only supported shared libraries with the
22742   # GNU dynamic linker.  Since this was broken with cross compilers,
22743   # most powerpc-linux boxes support dynamic linking these days and
22744   # people can always --disable-shared, the test was removed, and we
22745   # assume the GNU/Linux dynamic linker is in use.
22746   dynamic_linker='GNU/Linux ld.so'
22747   ;;
22748
22749 knetbsd*-gnu)
22750   version_type=linux
22751   need_lib_prefix=no
22752   need_version=no
22753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22754   soname_spec='${libname}${release}${shared_ext}$major'
22755   shlibpath_var=LD_LIBRARY_PATH
22756   shlibpath_overrides_runpath=no
22757   hardcode_into_libs=yes
22758   dynamic_linker='GNU ld.so'
22759   ;;
22760
22761 netbsd*)
22762   version_type=sunos
22763   need_lib_prefix=no
22764   need_version=no
22765   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22767     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22768     dynamic_linker='NetBSD (a.out) ld.so'
22769   else
22770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22771     soname_spec='${libname}${release}${shared_ext}$major'
22772     dynamic_linker='NetBSD ld.elf_so'
22773   fi
22774   shlibpath_var=LD_LIBRARY_PATH
22775   shlibpath_overrides_runpath=yes
22776   hardcode_into_libs=yes
22777   ;;
22778
22779 newsos6)
22780   version_type=linux
22781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782   shlibpath_var=LD_LIBRARY_PATH
22783   shlibpath_overrides_runpath=yes
22784   ;;
22785
22786 nto-qnx*)
22787   version_type=linux
22788   need_lib_prefix=no
22789   need_version=no
22790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22791   soname_spec='${libname}${release}${shared_ext}$major'
22792   shlibpath_var=LD_LIBRARY_PATH
22793   shlibpath_overrides_runpath=yes
22794   ;;
22795
22796 openbsd*)
22797   version_type=sunos
22798   sys_lib_dlsearch_path_spec="/usr/lib"
22799   need_lib_prefix=no
22800   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22801   case $host_os in
22802     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22803     *)                         need_version=no  ;;
22804   esac
22805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22807   shlibpath_var=LD_LIBRARY_PATH
22808   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22809     case $host_os in
22810       openbsd2.[89] | openbsd2.[89].*)
22811         shlibpath_overrides_runpath=no
22812         ;;
22813       *)
22814         shlibpath_overrides_runpath=yes
22815         ;;
22816       esac
22817   else
22818     shlibpath_overrides_runpath=yes
22819   fi
22820   ;;
22821
22822 os2*)
22823   libname_spec='$name'
22824   shrext_cmds=".dll"
22825   need_lib_prefix=no
22826   library_names_spec='$libname${shared_ext} $libname.a'
22827   dynamic_linker='OS/2 ld.exe'
22828   shlibpath_var=LIBPATH
22829   ;;
22830
22831 osf3* | osf4* | osf5*)
22832   version_type=osf
22833   need_lib_prefix=no
22834   need_version=no
22835   soname_spec='${libname}${release}${shared_ext}$major'
22836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837   shlibpath_var=LD_LIBRARY_PATH
22838   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22839   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22840   ;;
22841
22842 solaris*)
22843   version_type=linux
22844   need_lib_prefix=no
22845   need_version=no
22846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22847   soname_spec='${libname}${release}${shared_ext}$major'
22848   shlibpath_var=LD_LIBRARY_PATH
22849   shlibpath_overrides_runpath=yes
22850   hardcode_into_libs=yes
22851   # ldd complains unless libraries are executable
22852   postinstall_cmds='chmod +x $lib'
22853   ;;
22854
22855 sunos4*)
22856   version_type=sunos
22857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22858   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22859   shlibpath_var=LD_LIBRARY_PATH
22860   shlibpath_overrides_runpath=yes
22861   if test "$with_gnu_ld" = yes; then
22862     need_lib_prefix=no
22863   fi
22864   need_version=yes
22865   ;;
22866
22867 sysv4 | sysv4.3*)
22868   version_type=linux
22869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870   soname_spec='${libname}${release}${shared_ext}$major'
22871   shlibpath_var=LD_LIBRARY_PATH
22872   case $host_vendor in
22873     sni)
22874       shlibpath_overrides_runpath=no
22875       need_lib_prefix=no
22876       export_dynamic_flag_spec='${wl}-Blargedynsym'
22877       runpath_var=LD_RUN_PATH
22878       ;;
22879     siemens)
22880       need_lib_prefix=no
22881       ;;
22882     motorola)
22883       need_lib_prefix=no
22884       need_version=no
22885       shlibpath_overrides_runpath=no
22886       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22887       ;;
22888   esac
22889   ;;
22890
22891 sysv4*MP*)
22892   if test -d /usr/nec ;then
22893     version_type=linux
22894     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22895     soname_spec='$libname${shared_ext}.$major'
22896     shlibpath_var=LD_LIBRARY_PATH
22897   fi
22898   ;;
22899
22900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22901   version_type=freebsd-elf
22902   need_lib_prefix=no
22903   need_version=no
22904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22905   soname_spec='${libname}${release}${shared_ext}$major'
22906   shlibpath_var=LD_LIBRARY_PATH
22907   hardcode_into_libs=yes
22908   if test "$with_gnu_ld" = yes; then
22909     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22910     shlibpath_overrides_runpath=no
22911   else
22912     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22913     shlibpath_overrides_runpath=yes
22914     case $host_os in
22915       sco3.2v5*)
22916         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22917         ;;
22918     esac
22919   fi
22920   sys_lib_dlsearch_path_spec='/usr/lib'
22921   ;;
22922
22923 uts4*)
22924   version_type=linux
22925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926   soname_spec='${libname}${release}${shared_ext}$major'
22927   shlibpath_var=LD_LIBRARY_PATH
22928   ;;
22929
22930 *)
22931   dynamic_linker=no
22932   ;;
22933 esac
22934 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22935 echo "${ECHO_T}$dynamic_linker" >&6; }
22936 test "$dynamic_linker" = no && can_build_shared=no
22937
22938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22939 if test "$GCC" = yes; then
22940   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22941 fi
22942
22943 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22945 hardcode_action_F77=
22946 if test -n "$hardcode_libdir_flag_spec_F77" || \
22947    test -n "$runpath_var_F77" || \
22948    test "X$hardcode_automatic_F77" = "Xyes" ; then
22949
22950   # We can hardcode non-existant directories.
22951   if test "$hardcode_direct_F77" != no &&
22952      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953      # have to relink, otherwise we might link with an installed library
22954      # when we should be linking with a yet-to-be-installed one
22955      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22956      test "$hardcode_minus_L_F77" != no; then
22957     # Linking always hardcodes the temporary library directory.
22958     hardcode_action_F77=relink
22959   else
22960     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961     hardcode_action_F77=immediate
22962   fi
22963 else
22964   # We cannot hardcode anything, or else we can only hardcode existing
22965   # directories.
22966   hardcode_action_F77=unsupported
22967 fi
22968 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22969 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22970
22971 if test "$hardcode_action_F77" = relink; then
22972   # Fast installation is not supported
22973   enable_fast_install=no
22974 elif test "$shlibpath_overrides_runpath" = yes ||
22975      test "$enable_shared" = no; then
22976   # Fast installation is not necessary
22977   enable_fast_install=needless
22978 fi
22979
22980
22981 # The else clause should only fire when bootstrapping the
22982 # libtool distribution, otherwise you forgot to ship ltmain.sh
22983 # with your package, and you will get complaints that there are
22984 # no rules to generate ltmain.sh.
22985 if test -f "$ltmain"; then
22986   # See if we are running on zsh, and set the options which allow our commands through
22987   # without removal of \ escapes.
22988   if test -n "${ZSH_VERSION+set}" ; then
22989     setopt NO_GLOB_SUBST
22990   fi
22991   # Now quote all the things that may contain metacharacters while being
22992   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22993   # variables and quote the copies for generation of the libtool script.
22994   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22995     SED SHELL STRIP \
22996     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22997     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22998     deplibs_check_method reload_flag reload_cmds need_locks \
22999     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23000     lt_cv_sys_global_symbol_to_c_name_address \
23001     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23002     old_postinstall_cmds old_postuninstall_cmds \
23003     compiler_F77 \
23004     CC_F77 \
23005     LD_F77 \
23006     lt_prog_compiler_wl_F77 \
23007     lt_prog_compiler_pic_F77 \
23008     lt_prog_compiler_static_F77 \
23009     lt_prog_compiler_no_builtin_flag_F77 \
23010     export_dynamic_flag_spec_F77 \
23011     thread_safe_flag_spec_F77 \
23012     whole_archive_flag_spec_F77 \
23013     enable_shared_with_static_runtimes_F77 \
23014     old_archive_cmds_F77 \
23015     old_archive_from_new_cmds_F77 \
23016     predep_objects_F77 \
23017     postdep_objects_F77 \
23018     predeps_F77 \
23019     postdeps_F77 \
23020     compiler_lib_search_path_F77 \
23021     archive_cmds_F77 \
23022     archive_expsym_cmds_F77 \
23023     postinstall_cmds_F77 \
23024     postuninstall_cmds_F77 \
23025     old_archive_from_expsyms_cmds_F77 \
23026     allow_undefined_flag_F77 \
23027     no_undefined_flag_F77 \
23028     export_symbols_cmds_F77 \
23029     hardcode_libdir_flag_spec_F77 \
23030     hardcode_libdir_flag_spec_ld_F77 \
23031     hardcode_libdir_separator_F77 \
23032     hardcode_automatic_F77 \
23033     module_cmds_F77 \
23034     module_expsym_cmds_F77 \
23035     lt_cv_prog_compiler_c_o_F77 \
23036     exclude_expsyms_F77 \
23037     include_expsyms_F77; do
23038
23039     case $var in
23040     old_archive_cmds_F77 | \
23041     old_archive_from_new_cmds_F77 | \
23042     archive_cmds_F77 | \
23043     archive_expsym_cmds_F77 | \
23044     module_cmds_F77 | \
23045     module_expsym_cmds_F77 | \
23046     old_archive_from_expsyms_cmds_F77 | \
23047     export_symbols_cmds_F77 | \
23048     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23049     postinstall_cmds | postuninstall_cmds | \
23050     old_postinstall_cmds | old_postuninstall_cmds | \
23051     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23052       # Double-quote double-evaled strings.
23053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23054       ;;
23055     *)
23056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23057       ;;
23058     esac
23059   done
23060
23061   case $lt_echo in
23062   *'\$0 --fallback-echo"')
23063     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23064     ;;
23065   esac
23066
23067 cfgfile="$ofile"
23068
23069   cat <<__EOF__ >> "$cfgfile"
23070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23071
23072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23073
23074 # Shell to use when invoking shell scripts.
23075 SHELL=$lt_SHELL
23076
23077 # Whether or not to build shared libraries.
23078 build_libtool_libs=$enable_shared
23079
23080 # Whether or not to build static libraries.
23081 build_old_libs=$enable_static
23082
23083 # Whether or not to add -lc for building shared libraries.
23084 build_libtool_need_lc=$archive_cmds_need_lc_F77
23085
23086 # Whether or not to disallow shared libs when runtime libs are static
23087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23088
23089 # Whether or not to optimize for fast installation.
23090 fast_install=$enable_fast_install
23091
23092 # The host system.
23093 host_alias=$host_alias
23094 host=$host
23095 host_os=$host_os
23096
23097 # The build system.
23098 build_alias=$build_alias
23099 build=$build
23100 build_os=$build_os
23101
23102 # An echo program that does not interpret backslashes.
23103 echo=$lt_echo
23104
23105 # The archiver.
23106 AR=$lt_AR
23107 AR_FLAGS=$lt_AR_FLAGS
23108
23109 # A C compiler.
23110 LTCC=$lt_LTCC
23111
23112 # LTCC compiler flags.
23113 LTCFLAGS=$lt_LTCFLAGS
23114
23115 # A language-specific compiler.
23116 CC=$lt_compiler_F77
23117
23118 # Is the compiler the GNU C compiler?
23119 with_gcc=$GCC_F77
23120
23121 # An ERE matcher.
23122 EGREP=$lt_EGREP
23123
23124 # The linker used to build libraries.
23125 LD=$lt_LD_F77
23126
23127 # Whether we need hard or soft links.
23128 LN_S=$lt_LN_S
23129
23130 # A BSD-compatible nm program.
23131 NM=$lt_NM
23132
23133 # A symbol stripping program
23134 STRIP=$lt_STRIP
23135
23136 # Used to examine libraries when file_magic_cmd begins "file"
23137 MAGIC_CMD=$MAGIC_CMD
23138
23139 # Used on cygwin: DLL creation program.
23140 DLLTOOL="$DLLTOOL"
23141
23142 # Used on cygwin: object dumper.
23143 OBJDUMP="$OBJDUMP"
23144
23145 # Used on cygwin: assembler.
23146 AS="$AS"
23147
23148 # The name of the directory that contains temporary libtool files.
23149 objdir=$objdir
23150
23151 # How to create reloadable object files.
23152 reload_flag=$lt_reload_flag
23153 reload_cmds=$lt_reload_cmds
23154
23155 # How to pass a linker flag through the compiler.
23156 wl=$lt_lt_prog_compiler_wl_F77
23157
23158 # Object file suffix (normally "o").
23159 objext="$ac_objext"
23160
23161 # Old archive suffix (normally "a").
23162 libext="$libext"
23163
23164 # Shared library suffix (normally ".so").
23165 shrext_cmds='$shrext_cmds'
23166
23167 # Executable file suffix (normally "").
23168 exeext="$exeext"
23169
23170 # Additional compiler flags for building library objects.
23171 pic_flag=$lt_lt_prog_compiler_pic_F77
23172 pic_mode=$pic_mode
23173
23174 # What is the maximum length of a command?
23175 max_cmd_len=$lt_cv_sys_max_cmd_len
23176
23177 # Does compiler simultaneously support -c and -o options?
23178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23179
23180 # Must we lock files when doing compilation?
23181 need_locks=$lt_need_locks
23182
23183 # Do we need the lib prefix for modules?
23184 need_lib_prefix=$need_lib_prefix
23185
23186 # Do we need a version for libraries?
23187 need_version=$need_version
23188
23189 # Whether dlopen is supported.
23190 dlopen_support=$enable_dlopen
23191
23192 # Whether dlopen of programs is supported.
23193 dlopen_self=$enable_dlopen_self
23194
23195 # Whether dlopen of statically linked programs is supported.
23196 dlopen_self_static=$enable_dlopen_self_static
23197
23198 # Compiler flag to prevent dynamic linking.
23199 link_static_flag=$lt_lt_prog_compiler_static_F77
23200
23201 # Compiler flag to turn off builtin functions.
23202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23203
23204 # Compiler flag to allow reflexive dlopens.
23205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23206
23207 # Compiler flag to generate shared objects directly from archives.
23208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23209
23210 # Compiler flag to generate thread-safe objects.
23211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23212
23213 # Library versioning type.
23214 version_type=$version_type
23215
23216 # Format of library name prefix.
23217 libname_spec=$lt_libname_spec
23218
23219 # List of archive names.  First name is the real one, the rest are links.
23220 # The last name is the one that the linker finds with -lNAME.
23221 library_names_spec=$lt_library_names_spec
23222
23223 # The coded name of the library, if different from the real name.
23224 soname_spec=$lt_soname_spec
23225
23226 # Commands used to build and install an old-style archive.
23227 RANLIB=$lt_RANLIB
23228 old_archive_cmds=$lt_old_archive_cmds_F77
23229 old_postinstall_cmds=$lt_old_postinstall_cmds
23230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23231
23232 # Create an old-style archive from a shared archive.
23233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23234
23235 # Create a temporary old-style archive to link instead of a shared archive.
23236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23237
23238 # Commands used to build and install a shared archive.
23239 archive_cmds=$lt_archive_cmds_F77
23240 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23241 postinstall_cmds=$lt_postinstall_cmds
23242 postuninstall_cmds=$lt_postuninstall_cmds
23243
23244 # Commands used to build a loadable module (assumed same as above if empty)
23245 module_cmds=$lt_module_cmds_F77
23246 module_expsym_cmds=$lt_module_expsym_cmds_F77
23247
23248 # Commands to strip libraries.
23249 old_striplib=$lt_old_striplib
23250 striplib=$lt_striplib
23251
23252 # Dependencies to place before the objects being linked to create a
23253 # shared library.
23254 predep_objects=$lt_predep_objects_F77
23255
23256 # Dependencies to place after the objects being linked to create a
23257 # shared library.
23258 postdep_objects=$lt_postdep_objects_F77
23259
23260 # Dependencies to place before the objects being linked to create a
23261 # shared library.
23262 predeps=$lt_predeps_F77
23263
23264 # Dependencies to place after the objects being linked to create a
23265 # shared library.
23266 postdeps=$lt_postdeps_F77
23267
23268 # The library search path used internally by the compiler when linking
23269 # a shared library.
23270 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23271
23272 # Method to check whether dependent libraries are shared objects.
23273 deplibs_check_method=$lt_deplibs_check_method
23274
23275 # Command to use when deplibs_check_method == file_magic.
23276 file_magic_cmd=$lt_file_magic_cmd
23277
23278 # Flag that allows shared libraries with undefined symbols to be built.
23279 allow_undefined_flag=$lt_allow_undefined_flag_F77
23280
23281 # Flag that forces no undefined symbols.
23282 no_undefined_flag=$lt_no_undefined_flag_F77
23283
23284 # Commands used to finish a libtool library installation in a directory.
23285 finish_cmds=$lt_finish_cmds
23286
23287 # Same as above, but a single script fragment to be evaled but not shown.
23288 finish_eval=$lt_finish_eval
23289
23290 # Take the output of nm and produce a listing of raw symbols and C names.
23291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23292
23293 # Transform the output of nm in a proper C declaration
23294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23295
23296 # Transform the output of nm in a C name address pair
23297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23298
23299 # This is the shared library runtime path variable.
23300 runpath_var=$runpath_var
23301
23302 # This is the shared library path variable.
23303 shlibpath_var=$shlibpath_var
23304
23305 # Is shlibpath searched before the hard-coded library search path?
23306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23307
23308 # How to hardcode a shared library path into an executable.
23309 hardcode_action=$hardcode_action_F77
23310
23311 # Whether we should hardcode library paths into libraries.
23312 hardcode_into_libs=$hardcode_into_libs
23313
23314 # Flag to hardcode \$libdir into a binary during linking.
23315 # This must work even if \$libdir does not exist.
23316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23317
23318 # If ld is used when linking, flag to hardcode \$libdir into
23319 # a binary during linking. This must work even if \$libdir does
23320 # not exist.
23321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23322
23323 # Whether we need a single -rpath flag with a separated argument.
23324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23325
23326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23327 # resulting binary.
23328 hardcode_direct=$hardcode_direct_F77
23329
23330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23331 # resulting binary.
23332 hardcode_minus_L=$hardcode_minus_L_F77
23333
23334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23335 # the resulting binary.
23336 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23337
23338 # Set to yes if building a shared library automatically hardcodes DIR into the library
23339 # and all subsequent libraries and executables linked against it.
23340 hardcode_automatic=$hardcode_automatic_F77
23341
23342 # Variables whose values should be saved in libtool wrapper scripts and
23343 # restored at relink time.
23344 variables_saved_for_relink="$variables_saved_for_relink"
23345
23346 # Whether libtool must link a program against all its dependency libraries.
23347 link_all_deplibs=$link_all_deplibs_F77
23348
23349 # Compile-time system search path for libraries
23350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23351
23352 # Run-time system search path for libraries
23353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23354
23355 # Fix the shell variable \$srcfile for the compiler.
23356 fix_srcfile_path="$fix_srcfile_path_F77"
23357
23358 # Set to yes if exported symbols are required.
23359 always_export_symbols=$always_export_symbols_F77
23360
23361 # The commands to list exported symbols.
23362 export_symbols_cmds=$lt_export_symbols_cmds_F77
23363
23364 # The commands to extract the exported symbol list from a shared archive.
23365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23366
23367 # Symbols that should not be listed in the preloaded symbols.
23368 exclude_expsyms=$lt_exclude_expsyms_F77
23369
23370 # Symbols that must always be exported.
23371 include_expsyms=$lt_include_expsyms_F77
23372
23373 # ### END LIBTOOL TAG CONFIG: $tagname
23374
23375 __EOF__
23376
23377
23378 else
23379   # If there is no Makefile yet, we rely on a make rule to execute
23380   # `config.status --recheck' to rerun these tests and create the
23381   # libtool script then.
23382   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23383   if test -f "$ltmain_in"; then
23384     test -f Makefile && make "$ltmain"
23385   fi
23386 fi
23387
23388
23389 ac_ext=c
23390 ac_cpp='$CPP $CPPFLAGS'
23391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23394
23395 CC="$lt_save_CC"
23396
23397         else
23398           tagname=""
23399         fi
23400         ;;
23401
23402       GCJ)
23403         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23404           ac_ext=c
23405 ac_cpp='$CPP $CPPFLAGS'
23406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23409
23410
23411 # Source file extension for Java test sources.
23412 ac_ext=java
23413
23414 # Object file extension for compiled Java test sources.
23415 objext=o
23416 objext_GCJ=$objext
23417
23418 # Code to be used in simple compile tests
23419 lt_simple_compile_test_code="class foo {}\n"
23420
23421 # Code to be used in simple link tests
23422 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23423
23424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23425
23426 # If no C compiler was specified, use CC.
23427 LTCC=${LTCC-"$CC"}
23428
23429 # If no C compiler flags were specified, use CFLAGS.
23430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23431
23432 # Allow CC to be a program name with arguments.
23433 compiler=$CC
23434
23435
23436 # save warnings/boilerplate of simple test code
23437 ac_outfile=conftest.$ac_objext
23438 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23440 _lt_compiler_boilerplate=`cat conftest.err`
23441 $rm conftest*
23442
23443 ac_outfile=conftest.$ac_objext
23444 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23446 _lt_linker_boilerplate=`cat conftest.err`
23447 $rm conftest*
23448
23449
23450 # Allow CC to be a program name with arguments.
23451 lt_save_CC="$CC"
23452 CC=${GCJ-"gcj"}
23453 compiler=$CC
23454 compiler_GCJ=$CC
23455 for cc_temp in $compiler""; do
23456   case $cc_temp in
23457     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23458     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23459     \-*) ;;
23460     *) break;;
23461   esac
23462 done
23463 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23464
23465
23466 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23467 archive_cmds_need_lc_GCJ=no
23468
23469 old_archive_cmds_GCJ=$old_archive_cmds
23470
23471
23472 lt_prog_compiler_no_builtin_flag_GCJ=
23473
23474 if test "$GCC" = yes; then
23475   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23476
23477
23478 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23479 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23480 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483   lt_cv_prog_compiler_rtti_exceptions=no
23484   ac_outfile=conftest.$ac_objext
23485    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23486    lt_compiler_flag="-fno-rtti -fno-exceptions"
23487    # Insert the option either (1) after the last *FLAGS variable, or
23488    # (2) before a word containing "conftest.", or (3) at the end.
23489    # Note that $ac_compile itself does not contain backslashes and begins
23490    # with a dollar sign (not a hyphen), so the echo should work correctly.
23491    # The option is referenced via a variable to avoid confusing sed.
23492    lt_compile=`echo "$ac_compile" | $SED \
23493    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23495    -e 's:$: $lt_compiler_flag:'`
23496    (eval echo "\"\$as_me:23496: $lt_compile\"" >&5)
23497    (eval "$lt_compile" 2>conftest.err)
23498    ac_status=$?
23499    cat conftest.err >&5
23500    echo "$as_me:23500: \$? = $ac_status" >&5
23501    if (exit $ac_status) && test -s "$ac_outfile"; then
23502      # The compiler can only warn and ignore the option if not recognized
23503      # So say no if there are warnings other than the usual output.
23504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23505      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23506      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23507        lt_cv_prog_compiler_rtti_exceptions=yes
23508      fi
23509    fi
23510    $rm conftest*
23511
23512 fi
23513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23514 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23515
23516 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23517     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23518 else
23519     :
23520 fi
23521
23522 fi
23523
23524 lt_prog_compiler_wl_GCJ=
23525 lt_prog_compiler_pic_GCJ=
23526 lt_prog_compiler_static_GCJ=
23527
23528 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23530
23531   if test "$GCC" = yes; then
23532     lt_prog_compiler_wl_GCJ='-Wl,'
23533     lt_prog_compiler_static_GCJ='-static'
23534
23535     case $host_os in
23536       aix*)
23537       # All AIX code is PIC.
23538       if test "$host_cpu" = ia64; then
23539         # AIX 5 now supports IA64 processor
23540         lt_prog_compiler_static_GCJ='-Bstatic'
23541       fi
23542       ;;
23543
23544     amigaos*)
23545       # FIXME: we need at least 68020 code to build shared libraries, but
23546       # adding the `-m68020' flag to GCC prevents building anything better,
23547       # like `-m68040'.
23548       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23549       ;;
23550
23551     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23552       # PIC is the default for these OSes.
23553       ;;
23554
23555     mingw* | pw32* | os2*)
23556       # This hack is so that the source file can tell whether it is being
23557       # built for inclusion in a dll (and should export symbols for example).
23558       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23559       ;;
23560
23561     darwin* | rhapsody*)
23562       # PIC is the default on this platform
23563       # Common symbols not allowed in MH_DYLIB files
23564       lt_prog_compiler_pic_GCJ='-fno-common'
23565       ;;
23566
23567     interix3*)
23568       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23569       # Instead, we relocate shared libraries at runtime.
23570       ;;
23571
23572     msdosdjgpp*)
23573       # Just because we use GCC doesn't mean we suddenly get shared libraries
23574       # on systems that don't support them.
23575       lt_prog_compiler_can_build_shared_GCJ=no
23576       enable_shared=no
23577       ;;
23578
23579     sysv4*MP*)
23580       if test -d /usr/nec; then
23581         lt_prog_compiler_pic_GCJ=-Kconform_pic
23582       fi
23583       ;;
23584
23585     hpux*)
23586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23587       # not for PA HP-UX.
23588       case $host_cpu in
23589       hppa*64*|ia64*)
23590         # +Z the default
23591         ;;
23592       *)
23593         lt_prog_compiler_pic_GCJ='-fPIC'
23594         ;;
23595       esac
23596       ;;
23597
23598     *)
23599       lt_prog_compiler_pic_GCJ='-fPIC'
23600       ;;
23601     esac
23602   else
23603     # PORTME Check for flag to pass linker flags through the system compiler.
23604     case $host_os in
23605     aix*)
23606       lt_prog_compiler_wl_GCJ='-Wl,'
23607       if test "$host_cpu" = ia64; then
23608         # AIX 5 now supports IA64 processor
23609         lt_prog_compiler_static_GCJ='-Bstatic'
23610       else
23611         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23612       fi
23613       ;;
23614       darwin*)
23615         # PIC is the default on this platform
23616         # Common symbols not allowed in MH_DYLIB files
23617        case $cc_basename in
23618          xlc*)
23619          lt_prog_compiler_pic_GCJ='-qnocommon'
23620          lt_prog_compiler_wl_GCJ='-Wl,'
23621          ;;
23622        esac
23623        ;;
23624
23625     mingw* | pw32* | os2*)
23626       # This hack is so that the source file can tell whether it is being
23627       # built for inclusion in a dll (and should export symbols for example).
23628       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23629       ;;
23630
23631     hpux9* | hpux10* | hpux11*)
23632       lt_prog_compiler_wl_GCJ='-Wl,'
23633       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23634       # not for PA HP-UX.
23635       case $host_cpu in
23636       hppa*64*|ia64*)
23637         # +Z the default
23638         ;;
23639       *)
23640         lt_prog_compiler_pic_GCJ='+Z'
23641         ;;
23642       esac
23643       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23644       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23645       ;;
23646
23647     irix5* | irix6* | nonstopux*)
23648       lt_prog_compiler_wl_GCJ='-Wl,'
23649       # PIC (with -KPIC) is the default.
23650       lt_prog_compiler_static_GCJ='-non_shared'
23651       ;;
23652
23653     newsos6)
23654       lt_prog_compiler_pic_GCJ='-KPIC'
23655       lt_prog_compiler_static_GCJ='-Bstatic'
23656       ;;
23657
23658     linux*)
23659       case $cc_basename in
23660       icc* | ecc*)
23661         lt_prog_compiler_wl_GCJ='-Wl,'
23662         lt_prog_compiler_pic_GCJ='-KPIC'
23663         lt_prog_compiler_static_GCJ='-static'
23664         ;;
23665       pgcc* | pgf77* | pgf90* | pgf95*)
23666         # Portland Group compilers (*not* the Pentium gcc compiler,
23667         # which looks to be a dead project)
23668         lt_prog_compiler_wl_GCJ='-Wl,'
23669         lt_prog_compiler_pic_GCJ='-fpic'
23670         lt_prog_compiler_static_GCJ='-Bstatic'
23671         ;;
23672       ccc*)
23673         lt_prog_compiler_wl_GCJ='-Wl,'
23674         # All Alpha code is PIC.
23675         lt_prog_compiler_static_GCJ='-non_shared'
23676         ;;
23677       esac
23678       ;;
23679
23680     osf3* | osf4* | osf5*)
23681       lt_prog_compiler_wl_GCJ='-Wl,'
23682       # All OSF/1 code is PIC.
23683       lt_prog_compiler_static_GCJ='-non_shared'
23684       ;;
23685
23686     solaris*)
23687       lt_prog_compiler_pic_GCJ='-KPIC'
23688       lt_prog_compiler_static_GCJ='-Bstatic'
23689       case $cc_basename in
23690       f77* | f90* | f95*)
23691         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23692       *)
23693         lt_prog_compiler_wl_GCJ='-Wl,';;
23694       esac
23695       ;;
23696
23697     sunos4*)
23698       lt_prog_compiler_wl_GCJ='-Qoption ld '
23699       lt_prog_compiler_pic_GCJ='-PIC'
23700       lt_prog_compiler_static_GCJ='-Bstatic'
23701       ;;
23702
23703     sysv4 | sysv4.2uw2* | sysv4.3*)
23704       lt_prog_compiler_wl_GCJ='-Wl,'
23705       lt_prog_compiler_pic_GCJ='-KPIC'
23706       lt_prog_compiler_static_GCJ='-Bstatic'
23707       ;;
23708
23709     sysv4*MP*)
23710       if test -d /usr/nec ;then
23711         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23712         lt_prog_compiler_static_GCJ='-Bstatic'
23713       fi
23714       ;;
23715
23716     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23717       lt_prog_compiler_wl_GCJ='-Wl,'
23718       lt_prog_compiler_pic_GCJ='-KPIC'
23719       lt_prog_compiler_static_GCJ='-Bstatic'
23720       ;;
23721
23722     unicos*)
23723       lt_prog_compiler_wl_GCJ='-Wl,'
23724       lt_prog_compiler_can_build_shared_GCJ=no
23725       ;;
23726
23727     uts4*)
23728       lt_prog_compiler_pic_GCJ='-pic'
23729       lt_prog_compiler_static_GCJ='-Bstatic'
23730       ;;
23731
23732     *)
23733       lt_prog_compiler_can_build_shared_GCJ=no
23734       ;;
23735     esac
23736   fi
23737
23738 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23739 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23740
23741 #
23742 # Check to make sure the PIC flag actually works.
23743 #
23744 if test -n "$lt_prog_compiler_pic_GCJ"; then
23745
23746 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23748 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23749   echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751   lt_prog_compiler_pic_works_GCJ=no
23752   ac_outfile=conftest.$ac_objext
23753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23755    # Insert the option either (1) after the last *FLAGS variable, or
23756    # (2) before a word containing "conftest.", or (3) at the end.
23757    # Note that $ac_compile itself does not contain backslashes and begins
23758    # with a dollar sign (not a hyphen), so the echo should work correctly.
23759    # The option is referenced via a variable to avoid confusing sed.
23760    lt_compile=`echo "$ac_compile" | $SED \
23761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763    -e 's:$: $lt_compiler_flag:'`
23764    (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
23765    (eval "$lt_compile" 2>conftest.err)
23766    ac_status=$?
23767    cat conftest.err >&5
23768    echo "$as_me:23768: \$? = $ac_status" >&5
23769    if (exit $ac_status) && test -s "$ac_outfile"; then
23770      # The compiler can only warn and ignore the option if not recognized
23771      # So say no if there are warnings other than the usual output.
23772      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23775        lt_prog_compiler_pic_works_GCJ=yes
23776      fi
23777    fi
23778    $rm conftest*
23779
23780 fi
23781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23782 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23783
23784 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23785     case $lt_prog_compiler_pic_GCJ in
23786      "" | " "*) ;;
23787      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23788      esac
23789 else
23790     lt_prog_compiler_pic_GCJ=
23791      lt_prog_compiler_can_build_shared_GCJ=no
23792 fi
23793
23794 fi
23795 case $host_os in
23796   # For platforms which do not support PIC, -DPIC is meaningless:
23797   *djgpp*)
23798     lt_prog_compiler_pic_GCJ=
23799     ;;
23800   *)
23801     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23802     ;;
23803 esac
23804
23805 #
23806 # Check to make sure the static flag actually works.
23807 #
23808 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23809 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23810 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23811 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23812   echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814   lt_prog_compiler_static_works_GCJ=no
23815    save_LDFLAGS="$LDFLAGS"
23816    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23817    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23818    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23819      # The linker can only warn and ignore the option if not recognized
23820      # So say no if there are warnings
23821      if test -s conftest.err; then
23822        # Append any errors to the config.log.
23823        cat conftest.err 1>&5
23824        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23825        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23826        if diff conftest.exp conftest.er2 >/dev/null; then
23827          lt_prog_compiler_static_works_GCJ=yes
23828        fi
23829      else
23830        lt_prog_compiler_static_works_GCJ=yes
23831      fi
23832    fi
23833    $rm conftest*
23834    LDFLAGS="$save_LDFLAGS"
23835
23836 fi
23837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23838 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23839
23840 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23841     :
23842 else
23843     lt_prog_compiler_static_GCJ=
23844 fi
23845
23846
23847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23849 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23850   echo $ECHO_N "(cached) $ECHO_C" >&6
23851 else
23852   lt_cv_prog_compiler_c_o_GCJ=no
23853    $rm -r conftest 2>/dev/null
23854    mkdir conftest
23855    cd conftest
23856    mkdir out
23857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23858
23859    lt_compiler_flag="-o out/conftest2.$ac_objext"
23860    # Insert the option either (1) after the last *FLAGS variable, or
23861    # (2) before a word containing "conftest.", or (3) at the end.
23862    # Note that $ac_compile itself does not contain backslashes and begins
23863    # with a dollar sign (not a hyphen), so the echo should work correctly.
23864    lt_compile=`echo "$ac_compile" | $SED \
23865    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23866    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23867    -e 's:$: $lt_compiler_flag:'`
23868    (eval echo "\"\$as_me:23868: $lt_compile\"" >&5)
23869    (eval "$lt_compile" 2>out/conftest.err)
23870    ac_status=$?
23871    cat out/conftest.err >&5
23872    echo "$as_me:23872: \$? = $ac_status" >&5
23873    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23874    then
23875      # The compiler can only warn and ignore the option if not recognized
23876      # So say no if there are warnings
23877      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23878      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23879      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23880        lt_cv_prog_compiler_c_o_GCJ=yes
23881      fi
23882    fi
23883    chmod u+w . 2>&5
23884    $rm conftest*
23885    # SGI C++ compiler will create directory out/ii_files/ for
23886    # template instantiation
23887    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23888    $rm out/* && rmdir out
23889    cd ..
23890    rmdir conftest
23891    $rm conftest*
23892
23893 fi
23894 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23895 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23896
23897
23898 hard_links="nottested"
23899 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23900   # do not overwrite the value of need_locks provided by the user
23901   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23903   hard_links=yes
23904   $rm conftest*
23905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23906   touch conftest.a
23907   ln conftest.a conftest.b 2>&5 || hard_links=no
23908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23909   { echo "$as_me:$LINENO: result: $hard_links" >&5
23910 echo "${ECHO_T}$hard_links" >&6; }
23911   if test "$hard_links" = no; then
23912     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23914     need_locks=warn
23915   fi
23916 else
23917   need_locks=no
23918 fi
23919
23920 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23921 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23922
23923   runpath_var=
23924   allow_undefined_flag_GCJ=
23925   enable_shared_with_static_runtimes_GCJ=no
23926   archive_cmds_GCJ=
23927   archive_expsym_cmds_GCJ=
23928   old_archive_From_new_cmds_GCJ=
23929   old_archive_from_expsyms_cmds_GCJ=
23930   export_dynamic_flag_spec_GCJ=
23931   whole_archive_flag_spec_GCJ=
23932   thread_safe_flag_spec_GCJ=
23933   hardcode_libdir_flag_spec_GCJ=
23934   hardcode_libdir_flag_spec_ld_GCJ=
23935   hardcode_libdir_separator_GCJ=
23936   hardcode_direct_GCJ=no
23937   hardcode_minus_L_GCJ=no
23938   hardcode_shlibpath_var_GCJ=unsupported
23939   link_all_deplibs_GCJ=unknown
23940   hardcode_automatic_GCJ=no
23941   module_cmds_GCJ=
23942   module_expsym_cmds_GCJ=
23943   always_export_symbols_GCJ=no
23944   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23945   # include_expsyms should be a list of space-separated symbols to be *always*
23946   # included in the symbol list
23947   include_expsyms_GCJ=
23948   # exclude_expsyms can be an extended regexp of symbols to exclude
23949   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23950   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23951   # as well as any symbol that contains `d'.
23952   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23953   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23954   # platforms (ab)use it in PIC code, but their linkers get confused if
23955   # the symbol is explicitly referenced.  Since portable code cannot
23956   # rely on this symbol name, it's probably fine to never include it in
23957   # preloaded symbol tables.
23958   extract_expsyms_cmds=
23959   # Just being paranoid about ensuring that cc_basename is set.
23960   for cc_temp in $compiler""; do
23961   case $cc_temp in
23962     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23963     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23964     \-*) ;;
23965     *) break;;
23966   esac
23967 done
23968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23969
23970   case $host_os in
23971   cygwin* | mingw* | pw32*)
23972     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23973     # When not using gcc, we currently assume that we are using
23974     # Microsoft Visual C++.
23975     if test "$GCC" != yes; then
23976       with_gnu_ld=no
23977     fi
23978     ;;
23979   interix*)
23980     # we just hope/assume this is gcc and not c89 (= MSVC++)
23981     with_gnu_ld=yes
23982     ;;
23983   openbsd*)
23984     with_gnu_ld=no
23985     ;;
23986   esac
23987
23988   ld_shlibs_GCJ=yes
23989   if test "$with_gnu_ld" = yes; then
23990     # If archive_cmds runs LD, not CC, wlarc should be empty
23991     wlarc='${wl}'
23992
23993     # Set some defaults for GNU ld with shared library support. These
23994     # are reset later if shared libraries are not supported. Putting them
23995     # here allows them to be overridden if necessary.
23996     runpath_var=LD_RUN_PATH
23997     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23998     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23999     # ancient GNU ld didn't support --whole-archive et. al.
24000     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24001         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24002       else
24003         whole_archive_flag_spec_GCJ=
24004     fi
24005     supports_anon_versioning=no
24006     case `$LD -v 2>/dev/null` in
24007       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24008       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24009       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24010       *\ 2.11.*) ;; # other 2.11 versions
24011       *) supports_anon_versioning=yes ;;
24012     esac
24013
24014     # See if GNU ld supports shared libraries.
24015     case $host_os in
24016     aix3* | aix4* | aix5*)
24017       # On AIX/PPC, the GNU linker is very broken
24018       if test "$host_cpu" != ia64; then
24019         ld_shlibs_GCJ=no
24020         cat <<EOF 1>&2
24021
24022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24023 *** to be unable to reliably create shared libraries on AIX.
24024 *** Therefore, libtool is disabling shared libraries support.  If you
24025 *** really care for shared libraries, you may want to modify your PATH
24026 *** so that a non-GNU linker is found, and then restart.
24027
24028 EOF
24029       fi
24030       ;;
24031
24032     amigaos*)
24033       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)'
24034       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24035       hardcode_minus_L_GCJ=yes
24036
24037       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24038       # that the semantics of dynamic libraries on AmigaOS, at least up
24039       # to version 4, is to share data among multiple programs linked
24040       # with the same dynamic library.  Since this doesn't match the
24041       # behavior of shared libraries on other platforms, we can't use
24042       # them.
24043       ld_shlibs_GCJ=no
24044       ;;
24045
24046     beos*)
24047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24048         allow_undefined_flag_GCJ=unsupported
24049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24050         # support --undefined.  This deserves some investigation.  FIXME
24051         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24052       else
24053         ld_shlibs_GCJ=no
24054       fi
24055       ;;
24056
24057     cygwin* | mingw* | pw32*)
24058       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24059       # as there is no search path for DLLs.
24060       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24061       allow_undefined_flag_GCJ=unsupported
24062       always_export_symbols_GCJ=no
24063       enable_shared_with_static_runtimes_GCJ=yes
24064       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24065
24066       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24067         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24068         # If the export-symbols file already is a .def file (1st line
24069         # is EXPORTS), use it as is; otherwise, prepend...
24070         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24071           cp $export_symbols $output_objdir/$soname.def;
24072         else
24073           echo EXPORTS > $output_objdir/$soname.def;
24074           cat $export_symbols >> $output_objdir/$soname.def;
24075         fi~
24076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24077       else
24078         ld_shlibs_GCJ=no
24079       fi
24080       ;;
24081
24082     interix3*)
24083       hardcode_direct_GCJ=no
24084       hardcode_shlibpath_var_GCJ=no
24085       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24086       export_dynamic_flag_spec_GCJ='${wl}-E'
24087       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24088       # Instead, shared libraries are loaded at an image base (0x10000000 by
24089       # default) and relocated if they conflict, which is a slow very memory
24090       # consuming and fragmenting process.  To avoid this, we pick a random,
24091       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24092       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24093       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'
24094       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'
24095       ;;
24096
24097     linux*)
24098       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24099         tmp_addflag=
24100         case $cc_basename,$host_cpu in
24101         pgcc*)                          # Portland Group C compiler
24102           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'
24103           tmp_addflag=' $pic_flag'
24104           ;;
24105         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24106           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'
24107           tmp_addflag=' $pic_flag -Mnomain' ;;
24108         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24109           tmp_addflag=' -i_dynamic' ;;
24110         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24111           tmp_addflag=' -i_dynamic -nofor_main' ;;
24112         ifc* | ifort*)                  # Intel Fortran compiler
24113           tmp_addflag=' -nofor_main' ;;
24114         esac
24115         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24116
24117         if test $supports_anon_versioning = yes; then
24118           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24119   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24120   $echo "local: *; };" >> $output_objdir/$libname.ver~
24121           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24122         fi
24123       else
24124         ld_shlibs_GCJ=no
24125       fi
24126       ;;
24127
24128     netbsd*)
24129       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24130         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24131         wlarc=
24132       else
24133         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24134         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24135       fi
24136       ;;
24137
24138     solaris*)
24139       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24140         ld_shlibs_GCJ=no
24141         cat <<EOF 1>&2
24142
24143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24144 *** create shared libraries on Solaris systems.  Therefore, libtool
24145 *** is disabling shared libraries support.  We urge you to upgrade GNU
24146 *** binutils to release 2.9.1 or newer.  Another option is to modify
24147 *** your PATH or compiler configuration so that the native linker is
24148 *** used, and then restart.
24149
24150 EOF
24151       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24152         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24153         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24154       else
24155         ld_shlibs_GCJ=no
24156       fi
24157       ;;
24158
24159     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24160       case `$LD -v 2>&1` in
24161         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24162         ld_shlibs_GCJ=no
24163         cat <<_LT_EOF 1>&2
24164
24165 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24166 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24167 *** is disabling shared libraries support.  We urge you to upgrade GNU
24168 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24169 *** your PATH or compiler configuration so that the native linker is
24170 *** used, and then restart.
24171
24172 _LT_EOF
24173         ;;
24174         *)
24175           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24176             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24177             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24178             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24179           else
24180             ld_shlibs_GCJ=no
24181           fi
24182         ;;
24183       esac
24184       ;;
24185
24186     sunos4*)
24187       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24188       wlarc=
24189       hardcode_direct_GCJ=yes
24190       hardcode_shlibpath_var_GCJ=no
24191       ;;
24192
24193     *)
24194       if $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     esac
24202
24203     if test "$ld_shlibs_GCJ" = no; then
24204       runpath_var=
24205       hardcode_libdir_flag_spec_GCJ=
24206       export_dynamic_flag_spec_GCJ=
24207       whole_archive_flag_spec_GCJ=
24208     fi
24209   else
24210     # PORTME fill in a description of your system's linker (not GNU ld)
24211     case $host_os in
24212     aix3*)
24213       allow_undefined_flag_GCJ=unsupported
24214       always_export_symbols_GCJ=yes
24215       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'
24216       # Note: this linker hardcodes the directories in LIBPATH if there
24217       # are no directories specified by -L.
24218       hardcode_minus_L_GCJ=yes
24219       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24220         # Neither direct hardcoding nor static linking is supported with a
24221         # broken collect2.
24222         hardcode_direct_GCJ=unsupported
24223       fi
24224       ;;
24225
24226     aix4* | aix5*)
24227       if test "$host_cpu" = ia64; then
24228         # On IA64, the linker does run time linking by default, so we don't
24229         # have to do anything special.
24230         aix_use_runtimelinking=no
24231         exp_sym_flag='-Bexport'
24232         no_entry_flag=""
24233       else
24234         # If we're using GNU nm, then we don't want the "-C" option.
24235         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24236         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24237           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'
24238         else
24239           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'
24240         fi
24241         aix_use_runtimelinking=no
24242
24243         # Test if we are trying to use run time linking or normal
24244         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24245         # need to do runtime linking.
24246         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24247           for ld_flag in $LDFLAGS; do
24248           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24249             aix_use_runtimelinking=yes
24250             break
24251           fi
24252           done
24253           ;;
24254         esac
24255
24256         exp_sym_flag='-bexport'
24257         no_entry_flag='-bnoentry'
24258       fi
24259
24260       # When large executables or shared objects are built, AIX ld can
24261       # have problems creating the table of contents.  If linking a library
24262       # or program results in "error TOC overflow" add -mminimal-toc to
24263       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24264       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24265
24266       archive_cmds_GCJ=''
24267       hardcode_direct_GCJ=yes
24268       hardcode_libdir_separator_GCJ=':'
24269       link_all_deplibs_GCJ=yes
24270
24271       if test "$GCC" = yes; then
24272         case $host_os in aix4.[012]|aix4.[012].*)
24273         # We only want to do this on AIX 4.2 and lower, the check
24274         # below for broken collect2 doesn't work under 4.3+
24275           collect2name=`${CC} -print-prog-name=collect2`
24276           if test -f "$collect2name" && \
24277            strings "$collect2name" | grep resolve_lib_name >/dev/null
24278           then
24279           # We have reworked collect2
24280           hardcode_direct_GCJ=yes
24281           else
24282           # We have old collect2
24283           hardcode_direct_GCJ=unsupported
24284           # It fails to find uninstalled libraries when the uninstalled
24285           # path is not listed in the libpath.  Setting hardcode_minus_L
24286           # to unsupported forces relinking
24287           hardcode_minus_L_GCJ=yes
24288           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24289           hardcode_libdir_separator_GCJ=
24290           fi
24291           ;;
24292         esac
24293         shared_flag='-shared'
24294         if test "$aix_use_runtimelinking" = yes; then
24295           shared_flag="$shared_flag "'${wl}-G'
24296         fi
24297       else
24298         # not using gcc
24299         if test "$host_cpu" = ia64; then
24300         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24301         # chokes on -Wl,-G. The following line is correct:
24302           shared_flag='-G'
24303         else
24304           if test "$aix_use_runtimelinking" = yes; then
24305             shared_flag='${wl}-G'
24306           else
24307             shared_flag='${wl}-bM:SRE'
24308           fi
24309         fi
24310       fi
24311
24312       # It seems that -bexpall does not export symbols beginning with
24313       # underscore (_), so it is better to generate a list of symbols to export.
24314       always_export_symbols_GCJ=yes
24315       if test "$aix_use_runtimelinking" = yes; then
24316         # Warning - without using the other runtime loading flags (-brtl),
24317         # -berok will link without error, but may produce a broken library.
24318         allow_undefined_flag_GCJ='-berok'
24319        # Determine the default libpath from the value encoded in an empty executable.
24320        cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h.  */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h.  */
24326
24327 int
24328 main ()
24329 {
24330
24331   ;
24332   return 0;
24333 }
24334 _ACEOF
24335 rm -f conftest.$ac_objext conftest$ac_exeext
24336 if { (ac_try="$ac_link"
24337 case "(($ac_try" in
24338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339   *) ac_try_echo=$ac_try;;
24340 esac
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342   (eval "$ac_link") 2>conftest.er1
24343   ac_status=$?
24344   grep -v '^ *+' conftest.er1 >conftest.err
24345   rm -f conftest.er1
24346   cat conftest.err >&5
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); } &&
24349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24350   { (case "(($ac_try" in
24351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352   *) ac_try_echo=$ac_try;;
24353 esac
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355   (eval "$ac_try") 2>&5
24356   ac_status=$?
24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); }; } &&
24359          { ac_try='test -s conftest$ac_exeext'
24360   { (case "(($ac_try" in
24361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362   *) ac_try_echo=$ac_try;;
24363 esac
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365   (eval "$ac_try") 2>&5
24366   ac_status=$?
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; }; then
24369
24370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24371 }'`
24372 # Check for a 64-bit object if we didn't find anything.
24373 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; }
24374 }'`; fi
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379
24380 fi
24381
24382 rm -f core conftest.err conftest.$ac_objext \
24383       conftest$ac_exeext conftest.$ac_ext
24384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24385
24386        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24387         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"
24388        else
24389         if test "$host_cpu" = ia64; then
24390           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24391           allow_undefined_flag_GCJ="-z nodefs"
24392           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"
24393         else
24394          # Determine the default libpath from the value encoded in an empty executable.
24395          cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h.  */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h.  */
24401
24402 int
24403 main ()
24404 {
24405
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 rm -f conftest.$ac_objext conftest$ac_exeext
24411 if { (ac_try="$ac_link"
24412 case "(($ac_try" in
24413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414   *) ac_try_echo=$ac_try;;
24415 esac
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417   (eval "$ac_link") 2>conftest.er1
24418   ac_status=$?
24419   grep -v '^ *+' conftest.er1 >conftest.err
24420   rm -f conftest.er1
24421   cat conftest.err >&5
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); } &&
24424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24425   { (case "(($ac_try" in
24426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427   *) ac_try_echo=$ac_try;;
24428 esac
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430   (eval "$ac_try") 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; } &&
24434          { ac_try='test -s conftest$ac_exeext'
24435   { (case "(($ac_try" in
24436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437   *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440   (eval "$ac_try") 2>&5
24441   ac_status=$?
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); }; }; then
24444
24445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24446 }'`
24447 # Check for a 64-bit object if we didn't find anything.
24448 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; }
24449 }'`; fi
24450 else
24451   echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24453
24454
24455 fi
24456
24457 rm -f core conftest.err conftest.$ac_objext \
24458       conftest$ac_exeext conftest.$ac_ext
24459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24460
24461          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24462           # Warning - without using the other run time loading flags,
24463           # -berok will link without error, but may produce a broken library.
24464           no_undefined_flag_GCJ=' ${wl}-bernotok'
24465           allow_undefined_flag_GCJ=' ${wl}-berok'
24466           # Exported symbols can be pulled into shared objects from archives
24467           whole_archive_flag_spec_GCJ='$convenience'
24468           archive_cmds_need_lc_GCJ=yes
24469           # This is similar to how AIX traditionally builds its shared libraries.
24470           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'
24471         fi
24472       fi
24473       ;;
24474
24475     amigaos*)
24476       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)'
24477       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24478       hardcode_minus_L_GCJ=yes
24479       # see comment about different semantics on the GNU ld section
24480       ld_shlibs_GCJ=no
24481       ;;
24482
24483     bsdi[45]*)
24484       export_dynamic_flag_spec_GCJ=-rdynamic
24485       ;;
24486
24487     cygwin* | mingw* | pw32*)
24488       # When not using gcc, we currently assume that we are using
24489       # Microsoft Visual C++.
24490       # hardcode_libdir_flag_spec is actually meaningless, as there is
24491       # no search path for DLLs.
24492       hardcode_libdir_flag_spec_GCJ=' '
24493       allow_undefined_flag_GCJ=unsupported
24494       # Tell ltmain to make .lib files, not .a files.
24495       libext=lib
24496       # Tell ltmain to make .dll files, not .so files.
24497       shrext_cmds=".dll"
24498       # FIXME: Setting linknames here is a bad hack.
24499       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24500       # The linker will automatically build a .lib file if we build a DLL.
24501       old_archive_From_new_cmds_GCJ='true'
24502       # FIXME: Should let the user specify the lib program.
24503       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24504       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24505       enable_shared_with_static_runtimes_GCJ=yes
24506       ;;
24507
24508     darwin* | rhapsody*)
24509       case $host_os in
24510         rhapsody* | darwin1.[012])
24511          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24512          ;;
24513        *) # Darwin 1.3 on
24514          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24515            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24516          else
24517            case ${MACOSX_DEPLOYMENT_TARGET} in
24518              10.[012])
24519                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24520                ;;
24521              10.*)
24522                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24523                ;;
24524            esac
24525          fi
24526          ;;
24527       esac
24528       archive_cmds_need_lc_GCJ=no
24529       hardcode_direct_GCJ=no
24530       hardcode_automatic_GCJ=yes
24531       hardcode_shlibpath_var_GCJ=unsupported
24532       whole_archive_flag_spec_GCJ=''
24533       link_all_deplibs_GCJ=yes
24534     if test "$GCC" = yes ; then
24535         output_verbose_link_cmd='echo'
24536         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24537       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24538       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24539       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}'
24540       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}'
24541     else
24542       case $cc_basename in
24543         xlc*)
24544          output_verbose_link_cmd='echo'
24545          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24546          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24547           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24548          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}'
24549           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}'
24550           ;;
24551        *)
24552          ld_shlibs_GCJ=no
24553           ;;
24554       esac
24555     fi
24556       ;;
24557
24558     dgux*)
24559       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24561       hardcode_shlibpath_var_GCJ=no
24562       ;;
24563
24564     freebsd1*)
24565       ld_shlibs_GCJ=no
24566       ;;
24567
24568     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24569     # support.  Future versions do this automatically, but an explicit c++rt0.o
24570     # does not break anything, and helps significantly (at the cost of a little
24571     # extra space).
24572     freebsd2.2*)
24573       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24574       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24575       hardcode_direct_GCJ=yes
24576       hardcode_shlibpath_var_GCJ=no
24577       ;;
24578
24579     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24580     freebsd2*)
24581       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24582       hardcode_direct_GCJ=yes
24583       hardcode_minus_L_GCJ=yes
24584       hardcode_shlibpath_var_GCJ=no
24585       ;;
24586
24587     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24588     freebsd* | kfreebsd*-gnu | dragonfly*)
24589       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24590       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24591       hardcode_direct_GCJ=yes
24592       hardcode_shlibpath_var_GCJ=no
24593       ;;
24594
24595     hpux9*)
24596       if test "$GCC" = yes; then
24597         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'
24598       else
24599         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'
24600       fi
24601       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24602       hardcode_libdir_separator_GCJ=:
24603       hardcode_direct_GCJ=yes
24604
24605       # hardcode_minus_L: Not really in the search PATH,
24606       # but as the default location of the library.
24607       hardcode_minus_L_GCJ=yes
24608       export_dynamic_flag_spec_GCJ='${wl}-E'
24609       ;;
24610
24611     hpux10*)
24612       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24613         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24614       else
24615         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24616       fi
24617       if test "$with_gnu_ld" = no; then
24618         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24619         hardcode_libdir_separator_GCJ=:
24620
24621         hardcode_direct_GCJ=yes
24622         export_dynamic_flag_spec_GCJ='${wl}-E'
24623
24624         # hardcode_minus_L: Not really in the search PATH,
24625         # but as the default location of the library.
24626         hardcode_minus_L_GCJ=yes
24627       fi
24628       ;;
24629
24630     hpux11*)
24631       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24632         case $host_cpu in
24633         hppa*64*)
24634           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24635           ;;
24636         ia64*)
24637           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24638           ;;
24639         *)
24640           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24641           ;;
24642         esac
24643       else
24644         case $host_cpu in
24645         hppa*64*)
24646           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24647           ;;
24648         ia64*)
24649           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24650           ;;
24651         *)
24652           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24653           ;;
24654         esac
24655       fi
24656       if test "$with_gnu_ld" = no; then
24657         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24658         hardcode_libdir_separator_GCJ=:
24659
24660         case $host_cpu in
24661         hppa*64*|ia64*)
24662           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24663           hardcode_direct_GCJ=no
24664           hardcode_shlibpath_var_GCJ=no
24665           ;;
24666         *)
24667           hardcode_direct_GCJ=yes
24668           export_dynamic_flag_spec_GCJ='${wl}-E'
24669
24670           # hardcode_minus_L: Not really in the search PATH,
24671           # but as the default location of the library.
24672           hardcode_minus_L_GCJ=yes
24673           ;;
24674         esac
24675       fi
24676       ;;
24677
24678     irix5* | irix6* | nonstopux*)
24679       if test "$GCC" = yes; then
24680         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'
24681       else
24682         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'
24683         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24684       fi
24685       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24686       hardcode_libdir_separator_GCJ=:
24687       link_all_deplibs_GCJ=yes
24688       ;;
24689
24690     netbsd*)
24691       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24692         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24693       else
24694         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24695       fi
24696       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24697       hardcode_direct_GCJ=yes
24698       hardcode_shlibpath_var_GCJ=no
24699       ;;
24700
24701     newsos6)
24702       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24703       hardcode_direct_GCJ=yes
24704       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24705       hardcode_libdir_separator_GCJ=:
24706       hardcode_shlibpath_var_GCJ=no
24707       ;;
24708
24709     openbsd*)
24710       hardcode_direct_GCJ=yes
24711       hardcode_shlibpath_var_GCJ=no
24712       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24713         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24714         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24715         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24716         export_dynamic_flag_spec_GCJ='${wl}-E'
24717       else
24718        case $host_os in
24719          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24720            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24721            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24722            ;;
24723          *)
24724            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24725            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24726            ;;
24727        esac
24728       fi
24729       ;;
24730
24731     os2*)
24732       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24733       hardcode_minus_L_GCJ=yes
24734       allow_undefined_flag_GCJ=unsupported
24735       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'
24736       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24737       ;;
24738
24739     osf3*)
24740       if test "$GCC" = yes; then
24741         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24742         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'
24743       else
24744         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24745         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'
24746       fi
24747       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24748       hardcode_libdir_separator_GCJ=:
24749       ;;
24750
24751     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24752       if test "$GCC" = yes; then
24753         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24754         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'
24755         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24756       else
24757         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24758         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'
24759         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~
24760         $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'
24761
24762         # Both c and cxx compiler support -rpath directly
24763         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24764       fi
24765       hardcode_libdir_separator_GCJ=:
24766       ;;
24767
24768     solaris*)
24769       no_undefined_flag_GCJ=' -z text'
24770       if test "$GCC" = yes; then
24771         wlarc='${wl}'
24772         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24773         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24774           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24775       else
24776         wlarc=''
24777         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24778         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24779         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24780       fi
24781       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24782       hardcode_shlibpath_var_GCJ=no
24783       case $host_os in
24784       solaris2.[0-5] | solaris2.[0-5].*) ;;
24785       *)
24786         # The compiler driver will combine linker options so we
24787         # cannot just pass the convience library names through
24788         # without $wl, iff we do not link with $LD.
24789         # Luckily, gcc supports the same syntax we need for Sun Studio.
24790         # Supported since Solaris 2.6 (maybe 2.5.1?)
24791         case $wlarc in
24792         '')
24793           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24794         *)
24795           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' ;;
24796         esac ;;
24797       esac
24798       link_all_deplibs_GCJ=yes
24799       ;;
24800
24801     sunos4*)
24802       if test "x$host_vendor" = xsequent; then
24803         # Use $CC to link under sequent, because it throws in some extra .o
24804         # files that make .init and .fini sections work.
24805         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24806       else
24807         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24808       fi
24809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24810       hardcode_direct_GCJ=yes
24811       hardcode_minus_L_GCJ=yes
24812       hardcode_shlibpath_var_GCJ=no
24813       ;;
24814
24815     sysv4)
24816       case $host_vendor in
24817         sni)
24818           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819           hardcode_direct_GCJ=yes # is this really true???
24820         ;;
24821         siemens)
24822           ## LD is ld it makes a PLAMLIB
24823           ## CC just makes a GrossModule.
24824           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24825           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24826           hardcode_direct_GCJ=no
24827         ;;
24828         motorola)
24829           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24830           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24831         ;;
24832       esac
24833       runpath_var='LD_RUN_PATH'
24834       hardcode_shlibpath_var_GCJ=no
24835       ;;
24836
24837     sysv4.3*)
24838       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24839       hardcode_shlibpath_var_GCJ=no
24840       export_dynamic_flag_spec_GCJ='-Bexport'
24841       ;;
24842
24843     sysv4*MP*)
24844       if test -d /usr/nec; then
24845         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24846         hardcode_shlibpath_var_GCJ=no
24847         runpath_var=LD_RUN_PATH
24848         hardcode_runpath_var=yes
24849         ld_shlibs_GCJ=yes
24850       fi
24851       ;;
24852
24853     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24854       no_undefined_flag_GCJ='${wl}-z,text'
24855       archive_cmds_need_lc_GCJ=no
24856       hardcode_shlibpath_var_GCJ=no
24857       runpath_var='LD_RUN_PATH'
24858
24859       if test "$GCC" = yes; then
24860         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24861         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24862       else
24863         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24865       fi
24866       ;;
24867
24868     sysv5* | sco3.2v5* | sco5v6*)
24869       # Note: We can NOT use -z defs as we might desire, because we do not
24870       # link with -lc, and that would cause any symbols used from libc to
24871       # always be unresolved, which means just about no library would
24872       # ever link correctly.  If we're not using GNU ld we use -z text
24873       # though, which does catch some bad symbols but isn't as heavy-handed
24874       # as -z defs.
24875       no_undefined_flag_GCJ='${wl}-z,text'
24876       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24877       archive_cmds_need_lc_GCJ=no
24878       hardcode_shlibpath_var_GCJ=no
24879       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24880       hardcode_libdir_separator_GCJ=':'
24881       link_all_deplibs_GCJ=yes
24882       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24883       runpath_var='LD_RUN_PATH'
24884
24885       if test "$GCC" = yes; then
24886         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24887         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888       else
24889         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891       fi
24892       ;;
24893
24894     uts4*)
24895       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24896       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24897       hardcode_shlibpath_var_GCJ=no
24898       ;;
24899
24900     *)
24901       ld_shlibs_GCJ=no
24902       ;;
24903     esac
24904   fi
24905
24906 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24907 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24908 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24909
24910 #
24911 # Do we need to explicitly link libc?
24912 #
24913 case "x$archive_cmds_need_lc_GCJ" in
24914 x|xyes)
24915   # Assume -lc should be added
24916   archive_cmds_need_lc_GCJ=yes
24917
24918   if test "$enable_shared" = yes && test "$GCC" = yes; then
24919     case $archive_cmds_GCJ in
24920     *'~'*)
24921       # FIXME: we may have to deal with multi-command sequences.
24922       ;;
24923     '$CC '*)
24924       # Test whether the compiler implicitly links with -lc since on some
24925       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24926       # to ld, don't add -lc before -lgcc.
24927       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24929       $rm conftest*
24930       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24931
24932       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24933   (eval $ac_compile) 2>&5
24934   ac_status=$?
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } 2>conftest.err; then
24937         soname=conftest
24938         lib=conftest
24939         libobjs=conftest.$ac_objext
24940         deplibs=
24941         wl=$lt_prog_compiler_wl_GCJ
24942         pic_flag=$lt_prog_compiler_pic_GCJ
24943         compiler_flags=-v
24944         linker_flags=-v
24945         verstring=
24946         output_objdir=.
24947         libname=conftest
24948         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24949         allow_undefined_flag_GCJ=
24950         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24951   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }
24955         then
24956           archive_cmds_need_lc_GCJ=no
24957         else
24958           archive_cmds_need_lc_GCJ=yes
24959         fi
24960         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24961       else
24962         cat conftest.err 1>&5
24963       fi
24964       $rm conftest*
24965       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24966 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24967       ;;
24968     esac
24969   fi
24970   ;;
24971 esac
24972
24973 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24975 library_names_spec=
24976 libname_spec='lib$name'
24977 soname_spec=
24978 shrext_cmds=".so"
24979 postinstall_cmds=
24980 postuninstall_cmds=
24981 finish_cmds=
24982 finish_eval=
24983 shlibpath_var=
24984 shlibpath_overrides_runpath=unknown
24985 version_type=none
24986 dynamic_linker="$host_os ld.so"
24987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24988 if test "$GCC" = yes; then
24989   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24990   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24991     # if the path contains ";" then we assume it to be the separator
24992     # otherwise default to the standard path separator (i.e. ":") - it is
24993     # assumed that no part of a normal pathname contains ";" but that should
24994     # okay in the real world where ";" in dirpaths is itself problematic.
24995     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24996   else
24997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24998   fi
24999 else
25000   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25001 fi
25002 need_lib_prefix=unknown
25003 hardcode_into_libs=no
25004
25005 # when you set need_version to no, make sure it does not cause -set_version
25006 # flags to be left without arguments
25007 need_version=unknown
25008
25009 case $host_os in
25010 aix3*)
25011   version_type=linux
25012   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25013   shlibpath_var=LIBPATH
25014
25015   # AIX 3 has no versioning support, so we append a major version to the name.
25016   soname_spec='${libname}${release}${shared_ext}$major'
25017   ;;
25018
25019 aix4* | aix5*)
25020   version_type=linux
25021   need_lib_prefix=no
25022   need_version=no
25023   hardcode_into_libs=yes
25024   if test "$host_cpu" = ia64; then
25025     # AIX 5 supports IA64
25026     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25027     shlibpath_var=LD_LIBRARY_PATH
25028   else
25029     # With GCC up to 2.95.x, collect2 would create an import file
25030     # for dependence libraries.  The import file would start with
25031     # the line `#! .'.  This would cause the generated library to
25032     # depend on `.', always an invalid library.  This was fixed in
25033     # development snapshots of GCC prior to 3.0.
25034     case $host_os in
25035       aix4 | aix4.[01] | aix4.[01].*)
25036       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25037            echo ' yes '
25038            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25039         :
25040       else
25041         can_build_shared=no
25042       fi
25043       ;;
25044     esac
25045     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25046     # soname into executable. Probably we can add versioning support to
25047     # collect2, so additional links can be useful in future.
25048     if test "$aix_use_runtimelinking" = yes; then
25049       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25050       # instead of lib<name>.a to let people know that these are not
25051       # typical AIX shared libraries.
25052       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25053     else
25054       # We preserve .a as extension for shared libraries through AIX4.2
25055       # and later when we are not doing run time linking.
25056       library_names_spec='${libname}${release}.a $libname.a'
25057       soname_spec='${libname}${release}${shared_ext}$major'
25058     fi
25059     shlibpath_var=LIBPATH
25060   fi
25061   ;;
25062
25063 amigaos*)
25064   library_names_spec='$libname.ixlibrary $libname.a'
25065   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25066   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'
25067   ;;
25068
25069 beos*)
25070   library_names_spec='${libname}${shared_ext}'
25071   dynamic_linker="$host_os ld.so"
25072   shlibpath_var=LIBRARY_PATH
25073   ;;
25074
25075 bsdi[45]*)
25076   version_type=linux
25077   need_version=no
25078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25079   soname_spec='${libname}${release}${shared_ext}$major'
25080   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25081   shlibpath_var=LD_LIBRARY_PATH
25082   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25083   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25084   # the default ld.so.conf also contains /usr/contrib/lib and
25085   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25086   # libtool to hard-code these into programs
25087   ;;
25088
25089 cygwin* | mingw* | pw32*)
25090   version_type=windows
25091   shrext_cmds=".dll"
25092   need_version=no
25093   need_lib_prefix=no
25094
25095   case $GCC,$host_os in
25096   yes,cygwin* | yes,mingw* | yes,pw32*)
25097     library_names_spec='$libname.dll.a'
25098     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25099     postinstall_cmds='base_file=`basename \${file}`~
25100       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25101       dldir=$destdir/`dirname \$dlpath`~
25102       test -d \$dldir || mkdir -p \$dldir~
25103       $install_prog $dir/$dlname \$dldir/$dlname~
25104       chmod a+x \$dldir/$dlname'
25105     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25106       dlpath=$dir/\$dldll~
25107        $rm \$dlpath'
25108     shlibpath_overrides_runpath=yes
25109
25110     case $host_os in
25111     cygwin*)
25112       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25113       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25114       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25115       ;;
25116     mingw*)
25117       # MinGW DLLs use traditional 'lib' prefix
25118       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25119       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25120       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25121         # It is most probably a Windows format PATH printed by
25122         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25123         # path with ; separators, and with drive letters. We can handle the
25124         # drive letters (cygwin fileutils understands them), so leave them,
25125         # especially as we might pass files found there to a mingw objdump,
25126         # which wouldn't understand a cygwinified path. Ahh.
25127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25128       else
25129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25130       fi
25131       ;;
25132     pw32*)
25133       # pw32 DLLs use 'pw' prefix rather than 'lib'
25134       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25135       ;;
25136     esac
25137     ;;
25138
25139   *)
25140     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25141     ;;
25142   esac
25143   dynamic_linker='Win32 ld.exe'
25144   # FIXME: first we should search . and the directory the executable is in
25145   shlibpath_var=PATH
25146   ;;
25147
25148 darwin* | rhapsody*)
25149   dynamic_linker="$host_os dyld"
25150   version_type=darwin
25151   need_lib_prefix=no
25152   need_version=no
25153   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25154   soname_spec='${libname}${release}${major}$shared_ext'
25155   shlibpath_overrides_runpath=yes
25156   shlibpath_var=DYLD_LIBRARY_PATH
25157   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25158   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25159   if test "$GCC" = yes; then
25160     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"`
25161   else
25162     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25163   fi
25164   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25165   ;;
25166
25167 dgux*)
25168   version_type=linux
25169   need_lib_prefix=no
25170   need_version=no
25171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25172   soname_spec='${libname}${release}${shared_ext}$major'
25173   shlibpath_var=LD_LIBRARY_PATH
25174   ;;
25175
25176 freebsd1*)
25177   dynamic_linker=no
25178   ;;
25179
25180 kfreebsd*-gnu)
25181   version_type=linux
25182   need_lib_prefix=no
25183   need_version=no
25184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25185   soname_spec='${libname}${release}${shared_ext}$major'
25186   shlibpath_var=LD_LIBRARY_PATH
25187   shlibpath_overrides_runpath=no
25188   hardcode_into_libs=yes
25189   dynamic_linker='GNU ld.so'
25190   ;;
25191
25192 freebsd* | dragonfly*)
25193   # DragonFly does not have aout.  When/if they implement a new
25194   # versioning mechanism, adjust this.
25195   if test -x /usr/bin/objformat; then
25196     objformat=`/usr/bin/objformat`
25197   else
25198     case $host_os in
25199     freebsd[123]*) objformat=aout ;;
25200     *) objformat=elf ;;
25201     esac
25202   fi
25203   version_type=freebsd-$objformat
25204   case $version_type in
25205     freebsd-elf*)
25206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25207       need_version=no
25208       need_lib_prefix=no
25209       ;;
25210     freebsd-*)
25211       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25212       need_version=yes
25213       ;;
25214   esac
25215   shlibpath_var=LD_LIBRARY_PATH
25216   case $host_os in
25217   freebsd2*)
25218     shlibpath_overrides_runpath=yes
25219     ;;
25220   freebsd3.[01]* | freebsdelf3.[01]*)
25221     shlibpath_overrides_runpath=yes
25222     hardcode_into_libs=yes
25223     ;;
25224   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25225   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25226     shlibpath_overrides_runpath=no
25227     hardcode_into_libs=yes
25228     ;;
25229   freebsd*) # from 4.6 on
25230     shlibpath_overrides_runpath=yes
25231     hardcode_into_libs=yes
25232     ;;
25233   esac
25234   ;;
25235
25236 gnu*)
25237   version_type=linux
25238   need_lib_prefix=no
25239   need_version=no
25240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25241   soname_spec='${libname}${release}${shared_ext}$major'
25242   shlibpath_var=LD_LIBRARY_PATH
25243   hardcode_into_libs=yes
25244   ;;
25245
25246 hpux9* | hpux10* | hpux11*)
25247   # Give a soname corresponding to the major version so that dld.sl refuses to
25248   # link against other versions.
25249   version_type=sunos
25250   need_lib_prefix=no
25251   need_version=no
25252   case $host_cpu in
25253   ia64*)
25254     shrext_cmds='.so'
25255     hardcode_into_libs=yes
25256     dynamic_linker="$host_os dld.so"
25257     shlibpath_var=LD_LIBRARY_PATH
25258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25260     soname_spec='${libname}${release}${shared_ext}$major'
25261     if test "X$HPUX_IA64_MODE" = X32; then
25262       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25263     else
25264       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25265     fi
25266     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25267     ;;
25268    hppa*64*)
25269      shrext_cmds='.sl'
25270      hardcode_into_libs=yes
25271      dynamic_linker="$host_os dld.sl"
25272      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25273      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25274      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25275      soname_spec='${libname}${release}${shared_ext}$major'
25276      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25277      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25278      ;;
25279    *)
25280     shrext_cmds='.sl'
25281     dynamic_linker="$host_os dld.sl"
25282     shlibpath_var=SHLIB_PATH
25283     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25285     soname_spec='${libname}${release}${shared_ext}$major'
25286     ;;
25287   esac
25288   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25289   postinstall_cmds='chmod 555 $lib'
25290   ;;
25291
25292 interix3*)
25293   version_type=linux
25294   need_lib_prefix=no
25295   need_version=no
25296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25297   soname_spec='${libname}${release}${shared_ext}$major'
25298   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25299   shlibpath_var=LD_LIBRARY_PATH
25300   shlibpath_overrides_runpath=no
25301   hardcode_into_libs=yes
25302   ;;
25303
25304 irix5* | irix6* | nonstopux*)
25305   case $host_os in
25306     nonstopux*) version_type=nonstopux ;;
25307     *)
25308         if test "$lt_cv_prog_gnu_ld" = yes; then
25309                 version_type=linux
25310         else
25311                 version_type=irix
25312         fi ;;
25313   esac
25314   need_lib_prefix=no
25315   need_version=no
25316   soname_spec='${libname}${release}${shared_ext}$major'
25317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25318   case $host_os in
25319   irix5* | nonstopux*)
25320     libsuff= shlibsuff=
25321     ;;
25322   *)
25323     case $LD in # libtool.m4 will add one of these switches to LD
25324     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25325       libsuff= shlibsuff= libmagic=32-bit;;
25326     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25327       libsuff=32 shlibsuff=N32 libmagic=N32;;
25328     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25329       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25330     *) libsuff= shlibsuff= libmagic=never-match;;
25331     esac
25332     ;;
25333   esac
25334   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25335   shlibpath_overrides_runpath=no
25336   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25337   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25338   hardcode_into_libs=yes
25339   ;;
25340
25341 # No shared lib support for Linux oldld, aout, or coff.
25342 linux*oldld* | linux*aout* | linux*coff*)
25343   dynamic_linker=no
25344   ;;
25345
25346 # This must be Linux ELF.
25347 linux*)
25348   version_type=linux
25349   need_lib_prefix=no
25350   need_version=no
25351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352   soname_spec='${libname}${release}${shared_ext}$major'
25353   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25354   shlibpath_var=LD_LIBRARY_PATH
25355   shlibpath_overrides_runpath=no
25356   # This implies no fast_install, which is unacceptable.
25357   # Some rework will be needed to allow for fast_install
25358   # before this can be enabled.
25359   hardcode_into_libs=yes
25360
25361   # Append ld.so.conf contents to the search path
25362   if test -f /etc/ld.so.conf; then
25363     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' ' '`
25364     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25365   fi
25366
25367   # We used to test for /lib/ld.so.1 and disable shared libraries on
25368   # powerpc, because MkLinux only supported shared libraries with the
25369   # GNU dynamic linker.  Since this was broken with cross compilers,
25370   # most powerpc-linux boxes support dynamic linking these days and
25371   # people can always --disable-shared, the test was removed, and we
25372   # assume the GNU/Linux dynamic linker is in use.
25373   dynamic_linker='GNU/Linux ld.so'
25374   ;;
25375
25376 knetbsd*-gnu)
25377   version_type=linux
25378   need_lib_prefix=no
25379   need_version=no
25380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25381   soname_spec='${libname}${release}${shared_ext}$major'
25382   shlibpath_var=LD_LIBRARY_PATH
25383   shlibpath_overrides_runpath=no
25384   hardcode_into_libs=yes
25385   dynamic_linker='GNU ld.so'
25386   ;;
25387
25388 netbsd*)
25389   version_type=sunos
25390   need_lib_prefix=no
25391   need_version=no
25392   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25394     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25395     dynamic_linker='NetBSD (a.out) ld.so'
25396   else
25397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25398     soname_spec='${libname}${release}${shared_ext}$major'
25399     dynamic_linker='NetBSD ld.elf_so'
25400   fi
25401   shlibpath_var=LD_LIBRARY_PATH
25402   shlibpath_overrides_runpath=yes
25403   hardcode_into_libs=yes
25404   ;;
25405
25406 newsos6)
25407   version_type=linux
25408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409   shlibpath_var=LD_LIBRARY_PATH
25410   shlibpath_overrides_runpath=yes
25411   ;;
25412
25413 nto-qnx*)
25414   version_type=linux
25415   need_lib_prefix=no
25416   need_version=no
25417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25418   soname_spec='${libname}${release}${shared_ext}$major'
25419   shlibpath_var=LD_LIBRARY_PATH
25420   shlibpath_overrides_runpath=yes
25421   ;;
25422
25423 openbsd*)
25424   version_type=sunos
25425   sys_lib_dlsearch_path_spec="/usr/lib"
25426   need_lib_prefix=no
25427   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25428   case $host_os in
25429     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25430     *)                         need_version=no  ;;
25431   esac
25432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25434   shlibpath_var=LD_LIBRARY_PATH
25435   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25436     case $host_os in
25437       openbsd2.[89] | openbsd2.[89].*)
25438         shlibpath_overrides_runpath=no
25439         ;;
25440       *)
25441         shlibpath_overrides_runpath=yes
25442         ;;
25443       esac
25444   else
25445     shlibpath_overrides_runpath=yes
25446   fi
25447   ;;
25448
25449 os2*)
25450   libname_spec='$name'
25451   shrext_cmds=".dll"
25452   need_lib_prefix=no
25453   library_names_spec='$libname${shared_ext} $libname.a'
25454   dynamic_linker='OS/2 ld.exe'
25455   shlibpath_var=LIBPATH
25456   ;;
25457
25458 osf3* | osf4* | osf5*)
25459   version_type=osf
25460   need_lib_prefix=no
25461   need_version=no
25462   soname_spec='${libname}${release}${shared_ext}$major'
25463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25464   shlibpath_var=LD_LIBRARY_PATH
25465   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25466   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25467   ;;
25468
25469 solaris*)
25470   version_type=linux
25471   need_lib_prefix=no
25472   need_version=no
25473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25474   soname_spec='${libname}${release}${shared_ext}$major'
25475   shlibpath_var=LD_LIBRARY_PATH
25476   shlibpath_overrides_runpath=yes
25477   hardcode_into_libs=yes
25478   # ldd complains unless libraries are executable
25479   postinstall_cmds='chmod +x $lib'
25480   ;;
25481
25482 sunos4*)
25483   version_type=sunos
25484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25485   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25486   shlibpath_var=LD_LIBRARY_PATH
25487   shlibpath_overrides_runpath=yes
25488   if test "$with_gnu_ld" = yes; then
25489     need_lib_prefix=no
25490   fi
25491   need_version=yes
25492   ;;
25493
25494 sysv4 | sysv4.3*)
25495   version_type=linux
25496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25497   soname_spec='${libname}${release}${shared_ext}$major'
25498   shlibpath_var=LD_LIBRARY_PATH
25499   case $host_vendor in
25500     sni)
25501       shlibpath_overrides_runpath=no
25502       need_lib_prefix=no
25503       export_dynamic_flag_spec='${wl}-Blargedynsym'
25504       runpath_var=LD_RUN_PATH
25505       ;;
25506     siemens)
25507       need_lib_prefix=no
25508       ;;
25509     motorola)
25510       need_lib_prefix=no
25511       need_version=no
25512       shlibpath_overrides_runpath=no
25513       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25514       ;;
25515   esac
25516   ;;
25517
25518 sysv4*MP*)
25519   if test -d /usr/nec ;then
25520     version_type=linux
25521     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25522     soname_spec='$libname${shared_ext}.$major'
25523     shlibpath_var=LD_LIBRARY_PATH
25524   fi
25525   ;;
25526
25527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25528   version_type=freebsd-elf
25529   need_lib_prefix=no
25530   need_version=no
25531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25532   soname_spec='${libname}${release}${shared_ext}$major'
25533   shlibpath_var=LD_LIBRARY_PATH
25534   hardcode_into_libs=yes
25535   if test "$with_gnu_ld" = yes; then
25536     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25537     shlibpath_overrides_runpath=no
25538   else
25539     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25540     shlibpath_overrides_runpath=yes
25541     case $host_os in
25542       sco3.2v5*)
25543         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25544         ;;
25545     esac
25546   fi
25547   sys_lib_dlsearch_path_spec='/usr/lib'
25548   ;;
25549
25550 uts4*)
25551   version_type=linux
25552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553   soname_spec='${libname}${release}${shared_ext}$major'
25554   shlibpath_var=LD_LIBRARY_PATH
25555   ;;
25556
25557 *)
25558   dynamic_linker=no
25559   ;;
25560 esac
25561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25562 echo "${ECHO_T}$dynamic_linker" >&6; }
25563 test "$dynamic_linker" = no && can_build_shared=no
25564
25565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25566 if test "$GCC" = yes; then
25567   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25568 fi
25569
25570 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25572 hardcode_action_GCJ=
25573 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25574    test -n "$runpath_var_GCJ" || \
25575    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25576
25577   # We can hardcode non-existant directories.
25578   if test "$hardcode_direct_GCJ" != no &&
25579      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25580      # have to relink, otherwise we might link with an installed library
25581      # when we should be linking with a yet-to-be-installed one
25582      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25583      test "$hardcode_minus_L_GCJ" != no; then
25584     # Linking always hardcodes the temporary library directory.
25585     hardcode_action_GCJ=relink
25586   else
25587     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25588     hardcode_action_GCJ=immediate
25589   fi
25590 else
25591   # We cannot hardcode anything, or else we can only hardcode existing
25592   # directories.
25593   hardcode_action_GCJ=unsupported
25594 fi
25595 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25596 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25597
25598 if test "$hardcode_action_GCJ" = relink; then
25599   # Fast installation is not supported
25600   enable_fast_install=no
25601 elif test "$shlibpath_overrides_runpath" = yes ||
25602      test "$enable_shared" = no; then
25603   # Fast installation is not necessary
25604   enable_fast_install=needless
25605 fi
25606
25607
25608 # The else clause should only fire when bootstrapping the
25609 # libtool distribution, otherwise you forgot to ship ltmain.sh
25610 # with your package, and you will get complaints that there are
25611 # no rules to generate ltmain.sh.
25612 if test -f "$ltmain"; then
25613   # See if we are running on zsh, and set the options which allow our commands through
25614   # without removal of \ escapes.
25615   if test -n "${ZSH_VERSION+set}" ; then
25616     setopt NO_GLOB_SUBST
25617   fi
25618   # Now quote all the things that may contain metacharacters while being
25619   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25620   # variables and quote the copies for generation of the libtool script.
25621   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25622     SED SHELL STRIP \
25623     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25624     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25625     deplibs_check_method reload_flag reload_cmds need_locks \
25626     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25627     lt_cv_sys_global_symbol_to_c_name_address \
25628     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25629     old_postinstall_cmds old_postuninstall_cmds \
25630     compiler_GCJ \
25631     CC_GCJ \
25632     LD_GCJ \
25633     lt_prog_compiler_wl_GCJ \
25634     lt_prog_compiler_pic_GCJ \
25635     lt_prog_compiler_static_GCJ \
25636     lt_prog_compiler_no_builtin_flag_GCJ \
25637     export_dynamic_flag_spec_GCJ \
25638     thread_safe_flag_spec_GCJ \
25639     whole_archive_flag_spec_GCJ \
25640     enable_shared_with_static_runtimes_GCJ \
25641     old_archive_cmds_GCJ \
25642     old_archive_from_new_cmds_GCJ \
25643     predep_objects_GCJ \
25644     postdep_objects_GCJ \
25645     predeps_GCJ \
25646     postdeps_GCJ \
25647     compiler_lib_search_path_GCJ \
25648     archive_cmds_GCJ \
25649     archive_expsym_cmds_GCJ \
25650     postinstall_cmds_GCJ \
25651     postuninstall_cmds_GCJ \
25652     old_archive_from_expsyms_cmds_GCJ \
25653     allow_undefined_flag_GCJ \
25654     no_undefined_flag_GCJ \
25655     export_symbols_cmds_GCJ \
25656     hardcode_libdir_flag_spec_GCJ \
25657     hardcode_libdir_flag_spec_ld_GCJ \
25658     hardcode_libdir_separator_GCJ \
25659     hardcode_automatic_GCJ \
25660     module_cmds_GCJ \
25661     module_expsym_cmds_GCJ \
25662     lt_cv_prog_compiler_c_o_GCJ \
25663     exclude_expsyms_GCJ \
25664     include_expsyms_GCJ; do
25665
25666     case $var in
25667     old_archive_cmds_GCJ | \
25668     old_archive_from_new_cmds_GCJ | \
25669     archive_cmds_GCJ | \
25670     archive_expsym_cmds_GCJ | \
25671     module_cmds_GCJ | \
25672     module_expsym_cmds_GCJ | \
25673     old_archive_from_expsyms_cmds_GCJ | \
25674     export_symbols_cmds_GCJ | \
25675     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25676     postinstall_cmds | postuninstall_cmds | \
25677     old_postinstall_cmds | old_postuninstall_cmds | \
25678     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25679       # Double-quote double-evaled strings.
25680       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25681       ;;
25682     *)
25683       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25684       ;;
25685     esac
25686   done
25687
25688   case $lt_echo in
25689   *'\$0 --fallback-echo"')
25690     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25691     ;;
25692   esac
25693
25694 cfgfile="$ofile"
25695
25696   cat <<__EOF__ >> "$cfgfile"
25697 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25698
25699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25700
25701 # Shell to use when invoking shell scripts.
25702 SHELL=$lt_SHELL
25703
25704 # Whether or not to build shared libraries.
25705 build_libtool_libs=$enable_shared
25706
25707 # Whether or not to build static libraries.
25708 build_old_libs=$enable_static
25709
25710 # Whether or not to add -lc for building shared libraries.
25711 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25712
25713 # Whether or not to disallow shared libs when runtime libs are static
25714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25715
25716 # Whether or not to optimize for fast installation.
25717 fast_install=$enable_fast_install
25718
25719 # The host system.
25720 host_alias=$host_alias
25721 host=$host
25722 host_os=$host_os
25723
25724 # The build system.
25725 build_alias=$build_alias
25726 build=$build
25727 build_os=$build_os
25728
25729 # An echo program that does not interpret backslashes.
25730 echo=$lt_echo
25731
25732 # The archiver.
25733 AR=$lt_AR
25734 AR_FLAGS=$lt_AR_FLAGS
25735
25736 # A C compiler.
25737 LTCC=$lt_LTCC
25738
25739 # LTCC compiler flags.
25740 LTCFLAGS=$lt_LTCFLAGS
25741
25742 # A language-specific compiler.
25743 CC=$lt_compiler_GCJ
25744
25745 # Is the compiler the GNU C compiler?
25746 with_gcc=$GCC_GCJ
25747
25748 # An ERE matcher.
25749 EGREP=$lt_EGREP
25750
25751 # The linker used to build libraries.
25752 LD=$lt_LD_GCJ
25753
25754 # Whether we need hard or soft links.
25755 LN_S=$lt_LN_S
25756
25757 # A BSD-compatible nm program.
25758 NM=$lt_NM
25759
25760 # A symbol stripping program
25761 STRIP=$lt_STRIP
25762
25763 # Used to examine libraries when file_magic_cmd begins "file"
25764 MAGIC_CMD=$MAGIC_CMD
25765
25766 # Used on cygwin: DLL creation program.
25767 DLLTOOL="$DLLTOOL"
25768
25769 # Used on cygwin: object dumper.
25770 OBJDUMP="$OBJDUMP"
25771
25772 # Used on cygwin: assembler.
25773 AS="$AS"
25774
25775 # The name of the directory that contains temporary libtool files.
25776 objdir=$objdir
25777
25778 # How to create reloadable object files.
25779 reload_flag=$lt_reload_flag
25780 reload_cmds=$lt_reload_cmds
25781
25782 # How to pass a linker flag through the compiler.
25783 wl=$lt_lt_prog_compiler_wl_GCJ
25784
25785 # Object file suffix (normally "o").
25786 objext="$ac_objext"
25787
25788 # Old archive suffix (normally "a").
25789 libext="$libext"
25790
25791 # Shared library suffix (normally ".so").
25792 shrext_cmds='$shrext_cmds'
25793
25794 # Executable file suffix (normally "").
25795 exeext="$exeext"
25796
25797 # Additional compiler flags for building library objects.
25798 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25799 pic_mode=$pic_mode
25800
25801 # What is the maximum length of a command?
25802 max_cmd_len=$lt_cv_sys_max_cmd_len
25803
25804 # Does compiler simultaneously support -c and -o options?
25805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25806
25807 # Must we lock files when doing compilation?
25808 need_locks=$lt_need_locks
25809
25810 # Do we need the lib prefix for modules?
25811 need_lib_prefix=$need_lib_prefix
25812
25813 # Do we need a version for libraries?
25814 need_version=$need_version
25815
25816 # Whether dlopen is supported.
25817 dlopen_support=$enable_dlopen
25818
25819 # Whether dlopen of programs is supported.
25820 dlopen_self=$enable_dlopen_self
25821
25822 # Whether dlopen of statically linked programs is supported.
25823 dlopen_self_static=$enable_dlopen_self_static
25824
25825 # Compiler flag to prevent dynamic linking.
25826 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25827
25828 # Compiler flag to turn off builtin functions.
25829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25830
25831 # Compiler flag to allow reflexive dlopens.
25832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25833
25834 # Compiler flag to generate shared objects directly from archives.
25835 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25836
25837 # Compiler flag to generate thread-safe objects.
25838 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25839
25840 # Library versioning type.
25841 version_type=$version_type
25842
25843 # Format of library name prefix.
25844 libname_spec=$lt_libname_spec
25845
25846 # List of archive names.  First name is the real one, the rest are links.
25847 # The last name is the one that the linker finds with -lNAME.
25848 library_names_spec=$lt_library_names_spec
25849
25850 # The coded name of the library, if different from the real name.
25851 soname_spec=$lt_soname_spec
25852
25853 # Commands used to build and install an old-style archive.
25854 RANLIB=$lt_RANLIB
25855 old_archive_cmds=$lt_old_archive_cmds_GCJ
25856 old_postinstall_cmds=$lt_old_postinstall_cmds
25857 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25858
25859 # Create an old-style archive from a shared archive.
25860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25861
25862 # Create a temporary old-style archive to link instead of a shared archive.
25863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25864
25865 # Commands used to build and install a shared archive.
25866 archive_cmds=$lt_archive_cmds_GCJ
25867 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25868 postinstall_cmds=$lt_postinstall_cmds
25869 postuninstall_cmds=$lt_postuninstall_cmds
25870
25871 # Commands used to build a loadable module (assumed same as above if empty)
25872 module_cmds=$lt_module_cmds_GCJ
25873 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25874
25875 # Commands to strip libraries.
25876 old_striplib=$lt_old_striplib
25877 striplib=$lt_striplib
25878
25879 # Dependencies to place before the objects being linked to create a
25880 # shared library.
25881 predep_objects=$lt_predep_objects_GCJ
25882
25883 # Dependencies to place after the objects being linked to create a
25884 # shared library.
25885 postdep_objects=$lt_postdep_objects_GCJ
25886
25887 # Dependencies to place before the objects being linked to create a
25888 # shared library.
25889 predeps=$lt_predeps_GCJ
25890
25891 # Dependencies to place after the objects being linked to create a
25892 # shared library.
25893 postdeps=$lt_postdeps_GCJ
25894
25895 # The library search path used internally by the compiler when linking
25896 # a shared library.
25897 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25898
25899 # Method to check whether dependent libraries are shared objects.
25900 deplibs_check_method=$lt_deplibs_check_method
25901
25902 # Command to use when deplibs_check_method == file_magic.
25903 file_magic_cmd=$lt_file_magic_cmd
25904
25905 # Flag that allows shared libraries with undefined symbols to be built.
25906 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25907
25908 # Flag that forces no undefined symbols.
25909 no_undefined_flag=$lt_no_undefined_flag_GCJ
25910
25911 # Commands used to finish a libtool library installation in a directory.
25912 finish_cmds=$lt_finish_cmds
25913
25914 # Same as above, but a single script fragment to be evaled but not shown.
25915 finish_eval=$lt_finish_eval
25916
25917 # Take the output of nm and produce a listing of raw symbols and C names.
25918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25919
25920 # Transform the output of nm in a proper C declaration
25921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25922
25923 # Transform the output of nm in a C name address pair
25924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25925
25926 # This is the shared library runtime path variable.
25927 runpath_var=$runpath_var
25928
25929 # This is the shared library path variable.
25930 shlibpath_var=$shlibpath_var
25931
25932 # Is shlibpath searched before the hard-coded library search path?
25933 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25934
25935 # How to hardcode a shared library path into an executable.
25936 hardcode_action=$hardcode_action_GCJ
25937
25938 # Whether we should hardcode library paths into libraries.
25939 hardcode_into_libs=$hardcode_into_libs
25940
25941 # Flag to hardcode \$libdir into a binary during linking.
25942 # This must work even if \$libdir does not exist.
25943 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25944
25945 # If ld is used when linking, flag to hardcode \$libdir into
25946 # a binary during linking. This must work even if \$libdir does
25947 # not exist.
25948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25949
25950 # Whether we need a single -rpath flag with a separated argument.
25951 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25952
25953 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25954 # resulting binary.
25955 hardcode_direct=$hardcode_direct_GCJ
25956
25957 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25958 # resulting binary.
25959 hardcode_minus_L=$hardcode_minus_L_GCJ
25960
25961 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25962 # the resulting binary.
25963 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25964
25965 # Set to yes if building a shared library automatically hardcodes DIR into the library
25966 # and all subsequent libraries and executables linked against it.
25967 hardcode_automatic=$hardcode_automatic_GCJ
25968
25969 # Variables whose values should be saved in libtool wrapper scripts and
25970 # restored at relink time.
25971 variables_saved_for_relink="$variables_saved_for_relink"
25972
25973 # Whether libtool must link a program against all its dependency libraries.
25974 link_all_deplibs=$link_all_deplibs_GCJ
25975
25976 # Compile-time system search path for libraries
25977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25978
25979 # Run-time system search path for libraries
25980 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25981
25982 # Fix the shell variable \$srcfile for the compiler.
25983 fix_srcfile_path="$fix_srcfile_path_GCJ"
25984
25985 # Set to yes if exported symbols are required.
25986 always_export_symbols=$always_export_symbols_GCJ
25987
25988 # The commands to list exported symbols.
25989 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25990
25991 # The commands to extract the exported symbol list from a shared archive.
25992 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25993
25994 # Symbols that should not be listed in the preloaded symbols.
25995 exclude_expsyms=$lt_exclude_expsyms_GCJ
25996
25997 # Symbols that must always be exported.
25998 include_expsyms=$lt_include_expsyms_GCJ
25999
26000 # ### END LIBTOOL TAG CONFIG: $tagname
26001
26002 __EOF__
26003
26004
26005 else
26006   # If there is no Makefile yet, we rely on a make rule to execute
26007   # `config.status --recheck' to rerun these tests and create the
26008   # libtool script then.
26009   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26010   if test -f "$ltmain_in"; then
26011     test -f Makefile && make "$ltmain"
26012   fi
26013 fi
26014
26015
26016 ac_ext=c
26017 ac_cpp='$CPP $CPPFLAGS'
26018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26021
26022 CC="$lt_save_CC"
26023
26024         else
26025           tagname=""
26026         fi
26027         ;;
26028
26029       RC)
26030         ac_ext=c
26031 ac_cpp='$CPP $CPPFLAGS'
26032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26035
26036
26037 # Source file extension for RC test sources.
26038 ac_ext=rc
26039
26040 # Object file extension for compiled RC test sources.
26041 objext=o
26042 objext_RC=$objext
26043
26044 # Code to be used in simple compile tests
26045 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26046
26047 # Code to be used in simple link tests
26048 lt_simple_link_test_code="$lt_simple_compile_test_code"
26049
26050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26051
26052 # If no C compiler was specified, use CC.
26053 LTCC=${LTCC-"$CC"}
26054
26055 # If no C compiler flags were specified, use CFLAGS.
26056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26057
26058 # Allow CC to be a program name with arguments.
26059 compiler=$CC
26060
26061
26062 # save warnings/boilerplate of simple test code
26063 ac_outfile=conftest.$ac_objext
26064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26066 _lt_compiler_boilerplate=`cat conftest.err`
26067 $rm conftest*
26068
26069 ac_outfile=conftest.$ac_objext
26070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26072 _lt_linker_boilerplate=`cat conftest.err`
26073 $rm conftest*
26074
26075
26076 # Allow CC to be a program name with arguments.
26077 lt_save_CC="$CC"
26078 CC=${RC-"windres"}
26079 compiler=$CC
26080 compiler_RC=$CC
26081 for cc_temp in $compiler""; do
26082   case $cc_temp in
26083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26085     \-*) ;;
26086     *) break;;
26087   esac
26088 done
26089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26090
26091 lt_cv_prog_compiler_c_o_RC=yes
26092
26093 # The else clause should only fire when bootstrapping the
26094 # libtool distribution, otherwise you forgot to ship ltmain.sh
26095 # with your package, and you will get complaints that there are
26096 # no rules to generate ltmain.sh.
26097 if test -f "$ltmain"; then
26098   # See if we are running on zsh, and set the options which allow our commands through
26099   # without removal of \ escapes.
26100   if test -n "${ZSH_VERSION+set}" ; then
26101     setopt NO_GLOB_SUBST
26102   fi
26103   # Now quote all the things that may contain metacharacters while being
26104   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26105   # variables and quote the copies for generation of the libtool script.
26106   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26107     SED SHELL STRIP \
26108     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26109     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26110     deplibs_check_method reload_flag reload_cmds need_locks \
26111     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26112     lt_cv_sys_global_symbol_to_c_name_address \
26113     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26114     old_postinstall_cmds old_postuninstall_cmds \
26115     compiler_RC \
26116     CC_RC \
26117     LD_RC \
26118     lt_prog_compiler_wl_RC \
26119     lt_prog_compiler_pic_RC \
26120     lt_prog_compiler_static_RC \
26121     lt_prog_compiler_no_builtin_flag_RC \
26122     export_dynamic_flag_spec_RC \
26123     thread_safe_flag_spec_RC \
26124     whole_archive_flag_spec_RC \
26125     enable_shared_with_static_runtimes_RC \
26126     old_archive_cmds_RC \
26127     old_archive_from_new_cmds_RC \
26128     predep_objects_RC \
26129     postdep_objects_RC \
26130     predeps_RC \
26131     postdeps_RC \
26132     compiler_lib_search_path_RC \
26133     archive_cmds_RC \
26134     archive_expsym_cmds_RC \
26135     postinstall_cmds_RC \
26136     postuninstall_cmds_RC \
26137     old_archive_from_expsyms_cmds_RC \
26138     allow_undefined_flag_RC \
26139     no_undefined_flag_RC \
26140     export_symbols_cmds_RC \
26141     hardcode_libdir_flag_spec_RC \
26142     hardcode_libdir_flag_spec_ld_RC \
26143     hardcode_libdir_separator_RC \
26144     hardcode_automatic_RC \
26145     module_cmds_RC \
26146     module_expsym_cmds_RC \
26147     lt_cv_prog_compiler_c_o_RC \
26148     exclude_expsyms_RC \
26149     include_expsyms_RC; do
26150
26151     case $var in
26152     old_archive_cmds_RC | \
26153     old_archive_from_new_cmds_RC | \
26154     archive_cmds_RC | \
26155     archive_expsym_cmds_RC | \
26156     module_cmds_RC | \
26157     module_expsym_cmds_RC | \
26158     old_archive_from_expsyms_cmds_RC | \
26159     export_symbols_cmds_RC | \
26160     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26161     postinstall_cmds | postuninstall_cmds | \
26162     old_postinstall_cmds | old_postuninstall_cmds | \
26163     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26164       # Double-quote double-evaled strings.
26165       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26166       ;;
26167     *)
26168       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26169       ;;
26170     esac
26171   done
26172
26173   case $lt_echo in
26174   *'\$0 --fallback-echo"')
26175     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26176     ;;
26177   esac
26178
26179 cfgfile="$ofile"
26180
26181   cat <<__EOF__ >> "$cfgfile"
26182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26183
26184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26185
26186 # Shell to use when invoking shell scripts.
26187 SHELL=$lt_SHELL
26188
26189 # Whether or not to build shared libraries.
26190 build_libtool_libs=$enable_shared
26191
26192 # Whether or not to build static libraries.
26193 build_old_libs=$enable_static
26194
26195 # Whether or not to add -lc for building shared libraries.
26196 build_libtool_need_lc=$archive_cmds_need_lc_RC
26197
26198 # Whether or not to disallow shared libs when runtime libs are static
26199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26200
26201 # Whether or not to optimize for fast installation.
26202 fast_install=$enable_fast_install
26203
26204 # The host system.
26205 host_alias=$host_alias
26206 host=$host
26207 host_os=$host_os
26208
26209 # The build system.
26210 build_alias=$build_alias
26211 build=$build
26212 build_os=$build_os
26213
26214 # An echo program that does not interpret backslashes.
26215 echo=$lt_echo
26216
26217 # The archiver.
26218 AR=$lt_AR
26219 AR_FLAGS=$lt_AR_FLAGS
26220
26221 # A C compiler.
26222 LTCC=$lt_LTCC
26223
26224 # LTCC compiler flags.
26225 LTCFLAGS=$lt_LTCFLAGS
26226
26227 # A language-specific compiler.
26228 CC=$lt_compiler_RC
26229
26230 # Is the compiler the GNU C compiler?
26231 with_gcc=$GCC_RC
26232
26233 # An ERE matcher.
26234 EGREP=$lt_EGREP
26235
26236 # The linker used to build libraries.
26237 LD=$lt_LD_RC
26238
26239 # Whether we need hard or soft links.
26240 LN_S=$lt_LN_S
26241
26242 # A BSD-compatible nm program.
26243 NM=$lt_NM
26244
26245 # A symbol stripping program
26246 STRIP=$lt_STRIP
26247
26248 # Used to examine libraries when file_magic_cmd begins "file"
26249 MAGIC_CMD=$MAGIC_CMD
26250
26251 # Used on cygwin: DLL creation program.
26252 DLLTOOL="$DLLTOOL"
26253
26254 # Used on cygwin: object dumper.
26255 OBJDUMP="$OBJDUMP"
26256
26257 # Used on cygwin: assembler.
26258 AS="$AS"
26259
26260 # The name of the directory that contains temporary libtool files.
26261 objdir=$objdir
26262
26263 # How to create reloadable object files.
26264 reload_flag=$lt_reload_flag
26265 reload_cmds=$lt_reload_cmds
26266
26267 # How to pass a linker flag through the compiler.
26268 wl=$lt_lt_prog_compiler_wl_RC
26269
26270 # Object file suffix (normally "o").
26271 objext="$ac_objext"
26272
26273 # Old archive suffix (normally "a").
26274 libext="$libext"
26275
26276 # Shared library suffix (normally ".so").
26277 shrext_cmds='$shrext_cmds'
26278
26279 # Executable file suffix (normally "").
26280 exeext="$exeext"
26281
26282 # Additional compiler flags for building library objects.
26283 pic_flag=$lt_lt_prog_compiler_pic_RC
26284 pic_mode=$pic_mode
26285
26286 # What is the maximum length of a command?
26287 max_cmd_len=$lt_cv_sys_max_cmd_len
26288
26289 # Does compiler simultaneously support -c and -o options?
26290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26291
26292 # Must we lock files when doing compilation?
26293 need_locks=$lt_need_locks
26294
26295 # Do we need the lib prefix for modules?
26296 need_lib_prefix=$need_lib_prefix
26297
26298 # Do we need a version for libraries?
26299 need_version=$need_version
26300
26301 # Whether dlopen is supported.
26302 dlopen_support=$enable_dlopen
26303
26304 # Whether dlopen of programs is supported.
26305 dlopen_self=$enable_dlopen_self
26306
26307 # Whether dlopen of statically linked programs is supported.
26308 dlopen_self_static=$enable_dlopen_self_static
26309
26310 # Compiler flag to prevent dynamic linking.
26311 link_static_flag=$lt_lt_prog_compiler_static_RC
26312
26313 # Compiler flag to turn off builtin functions.
26314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26315
26316 # Compiler flag to allow reflexive dlopens.
26317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26318
26319 # Compiler flag to generate shared objects directly from archives.
26320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26321
26322 # Compiler flag to generate thread-safe objects.
26323 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26324
26325 # Library versioning type.
26326 version_type=$version_type
26327
26328 # Format of library name prefix.
26329 libname_spec=$lt_libname_spec
26330
26331 # List of archive names.  First name is the real one, the rest are links.
26332 # The last name is the one that the linker finds with -lNAME.
26333 library_names_spec=$lt_library_names_spec
26334
26335 # The coded name of the library, if different from the real name.
26336 soname_spec=$lt_soname_spec
26337
26338 # Commands used to build and install an old-style archive.
26339 RANLIB=$lt_RANLIB
26340 old_archive_cmds=$lt_old_archive_cmds_RC
26341 old_postinstall_cmds=$lt_old_postinstall_cmds
26342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26343
26344 # Create an old-style archive from a shared archive.
26345 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26346
26347 # Create a temporary old-style archive to link instead of a shared archive.
26348 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26349
26350 # Commands used to build and install a shared archive.
26351 archive_cmds=$lt_archive_cmds_RC
26352 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26353 postinstall_cmds=$lt_postinstall_cmds
26354 postuninstall_cmds=$lt_postuninstall_cmds
26355
26356 # Commands used to build a loadable module (assumed same as above if empty)
26357 module_cmds=$lt_module_cmds_RC
26358 module_expsym_cmds=$lt_module_expsym_cmds_RC
26359
26360 # Commands to strip libraries.
26361 old_striplib=$lt_old_striplib
26362 striplib=$lt_striplib
26363
26364 # Dependencies to place before the objects being linked to create a
26365 # shared library.
26366 predep_objects=$lt_predep_objects_RC
26367
26368 # Dependencies to place after the objects being linked to create a
26369 # shared library.
26370 postdep_objects=$lt_postdep_objects_RC
26371
26372 # Dependencies to place before the objects being linked to create a
26373 # shared library.
26374 predeps=$lt_predeps_RC
26375
26376 # Dependencies to place after the objects being linked to create a
26377 # shared library.
26378 postdeps=$lt_postdeps_RC
26379
26380 # The library search path used internally by the compiler when linking
26381 # a shared library.
26382 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26383
26384 # Method to check whether dependent libraries are shared objects.
26385 deplibs_check_method=$lt_deplibs_check_method
26386
26387 # Command to use when deplibs_check_method == file_magic.
26388 file_magic_cmd=$lt_file_magic_cmd
26389
26390 # Flag that allows shared libraries with undefined symbols to be built.
26391 allow_undefined_flag=$lt_allow_undefined_flag_RC
26392
26393 # Flag that forces no undefined symbols.
26394 no_undefined_flag=$lt_no_undefined_flag_RC
26395
26396 # Commands used to finish a libtool library installation in a directory.
26397 finish_cmds=$lt_finish_cmds
26398
26399 # Same as above, but a single script fragment to be evaled but not shown.
26400 finish_eval=$lt_finish_eval
26401
26402 # Take the output of nm and produce a listing of raw symbols and C names.
26403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26404
26405 # Transform the output of nm in a proper C declaration
26406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26407
26408 # Transform the output of nm in a C name address pair
26409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26410
26411 # This is the shared library runtime path variable.
26412 runpath_var=$runpath_var
26413
26414 # This is the shared library path variable.
26415 shlibpath_var=$shlibpath_var
26416
26417 # Is shlibpath searched before the hard-coded library search path?
26418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26419
26420 # How to hardcode a shared library path into an executable.
26421 hardcode_action=$hardcode_action_RC
26422
26423 # Whether we should hardcode library paths into libraries.
26424 hardcode_into_libs=$hardcode_into_libs
26425
26426 # Flag to hardcode \$libdir into a binary during linking.
26427 # This must work even if \$libdir does not exist.
26428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26429
26430 # If ld is used when linking, flag to hardcode \$libdir into
26431 # a binary during linking. This must work even if \$libdir does
26432 # not exist.
26433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26434
26435 # Whether we need a single -rpath flag with a separated argument.
26436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26437
26438 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26439 # resulting binary.
26440 hardcode_direct=$hardcode_direct_RC
26441
26442 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26443 # resulting binary.
26444 hardcode_minus_L=$hardcode_minus_L_RC
26445
26446 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26447 # the resulting binary.
26448 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26449
26450 # Set to yes if building a shared library automatically hardcodes DIR into the library
26451 # and all subsequent libraries and executables linked against it.
26452 hardcode_automatic=$hardcode_automatic_RC
26453
26454 # Variables whose values should be saved in libtool wrapper scripts and
26455 # restored at relink time.
26456 variables_saved_for_relink="$variables_saved_for_relink"
26457
26458 # Whether libtool must link a program against all its dependency libraries.
26459 link_all_deplibs=$link_all_deplibs_RC
26460
26461 # Compile-time system search path for libraries
26462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26463
26464 # Run-time system search path for libraries
26465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26466
26467 # Fix the shell variable \$srcfile for the compiler.
26468 fix_srcfile_path="$fix_srcfile_path_RC"
26469
26470 # Set to yes if exported symbols are required.
26471 always_export_symbols=$always_export_symbols_RC
26472
26473 # The commands to list exported symbols.
26474 export_symbols_cmds=$lt_export_symbols_cmds_RC
26475
26476 # The commands to extract the exported symbol list from a shared archive.
26477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26478
26479 # Symbols that should not be listed in the preloaded symbols.
26480 exclude_expsyms=$lt_exclude_expsyms_RC
26481
26482 # Symbols that must always be exported.
26483 include_expsyms=$lt_include_expsyms_RC
26484
26485 # ### END LIBTOOL TAG CONFIG: $tagname
26486
26487 __EOF__
26488
26489
26490 else
26491   # If there is no Makefile yet, we rely on a make rule to execute
26492   # `config.status --recheck' to rerun these tests and create the
26493   # libtool script then.
26494   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26495   if test -f "$ltmain_in"; then
26496     test -f Makefile && make "$ltmain"
26497   fi
26498 fi
26499
26500
26501 ac_ext=c
26502 ac_cpp='$CPP $CPPFLAGS'
26503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26506
26507 CC="$lt_save_CC"
26508
26509         ;;
26510
26511       *)
26512         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26513 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26514    { (exit 1); exit 1; }; }
26515         ;;
26516       esac
26517
26518       # Append the new tag name to the list of available tags.
26519       if test -n "$tagname" ; then
26520       available_tags="$available_tags $tagname"
26521     fi
26522     fi
26523   done
26524   IFS="$lt_save_ifs"
26525
26526   # Now substitute the updated list of available tags.
26527   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26528     mv "${ofile}T" "$ofile"
26529     chmod +x "$ofile"
26530   else
26531     rm -f "${ofile}T"
26532     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26533 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26534    { (exit 1); exit 1; }; }
26535   fi
26536 fi
26537
26538
26539
26540 # This can be used to rebuild libtool when needed
26541 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26542
26543 # Always use our own libtool.
26544 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26545
26546 # Prevent multiple expansion
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568 if test "$lt_cv_dlopen_self" = "yes" ; then
26569
26570 cat >>confdefs.h <<\_ACEOF
26571 #define CAN_DLOPEN_SELF 1
26572 _ACEOF
26573
26574 fi
26575
26576 etags_version=`$ETAGS --version 2>&1`
26577 case "$etags_version" in
26578         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26579         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26580         *) ETAGSFLAGS="" ;;
26581 esac
26582 ETAGSFLAGS=$ETAGSFLAGS
26583
26584
26585 if test "$WITH_LLVMGCCDIR" = "default" ; then
26586   LLVMGCC="llvm-gcc${EXEEXT}"
26587   LLVMGXX="llvm-g++${EXEEXT}"
26588   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26589 set dummy $LLVMGCC; ac_word=$2
26590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26592 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26593   echo $ECHO_N "(cached) $ECHO_C" >&6
26594 else
26595   case $LLVMGCC in
26596   [\\/]* | ?:[\\/]*)
26597   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26598   ;;
26599   *)
26600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26601 for as_dir in $PATH
26602 do
26603   IFS=$as_save_IFS
26604   test -z "$as_dir" && as_dir=.
26605   for ac_exec_ext in '' $ac_executable_extensions; do
26606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26607     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26609     break 2
26610   fi
26611 done
26612 done
26613 IFS=$as_save_IFS
26614
26615   ;;
26616 esac
26617 fi
26618 LLVMGCC=$ac_cv_path_LLVMGCC
26619 if test -n "$LLVMGCC"; then
26620   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26621 echo "${ECHO_T}$LLVMGCC" >&6; }
26622 else
26623   { echo "$as_me:$LINENO: result: no" >&5
26624 echo "${ECHO_T}no" >&6; }
26625 fi
26626
26627
26628   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26629 set dummy $LLVMGXX; ac_word=$2
26630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26632 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 else
26635   case $LLVMGXX in
26636   [\\/]* | ?:[\\/]*)
26637   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26638   ;;
26639   *)
26640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641 for as_dir in $PATH
26642 do
26643   IFS=$as_save_IFS
26644   test -z "$as_dir" && as_dir=.
26645   for ac_exec_ext in '' $ac_executable_extensions; do
26646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26647     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26649     break 2
26650   fi
26651 done
26652 done
26653 IFS=$as_save_IFS
26654
26655   ;;
26656 esac
26657 fi
26658 LLVMGXX=$ac_cv_path_LLVMGXX
26659 if test -n "$LLVMGXX"; then
26660   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26661 echo "${ECHO_T}$LLVMGXX" >&6; }
26662 else
26663   { echo "$as_me:$LINENO: result: no" >&5
26664 echo "${ECHO_T}no" >&6; }
26665 fi
26666
26667
26668 else
26669   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26670   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26671   LLVMGCC=$LLVMGCC
26672
26673   LLVMGXX=$LLVMGXX
26674
26675 fi
26676
26677 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26678 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26679
26680 ICC=no
26681 IXX=no
26682 case $CC in
26683   icc*|icpc*)
26684     ICC=yes
26685     IXX=yes
26686     ;;
26687    *)
26688     ;;
26689 esac
26690
26691 if test "$GCC" != "yes" && test "$ICC" != "yes"
26692 then
26693   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26694 echo "$as_me: error: gcc|icc required but not found" >&2;}
26695    { (exit 1); exit 1; }; }
26696 fi
26697
26698 if test "$GXX" != "yes" && test "$IXX" != "yes"
26699 then
26700   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26701 echo "$as_me: error: g++|icc required but not found" >&2;}
26702    { (exit 1); exit 1; }; }
26703 fi
26704
26705 if test "$GCC" = "yes"
26706 then
26707   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26708   if test "$gccmajor" -lt "3"
26709   then
26710     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26711 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26712    { (exit 1); exit 1; }; }
26713   fi
26714 fi
26715
26716 if test -z "$llvm_cv_gnu_make_command"
26717 then
26718   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26719 echo "$as_me: error: GNU Make required but not found" >&2;}
26720    { (exit 1); exit 1; }; }
26721 fi
26722
26723 { echo "$as_me:$LINENO: result: ok" >&5
26724 echo "${ECHO_T}ok" >&6; }
26725
26726
26727
26728 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26729 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26730 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26731   echo $ECHO_N "(cached) $ECHO_C" >&6
26732 else
26733   ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-lelf  $LIBS"
26735 cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741
26742 /* Override any GCC internal prototype to avoid an error.
26743    Use char because int might match the return type of a GCC
26744    builtin and then its argument prototype would still apply.  */
26745 #ifdef __cplusplus
26746 extern "C"
26747 #endif
26748 char elf_begin ();
26749 int
26750 main ()
26751 {
26752 return elf_begin ();
26753   ;
26754   return 0;
26755 }
26756 _ACEOF
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761   *) ac_try_echo=$ac_try;;
26762 esac
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764   (eval "$ac_link") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } &&
26771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26772   { (case "(($ac_try" in
26773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774   *) ac_try_echo=$ac_try;;
26775 esac
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777   (eval "$ac_try") 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; } &&
26781          { ac_try='test -s conftest$ac_exeext'
26782   { (case "(($ac_try" in
26783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784   *) ac_try_echo=$ac_try;;
26785 esac
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787   (eval "$ac_try") 2>&5
26788   ac_status=$?
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); }; }; then
26791   ac_cv_lib_elf_elf_begin=yes
26792 else
26793   echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26795
26796         ac_cv_lib_elf_elf_begin=no
26797 fi
26798
26799 rm -f core conftest.err conftest.$ac_objext \
26800       conftest$ac_exeext conftest.$ac_ext
26801 LIBS=$ac_check_lib_save_LIBS
26802 fi
26803 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26804 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26805 if test $ac_cv_lib_elf_elf_begin = yes; then
26806   cat >>confdefs.h <<_ACEOF
26807 #define HAVE_LIBELF 1
26808 _ACEOF
26809
26810   LIBS="-lelf $LIBS"
26811
26812 fi
26813
26814
26815 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26816 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26817 if test "${ac_cv_lib_m_sin+set}" = set; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 else
26820   ac_check_lib_save_LIBS=$LIBS
26821 LIBS="-lm  $LIBS"
26822 cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h.  */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h.  */
26828
26829 /* Override any GCC internal prototype to avoid an error.
26830    Use char because int might match the return type of a GCC
26831    builtin and then its argument prototype would still apply.  */
26832 #ifdef __cplusplus
26833 extern "C"
26834 #endif
26835 char sin ();
26836 int
26837 main ()
26838 {
26839 return sin ();
26840   ;
26841   return 0;
26842 }
26843 _ACEOF
26844 rm -f conftest.$ac_objext conftest$ac_exeext
26845 if { (ac_try="$ac_link"
26846 case "(($ac_try" in
26847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848   *) ac_try_echo=$ac_try;;
26849 esac
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851   (eval "$ac_link") 2>conftest.er1
26852   ac_status=$?
26853   grep -v '^ *+' conftest.er1 >conftest.err
26854   rm -f conftest.er1
26855   cat conftest.err >&5
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); } &&
26858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26859   { (case "(($ac_try" in
26860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861   *) ac_try_echo=$ac_try;;
26862 esac
26863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864   (eval "$ac_try") 2>&5
26865   ac_status=$?
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); }; } &&
26868          { ac_try='test -s conftest$ac_exeext'
26869   { (case "(($ac_try" in
26870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871   *) ac_try_echo=$ac_try;;
26872 esac
26873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26874   (eval "$ac_try") 2>&5
26875   ac_status=$?
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); }; }; then
26878   ac_cv_lib_m_sin=yes
26879 else
26880   echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26882
26883         ac_cv_lib_m_sin=no
26884 fi
26885
26886 rm -f core conftest.err conftest.$ac_objext \
26887       conftest$ac_exeext conftest.$ac_ext
26888 LIBS=$ac_check_lib_save_LIBS
26889 fi
26890 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26891 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26892 if test $ac_cv_lib_m_sin = yes; then
26893   cat >>confdefs.h <<_ACEOF
26894 #define HAVE_LIBM 1
26895 _ACEOF
26896
26897   LIBS="-lm $LIBS"
26898
26899 fi
26900
26901 if test "$llvm_cv_os_type" == "MingW" ; then
26902
26903 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26904 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26905 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   ac_check_lib_save_LIBS=$LIBS
26909 LIBS="-limagehlp  $LIBS"
26910 cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916
26917
26918 int
26919 main ()
26920 {
26921 return main ();
26922   ;
26923   return 0;
26924 }
26925 _ACEOF
26926 rm -f conftest.$ac_objext conftest$ac_exeext
26927 if { (ac_try="$ac_link"
26928 case "(($ac_try" in
26929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930   *) ac_try_echo=$ac_try;;
26931 esac
26932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933   (eval "$ac_link") 2>conftest.er1
26934   ac_status=$?
26935   grep -v '^ *+' conftest.er1 >conftest.err
26936   rm -f conftest.er1
26937   cat conftest.err >&5
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } &&
26940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941   { (case "(($ac_try" in
26942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943   *) ac_try_echo=$ac_try;;
26944 esac
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946   (eval "$ac_try") 2>&5
26947   ac_status=$?
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); }; } &&
26950          { ac_try='test -s conftest$ac_exeext'
26951   { (case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956   (eval "$ac_try") 2>&5
26957   ac_status=$?
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); }; }; then
26960   ac_cv_lib_imagehlp_main=yes
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965         ac_cv_lib_imagehlp_main=no
26966 fi
26967
26968 rm -f core conftest.err conftest.$ac_objext \
26969       conftest$ac_exeext conftest.$ac_ext
26970 LIBS=$ac_check_lib_save_LIBS
26971 fi
26972 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26973 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26974 if test $ac_cv_lib_imagehlp_main = yes; then
26975   cat >>confdefs.h <<_ACEOF
26976 #define HAVE_LIBIMAGEHLP 1
26977 _ACEOF
26978
26979   LIBS="-limagehlp $LIBS"
26980
26981 fi
26982
26983
26984 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26985 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26986 if test "${ac_cv_lib_psapi_main+set}" = set; then
26987   echo $ECHO_N "(cached) $ECHO_C" >&6
26988 else
26989   ac_check_lib_save_LIBS=$LIBS
26990 LIBS="-lpsapi  $LIBS"
26991 cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997
26998
26999 int
27000 main ()
27001 {
27002 return main ();
27003   ;
27004   return 0;
27005 }
27006 _ACEOF
27007 rm -f conftest.$ac_objext conftest$ac_exeext
27008 if { (ac_try="$ac_link"
27009 case "(($ac_try" in
27010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011   *) ac_try_echo=$ac_try;;
27012 esac
27013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014   (eval "$ac_link") 2>conftest.er1
27015   ac_status=$?
27016   grep -v '^ *+' conftest.er1 >conftest.err
27017   rm -f conftest.er1
27018   cat conftest.err >&5
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); } &&
27021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022   { (case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_try") 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); }; } &&
27031          { ac_try='test -s conftest$ac_exeext'
27032   { (case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037   (eval "$ac_try") 2>&5
27038   ac_status=$?
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); }; }; then
27041   ac_cv_lib_psapi_main=yes
27042 else
27043   echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046         ac_cv_lib_psapi_main=no
27047 fi
27048
27049 rm -f core conftest.err conftest.$ac_objext \
27050       conftest$ac_exeext conftest.$ac_ext
27051 LIBS=$ac_check_lib_save_LIBS
27052 fi
27053 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27054 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27055 if test $ac_cv_lib_psapi_main = yes; then
27056   cat >>confdefs.h <<_ACEOF
27057 #define HAVE_LIBPSAPI 1
27058 _ACEOF
27059
27060   LIBS="-lpsapi $LIBS"
27061
27062 fi
27063
27064 fi
27065
27066 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27067 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27068 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27069   echo $ECHO_N "(cached) $ECHO_C" >&6
27070 else
27071   ac_func_search_save_LIBS=$LIBS
27072 cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078
27079 /* Override any GCC internal prototype to avoid an error.
27080    Use char because int might match the return type of a GCC
27081    builtin and then its argument prototype would still apply.  */
27082 #ifdef __cplusplus
27083 extern "C"
27084 #endif
27085 char lt_dlopen ();
27086 int
27087 main ()
27088 {
27089 return lt_dlopen ();
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 for ac_lib in '' ltdl; do
27095   if test -z "$ac_lib"; then
27096     ac_res="none required"
27097   else
27098     ac_res=-l$ac_lib
27099     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27100   fi
27101   rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105   *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108   (eval "$ac_link") 2>conftest.er1
27109   ac_status=$?
27110   grep -v '^ *+' conftest.er1 >conftest.err
27111   rm -f conftest.er1
27112   cat conftest.err >&5
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } &&
27115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116   { (case "(($ac_try" in
27117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118   *) ac_try_echo=$ac_try;;
27119 esac
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121   (eval "$ac_try") 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; } &&
27125          { ac_try='test -s conftest$ac_exeext'
27126   { (case "(($ac_try" in
27127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128   *) ac_try_echo=$ac_try;;
27129 esac
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131   (eval "$ac_try") 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135   ac_cv_search_lt_dlopen=$ac_res
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140
27141 fi
27142
27143 rm -f core conftest.err conftest.$ac_objext \
27144       conftest$ac_exeext
27145   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27146   break
27147 fi
27148 done
27149 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27150   :
27151 else
27152   ac_cv_search_lt_dlopen=no
27153 fi
27154 rm conftest.$ac_ext
27155 LIBS=$ac_func_search_save_LIBS
27156 fi
27157 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27158 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27159 ac_res=$ac_cv_search_lt_dlopen
27160 if test "$ac_res" != no; then
27161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27162
27163 cat >>confdefs.h <<\_ACEOF
27164 #define HAVE_LT_DLOPEN 1
27165 _ACEOF
27166
27167 else
27168   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27169                            not be available" >&5
27170 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27171                            not be available" >&2;}
27172 fi
27173
27174
27175 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27176 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27177 if test "${ac_cv_search_dlopen+set}" = set; then
27178   echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180   ac_func_search_save_LIBS=$LIBS
27181 cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h.  */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h.  */
27187
27188 /* Override any GCC internal prototype to avoid an error.
27189    Use char because int might match the return type of a GCC
27190    builtin and then its argument prototype would still apply.  */
27191 #ifdef __cplusplus
27192 extern "C"
27193 #endif
27194 char dlopen ();
27195 int
27196 main ()
27197 {
27198 return dlopen ();
27199   ;
27200   return 0;
27201 }
27202 _ACEOF
27203 for ac_lib in '' dl; do
27204   if test -z "$ac_lib"; then
27205     ac_res="none required"
27206   else
27207     ac_res=-l$ac_lib
27208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27209   fi
27210   rm -f conftest.$ac_objext conftest$ac_exeext
27211 if { (ac_try="$ac_link"
27212 case "(($ac_try" in
27213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214   *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217   (eval "$ac_link") 2>conftest.er1
27218   ac_status=$?
27219   grep -v '^ *+' conftest.er1 >conftest.err
27220   rm -f conftest.er1
27221   cat conftest.err >&5
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); } &&
27224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27225   { (case "(($ac_try" in
27226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227   *) ac_try_echo=$ac_try;;
27228 esac
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230   (eval "$ac_try") 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; } &&
27234          { ac_try='test -s conftest$ac_exeext'
27235   { (case "(($ac_try" in
27236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237   *) ac_try_echo=$ac_try;;
27238 esac
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240   (eval "$ac_try") 2>&5
27241   ac_status=$?
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); }; }; then
27244   ac_cv_search_dlopen=$ac_res
27245 else
27246   echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249
27250 fi
27251
27252 rm -f core conftest.err conftest.$ac_objext \
27253       conftest$ac_exeext
27254   if test "${ac_cv_search_dlopen+set}" = set; then
27255   break
27256 fi
27257 done
27258 if test "${ac_cv_search_dlopen+set}" = set; then
27259   :
27260 else
27261   ac_cv_search_dlopen=no
27262 fi
27263 rm conftest.$ac_ext
27264 LIBS=$ac_func_search_save_LIBS
27265 fi
27266 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27267 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27268 ac_res=$ac_cv_search_dlopen
27269 if test "$ac_res" != no; then
27270   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27271
27272 cat >>confdefs.h <<\_ACEOF
27273 #define HAVE_DLOPEN 1
27274 _ACEOF
27275
27276 else
27277   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27278 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27279 fi
27280
27281
27282 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27283 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27284 if test "${ac_cv_search_mallinfo+set}" = set; then
27285   echo $ECHO_N "(cached) $ECHO_C" >&6
27286 else
27287   ac_func_search_save_LIBS=$LIBS
27288 cat >conftest.$ac_ext <<_ACEOF
27289 /* confdefs.h.  */
27290 _ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h.  */
27294
27295 /* Override any GCC internal prototype to avoid an error.
27296    Use char because int might match the return type of a GCC
27297    builtin and then its argument prototype would still apply.  */
27298 #ifdef __cplusplus
27299 extern "C"
27300 #endif
27301 char mallinfo ();
27302 int
27303 main ()
27304 {
27305 return mallinfo ();
27306   ;
27307   return 0;
27308 }
27309 _ACEOF
27310 for ac_lib in '' malloc; do
27311   if test -z "$ac_lib"; then
27312     ac_res="none required"
27313   else
27314     ac_res=-l$ac_lib
27315     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27316   fi
27317   rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_link") 2>conftest.er1
27325   ac_status=$?
27326   grep -v '^ *+' conftest.er1 >conftest.err
27327   rm -f conftest.er1
27328   cat conftest.err >&5
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } &&
27331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27332   { (case "(($ac_try" in
27333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334   *) ac_try_echo=$ac_try;;
27335 esac
27336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337   (eval "$ac_try") 2>&5
27338   ac_status=$?
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); }; } &&
27341          { ac_try='test -s conftest$ac_exeext'
27342   { (case "(($ac_try" in
27343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344   *) ac_try_echo=$ac_try;;
27345 esac
27346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27347   (eval "$ac_try") 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; }; then
27351   ac_cv_search_mallinfo=$ac_res
27352 else
27353   echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27355
27356
27357 fi
27358
27359 rm -f core conftest.err conftest.$ac_objext \
27360       conftest$ac_exeext
27361   if test "${ac_cv_search_mallinfo+set}" = set; then
27362   break
27363 fi
27364 done
27365 if test "${ac_cv_search_mallinfo+set}" = set; then
27366   :
27367 else
27368   ac_cv_search_mallinfo=no
27369 fi
27370 rm conftest.$ac_ext
27371 LIBS=$ac_func_search_save_LIBS
27372 fi
27373 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27374 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27375 ac_res=$ac_cv_search_mallinfo
27376 if test "$ac_res" != no; then
27377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27378
27379 cat >>confdefs.h <<\_ACEOF
27380 #define HAVE_MALLINFO 1
27381 _ACEOF
27382
27383 fi
27384
27385
27386 if test "$ENABLE_THREADS" -eq 1 ; then
27387
27388 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27389 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27390 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   ac_check_lib_save_LIBS=$LIBS
27394 LIBS="-lpthread  $LIBS"
27395 cat >conftest.$ac_ext <<_ACEOF
27396 /* confdefs.h.  */
27397 _ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h.  */
27401
27402 /* Override any GCC internal prototype to avoid an error.
27403    Use char because int might match the return type of a GCC
27404    builtin and then its argument prototype would still apply.  */
27405 #ifdef __cplusplus
27406 extern "C"
27407 #endif
27408 char pthread_mutex_init ();
27409 int
27410 main ()
27411 {
27412 return pthread_mutex_init ();
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (ac_try="$ac_link"
27419 case "(($ac_try" in
27420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421   *) ac_try_echo=$ac_try;;
27422 esac
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424   (eval "$ac_link") 2>conftest.er1
27425   ac_status=$?
27426   grep -v '^ *+' conftest.er1 >conftest.err
27427   rm -f conftest.er1
27428   cat conftest.err >&5
27429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430   (exit $ac_status); } &&
27431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27432   { (case "(($ac_try" in
27433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434   *) ac_try_echo=$ac_try;;
27435 esac
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437   (eval "$ac_try") 2>&5
27438   ac_status=$?
27439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440   (exit $ac_status); }; } &&
27441          { ac_try='test -s conftest$ac_exeext'
27442   { (case "(($ac_try" in
27443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444   *) ac_try_echo=$ac_try;;
27445 esac
27446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447   (eval "$ac_try") 2>&5
27448   ac_status=$?
27449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450   (exit $ac_status); }; }; then
27451   ac_cv_lib_pthread_pthread_mutex_init=yes
27452 else
27453   echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.$ac_ext >&5
27455
27456         ac_cv_lib_pthread_pthread_mutex_init=no
27457 fi
27458
27459 rm -f core conftest.err conftest.$ac_objext \
27460       conftest$ac_exeext conftest.$ac_ext
27461 LIBS=$ac_check_lib_save_LIBS
27462 fi
27463 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27464 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27465 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27466   cat >>confdefs.h <<_ACEOF
27467 #define HAVE_LIBPTHREAD 1
27468 _ACEOF
27469
27470   LIBS="-lpthread $LIBS"
27471
27472 fi
27473
27474   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27475 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27476 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27477   echo $ECHO_N "(cached) $ECHO_C" >&6
27478 else
27479   ac_func_search_save_LIBS=$LIBS
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486
27487 /* Override any GCC internal prototype to avoid an error.
27488    Use char because int might match the return type of a GCC
27489    builtin and then its argument prototype would still apply.  */
27490 #ifdef __cplusplus
27491 extern "C"
27492 #endif
27493 char pthread_mutex_lock ();
27494 int
27495 main ()
27496 {
27497 return pthread_mutex_lock ();
27498   ;
27499   return 0;
27500 }
27501 _ACEOF
27502 for ac_lib in '' pthread; do
27503   if test -z "$ac_lib"; then
27504     ac_res="none required"
27505   else
27506     ac_res=-l$ac_lib
27507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27508   fi
27509   rm -f conftest.$ac_objext conftest$ac_exeext
27510 if { (ac_try="$ac_link"
27511 case "(($ac_try" in
27512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513   *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516   (eval "$ac_link") 2>conftest.er1
27517   ac_status=$?
27518   grep -v '^ *+' conftest.er1 >conftest.err
27519   rm -f conftest.er1
27520   cat conftest.err >&5
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); } &&
27523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27524   { (case "(($ac_try" in
27525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526   *) ac_try_echo=$ac_try;;
27527 esac
27528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529   (eval "$ac_try") 2>&5
27530   ac_status=$?
27531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532   (exit $ac_status); }; } &&
27533          { ac_try='test -s conftest$ac_exeext'
27534   { (case "(($ac_try" in
27535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536   *) ac_try_echo=$ac_try;;
27537 esac
27538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539   (eval "$ac_try") 2>&5
27540   ac_status=$?
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); }; }; then
27543   ac_cv_search_pthread_mutex_lock=$ac_res
27544 else
27545   echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27547
27548
27549 fi
27550
27551 rm -f core conftest.err conftest.$ac_objext \
27552       conftest$ac_exeext
27553   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27554   break
27555 fi
27556 done
27557 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27558   :
27559 else
27560   ac_cv_search_pthread_mutex_lock=no
27561 fi
27562 rm conftest.$ac_ext
27563 LIBS=$ac_func_search_save_LIBS
27564 fi
27565 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27566 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27567 ac_res=$ac_cv_search_pthread_mutex_lock
27568 if test "$ac_res" != no; then
27569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27570
27571 cat >>confdefs.h <<\_ACEOF
27572 #define HAVE_PTHREAD_MUTEX_LOCK 1
27573 _ACEOF
27574
27575 fi
27576
27577 fi
27578
27579
27580
27581
27582
27583
27584
27585 ac_header_dirent=no
27586 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27587   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27588 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27589 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27591   echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593   cat >conftest.$ac_ext <<_ACEOF
27594 /* confdefs.h.  */
27595 _ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h.  */
27599 #include <sys/types.h>
27600 #include <$ac_hdr>
27601
27602 int
27603 main ()
27604 {
27605 if ((DIR *) 0)
27606 return 0;
27607   ;
27608   return 0;
27609 }
27610 _ACEOF
27611 rm -f conftest.$ac_objext
27612 if { (ac_try="$ac_compile"
27613 case "(($ac_try" in
27614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615   *) ac_try_echo=$ac_try;;
27616 esac
27617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618   (eval "$ac_compile") 2>conftest.er1
27619   ac_status=$?
27620   grep -v '^ *+' conftest.er1 >conftest.err
27621   rm -f conftest.er1
27622   cat conftest.err >&5
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); } &&
27625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27626   { (case "(($ac_try" in
27627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628   *) ac_try_echo=$ac_try;;
27629 esac
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631   (eval "$ac_try") 2>&5
27632   ac_status=$?
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); }; } &&
27635          { ac_try='test -s conftest.$ac_objext'
27636   { (case "(($ac_try" in
27637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638   *) ac_try_echo=$ac_try;;
27639 esac
27640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641   (eval "$ac_try") 2>&5
27642   ac_status=$?
27643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644   (exit $ac_status); }; }; then
27645   eval "$as_ac_Header=yes"
27646 else
27647   echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27649
27650         eval "$as_ac_Header=no"
27651 fi
27652
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 ac_res=`eval echo '${'$as_ac_Header'}'`
27656                { echo "$as_me:$LINENO: result: $ac_res" >&5
27657 echo "${ECHO_T}$ac_res" >&6; }
27658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27659   cat >>confdefs.h <<_ACEOF
27660 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27661 _ACEOF
27662
27663 ac_header_dirent=$ac_hdr; break
27664 fi
27665
27666 done
27667 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27668 if test $ac_header_dirent = dirent.h; then
27669   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27671 if test "${ac_cv_search_opendir+set}" = set; then
27672   echo $ECHO_N "(cached) $ECHO_C" >&6
27673 else
27674   ac_func_search_save_LIBS=$LIBS
27675 cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681
27682 /* Override any GCC internal prototype to avoid an error.
27683    Use char because int might match the return type of a GCC
27684    builtin and then its argument prototype would still apply.  */
27685 #ifdef __cplusplus
27686 extern "C"
27687 #endif
27688 char opendir ();
27689 int
27690 main ()
27691 {
27692 return opendir ();
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 for ac_lib in '' dir; do
27698   if test -z "$ac_lib"; then
27699     ac_res="none required"
27700   else
27701     ac_res=-l$ac_lib
27702     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27703   fi
27704   rm -f conftest.$ac_objext conftest$ac_exeext
27705 if { (ac_try="$ac_link"
27706 case "(($ac_try" in
27707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708   *) ac_try_echo=$ac_try;;
27709 esac
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711   (eval "$ac_link") 2>conftest.er1
27712   ac_status=$?
27713   grep -v '^ *+' conftest.er1 >conftest.err
27714   rm -f conftest.er1
27715   cat conftest.err >&5
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); } &&
27718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27719   { (case "(($ac_try" in
27720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721   *) ac_try_echo=$ac_try;;
27722 esac
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724   (eval "$ac_try") 2>&5
27725   ac_status=$?
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); }; } &&
27728          { ac_try='test -s conftest$ac_exeext'
27729   { (case "(($ac_try" in
27730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731   *) ac_try_echo=$ac_try;;
27732 esac
27733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734   (eval "$ac_try") 2>&5
27735   ac_status=$?
27736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737   (exit $ac_status); }; }; then
27738   ac_cv_search_opendir=$ac_res
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743
27744 fi
27745
27746 rm -f core conftest.err conftest.$ac_objext \
27747       conftest$ac_exeext
27748   if test "${ac_cv_search_opendir+set}" = set; then
27749   break
27750 fi
27751 done
27752 if test "${ac_cv_search_opendir+set}" = set; then
27753   :
27754 else
27755   ac_cv_search_opendir=no
27756 fi
27757 rm conftest.$ac_ext
27758 LIBS=$ac_func_search_save_LIBS
27759 fi
27760 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27761 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27762 ac_res=$ac_cv_search_opendir
27763 if test "$ac_res" != no; then
27764   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27765
27766 fi
27767
27768 else
27769   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27770 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27771 if test "${ac_cv_search_opendir+set}" = set; then
27772   echo $ECHO_N "(cached) $ECHO_C" >&6
27773 else
27774   ac_func_search_save_LIBS=$LIBS
27775 cat >conftest.$ac_ext <<_ACEOF
27776 /* confdefs.h.  */
27777 _ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h.  */
27781
27782 /* Override any GCC internal prototype to avoid an error.
27783    Use char because int might match the return type of a GCC
27784    builtin and then its argument prototype would still apply.  */
27785 #ifdef __cplusplus
27786 extern "C"
27787 #endif
27788 char opendir ();
27789 int
27790 main ()
27791 {
27792 return opendir ();
27793   ;
27794   return 0;
27795 }
27796 _ACEOF
27797 for ac_lib in '' x; do
27798   if test -z "$ac_lib"; then
27799     ac_res="none required"
27800   else
27801     ac_res=-l$ac_lib
27802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27803   fi
27804   rm -f conftest.$ac_objext conftest$ac_exeext
27805 if { (ac_try="$ac_link"
27806 case "(($ac_try" in
27807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808   *) ac_try_echo=$ac_try;;
27809 esac
27810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27811   (eval "$ac_link") 2>conftest.er1
27812   ac_status=$?
27813   grep -v '^ *+' conftest.er1 >conftest.err
27814   rm -f conftest.er1
27815   cat conftest.err >&5
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); } &&
27818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27819   { (case "(($ac_try" in
27820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821   *) ac_try_echo=$ac_try;;
27822 esac
27823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27824   (eval "$ac_try") 2>&5
27825   ac_status=$?
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); }; } &&
27828          { ac_try='test -s conftest$ac_exeext'
27829   { (case "(($ac_try" in
27830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831   *) ac_try_echo=$ac_try;;
27832 esac
27833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834   (eval "$ac_try") 2>&5
27835   ac_status=$?
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); }; }; then
27838   ac_cv_search_opendir=$ac_res
27839 else
27840   echo "$as_me: failed program was:" >&5
27841 sed 's/^/| /' conftest.$ac_ext >&5
27842
27843
27844 fi
27845
27846 rm -f core conftest.err conftest.$ac_objext \
27847       conftest$ac_exeext
27848   if test "${ac_cv_search_opendir+set}" = set; then
27849   break
27850 fi
27851 done
27852 if test "${ac_cv_search_opendir+set}" = set; then
27853   :
27854 else
27855   ac_cv_search_opendir=no
27856 fi
27857 rm conftest.$ac_ext
27858 LIBS=$ac_func_search_save_LIBS
27859 fi
27860 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27861 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27862 ac_res=$ac_cv_search_opendir
27863 if test "$ac_res" != no; then
27864   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27865
27866 fi
27867
27868 fi
27869
27870 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27871 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27872 if test "${ac_cv_header_mmap_anon+set}" = set; then
27873   echo $ECHO_N "(cached) $ECHO_C" >&6
27874 else
27875    ac_ext=c
27876 ac_cpp='$CPP $CPPFLAGS'
27877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27880
27881   cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h.  */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h.  */
27887 #include <sys/mman.h>
27888 #include <unistd.h>
27889 #include <fcntl.h>
27890 int
27891 main ()
27892 {
27893 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 rm -f conftest.$ac_objext
27899 if { (ac_try="$ac_compile"
27900 case "(($ac_try" in
27901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902   *) ac_try_echo=$ac_try;;
27903 esac
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905   (eval "$ac_compile") 2>conftest.er1
27906   ac_status=$?
27907   grep -v '^ *+' conftest.er1 >conftest.err
27908   rm -f conftest.er1
27909   cat conftest.err >&5
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } &&
27912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913   { (case "(($ac_try" in
27914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915   *) ac_try_echo=$ac_try;;
27916 esac
27917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918   (eval "$ac_try") 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); }; } &&
27922          { ac_try='test -s conftest.$ac_objext'
27923   { (case "(($ac_try" in
27924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925   *) ac_try_echo=$ac_try;;
27926 esac
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928   (eval "$ac_try") 2>&5
27929   ac_status=$?
27930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931   (exit $ac_status); }; }; then
27932   ac_cv_header_mmap_anon=yes
27933 else
27934   echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.$ac_ext >&5
27936
27937         ac_cv_header_mmap_anon=no
27938 fi
27939
27940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27941   ac_ext=c
27942 ac_cpp='$CPP $CPPFLAGS'
27943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27946
27947
27948 fi
27949 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27950 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27951 if test "$ac_cv_header_mmap_anon" = yes; then
27952
27953 cat >>confdefs.h <<\_ACEOF
27954 #define HAVE_MMAP_ANONYMOUS 1
27955 _ACEOF
27956
27957 fi
27958
27959 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27960 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27961 if test "${ac_cv_header_stat_broken+set}" = set; then
27962   echo $ECHO_N "(cached) $ECHO_C" >&6
27963 else
27964   cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 #include <sys/types.h>
27971 #include <sys/stat.h>
27972
27973 #if defined S_ISBLK && defined S_IFDIR
27974 # if S_ISBLK (S_IFDIR)
27975 You lose.
27976 # endif
27977 #endif
27978
27979 #if defined S_ISBLK && defined S_IFCHR
27980 # if S_ISBLK (S_IFCHR)
27981 You lose.
27982 # endif
27983 #endif
27984
27985 #if defined S_ISLNK && defined S_IFREG
27986 # if S_ISLNK (S_IFREG)
27987 You lose.
27988 # endif
27989 #endif
27990
27991 #if defined S_ISSOCK && defined S_IFREG
27992 # if S_ISSOCK (S_IFREG)
27993 You lose.
27994 # endif
27995 #endif
27996
27997 _ACEOF
27998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27999   $EGREP "You lose" >/dev/null 2>&1; then
28000   ac_cv_header_stat_broken=yes
28001 else
28002   ac_cv_header_stat_broken=no
28003 fi
28004 rm -f conftest*
28005
28006 fi
28007 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28009 if test $ac_cv_header_stat_broken = yes; then
28010
28011 cat >>confdefs.h <<\_ACEOF
28012 #define STAT_MACROS_BROKEN 1
28013 _ACEOF
28014
28015 fi
28016
28017 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28018 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28019 if test "${ac_cv_header_stdc+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028 #include <stdlib.h>
28029 #include <stdarg.h>
28030 #include <string.h>
28031 #include <float.h>
28032
28033 int
28034 main ()
28035 {
28036
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext
28042 if { (ac_try="$ac_compile"
28043 case "(($ac_try" in
28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045   *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048   (eval "$ac_compile") 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } &&
28055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056   { (case "(($ac_try" in
28057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058   *) ac_try_echo=$ac_try;;
28059 esac
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061   (eval "$ac_try") 2>&5
28062   ac_status=$?
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); }; } &&
28065          { ac_try='test -s conftest.$ac_objext'
28066   { (case "(($ac_try" in
28067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068   *) ac_try_echo=$ac_try;;
28069 esac
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071   (eval "$ac_try") 2>&5
28072   ac_status=$?
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); }; }; then
28075   ac_cv_header_stdc=yes
28076 else
28077   echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28079
28080         ac_cv_header_stdc=no
28081 fi
28082
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084
28085 if test $ac_cv_header_stdc = yes; then
28086   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28087   cat >conftest.$ac_ext <<_ACEOF
28088 /* confdefs.h.  */
28089 _ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h.  */
28093 #include <string.h>
28094
28095 _ACEOF
28096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28097   $EGREP "memchr" >/dev/null 2>&1; then
28098   :
28099 else
28100   ac_cv_header_stdc=no
28101 fi
28102 rm -f conftest*
28103
28104 fi
28105
28106 if test $ac_cv_header_stdc = yes; then
28107   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28108   cat >conftest.$ac_ext <<_ACEOF
28109 /* confdefs.h.  */
28110 _ACEOF
28111 cat confdefs.h >>conftest.$ac_ext
28112 cat >>conftest.$ac_ext <<_ACEOF
28113 /* end confdefs.h.  */
28114 #include <stdlib.h>
28115
28116 _ACEOF
28117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28118   $EGREP "free" >/dev/null 2>&1; then
28119   :
28120 else
28121   ac_cv_header_stdc=no
28122 fi
28123 rm -f conftest*
28124
28125 fi
28126
28127 if test $ac_cv_header_stdc = yes; then
28128   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28129   if test "$cross_compiling" = yes; then
28130   :
28131 else
28132   cat >conftest.$ac_ext <<_ACEOF
28133 /* confdefs.h.  */
28134 _ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h.  */
28138 #include <ctype.h>
28139 #include <stdlib.h>
28140 #if ((' ' & 0x0FF) == 0x020)
28141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28143 #else
28144 # define ISLOWER(c) \
28145                    (('a' <= (c) && (c) <= 'i') \
28146                      || ('j' <= (c) && (c) <= 'r') \
28147                      || ('s' <= (c) && (c) <= 'z'))
28148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28149 #endif
28150
28151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28152 int
28153 main ()
28154 {
28155   int i;
28156   for (i = 0; i < 256; i++)
28157     if (XOR (islower (i), ISLOWER (i))
28158         || toupper (i) != TOUPPER (i))
28159       return 2;
28160   return 0;
28161 }
28162 _ACEOF
28163 rm -f conftest$ac_exeext
28164 if { (ac_try="$ac_link"
28165 case "(($ac_try" in
28166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167   *) ac_try_echo=$ac_try;;
28168 esac
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170   (eval "$ac_link") 2>&5
28171   ac_status=$?
28172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28174   { (case "(($ac_try" in
28175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176   *) ac_try_echo=$ac_try;;
28177 esac
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179   (eval "$ac_try") 2>&5
28180   ac_status=$?
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); }; }; then
28183   :
28184 else
28185   echo "$as_me: program exited with status $ac_status" >&5
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28188
28189 ( exit $ac_status )
28190 ac_cv_header_stdc=no
28191 fi
28192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28193 fi
28194
28195
28196 fi
28197 fi
28198 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28199 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28200 if test $ac_cv_header_stdc = yes; then
28201
28202 cat >>confdefs.h <<\_ACEOF
28203 #define STDC_HEADERS 1
28204 _ACEOF
28205
28206 fi
28207
28208 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28209 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28210 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28211   echo $ECHO_N "(cached) $ECHO_C" >&6
28212 else
28213   cat >conftest.$ac_ext <<_ACEOF
28214 /* confdefs.h.  */
28215 _ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h.  */
28219 #include <sys/types.h>
28220 #include <sys/wait.h>
28221 #ifndef WEXITSTATUS
28222 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28223 #endif
28224 #ifndef WIFEXITED
28225 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28226 #endif
28227
28228 int
28229 main ()
28230 {
28231   int s;
28232   wait (&s);
28233   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28234   ;
28235   return 0;
28236 }
28237 _ACEOF
28238 rm -f conftest.$ac_objext
28239 if { (ac_try="$ac_compile"
28240 case "(($ac_try" in
28241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242   *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245   (eval "$ac_compile") 2>conftest.er1
28246   ac_status=$?
28247   grep -v '^ *+' conftest.er1 >conftest.err
28248   rm -f conftest.er1
28249   cat conftest.err >&5
28250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251   (exit $ac_status); } &&
28252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28253   { (case "(($ac_try" in
28254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255   *) ac_try_echo=$ac_try;;
28256 esac
28257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28258   (eval "$ac_try") 2>&5
28259   ac_status=$?
28260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261   (exit $ac_status); }; } &&
28262          { ac_try='test -s conftest.$ac_objext'
28263   { (case "(($ac_try" in
28264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265   *) ac_try_echo=$ac_try;;
28266 esac
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268   (eval "$ac_try") 2>&5
28269   ac_status=$?
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); }; }; then
28272   ac_cv_header_sys_wait_h=yes
28273 else
28274   echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277         ac_cv_header_sys_wait_h=no
28278 fi
28279
28280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28281 fi
28282 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28283 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28284 if test $ac_cv_header_sys_wait_h = yes; then
28285
28286 cat >>confdefs.h <<\_ACEOF
28287 #define HAVE_SYS_WAIT_H 1
28288 _ACEOF
28289
28290 fi
28291
28292 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28293 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28294 if test "${ac_cv_header_time+set}" = set; then
28295   echo $ECHO_N "(cached) $ECHO_C" >&6
28296 else
28297   cat >conftest.$ac_ext <<_ACEOF
28298 /* confdefs.h.  */
28299 _ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h.  */
28303 #include <sys/types.h>
28304 #include <sys/time.h>
28305 #include <time.h>
28306
28307 int
28308 main ()
28309 {
28310 if ((struct tm *) 0)
28311 return 0;
28312   ;
28313   return 0;
28314 }
28315 _ACEOF
28316 rm -f conftest.$ac_objext
28317 if { (ac_try="$ac_compile"
28318 case "(($ac_try" in
28319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320   *) ac_try_echo=$ac_try;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323   (eval "$ac_compile") 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } &&
28330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28340          { ac_try='test -s conftest.$ac_objext'
28341   { (case "(($ac_try" in
28342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343   *) ac_try_echo=$ac_try;;
28344 esac
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346   (eval "$ac_try") 2>&5
28347   ac_status=$?
28348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); }; }; then
28350   ac_cv_header_time=yes
28351 else
28352   echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28354
28355         ac_cv_header_time=no
28356 fi
28357
28358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359 fi
28360 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28361 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28362 if test $ac_cv_header_time = yes; then
28363
28364 cat >>confdefs.h <<\_ACEOF
28365 #define TIME_WITH_SYS_TIME 1
28366 _ACEOF
28367
28368 fi
28369
28370
28371
28372
28373
28374
28375
28376
28377 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28378 do
28379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28381   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 fi
28386 ac_res=`eval echo '${'$as_ac_Header'}'`
28387                { echo "$as_me:$LINENO: result: $ac_res" >&5
28388 echo "${ECHO_T}$ac_res" >&6; }
28389 else
28390   # Is the header compilable?
28391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28393 cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399 $ac_includes_default
28400 #include <$ac_header>
28401 _ACEOF
28402 rm -f conftest.$ac_objext
28403 if { (ac_try="$ac_compile"
28404 case "(($ac_try" in
28405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406   *) ac_try_echo=$ac_try;;
28407 esac
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409   (eval "$ac_compile") 2>conftest.er1
28410   ac_status=$?
28411   grep -v '^ *+' conftest.er1 >conftest.err
28412   rm -f conftest.er1
28413   cat conftest.err >&5
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); } &&
28416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28417   { (case "(($ac_try" in
28418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419   *) ac_try_echo=$ac_try;;
28420 esac
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422   (eval "$ac_try") 2>&5
28423   ac_status=$?
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); }; } &&
28426          { ac_try='test -s conftest.$ac_objext'
28427   { (case "(($ac_try" in
28428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429   *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432   (eval "$ac_try") 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; }; then
28436   ac_header_compiler=yes
28437 else
28438   echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28440
28441         ac_header_compiler=no
28442 fi
28443
28444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28446 echo "${ECHO_T}$ac_header_compiler" >&6; }
28447
28448 # Is the header present?
28449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28451 cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h.  */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h.  */
28457 #include <$ac_header>
28458 _ACEOF
28459 if { (ac_try="$ac_cpp conftest.$ac_ext"
28460 case "(($ac_try" in
28461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462   *) ac_try_echo=$ac_try;;
28463 esac
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28466   ac_status=$?
28467   grep -v '^ *+' conftest.er1 >conftest.err
28468   rm -f conftest.er1
28469   cat conftest.err >&5
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); } >/dev/null; then
28472   if test -s conftest.err; then
28473     ac_cpp_err=$ac_c_preproc_warn_flag
28474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28475   else
28476     ac_cpp_err=
28477   fi
28478 else
28479   ac_cpp_err=yes
28480 fi
28481 if test -z "$ac_cpp_err"; then
28482   ac_header_preproc=yes
28483 else
28484   echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28486
28487   ac_header_preproc=no
28488 fi
28489
28490 rm -f conftest.err conftest.$ac_ext
28491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28492 echo "${ECHO_T}$ac_header_preproc" >&6; }
28493
28494 # So?  What about this header?
28495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28496   yes:no: )
28497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28501     ac_header_preproc=yes
28502     ;;
28503   no:yes:* )
28504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28516     ( cat <<\_ASBOX
28517 ## ----------------------------------- ##
28518 ## Report this to llvmbugs@cs.uiuc.edu ##
28519 ## ----------------------------------- ##
28520 _ASBOX
28521      ) | sed "s/^/$as_me: WARNING:     /" >&2
28522     ;;
28523 esac
28524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527   echo $ECHO_N "(cached) $ECHO_C" >&6
28528 else
28529   eval "$as_ac_Header=\$ac_header_preproc"
28530 fi
28531 ac_res=`eval echo '${'$as_ac_Header'}'`
28532                { echo "$as_me:$LINENO: result: $ac_res" >&5
28533 echo "${ECHO_T}$ac_res" >&6; }
28534
28535 fi
28536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28537   cat >>confdefs.h <<_ACEOF
28538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28539 _ACEOF
28540
28541 fi
28542
28543 done
28544
28545
28546
28547
28548
28549
28550
28551 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28552 do
28553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 fi
28560 ac_res=`eval echo '${'$as_ac_Header'}'`
28561                { echo "$as_me:$LINENO: result: $ac_res" >&5
28562 echo "${ECHO_T}$ac_res" >&6; }
28563 else
28564   # Is the header compilable?
28565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28567 cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573 $ac_includes_default
28574 #include <$ac_header>
28575 _ACEOF
28576 rm -f conftest.$ac_objext
28577 if { (ac_try="$ac_compile"
28578 case "(($ac_try" in
28579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580   *) ac_try_echo=$ac_try;;
28581 esac
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583   (eval "$ac_compile") 2>conftest.er1
28584   ac_status=$?
28585   grep -v '^ *+' conftest.er1 >conftest.err
28586   rm -f conftest.er1
28587   cat conftest.err >&5
28588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589   (exit $ac_status); } &&
28590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591   { (case "(($ac_try" in
28592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593   *) ac_try_echo=$ac_try;;
28594 esac
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596   (eval "$ac_try") 2>&5
28597   ac_status=$?
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); }; } &&
28600          { ac_try='test -s conftest.$ac_objext'
28601   { (case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_try") 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); }; }; then
28610   ac_header_compiler=yes
28611 else
28612   echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614
28615         ac_header_compiler=no
28616 fi
28617
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28620 echo "${ECHO_T}$ac_header_compiler" >&6; }
28621
28622 # Is the header present?
28623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28625 cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 #include <$ac_header>
28632 _ACEOF
28633 if { (ac_try="$ac_cpp conftest.$ac_ext"
28634 case "(($ac_try" in
28635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636   *) ac_try_echo=$ac_try;;
28637 esac
28638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28640   ac_status=$?
28641   grep -v '^ *+' conftest.er1 >conftest.err
28642   rm -f conftest.er1
28643   cat conftest.err >&5
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); } >/dev/null; then
28646   if test -s conftest.err; then
28647     ac_cpp_err=$ac_c_preproc_warn_flag
28648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28649   else
28650     ac_cpp_err=
28651   fi
28652 else
28653   ac_cpp_err=yes
28654 fi
28655 if test -z "$ac_cpp_err"; then
28656   ac_header_preproc=yes
28657 else
28658   echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28660
28661   ac_header_preproc=no
28662 fi
28663
28664 rm -f conftest.err conftest.$ac_ext
28665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28666 echo "${ECHO_T}$ac_header_preproc" >&6; }
28667
28668 # So?  What about this header?
28669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28670   yes:no: )
28671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28675     ac_header_preproc=yes
28676     ;;
28677   no:yes:* )
28678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28690     ( cat <<\_ASBOX
28691 ## ----------------------------------- ##
28692 ## Report this to llvmbugs@cs.uiuc.edu ##
28693 ## ----------------------------------- ##
28694 _ASBOX
28695      ) | sed "s/^/$as_me: WARNING:     /" >&2
28696     ;;
28697 esac
28698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28701   echo $ECHO_N "(cached) $ECHO_C" >&6
28702 else
28703   eval "$as_ac_Header=\$ac_header_preproc"
28704 fi
28705 ac_res=`eval echo '${'$as_ac_Header'}'`
28706                { echo "$as_me:$LINENO: result: $ac_res" >&5
28707 echo "${ECHO_T}$ac_res" >&6; }
28708
28709 fi
28710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28711   cat >>confdefs.h <<_ACEOF
28712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28713 _ACEOF
28714
28715 fi
28716
28717 done
28718
28719
28720
28721
28722
28723
28724 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28725 do
28726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731   echo $ECHO_N "(cached) $ECHO_C" >&6
28732 fi
28733 ac_res=`eval echo '${'$as_ac_Header'}'`
28734                { echo "$as_me:$LINENO: result: $ac_res" >&5
28735 echo "${ECHO_T}$ac_res" >&6; }
28736 else
28737   # Is the header compilable?
28738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28740 cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h.  */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h.  */
28746 $ac_includes_default
28747 #include <$ac_header>
28748 _ACEOF
28749 rm -f conftest.$ac_objext
28750 if { (ac_try="$ac_compile"
28751 case "(($ac_try" in
28752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753   *) ac_try_echo=$ac_try;;
28754 esac
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756   (eval "$ac_compile") 2>conftest.er1
28757   ac_status=$?
28758   grep -v '^ *+' conftest.er1 >conftest.err
28759   rm -f conftest.er1
28760   cat conftest.err >&5
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); } &&
28763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764   { (case "(($ac_try" in
28765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766   *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769   (eval "$ac_try") 2>&5
28770   ac_status=$?
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); }; } &&
28773          { ac_try='test -s conftest.$ac_objext'
28774   { (case "(($ac_try" in
28775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776   *) ac_try_echo=$ac_try;;
28777 esac
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779   (eval "$ac_try") 2>&5
28780   ac_status=$?
28781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782   (exit $ac_status); }; }; then
28783   ac_header_compiler=yes
28784 else
28785   echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788         ac_header_compiler=no
28789 fi
28790
28791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793 echo "${ECHO_T}$ac_header_compiler" >&6; }
28794
28795 # Is the header present?
28796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28798 cat >conftest.$ac_ext <<_ACEOF
28799 /* confdefs.h.  */
28800 _ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h.  */
28804 #include <$ac_header>
28805 _ACEOF
28806 if { (ac_try="$ac_cpp conftest.$ac_ext"
28807 case "(($ac_try" in
28808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809   *) ac_try_echo=$ac_try;;
28810 esac
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28813   ac_status=$?
28814   grep -v '^ *+' conftest.er1 >conftest.err
28815   rm -f conftest.er1
28816   cat conftest.err >&5
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); } >/dev/null; then
28819   if test -s conftest.err; then
28820     ac_cpp_err=$ac_c_preproc_warn_flag
28821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28822   else
28823     ac_cpp_err=
28824   fi
28825 else
28826   ac_cpp_err=yes
28827 fi
28828 if test -z "$ac_cpp_err"; then
28829   ac_header_preproc=yes
28830 else
28831   echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28833
28834   ac_header_preproc=no
28835 fi
28836
28837 rm -f conftest.err conftest.$ac_ext
28838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839 echo "${ECHO_T}$ac_header_preproc" >&6; }
28840
28841 # So?  What about this header?
28842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843   yes:no: )
28844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28848     ac_header_preproc=yes
28849     ;;
28850   no:yes:* )
28851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28863     ( cat <<\_ASBOX
28864 ## ----------------------------------- ##
28865 ## Report this to llvmbugs@cs.uiuc.edu ##
28866 ## ----------------------------------- ##
28867 _ASBOX
28868      ) | sed "s/^/$as_me: WARNING:     /" >&2
28869     ;;
28870 esac
28871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28874   echo $ECHO_N "(cached) $ECHO_C" >&6
28875 else
28876   eval "$as_ac_Header=\$ac_header_preproc"
28877 fi
28878 ac_res=`eval echo '${'$as_ac_Header'}'`
28879                { echo "$as_me:$LINENO: result: $ac_res" >&5
28880 echo "${ECHO_T}$ac_res" >&6; }
28881
28882 fi
28883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884   cat >>confdefs.h <<_ACEOF
28885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28886 _ACEOF
28887
28888 fi
28889
28890 done
28891
28892
28893
28894
28895 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28896 do
28897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28899   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28902   echo $ECHO_N "(cached) $ECHO_C" >&6
28903 fi
28904 ac_res=`eval echo '${'$as_ac_Header'}'`
28905                { echo "$as_me:$LINENO: result: $ac_res" >&5
28906 echo "${ECHO_T}$ac_res" >&6; }
28907 else
28908   # Is the header compilable?
28909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28911 cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917 $ac_includes_default
28918 #include <$ac_header>
28919 _ACEOF
28920 rm -f conftest.$ac_objext
28921 if { (ac_try="$ac_compile"
28922 case "(($ac_try" in
28923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924   *) ac_try_echo=$ac_try;;
28925 esac
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927   (eval "$ac_compile") 2>conftest.er1
28928   ac_status=$?
28929   grep -v '^ *+' conftest.er1 >conftest.err
28930   rm -f conftest.er1
28931   cat conftest.err >&5
28932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933   (exit $ac_status); } &&
28934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28935   { (case "(($ac_try" in
28936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937   *) ac_try_echo=$ac_try;;
28938 esac
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940   (eval "$ac_try") 2>&5
28941   ac_status=$?
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); }; } &&
28944          { ac_try='test -s conftest.$ac_objext'
28945   { (case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_try") 2>&5
28951   ac_status=$?
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); }; }; then
28954   ac_header_compiler=yes
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959         ac_header_compiler=no
28960 fi
28961
28962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28964 echo "${ECHO_T}$ac_header_compiler" >&6; }
28965
28966 # Is the header present?
28967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28969 cat >conftest.$ac_ext <<_ACEOF
28970 /* confdefs.h.  */
28971 _ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h.  */
28975 #include <$ac_header>
28976 _ACEOF
28977 if { (ac_try="$ac_cpp conftest.$ac_ext"
28978 case "(($ac_try" in
28979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980   *) ac_try_echo=$ac_try;;
28981 esac
28982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28984   ac_status=$?
28985   grep -v '^ *+' conftest.er1 >conftest.err
28986   rm -f conftest.er1
28987   cat conftest.err >&5
28988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989   (exit $ac_status); } >/dev/null; then
28990   if test -s conftest.err; then
28991     ac_cpp_err=$ac_c_preproc_warn_flag
28992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28993   else
28994     ac_cpp_err=
28995   fi
28996 else
28997   ac_cpp_err=yes
28998 fi
28999 if test -z "$ac_cpp_err"; then
29000   ac_header_preproc=yes
29001 else
29002   echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29004
29005   ac_header_preproc=no
29006 fi
29007
29008 rm -f conftest.err conftest.$ac_ext
29009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29010 echo "${ECHO_T}$ac_header_preproc" >&6; }
29011
29012 # So?  What about this header?
29013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29014   yes:no: )
29015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29019     ac_header_preproc=yes
29020     ;;
29021   no:yes:* )
29022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29034     ( cat <<\_ASBOX
29035 ## ----------------------------------- ##
29036 ## Report this to llvmbugs@cs.uiuc.edu ##
29037 ## ----------------------------------- ##
29038 _ASBOX
29039      ) | sed "s/^/$as_me: WARNING:     /" >&2
29040     ;;
29041 esac
29042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29045   echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047   eval "$as_ac_Header=\$ac_header_preproc"
29048 fi
29049 ac_res=`eval echo '${'$as_ac_Header'}'`
29050                { echo "$as_me:$LINENO: result: $ac_res" >&5
29051 echo "${ECHO_T}$ac_res" >&6; }
29052
29053 fi
29054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29055   cat >>confdefs.h <<_ACEOF
29056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29057 _ACEOF
29058
29059 fi
29060
29061 done
29062
29063 if test "$ENABLE_THREADS" -eq 1 ; then
29064   if test "${ac_cv_header_pthread_h+set}" = set; then
29065   { echo "$as_me:$LINENO: checking for pthread.h" >&5
29066 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29067 if test "${ac_cv_header_pthread_h+set}" = set; then
29068   echo $ECHO_N "(cached) $ECHO_C" >&6
29069 fi
29070 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29071 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29072 else
29073   # Is the header compilable?
29074 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29075 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29076 cat >conftest.$ac_ext <<_ACEOF
29077 /* confdefs.h.  */
29078 _ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h.  */
29082 $ac_includes_default
29083 #include <pthread.h>
29084 _ACEOF
29085 rm -f conftest.$ac_objext
29086 if { (ac_try="$ac_compile"
29087 case "(($ac_try" in
29088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089   *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092   (eval "$ac_compile") 2>conftest.er1
29093   ac_status=$?
29094   grep -v '^ *+' conftest.er1 >conftest.err
29095   rm -f conftest.er1
29096   cat conftest.err >&5
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); } &&
29099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29100   { (case "(($ac_try" in
29101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102   *) ac_try_echo=$ac_try;;
29103 esac
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105   (eval "$ac_try") 2>&5
29106   ac_status=$?
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); }; } &&
29109          { ac_try='test -s conftest.$ac_objext'
29110   { (case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_try") 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); }; }; then
29119   ac_header_compiler=yes
29120 else
29121   echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29123
29124         ac_header_compiler=no
29125 fi
29126
29127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29129 echo "${ECHO_T}$ac_header_compiler" >&6; }
29130
29131 # Is the header present?
29132 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29133 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29134 cat >conftest.$ac_ext <<_ACEOF
29135 /* confdefs.h.  */
29136 _ACEOF
29137 cat confdefs.h >>conftest.$ac_ext
29138 cat >>conftest.$ac_ext <<_ACEOF
29139 /* end confdefs.h.  */
29140 #include <pthread.h>
29141 _ACEOF
29142 if { (ac_try="$ac_cpp conftest.$ac_ext"
29143 case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } >/dev/null; then
29155   if test -s conftest.err; then
29156     ac_cpp_err=$ac_c_preproc_warn_flag
29157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29158   else
29159     ac_cpp_err=
29160   fi
29161 else
29162   ac_cpp_err=yes
29163 fi
29164 if test -z "$ac_cpp_err"; then
29165   ac_header_preproc=yes
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170   ac_header_preproc=no
29171 fi
29172
29173 rm -f conftest.err conftest.$ac_ext
29174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29175 echo "${ECHO_T}$ac_header_preproc" >&6; }
29176
29177 # So?  What about this header?
29178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29179   yes:no: )
29180     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29181 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29182     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29183 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29184     ac_header_preproc=yes
29185     ;;
29186   no:yes:* )
29187     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29188 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29189     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29190 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29191     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29192 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29193     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29194 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29195     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29196 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29197     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29198 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29199     ( cat <<\_ASBOX
29200 ## ----------------------------------- ##
29201 ## Report this to llvmbugs@cs.uiuc.edu ##
29202 ## ----------------------------------- ##
29203 _ASBOX
29204      ) | sed "s/^/$as_me: WARNING:     /" >&2
29205     ;;
29206 esac
29207 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29208 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29209 if test "${ac_cv_header_pthread_h+set}" = set; then
29210   echo $ECHO_N "(cached) $ECHO_C" >&6
29211 else
29212   ac_cv_header_pthread_h=$ac_header_preproc
29213 fi
29214 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29215 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29216
29217 fi
29218 if test $ac_cv_header_pthread_h = yes; then
29219   HAVE_PTHREAD=1
29220
29221 else
29222   HAVE_PTHREAD=0
29223
29224 fi
29225
29226
29227 else
29228   HAVE_PTHREAD=0
29229
29230 fi
29231
29232
29233
29234   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29235 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29236 if test "${ac_cv_huge_val_sanity+set}" = set; then
29237   echo $ECHO_N "(cached) $ECHO_C" >&6
29238 else
29239
29240     ac_ext=cpp
29241 ac_cpp='$CXXCPP $CPPFLAGS'
29242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29245
29246     CXXFLAGS=-pedantic
29247     if test "$cross_compiling" = yes; then
29248   ac_cv_huge_val_sanity=yes
29249 else
29250   cat >conftest.$ac_ext <<_ACEOF
29251 /* confdefs.h.  */
29252 _ACEOF
29253 cat confdefs.h >>conftest.$ac_ext
29254 cat >>conftest.$ac_ext <<_ACEOF
29255 /* end confdefs.h.  */
29256 #include <math.h>
29257 int
29258 main ()
29259 {
29260 double x = HUGE_VAL; return x != x;
29261   ;
29262   return 0;
29263 }
29264 _ACEOF
29265 rm -f conftest$ac_exeext
29266 if { (ac_try="$ac_link"
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_link") 2>&5
29273   ac_status=$?
29274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29276   { (case "(($ac_try" in
29277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278   *) ac_try_echo=$ac_try;;
29279 esac
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281   (eval "$ac_try") 2>&5
29282   ac_status=$?
29283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284   (exit $ac_status); }; }; then
29285   ac_cv_huge_val_sanity=yes
29286 else
29287   echo "$as_me: program exited with status $ac_status" >&5
29288 echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29290
29291 ( exit $ac_status )
29292 ac_cv_huge_val_sanity=no
29293 fi
29294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29295 fi
29296
29297
29298     ac_ext=c
29299 ac_cpp='$CPP $CPPFLAGS'
29300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29303
29304
29305 fi
29306 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29307 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29308   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29309
29310
29311 { echo "$as_me:$LINENO: checking for pid_t" >&5
29312 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29313 if test "${ac_cv_type_pid_t+set}" = set; then
29314   echo $ECHO_N "(cached) $ECHO_C" >&6
29315 else
29316   cat >conftest.$ac_ext <<_ACEOF
29317 /* confdefs.h.  */
29318 _ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h.  */
29322 $ac_includes_default
29323 typedef pid_t ac__type_new_;
29324 int
29325 main ()
29326 {
29327 if ((ac__type_new_ *) 0)
29328   return 0;
29329 if (sizeof (ac__type_new_))
29330   return 0;
29331   ;
29332   return 0;
29333 }
29334 _ACEOF
29335 rm -f conftest.$ac_objext
29336 if { (ac_try="$ac_compile"
29337 case "(($ac_try" in
29338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339   *) ac_try_echo=$ac_try;;
29340 esac
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342   (eval "$ac_compile") 2>conftest.er1
29343   ac_status=$?
29344   grep -v '^ *+' conftest.er1 >conftest.err
29345   rm -f conftest.er1
29346   cat conftest.err >&5
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); } &&
29349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29350   { (case "(($ac_try" in
29351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352   *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355   (eval "$ac_try") 2>&5
29356   ac_status=$?
29357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358   (exit $ac_status); }; } &&
29359          { ac_try='test -s conftest.$ac_objext'
29360   { (case "(($ac_try" in
29361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362   *) ac_try_echo=$ac_try;;
29363 esac
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365   (eval "$ac_try") 2>&5
29366   ac_status=$?
29367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368   (exit $ac_status); }; }; then
29369   ac_cv_type_pid_t=yes
29370 else
29371   echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29373
29374         ac_cv_type_pid_t=no
29375 fi
29376
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 fi
29379 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29380 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29381 if test $ac_cv_type_pid_t = yes; then
29382   :
29383 else
29384
29385 cat >>confdefs.h <<_ACEOF
29386 #define pid_t int
29387 _ACEOF
29388
29389 fi
29390
29391 { echo "$as_me:$LINENO: checking for size_t" >&5
29392 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29393 if test "${ac_cv_type_size_t+set}" = set; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396   cat >conftest.$ac_ext <<_ACEOF
29397 /* confdefs.h.  */
29398 _ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h.  */
29402 $ac_includes_default
29403 typedef size_t ac__type_new_;
29404 int
29405 main ()
29406 {
29407 if ((ac__type_new_ *) 0)
29408   return 0;
29409 if (sizeof (ac__type_new_))
29410   return 0;
29411   ;
29412   return 0;
29413 }
29414 _ACEOF
29415 rm -f conftest.$ac_objext
29416 if { (ac_try="$ac_compile"
29417 case "(($ac_try" in
29418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419   *) ac_try_echo=$ac_try;;
29420 esac
29421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29422   (eval "$ac_compile") 2>conftest.er1
29423   ac_status=$?
29424   grep -v '^ *+' conftest.er1 >conftest.err
29425   rm -f conftest.er1
29426   cat conftest.err >&5
29427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428   (exit $ac_status); } &&
29429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29430   { (case "(($ac_try" in
29431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432   *) ac_try_echo=$ac_try;;
29433 esac
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435   (eval "$ac_try") 2>&5
29436   ac_status=$?
29437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438   (exit $ac_status); }; } &&
29439          { ac_try='test -s conftest.$ac_objext'
29440   { (case "(($ac_try" in
29441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442   *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445   (eval "$ac_try") 2>&5
29446   ac_status=$?
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); }; }; then
29449   ac_cv_type_size_t=yes
29450 else
29451   echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.$ac_ext >&5
29453
29454         ac_cv_type_size_t=no
29455 fi
29456
29457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29458 fi
29459 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29460 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29461 if test $ac_cv_type_size_t = yes; then
29462   :
29463 else
29464
29465 cat >>confdefs.h <<_ACEOF
29466 #define size_t unsigned int
29467 _ACEOF
29468
29469 fi
29470
29471 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29472 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29473 if test "${ac_cv_type_signal+set}" = set; then
29474   echo $ECHO_N "(cached) $ECHO_C" >&6
29475 else
29476   cat >conftest.$ac_ext <<_ACEOF
29477 /* confdefs.h.  */
29478 _ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h.  */
29482 #include <sys/types.h>
29483 #include <signal.h>
29484
29485 int
29486 main ()
29487 {
29488 return *(signal (0, 0)) (0) == 1;
29489   ;
29490   return 0;
29491 }
29492 _ACEOF
29493 rm -f conftest.$ac_objext
29494 if { (ac_try="$ac_compile"
29495 case "(($ac_try" in
29496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497   *) ac_try_echo=$ac_try;;
29498 esac
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500   (eval "$ac_compile") 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } &&
29507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508   { (case "(($ac_try" in
29509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510   *) ac_try_echo=$ac_try;;
29511 esac
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513   (eval "$ac_try") 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; } &&
29517          { ac_try='test -s conftest.$ac_objext'
29518   { (case "(($ac_try" in
29519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520   *) ac_try_echo=$ac_try;;
29521 esac
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523   (eval "$ac_try") 2>&5
29524   ac_status=$?
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); }; }; then
29527   ac_cv_type_signal=int
29528 else
29529   echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29531
29532         ac_cv_type_signal=void
29533 fi
29534
29535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29536 fi
29537 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29538 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29539
29540 cat >>confdefs.h <<_ACEOF
29541 #define RETSIGTYPE $ac_cv_type_signal
29542 _ACEOF
29543
29544
29545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29547 if test "${ac_cv_struct_tm+set}" = set; then
29548   echo $ECHO_N "(cached) $ECHO_C" >&6
29549 else
29550   cat >conftest.$ac_ext <<_ACEOF
29551 /* confdefs.h.  */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h.  */
29556 #include <sys/types.h>
29557 #include <time.h>
29558
29559 int
29560 main ()
29561 {
29562 struct tm *tp; tp->tm_sec;
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_compile") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } &&
29581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29582   { (case "(($ac_try" in
29583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584   *) ac_try_echo=$ac_try;;
29585 esac
29586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587   (eval "$ac_try") 2>&5
29588   ac_status=$?
29589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590   (exit $ac_status); }; } &&
29591          { ac_try='test -s conftest.$ac_objext'
29592   { (case "(($ac_try" in
29593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594   *) ac_try_echo=$ac_try;;
29595 esac
29596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597   (eval "$ac_try") 2>&5
29598   ac_status=$?
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); }; }; then
29601   ac_cv_struct_tm=time.h
29602 else
29603   echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29605
29606         ac_cv_struct_tm=sys/time.h
29607 fi
29608
29609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29610 fi
29611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29613 if test $ac_cv_struct_tm = sys/time.h; then
29614
29615 cat >>confdefs.h <<\_ACEOF
29616 #define TM_IN_SYS_TIME 1
29617 _ACEOF
29618
29619 fi
29620
29621 { echo "$as_me:$LINENO: checking for int64_t" >&5
29622 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29623 if test "${ac_cv_type_int64_t+set}" = set; then
29624   echo $ECHO_N "(cached) $ECHO_C" >&6
29625 else
29626   cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 $ac_includes_default
29633 typedef int64_t ac__type_new_;
29634 int
29635 main ()
29636 {
29637 if ((ac__type_new_ *) 0)
29638   return 0;
29639 if (sizeof (ac__type_new_))
29640   return 0;
29641   ;
29642   return 0;
29643 }
29644 _ACEOF
29645 rm -f conftest.$ac_objext
29646 if { (ac_try="$ac_compile"
29647 case "(($ac_try" in
29648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649   *) ac_try_echo=$ac_try;;
29650 esac
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652   (eval "$ac_compile") 2>conftest.er1
29653   ac_status=$?
29654   grep -v '^ *+' conftest.er1 >conftest.err
29655   rm -f conftest.er1
29656   cat conftest.err >&5
29657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658   (exit $ac_status); } &&
29659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29660   { (case "(($ac_try" in
29661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662   *) ac_try_echo=$ac_try;;
29663 esac
29664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665   (eval "$ac_try") 2>&5
29666   ac_status=$?
29667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); }; } &&
29669          { ac_try='test -s conftest.$ac_objext'
29670   { (case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_try") 2>&5
29676   ac_status=$?
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); }; }; then
29679   ac_cv_type_int64_t=yes
29680 else
29681   echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29683
29684         ac_cv_type_int64_t=no
29685 fi
29686
29687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29688 fi
29689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29691 if test $ac_cv_type_int64_t = yes; then
29692
29693 cat >>confdefs.h <<_ACEOF
29694 #define HAVE_INT64_T 1
29695 _ACEOF
29696
29697
29698 else
29699   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29700 echo "$as_me: error: Type int64_t required but not found" >&2;}
29701    { (exit 1); exit 1; }; }
29702 fi
29703
29704 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29705 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29706 if test "${ac_cv_type_uint64_t+set}" = set; then
29707   echo $ECHO_N "(cached) $ECHO_C" >&6
29708 else
29709   cat >conftest.$ac_ext <<_ACEOF
29710 /* confdefs.h.  */
29711 _ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h.  */
29715 $ac_includes_default
29716 typedef uint64_t ac__type_new_;
29717 int
29718 main ()
29719 {
29720 if ((ac__type_new_ *) 0)
29721   return 0;
29722 if (sizeof (ac__type_new_))
29723   return 0;
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext
29729 if { (ac_try="$ac_compile"
29730 case "(($ac_try" in
29731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732   *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735   (eval "$ac_compile") 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } &&
29742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29743   { (case "(($ac_try" in
29744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745   *) ac_try_echo=$ac_try;;
29746 esac
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748   (eval "$ac_try") 2>&5
29749   ac_status=$?
29750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); }; } &&
29752          { ac_try='test -s conftest.$ac_objext'
29753   { (case "(($ac_try" in
29754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755   *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758   (eval "$ac_try") 2>&5
29759   ac_status=$?
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); }; }; then
29762   ac_cv_type_uint64_t=yes
29763 else
29764   echo "$as_me: failed program was:" >&5
29765 sed 's/^/| /' conftest.$ac_ext >&5
29766
29767         ac_cv_type_uint64_t=no
29768 fi
29769
29770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29771 fi
29772 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29773 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29774 if test $ac_cv_type_uint64_t = yes; then
29775
29776 cat >>confdefs.h <<_ACEOF
29777 #define HAVE_UINT64_T 1
29778 _ACEOF
29779
29780
29781 else
29782   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29783 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29784 if test "${ac_cv_type_u_int64_t+set}" = set; then
29785   echo $ECHO_N "(cached) $ECHO_C" >&6
29786 else
29787   cat >conftest.$ac_ext <<_ACEOF
29788 /* confdefs.h.  */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h.  */
29793 $ac_includes_default
29794 typedef u_int64_t ac__type_new_;
29795 int
29796 main ()
29797 {
29798 if ((ac__type_new_ *) 0)
29799   return 0;
29800 if (sizeof (ac__type_new_))
29801   return 0;
29802   ;
29803   return 0;
29804 }
29805 _ACEOF
29806 rm -f conftest.$ac_objext
29807 if { (ac_try="$ac_compile"
29808 case "(($ac_try" in
29809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810   *) ac_try_echo=$ac_try;;
29811 esac
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813   (eval "$ac_compile") 2>conftest.er1
29814   ac_status=$?
29815   grep -v '^ *+' conftest.er1 >conftest.err
29816   rm -f conftest.er1
29817   cat conftest.err >&5
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); } &&
29820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821   { (case "(($ac_try" in
29822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823   *) ac_try_echo=$ac_try;;
29824 esac
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826   (eval "$ac_try") 2>&5
29827   ac_status=$?
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); }; } &&
29830          { ac_try='test -s conftest.$ac_objext'
29831   { (case "(($ac_try" in
29832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833   *) ac_try_echo=$ac_try;;
29834 esac
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836   (eval "$ac_try") 2>&5
29837   ac_status=$?
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); }; }; then
29840   ac_cv_type_u_int64_t=yes
29841 else
29842   echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29844
29845         ac_cv_type_u_int64_t=no
29846 fi
29847
29848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29849 fi
29850 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29851 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29852 if test $ac_cv_type_u_int64_t = yes; then
29853
29854 cat >>confdefs.h <<_ACEOF
29855 #define HAVE_U_INT64_T 1
29856 _ACEOF
29857
29858
29859 else
29860   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29861 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29862    { (exit 1); exit 1; }; }
29863 fi
29864
29865 fi
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29877 do
29878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29882   echo $ECHO_N "(cached) $ECHO_C" >&6
29883 else
29884   cat >conftest.$ac_ext <<_ACEOF
29885 /* confdefs.h.  */
29886 _ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h.  */
29890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29892 #define $ac_func innocuous_$ac_func
29893
29894 /* System header to define __stub macros and hopefully few prototypes,
29895     which can conflict with char $ac_func (); below.
29896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29897     <limits.h> exists even on freestanding compilers.  */
29898
29899 #ifdef __STDC__
29900 # include <limits.h>
29901 #else
29902 # include <assert.h>
29903 #endif
29904
29905 #undef $ac_func
29906
29907 /* Override any GCC internal prototype to avoid an error.
29908    Use char because int might match the return type of a GCC
29909    builtin and then its argument prototype would still apply.  */
29910 #ifdef __cplusplus
29911 extern "C"
29912 #endif
29913 char $ac_func ();
29914 /* The GNU C library defines this for functions which it implements
29915     to always fail with ENOSYS.  Some functions are actually named
29916     something starting with __ and the normal name is an alias.  */
29917 #if defined __stub_$ac_func || defined __stub___$ac_func
29918 choke me
29919 #endif
29920
29921 int
29922 main ()
29923 {
29924 return $ac_func ();
29925   ;
29926   return 0;
29927 }
29928 _ACEOF
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (ac_try="$ac_link"
29931 case "(($ac_try" in
29932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933   *) ac_try_echo=$ac_try;;
29934 esac
29935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936   (eval "$ac_link") 2>conftest.er1
29937   ac_status=$?
29938   grep -v '^ *+' conftest.er1 >conftest.err
29939   rm -f conftest.er1
29940   cat conftest.err >&5
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); } &&
29943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944   { (case "(($ac_try" in
29945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946   *) ac_try_echo=$ac_try;;
29947 esac
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949   (eval "$ac_try") 2>&5
29950   ac_status=$?
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); }; } &&
29953          { ac_try='test -s conftest$ac_exeext'
29954   { (case "(($ac_try" in
29955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956   *) ac_try_echo=$ac_try;;
29957 esac
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959   (eval "$ac_try") 2>&5
29960   ac_status=$?
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); }; }; then
29963   eval "$as_ac_var=yes"
29964 else
29965   echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29967
29968         eval "$as_ac_var=no"
29969 fi
29970
29971 rm -f core conftest.err conftest.$ac_objext \
29972       conftest$ac_exeext conftest.$ac_ext
29973 fi
29974 ac_res=`eval echo '${'$as_ac_var'}'`
29975                { echo "$as_me:$LINENO: result: $ac_res" >&5
29976 echo "${ECHO_T}$ac_res" >&6; }
29977 if test `eval echo '${'$as_ac_var'}'` = yes; then
29978   cat >>confdefs.h <<_ACEOF
29979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29980 _ACEOF
29981
29982 fi
29983 done
29984
29985
29986
29987
29988
29989
29990
29991 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29992 do
29993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29997   echo $ECHO_N "(cached) $ECHO_C" >&6
29998 else
29999   cat >conftest.$ac_ext <<_ACEOF
30000 /* confdefs.h.  */
30001 _ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h.  */
30005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30007 #define $ac_func innocuous_$ac_func
30008
30009 /* System header to define __stub macros and hopefully few prototypes,
30010     which can conflict with char $ac_func (); below.
30011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30012     <limits.h> exists even on freestanding compilers.  */
30013
30014 #ifdef __STDC__
30015 # include <limits.h>
30016 #else
30017 # include <assert.h>
30018 #endif
30019
30020 #undef $ac_func
30021
30022 /* Override any GCC internal prototype to avoid an error.
30023    Use char because int might match the return type of a GCC
30024    builtin and then its argument prototype would still apply.  */
30025 #ifdef __cplusplus
30026 extern "C"
30027 #endif
30028 char $ac_func ();
30029 /* The GNU C library defines this for functions which it implements
30030     to always fail with ENOSYS.  Some functions are actually named
30031     something starting with __ and the normal name is an alias.  */
30032 #if defined __stub_$ac_func || defined __stub___$ac_func
30033 choke me
30034 #endif
30035
30036 int
30037 main ()
30038 {
30039 return $ac_func ();
30040   ;
30041   return 0;
30042 }
30043 _ACEOF
30044 rm -f conftest.$ac_objext conftest$ac_exeext
30045 if { (ac_try="$ac_link"
30046 case "(($ac_try" in
30047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048   *) ac_try_echo=$ac_try;;
30049 esac
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051   (eval "$ac_link") 2>conftest.er1
30052   ac_status=$?
30053   grep -v '^ *+' conftest.er1 >conftest.err
30054   rm -f conftest.er1
30055   cat conftest.err >&5
30056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057   (exit $ac_status); } &&
30058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30059   { (case "(($ac_try" in
30060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061   *) ac_try_echo=$ac_try;;
30062 esac
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064   (eval "$ac_try") 2>&5
30065   ac_status=$?
30066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067   (exit $ac_status); }; } &&
30068          { ac_try='test -s conftest$ac_exeext'
30069   { (case "(($ac_try" in
30070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071   *) ac_try_echo=$ac_try;;
30072 esac
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074   (eval "$ac_try") 2>&5
30075   ac_status=$?
30076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077   (exit $ac_status); }; }; then
30078   eval "$as_ac_var=yes"
30079 else
30080   echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30082
30083         eval "$as_ac_var=no"
30084 fi
30085
30086 rm -f core conftest.err conftest.$ac_objext \
30087       conftest$ac_exeext conftest.$ac_ext
30088 fi
30089 ac_res=`eval echo '${'$as_ac_var'}'`
30090                { echo "$as_me:$LINENO: result: $ac_res" >&5
30091 echo "${ECHO_T}$ac_res" >&6; }
30092 if test `eval echo '${'$as_ac_var'}'` = yes; then
30093   cat >>confdefs.h <<_ACEOF
30094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095 _ACEOF
30096
30097 fi
30098 done
30099
30100
30101
30102
30103
30104
30105
30106
30107 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30108 do
30109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30113   echo $ECHO_N "(cached) $ECHO_C" >&6
30114 else
30115   cat >conftest.$ac_ext <<_ACEOF
30116 /* confdefs.h.  */
30117 _ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h.  */
30121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30123 #define $ac_func innocuous_$ac_func
30124
30125 /* System header to define __stub macros and hopefully few prototypes,
30126     which can conflict with char $ac_func (); below.
30127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30128     <limits.h> exists even on freestanding compilers.  */
30129
30130 #ifdef __STDC__
30131 # include <limits.h>
30132 #else
30133 # include <assert.h>
30134 #endif
30135
30136 #undef $ac_func
30137
30138 /* Override any GCC internal prototype to avoid an error.
30139    Use char because int might match the return type of a GCC
30140    builtin and then its argument prototype would still apply.  */
30141 #ifdef __cplusplus
30142 extern "C"
30143 #endif
30144 char $ac_func ();
30145 /* The GNU C library defines this for functions which it implements
30146     to always fail with ENOSYS.  Some functions are actually named
30147     something starting with __ and the normal name is an alias.  */
30148 #if defined __stub_$ac_func || defined __stub___$ac_func
30149 choke me
30150 #endif
30151
30152 int
30153 main ()
30154 {
30155 return $ac_func ();
30156   ;
30157   return 0;
30158 }
30159 _ACEOF
30160 rm -f conftest.$ac_objext conftest$ac_exeext
30161 if { (ac_try="$ac_link"
30162 case "(($ac_try" in
30163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164   *) ac_try_echo=$ac_try;;
30165 esac
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167   (eval "$ac_link") 2>conftest.er1
30168   ac_status=$?
30169   grep -v '^ *+' conftest.er1 >conftest.err
30170   rm -f conftest.er1
30171   cat conftest.err >&5
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); } &&
30174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30175   { (case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_try") 2>&5
30181   ac_status=$?
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); }; } &&
30184          { ac_try='test -s conftest$ac_exeext'
30185   { (case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_try") 2>&5
30191   ac_status=$?
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); }; }; then
30194   eval "$as_ac_var=yes"
30195 else
30196   echo "$as_me: failed program was:" >&5
30197 sed 's/^/| /' conftest.$ac_ext >&5
30198
30199         eval "$as_ac_var=no"
30200 fi
30201
30202 rm -f core conftest.err conftest.$ac_objext \
30203       conftest$ac_exeext conftest.$ac_ext
30204 fi
30205 ac_res=`eval echo '${'$as_ac_var'}'`
30206                { echo "$as_me:$LINENO: result: $ac_res" >&5
30207 echo "${ECHO_T}$ac_res" >&6; }
30208 if test `eval echo '${'$as_ac_var'}'` = yes; then
30209   cat >>confdefs.h <<_ACEOF
30210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30211 _ACEOF
30212
30213 fi
30214 done
30215
30216
30217
30218
30219
30220 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30221 do
30222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30226   echo $ECHO_N "(cached) $ECHO_C" >&6
30227 else
30228   cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h.  */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h.  */
30234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30236 #define $ac_func innocuous_$ac_func
30237
30238 /* System header to define __stub macros and hopefully few prototypes,
30239     which can conflict with char $ac_func (); below.
30240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30241     <limits.h> exists even on freestanding compilers.  */
30242
30243 #ifdef __STDC__
30244 # include <limits.h>
30245 #else
30246 # include <assert.h>
30247 #endif
30248
30249 #undef $ac_func
30250
30251 /* Override any GCC internal prototype to avoid an error.
30252    Use char because int might match the return type of a GCC
30253    builtin and then its argument prototype would still apply.  */
30254 #ifdef __cplusplus
30255 extern "C"
30256 #endif
30257 char $ac_func ();
30258 /* The GNU C library defines this for functions which it implements
30259     to always fail with ENOSYS.  Some functions are actually named
30260     something starting with __ and the normal name is an alias.  */
30261 #if defined __stub_$ac_func || defined __stub___$ac_func
30262 choke me
30263 #endif
30264
30265 int
30266 main ()
30267 {
30268 return $ac_func ();
30269   ;
30270   return 0;
30271 }
30272 _ACEOF
30273 rm -f conftest.$ac_objext conftest$ac_exeext
30274 if { (ac_try="$ac_link"
30275 case "(($ac_try" in
30276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277   *) ac_try_echo=$ac_try;;
30278 esac
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280   (eval "$ac_link") 2>conftest.er1
30281   ac_status=$?
30282   grep -v '^ *+' conftest.er1 >conftest.err
30283   rm -f conftest.er1
30284   cat conftest.err >&5
30285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286   (exit $ac_status); } &&
30287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30288   { (case "(($ac_try" in
30289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290   *) ac_try_echo=$ac_try;;
30291 esac
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293   (eval "$ac_try") 2>&5
30294   ac_status=$?
30295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296   (exit $ac_status); }; } &&
30297          { ac_try='test -s conftest$ac_exeext'
30298   { (case "(($ac_try" in
30299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300   *) ac_try_echo=$ac_try;;
30301 esac
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303   (eval "$ac_try") 2>&5
30304   ac_status=$?
30305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306   (exit $ac_status); }; }; then
30307   eval "$as_ac_var=yes"
30308 else
30309   echo "$as_me: failed program was:" >&5
30310 sed 's/^/| /' conftest.$ac_ext >&5
30311
30312         eval "$as_ac_var=no"
30313 fi
30314
30315 rm -f core conftest.err conftest.$ac_objext \
30316       conftest$ac_exeext conftest.$ac_ext
30317 fi
30318 ac_res=`eval echo '${'$as_ac_var'}'`
30319                { echo "$as_me:$LINENO: result: $ac_res" >&5
30320 echo "${ECHO_T}$ac_res" >&6; }
30321 if test `eval echo '${'$as_ac_var'}'` = yes; then
30322   cat >>confdefs.h <<_ACEOF
30323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30324 _ACEOF
30325
30326 fi
30327 done
30328
30329
30330
30331
30332
30333 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30334 do
30335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30339   echo $ECHO_N "(cached) $ECHO_C" >&6
30340 else
30341   cat >conftest.$ac_ext <<_ACEOF
30342 /* confdefs.h.  */
30343 _ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h.  */
30347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30349 #define $ac_func innocuous_$ac_func
30350
30351 /* System header to define __stub macros and hopefully few prototypes,
30352     which can conflict with char $ac_func (); below.
30353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30354     <limits.h> exists even on freestanding compilers.  */
30355
30356 #ifdef __STDC__
30357 # include <limits.h>
30358 #else
30359 # include <assert.h>
30360 #endif
30361
30362 #undef $ac_func
30363
30364 /* Override any GCC internal prototype to avoid an error.
30365    Use char because int might match the return type of a GCC
30366    builtin and then its argument prototype would still apply.  */
30367 #ifdef __cplusplus
30368 extern "C"
30369 #endif
30370 char $ac_func ();
30371 /* The GNU C library defines this for functions which it implements
30372     to always fail with ENOSYS.  Some functions are actually named
30373     something starting with __ and the normal name is an alias.  */
30374 #if defined __stub_$ac_func || defined __stub___$ac_func
30375 choke me
30376 #endif
30377
30378 int
30379 main ()
30380 {
30381 return $ac_func ();
30382   ;
30383   return 0;
30384 }
30385 _ACEOF
30386 rm -f conftest.$ac_objext conftest$ac_exeext
30387 if { (ac_try="$ac_link"
30388 case "(($ac_try" in
30389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390   *) ac_try_echo=$ac_try;;
30391 esac
30392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393   (eval "$ac_link") 2>conftest.er1
30394   ac_status=$?
30395   grep -v '^ *+' conftest.er1 >conftest.err
30396   rm -f conftest.er1
30397   cat conftest.err >&5
30398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399   (exit $ac_status); } &&
30400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30401   { (case "(($ac_try" in
30402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403   *) ac_try_echo=$ac_try;;
30404 esac
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406   (eval "$ac_try") 2>&5
30407   ac_status=$?
30408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409   (exit $ac_status); }; } &&
30410          { ac_try='test -s conftest$ac_exeext'
30411   { (case "(($ac_try" in
30412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413   *) ac_try_echo=$ac_try;;
30414 esac
30415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416   (eval "$ac_try") 2>&5
30417   ac_status=$?
30418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419   (exit $ac_status); }; }; then
30420   eval "$as_ac_var=yes"
30421 else
30422   echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30424
30425         eval "$as_ac_var=no"
30426 fi
30427
30428 rm -f core conftest.err conftest.$ac_objext \
30429       conftest$ac_exeext conftest.$ac_ext
30430 fi
30431 ac_res=`eval echo '${'$as_ac_var'}'`
30432                { echo "$as_me:$LINENO: result: $ac_res" >&5
30433 echo "${ECHO_T}$ac_res" >&6; }
30434 if test `eval echo '${'$as_ac_var'}'` = yes; then
30435   cat >>confdefs.h <<_ACEOF
30436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30437 _ACEOF
30438
30439 fi
30440 done
30441
30442 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30443 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30444 if test "${llvm_cv_c_printf_a+set}" = set; then
30445   echo $ECHO_N "(cached) $ECHO_C" >&6
30446 else
30447   ac_ext=c
30448 ac_cpp='$CPP $CPPFLAGS'
30449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30452
30453  if test "$cross_compiling" = yes; then
30454   llvmac_cv_c_printf_a=no
30455 else
30456   cat >conftest.$ac_ext <<_ACEOF
30457
30458   /* confdefs.h.  */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h.  */
30463
30464 #include <stdio.h>
30465 #include <stdlib.h>
30466
30467 int
30468 main ()
30469 {
30470
30471 volatile double A, B;
30472 char Buffer[100];
30473 A = 1;
30474 A /= 10.0;
30475 sprintf(Buffer, "%a", A);
30476 B = atof(Buffer);
30477 if (A != B)
30478   return (1);
30479 if (A != 0x1.999999999999ap-4)
30480   return (1);
30481 return (0);
30482   ;
30483   return 0;
30484 }
30485 _ACEOF
30486 rm -f conftest$ac_exeext
30487 if { (ac_try="$ac_link"
30488 case "(($ac_try" in
30489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490   *) ac_try_echo=$ac_try;;
30491 esac
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493   (eval "$ac_link") 2>&5
30494   ac_status=$?
30495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30497   { (case "(($ac_try" in
30498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499   *) ac_try_echo=$ac_try;;
30500 esac
30501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502   (eval "$ac_try") 2>&5
30503   ac_status=$?
30504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505   (exit $ac_status); }; }; then
30506   llvm_cv_c_printf_a=yes
30507 else
30508   echo "$as_me: program exited with status $ac_status" >&5
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512 ( exit $ac_status )
30513 llvmac_cv_c_printf_a=no
30514 fi
30515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30516 fi
30517
30518
30519  ac_ext=c
30520 ac_cpp='$CPP $CPPFLAGS'
30521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30524
30525 fi
30526 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30527 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30528  if test "$llvm_cv_c_printf_a" = "yes"; then
30529
30530 cat >>confdefs.h <<\_ACEOF
30531 #define HAVE_PRINTF_A 1
30532 _ACEOF
30533
30534  fi
30535
30536 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30537 # for constant arguments.  Useless!
30538 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30539 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30540 if test "${ac_cv_working_alloca_h+set}" = set; then
30541   echo $ECHO_N "(cached) $ECHO_C" >&6
30542 else
30543   cat >conftest.$ac_ext <<_ACEOF
30544 /* confdefs.h.  */
30545 _ACEOF
30546 cat confdefs.h >>conftest.$ac_ext
30547 cat >>conftest.$ac_ext <<_ACEOF
30548 /* end confdefs.h.  */
30549 #include <alloca.h>
30550 int
30551 main ()
30552 {
30553 char *p = (char *) alloca (2 * sizeof (int));
30554                           if (p) return 0;
30555   ;
30556   return 0;
30557 }
30558 _ACEOF
30559 rm -f conftest.$ac_objext conftest$ac_exeext
30560 if { (ac_try="$ac_link"
30561 case "(($ac_try" in
30562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563   *) ac_try_echo=$ac_try;;
30564 esac
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566   (eval "$ac_link") 2>conftest.er1
30567   ac_status=$?
30568   grep -v '^ *+' conftest.er1 >conftest.err
30569   rm -f conftest.er1
30570   cat conftest.err >&5
30571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572   (exit $ac_status); } &&
30573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30574   { (case "(($ac_try" in
30575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576   *) ac_try_echo=$ac_try;;
30577 esac
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579   (eval "$ac_try") 2>&5
30580   ac_status=$?
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); }; } &&
30583          { ac_try='test -s conftest$ac_exeext'
30584   { (case "(($ac_try" in
30585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586   *) ac_try_echo=$ac_try;;
30587 esac
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589   (eval "$ac_try") 2>&5
30590   ac_status=$?
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); }; }; then
30593   ac_cv_working_alloca_h=yes
30594 else
30595   echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30597
30598         ac_cv_working_alloca_h=no
30599 fi
30600
30601 rm -f core conftest.err conftest.$ac_objext \
30602       conftest$ac_exeext conftest.$ac_ext
30603 fi
30604 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30605 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30606 if test $ac_cv_working_alloca_h = yes; then
30607
30608 cat >>confdefs.h <<\_ACEOF
30609 #define HAVE_ALLOCA_H 1
30610 _ACEOF
30611
30612 fi
30613
30614 { echo "$as_me:$LINENO: checking for alloca" >&5
30615 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30616 if test "${ac_cv_func_alloca_works+set}" = set; then
30617   echo $ECHO_N "(cached) $ECHO_C" >&6
30618 else
30619   cat >conftest.$ac_ext <<_ACEOF
30620 /* confdefs.h.  */
30621 _ACEOF
30622 cat confdefs.h >>conftest.$ac_ext
30623 cat >>conftest.$ac_ext <<_ACEOF
30624 /* end confdefs.h.  */
30625 #ifdef __GNUC__
30626 # define alloca __builtin_alloca
30627 #else
30628 # ifdef _MSC_VER
30629 #  include <malloc.h>
30630 #  define alloca _alloca
30631 # else
30632 #  if HAVE_ALLOCA_H
30633 #   include <alloca.h>
30634 #  else
30635 #   ifdef _AIX
30636  #pragma alloca
30637 #   else
30638 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30639 char *alloca ();
30640 #    endif
30641 #   endif
30642 #  endif
30643 # endif
30644 #endif
30645
30646 int
30647 main ()
30648 {
30649 char *p = (char *) alloca (1);
30650                                     if (p) return 0;
30651   ;
30652   return 0;
30653 }
30654 _ACEOF
30655 rm -f conftest.$ac_objext conftest$ac_exeext
30656 if { (ac_try="$ac_link"
30657 case "(($ac_try" in
30658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659   *) ac_try_echo=$ac_try;;
30660 esac
30661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662   (eval "$ac_link") 2>conftest.er1
30663   ac_status=$?
30664   grep -v '^ *+' conftest.er1 >conftest.err
30665   rm -f conftest.er1
30666   cat conftest.err >&5
30667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); } &&
30669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30670   { (case "(($ac_try" in
30671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672   *) ac_try_echo=$ac_try;;
30673 esac
30674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675   (eval "$ac_try") 2>&5
30676   ac_status=$?
30677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678   (exit $ac_status); }; } &&
30679          { ac_try='test -s conftest$ac_exeext'
30680   { (case "(($ac_try" in
30681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682   *) ac_try_echo=$ac_try;;
30683 esac
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685   (eval "$ac_try") 2>&5
30686   ac_status=$?
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); }; }; then
30689   ac_cv_func_alloca_works=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694         ac_cv_func_alloca_works=no
30695 fi
30696
30697 rm -f core conftest.err conftest.$ac_objext \
30698       conftest$ac_exeext conftest.$ac_ext
30699 fi
30700 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30701 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30702
30703 if test $ac_cv_func_alloca_works = yes; then
30704
30705 cat >>confdefs.h <<\_ACEOF
30706 #define HAVE_ALLOCA 1
30707 _ACEOF
30708
30709 else
30710   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30711 # that cause trouble.  Some versions do not even contain alloca or
30712 # contain a buggy version.  If you still want to use their alloca,
30713 # use ar to extract alloca.o from them instead of compiling alloca.c.
30714
30715 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30716
30717 cat >>confdefs.h <<\_ACEOF
30718 #define C_ALLOCA 1
30719 _ACEOF
30720
30721
30722 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30723 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30724 if test "${ac_cv_os_cray+set}" = set; then
30725   echo $ECHO_N "(cached) $ECHO_C" >&6
30726 else
30727   cat >conftest.$ac_ext <<_ACEOF
30728 /* confdefs.h.  */
30729 _ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h.  */
30733 #if defined CRAY && ! defined CRAY2
30734 webecray
30735 #else
30736 wenotbecray
30737 #endif
30738
30739 _ACEOF
30740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741   $EGREP "webecray" >/dev/null 2>&1; then
30742   ac_cv_os_cray=yes
30743 else
30744   ac_cv_os_cray=no
30745 fi
30746 rm -f conftest*
30747
30748 fi
30749 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30750 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30751 if test $ac_cv_os_cray = yes; then
30752   for ac_func in _getb67 GETB67 getb67; do
30753     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30757   echo $ECHO_N "(cached) $ECHO_C" >&6
30758 else
30759   cat >conftest.$ac_ext <<_ACEOF
30760 /* confdefs.h.  */
30761 _ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h.  */
30765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30767 #define $ac_func innocuous_$ac_func
30768
30769 /* System header to define __stub macros and hopefully few prototypes,
30770     which can conflict with char $ac_func (); below.
30771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30772     <limits.h> exists even on freestanding compilers.  */
30773
30774 #ifdef __STDC__
30775 # include <limits.h>
30776 #else
30777 # include <assert.h>
30778 #endif
30779
30780 #undef $ac_func
30781
30782 /* Override any GCC internal prototype to avoid an error.
30783    Use char because int might match the return type of a GCC
30784    builtin and then its argument prototype would still apply.  */
30785 #ifdef __cplusplus
30786 extern "C"
30787 #endif
30788 char $ac_func ();
30789 /* The GNU C library defines this for functions which it implements
30790     to always fail with ENOSYS.  Some functions are actually named
30791     something starting with __ and the normal name is an alias.  */
30792 #if defined __stub_$ac_func || defined __stub___$ac_func
30793 choke me
30794 #endif
30795
30796 int
30797 main ()
30798 {
30799 return $ac_func ();
30800   ;
30801   return 0;
30802 }
30803 _ACEOF
30804 rm -f conftest.$ac_objext conftest$ac_exeext
30805 if { (ac_try="$ac_link"
30806 case "(($ac_try" in
30807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808   *) ac_try_echo=$ac_try;;
30809 esac
30810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811   (eval "$ac_link") 2>conftest.er1
30812   ac_status=$?
30813   grep -v '^ *+' conftest.er1 >conftest.err
30814   rm -f conftest.er1
30815   cat conftest.err >&5
30816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817   (exit $ac_status); } &&
30818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30819   { (case "(($ac_try" in
30820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821   *) ac_try_echo=$ac_try;;
30822 esac
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824   (eval "$ac_try") 2>&5
30825   ac_status=$?
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); }; } &&
30828          { ac_try='test -s conftest$ac_exeext'
30829   { (case "(($ac_try" in
30830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831   *) ac_try_echo=$ac_try;;
30832 esac
30833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834   (eval "$ac_try") 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; }; then
30838   eval "$as_ac_var=yes"
30839 else
30840   echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30842
30843         eval "$as_ac_var=no"
30844 fi
30845
30846 rm -f core conftest.err conftest.$ac_objext \
30847       conftest$ac_exeext conftest.$ac_ext
30848 fi
30849 ac_res=`eval echo '${'$as_ac_var'}'`
30850                { echo "$as_me:$LINENO: result: $ac_res" >&5
30851 echo "${ECHO_T}$ac_res" >&6; }
30852 if test `eval echo '${'$as_ac_var'}'` = yes; then
30853
30854 cat >>confdefs.h <<_ACEOF
30855 #define CRAY_STACKSEG_END $ac_func
30856 _ACEOF
30857
30858     break
30859 fi
30860
30861   done
30862 fi
30863
30864 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30865 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30866 if test "${ac_cv_c_stack_direction+set}" = set; then
30867   echo $ECHO_N "(cached) $ECHO_C" >&6
30868 else
30869   if test "$cross_compiling" = yes; then
30870   ac_cv_c_stack_direction=0
30871 else
30872   cat >conftest.$ac_ext <<_ACEOF
30873 /* confdefs.h.  */
30874 _ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h.  */
30878 $ac_includes_default
30879 int
30880 find_stack_direction ()
30881 {
30882   static char *addr = 0;
30883   auto char dummy;
30884   if (addr == 0)
30885     {
30886       addr = &dummy;
30887       return find_stack_direction ();
30888     }
30889   else
30890     return (&dummy > addr) ? 1 : -1;
30891 }
30892
30893 int
30894 main ()
30895 {
30896   return find_stack_direction () < 0;
30897 }
30898 _ACEOF
30899 rm -f conftest$ac_exeext
30900 if { (ac_try="$ac_link"
30901 case "(($ac_try" in
30902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903   *) ac_try_echo=$ac_try;;
30904 esac
30905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906   (eval "$ac_link") 2>&5
30907   ac_status=$?
30908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30910   { (case "(($ac_try" in
30911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912   *) ac_try_echo=$ac_try;;
30913 esac
30914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915   (eval "$ac_try") 2>&5
30916   ac_status=$?
30917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918   (exit $ac_status); }; }; then
30919   ac_cv_c_stack_direction=1
30920 else
30921   echo "$as_me: program exited with status $ac_status" >&5
30922 echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30924
30925 ( exit $ac_status )
30926 ac_cv_c_stack_direction=-1
30927 fi
30928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30929 fi
30930
30931
30932 fi
30933 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30934 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30935
30936 cat >>confdefs.h <<_ACEOF
30937 #define STACK_DIRECTION $ac_cv_c_stack_direction
30938 _ACEOF
30939
30940
30941 fi
30942
30943
30944 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30945 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30946 if test "${ac_cv_func_rand48+set}" = set; then
30947   echo $ECHO_N "(cached) $ECHO_C" >&6
30948 else
30949   ac_ext=cpp
30950 ac_cpp='$CXXCPP $CPPFLAGS'
30951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30954
30955    cat >conftest.$ac_ext <<_ACEOF
30956 /* confdefs.h.  */
30957 _ACEOF
30958 cat confdefs.h >>conftest.$ac_ext
30959 cat >>conftest.$ac_ext <<_ACEOF
30960 /* end confdefs.h.  */
30961 #include <stdlib.h>
30962 int
30963 main ()
30964 {
30965 srand48(0);lrand48();drand48();
30966   ;
30967   return 0;
30968 }
30969 _ACEOF
30970 rm -f conftest.$ac_objext
30971 if { (ac_try="$ac_compile"
30972 case "(($ac_try" in
30973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974   *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977   (eval "$ac_compile") 2>conftest.er1
30978   ac_status=$?
30979   grep -v '^ *+' conftest.er1 >conftest.err
30980   rm -f conftest.er1
30981   cat conftest.err >&5
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); } &&
30984          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30985   { (case "(($ac_try" in
30986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30987   *) ac_try_echo=$ac_try;;
30988 esac
30989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30990   (eval "$ac_try") 2>&5
30991   ac_status=$?
30992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993   (exit $ac_status); }; } &&
30994          { ac_try='test -s conftest.$ac_objext'
30995   { (case "(($ac_try" in
30996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997   *) ac_try_echo=$ac_try;;
30998 esac
30999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000   (eval "$ac_try") 2>&5
31001   ac_status=$?
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); }; }; then
31004   ac_cv_func_rand48=yes
31005 else
31006   echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31008
31009         ac_cv_func_rand48=no
31010 fi
31011
31012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31013   ac_ext=c
31014 ac_cpp='$CPP $CPPFLAGS'
31015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31018
31019 fi
31020 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31021 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31022
31023 if test "$ac_cv_func_rand48" = "yes" ; then
31024
31025 cat >>confdefs.h <<\_ACEOF
31026 #define HAVE_RAND48 1
31027 _ACEOF
31028
31029 fi
31030
31031
31032 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31033 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31034 if test "${ac_cv_cxx_namespaces+set}" = set; then
31035   echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037   ac_ext=cpp
31038 ac_cpp='$CXXCPP $CPPFLAGS'
31039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31042
31043  cat >conftest.$ac_ext <<_ACEOF
31044 /* confdefs.h.  */
31045 _ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h.  */
31049 namespace Outer { namespace Inner { int i = 0; }}
31050 int
31051 main ()
31052 {
31053 using namespace Outer::Inner; return i;
31054   ;
31055   return 0;
31056 }
31057 _ACEOF
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062   *) ac_try_echo=$ac_try;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065   (eval "$ac_compile") 2>conftest.er1
31066   ac_status=$?
31067   grep -v '^ *+' conftest.er1 >conftest.err
31068   rm -f conftest.er1
31069   cat conftest.err >&5
31070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071   (exit $ac_status); } &&
31072          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31073   { (case "(($ac_try" in
31074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075   *) ac_try_echo=$ac_try;;
31076 esac
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078   (eval "$ac_try") 2>&5
31079   ac_status=$?
31080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081   (exit $ac_status); }; } &&
31082          { ac_try='test -s conftest.$ac_objext'
31083   { (case "(($ac_try" in
31084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085   *) ac_try_echo=$ac_try;;
31086 esac
31087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088   (eval "$ac_try") 2>&5
31089   ac_status=$?
31090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091   (exit $ac_status); }; }; then
31092   ac_cv_cxx_namespaces=yes
31093 else
31094   echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31096
31097         ac_cv_cxx_namespaces=no
31098 fi
31099
31100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31101  ac_ext=c
31102 ac_cpp='$CPP $CPPFLAGS'
31103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31106
31107
31108 fi
31109 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31110 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31111 if test "$ac_cv_cxx_namespaces" = yes; then
31112
31113 cat >>confdefs.h <<\_ACEOF
31114 #define HAVE_NAMESPACES
31115 _ACEOF
31116
31117 fi
31118
31119 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31120 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31121 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31122   echo $ECHO_N "(cached) $ECHO_C" >&6
31123 else
31124
31125   ac_ext=cpp
31126 ac_cpp='$CXXCPP $CPPFLAGS'
31127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31130
31131   cat >conftest.$ac_ext <<_ACEOF
31132 /* confdefs.h.  */
31133 _ACEOF
31134 cat confdefs.h >>conftest.$ac_ext
31135 cat >>conftest.$ac_ext <<_ACEOF
31136 /* end confdefs.h.  */
31137 #include <ext/hash_map>
31138 #ifdef HAVE_NAMESPACES
31139 using namespace std;
31140 #endif
31141 int
31142 main ()
31143 {
31144 hash_map<int, int> t;
31145   ;
31146   return 0;
31147 }
31148 _ACEOF
31149 rm -f conftest.$ac_objext
31150 if { (ac_try="$ac_compile"
31151 case "(($ac_try" in
31152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153   *) ac_try_echo=$ac_try;;
31154 esac
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156   (eval "$ac_compile") 2>conftest.er1
31157   ac_status=$?
31158   grep -v '^ *+' conftest.er1 >conftest.err
31159   rm -f conftest.er1
31160   cat conftest.err >&5
31161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162   (exit $ac_status); } &&
31163          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31164   { (case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_try") 2>&5
31170   ac_status=$?
31171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172   (exit $ac_status); }; } &&
31173          { ac_try='test -s conftest.$ac_objext'
31174   { (case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_try") 2>&5
31180   ac_status=$?
31181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); }; }; then
31183   ac_cv_cxx_have_std_ext_hash_map=yes
31184 else
31185   echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31187
31188         ac_cv_cxx_have_std_ext_hash_map=no
31189 fi
31190
31191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192   ac_ext=c
31193 ac_cpp='$CPP $CPPFLAGS'
31194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31197
31198 fi
31199 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31200 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31201  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31202  then
31203
31204 cat >>confdefs.h <<\_ACEOF
31205 #define HAVE_STD_EXT_HASH_MAP 1
31206 _ACEOF
31207
31208  else
31209
31210 cat >>confdefs.h <<\_ACEOF
31211 #define HAVE_STD_EXT_HASH_MAP 0
31212 _ACEOF
31213
31214  fi
31215
31216  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31217 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31218 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31219   echo $ECHO_N "(cached) $ECHO_C" >&6
31220 else
31221
31222   ac_ext=cpp
31223 ac_cpp='$CXXCPP $CPPFLAGS'
31224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31227
31228   cat >conftest.$ac_ext <<_ACEOF
31229 /* confdefs.h.  */
31230 _ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h.  */
31234 #include <ext/hash_map>
31235 #ifdef HAVE_NAMESPACES
31236 using namespace __gnu_cxx;
31237 #endif
31238 int
31239 main ()
31240 {
31241 hash_map<int,int> t;
31242   ;
31243   return 0;
31244 }
31245 _ACEOF
31246 rm -f conftest.$ac_objext
31247 if { (ac_try="$ac_compile"
31248 case "(($ac_try" in
31249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250   *) ac_try_echo=$ac_try;;
31251 esac
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253   (eval "$ac_compile") 2>conftest.er1
31254   ac_status=$?
31255   grep -v '^ *+' conftest.er1 >conftest.err
31256   rm -f conftest.er1
31257   cat conftest.err >&5
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); } &&
31260          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31261   { (case "(($ac_try" in
31262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263   *) ac_try_echo=$ac_try;;
31264 esac
31265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266   (eval "$ac_try") 2>&5
31267   ac_status=$?
31268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269   (exit $ac_status); }; } &&
31270          { ac_try='test -s conftest.$ac_objext'
31271   { (case "(($ac_try" in
31272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273   *) ac_try_echo=$ac_try;;
31274 esac
31275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276   (eval "$ac_try") 2>&5
31277   ac_status=$?
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); }; }; then
31280   ac_cv_cxx_have_gnu_ext_hash_map=yes
31281 else
31282   echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31284
31285         ac_cv_cxx_have_gnu_ext_hash_map=no
31286 fi
31287
31288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31289   ac_ext=c
31290 ac_cpp='$CPP $CPPFLAGS'
31291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31294
31295 fi
31296 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31297 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31298  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31299  then
31300
31301 cat >>confdefs.h <<\_ACEOF
31302 #define HAVE_GNU_EXT_HASH_MAP 1
31303 _ACEOF
31304
31305  else
31306
31307 cat >>confdefs.h <<\_ACEOF
31308 #define HAVE_GNU_EXT_HASH_MAP 0
31309 _ACEOF
31310
31311  fi
31312
31313  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31314 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31315 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31316   echo $ECHO_N "(cached) $ECHO_C" >&6
31317 else
31318
31319   ac_ext=cpp
31320 ac_cpp='$CXXCPP $CPPFLAGS'
31321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31324
31325   cat >conftest.$ac_ext <<_ACEOF
31326 /* confdefs.h.  */
31327 _ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h.  */
31331 #include <hash_map>
31332 int
31333 main ()
31334 {
31335 hash_map<int,int> t;
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 rm -f conftest.$ac_objext
31341 if { (ac_try="$ac_compile"
31342 case "(($ac_try" in
31343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344   *) ac_try_echo=$ac_try;;
31345 esac
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347   (eval "$ac_compile") 2>conftest.er1
31348   ac_status=$?
31349   grep -v '^ *+' conftest.er1 >conftest.err
31350   rm -f conftest.er1
31351   cat conftest.err >&5
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); } &&
31354          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31355   { (case "(($ac_try" in
31356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357   *) ac_try_echo=$ac_try;;
31358 esac
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360   (eval "$ac_try") 2>&5
31361   ac_status=$?
31362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); }; } &&
31364          { ac_try='test -s conftest.$ac_objext'
31365   { (case "(($ac_try" in
31366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367   *) ac_try_echo=$ac_try;;
31368 esac
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370   (eval "$ac_try") 2>&5
31371   ac_status=$?
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); }; }; then
31374   ac_cv_cxx_have_global_hash_map=yes
31375 else
31376   echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31378
31379         ac_cv_cxx_have_global_hash_map=no
31380 fi
31381
31382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31383   ac_ext=c
31384 ac_cpp='$CPP $CPPFLAGS'
31385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31388
31389 fi
31390 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31391 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31392  if test "$ac_cv_cxx_have_global_hash_map" = yes
31393  then
31394
31395 cat >>confdefs.h <<\_ACEOF
31396 #define HAVE_GLOBAL_HASH_MAP 1
31397 _ACEOF
31398
31399  else
31400
31401 cat >>confdefs.h <<\_ACEOF
31402 #define HAVE_GLOBAL_HASH_MAP 0
31403 _ACEOF
31404
31405  fi
31406
31407 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31408 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31409 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31410   echo $ECHO_N "(cached) $ECHO_C" >&6
31411 else
31412
31413   ac_ext=cpp
31414 ac_cpp='$CXXCPP $CPPFLAGS'
31415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31418
31419   cat >conftest.$ac_ext <<_ACEOF
31420 /* confdefs.h.  */
31421 _ACEOF
31422 cat confdefs.h >>conftest.$ac_ext
31423 cat >>conftest.$ac_ext <<_ACEOF
31424 /* end confdefs.h.  */
31425 #include <ext/hash_set>
31426 #ifdef HAVE_NAMESPACES
31427 using namespace std;
31428 #endif
31429 int
31430 main ()
31431 {
31432 hash_set<int> t;
31433   ;
31434   return 0;
31435 }
31436 _ACEOF
31437 rm -f conftest.$ac_objext
31438 if { (ac_try="$ac_compile"
31439 case "(($ac_try" in
31440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441   *) ac_try_echo=$ac_try;;
31442 esac
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444   (eval "$ac_compile") 2>conftest.er1
31445   ac_status=$?
31446   grep -v '^ *+' conftest.er1 >conftest.err
31447   rm -f conftest.er1
31448   cat conftest.err >&5
31449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450   (exit $ac_status); } &&
31451          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31452   { (case "(($ac_try" in
31453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454   *) ac_try_echo=$ac_try;;
31455 esac
31456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457   (eval "$ac_try") 2>&5
31458   ac_status=$?
31459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460   (exit $ac_status); }; } &&
31461          { ac_try='test -s conftest.$ac_objext'
31462   { (case "(($ac_try" in
31463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464   *) ac_try_echo=$ac_try;;
31465 esac
31466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467   (eval "$ac_try") 2>&5
31468   ac_status=$?
31469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470   (exit $ac_status); }; }; then
31471   ac_cv_cxx_have_std_ext_hash_set=yes
31472 else
31473   echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31475
31476         ac_cv_cxx_have_std_ext_hash_set=no
31477 fi
31478
31479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31480   ac_ext=c
31481 ac_cpp='$CPP $CPPFLAGS'
31482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31485
31486 fi
31487 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31488 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31489  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31490  then
31491
31492 cat >>confdefs.h <<\_ACEOF
31493 #define HAVE_STD_EXT_HASH_SET 1
31494 _ACEOF
31495
31496  else
31497
31498 cat >>confdefs.h <<\_ACEOF
31499 #define HAVE_STD_EXT_HASH_SET 0
31500 _ACEOF
31501
31502  fi
31503
31504  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31505 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31506 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31507   echo $ECHO_N "(cached) $ECHO_C" >&6
31508 else
31509
31510   ac_ext=cpp
31511 ac_cpp='$CXXCPP $CPPFLAGS'
31512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31515
31516   cat >conftest.$ac_ext <<_ACEOF
31517 /* confdefs.h.  */
31518 _ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h.  */
31522 #include <ext/hash_set>
31523 #ifdef HAVE_NAMESPACES
31524 using namespace __gnu_cxx;
31525 #endif
31526 int
31527 main ()
31528 {
31529 hash_set<int> t;
31530   ;
31531   return 0;
31532 }
31533 _ACEOF
31534 rm -f conftest.$ac_objext
31535 if { (ac_try="$ac_compile"
31536 case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_compile") 2>conftest.er1
31542   ac_status=$?
31543   grep -v '^ *+' conftest.er1 >conftest.err
31544   rm -f conftest.er1
31545   cat conftest.err >&5
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); } &&
31548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549   { (case "(($ac_try" in
31550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551   *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554   (eval "$ac_try") 2>&5
31555   ac_status=$?
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); }; } &&
31558          { ac_try='test -s conftest.$ac_objext'
31559   { (case "(($ac_try" in
31560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561   *) ac_try_echo=$ac_try;;
31562 esac
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564   (eval "$ac_try") 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; }; then
31568   ac_cv_cxx_have_gnu_ext_hash_set=yes
31569 else
31570   echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573         ac_cv_cxx_have_gnu_ext_hash_set=no
31574 fi
31575
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577   ac_ext=c
31578 ac_cpp='$CPP $CPPFLAGS'
31579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31582
31583 fi
31584 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31585 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31586  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31587  then
31588
31589 cat >>confdefs.h <<\_ACEOF
31590 #define HAVE_GNU_EXT_HASH_SET 1
31591 _ACEOF
31592
31593  else
31594
31595 cat >>confdefs.h <<\_ACEOF
31596 #define HAVE_GNU_EXT_HASH_SET 0
31597 _ACEOF
31598
31599  fi
31600
31601  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31602 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31603 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31604   echo $ECHO_N "(cached) $ECHO_C" >&6
31605 else
31606
31607   ac_ext=cpp
31608 ac_cpp='$CXXCPP $CPPFLAGS'
31609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31612
31613   cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619 #include <hash_set>
31620 int
31621 main ()
31622 {
31623 hash_set<int> t; return 0;
31624   ;
31625   return 0;
31626 }
31627 _ACEOF
31628 rm -f conftest.$ac_objext
31629 if { (ac_try="$ac_compile"
31630 case "(($ac_try" in
31631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632   *) ac_try_echo=$ac_try;;
31633 esac
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635   (eval "$ac_compile") 2>conftest.er1
31636   ac_status=$?
31637   grep -v '^ *+' conftest.er1 >conftest.err
31638   rm -f conftest.er1
31639   cat conftest.err >&5
31640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641   (exit $ac_status); } &&
31642          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31643   { (case "(($ac_try" in
31644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645   *) ac_try_echo=$ac_try;;
31646 esac
31647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648   (eval "$ac_try") 2>&5
31649   ac_status=$?
31650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); }; } &&
31652          { ac_try='test -s conftest.$ac_objext'
31653   { (case "(($ac_try" in
31654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655   *) ac_try_echo=$ac_try;;
31656 esac
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658   (eval "$ac_try") 2>&5
31659   ac_status=$?
31660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661   (exit $ac_status); }; }; then
31662   ac_cv_cxx_have_global_hash_set=yes
31663 else
31664   echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31666
31667         ac_cv_cxx_have_global_hash_set=no
31668 fi
31669
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31671   ac_ext=c
31672 ac_cpp='$CPP $CPPFLAGS'
31673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31676
31677 fi
31678 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31679 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31680  if test "$ac_cv_cxx_have_global_hash_set" = yes
31681  then
31682
31683 cat >>confdefs.h <<\_ACEOF
31684 #define HAVE_GLOBAL_HASH_SET 1
31685 _ACEOF
31686
31687  else
31688
31689 cat >>confdefs.h <<\_ACEOF
31690 #define HAVE_GLOBAL_HASH_SET 0
31691 _ACEOF
31692
31693  fi
31694
31695 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31696 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31697 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31698   echo $ECHO_N "(cached) $ECHO_C" >&6
31699 else
31700
31701   ac_ext=cpp
31702 ac_cpp='$CXXCPP $CPPFLAGS'
31703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31706
31707   cat >conftest.$ac_ext <<_ACEOF
31708 /* confdefs.h.  */
31709 _ACEOF
31710 cat confdefs.h >>conftest.$ac_ext
31711 cat >>conftest.$ac_ext <<_ACEOF
31712 /* end confdefs.h.  */
31713 #include <iterator>
31714 #ifdef HAVE_NAMESPACES
31715 using namespace std;
31716 #endif
31717 int
31718 main ()
31719 {
31720 iterator<int,int,int> t; return 0;
31721   ;
31722   return 0;
31723 }
31724 _ACEOF
31725 rm -f conftest.$ac_objext
31726 if { (ac_try="$ac_compile"
31727 case "(($ac_try" in
31728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729   *) ac_try_echo=$ac_try;;
31730 esac
31731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732   (eval "$ac_compile") 2>conftest.er1
31733   ac_status=$?
31734   grep -v '^ *+' conftest.er1 >conftest.err
31735   rm -f conftest.er1
31736   cat conftest.err >&5
31737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738   (exit $ac_status); } &&
31739          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31740   { (case "(($ac_try" in
31741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742   *) ac_try_echo=$ac_try;;
31743 esac
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745   (eval "$ac_try") 2>&5
31746   ac_status=$?
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); }; } &&
31749          { ac_try='test -s conftest.$ac_objext'
31750   { (case "(($ac_try" in
31751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752   *) ac_try_echo=$ac_try;;
31753 esac
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755   (eval "$ac_try") 2>&5
31756   ac_status=$?
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); }; }; then
31759   ac_cv_cxx_have_std_iterator=yes
31760 else
31761   echo "$as_me: failed program was:" >&5
31762 sed 's/^/| /' conftest.$ac_ext >&5
31763
31764         ac_cv_cxx_have_std_iterator=no
31765 fi
31766
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768   ac_ext=c
31769 ac_cpp='$CPP $CPPFLAGS'
31770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31773
31774
31775 fi
31776 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31777 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31778 if test "$ac_cv_cxx_have_std_iterator" = yes
31779 then
31780
31781 cat >>confdefs.h <<\_ACEOF
31782 #define HAVE_STD_ITERATOR 1
31783 _ACEOF
31784
31785 else
31786
31787 cat >>confdefs.h <<\_ACEOF
31788 #define HAVE_STD_ITERATOR 0
31789 _ACEOF
31790
31791 fi
31792
31793 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31794 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31795 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31796   echo $ECHO_N "(cached) $ECHO_C" >&6
31797 else
31798
31799   ac_ext=cpp
31800 ac_cpp='$CXXCPP $CPPFLAGS'
31801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31804
31805   cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h.  */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h.  */
31811 #include <iterator>
31812 #ifdef HAVE_NAMESPACES
31813 using namespace std;
31814 #endif
31815 int
31816 main ()
31817 {
31818 bidirectional_iterator<int,int> t; return 0;
31819   ;
31820   return 0;
31821 }
31822 _ACEOF
31823 rm -f conftest.$ac_objext
31824 if { (ac_try="$ac_compile"
31825 case "(($ac_try" in
31826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827   *) ac_try_echo=$ac_try;;
31828 esac
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830   (eval "$ac_compile") 2>conftest.er1
31831   ac_status=$?
31832   grep -v '^ *+' conftest.er1 >conftest.err
31833   rm -f conftest.er1
31834   cat conftest.err >&5
31835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836   (exit $ac_status); } &&
31837          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31838   { (case "(($ac_try" in
31839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840   *) ac_try_echo=$ac_try;;
31841 esac
31842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31843   (eval "$ac_try") 2>&5
31844   ac_status=$?
31845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846   (exit $ac_status); }; } &&
31847          { ac_try='test -s conftest.$ac_objext'
31848   { (case "(($ac_try" in
31849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850   *) ac_try_echo=$ac_try;;
31851 esac
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853   (eval "$ac_try") 2>&5
31854   ac_status=$?
31855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856   (exit $ac_status); }; }; then
31857   ac_cv_cxx_have_bi_iterator=yes
31858 else
31859   echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862         ac_cv_cxx_have_bi_iterator=no
31863 fi
31864
31865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866   ac_ext=c
31867 ac_cpp='$CPP $CPPFLAGS'
31868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31871
31872
31873 fi
31874 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31875 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31876 if test "$ac_cv_cxx_have_bi_iterator" = yes
31877 then
31878
31879 cat >>confdefs.h <<\_ACEOF
31880 #define HAVE_BI_ITERATOR 1
31881 _ACEOF
31882
31883 else
31884
31885 cat >>confdefs.h <<\_ACEOF
31886 #define HAVE_BI_ITERATOR 0
31887 _ACEOF
31888
31889 fi
31890
31891 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31892 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31893 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31894   echo $ECHO_N "(cached) $ECHO_C" >&6
31895 else
31896
31897   ac_ext=cpp
31898 ac_cpp='$CXXCPP $CPPFLAGS'
31899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31902
31903   cat >conftest.$ac_ext <<_ACEOF
31904 /* confdefs.h.  */
31905 _ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h.  */
31909 #include <iterator>
31910 #ifdef HAVE_NAMESPACES
31911 using namespace std;
31912 #endif
31913 int
31914 main ()
31915 {
31916 forward_iterator<int,int> t; return 0;
31917   ;
31918   return 0;
31919 }
31920 _ACEOF
31921 rm -f conftest.$ac_objext
31922 if { (ac_try="$ac_compile"
31923 case "(($ac_try" in
31924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925   *) ac_try_echo=$ac_try;;
31926 esac
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928   (eval "$ac_compile") 2>conftest.er1
31929   ac_status=$?
31930   grep -v '^ *+' conftest.er1 >conftest.err
31931   rm -f conftest.er1
31932   cat conftest.err >&5
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); } &&
31935          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31936   { (case "(($ac_try" in
31937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938   *) ac_try_echo=$ac_try;;
31939 esac
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941   (eval "$ac_try") 2>&5
31942   ac_status=$?
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); }; } &&
31945          { ac_try='test -s conftest.$ac_objext'
31946   { (case "(($ac_try" in
31947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948   *) ac_try_echo=$ac_try;;
31949 esac
31950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951   (eval "$ac_try") 2>&5
31952   ac_status=$?
31953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954   (exit $ac_status); }; }; then
31955   ac_cv_cxx_have_fwd_iterator=yes
31956 else
31957   echo "$as_me: failed program was:" >&5
31958 sed 's/^/| /' conftest.$ac_ext >&5
31959
31960         ac_cv_cxx_have_fwd_iterator=no
31961 fi
31962
31963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31964   ac_ext=c
31965 ac_cpp='$CPP $CPPFLAGS'
31966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31969
31970
31971 fi
31972 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31973 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31974 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31975 then
31976
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_FWD_ITERATOR 1
31979 _ACEOF
31980
31981 else
31982
31983 cat >>confdefs.h <<\_ACEOF
31984 #define HAVE_FWD_ITERATOR 0
31985 _ACEOF
31986
31987 fi
31988
31989
31990 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31991 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31992 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31993   echo $ECHO_N "(cached) $ECHO_C" >&6
31994 else
31995   ac_ext=cpp
31996 ac_cpp='$CXXCPP $CPPFLAGS'
31997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32000
32001    cat >conftest.$ac_ext <<_ACEOF
32002 /* confdefs.h.  */
32003 _ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h.  */
32007 #include <math.h>
32008 int
32009 main ()
32010 {
32011 float f; isnan(f);
32012   ;
32013   return 0;
32014 }
32015 _ACEOF
32016 rm -f conftest.$ac_objext
32017 if { (ac_try="$ac_compile"
32018 case "(($ac_try" in
32019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020   *) ac_try_echo=$ac_try;;
32021 esac
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023   (eval "$ac_compile") 2>conftest.er1
32024   ac_status=$?
32025   grep -v '^ *+' conftest.er1 >conftest.err
32026   rm -f conftest.er1
32027   cat conftest.err >&5
32028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029   (exit $ac_status); } &&
32030          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031   { (case "(($ac_try" in
32032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033   *) ac_try_echo=$ac_try;;
32034 esac
32035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036   (eval "$ac_try") 2>&5
32037   ac_status=$?
32038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039   (exit $ac_status); }; } &&
32040          { ac_try='test -s conftest.$ac_objext'
32041   { (case "(($ac_try" in
32042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043   *) ac_try_echo=$ac_try;;
32044 esac
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046   (eval "$ac_try") 2>&5
32047   ac_status=$?
32048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049   (exit $ac_status); }; }; then
32050   ac_cv_func_isnan_in_math_h=yes
32051 else
32052   echo "$as_me: failed program was:" >&5
32053 sed 's/^/| /' conftest.$ac_ext >&5
32054
32055         ac_cv_func_isnan_in_math_h=no
32056 fi
32057
32058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32059   ac_ext=c
32060 ac_cpp='$CPP $CPPFLAGS'
32061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32064
32065 fi
32066 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32067 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32068
32069
32070 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32071
32072 cat >>confdefs.h <<\_ACEOF
32073 #define HAVE_ISNAN_IN_MATH_H 1
32074 _ACEOF
32075
32076 fi
32077
32078 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32079 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32080 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32081   echo $ECHO_N "(cached) $ECHO_C" >&6
32082 else
32083   ac_ext=cpp
32084 ac_cpp='$CXXCPP $CPPFLAGS'
32085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32088
32089    cat >conftest.$ac_ext <<_ACEOF
32090 /* confdefs.h.  */
32091 _ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h.  */
32095 #include <cmath>
32096 int
32097 main ()
32098 {
32099 float f; isnan(f);
32100   ;
32101   return 0;
32102 }
32103 _ACEOF
32104 rm -f conftest.$ac_objext
32105 if { (ac_try="$ac_compile"
32106 case "(($ac_try" in
32107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108   *) ac_try_echo=$ac_try;;
32109 esac
32110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111   (eval "$ac_compile") 2>conftest.er1
32112   ac_status=$?
32113   grep -v '^ *+' conftest.er1 >conftest.err
32114   rm -f conftest.er1
32115   cat conftest.err >&5
32116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117   (exit $ac_status); } &&
32118          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32119   { (case "(($ac_try" in
32120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121   *) ac_try_echo=$ac_try;;
32122 esac
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124   (eval "$ac_try") 2>&5
32125   ac_status=$?
32126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127   (exit $ac_status); }; } &&
32128          { ac_try='test -s conftest.$ac_objext'
32129   { (case "(($ac_try" in
32130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131   *) ac_try_echo=$ac_try;;
32132 esac
32133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134   (eval "$ac_try") 2>&5
32135   ac_status=$?
32136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137   (exit $ac_status); }; }; then
32138   ac_cv_func_isnan_in_cmath=yes
32139 else
32140   echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32142
32143         ac_cv_func_isnan_in_cmath=no
32144 fi
32145
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147   ac_ext=c
32148 ac_cpp='$CPP $CPPFLAGS'
32149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32152
32153 fi
32154 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32155 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32156
32157 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32158
32159 cat >>confdefs.h <<\_ACEOF
32160 #define HAVE_ISNAN_IN_CMATH 1
32161 _ACEOF
32162
32163 fi
32164
32165 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32166 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32167 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32168   echo $ECHO_N "(cached) $ECHO_C" >&6
32169 else
32170   ac_ext=cpp
32171 ac_cpp='$CXXCPP $CPPFLAGS'
32172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32175
32176    cat >conftest.$ac_ext <<_ACEOF
32177 /* confdefs.h.  */
32178 _ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h.  */
32182 #include <cmath>
32183 int
32184 main ()
32185 {
32186 float f; std::isnan(f);
32187   ;
32188   return 0;
32189 }
32190 _ACEOF
32191 rm -f conftest.$ac_objext
32192 if { (ac_try="$ac_compile"
32193 case "(($ac_try" in
32194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195   *) ac_try_echo=$ac_try;;
32196 esac
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198   (eval "$ac_compile") 2>conftest.er1
32199   ac_status=$?
32200   grep -v '^ *+' conftest.er1 >conftest.err
32201   rm -f conftest.er1
32202   cat conftest.err >&5
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } &&
32205          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32212   ac_status=$?
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); }; } &&
32215          { ac_try='test -s conftest.$ac_objext'
32216   { (case "(($ac_try" in
32217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218   *) ac_try_echo=$ac_try;;
32219 esac
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221   (eval "$ac_try") 2>&5
32222   ac_status=$?
32223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224   (exit $ac_status); }; }; then
32225   ac_cv_func_std_isnan_in_cmath=yes
32226 else
32227   echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32229
32230         ac_cv_func_std_isnan_in_cmath=no
32231 fi
32232
32233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32234   ac_ext=c
32235 ac_cpp='$CPP $CPPFLAGS'
32236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32239
32240 fi
32241 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32242 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32243
32244 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32245
32246 cat >>confdefs.h <<\_ACEOF
32247 #define HAVE_STD_ISNAN_IN_CMATH 1
32248 _ACEOF
32249
32250 fi
32251
32252
32253 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32254 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32255 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32256   echo $ECHO_N "(cached) $ECHO_C" >&6
32257 else
32258   ac_ext=cpp
32259 ac_cpp='$CXXCPP $CPPFLAGS'
32260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32263
32264    cat >conftest.$ac_ext <<_ACEOF
32265 /* confdefs.h.  */
32266 _ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h.  */
32270 #include <math.h>
32271 int
32272 main ()
32273 {
32274 float f; isinf(f);
32275   ;
32276   return 0;
32277 }
32278 _ACEOF
32279 rm -f conftest.$ac_objext
32280 if { (ac_try="$ac_compile"
32281 case "(($ac_try" in
32282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283   *) ac_try_echo=$ac_try;;
32284 esac
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286   (eval "$ac_compile") 2>conftest.er1
32287   ac_status=$?
32288   grep -v '^ *+' conftest.er1 >conftest.err
32289   rm -f conftest.er1
32290   cat conftest.err >&5
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); } &&
32293          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32294   { (case "(($ac_try" in
32295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296   *) ac_try_echo=$ac_try;;
32297 esac
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299   (eval "$ac_try") 2>&5
32300   ac_status=$?
32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302   (exit $ac_status); }; } &&
32303          { ac_try='test -s conftest.$ac_objext'
32304   { (case "(($ac_try" in
32305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306   *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309   (eval "$ac_try") 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; }; then
32313   ac_cv_func_isinf_in_math_h=yes
32314 else
32315   echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32317
32318         ac_cv_func_isinf_in_math_h=no
32319 fi
32320
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322   ac_ext=c
32323 ac_cpp='$CPP $CPPFLAGS'
32324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32327
32328 fi
32329 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32330 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32331
32332 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32333
32334 cat >>confdefs.h <<\_ACEOF
32335 #define HAVE_ISINF_IN_MATH_H 1
32336 _ACEOF
32337
32338 fi
32339
32340 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32341 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32342 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32343   echo $ECHO_N "(cached) $ECHO_C" >&6
32344 else
32345   ac_ext=cpp
32346 ac_cpp='$CXXCPP $CPPFLAGS'
32347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32350
32351    cat >conftest.$ac_ext <<_ACEOF
32352 /* confdefs.h.  */
32353 _ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h.  */
32357 #include <cmath>
32358 int
32359 main ()
32360 {
32361 float f; isinf(f);
32362   ;
32363   return 0;
32364 }
32365 _ACEOF
32366 rm -f conftest.$ac_objext
32367 if { (ac_try="$ac_compile"
32368 case "(($ac_try" in
32369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370   *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373   (eval "$ac_compile") 2>conftest.er1
32374   ac_status=$?
32375   grep -v '^ *+' conftest.er1 >conftest.err
32376   rm -f conftest.er1
32377   cat conftest.err >&5
32378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379   (exit $ac_status); } &&
32380          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32381   { (case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_try") 2>&5
32387   ac_status=$?
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); }; } &&
32390          { ac_try='test -s conftest.$ac_objext'
32391   { (case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_try") 2>&5
32397   ac_status=$?
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); }; }; then
32400   ac_cv_func_isinf_in_cmath=yes
32401 else
32402   echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32404
32405         ac_cv_func_isinf_in_cmath=no
32406 fi
32407
32408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32409   ac_ext=c
32410 ac_cpp='$CPP $CPPFLAGS'
32411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32414
32415 fi
32416 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32417 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32418
32419 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32420
32421 cat >>confdefs.h <<\_ACEOF
32422 #define HAVE_ISINF_IN_CMATH 1
32423 _ACEOF
32424
32425 fi
32426
32427 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32428 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32429 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32430   echo $ECHO_N "(cached) $ECHO_C" >&6
32431 else
32432   ac_ext=cpp
32433 ac_cpp='$CXXCPP $CPPFLAGS'
32434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32437
32438    cat >conftest.$ac_ext <<_ACEOF
32439 /* confdefs.h.  */
32440 _ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h.  */
32444 #include <cmath>
32445 int
32446 main ()
32447 {
32448 float f; std::isinf(f)}
32449   ;
32450   return 0;
32451 }
32452 _ACEOF
32453 rm -f conftest.$ac_objext
32454 if { (ac_try="$ac_compile"
32455 case "(($ac_try" in
32456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457   *) ac_try_echo=$ac_try;;
32458 esac
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460   (eval "$ac_compile") 2>conftest.er1
32461   ac_status=$?
32462   grep -v '^ *+' conftest.er1 >conftest.err
32463   rm -f conftest.er1
32464   cat conftest.err >&5
32465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466   (exit $ac_status); } &&
32467          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32468   { (case "(($ac_try" in
32469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470   *) ac_try_echo=$ac_try;;
32471 esac
32472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473   (eval "$ac_try") 2>&5
32474   ac_status=$?
32475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476   (exit $ac_status); }; } &&
32477          { ac_try='test -s conftest.$ac_objext'
32478   { (case "(($ac_try" in
32479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480   *) ac_try_echo=$ac_try;;
32481 esac
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483   (eval "$ac_try") 2>&5
32484   ac_status=$?
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); }; }; then
32487   ac_cv_func_std_isinf_in_cmath=yes
32488 else
32489   echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32491
32492         ac_cv_func_std_isinf_in_cmath=no
32493 fi
32494
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32496   ac_ext=c
32497 ac_cpp='$CPP $CPPFLAGS'
32498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32501
32502 fi
32503 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32504 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32505
32506 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32507
32508 cat >>confdefs.h <<\_ACEOF
32509 #define HAVE_STD_ISINF_IN_CMATH 1
32510 _ACEOF
32511
32512 fi
32513
32514 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32515 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32516 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32517   echo $ECHO_N "(cached) $ECHO_C" >&6
32518 else
32519   ac_ext=cpp
32520 ac_cpp='$CXXCPP $CPPFLAGS'
32521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
32525    cat >conftest.$ac_ext <<_ACEOF
32526 /* confdefs.h.  */
32527 _ACEOF
32528 cat confdefs.h >>conftest.$ac_ext
32529 cat >>conftest.$ac_ext <<_ACEOF
32530 /* end confdefs.h.  */
32531 #include <ieeefp.h>
32532 int
32533 main ()
32534 {
32535 float f; finite(f);
32536   ;
32537   return 0;
32538 }
32539 _ACEOF
32540 rm -f conftest.$ac_objext
32541 if { (ac_try="$ac_compile"
32542 case "(($ac_try" in
32543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544   *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547   (eval "$ac_compile") 2>conftest.er1
32548   ac_status=$?
32549   grep -v '^ *+' conftest.er1 >conftest.err
32550   rm -f conftest.er1
32551   cat conftest.err >&5
32552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); } &&
32554          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555   { (case "(($ac_try" in
32556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557   *) ac_try_echo=$ac_try;;
32558 esac
32559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560   (eval "$ac_try") 2>&5
32561   ac_status=$?
32562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563   (exit $ac_status); }; } &&
32564          { ac_try='test -s conftest.$ac_objext'
32565   { (case "(($ac_try" in
32566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567   *) ac_try_echo=$ac_try;;
32568 esac
32569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570   (eval "$ac_try") 2>&5
32571   ac_status=$?
32572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573   (exit $ac_status); }; }; then
32574   ac_cv_func_finite_in_ieeefp_h=yes
32575 else
32576   echo "$as_me: failed program was:" >&5
32577 sed 's/^/| /' conftest.$ac_ext >&5
32578
32579         ac_cv_func_finite_in_ieeefp_h=no
32580 fi
32581
32582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32583   ac_ext=c
32584 ac_cpp='$CPP $CPPFLAGS'
32585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589 fi
32590 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32591 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32592
32593 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32594
32595 cat >>confdefs.h <<\_ACEOF
32596 #define HAVE_FINITE_IN_IEEEFP_H 1
32597 _ACEOF
32598
32599 fi
32600
32601
32602
32603
32604
32605 for ac_header in stdlib.h unistd.h
32606 do
32607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32609   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32612   echo $ECHO_N "(cached) $ECHO_C" >&6
32613 fi
32614 ac_res=`eval echo '${'$as_ac_Header'}'`
32615                { echo "$as_me:$LINENO: result: $ac_res" >&5
32616 echo "${ECHO_T}$ac_res" >&6; }
32617 else
32618   # Is the header compilable?
32619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32621 cat >conftest.$ac_ext <<_ACEOF
32622 /* confdefs.h.  */
32623 _ACEOF
32624 cat confdefs.h >>conftest.$ac_ext
32625 cat >>conftest.$ac_ext <<_ACEOF
32626 /* end confdefs.h.  */
32627 $ac_includes_default
32628 #include <$ac_header>
32629 _ACEOF
32630 rm -f conftest.$ac_objext
32631 if { (ac_try="$ac_compile"
32632 case "(($ac_try" in
32633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634   *) ac_try_echo=$ac_try;;
32635 esac
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637   (eval "$ac_compile") 2>conftest.er1
32638   ac_status=$?
32639   grep -v '^ *+' conftest.er1 >conftest.err
32640   rm -f conftest.er1
32641   cat conftest.err >&5
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); } &&
32644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32645   { (case "(($ac_try" in
32646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647   *) ac_try_echo=$ac_try;;
32648 esac
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650   (eval "$ac_try") 2>&5
32651   ac_status=$?
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); }; } &&
32654          { ac_try='test -s conftest.$ac_objext'
32655   { (case "(($ac_try" in
32656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657   *) ac_try_echo=$ac_try;;
32658 esac
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660   (eval "$ac_try") 2>&5
32661   ac_status=$?
32662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663   (exit $ac_status); }; }; then
32664   ac_header_compiler=yes
32665 else
32666   echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669         ac_header_compiler=no
32670 fi
32671
32672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32674 echo "${ECHO_T}$ac_header_compiler" >&6; }
32675
32676 # Is the header present?
32677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32679 cat >conftest.$ac_ext <<_ACEOF
32680 /* confdefs.h.  */
32681 _ACEOF
32682 cat confdefs.h >>conftest.$ac_ext
32683 cat >>conftest.$ac_ext <<_ACEOF
32684 /* end confdefs.h.  */
32685 #include <$ac_header>
32686 _ACEOF
32687 if { (ac_try="$ac_cpp conftest.$ac_ext"
32688 case "(($ac_try" in
32689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690   *) ac_try_echo=$ac_try;;
32691 esac
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32694   ac_status=$?
32695   grep -v '^ *+' conftest.er1 >conftest.err
32696   rm -f conftest.er1
32697   cat conftest.err >&5
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); } >/dev/null; then
32700   if test -s conftest.err; then
32701     ac_cpp_err=$ac_c_preproc_warn_flag
32702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32703   else
32704     ac_cpp_err=
32705   fi
32706 else
32707   ac_cpp_err=yes
32708 fi
32709 if test -z "$ac_cpp_err"; then
32710   ac_header_preproc=yes
32711 else
32712   echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32714
32715   ac_header_preproc=no
32716 fi
32717
32718 rm -f conftest.err conftest.$ac_ext
32719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32720 echo "${ECHO_T}$ac_header_preproc" >&6; }
32721
32722 # So?  What about this header?
32723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32724   yes:no: )
32725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32729     ac_header_preproc=yes
32730     ;;
32731   no:yes:* )
32732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32744     ( cat <<\_ASBOX
32745 ## ----------------------------------- ##
32746 ## Report this to llvmbugs@cs.uiuc.edu ##
32747 ## ----------------------------------- ##
32748 _ASBOX
32749      ) | sed "s/^/$as_me: WARNING:     /" >&2
32750     ;;
32751 esac
32752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32755   echo $ECHO_N "(cached) $ECHO_C" >&6
32756 else
32757   eval "$as_ac_Header=\$ac_header_preproc"
32758 fi
32759 ac_res=`eval echo '${'$as_ac_Header'}'`
32760                { echo "$as_me:$LINENO: result: $ac_res" >&5
32761 echo "${ECHO_T}$ac_res" >&6; }
32762
32763 fi
32764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32765   cat >>confdefs.h <<_ACEOF
32766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32767 _ACEOF
32768
32769 fi
32770
32771 done
32772
32773
32774 for ac_func in getpagesize
32775 do
32776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32780   echo $ECHO_N "(cached) $ECHO_C" >&6
32781 else
32782   cat >conftest.$ac_ext <<_ACEOF
32783 /* confdefs.h.  */
32784 _ACEOF
32785 cat confdefs.h >>conftest.$ac_ext
32786 cat >>conftest.$ac_ext <<_ACEOF
32787 /* end confdefs.h.  */
32788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32790 #define $ac_func innocuous_$ac_func
32791
32792 /* System header to define __stub macros and hopefully few prototypes,
32793     which can conflict with char $ac_func (); below.
32794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32795     <limits.h> exists even on freestanding compilers.  */
32796
32797 #ifdef __STDC__
32798 # include <limits.h>
32799 #else
32800 # include <assert.h>
32801 #endif
32802
32803 #undef $ac_func
32804
32805 /* Override any GCC internal prototype to avoid an error.
32806    Use char because int might match the return type of a GCC
32807    builtin and then its argument prototype would still apply.  */
32808 #ifdef __cplusplus
32809 extern "C"
32810 #endif
32811 char $ac_func ();
32812 /* The GNU C library defines this for functions which it implements
32813     to always fail with ENOSYS.  Some functions are actually named
32814     something starting with __ and the normal name is an alias.  */
32815 #if defined __stub_$ac_func || defined __stub___$ac_func
32816 choke me
32817 #endif
32818
32819 int
32820 main ()
32821 {
32822 return $ac_func ();
32823   ;
32824   return 0;
32825 }
32826 _ACEOF
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (ac_try="$ac_link"
32829 case "(($ac_try" in
32830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831   *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834   (eval "$ac_link") 2>conftest.er1
32835   ac_status=$?
32836   grep -v '^ *+' conftest.er1 >conftest.err
32837   rm -f conftest.er1
32838   cat conftest.err >&5
32839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840   (exit $ac_status); } &&
32841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842   { (case "(($ac_try" in
32843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844   *) ac_try_echo=$ac_try;;
32845 esac
32846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847   (eval "$ac_try") 2>&5
32848   ac_status=$?
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); }; } &&
32851          { ac_try='test -s conftest$ac_exeext'
32852   { (case "(($ac_try" in
32853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854   *) ac_try_echo=$ac_try;;
32855 esac
32856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857   (eval "$ac_try") 2>&5
32858   ac_status=$?
32859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860   (exit $ac_status); }; }; then
32861   eval "$as_ac_var=yes"
32862 else
32863   echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32865
32866         eval "$as_ac_var=no"
32867 fi
32868
32869 rm -f core conftest.err conftest.$ac_objext \
32870       conftest$ac_exeext conftest.$ac_ext
32871 fi
32872 ac_res=`eval echo '${'$as_ac_var'}'`
32873                { echo "$as_me:$LINENO: result: $ac_res" >&5
32874 echo "${ECHO_T}$ac_res" >&6; }
32875 if test `eval echo '${'$as_ac_var'}'` = yes; then
32876   cat >>confdefs.h <<_ACEOF
32877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32878 _ACEOF
32879
32880 fi
32881 done
32882
32883 { echo "$as_me:$LINENO: checking for working mmap" >&5
32884 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32885 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32886   echo $ECHO_N "(cached) $ECHO_C" >&6
32887 else
32888   if test "$cross_compiling" = yes; then
32889   ac_cv_func_mmap_fixed_mapped=no
32890 else
32891   cat >conftest.$ac_ext <<_ACEOF
32892 /* confdefs.h.  */
32893 _ACEOF
32894 cat confdefs.h >>conftest.$ac_ext
32895 cat >>conftest.$ac_ext <<_ACEOF
32896 /* end confdefs.h.  */
32897 $ac_includes_default
32898 /* malloc might have been renamed as rpl_malloc. */
32899 #undef malloc
32900
32901 /* Thanks to Mike Haertel and Jim Avera for this test.
32902    Here is a matrix of mmap possibilities:
32903         mmap private not fixed
32904         mmap private fixed at somewhere currently unmapped
32905         mmap private fixed at somewhere already mapped
32906         mmap shared not fixed
32907         mmap shared fixed at somewhere currently unmapped
32908         mmap shared fixed at somewhere already mapped
32909    For private mappings, we should verify that changes cannot be read()
32910    back from the file, nor mmap's back from the file at a different
32911    address.  (There have been systems where private was not correctly
32912    implemented like the infamous i386 svr4.0, and systems where the
32913    VM page cache was not coherent with the file system buffer cache
32914    like early versions of FreeBSD and possibly contemporary NetBSD.)
32915    For shared mappings, we should conversely verify that changes get
32916    propagated back to all the places they're supposed to be.
32917
32918    Grep wants private fixed already mapped.
32919    The main things grep needs to know about mmap are:
32920    * does it exist and is it safe to write into the mmap'd area
32921    * how to use it (BSD variants)  */
32922
32923 #include <fcntl.h>
32924 #include <sys/mman.h>
32925
32926 #if !STDC_HEADERS && !HAVE_STDLIB_H
32927 char *malloc ();
32928 #endif
32929
32930 /* This mess was copied from the GNU getpagesize.h.  */
32931 #if !HAVE_GETPAGESIZE
32932 /* Assume that all systems that can run configure have sys/param.h.  */
32933 # if !HAVE_SYS_PARAM_H
32934 #  define HAVE_SYS_PARAM_H 1
32935 # endif
32936
32937 # ifdef _SC_PAGESIZE
32938 #  define getpagesize() sysconf(_SC_PAGESIZE)
32939 # else /* no _SC_PAGESIZE */
32940 #  if HAVE_SYS_PARAM_H
32941 #   include <sys/param.h>
32942 #   ifdef EXEC_PAGESIZE
32943 #    define getpagesize() EXEC_PAGESIZE
32944 #   else /* no EXEC_PAGESIZE */
32945 #    ifdef NBPG
32946 #     define getpagesize() NBPG * CLSIZE
32947 #     ifndef CLSIZE
32948 #      define CLSIZE 1
32949 #     endif /* no CLSIZE */
32950 #    else /* no NBPG */
32951 #     ifdef NBPC
32952 #      define getpagesize() NBPC
32953 #     else /* no NBPC */
32954 #      ifdef PAGESIZE
32955 #       define getpagesize() PAGESIZE
32956 #      endif /* PAGESIZE */
32957 #     endif /* no NBPC */
32958 #    endif /* no NBPG */
32959 #   endif /* no EXEC_PAGESIZE */
32960 #  else /* no HAVE_SYS_PARAM_H */
32961 #   define getpagesize() 8192   /* punt totally */
32962 #  endif /* no HAVE_SYS_PARAM_H */
32963 # endif /* no _SC_PAGESIZE */
32964
32965 #endif /* no HAVE_GETPAGESIZE */
32966
32967 int
32968 main ()
32969 {
32970   char *data, *data2, *data3;
32971   int i, pagesize;
32972   int fd;
32973
32974   pagesize = getpagesize ();
32975
32976   /* First, make a file with some known garbage in it. */
32977   data = (char *) malloc (pagesize);
32978   if (!data)
32979     return 1;
32980   for (i = 0; i < pagesize; ++i)
32981     *(data + i) = rand ();
32982   umask (0);
32983   fd = creat ("conftest.mmap", 0600);
32984   if (fd < 0)
32985     return 1;
32986   if (write (fd, data, pagesize) != pagesize)
32987     return 1;
32988   close (fd);
32989
32990   /* Next, try to mmap the file at a fixed address which already has
32991      something else allocated at it.  If we can, also make sure that
32992      we see the same garbage.  */
32993   fd = open ("conftest.mmap", O_RDWR);
32994   if (fd < 0)
32995     return 1;
32996   data2 = (char *) malloc (2 * pagesize);
32997   if (!data2)
32998     return 1;
32999   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33000   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33001                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33002     return 1;
33003   for (i = 0; i < pagesize; ++i)
33004     if (*(data + i) != *(data2 + i))
33005       return 1;
33006
33007   /* Finally, make sure that changes to the mapped area do not
33008      percolate back to the file as seen by read().  (This is a bug on
33009      some variants of i386 svr4.0.)  */
33010   for (i = 0; i < pagesize; ++i)
33011     *(data2 + i) = *(data2 + i) + 1;
33012   data3 = (char *) malloc (pagesize);
33013   if (!data3)
33014     return 1;
33015   if (read (fd, data3, pagesize) != pagesize)
33016     return 1;
33017   for (i = 0; i < pagesize; ++i)
33018     if (*(data + i) != *(data3 + i))
33019       return 1;
33020   close (fd);
33021   return 0;
33022 }
33023 _ACEOF
33024 rm -f conftest$ac_exeext
33025 if { (ac_try="$ac_link"
33026 case "(($ac_try" in
33027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028   *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031   (eval "$ac_link") 2>&5
33032   ac_status=$?
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33035   { (case "(($ac_try" in
33036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037   *) ac_try_echo=$ac_try;;
33038 esac
33039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040   (eval "$ac_try") 2>&5
33041   ac_status=$?
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); }; }; then
33044   ac_cv_func_mmap_fixed_mapped=yes
33045 else
33046   echo "$as_me: program exited with status $ac_status" >&5
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050 ( exit $ac_status )
33051 ac_cv_func_mmap_fixed_mapped=no
33052 fi
33053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33054 fi
33055
33056
33057 fi
33058 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33059 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33060 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33061
33062 cat >>confdefs.h <<\_ACEOF
33063 #define HAVE_MMAP 1
33064 _ACEOF
33065
33066 fi
33067 rm -f conftest.mmap
33068
33069 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33070 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33071 if test "${ac_cv_func_mmap_file+set}" = set; then
33072   echo $ECHO_N "(cached) $ECHO_C" >&6
33073 else
33074    ac_ext=c
33075 ac_cpp='$CPP $CPPFLAGS'
33076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33079
33080   if test "$cross_compiling" = yes; then
33081   ac_cv_func_mmap_file=no
33082 else
33083   cat >conftest.$ac_ext <<_ACEOF
33084
33085     /* confdefs.h.  */
33086 _ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h.  */
33090
33091 #include <sys/types.h>
33092 #include <sys/mman.h>
33093 #include <fcntl.h>
33094
33095 int
33096 main ()
33097 {
33098
33099   int fd;
33100   fd = creat ("foo",0777);
33101   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33102   unlink ("foo");
33103   return (fd != (int) MAP_FAILED);
33104   ;
33105   return 0;
33106 }
33107 _ACEOF
33108 rm -f conftest$ac_exeext
33109 if { (ac_try="$ac_link"
33110 case "(($ac_try" in
33111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112   *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115   (eval "$ac_link") 2>&5
33116   ac_status=$?
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33119   { (case "(($ac_try" in
33120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121   *) ac_try_echo=$ac_try;;
33122 esac
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124   (eval "$ac_try") 2>&5
33125   ac_status=$?
33126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127   (exit $ac_status); }; }; then
33128   ac_cv_func_mmap_file=yes
33129 else
33130   echo "$as_me: program exited with status $ac_status" >&5
33131 echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33133
33134 ( exit $ac_status )
33135 ac_cv_func_mmap_file=no
33136 fi
33137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33138 fi
33139
33140
33141   ac_ext=c
33142 ac_cpp='$CPP $CPPFLAGS'
33143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33146
33147
33148 fi
33149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33150 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33151 if test "$ac_cv_func_mmap_file" = yes; then
33152
33153 cat >>confdefs.h <<\_ACEOF
33154 #define HAVE_MMAP_FILE
33155 _ACEOF
33156
33157    MMAP_FILE=yes
33158
33159 fi
33160
33161 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33162 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33163 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33164   echo $ECHO_N "(cached) $ECHO_C" >&6
33165 else
33166   if test "$llvm_cv_os_type" = "Interix" ; then
33167    ac_cv_need_dev_zero_for_mmap=yes
33168  else
33169    ac_cv_need_dev_zero_for_mmap=no
33170  fi
33171
33172 fi
33173 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33174 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33175 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33176
33177 cat >>confdefs.h <<\_ACEOF
33178 #define NEED_DEV_ZERO_FOR_MMAP 1
33179 _ACEOF
33180
33181 fi
33182 { echo "$as_me:$LINENO: checking for mprotect" >&5
33183 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33184 if test "${ac_cv_func_mprotect+set}" = set; then
33185   echo $ECHO_N "(cached) $ECHO_C" >&6
33186 else
33187   cat >conftest.$ac_ext <<_ACEOF
33188 /* confdefs.h.  */
33189 _ACEOF
33190 cat confdefs.h >>conftest.$ac_ext
33191 cat >>conftest.$ac_ext <<_ACEOF
33192 /* end confdefs.h.  */
33193 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33195 #define mprotect innocuous_mprotect
33196
33197 /* System header to define __stub macros and hopefully few prototypes,
33198     which can conflict with char mprotect (); below.
33199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33200     <limits.h> exists even on freestanding compilers.  */
33201
33202 #ifdef __STDC__
33203 # include <limits.h>
33204 #else
33205 # include <assert.h>
33206 #endif
33207
33208 #undef mprotect
33209
33210 /* Override any GCC internal prototype to avoid an error.
33211    Use char because int might match the return type of a GCC
33212    builtin and then its argument prototype would still apply.  */
33213 #ifdef __cplusplus
33214 extern "C"
33215 #endif
33216 char mprotect ();
33217 /* The GNU C library defines this for functions which it implements
33218     to always fail with ENOSYS.  Some functions are actually named
33219     something starting with __ and the normal name is an alias.  */
33220 #if defined __stub_mprotect || defined __stub___mprotect
33221 choke me
33222 #endif
33223
33224 int
33225 main ()
33226 {
33227 return mprotect ();
33228   ;
33229   return 0;
33230 }
33231 _ACEOF
33232 rm -f conftest.$ac_objext conftest$ac_exeext
33233 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
33240   ac_status=$?
33241   grep -v '^ *+' conftest.er1 >conftest.err
33242   rm -f conftest.er1
33243   cat conftest.err >&5
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); } &&
33246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33247   { (case "(($ac_try" in
33248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249   *) ac_try_echo=$ac_try;;
33250 esac
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252   (eval "$ac_try") 2>&5
33253   ac_status=$?
33254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255   (exit $ac_status); }; } &&
33256          { ac_try='test -s conftest$ac_exeext'
33257   { (case "(($ac_try" in
33258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259   *) ac_try_echo=$ac_try;;
33260 esac
33261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262   (eval "$ac_try") 2>&5
33263   ac_status=$?
33264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265   (exit $ac_status); }; }; then
33266   ac_cv_func_mprotect=yes
33267 else
33268   echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33270
33271         ac_cv_func_mprotect=no
33272 fi
33273
33274 rm -f core conftest.err conftest.$ac_objext \
33275       conftest$ac_exeext conftest.$ac_ext
33276 fi
33277 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33278 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33279 if test $ac_cv_func_mprotect = yes; then
33280   :
33281 else
33282   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33283 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33284    { (exit 1); exit 1; }; }
33285 fi
33286
33287
33288 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33289 then
33290   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33291 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33292 fi
33293 if test "$ac_cv_func_mmap_file" = "no"
33294 then
33295   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33296 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33297 fi
33298
33299
33300 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33301 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33302 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33303   echo $ECHO_N "(cached) $ECHO_C" >&6
33304 else
33305   llvm_cv_llvmgcc_sanity="no"
33306 if test -x "$LLVMGCC" ; then
33307   cp /dev/null conftest.c
33308   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33309   if test $? -eq 0 ; then
33310     llvm_cv_llvmgcc_sanity="yes"
33311   fi
33312   rm conftest.c
33313 fi
33314 fi
33315 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33316 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33317
33318 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33319   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33320   LLVMCC1=$llvmcc1path
33321
33322   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33323   LLVMCC1PLUS=$llvmcc1pluspath
33324
33325   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33326   LLVMGCCDIR=$llvmgccdir
33327
33328   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33329   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33330   LLVMGCC_VERSION=$llvmgccversion
33331
33332   LLVMGCC_MAJVERS=$llvmgccmajvers
33333
33334 fi
33335
33336 SHLIBEXT=$libltdl_cv_shlibext
33337
33338
33339 # Translate the various configuration directories and other basic
33340 # information into substitutions that will end up in Makefile.config.in
33341 # that these configured values can be used by the makefiles
33342 if test "${prefix}" == "NONE" ; then
33343   prefix="/usr/local"
33344 fi
33345 eval LLVM_PREFIX="${prefix}";
33346 eval LLVM_BINDIR="${prefix}/bin";
33347 eval LLVM_LIBDIR="${prefix}/lib";
33348 eval LLVM_DATADIR="${prefix}/share/llvm";
33349 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33350 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33351 eval LLVM_INCLUDEDIR="${prefix}/include";
33352 eval LLVM_INFODIR="${prefix}/info";
33353 eval LLVM_MANDIR="${prefix}/man";
33354 LLVM_CONFIGTIME=`date`
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366 # Place the various directores into the config.h file as #defines so that we
33367 # can know about the installation paths within LLVM.
33368
33369 cat >>confdefs.h <<_ACEOF
33370 #define LLVM_PREFIX "$LLVM_PREFIX"
33371 _ACEOF
33372
33373
33374 cat >>confdefs.h <<_ACEOF
33375 #define LLVM_BINDIR "$LLVM_BINDIR"
33376 _ACEOF
33377
33378
33379 cat >>confdefs.h <<_ACEOF
33380 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33381 _ACEOF
33382
33383
33384 cat >>confdefs.h <<_ACEOF
33385 #define LLVM_DATADIR "$LLVM_DATADIR"
33386 _ACEOF
33387
33388
33389 cat >>confdefs.h <<_ACEOF
33390 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33391 _ACEOF
33392
33393
33394 cat >>confdefs.h <<_ACEOF
33395 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33396 _ACEOF
33397
33398
33399 cat >>confdefs.h <<_ACEOF
33400 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33401 _ACEOF
33402
33403
33404 cat >>confdefs.h <<_ACEOF
33405 #define LLVM_INFODIR "$LLVM_INFODIR"
33406 _ACEOF
33407
33408
33409 cat >>confdefs.h <<_ACEOF
33410 #define LLVM_MANDIR "$LLVM_MANDIR"
33411 _ACEOF
33412
33413
33414 cat >>confdefs.h <<_ACEOF
33415 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33416 _ACEOF
33417
33418
33419
33420 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33421
33422 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33423
33424 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33425
33426 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33427
33428 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33429
33430
33431 ac_config_files="$ac_config_files Makefile.config"
33432
33433
33434 ac_config_files="$ac_config_files llvm.spec"
33435
33436
33437 ac_config_files="$ac_config_files docs/doxygen.cfg"
33438
33439
33440 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33441
33442
33443 ac_config_commands="$ac_config_commands setup"
33444
33445 ac_config_commands="$ac_config_commands Makefile"
33446
33447
33448 ac_config_commands="$ac_config_commands Makefile.common"
33449
33450
33451 ac_config_commands="$ac_config_commands examples/Makefile"
33452
33453
33454 ac_config_commands="$ac_config_commands lib/Makefile"
33455
33456
33457 ac_config_commands="$ac_config_commands runtime/Makefile"
33458
33459
33460 ac_config_commands="$ac_config_commands test/Makefile"
33461
33462
33463 ac_config_commands="$ac_config_commands test/Makefile.tests"
33464
33465
33466 ac_config_commands="$ac_config_commands tools/Makefile"
33467
33468
33469 ac_config_commands="$ac_config_commands utils/Makefile"
33470
33471
33472 ac_config_commands="$ac_config_commands projects/Makefile"
33473
33474
33475
33476 cat >confcache <<\_ACEOF
33477 # This file is a shell script that caches the results of configure
33478 # tests run on this system so they can be shared between configure
33479 # scripts and configure runs, see configure's option --config-cache.
33480 # It is not useful on other systems.  If it contains results you don't
33481 # want to keep, you may remove or edit it.
33482 #
33483 # config.status only pays attention to the cache file if you give it
33484 # the --recheck option to rerun configure.
33485 #
33486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33488 # following values.
33489
33490 _ACEOF
33491
33492 # The following way of writing the cache mishandles newlines in values,
33493 # but we know of no workaround that is simple, portable, and efficient.
33494 # So, we kill variables containing newlines.
33495 # Ultrix sh set writes to stderr and can't be redirected directly,
33496 # and sets the high bit in the cache file unless we assign to the vars.
33497 (
33498   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33499     eval ac_val=\$$ac_var
33500     case $ac_val in #(
33501     *${as_nl}*)
33502       case $ac_var in #(
33503       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33505       esac
33506       case $ac_var in #(
33507       _ | IFS | as_nl) ;; #(
33508       *) $as_unset $ac_var ;;
33509       esac ;;
33510     esac
33511   done
33512
33513   (set) 2>&1 |
33514     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33515     *${as_nl}ac_space=\ *)
33516       # `set' does not quote correctly, so add quotes (double-quote
33517       # substitution turns \\\\ into \\, and sed turns \\ into \).
33518       sed -n \
33519         "s/'/'\\\\''/g;
33520           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33521       ;; #(
33522     *)
33523       # `set' quotes correctly as required by POSIX, so do not add quotes.
33524       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33525       ;;
33526     esac |
33527     sort
33528 ) |
33529   sed '
33530      /^ac_cv_env_/b end
33531      t clear
33532      :clear
33533      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33534      t end
33535      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33536      :end' >>confcache
33537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33538   if test -w "$cache_file"; then
33539     test "x$cache_file" != "x/dev/null" &&
33540       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33541 echo "$as_me: updating cache $cache_file" >&6;}
33542     cat confcache >$cache_file
33543   else
33544     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33546   fi
33547 fi
33548 rm -f confcache
33549
33550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33551 # Let make expand exec_prefix.
33552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33553
33554 DEFS=-DHAVE_CONFIG_H
33555
33556 ac_libobjs=
33557 ac_ltlibobjs=
33558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33559   # 1. Remove the extension, and $U if already installed.
33560   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33561   ac_i=`echo "$ac_i" | sed "$ac_script"`
33562   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33563   #    will be set to the directory where LIBOBJS objects are built.
33564   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33565   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33566 done
33567 LIBOBJS=$ac_libobjs
33568
33569 LTLIBOBJS=$ac_ltlibobjs
33570
33571
33572 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33573   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33574 Usually this means the macro was only invoked conditionally." >&5
33575 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33576 Usually this means the macro was only invoked conditionally." >&2;}
33577    { (exit 1); exit 1; }; }
33578 fi
33579 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33580   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33581 Usually this means the macro was only invoked conditionally." >&5
33582 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33583 Usually this means the macro was only invoked conditionally." >&2;}
33584    { (exit 1); exit 1; }; }
33585 fi
33586
33587 : ${CONFIG_STATUS=./config.status}
33588 ac_clean_files_save=$ac_clean_files
33589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33592 cat >$CONFIG_STATUS <<_ACEOF
33593 #! $SHELL
33594 # Generated by $as_me.
33595 # Run this file to recreate the current configuration.
33596 # Compiler output produced by configure, useful for debugging
33597 # configure, is in config.log if it exists.
33598
33599 debug=false
33600 ac_cs_recheck=false
33601 ac_cs_silent=false
33602 SHELL=\${CONFIG_SHELL-$SHELL}
33603 _ACEOF
33604
33605 cat >>$CONFIG_STATUS <<\_ACEOF
33606 ## --------------------- ##
33607 ## M4sh Initialization.  ##
33608 ## --------------------- ##
33609
33610 # Be Bourne compatible
33611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33612   emulate sh
33613   NULLCMD=:
33614   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33615   # is contrary to our usage.  Disable this feature.
33616   alias -g '${1+"$@"}'='"$@"'
33617   setopt NO_GLOB_SUBST
33618 else
33619   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33620 fi
33621 BIN_SH=xpg4; export BIN_SH # for Tru64
33622 DUALCASE=1; export DUALCASE # for MKS sh
33623
33624
33625 # PATH needs CR
33626 # Avoid depending upon Character Ranges.
33627 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33628 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33629 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33630 as_cr_digits='0123456789'
33631 as_cr_alnum=$as_cr_Letters$as_cr_digits
33632
33633 # The user is always right.
33634 if test "${PATH_SEPARATOR+set}" != set; then
33635   echo "#! /bin/sh" >conf$$.sh
33636   echo  "exit 0"   >>conf$$.sh
33637   chmod +x conf$$.sh
33638   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33639     PATH_SEPARATOR=';'
33640   else
33641     PATH_SEPARATOR=:
33642   fi
33643   rm -f conf$$.sh
33644 fi
33645
33646 # Support unset when possible.
33647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33648   as_unset=unset
33649 else
33650   as_unset=false
33651 fi
33652
33653
33654 # IFS
33655 # We need space, tab and new line, in precisely that order.  Quoting is
33656 # there to prevent editors from complaining about space-tab.
33657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33658 # splitting by setting IFS to empty value.)
33659 as_nl='
33660 '
33661 IFS=" ""        $as_nl"
33662
33663 # Find who we are.  Look in the path if we contain no directory separator.
33664 case $0 in
33665   *[\\/]* ) as_myself=$0 ;;
33666   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33667 for as_dir in $PATH
33668 do
33669   IFS=$as_save_IFS
33670   test -z "$as_dir" && as_dir=.
33671   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33672 done
33673 IFS=$as_save_IFS
33674
33675      ;;
33676 esac
33677 # We did not find ourselves, most probably we were run as `sh COMMAND'
33678 # in which case we are not to be found in the path.
33679 if test "x$as_myself" = x; then
33680   as_myself=$0
33681 fi
33682 if test ! -f "$as_myself"; then
33683   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33684   { (exit 1); exit 1; }
33685 fi
33686
33687 # Work around bugs in pre-3.0 UWIN ksh.
33688 for as_var in ENV MAIL MAILPATH
33689 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33690 done
33691 PS1='$ '
33692 PS2='> '
33693 PS4='+ '
33694
33695 # NLS nuisances.
33696 for as_var in \
33697   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33698   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33699   LC_TELEPHONE LC_TIME
33700 do
33701   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33702     eval $as_var=C; export $as_var
33703   else
33704     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33705   fi
33706 done
33707
33708 # Required to use basename.
33709 if expr a : '\(a\)' >/dev/null 2>&1 &&
33710    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33711   as_expr=expr
33712 else
33713   as_expr=false
33714 fi
33715
33716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33717   as_basename=basename
33718 else
33719   as_basename=false
33720 fi
33721
33722
33723 # Name of the executable.
33724 as_me=`$as_basename -- "$0" ||
33725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33726          X"$0" : 'X\(//\)$' \| \
33727          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33728 echo X/"$0" |
33729     sed '/^.*\/\([^/][^/]*\)\/*$/{
33730             s//\1/
33731             q
33732           }
33733           /^X\/\(\/\/\)$/{
33734             s//\1/
33735             q
33736           }
33737           /^X\/\(\/\).*/{
33738             s//\1/
33739             q
33740           }
33741           s/.*/./; q'`
33742
33743 # CDPATH.
33744 $as_unset CDPATH
33745
33746
33747
33748   as_lineno_1=$LINENO
33749   as_lineno_2=$LINENO
33750   test "x$as_lineno_1" != "x$as_lineno_2" &&
33751   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33752
33753   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33754   # uniformly replaced by the line number.  The first 'sed' inserts a
33755   # line-number line after each line using $LINENO; the second 'sed'
33756   # does the real work.  The second script uses 'N' to pair each
33757   # line-number line with the line containing $LINENO, and appends
33758   # trailing '-' during substitution so that $LINENO is not a special
33759   # case at line end.
33760   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33761   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33762   # E. McMahon (1931-1989) for sed's syntax.  :-)
33763   sed -n '
33764     p
33765     /[$]LINENO/=
33766   ' <$as_myself |
33767     sed '
33768       s/[$]LINENO.*/&-/
33769       t lineno
33770       b
33771       :lineno
33772       N
33773       :loop
33774       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33775       t loop
33776       s/-\n.*//
33777     ' >$as_me.lineno &&
33778   chmod +x "$as_me.lineno" ||
33779     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33780    { (exit 1); exit 1; }; }
33781
33782   # Don't try to exec as it changes $[0], causing all sort of problems
33783   # (the dirname of $[0] is not the place where we might find the
33784   # original and so on.  Autoconf is especially sensitive to this).
33785   . "./$as_me.lineno"
33786   # Exit status is that of the last command.
33787   exit
33788 }
33789
33790
33791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33792   as_dirname=dirname
33793 else
33794   as_dirname=false
33795 fi
33796
33797 ECHO_C= ECHO_N= ECHO_T=
33798 case `echo -n x` in
33799 -n*)
33800   case `echo 'x\c'` in
33801   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33802   *)   ECHO_C='\c';;
33803   esac;;
33804 *)
33805   ECHO_N='-n';;
33806 esac
33807
33808 if expr a : '\(a\)' >/dev/null 2>&1 &&
33809    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33810   as_expr=expr
33811 else
33812   as_expr=false
33813 fi
33814
33815 rm -f conf$$ conf$$.exe conf$$.file
33816 if test -d conf$$.dir; then
33817   rm -f conf$$.dir/conf$$.file
33818 else
33819   rm -f conf$$.dir
33820   mkdir conf$$.dir
33821 fi
33822 echo >conf$$.file
33823 if ln -s conf$$.file conf$$ 2>/dev/null; then
33824   as_ln_s='ln -s'
33825   # ... but there are two gotchas:
33826   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33827   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33828   # In both cases, we have to default to `cp -p'.
33829   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33830     as_ln_s='cp -p'
33831 elif ln conf$$.file conf$$ 2>/dev/null; then
33832   as_ln_s=ln
33833 else
33834   as_ln_s='cp -p'
33835 fi
33836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33837 rmdir conf$$.dir 2>/dev/null
33838
33839 if mkdir -p . 2>/dev/null; then
33840   as_mkdir_p=:
33841 else
33842   test -d ./-p && rmdir ./-p
33843   as_mkdir_p=false
33844 fi
33845
33846 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33847 # systems may use methods other than mode bits to determine executability.
33848 cat >conf$$.file <<_ASEOF
33849 #! /bin/sh
33850 exit 0
33851 _ASEOF
33852 chmod +x conf$$.file
33853 if test -x conf$$.file >/dev/null 2>&1; then
33854   as_executable_p="test -x"
33855 else
33856   as_executable_p=:
33857 fi
33858 rm -f conf$$.file
33859
33860 # Sed expression to map a string onto a valid CPP name.
33861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33862
33863 # Sed expression to map a string onto a valid variable name.
33864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33865
33866
33867 exec 6>&1
33868
33869 # Save the log message, to keep $[0] and so on meaningful, and to
33870 # report actual input values of CONFIG_FILES etc. instead of their
33871 # values after options handling.
33872 ac_log="
33873 This file was extended by llvm $as_me 2.0cvs, which was
33874 generated by GNU Autoconf 2.60.  Invocation command line was
33875
33876   CONFIG_FILES    = $CONFIG_FILES
33877   CONFIG_HEADERS  = $CONFIG_HEADERS
33878   CONFIG_LINKS    = $CONFIG_LINKS
33879   CONFIG_COMMANDS = $CONFIG_COMMANDS
33880   $ $0 $@
33881
33882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33883 "
33884
33885 _ACEOF
33886
33887 cat >>$CONFIG_STATUS <<_ACEOF
33888 # Files that config.status was made for.
33889 config_files="$ac_config_files"
33890 config_headers="$ac_config_headers"
33891 config_commands="$ac_config_commands"
33892
33893 _ACEOF
33894
33895 cat >>$CONFIG_STATUS <<\_ACEOF
33896 ac_cs_usage="\
33897 \`$as_me' instantiates files from templates according to the
33898 current configuration.
33899
33900 Usage: $0 [OPTIONS] [FILE]...
33901
33902   -h, --help       print this help, then exit
33903   -V, --version    print version number, then exit
33904   -q, --quiet      do not print progress messages
33905   -d, --debug      don't remove temporary files
33906       --recheck    update $as_me by reconfiguring in the same conditions
33907   --file=FILE[:TEMPLATE]
33908                    instantiate the configuration file FILE
33909   --header=FILE[:TEMPLATE]
33910                    instantiate the configuration header FILE
33911
33912 Configuration files:
33913 $config_files
33914
33915 Configuration headers:
33916 $config_headers
33917
33918 Configuration commands:
33919 $config_commands
33920
33921 Report bugs to <bug-autoconf@gnu.org>."
33922
33923 _ACEOF
33924 cat >>$CONFIG_STATUS <<_ACEOF
33925 ac_cs_version="\\
33926 llvm config.status 2.0cvs
33927 configured by $0, generated by GNU Autoconf 2.60,
33928   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33929
33930 Copyright (C) 2006 Free Software Foundation, Inc.
33931 This config.status script is free software; the Free Software Foundation
33932 gives unlimited permission to copy, distribute and modify it."
33933
33934 ac_pwd='$ac_pwd'
33935 srcdir='$srcdir'
33936 INSTALL='$INSTALL'
33937 _ACEOF
33938
33939 cat >>$CONFIG_STATUS <<\_ACEOF
33940 # If no file are specified by the user, then we need to provide default
33941 # value.  By we need to know if files were specified by the user.
33942 ac_need_defaults=:
33943 while test $# != 0
33944 do
33945   case $1 in
33946   --*=*)
33947     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33948     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33949     ac_shift=:
33950     ;;
33951   *)
33952     ac_option=$1
33953     ac_optarg=$2
33954     ac_shift=shift
33955     ;;
33956   esac
33957
33958   case $ac_option in
33959   # Handling of the options.
33960   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33961     ac_cs_recheck=: ;;
33962   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33963     echo "$ac_cs_version"; exit ;;
33964   --debug | --debu | --deb | --de | --d | -d )
33965     debug=: ;;
33966   --file | --fil | --fi | --f )
33967     $ac_shift
33968     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33969     ac_need_defaults=false;;
33970   --header | --heade | --head | --hea )
33971     $ac_shift
33972     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33973     ac_need_defaults=false;;
33974   --he | --h)
33975     # Conflict between --help and --header
33976     { echo "$as_me: error: ambiguous option: $1
33977 Try \`$0 --help' for more information." >&2
33978    { (exit 1); exit 1; }; };;
33979   --help | --hel | -h )
33980     echo "$ac_cs_usage"; exit ;;
33981   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33982   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33983     ac_cs_silent=: ;;
33984
33985   # This is an error.
33986   -*) { echo "$as_me: error: unrecognized option: $1
33987 Try \`$0 --help' for more information." >&2
33988    { (exit 1); exit 1; }; } ;;
33989
33990   *) ac_config_targets="$ac_config_targets $1"
33991      ac_need_defaults=false ;;
33992
33993   esac
33994   shift
33995 done
33996
33997 ac_configure_extra_args=
33998
33999 if $ac_cs_silent; then
34000   exec 6>/dev/null
34001   ac_configure_extra_args="$ac_configure_extra_args --silent"
34002 fi
34003
34004 _ACEOF
34005 cat >>$CONFIG_STATUS <<_ACEOF
34006 if \$ac_cs_recheck; then
34007   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34008   CONFIG_SHELL=$SHELL
34009   export CONFIG_SHELL
34010   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34011 fi
34012
34013 _ACEOF
34014 cat >>$CONFIG_STATUS <<\_ACEOF
34015 exec 5>>config.log
34016 {
34017   echo
34018   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34019 ## Running $as_me. ##
34020 _ASBOX
34021   echo "$ac_log"
34022 } >&5
34023
34024 _ACEOF
34025 cat >>$CONFIG_STATUS <<_ACEOF
34026 #
34027 # INIT-COMMANDS
34028 #
34029 llvm_src="${srcdir}"
34030
34031 _ACEOF
34032
34033 cat >>$CONFIG_STATUS <<\_ACEOF
34034
34035 # Handling of arguments.
34036 for ac_config_target in $ac_config_targets
34037 do
34038   case $ac_config_target in
34039     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34040     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34041     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34042     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34043     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34044     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34045     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34046     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34047     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34048     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34049     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34050     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34051     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34052     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34053     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34054     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34055     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34056     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34057     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34058     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34059
34060   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34061 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34062    { (exit 1); exit 1; }; };;
34063   esac
34064 done
34065
34066
34067 # If the user did not use the arguments to specify the items to instantiate,
34068 # then the envvar interface is used.  Set only those that are not.
34069 # We use the long form for the default assignment because of an extremely
34070 # bizarre bug on SunOS 4.1.3.
34071 if $ac_need_defaults; then
34072   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34073   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34074   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34075 fi
34076
34077 # Have a temporary directory for convenience.  Make it in the build tree
34078 # simply because there is no reason against having it here, and in addition,
34079 # creating and moving files from /tmp can sometimes cause problems.
34080 # Hook for its removal unless debugging.
34081 # Note that there is a small window in which the directory will not be cleaned:
34082 # after its creation but before its name has been assigned to `$tmp'.
34083 $debug ||
34084 {
34085   tmp=
34086   trap 'exit_status=$?
34087   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34088 ' 0
34089   trap '{ (exit 1); exit 1; }' 1 2 13 15
34090 }
34091 # Create a (secure) tmp directory for tmp files.
34092
34093 {
34094   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34095   test -n "$tmp" && test -d "$tmp"
34096 }  ||
34097 {
34098   tmp=./conf$$-$RANDOM
34099   (umask 077 && mkdir "$tmp")
34100 } ||
34101 {
34102    echo "$me: cannot create a temporary directory in ." >&2
34103    { (exit 1); exit 1; }
34104 }
34105
34106 #
34107 # Set up the sed scripts for CONFIG_FILES section.
34108 #
34109
34110 # No need to generate the scripts if there are no CONFIG_FILES.
34111 # This happens for instance when ./config.status config.h
34112 if test -n "$CONFIG_FILES"; then
34113
34114 _ACEOF
34115
34116
34117
34118 ac_delim='%!_!# '
34119 for ac_last_try in false false false false false :; do
34120   cat >conf$$subs.sed <<_ACEOF
34121 SHELL!$SHELL$ac_delim
34122 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34123 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34124 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34125 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34126 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34127 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34128 exec_prefix!$exec_prefix$ac_delim
34129 prefix!$prefix$ac_delim
34130 program_transform_name!$program_transform_name$ac_delim
34131 bindir!$bindir$ac_delim
34132 sbindir!$sbindir$ac_delim
34133 libexecdir!$libexecdir$ac_delim
34134 datarootdir!$datarootdir$ac_delim
34135 datadir!$datadir$ac_delim
34136 sysconfdir!$sysconfdir$ac_delim
34137 sharedstatedir!$sharedstatedir$ac_delim
34138 localstatedir!$localstatedir$ac_delim
34139 includedir!$includedir$ac_delim
34140 oldincludedir!$oldincludedir$ac_delim
34141 docdir!$docdir$ac_delim
34142 infodir!$infodir$ac_delim
34143 htmldir!$htmldir$ac_delim
34144 dvidir!$dvidir$ac_delim
34145 pdfdir!$pdfdir$ac_delim
34146 psdir!$psdir$ac_delim
34147 libdir!$libdir$ac_delim
34148 localedir!$localedir$ac_delim
34149 mandir!$mandir$ac_delim
34150 DEFS!$DEFS$ac_delim
34151 ECHO_C!$ECHO_C$ac_delim
34152 ECHO_N!$ECHO_N$ac_delim
34153 ECHO_T!$ECHO_T$ac_delim
34154 LIBS!$LIBS$ac_delim
34155 build_alias!$build_alias$ac_delim
34156 host_alias!$host_alias$ac_delim
34157 target_alias!$target_alias$ac_delim
34158 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34159 subdirs!$subdirs$ac_delim
34160 build!$build$ac_delim
34161 build_cpu!$build_cpu$ac_delim
34162 build_vendor!$build_vendor$ac_delim
34163 build_os!$build_os$ac_delim
34164 host!$host$ac_delim
34165 host_cpu!$host_cpu$ac_delim
34166 host_vendor!$host_vendor$ac_delim
34167 host_os!$host_os$ac_delim
34168 target!$target$ac_delim
34169 target_cpu!$target_cpu$ac_delim
34170 target_vendor!$target_vendor$ac_delim
34171 target_os!$target_os$ac_delim
34172 OS!$OS$ac_delim
34173 LINKALL!$LINKALL$ac_delim
34174 NOLINKALL!$NOLINKALL$ac_delim
34175 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34176 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34177 ARCH!$ARCH$ac_delim
34178 ENDIAN!$ENDIAN$ac_delim
34179 CC!$CC$ac_delim
34180 CFLAGS!$CFLAGS$ac_delim
34181 LDFLAGS!$LDFLAGS$ac_delim
34182 CPPFLAGS!$CPPFLAGS$ac_delim
34183 ac_ct_CC!$ac_ct_CC$ac_delim
34184 EXEEXT!$EXEEXT$ac_delim
34185 OBJEXT!$OBJEXT$ac_delim
34186 CPP!$CPP$ac_delim
34187 GREP!$GREP$ac_delim
34188 EGREP!$EGREP$ac_delim
34189 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34190 BUILD_CC!$BUILD_CC$ac_delim
34191 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34192 CVSBUILD!$CVSBUILD$ac_delim
34193 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34194 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34195 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34196 JIT!$JIT$ac_delim
34197 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34198 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34199 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34200 ENABLE_PIC!$ENABLE_PIC$ac_delim
34201 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34202 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34203 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34204 CXX!$CXX$ac_delim
34205 CXXFLAGS!$CXXFLAGS$ac_delim
34206 ac_ct_CXX!$ac_ct_CXX$ac_delim
34207 LEX!$LEX$ac_delim
34208 LEXLIB!$LEXLIB$ac_delim
34209 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34210 FLEX!$FLEX$ac_delim
34211 YACC!$YACC$ac_delim
34212 YFLAGS!$YFLAGS$ac_delim
34213 BISON!$BISON$ac_delim
34214 NM!$NM$ac_delim
34215 ifGNUmake!$ifGNUmake$ac_delim
34216 LN_S!$LN_S$ac_delim
34217 CMP!$CMP$ac_delim
34218 _ACEOF
34219
34220   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34221     break
34222   elif $ac_last_try; then
34223     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34224 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34225    { (exit 1); exit 1; }; }
34226   else
34227     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34228   fi
34229 done
34230
34231 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34232 if test -n "$ac_eof"; then
34233   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34234   ac_eof=`expr $ac_eof + 1`
34235 fi
34236
34237 cat >>$CONFIG_STATUS <<_ACEOF
34238 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34240 _ACEOF
34241 sed '
34242 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34243 s/^/s,@/; s/!/@,|#_!!_#|/
34244 :n
34245 t n
34246 s/'"$ac_delim"'$/,g/; t
34247 s/$/\\/; p
34248 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34249 ' >>$CONFIG_STATUS <conf$$subs.sed
34250 rm -f conf$$subs.sed
34251 cat >>$CONFIG_STATUS <<_ACEOF
34252 CEOF$ac_eof
34253 _ACEOF
34254
34255
34256 ac_delim='%!_!# '
34257 for ac_last_try in false false false false false :; do
34258   cat >conf$$subs.sed <<_ACEOF
34259 CP!$CP$ac_delim
34260 DATE!$DATE$ac_delim
34261 FIND!$FIND$ac_delim
34262 MKDIR!$MKDIR$ac_delim
34263 MV!$MV$ac_delim
34264 RANLIB!$RANLIB$ac_delim
34265 RM!$RM$ac_delim
34266 SED!$SED$ac_delim
34267 TAR!$TAR$ac_delim
34268 BINPWD!$BINPWD$ac_delim
34269 GRAPHVIZ!$GRAPHVIZ$ac_delim
34270 DOT!$DOT$ac_delim
34271 GV!$GV$ac_delim
34272 DOTTY!$DOTTY$ac_delim
34273 PERL!$PERL$ac_delim
34274 HAVE_PERL!$HAVE_PERL$ac_delim
34275 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34276 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34277 INSTALL_DATA!$INSTALL_DATA$ac_delim
34278 BZIP2!$BZIP2$ac_delim
34279 DOXYGEN!$DOXYGEN$ac_delim
34280 GROFF!$GROFF$ac_delim
34281 GZIP!$GZIP$ac_delim
34282 POD2HTML!$POD2HTML$ac_delim
34283 POD2MAN!$POD2MAN$ac_delim
34284 RUNTEST!$RUNTEST$ac_delim
34285 TCLSH!$TCLSH$ac_delim
34286 ZIP!$ZIP$ac_delim
34287 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34288 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34289 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34290 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34291 LIBADD_DL!$LIBADD_DL$ac_delim
34292 ECHO!$ECHO$ac_delim
34293 AR!$AR$ac_delim
34294 STRIP!$STRIP$ac_delim
34295 CXXCPP!$CXXCPP$ac_delim
34296 F77!$F77$ac_delim
34297 FFLAGS!$FFLAGS$ac_delim
34298 ac_ct_F77!$ac_ct_F77$ac_delim
34299 LIBTOOL!$LIBTOOL$ac_delim
34300 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34301 LLVMGCC!$LLVMGCC$ac_delim
34302 LLVMGXX!$LLVMGXX$ac_delim
34303 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34304 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34305 ALLOCA!$ALLOCA$ac_delim
34306 MMAP_FILE!$MMAP_FILE$ac_delim
34307 LLVMCC1!$LLVMCC1$ac_delim
34308 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34309 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34310 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34311 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34312 SHLIBEXT!$SHLIBEXT$ac_delim
34313 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34314 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34315 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34316 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34317 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34318 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34319 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34320 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34321 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34322 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34323 LIBOBJS!$LIBOBJS$ac_delim
34324 LTLIBOBJS!$LTLIBOBJS$ac_delim
34325 _ACEOF
34326
34327   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
34328     break
34329   elif $ac_last_try; then
34330     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34331 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34332    { (exit 1); exit 1; }; }
34333   else
34334     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34335   fi
34336 done
34337
34338 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34339 if test -n "$ac_eof"; then
34340   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34341   ac_eof=`expr $ac_eof + 1`
34342 fi
34343
34344 cat >>$CONFIG_STATUS <<_ACEOF
34345 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34347 _ACEOF
34348 sed '
34349 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34350 s/^/s,@/; s/!/@,|#_!!_#|/
34351 :n
34352 t n
34353 s/'"$ac_delim"'$/,g/; t
34354 s/$/\\/; p
34355 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34356 ' >>$CONFIG_STATUS <conf$$subs.sed
34357 rm -f conf$$subs.sed
34358 cat >>$CONFIG_STATUS <<_ACEOF
34359 :end
34360 s/|#_!!_#|//g
34361 CEOF$ac_eof
34362 _ACEOF
34363
34364
34365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34367 # trailing colons and then remove the whole line if VPATH becomes empty
34368 # (actually we leave an empty line to preserve line numbers).
34369 if test "x$srcdir" = x.; then
34370   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34371 s/:*\$(srcdir):*/:/
34372 s/:*\${srcdir}:*/:/
34373 s/:*@srcdir@:*/:/
34374 s/^\([^=]*=[     ]*\):*/\1/
34375 s/:*$//
34376 s/^[^=]*=[       ]*$//
34377 }'
34378 fi
34379
34380 cat >>$CONFIG_STATUS <<\_ACEOF
34381 fi # test -n "$CONFIG_FILES"
34382
34383
34384 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34385 do
34386   case $ac_tag in
34387   :[FHLC]) ac_mode=$ac_tag; continue;;
34388   esac
34389   case $ac_mode$ac_tag in
34390   :[FHL]*:*);;
34391   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34392 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34393    { (exit 1); exit 1; }; };;
34394   :[FH]-) ac_tag=-:-;;
34395   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34396   esac
34397   ac_save_IFS=$IFS
34398   IFS=:
34399   set x $ac_tag
34400   IFS=$ac_save_IFS
34401   shift
34402   ac_file=$1
34403   shift
34404
34405   case $ac_mode in
34406   :L) ac_source=$1;;
34407   :[FH])
34408     ac_file_inputs=
34409     for ac_f
34410     do
34411       case $ac_f in
34412       -) ac_f="$tmp/stdin";;
34413       *) # Look for the file first in the build tree, then in the source tree
34414          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34415          # because $ac_f cannot contain `:'.
34416          test -f "$ac_f" ||
34417            case $ac_f in
34418            [\\/$]*) false;;
34419            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34420            esac ||
34421            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34422 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34423    { (exit 1); exit 1; }; };;
34424       esac
34425       ac_file_inputs="$ac_file_inputs $ac_f"
34426     done
34427
34428     # Let's still pretend it is `configure' which instantiates (i.e., don't
34429     # use $as_me), people would be surprised to read:
34430     #    /* config.h.  Generated by config.status.  */
34431     configure_input="Generated from "`IFS=:
34432           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34433     if test x"$ac_file" != x-; then
34434       configure_input="$ac_file.  $configure_input"
34435       { echo "$as_me:$LINENO: creating $ac_file" >&5
34436 echo "$as_me: creating $ac_file" >&6;}
34437     fi
34438
34439     case $ac_tag in
34440     *:-:* | *:-) cat >"$tmp/stdin";;
34441     esac
34442     ;;
34443   esac
34444
34445   ac_dir=`$as_dirname -- "$ac_file" ||
34446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34447          X"$ac_file" : 'X\(//\)[^/]' \| \
34448          X"$ac_file" : 'X\(//\)$' \| \
34449          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34450 echo X"$ac_file" |
34451     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34452             s//\1/
34453             q
34454           }
34455           /^X\(\/\/\)[^/].*/{
34456             s//\1/
34457             q
34458           }
34459           /^X\(\/\/\)$/{
34460             s//\1/
34461             q
34462           }
34463           /^X\(\/\).*/{
34464             s//\1/
34465             q
34466           }
34467           s/.*/./; q'`
34468   { as_dir="$ac_dir"
34469   case $as_dir in #(
34470   -*) as_dir=./$as_dir;;
34471   esac
34472   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34473     as_dirs=
34474     while :; do
34475       case $as_dir in #(
34476       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34477       *) as_qdir=$as_dir;;
34478       esac
34479       as_dirs="'$as_qdir' $as_dirs"
34480       as_dir=`$as_dirname -- "$as_dir" ||
34481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34482          X"$as_dir" : 'X\(//\)[^/]' \| \
34483          X"$as_dir" : 'X\(//\)$' \| \
34484          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34485 echo X"$as_dir" |
34486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34487             s//\1/
34488             q
34489           }
34490           /^X\(\/\/\)[^/].*/{
34491             s//\1/
34492             q
34493           }
34494           /^X\(\/\/\)$/{
34495             s//\1/
34496             q
34497           }
34498           /^X\(\/\).*/{
34499             s//\1/
34500             q
34501           }
34502           s/.*/./; q'`
34503       test -d "$as_dir" && break
34504     done
34505     test -z "$as_dirs" || eval "mkdir $as_dirs"
34506   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34507 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34508    { (exit 1); exit 1; }; }; }
34509   ac_builddir=.
34510
34511 case "$ac_dir" in
34512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34513 *)
34514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34515   # A ".." for each directory in $ac_dir_suffix.
34516   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34517   case $ac_top_builddir_sub in
34518   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34519   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34520   esac ;;
34521 esac
34522 ac_abs_top_builddir=$ac_pwd
34523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34524 # for backward compatibility:
34525 ac_top_builddir=$ac_top_build_prefix
34526
34527 case $srcdir in
34528   .)  # We are building in place.
34529     ac_srcdir=.
34530     ac_top_srcdir=$ac_top_builddir_sub
34531     ac_abs_top_srcdir=$ac_pwd ;;
34532   [\\/]* | ?:[\\/]* )  # Absolute name.
34533     ac_srcdir=$srcdir$ac_dir_suffix;
34534     ac_top_srcdir=$srcdir
34535     ac_abs_top_srcdir=$srcdir ;;
34536   *) # Relative name.
34537     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34538     ac_top_srcdir=$ac_top_build_prefix$srcdir
34539     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34540 esac
34541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34542
34543
34544   case $ac_mode in
34545   :F)
34546   #
34547   # CONFIG_FILE
34548   #
34549
34550   case $INSTALL in
34551   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34552   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34553   esac
34554 _ACEOF
34555
34556 cat >>$CONFIG_STATUS <<\_ACEOF
34557 # If the template does not know about datarootdir, expand it.
34558 # FIXME: This hack should be removed a few years after 2.60.
34559 ac_datarootdir_hack=; ac_datarootdir_seen=
34560
34561 case `sed -n '/datarootdir/ {
34562   p
34563   q
34564 }
34565 /@datadir@/p
34566 /@docdir@/p
34567 /@infodir@/p
34568 /@localedir@/p
34569 /@mandir@/p
34570 ' $ac_file_inputs` in
34571 *datarootdir*) ac_datarootdir_seen=yes;;
34572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34573   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34574 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34575 _ACEOF
34576 cat >>$CONFIG_STATUS <<_ACEOF
34577   ac_datarootdir_hack='
34578   s&@datadir@&$datadir&g
34579   s&@docdir@&$docdir&g
34580   s&@infodir@&$infodir&g
34581   s&@localedir@&$localedir&g
34582   s&@mandir@&$mandir&g
34583     s&\\\${datarootdir}&$datarootdir&g' ;;
34584 esac
34585 _ACEOF
34586
34587 # Neutralize VPATH when `$srcdir' = `.'.
34588 # Shell code in configure.ac might set extrasub.
34589 # FIXME: do we really want to maintain this feature?
34590 cat >>$CONFIG_STATUS <<_ACEOF
34591   sed "$ac_vpsub
34592 $extrasub
34593 _ACEOF
34594 cat >>$CONFIG_STATUS <<\_ACEOF
34595 :t
34596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34597 s&@configure_input@&$configure_input&;t t
34598 s&@top_builddir@&$ac_top_builddir_sub&;t t
34599 s&@srcdir@&$ac_srcdir&;t t
34600 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34601 s&@top_srcdir@&$ac_top_srcdir&;t t
34602 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34603 s&@builddir@&$ac_builddir&;t t
34604 s&@abs_builddir@&$ac_abs_builddir&;t t
34605 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34606 s&@INSTALL@&$ac_INSTALL&;t t
34607 $ac_datarootdir_hack
34608 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34609
34610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34611   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34612   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34613   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34614 which seems to be undefined.  Please make sure it is defined." >&5
34615 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34616 which seems to be undefined.  Please make sure it is defined." >&2;}
34617
34618   rm -f "$tmp/stdin"
34619   case $ac_file in
34620   -) cat "$tmp/out"; rm -f "$tmp/out";;
34621   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34622   esac
34623  ;;
34624   :H)
34625   #
34626   # CONFIG_HEADER
34627   #
34628 _ACEOF
34629
34630 # Transform confdefs.h into a sed script `conftest.defines', that
34631 # substitutes the proper values into config.h.in to produce config.h.
34632 rm -f conftest.defines conftest.tail
34633 # First, append a space to every undef/define line, to ease matching.
34634 echo 's/$/ /' >conftest.defines
34635 # Then, protect against being on the right side of a sed subst, or in
34636 # an unquoted here document, in config.status.  If some macros were
34637 # called several times there might be several #defines for the same
34638 # symbol, which is useless.  But do not sort them, since the last
34639 # AC_DEFINE must be honored.
34640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34641 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34642 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34643 # PARAMS is the parameter list in the macro definition--in most cases, it's
34644 # just an empty string.
34645 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34646 ac_dB='\\)[      (].*,\\1define\\2'
34647 ac_dC=' '
34648 ac_dD=' ,'
34649
34650 uniq confdefs.h |
34651   sed -n '
34652         t rset
34653         :rset
34654         s/^[     ]*#[    ]*define[       ][      ]*//
34655         t ok
34656         d
34657         :ok
34658         s/[\\&,]/\\&/g
34659         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34660         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34661   ' >>conftest.defines
34662
34663 # Remove the space that was appended to ease matching.
34664 # Then replace #undef with comments.  This is necessary, for
34665 # example, in the case of _POSIX_SOURCE, which is predefined and required
34666 # on some systems where configure will not decide to define it.
34667 # (The regexp can be short, since the line contains either #define or #undef.)
34668 echo 's/ $//
34669 s,^[     #]*u.*,/* & */,' >>conftest.defines
34670
34671 # Break up conftest.defines:
34672 ac_max_sed_lines=50
34673
34674 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34675 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34676 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34677 # et cetera.
34678 ac_in='$ac_file_inputs'
34679 ac_out='"$tmp/out1"'
34680 ac_nxt='"$tmp/out2"'
34681
34682 while :
34683 do
34684   # Write a here document:
34685     cat >>$CONFIG_STATUS <<_ACEOF
34686     # First, check the format of the line:
34687     cat >"\$tmp/defines.sed" <<\\CEOF
34688 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34689 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34690 b
34691 :def
34692 _ACEOF
34693   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34694   echo 'CEOF
34695     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34696   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34697   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34698   grep . conftest.tail >/dev/null || break
34699   rm -f conftest.defines
34700   mv conftest.tail conftest.defines
34701 done
34702 rm -f conftest.defines conftest.tail
34703
34704 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34705 cat >>$CONFIG_STATUS <<\_ACEOF
34706   if test x"$ac_file" != x-; then
34707     echo "/* $configure_input  */" >"$tmp/config.h"
34708     cat "$ac_result" >>"$tmp/config.h"
34709     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34710       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34711 echo "$as_me: $ac_file is unchanged" >&6;}
34712     else
34713       rm -f $ac_file
34714       mv "$tmp/config.h" $ac_file
34715     fi
34716   else
34717     echo "/* $configure_input  */"
34718     cat "$ac_result"
34719   fi
34720   rm -f "$tmp/out12"
34721  ;;
34722
34723   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34724 echo "$as_me: executing $ac_file commands" >&6;}
34725  ;;
34726   esac
34727
34728
34729   case $ac_file$ac_mode in
34730     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34731    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34732     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34733    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34734     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34735    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34736     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34737    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34738     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34739    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34740     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34741    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34742     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34743    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34744     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34745    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34746     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34747    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34748     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34749    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34750
34751   esac
34752 done # for ac_tag
34753
34754
34755 { (exit 0); exit 0; }
34756 _ACEOF
34757 chmod +x $CONFIG_STATUS
34758 ac_clean_files=$ac_clean_files_save
34759
34760
34761 # configure is writing to config.log, and then calls config.status.
34762 # config.status does its own redirection, appending to config.log.
34763 # Unfortunately, on DOS this fails, as config.log is still kept open
34764 # by configure, so config.status won't be able to write to it; its
34765 # output is simply discarded.  So we exec the FD to /dev/null,
34766 # effectively closing config.log, so it can be properly (re)opened and
34767 # appended to by config.status.  When coming back to configure, we
34768 # need to make the FD available again.
34769 if test "$no_create" != yes; then
34770   ac_cs_success=:
34771   ac_config_status_args=
34772   test "$silent" = yes &&
34773     ac_config_status_args="$ac_config_status_args --quiet"
34774   exec 5>/dev/null
34775   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34776   exec 5>>config.log
34777   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34778   # would make configure fail if this is the last instruction.
34779   $ac_cs_success || { (exit 1); exit 1; }
34780 fi
34781
34782 #
34783 # CONFIG_SUBDIRS section.
34784 #
34785 if test "$no_recursion" != yes; then
34786
34787   # Remove --cache-file and --srcdir arguments so they do not pile up.
34788   ac_sub_configure_args=
34789   ac_prev=
34790   eval "set x $ac_configure_args"
34791   shift
34792   for ac_arg
34793   do
34794     if test -n "$ac_prev"; then
34795       ac_prev=
34796       continue
34797     fi
34798     case $ac_arg in
34799     -cache-file | --cache-file | --cache-fil | --cache-fi \
34800     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34801       ac_prev=cache_file ;;
34802     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34803     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34804     | --c=*)
34805       ;;
34806     --config-cache | -C)
34807       ;;
34808     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34809       ac_prev=srcdir ;;
34810     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34811       ;;
34812     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34813       ac_prev=prefix ;;
34814     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34815       ;;
34816     *)
34817       case $ac_arg in
34818       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34819       esac
34820       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34821     esac
34822   done
34823
34824   # Always prepend --prefix to ensure using the same prefix
34825   # in subdir configurations.
34826   ac_arg="--prefix=$prefix"
34827   case $ac_arg in
34828   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34829   esac
34830   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34831
34832   ac_popdir=`pwd`
34833   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34834
34835     # Do not complain, so a configure script can configure whichever
34836     # parts of a large source tree are present.
34837     test -d "$srcdir/$ac_dir" || continue
34838
34839     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34840     echo "$as_me:$LINENO: $ac_msg" >&5
34841     echo "$ac_msg" >&6
34842     { as_dir="$ac_dir"
34843   case $as_dir in #(
34844   -*) as_dir=./$as_dir;;
34845   esac
34846   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34847     as_dirs=
34848     while :; do
34849       case $as_dir in #(
34850       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34851       *) as_qdir=$as_dir;;
34852       esac
34853       as_dirs="'$as_qdir' $as_dirs"
34854       as_dir=`$as_dirname -- "$as_dir" ||
34855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34856          X"$as_dir" : 'X\(//\)[^/]' \| \
34857          X"$as_dir" : 'X\(//\)$' \| \
34858          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34859 echo X"$as_dir" |
34860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34861             s//\1/
34862             q
34863           }
34864           /^X\(\/\/\)[^/].*/{
34865             s//\1/
34866             q
34867           }
34868           /^X\(\/\/\)$/{
34869             s//\1/
34870             q
34871           }
34872           /^X\(\/\).*/{
34873             s//\1/
34874             q
34875           }
34876           s/.*/./; q'`
34877       test -d "$as_dir" && break
34878     done
34879     test -z "$as_dirs" || eval "mkdir $as_dirs"
34880   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34881 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34882    { (exit 1); exit 1; }; }; }
34883     ac_builddir=.
34884
34885 case "$ac_dir" in
34886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34887 *)
34888   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34889   # A ".." for each directory in $ac_dir_suffix.
34890   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34891   case $ac_top_builddir_sub in
34892   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34893   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34894   esac ;;
34895 esac
34896 ac_abs_top_builddir=$ac_pwd
34897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34898 # for backward compatibility:
34899 ac_top_builddir=$ac_top_build_prefix
34900
34901 case $srcdir in
34902   .)  # We are building in place.
34903     ac_srcdir=.
34904     ac_top_srcdir=$ac_top_builddir_sub
34905     ac_abs_top_srcdir=$ac_pwd ;;
34906   [\\/]* | ?:[\\/]* )  # Absolute name.
34907     ac_srcdir=$srcdir$ac_dir_suffix;
34908     ac_top_srcdir=$srcdir
34909     ac_abs_top_srcdir=$srcdir ;;
34910   *) # Relative name.
34911     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34912     ac_top_srcdir=$ac_top_build_prefix$srcdir
34913     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34914 esac
34915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34916
34917
34918     cd "$ac_dir"
34919
34920     # Check for guested configure; otherwise get Cygnus style configure.
34921     if test -f "$ac_srcdir/configure.gnu"; then
34922       ac_sub_configure=$ac_srcdir/configure.gnu
34923     elif test -f "$ac_srcdir/configure"; then
34924       ac_sub_configure=$ac_srcdir/configure
34925     elif test -f "$ac_srcdir/configure.in"; then
34926       # This should be Cygnus configure.
34927       ac_sub_configure=$ac_aux_dir/configure
34928     else
34929       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34931       ac_sub_configure=
34932     fi
34933
34934     # The recursion is here.
34935     if test -n "$ac_sub_configure"; then
34936       # Make the cache file name correct relative to the subdirectory.
34937       case $cache_file in
34938       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34939       *) # Relative name.
34940         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34941       esac
34942
34943       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34944 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34945       # The eval makes quoting arguments work.
34946       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34947            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34948         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34949 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34950    { (exit 1); exit 1; }; }
34951     fi
34952
34953     cd "$ac_popdir"
34954   done
34955 fi
34956
34957