Updating configure script for 2.0
[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 TARGETS_TO_BUILD
839 ENABLE_CBE_PRINTF_A
840 EXTRA_OPTIONS
841 CXX
842 CXXFLAGS
843 ac_ct_CXX
844 LEX
845 LEXLIB
846 LEX_OUTPUT_ROOT
847 FLEX
848 YACC
849 YFLAGS
850 BISON
851 NM
852 ifGNUmake
853 LN_S
854 CMP
855 CP
856 DATE
857 FIND
858 MKDIR
859 MV
860 RANLIB
861 RM
862 SED
863 TAR
864 BINPWD
865 GRAPHVIZ
866 DOT
867 GV
868 DOTTY
869 PERL
870 HAVE_PERL
871 INSTALL_PROGRAM
872 INSTALL_SCRIPT
873 INSTALL_DATA
874 BZIP2
875 DOXYGEN
876 GROFF
877 GZIP
878 POD2HTML
879 POD2MAN
880 RUNTEST
881 TCLSH
882 ZIP
883 INSTALL_LTDL_TRUE
884 INSTALL_LTDL_FALSE
885 CONVENIENCE_LTDL_TRUE
886 CONVENIENCE_LTDL_FALSE
887 LIBADD_DL
888 ECHO
889 AR
890 STRIP
891 CXXCPP
892 F77
893 FFLAGS
894 ac_ct_F77
895 LIBTOOL
896 ETAGSFLAGS
897 LLVMGCC
898 LLVMGXX
899 HUGE_VAL_SANITY
900 ALLOCA
901 MMAP_FILE
902 LLVMCC1
903 LLVMCC1PLUS
904 LLVMGCCDIR
905 LLVMGCC_VERSION
906 LLVMGCC_MAJVERS
907 SHLIBEXT
908 LLVM_PREFIX
909 LLVM_BINDIR
910 LLVM_LIBDIR
911 LLVM_DATADIR
912 LLVM_DOCSDIR
913 LLVM_ETCDIR
914 LLVM_INCLUDEDIR
915 LLVM_INFODIR
916 LLVM_MANDIR
917 LLVM_CONFIGTIME
918 LIBOBJS
919 LTLIBOBJS'
920 ac_subst_files=''
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 CPPFLAGS
928 CPP
929 CXX
930 CXXFLAGS
931 CCC
932 YACC
933 YFLAGS
934 CXXCPP
935 F77
936 FFLAGS'
937 ac_subdirs_all='projects/sample
938 projects/Stacker
939 projects/privbracket
940 projects/llvm-test
941 projects/llvm-reopt
942 projects/llvm-gcc
943 projects/llvm-java
944 projects/llvm-tv
945 projects/llvm-poolalloc
946 projects/llvm-kernel'
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998   # If the previous option needs an argument, assign it.
999   if test -n "$ac_prev"; then
1000     eval $ac_prev=\$ac_option
1001     ac_prev=
1002     continue
1003   fi
1004
1005   case $ac_option in
1006   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053    { (exit 1); exit 1; }; }
1054     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055     eval enable_$ac_feature=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074     eval enable_$ac_feature=\$ac_optarg ;;
1075
1076   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078   | --exec | --exe | --ex)
1079     ac_prev=exec_prefix ;;
1080   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082   | --exec=* | --exe=* | --ex=*)
1083     exec_prefix=$ac_optarg ;;
1084
1085   -gas | --gas | --ga | --g)
1086     # Obsolete; use --with-gas.
1087     with_gas=yes ;;
1088
1089   -help | --help | --hel | --he | -h)
1090     ac_init_help=long ;;
1091   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092     ac_init_help=recursive ;;
1093   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094     ac_init_help=short ;;
1095
1096   -host | --host | --hos | --ho)
1097     ac_prev=host_alias ;;
1098   -host=* | --host=* | --hos=* | --ho=*)
1099     host_alias=$ac_optarg ;;
1100
1101   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102     ac_prev=htmldir ;;
1103   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104   | --ht=*)
1105     htmldir=$ac_optarg ;;
1106
1107   -includedir | --includedir | --includedi | --included | --include \
1108   | --includ | --inclu | --incl | --inc)
1109     ac_prev=includedir ;;
1110   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111   | --includ=* | --inclu=* | --incl=* | --inc=*)
1112     includedir=$ac_optarg ;;
1113
1114   -infodir | --infodir | --infodi | --infod | --info | --inf)
1115     ac_prev=infodir ;;
1116   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117     infodir=$ac_optarg ;;
1118
1119   -libdir | --libdir | --libdi | --libd)
1120     ac_prev=libdir ;;
1121   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122     libdir=$ac_optarg ;;
1123
1124   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125   | --libexe | --libex | --libe)
1126     ac_prev=libexecdir ;;
1127   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128   | --libexe=* | --libex=* | --libe=*)
1129     libexecdir=$ac_optarg ;;
1130
1131   -localedir | --localedir | --localedi | --localed | --locale)
1132     ac_prev=localedir ;;
1133   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134     localedir=$ac_optarg ;;
1135
1136   -localstatedir | --localstatedir | --localstatedi | --localstated \
1137   | --localstate | --localstat | --localsta | --localst | --locals)
1138     ac_prev=localstatedir ;;
1139   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141     localstatedir=$ac_optarg ;;
1142
1143   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144     ac_prev=mandir ;;
1145   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146     mandir=$ac_optarg ;;
1147
1148   -nfp | --nfp | --nf)
1149     # Obsolete; use --without-fp.
1150     with_fp=no ;;
1151
1152   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153   | --no-cr | --no-c | -n)
1154     no_create=yes ;;
1155
1156   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158     no_recursion=yes ;;
1159
1160   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162   | --oldin | --oldi | --old | --ol | --o)
1163     ac_prev=oldincludedir ;;
1164   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167     oldincludedir=$ac_optarg ;;
1168
1169   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170     ac_prev=prefix ;;
1171   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172     prefix=$ac_optarg ;;
1173
1174   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175   | --program-pre | --program-pr | --program-p)
1176     ac_prev=program_prefix ;;
1177   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179     program_prefix=$ac_optarg ;;
1180
1181   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182   | --program-suf | --program-su | --program-s)
1183     ac_prev=program_suffix ;;
1184   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186     program_suffix=$ac_optarg ;;
1187
1188   -program-transform-name | --program-transform-name \
1189   | --program-transform-nam | --program-transform-na \
1190   | --program-transform-n | --program-transform- \
1191   | --program-transform | --program-transfor \
1192   | --program-transfo | --program-transf \
1193   | --program-trans | --program-tran \
1194   | --progr-tra | --program-tr | --program-t)
1195     ac_prev=program_transform_name ;;
1196   -program-transform-name=* | --program-transform-name=* \
1197   | --program-transform-nam=* | --program-transform-na=* \
1198   | --program-transform-n=* | --program-transform-=* \
1199   | --program-transform=* | --program-transfor=* \
1200   | --program-transfo=* | --program-transf=* \
1201   | --program-trans=* | --program-tran=* \
1202   | --progr-tra=* | --program-tr=* | --program-t=*)
1203     program_transform_name=$ac_optarg ;;
1204
1205   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206     ac_prev=pdfdir ;;
1207   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208     pdfdir=$ac_optarg ;;
1209
1210   -psdir | --psdir | --psdi | --psd | --ps)
1211     ac_prev=psdir ;;
1212   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213     psdir=$ac_optarg ;;
1214
1215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216   | -silent | --silent | --silen | --sile | --sil)
1217     silent=yes ;;
1218
1219   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220     ac_prev=sbindir ;;
1221   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222   | --sbi=* | --sb=*)
1223     sbindir=$ac_optarg ;;
1224
1225   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227   | --sharedst | --shareds | --shared | --share | --shar \
1228   | --sha | --sh)
1229     ac_prev=sharedstatedir ;;
1230   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233   | --sha=* | --sh=*)
1234     sharedstatedir=$ac_optarg ;;
1235
1236   -site | --site | --sit)
1237     ac_prev=site ;;
1238   -site=* | --site=* | --sit=*)
1239     site=$ac_optarg ;;
1240
1241   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242     ac_prev=srcdir ;;
1243   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244     srcdir=$ac_optarg ;;
1245
1246   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247   | --syscon | --sysco | --sysc | --sys | --sy)
1248     ac_prev=sysconfdir ;;
1249   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251     sysconfdir=$ac_optarg ;;
1252
1253   -target | --target | --targe | --targ | --tar | --ta | --t)
1254     ac_prev=target_alias ;;
1255   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256     target_alias=$ac_optarg ;;
1257
1258   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259     verbose=yes ;;
1260
1261   -version | --version | --versio | --versi | --vers | -V)
1262     ac_init_version=: ;;
1263
1264   -with-* | --with-*)
1265     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid package name: $ac_package" >&2
1269    { (exit 1); exit 1; }; }
1270     ac_package=`echo $ac_package| sed 's/-/_/g'`
1271     eval with_$ac_package=\$ac_optarg ;;
1272
1273   -without-* | --without-*)
1274     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277       { echo "$as_me: error: invalid package name: $ac_package" >&2
1278    { (exit 1); exit 1; }; }
1279     ac_package=`echo $ac_package | sed 's/-/_/g'`
1280     eval with_$ac_package=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302    { (exit 1); exit 1; }; }
1303     ;;
1304
1305   *=*)
1306     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310    { (exit 1); exit 1; }; }
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   { echo "$as_me: error: missing argument to $ac_option" >&2
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 # Be sure to have absolute directory names.
1332 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333                 datadir sysconfdir sharedstatedir localstatedir includedir \
1334                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335                 libdir localedir mandir
1336 do
1337   eval ac_val=\$$ac_var
1338   case $ac_val in
1339     [\\/$]* | ?:[\\/]* )  continue;;
1340     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341   esac
1342   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343    { (exit 1); exit 1; }; }
1344 done
1345
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1352
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355   if test "x$build_alias" = x; then
1356     cross_compiling=maybe
1357     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358     If a cross compiler is detected then cross compile mode will be used." >&2
1359   elif test "x$build_alias" != "x$host_alias"; then
1360     cross_compiling=yes
1361   fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373   { echo "$as_me: error: Working directory cannot be determined" >&2
1374    { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376   { echo "$as_me: error: pwd does not report name of working directory" >&2
1377    { (exit 1); exit 1; }; }
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382   ac_srcdir_defaulted=yes
1383   # Try the directory containing this script, then the parent directory.
1384   ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386          X"$0" : 'X\(//\)[^/]' \| \
1387          X"$0" : 'X\(//\)$' \| \
1388          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 echo X"$0" |
1390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\/\)[^/].*/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\).*/{
1403             s//\1/
1404             q
1405           }
1406           s/.*/./; q'`
1407   srcdir=$ac_confdir
1408   if test ! -r "$srcdir/$ac_unique_file"; then
1409     srcdir=..
1410   fi
1411 else
1412   ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417    { (exit 1); exit 1; }; }
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422    { (exit 1); exit 1; }; }
1423         pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426   srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR           user executables [EPREFIX/bin]
1483   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR       program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1486   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR           object code libraries [EPREFIX/lib]
1489   --includedir=DIR       C header files [PREFIX/include]
1490   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR          info documentation [DATAROOTDIR/info]
1494   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR           man documentation [DATAROOTDIR/man]
1496   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1497   --htmldir=DIR          html documentation [DOCDIR]
1498   --dvidir=DIR           dvi documentation [DOCDIR]
1499   --pdfdir=DIR           pdf documentation [DOCDIR]
1500   --psdir=DIR            ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 System types:
1506   --build=BUILD     configure for building on BUILD [guessed]
1507   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508   --target=TARGET   configure for building compilers for TARGET [HOST]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513   case $ac_init_help in
1514      short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1515    esac
1516   cat <<\_ACEOF
1517
1518 Optional Features:
1519   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521   --enable-optimized
1522   --enable-assertions
1523   --enable-debug-runtime
1524   --enable-jit            Enable Just In Time Compiling (default is YES)
1525   --enable-doxygen        Build doxygen documentation (default is NO)
1526   --enable-threads        Use threads if available (default is YES)
1527   --enable-targets        Build specific host targets:
1528                           all,host-only,{target-name} (default=all)
1529   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1530                           %a (default is YES)
1531   --enable-ltdl-install   install libltdl
1532   --enable-shared[=PKGS]  build shared libraries
1533                           [default=enable_shared_default]
1534   --enable-static[=PKGS]  build static libraries
1535                           [default=enable_static_default]
1536   --enable-fast-install[=PKGS]
1537                           optimize for fast installation
1538                           [default=enable_Fast_install_default]
1539   --disable-libtool-lock  avoid locking (might break parallel builds)
1540
1541 Optional Packages:
1542   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1543   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1544   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1545                           searches PATH)
1546   --with-extra-options    Specify addtional options to compile LLVM with
1547   --with-tclinclude       directory where tcl headers are
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549   --with-pic              try to use only PIC/non-PIC objects [default=use
1550                           both]
1551   --with-tags[=TAGS]      include additional configurations [automatic]
1552
1553 Some influential environment variables:
1554   CC          C compiler command
1555   CFLAGS      C compiler flags
1556   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557               nonstandard directory <lib dir>
1558   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CPP         C preprocessor
1561   CXX         C++ compiler command
1562   CXXFLAGS    C++ compiler flags
1563   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1564               the first program found out of: `bison -y', `byacc', `yacc'.
1565   YFLAGS      The list of arguments that will be passed by default to $YACC.
1566               This script will default YFLAGS to the empty string to avoid a
1567               default value of `-d' given by some make applications.
1568   CXXCPP      C++ preprocessor
1569   F77         Fortran 77 compiler command
1570   FFLAGS      Fortran 77 compiler flags
1571
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1574
1575 Report bugs to <llvmbugs@cs.uiuc.edu>.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581   # If there are subdirs, report their specific --help.
1582   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583     test -d "$ac_dir" || continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 llvm configure 2.0cvs
1637 generated by GNU Autoconf 2.60
1638
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643
1644 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1645 _ACEOF
1646   exit
1647 fi
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1651
1652 It was created by llvm $as_me 2.0cvs, which was
1653 generated by GNU Autoconf 2.60.  Invocation command line was
1654
1655   $ $0 $@
1656
1657 _ACEOF
1658 exec 5>>config.log
1659 {
1660 cat <<_ASUNAME
1661 ## --------- ##
1662 ## Platform. ##
1663 ## --------- ##
1664
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1673
1674 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1675 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1678 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1679 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1680 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1681
1682 _ASUNAME
1683
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   echo "PATH: $as_dir"
1690 done
1691 IFS=$as_save_IFS
1692
1693 } >&5
1694
1695 cat >&5 <<_ACEOF
1696
1697
1698 ## ----------- ##
1699 ## Core tests. ##
1700 ## ----------- ##
1701
1702 _ACEOF
1703
1704
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_configure_args=
1711 ac_configure_args0=
1712 ac_configure_args1=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1715 do
1716   for ac_arg
1717   do
1718     case $ac_arg in
1719     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721     | -silent | --silent | --silen | --sile | --sil)
1722       continue ;;
1723     *\'*)
1724       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725     esac
1726     case $ac_pass in
1727     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728     2)
1729       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730       if test $ac_must_keep_next = true; then
1731         ac_must_keep_next=false # Got value, back to normal.
1732       else
1733         case $ac_arg in
1734           *=* | --config-cache | -C | -disable-* | --disable-* \
1735           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737           | -with-* | --with-* | -without-* | --without-* | --x)
1738             case "$ac_configure_args0 " in
1739               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740             esac
1741             ;;
1742           -* ) ac_must_keep_next=true ;;
1743         esac
1744       fi
1745       ac_configure_args="$ac_configure_args '$ac_arg'"
1746       ;;
1747     esac
1748   done
1749 done
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1752
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log.  We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759   # Save into config.log some information that might help in debugging.
1760   {
1761     echo
1762
1763     cat <<\_ASBOX
1764 ## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##
1767 _ASBOX
1768     echo
1769     # The following way of writing the cache mishandles newlines in values,
1770 (
1771   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772     eval ac_val=\$$ac_var
1773     case $ac_val in #(
1774     *${as_nl}*)
1775       case $ac_var in #(
1776       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778       esac
1779       case $ac_var in #(
1780       _ | IFS | as_nl) ;; #(
1781       *) $as_unset $ac_var ;;
1782       esac ;;
1783     esac
1784   done
1785   (set) 2>&1 |
1786     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787     *${as_nl}ac_space=\ *)
1788       sed -n \
1789         "s/'\''/'\''\\\\'\'''\''/g;
1790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791       ;; #(
1792     *)
1793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794       ;;
1795     esac |
1796     sort
1797 )
1798     echo
1799
1800     cat <<\_ASBOX
1801 ## ----------------- ##
1802 ## Output variables. ##
1803 ## ----------------- ##
1804 _ASBOX
1805     echo
1806     for ac_var in $ac_subst_vars
1807     do
1808       eval ac_val=\$$ac_var
1809       case $ac_val in
1810       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811       esac
1812       echo "$ac_var='\''$ac_val'\''"
1813     done | sort
1814     echo
1815
1816     if test -n "$ac_subst_files"; then
1817       cat <<\_ASBOX
1818 ## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##
1821 _ASBOX
1822       echo
1823       for ac_var in $ac_subst_files
1824       do
1825         eval ac_val=\$$ac_var
1826         case $ac_val in
1827         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828         esac
1829         echo "$ac_var='\''$ac_val'\''"
1830       done | sort
1831       echo
1832     fi
1833
1834     if test -s confdefs.h; then
1835       cat <<\_ASBOX
1836 ## ----------- ##
1837 ## confdefs.h. ##
1838 ## ----------- ##
1839 _ASBOX
1840       echo
1841       cat confdefs.h
1842       echo
1843     fi
1844     test "$ac_signal" != 0 &&
1845       echo "$as_me: caught signal $ac_signal"
1846     echo "$as_me: exit $exit_status"
1847   } >&5
1848   rm -f core *.core core.conftest.* &&
1849     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850     exit $exit_status
1851 ' 0
1852 for ac_signal in 1 2 13 15; do
1853   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 done
1855 ac_signal=0
1856
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1859
1860 # Predefined preprocessor variables.
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 _ACEOF
1885
1886
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890   set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893 else
1894   set x "$ac_default_prefix/share/config.site" \
1895         "$ac_default_prefix/etc/config.site"
1896 fi
1897 shift
1898 for ac_site_file
1899 do
1900   if test -r "$ac_site_file"; then
1901     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903     sed 's/^/| /' "$ac_site_file" >&5
1904     . "$ac_site_file"
1905   fi
1906 done
1907
1908 if test -r "$cache_file"; then
1909   # Some versions of bash will fail to source /dev/null (special
1910   # files actually), so we avoid doing that.
1911   if test -f "$cache_file"; then
1912     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1914     case $cache_file in
1915       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916       *)                      . "./$cache_file";;
1917     esac
1918   fi
1919 else
1920   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1922   >$cache_file
1923 fi
1924
1925 # Check that the precious variables saved in the cache have kept the same
1926 # value.
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930   eval ac_new_set=\$ac_env_${ac_var}_set
1931   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932   eval ac_new_val=\$ac_env_${ac_var}_value
1933   case $ac_old_set,$ac_new_set in
1934     set,)
1935       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,set)
1939       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941       ac_cache_corrupted=: ;;
1942     ,);;
1943     *)
1944       if test "x$ac_old_val" != "x$ac_new_val"; then
1945         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1948 echo "$as_me:   former value:  $ac_old_val" >&2;}
1949         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1950 echo "$as_me:   current value: $ac_new_val" >&2;}
1951         ac_cache_corrupted=:
1952       fi;;
1953   esac
1954   # Pass precious variables to config.status.
1955   if test "$ac_new_set" = set; then
1956     case $ac_new_val in
1957     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     *) ac_arg=$ac_var=$ac_new_val ;;
1959     esac
1960     case " $ac_configure_args " in
1961       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1962       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963     esac
1964   fi
1965 done
1966 if $ac_cache_corrupted; then
1967   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
2004
2005
2006 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2007
2008
2009
2010
2011
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in autoconf "$srcdir"/autoconf; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif 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/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045
2046 if test ${srcdir} != "." ; then
2047   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2048     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2049 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2050    { (exit 1); exit 1; }; }
2051   fi
2052 fi
2053
2054 for i in `ls ${srcdir}/projects`
2055 do
2056   if test -d ${srcdir}/projects/${i} ; then
2057     case ${i} in
2058       "CVS") ;;
2059       "sample")       subdirs="$subdirs projects/sample"
2060     ;;
2061       "Stacker")      subdirs="$subdirs projects/Stacker"
2062    ;;
2063       "privbracket")  subdirs="$subdirs projects/privbracket"
2064  ;;
2065       "llvm-test")    subdirs="$subdirs projects/llvm-test"
2066  ;;
2067       "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2068 ;;
2069       "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2070   ;;
2071       "llvm-java")    subdirs="$subdirs projects/llvm-java"
2072  ;;
2073       "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2074    ;;
2075       "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2076  ;;
2077       "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2078  ;;
2079       *)
2080         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2081 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2082         ;;
2083     esac
2084   fi
2085 done
2086
2087
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092    { (exit 1); exit 1; }; }
2093
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105    { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 fi
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2115 *-*-*) ;;
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118    { (exit 1); exit 1; }; };;
2119 esac
2120 build=$ac_cv_build
2121 ac_save_IFS=$IFS; IFS='-'
2122 set x $ac_cv_build
2123 shift
2124 build_cpu=$1
2125 build_vendor=$2
2126 shift; shift
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2129 build_os=$*
2130 IFS=$ac_save_IFS
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2132
2133
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   if test "x$host_alias" = x; then
2140   ac_cv_host=$ac_cv_build
2141 else
2142   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145    { (exit 1); exit 1; }; }
2146 fi
2147
2148 fi
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2151 case $ac_cv_host in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155    { (exit 1); exit 1; }; };;
2156 esac
2157 host=$ac_cv_host
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_host
2160 shift
2161 host_cpu=$1
2162 host_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 host_os=$*
2167 IFS=$ac_save_IFS
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169
2170
2171 { echo "$as_me:$LINENO: checking target system type" >&5
2172 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_target+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test "x$target_alias" = x; then
2177   ac_cv_target=$ac_cv_host
2178 else
2179   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2180     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2182    { (exit 1); exit 1; }; }
2183 fi
2184
2185 fi
2186 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187 echo "${ECHO_T}$ac_cv_target" >&6; }
2188 case $ac_cv_target in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191 echo "$as_me: error: invalid value of canonical target" >&2;}
2192    { (exit 1); exit 1; }; };;
2193 esac
2194 target=$ac_cv_target
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_target
2197 shift
2198 target_cpu=$1
2199 target_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 target_os=$*
2204 IFS=$ac_save_IFS
2205 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2206
2207
2208 # The aliases save the names the user supplied, while $host etc.
2209 # will get canonicalized.
2210 test -n "$target_alias" &&
2211   test "$program_prefix$program_suffix$program_transform_name" = \
2212     NONENONEs,x,x, &&
2213   program_prefix=${target_alias}-
2214
2215 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2216 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2217 if test "${llvm_cv_os_type+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   case $host in
2221   *-*-aix*)
2222     llvm_cv_link_all_option="-Wl,--whole-archive"
2223     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224     llvm_cv_os_type="AIX"
2225     llvm_cv_platform_type="Unix" ;;
2226   *-*-irix*)
2227     llvm_cv_link_all_option="-Wl,--whole-archive"
2228     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229     llvm_cv_os_type="IRIX"
2230     llvm_cv_platform_type="Unix" ;;
2231   *-*-cygwin*)
2232     llvm_cv_link_all_option="-Wl,--whole-archive"
2233     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234     llvm_cv_os_type="Cygwin"
2235     llvm_cv_platform_type="Unix" ;;
2236   *-*-darwin*)
2237     llvm_cv_link_all_option="-Wl,-all_load"
2238     llvm_cv_link_all_option="-Wl,-noall_load"
2239     llvm_cv_os_type="Darwin"
2240     llvm_cv_platform_type="Unix" ;;
2241   *-*-freebsd*)
2242     llvm_cv_link_all_option="-Wl,--whole-archive"
2243     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244     llvm_cv_os_type="FreeBSD"
2245     llvm_cv_platform_type="Unix" ;;
2246   *-*-openbsd*)
2247     llvm_cv_link_all_option="-Wl,--whole-archive"
2248     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249     llvm_cv_os_type="OpenBSD"
2250     llvm_cv_platform_type="Unix" ;;
2251   *-*-hpux*)
2252     llvm_cv_link_all_option="-Wl,--whole-archive"
2253     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254     llvm_cv_os_type="HP-UX"
2255     llvm_cv_platform_type="Unix" ;;
2256   *-*-interix*)
2257     llvm_cv_link_all_option="-Wl,--whole-archive"
2258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259     llvm_cv_os_type="Interix"
2260     llvm_cv_platform_type="Unix" ;;
2261   *-*-linux*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="Linux"
2265     llvm_cv_platform_type="Unix" ;;
2266   *-*-solaris*)
2267     llvm_cv_link_all_option="-Wl,-z,allextract"
2268     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2269     llvm_cv_os_type="SunOS"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-win32*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="Win32"
2275     llvm_cv_platform_type="Win32" ;;
2276   *-*-mingw*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="MingW"
2280     llvm_cv_platform_type="Win32" ;;
2281   *)
2282     llvm_cv_link_all_option=""
2283     llvm_cv_no_link_all_option=""
2284     llvm_cv_os_type="Unknown"
2285     llvm_cv_platform_type="Unknown" ;;
2286 esac
2287 fi
2288 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2290
2291 if test "$llvm_cv_os_type" = "Unknown" ; then
2292   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2294    { (exit 1); exit 1; }; }
2295 fi
2296
2297 OS=$llvm_cv_os_type
2298
2299
2300 LINKALL=$llvm_cv_link_all_option
2301
2302 NOLINKALL=$llvm_cv_no_link_all_option
2303
2304
2305 case $llvm_cv_platform_type in
2306   Unix)
2307
2308 cat >>confdefs.h <<\_ACEOF
2309 #define LLVM_ON_UNIX 1
2310 _ACEOF
2311
2312     LLVM_ON_UNIX=1
2313
2314     LLVM_ON_WIN32=0
2315
2316     ;;
2317   Win32)
2318
2319 cat >>confdefs.h <<\_ACEOF
2320 #define LLVM_ON_WIN32 1
2321 _ACEOF
2322
2323     LLVM_ON_UNIX=0
2324
2325     LLVM_ON_WIN32=1
2326
2327     ;;
2328 esac
2329
2330 { echo "$as_me:$LINENO: checking target architecture" >&5
2331 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2332 if test "${llvm_cv_target_arch+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   case $target in
2336   i?86-*)                 llvm_cv_target_arch="x86" ;;
2337   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2338   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2339   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2340   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2341   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2342   *)                      llvm_cv_target_arch="Unknown" ;;
2343 esac
2344 fi
2345 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2346 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2347
2348 if test "$llvm_cv_target_arch" = "Unknown" ; then
2349   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2350 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2351 fi
2352
2353 ARCH=$llvm_cv_target_arch
2354
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   if test -n "$CC"; then
2370   ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2393 else
2394   { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398
2399 fi
2400 if test -z "$ac_cv_prog_CC"; then
2401   ac_ct_CC=$CC
2402   # Extract the first word of "gcc", so it can be a program name with args.
2403 set dummy gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   if test -n "$ac_ct_CC"; then
2410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415   IFS=$as_save_IFS
2416   test -z "$as_dir" && as_dir=.
2417   for ac_exec_ext in '' $ac_executable_extensions; do
2418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419     ac_cv_prog_ac_ct_CC="gcc"
2420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421     break 2
2422   fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6; }
2433 else
2434   { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2436 fi
2437
2438   if test "x$ac_ct_CC" = x; then
2439     CC=""
2440   else
2441     case $cross_compiling:$ac_tool_warned in
2442 yes:)
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet.  If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet.  If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2450 esac
2451     CC=$ac_ct_CC
2452   fi
2453 else
2454   CC="$ac_cv_prog_CC"
2455 fi
2456
2457 if test -z "$CC"; then
2458           if test -n "$ac_tool_prefix"; then
2459     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$CC"; then
2467   ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_CC="${ac_tool_prefix}cc"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   { echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6; }
2490 else
2491   { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495
2496   fi
2497 fi
2498 if test -z "$CC"; then
2499   # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509   ac_prog_rejected=no
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518        ac_prog_rejected=yes
2519        continue
2520      fi
2521     ac_cv_prog_CC="cc"
2522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523     break 2
2524   fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 if test $ac_prog_rejected = yes; then
2530   # We found a bogon in the path, so make sure we never use it.
2531   set dummy $ac_cv_prog_CC
2532   shift
2533   if test $# != 0; then
2534     # We chose a different compiler from the bogus one.
2535     # However, it has the same basename, so the bogon will be chosen
2536     # first if we set CC to just the basename; use the full file name.
2537     shift
2538     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539   fi
2540 fi
2541 fi
2542 fi
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545   { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2547 else
2548   { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2550 fi
2551
2552
2553 fi
2554 if test -z "$CC"; then
2555   if test -n "$ac_tool_prefix"; then
2556   for ac_prog in cl.exe
2557   do
2558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   if test -n "$CC"; then
2566   ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590   { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595     test -n "$CC" && break
2596   done
2597 fi
2598 if test -z "$CC"; then
2599   ac_ct_CC=$CC
2600   for ac_prog in cl.exe
2601 do
2602   # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$ac_ct_CC"; then
2610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     ac_cv_prog_ac_ct_CC="$ac_prog"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2633 else
2634   { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2636 fi
2637
2638
2639   test -n "$ac_ct_CC" && break
2640 done
2641
2642   if test "x$ac_ct_CC" = x; then
2643     CC=""
2644   else
2645     case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet.  If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet.  If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655     CC=$ac_ct_CC
2656   fi
2657 fi
2658
2659 fi
2660
2661
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666    { (exit 1); exit 1; }; }
2667
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO: checking for C compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (ac_try="$ac_compiler --version >&5"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compiler --version >&5") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681 { (ac_try="$ac_compiler -v >&5"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_compiler -v >&5") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }
2691 { (ac_try="$ac_compiler -V >&5"
2692 case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697   (eval "$ac_compiler -V >&5") 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }
2701
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 ac_clean_files_save=$ac_clean_files
2718 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2719 # Try to create an executable without -o first, disregard a.out.
2720 # It will help us diagnose broken compilers, and finding out an intuition
2721 # of exeext.
2722 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2725 #
2726 # List of possible output files, starting from the most likely.
2727 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728 # only as a last resort.  b.out is created by i960 compilers.
2729 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2730 #
2731 # The IRIX 6 linker writes into existing files which may not be
2732 # executable, retaining their permissions.  Remove them first so a
2733 # subsequent execution test works.
2734 ac_rmfiles=
2735 for ac_file in $ac_files
2736 do
2737   case $ac_file in
2738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740   esac
2741 done
2742 rm -f $ac_rmfiles
2743
2744 if { (ac_try="$ac_link_default"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_link_default") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; then
2754   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2758 # Autoconf.
2759 for ac_file in $ac_files
2760 do
2761   test -f "$ac_file" || continue
2762   case $ac_file in
2763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764         ;;
2765     [ab].out )
2766         # We found the default executable, but exeext='' is most
2767         # certainly right.
2768         break;;
2769     *.* )
2770         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771         then :; else
2772            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773         fi
2774         # We set ac_cv_exeext here because the later test for it is not
2775         # safe: cross compilers may not add the suffix if given an `-o'
2776         # argument, so we may need to know it at that point already.
2777         # Even if this section looks crufty: it has the advantage of
2778         # actually working.
2779         break;;
2780     * )
2781         break;;
2782   esac
2783 done
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794    { (exit 77); exit 77; }; }
2795 fi
2796
2797 ac_exeext=$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2800
2801 # Check that the compiler produces executables we can run.  If not, either
2802 # the compiler is broken, or we cross compile.
2803 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806 # If not cross compiling, check that we can run a simple program.
2807 if test "$cross_compiling" != yes; then
2808   if { ac_try='./$ac_file'
2809   { (case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814   (eval "$ac_try") 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; }; then
2818     cross_compiling=no
2819   else
2820     if test "$cross_compiling" = maybe; then
2821         cross_compiling=yes
2822     else
2823         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&2;}
2829    { (exit 1); exit 1; }; }
2830     fi
2831   fi
2832 fi
2833 { echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6; }
2835
2836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2837 ac_clean_files=$ac_clean_files_save
2838 # Check that the compiler produces executables we can run.  If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843 echo "${ECHO_T}$cross_compiling" >&6; }
2844
2845 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847 if { (ac_try="$ac_link"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_link") 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; then
2857   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2859 # work properly (i.e., refer to `conftest.exe'), while it won't with
2860 # `rm'.
2861 for ac_file in conftest.exe conftest conftest.*; do
2862   test -f "$ac_file" || continue
2863   case $ac_file in
2864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866           break;;
2867     * ) break;;
2868   esac
2869 done
2870 else
2871   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&2;}
2875    { (exit 1); exit 1; }; }
2876 fi
2877
2878 rm -f conftest$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2881
2882 rm -f conftest.$ac_ext
2883 EXEEXT=$ac_cv_exeext
2884 ac_exeext=$EXEEXT
2885 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2887 if test "${ac_cv_objext+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896
2897 int
2898 main ()
2899 {
2900
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.o conftest.obj
2906 if { (ac_try="$ac_compile"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compile") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; then
2916   for ac_file in conftest.o conftest.obj conftest.*; do
2917   test -f "$ac_file" || continue;
2918   case $ac_file in
2919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2920     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921        break;;
2922   esac
2923 done
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&2;}
2932    { (exit 1); exit 1; }; }
2933 fi
2934
2935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936 fi
2937 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938 echo "${ECHO_T}$ac_cv_objext" >&6; }
2939 OBJEXT=$ac_cv_objext
2940 ac_objext=$OBJEXT
2941 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952
2953 int
2954 main ()
2955 {
2956 #ifndef __GNUC__
2957        choke me
2958 #endif
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971   (eval "$ac_compile") 2>conftest.er1
2972   ac_status=$?
2973   grep -v '^ *+' conftest.er1 >conftest.err
2974   rm -f conftest.er1
2975   cat conftest.err >&5
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); } &&
2978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979   { (case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_try") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_try") 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   ac_compiler_gnu=yes
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003         ac_compiler_gnu=no
3004 fi
3005
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3008
3009 fi
3010 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3012 GCC=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CFLAGS=${CFLAGS+set}
3014 ac_save_CFLAGS=$CFLAGS
3015 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3017 if test "${ac_cv_prog_cc_g+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   ac_save_c_werror_flag=$ac_c_werror_flag
3021    ac_c_werror_flag=yes
3022    ac_cv_prog_cc_g=no
3023    CFLAGS="-g"
3024    cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054   { (case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_try") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; } &&
3063          { ac_try='test -s conftest.$ac_objext'
3064   { (case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_try") 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); }; }; then
3073   ac_cv_prog_cc_g=yes
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         CFLAGS=""
3079       cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109   { (case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114   (eval "$ac_try") 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; } &&
3118          { ac_try='test -s conftest.$ac_objext'
3119   { (case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_try") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; }; then
3128   :
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133         ac_c_werror_flag=$ac_save_c_werror_flag
3134          CFLAGS="-g"
3135          cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_compile") 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165   { (case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_try") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_try") 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_cv_prog_cc_g=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199    ac_c_werror_flag=$ac_save_c_werror_flag
3200 fi
3201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204   CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206   if test "$GCC" = yes; then
3207     CFLAGS="-g -O2"
3208   else
3209     CFLAGS="-g"
3210   fi
3211 else
3212   if test "$GCC" = yes; then
3213     CFLAGS="-O2"
3214   else
3215     CFLAGS=
3216   fi
3217 fi
3218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   ac_cv_prog_cc_c89=no
3224 ac_save_CC=$CC
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239      char **p;
3240      int i;
3241 {
3242   return p[i];
3243 }
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3245 {
3246   char *s;
3247   va_list v;
3248   va_start (v,p);
3249   s = g (p, va_arg (v,int));
3250   va_end (v);
3251   return s;
3252 }
3253
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3255    function prototypes and stuff, but not '\xHH' hex character constants.
3256    These don't provoke an error unfortunately, instead are silently treated
3257    as 'x'.  The following induces an error, until -std is added to get
3258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3259    array size at least.  It's necessary to write '\x00'==0 to get something
3260    that's true only with -std.  */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264    inside strings and character constants.  */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3274 int
3275 main ()
3276 {
3277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 do
3285   CC="$ac_save_CC $ac_arg"
3286   rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_compile") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } &&
3300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301   { (case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306   (eval "$ac_try") 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; } &&
3310          { ac_try='test -s conftest.$ac_objext'
3311   { (case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_try") 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; }; then
3320   ac_cv_prog_cc_c89=$ac_arg
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325
3326 fi
3327
3328 rm -f core conftest.err conftest.$ac_objext
3329   test "x$ac_cv_prog_cc_c89" != "xno" && break
3330 done
3331 rm -f conftest.$ac_ext
3332 CC=$ac_save_CC
3333
3334 fi
3335 # AC_CACHE_VAL
3336 case "x$ac_cv_prog_cc_c89" in
3337   x)
3338     { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3340   xno)
3341     { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3343   *)
3344     CC="$CC $ac_cv_prog_cc_c89"
3345     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 esac
3348
3349
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3366   CPP=
3367 fi
3368 if test -z "$CPP"; then
3369   if test "${ac_cv_prog_CPP+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372       # Double quotes because CPP needs to be expanded
3373     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374     do
3375       ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3377 do
3378   # Use a header file that comes with gcc, so configuring glibc
3379   # with a fresh cross-compiler works.
3380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381   # <limits.h> exists even on freestanding compilers.
3382   # On the NeXT, cc -E runs the code through the compiler's parser,
3383   # not just through cpp. "Syntax error" is here to catch this case.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395                      Syntax error
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } >/dev/null; then
3410   if test -s conftest.err; then
3411     ac_cpp_err=$ac_c_preproc_warn_flag
3412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413   else
3414     ac_cpp_err=
3415   fi
3416 else
3417   ac_cpp_err=yes
3418 fi
3419 if test -z "$ac_cpp_err"; then
3420   :
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425   # Broken: fails on valid input.
3426 continue
3427 fi
3428
3429 rm -f conftest.err conftest.$ac_ext
3430
3431   # OK, works on sane cases.  Now check whether nonexistent headers
3432   # can be detected and how.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #include <ac_nonexistent.h>
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448   ac_status=$?
3449   grep -v '^ *+' conftest.er1 >conftest.err
3450   rm -f conftest.er1
3451   cat conftest.err >&5
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } >/dev/null; then
3454   if test -s conftest.err; then
3455     ac_cpp_err=$ac_c_preproc_warn_flag
3456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457   else
3458     ac_cpp_err=
3459   fi
3460 else
3461   ac_cpp_err=yes
3462 fi
3463 if test -z "$ac_cpp_err"; then
3464   # Broken: success on invalid input.
3465 continue
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470   # Passes both tests.
3471 ac_preproc_ok=:
3472 break
3473 fi
3474
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481   break
3482 fi
3483
3484     done
3485     ac_cv_prog_CPP=$CPP
3486
3487 fi
3488   CPP=$ac_cv_prog_CPP
3489 else
3490   ac_cv_prog_CPP=$CPP
3491 fi
3492 { echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6; }
3494 ac_preproc_ok=false
3495 for ac_c_preproc_warn_flag in '' yes
3496 do
3497   # Use a header file that comes with gcc, so configuring glibc
3498   # with a fresh cross-compiler works.
3499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500   # <limits.h> exists even on freestanding compilers.
3501   # On the NeXT, cc -E runs the code through the compiler's parser,
3502   # not just through cpp. "Syntax error" is here to catch this case.
3503   cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 #ifdef __STDC__
3510 # include <limits.h>
3511 #else
3512 # include <assert.h>
3513 #endif
3514                      Syntax error
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523   ac_status=$?
3524   grep -v '^ *+' conftest.er1 >conftest.err
3525   rm -f conftest.er1
3526   cat conftest.err >&5
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } >/dev/null; then
3529   if test -s conftest.err; then
3530     ac_cpp_err=$ac_c_preproc_warn_flag
3531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532   else
3533     ac_cpp_err=
3534   fi
3535 else
3536   ac_cpp_err=yes
3537 fi
3538 if test -z "$ac_cpp_err"; then
3539   :
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544   # Broken: fails on valid input.
3545 continue
3546 fi
3547
3548 rm -f conftest.err conftest.$ac_ext
3549
3550   # OK, works on sane cases.  Now check whether nonexistent headers
3551   # can be detected and how.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558 #include <ac_nonexistent.h>
3559 _ACEOF
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } >/dev/null; then
3573   if test -s conftest.err; then
3574     ac_cpp_err=$ac_c_preproc_warn_flag
3575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576   else
3577     ac_cpp_err=
3578   fi
3579 else
3580   ac_cpp_err=yes
3581 fi
3582 if test -z "$ac_cpp_err"; then
3583   # Broken: success on invalid input.
3584 continue
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589   # Passes both tests.
3590 ac_preproc_ok=:
3591 break
3592 fi
3593
3594 rm -f conftest.err conftest.$ac_ext
3595
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3600   :
3601 else
3602   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606    { (exit 1); exit 1; }; }
3607 fi
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   # Extract the first word of "grep ggrep" to use in msg output
3622 if test -z "$GREP"; then
3623 set dummy grep ggrep; ac_prog_name=$2
3624 if test "${ac_cv_path_GREP+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634   for ac_prog in grep ggrep; do
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638     # Check for GNU ac_path_GREP and select it if it is found.
3639   # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3641 *GNU*)
3642   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 *)
3644   ac_count=0
3645   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646   while :
3647   do
3648     cat "conftest.in" "conftest.in" >"conftest.tmp"
3649     mv "conftest.tmp" "conftest.in"
3650     cp "conftest.in" "conftest.nl"
3651     echo 'GREP' >> "conftest.nl"
3652     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654     ac_count=`expr $ac_count + 1`
3655     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656       # Best one so far, save it but keep looking for a better one
3657       ac_cv_path_GREP="$ac_path_GREP"
3658       ac_path_GREP_max=$ac_count
3659     fi
3660     # 10*(2^10) chars as input seems more than enough
3661     test $ac_count -gt 10 && break
3662   done
3663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 esac
3665
3666
3667     $ac_path_GREP_found && break 3
3668   done
3669 done
3670
3671 done
3672 IFS=$as_save_IFS
3673
3674
3675 fi
3676
3677 GREP="$ac_cv_path_GREP"
3678 if test -z "$GREP"; then
3679   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681    { (exit 1); exit 1; }; }
3682 fi
3683
3684 else
3685   ac_cv_path_GREP=$GREP
3686 fi
3687
3688
3689 fi
3690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692  GREP="$ac_cv_path_GREP"
3693
3694
3695 { echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701    then ac_cv_path_EGREP="$GREP -E"
3702    else
3703      # Extract the first word of "egrep" to use in msg output
3704 if test -z "$EGREP"; then
3705 set dummy egrep; ac_prog_name=$2
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_prog in egrep; do
3717   for ac_exec_ext in '' $ac_executable_extensions; do
3718     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720     # Check for GNU ac_path_EGREP and select it if it is found.
3721   # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3723 *GNU*)
3724   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 *)
3726   ac_count=0
3727   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728   while :
3729   do
3730     cat "conftest.in" "conftest.in" >"conftest.tmp"
3731     mv "conftest.tmp" "conftest.in"
3732     cp "conftest.in" "conftest.nl"
3733     echo 'EGREP' >> "conftest.nl"
3734     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736     ac_count=`expr $ac_count + 1`
3737     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738       # Best one so far, save it but keep looking for a better one
3739       ac_cv_path_EGREP="$ac_path_EGREP"
3740       ac_path_EGREP_max=$ac_count
3741     fi
3742     # 10*(2^10) chars as input seems more than enough
3743     test $ac_count -gt 10 && break
3744   done
3745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748
3749     $ac_path_EGREP_found && break 3
3750   done
3751 done
3752
3753 done
3754 IFS=$as_save_IFS
3755
3756
3757 fi
3758
3759 EGREP="$ac_cv_path_EGREP"
3760 if test -z "$EGREP"; then
3761   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 else
3767   ac_cv_path_EGREP=$EGREP
3768 fi
3769
3770
3771    fi
3772 fi
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775  EGREP="$ac_cv_path_EGREP"
3776
3777
3778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3780 if test "${ac_cv_header_stdc+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789 #include <stdlib.h>
3790 #include <stdarg.h>
3791 #include <string.h>
3792 #include <float.h>
3793
3794 int
3795 main ()
3796 {
3797
3798   ;
3799   return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_compile") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } &&
3816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817   { (case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822   (eval "$ac_try") 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; } &&
3826          { ac_try='test -s conftest.$ac_objext'
3827   { (case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832   (eval "$ac_try") 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; }; then
3836   ac_cv_header_stdc=yes
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841         ac_cv_header_stdc=no
3842 fi
3843
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845
3846 if test $ac_cv_header_stdc = yes; then
3847   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848   cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 #include <string.h>
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858   $EGREP "memchr" >/dev/null 2>&1; then
3859   :
3860 else
3861   ac_cv_header_stdc=no
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866
3867 if test $ac_cv_header_stdc = yes; then
3868   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869   cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 #include <stdlib.h>
3876
3877 _ACEOF
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879   $EGREP "free" >/dev/null 2>&1; then
3880   :
3881 else
3882   ac_cv_header_stdc=no
3883 fi
3884 rm -f conftest*
3885
3886 fi
3887
3888 if test $ac_cv_header_stdc = yes; then
3889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890   if test "$cross_compiling" = yes; then
3891   :
3892 else
3893   cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h.  */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h.  */
3899 #include <ctype.h>
3900 #include <stdlib.h>
3901 #if ((' ' & 0x0FF) == 0x020)
3902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904 #else
3905 # define ISLOWER(c) \
3906                    (('a' <= (c) && (c) <= 'i') \
3907                      || ('j' <= (c) && (c) <= 'r') \
3908                      || ('s' <= (c) && (c) <= 'z'))
3909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910 #endif
3911
3912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3913 int
3914 main ()
3915 {
3916   int i;
3917   for (i = 0; i < 256; i++)
3918     if (XOR (islower (i), ISLOWER (i))
3919         || toupper (i) != TOUPPER (i))
3920       return 2;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest$ac_exeext
3925 if { (ac_try="$ac_link"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_link") 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935   { (case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940   (eval "$ac_try") 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; }; then
3944   :
3945 else
3946   echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ( exit $ac_status )
3951 ac_cv_header_stdc=no
3952 fi
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3954 fi
3955
3956
3957 fi
3958 fi
3959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3962
3963 cat >>confdefs.h <<\_ACEOF
3964 #define STDC_HEADERS 1
3965 _ACEOF
3966
3967 fi
3968
3969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980                   inttypes.h stdint.h unistd.h
3981 do
3982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 $ac_includes_default
3995
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_compile") 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } &&
4012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013   { (case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_try") 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028   (eval "$ac_try") 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; }; then
4032   eval "$as_ac_Header=yes"
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037         eval "$as_ac_Header=no"
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 ac_res=`eval echo '${'$as_ac_Header'}'`
4043                { echo "$as_me:$LINENO: result: $ac_res" >&5
4044 echo "${ECHO_T}$ac_res" >&6; }
4045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046   cat >>confdefs.h <<_ACEOF
4047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4048 _ACEOF
4049
4050 fi
4051
4052 done
4053
4054
4055 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057 if test "${ac_cv_c_bigendian+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   # See if sys/param.h defines the BYTE_ORDER macro.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4069
4070 int
4071 main ()
4072 {
4073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4074  bogus endian macros
4075 #endif
4076
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_compile") 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096   { (case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_try") 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; } &&
4105          { ac_try='test -s conftest.$ac_objext'
4106   { (case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111   (eval "$ac_try") 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; }; then
4115   # It does; now see whether it defined to BIG_ENDIAN or not.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4124
4125 int
4126 main ()
4127 {
4128 #if BYTE_ORDER != BIG_ENDIAN
4129  not big endian
4130 #endif
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_compile") 2>conftest.er1
4144   ac_status=$?
4145   grep -v '^ *+' conftest.er1 >conftest.err
4146   rm -f conftest.er1
4147   cat conftest.err >&5
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); } &&
4150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151   { (case "(($ac_try" in
4152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153   *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156   (eval "$ac_try") 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; } &&
4160          { ac_try='test -s conftest.$ac_objext'
4161   { (case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; }; then
4170   ac_cv_c_bigendian=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175         ac_cv_c_bigendian=no
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         # It does not; compile a test program.
4184 if test "$cross_compiling" = yes; then
4185   # try to guess the endianness by grepping values into an object file
4186   ac_cv_c_bigendian=unknown
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4199 int
4200 main ()
4201 {
4202  _ascii (); _ebcdic ();
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222   { (case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_try") 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_try") 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4242   ac_cv_c_bigendian=yes
4243 fi
4244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245   if test "$ac_cv_c_bigendian" = unknown; then
4246     ac_cv_c_bigendian=no
4247   else
4248     # finding both strings is unlikely to happen, but who knows?
4249     ac_cv_c_bigendian=unknown
4250   fi
4251 fi
4252 else
4253   echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256
4257 fi
4258
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 else
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 $ac_includes_default
4268 int
4269 main ()
4270 {
4271
4272   /* Are we little or big endian?  From Harbison&Steele.  */
4273   union
4274   {
4275     long int l;
4276     char c[sizeof (long int)];
4277   } u;
4278   u.l = 1;
4279   return u.c[sizeof (long int) - 1] == 1;
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest$ac_exeext
4286 if { (ac_try="$ac_link"
4287 case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_link") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296   { (case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   ac_cv_c_bigendian=no
4306 else
4307   echo "$as_me: program exited with status $ac_status" >&5
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 ( exit $ac_status )
4312 ac_cv_c_bigendian=yes
4313 fi
4314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315 fi
4316
4317
4318 fi
4319
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324 case $ac_cv_c_bigendian in
4325   yes)
4326     ENDIAN=big
4327  ;;
4328   no)
4329     ENDIAN=little
4330  ;;
4331   *)
4332     { { echo "$as_me:$LINENO: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334 echo "$as_me: error: unknown endianness
4335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336    { (exit 1); exit 1; }; } ;;
4337 esac
4338
4339
4340 if test "$cross_compiling" = yes; then
4341   LLVM_CROSS_COMPILING=1
4342
4343
4344 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346 if test "${ac_cv_build_exeext+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350   ac_cv_build_exeext=.exe
4351 else
4352   ac_build_prefix=${build_alias}-
4353
4354   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355 set dummy ${ac_build_prefix}gcc; ac_word=$2
4356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -n "$BUILD_CC"; then
4362   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369   for ac_exec_ext in '' $ac_executable_extensions; do
4370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4371     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 BUILD_CC=$ac_cv_prog_BUILD_CC
4382 if test -n "$BUILD_CC"; then
4383   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384 echo "${ECHO_T}$BUILD_CC" >&6; }
4385 else
4386   { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4388 fi
4389
4390
4391   if test -z "$BUILD_CC"; then
4392      # Extract the first word of "gcc", so it can be a program name with args.
4393 set dummy gcc; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$BUILD_CC"; then
4400   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409     ac_cv_prog_BUILD_CC="gcc"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 BUILD_CC=$ac_cv_prog_BUILD_CC
4420 if test -n "$BUILD_CC"; then
4421   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422 echo "${ECHO_T}$BUILD_CC" >&6; }
4423 else
4424   { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4426 fi
4427
4428
4429      if test -z "$BUILD_CC"; then
4430        # Extract the first word of "cc", so it can be a program name with args.
4431 set dummy cc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$BUILD_CC"; then
4438   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 else
4440   ac_prog_rejected=no
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449        ac_prog_rejected=yes
4450        continue
4451      fi
4452     ac_cv_prog_BUILD_CC="cc"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 if test $ac_prog_rejected = yes; then
4461   # We found a bogon in the path, so make sure we never use it.
4462   set dummy $ac_cv_prog_BUILD_CC
4463   shift
4464   if test $# != 0; then
4465     # We chose a different compiler from the bogus one.
4466     # However, it has the same basename, so the bogon will be chosen
4467     # first if we set BUILD_CC to just the basename; use the full file name.
4468     shift
4469     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4470   fi
4471 fi
4472 fi
4473 fi
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4478 else
4479   { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481 fi
4482
4483
4484      fi
4485   fi
4486   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488    { (exit 1); exit 1; }; }
4489   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490   rm -f conftest*
4491   echo 'int main () { return 0; }' > conftest.$ac_ext
4492   ac_cv_build_exeext=
4493   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4494   (eval $ac_build_link) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; then
4498     for file in conftest.*; do
4499       case $file in
4500       *.c | *.o | *.obj) ;;
4501       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4502       esac
4503     done
4504   else
4505     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507    { (exit 1); exit 1; }; }
4508   fi
4509   rm -f conftest*
4510   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4511 fi
4512 fi
4513
4514 BUILD_EXEEXT=""
4515 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4516 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4518 ac_build_exeext=$BUILD_EXEEXT
4519
4520 else
4521   LLVM_CROSS_COMPILING=0
4522
4523 fi
4524
4525 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4526   cvsbuild="yes"
4527   optimize="no"
4528   CVSBUILD=CVSBUILD=1
4529
4530 else
4531   cvsbuild="no"
4532   optimize="yes"
4533 fi
4534
4535
4536 # Check whether --enable-optimized was given.
4537 if test "${enable_optimized+set}" = set; then
4538   enableval=$enable_optimized;
4539 else
4540   enableval=$optimize
4541 fi
4542
4543 if test ${enableval} = "no" ; then
4544   ENABLE_OPTIMIZED=
4545
4546 else
4547   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4548
4549 fi
4550
4551 # Check whether --enable-assertions was given.
4552 if test "${enable_assertions+set}" = set; then
4553   enableval=$enable_assertions;
4554 else
4555   enableval="yes"
4556 fi
4557
4558 if test ${enableval} = "yes" ; then
4559   DISABLE_ASSERTIONS=
4560
4561 else
4562   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4563
4564 fi
4565
4566 # Check whether --enable-debug-runtime was given.
4567 if test "${enable_debug_runtime+set}" = set; then
4568   enableval=$enable_debug_runtime;
4569 else
4570   enableval=no
4571 fi
4572
4573 if test ${enableval} = "no" ; then
4574   DEBUG_RUNTIME=
4575
4576 else
4577   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4578
4579 fi
4580
4581 # Check whether --enable-jit was given.
4582 if test "${enable_jit+set}" = set; then
4583   enableval=$enable_jit;
4584 else
4585   enableval=default
4586 fi
4587
4588 if test ${enableval} = "no"
4589 then
4590   JIT=
4591
4592 else
4593   case "$llvm_cv_target_arch" in
4594     x86)     TARGET_HAS_JIT=1
4595  ;;
4596     Sparc)   TARGET_HAS_JIT=1
4597  ;;
4598     PowerPC) TARGET_HAS_JIT=1
4599  ;;
4600     x86_64)  TARGET_HAS_JIT=0
4601  ;;
4602     Alpha)   TARGET_HAS_JIT=1
4603  ;;
4604     IA64)    TARGET_HAS_JIT=0
4605  ;;
4606     *)       TARGET_HAS_JIT=0
4607  ;;
4608   esac
4609 fi
4610
4611 # Check whether --enable-doxygen was given.
4612 if test "${enable_doxygen+set}" = set; then
4613   enableval=$enable_doxygen;
4614 else
4615   enableval=default
4616 fi
4617
4618 case "$enableval" in
4619   yes) ENABLE_DOXYGEN=1
4620  ;;
4621   no)  ENABLE_DOXYGEN=0
4622  ;;
4623   default) ENABLE_DOXYGEN=0
4624  ;;
4625   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4626 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4627    { (exit 1); exit 1; }; } ;;
4628 esac
4629
4630 # Check whether --enable-threads was given.
4631 if test "${enable_threads+set}" = set; then
4632   enableval=$enable_threads;
4633 else
4634   enableval=default
4635 fi
4636
4637 case "$enableval" in
4638   yes) ENABLE_THREADS=1
4639  ;;
4640   no)  ENABLE_THREADS=0
4641  ;;
4642   default) ENABLE_THREADS=1
4643  ;;
4644   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4645 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4646    { (exit 1); exit 1; }; } ;;
4647 esac
4648
4649 cat >>confdefs.h <<_ACEOF
4650 #define ENABLE_THREADS $ENABLE_THREADS
4651 _ACEOF
4652
4653
4654 TARGETS_TO_BUILD=""
4655 # Check whether --enable-targets was given.
4656 if test "${enable_targets+set}" = set; then
4657   enableval=$enable_targets;
4658 else
4659   enableval=all
4660 fi
4661
4662 case "$enableval" in
4663   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4664   host-only)
4665     case "$llvm_cv_target_arch" in
4666       x86)     TARGETS_TO_BUILD="X86" ;;
4667       x86_64)  TARGETS_TO_BUILD="X86" ;;
4668       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4669       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4670       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4671       IA64)    TARGETS_TO_BUILD="IA64" ;;
4672       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4673 echo "$as_me: error: Can not set target to build" >&2;}
4674    { (exit 1); exit 1; }; } ;;
4675     esac
4676     ;;
4677   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4678       case "$a_target" in
4679         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4680         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4682         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4683         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4684         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4685         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4686 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4687    { (exit 1); exit 1; }; } ;;
4688       esac
4689   done
4690   ;;
4691 esac
4692 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4693 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4694
4695
4696 # Check whether --enable-cbe-printf-a was given.
4697 if test "${enable_cbe_printf_a+set}" = set; then
4698   enableval=$enable_cbe_printf_a;
4699 else
4700   enableval=default
4701 fi
4702
4703 case "$enableval" in
4704   yes) ENABLE_CBE_PRINTF_A=1
4705  ;;
4706   no)  ENABLE_CBE_PRINTF_A=0
4707  ;;
4708   default)  ENABLE_CBE_PRINTF_A=1
4709  ;;
4710   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4711 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4712    { (exit 1); exit 1; }; } ;;
4713 esac
4714
4715 cat >>confdefs.h <<_ACEOF
4716 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4717 _ACEOF
4718
4719
4720
4721 # Check whether --with-llvmgccdir was given.
4722 if test "${with_llvmgccdir+set}" = set; then
4723   withval=$with_llvmgccdir;
4724 else
4725   withval=default
4726 fi
4727
4728 case "$withval" in
4729   default) WITH_LLVMGCCDIR=default ;;
4730   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4731   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4732 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4733    { (exit 1); exit 1; }; } ;;
4734 esac
4735
4736
4737 # Check whether --with-extra-options was given.
4738 if test "${with_extra_options+set}" = set; then
4739   withval=$with_extra_options;
4740 else
4741   withval=default
4742 fi
4743
4744 case "$withval" in
4745   default) EXTRA_OPTIONS= ;;
4746   *) EXTRA_OPTIONS=$withval ;;
4747 esac
4748 EXTRA_OPTIONS=$EXTRA_OPTIONS
4749
4750
4751
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4758 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4759 # On Suns, sometimes $CPP names a directory.
4760 if test -n "$CPP" && test -d "$CPP"; then
4761   CPP=
4762 fi
4763 if test -z "$CPP"; then
4764   if test "${ac_cv_prog_CPP+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767       # Double quotes because CPP needs to be expanded
4768     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4769     do
4770       ac_preproc_ok=false
4771 for ac_c_preproc_warn_flag in '' yes
4772 do
4773   # Use a header file that comes with gcc, so configuring glibc
4774   # with a fresh cross-compiler works.
4775   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776   # <limits.h> exists even on freestanding compilers.
4777   # On the NeXT, cc -E runs the code through the compiler's parser,
4778   # not just through cpp. "Syntax error" is here to catch this case.
4779   cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785 #ifdef __STDC__
4786 # include <limits.h>
4787 #else
4788 # include <assert.h>
4789 #endif
4790                      Syntax error
4791 _ACEOF
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 case "(($ac_try" in
4794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795   *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } >/dev/null; then
4805   if test -s conftest.err; then
4806     ac_cpp_err=$ac_c_preproc_warn_flag
4807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4808   else
4809     ac_cpp_err=
4810   fi
4811 else
4812   ac_cpp_err=yes
4813 fi
4814 if test -z "$ac_cpp_err"; then
4815   :
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820   # Broken: fails on valid input.
4821 continue
4822 fi
4823
4824 rm -f conftest.err conftest.$ac_ext
4825
4826   # OK, works on sane cases.  Now check whether nonexistent headers
4827   # can be detected and how.
4828   cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834 #include <ac_nonexistent.h>
4835 _ACEOF
4836 if { (ac_try="$ac_cpp conftest.$ac_ext"
4837 case "(($ac_try" in
4838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839   *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843   ac_status=$?
4844   grep -v '^ *+' conftest.er1 >conftest.err
4845   rm -f conftest.er1
4846   cat conftest.err >&5
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } >/dev/null; then
4849   if test -s conftest.err; then
4850     ac_cpp_err=$ac_c_preproc_warn_flag
4851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4852   else
4853     ac_cpp_err=
4854   fi
4855 else
4856   ac_cpp_err=yes
4857 fi
4858 if test -z "$ac_cpp_err"; then
4859   # Broken: success on invalid input.
4860 continue
4861 else
4862   echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865   # Passes both tests.
4866 ac_preproc_ok=:
4867 break
4868 fi
4869
4870 rm -f conftest.err conftest.$ac_ext
4871
4872 done
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then
4876   break
4877 fi
4878
4879     done
4880     ac_cv_prog_CPP=$CPP
4881
4882 fi
4883   CPP=$ac_cv_prog_CPP
4884 else
4885   ac_cv_prog_CPP=$CPP
4886 fi
4887 { echo "$as_me:$LINENO: result: $CPP" >&5
4888 echo "${ECHO_T}$CPP" >&6; }
4889 ac_preproc_ok=false
4890 for ac_c_preproc_warn_flag in '' yes
4891 do
4892   # Use a header file that comes with gcc, so configuring glibc
4893   # with a fresh cross-compiler works.
4894   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895   # <limits.h> exists even on freestanding compilers.
4896   # On the NeXT, cc -E runs the code through the compiler's parser,
4897   # not just through cpp. "Syntax error" is here to catch this case.
4898   cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4909                      Syntax error
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_c_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   :
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939   # Broken: fails on valid input.
4940 continue
4941 fi
4942
4943 rm -f conftest.err conftest.$ac_ext
4944
4945   # OK, works on sane cases.  Now check whether nonexistent headers
4946   # can be detected and how.
4947   cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 #include <ac_nonexistent.h>
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } >/dev/null; then
4968   if test -s conftest.err; then
4969     ac_cpp_err=$ac_c_preproc_warn_flag
4970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971   else
4972     ac_cpp_err=
4973   fi
4974 else
4975   ac_cpp_err=yes
4976 fi
4977 if test -z "$ac_cpp_err"; then
4978   # Broken: success on invalid input.
4979 continue
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984   # Passes both tests.
4985 ac_preproc_ok=:
4986 break
4987 fi
4988
4989 rm -f conftest.err conftest.$ac_ext
4990
4991 done
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993 rm -f conftest.err conftest.$ac_ext
4994 if $ac_preproc_ok; then
4995   :
4996 else
4997   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." >&5
4999 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5000 See \`config.log' for more details." >&2;}
5001    { (exit 1); exit 1; }; }
5002 fi
5003
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 if test -n "$ac_tool_prefix"; then
5016   for ac_prog in gcc
5017   do
5018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_prog_CC+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   if test -n "$CC"; then
5026   ac_cv_prog_CC="$CC" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033   for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 CC=$ac_cv_prog_CC
5046 if test -n "$CC"; then
5047   { echo "$as_me:$LINENO: result: $CC" >&5
5048 echo "${ECHO_T}$CC" >&6; }
5049 else
5050   { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5052 fi
5053
5054
5055     test -n "$CC" && break
5056   done
5057 fi
5058 if test -z "$CC"; then
5059   ac_ct_CC=$CC
5060   for ac_prog in gcc
5061 do
5062   # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   if test -n "$ac_ct_CC"; then
5070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077   for ac_exec_ext in '' $ac_executable_extensions; do
5078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5079     ac_cv_prog_ac_ct_CC="$ac_prog"
5080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5092 echo "${ECHO_T}$ac_ct_CC" >&6; }
5093 else
5094   { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5096 fi
5097
5098
5099   test -n "$ac_ct_CC" && break
5100 done
5101
5102   if test "x$ac_ct_CC" = x; then
5103     CC=""
5104   else
5105     case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5108 whose name does not start with the host triplet.  If you think this
5109 configuration is useful to you, please write to autoconf@gnu.org." >&5
5110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet.  If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5113 ac_tool_warned=yes ;;
5114 esac
5115     CC=$ac_ct_CC
5116   fi
5117 fi
5118
5119
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124    { (exit 1); exit 1; }; }
5125
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5130 case "(($ac_try" in
5131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132   *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135   (eval "$ac_compiler --version >&5") 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5140 case "(($ac_try" in
5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142   *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145   (eval "$ac_compiler -v >&5") 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5150 case "(($ac_try" in
5151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152   *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155   (eval "$ac_compiler -V >&5") 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }
5159
5160 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h.  */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h.  */
5171
5172 int
5173 main ()
5174 {
5175 #ifndef __GNUC__
5176        choke me
5177 #endif
5178
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_compile") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5198   { (case "(($ac_try" in
5199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200   *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203   (eval "$ac_try") 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; } &&
5207          { ac_try='test -s conftest.$ac_objext'
5208   { (case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_try") 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; }; then
5217   ac_compiler_gnu=yes
5218 else
5219   echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5221
5222         ac_compiler_gnu=no
5223 fi
5224
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5227
5228 fi
5229 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5230 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5231 GCC=`test $ac_compiler_gnu = yes && echo yes`
5232 ac_test_CFLAGS=${CFLAGS+set}
5233 ac_save_CFLAGS=$CFLAGS
5234 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5235 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5236 if test "${ac_cv_prog_cc_g+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   ac_save_c_werror_flag=$ac_c_werror_flag
5240    ac_c_werror_flag=yes
5241    ac_cv_prog_cc_g=no
5242    CFLAGS="-g"
5243    cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249
5250 int
5251 main ()
5252 {
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265   (eval "$ac_compile") 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } &&
5272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273   { (case "(($ac_try" in
5274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275   *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278   (eval "$ac_try") 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_try") 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }; }; then
5292   ac_cv_prog_cc_g=yes
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297         CFLAGS=""
5298       cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304
5305 int
5306 main ()
5307 {
5308
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5315 case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_compile") 2>conftest.er1
5321   ac_status=$?
5322   grep -v '^ *+' conftest.er1 >conftest.err
5323   rm -f conftest.er1
5324   cat conftest.err >&5
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } &&
5327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5328   { (case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_try") 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; } &&
5337          { ac_try='test -s conftest.$ac_objext'
5338   { (case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_try") 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; }; then
5347   :
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352         ac_c_werror_flag=$ac_save_c_werror_flag
5353          CFLAGS="-g"
5354          cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360
5361 int
5362 main ()
5363 {
5364
5365   ;
5366   return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (ac_try="$ac_compile"
5371 case "(($ac_try" in
5372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373   *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376   (eval "$ac_compile") 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } &&
5383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5384   { (case "(($ac_try" in
5385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386   *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389   (eval "$ac_try") 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_try") 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_cv_prog_cc_g=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408
5409 fi
5410
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 fi
5416
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418    ac_c_werror_flag=$ac_save_c_werror_flag
5419 fi
5420 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5422 if test "$ac_test_CFLAGS" = set; then
5423   CFLAGS=$ac_save_CFLAGS
5424 elif test $ac_cv_prog_cc_g = yes; then
5425   if test "$GCC" = yes; then
5426     CFLAGS="-g -O2"
5427   else
5428     CFLAGS="-g"
5429   fi
5430 else
5431   if test "$GCC" = yes; then
5432     CFLAGS="-O2"
5433   else
5434     CFLAGS=
5435   fi
5436 fi
5437 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5438 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5439 if test "${ac_cv_prog_cc_c89+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   ac_cv_prog_cc_c89=no
5443 ac_save_CC=$CC
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 #include <stdarg.h>
5451 #include <stdio.h>
5452 #include <sys/types.h>
5453 #include <sys/stat.h>
5454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5455 struct buf { int x; };
5456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5457 static char *e (p, i)
5458      char **p;
5459      int i;
5460 {
5461   return p[i];
5462 }
5463 static char *f (char * (*g) (char **, int), char **p, ...)
5464 {
5465   char *s;
5466   va_list v;
5467   va_start (v,p);
5468   s = g (p, va_arg (v,int));
5469   va_end (v);
5470   return s;
5471 }
5472
5473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5474    function prototypes and stuff, but not '\xHH' hex character constants.
5475    These don't provoke an error unfortunately, instead are silently treated
5476    as 'x'.  The following induces an error, until -std is added to get
5477    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5478    array size at least.  It's necessary to write '\x00'==0 to get something
5479    that's true only with -std.  */
5480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5481
5482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5483    inside strings and character constants.  */
5484 #define FOO(x) 'x'
5485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5486
5487 int test (int i, double x);
5488 struct s1 {int (*f) (int a);};
5489 struct s2 {int (*f) (double a);};
5490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5491 int argc;
5492 char **argv;
5493 int
5494 main ()
5495 {
5496 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5497   ;
5498   return 0;
5499 }
5500 _ACEOF
5501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5502         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5503 do
5504   CC="$ac_save_CC $ac_arg"
5505   rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5507 case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_compile") 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } &&
5519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520   { (case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_try") 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; } &&
5529          { ac_try='test -s conftest.$ac_objext'
5530   { (case "(($ac_try" in
5531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532   *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535   (eval "$ac_try") 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   ac_cv_prog_cc_c89=$ac_arg
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544
5545 fi
5546
5547 rm -f core conftest.err conftest.$ac_objext
5548   test "x$ac_cv_prog_cc_c89" != "xno" && break
5549 done
5550 rm -f conftest.$ac_ext
5551 CC=$ac_save_CC
5552
5553 fi
5554 # AC_CACHE_VAL
5555 case "x$ac_cv_prog_cc_c89" in
5556   x)
5557     { echo "$as_me:$LINENO: result: none needed" >&5
5558 echo "${ECHO_T}none needed" >&6; } ;;
5559   xno)
5560     { echo "$as_me:$LINENO: result: unsupported" >&5
5561 echo "${ECHO_T}unsupported" >&6; } ;;
5562   *)
5563     CC="$CC $ac_cv_prog_cc_c89"
5564     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5565 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5566 esac
5567
5568
5569 ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
5575 ac_ext=cpp
5576 ac_cpp='$CXXCPP $CPPFLAGS'
5577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5580 if test -z "$CXX"; then
5581   if test -n "$CCC"; then
5582     CXX=$CCC
5583   else
5584     if test -n "$ac_tool_prefix"; then
5585   for ac_prog in g++
5586   do
5587     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591 if test "${ac_cv_prog_CXX+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   if test -n "$CXX"; then
5595   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5604     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 CXX=$ac_cv_prog_CXX
5615 if test -n "$CXX"; then
5616   { echo "$as_me:$LINENO: result: $CXX" >&5
5617 echo "${ECHO_T}$CXX" >&6; }
5618 else
5619   { echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6; }
5621 fi
5622
5623
5624     test -n "$CXX" && break
5625   done
5626 fi
5627 if test -z "$CXX"; then
5628   ac_ct_CXX=$CXX
5629   for ac_prog in g++
5630 do
5631   # Extract the first word of "$ac_prog", so it can be a program name with args.
5632 set dummy $ac_prog; ac_word=$2
5633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5635 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   if test -n "$ac_ct_CXX"; then
5639   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646   for ac_exec_ext in '' $ac_executable_extensions; do
5647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5648     ac_cv_prog_ac_ct_CXX="$ac_prog"
5649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5659 if test -n "$ac_ct_CXX"; then
5660   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5661 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5662 else
5663   { echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6; }
5665 fi
5666
5667
5668   test -n "$ac_ct_CXX" && break
5669 done
5670
5671   if test "x$ac_ct_CXX" = x; then
5672     CXX="g++"
5673   else
5674     case $cross_compiling:$ac_tool_warned in
5675 yes:)
5676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5677 whose name does not start with the host triplet.  If you think this
5678 configuration is useful to you, please write to autoconf@gnu.org." >&5
5679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5680 whose name does not start with the host triplet.  If you think this
5681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684     CXX=$ac_ct_CXX
5685   fi
5686 fi
5687
5688   fi
5689 fi
5690 # Provide some information about the compiler.
5691 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5692 ac_compiler=`set X $ac_compile; echo $2`
5693 { (ac_try="$ac_compiler --version >&5"
5694 case "(($ac_try" in
5695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696   *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699   (eval "$ac_compiler --version >&5") 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }
5703 { (ac_try="$ac_compiler -v >&5"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_compiler -v >&5") 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }
5713 { (ac_try="$ac_compiler -V >&5"
5714 case "(($ac_try" in
5715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716   *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719   (eval "$ac_compiler -V >&5") 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }
5723
5724 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5725 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5726 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735
5736 int
5737 main ()
5738 {
5739 #ifndef __GNUC__
5740        choke me
5741 #endif
5742
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_compile") 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5762   { (case "(($ac_try" in
5763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764   *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767   (eval "$ac_try") 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; } &&
5771          { ac_try='test -s conftest.$ac_objext'
5772   { (case "(($ac_try" in
5773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774   *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777   (eval "$ac_try") 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_compiler_gnu=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786         ac_compiler_gnu=no
5787 fi
5788
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5791
5792 fi
5793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5794 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5795 GXX=`test $ac_compiler_gnu = yes && echo yes`
5796 ac_test_CXXFLAGS=${CXXFLAGS+set}
5797 ac_save_CXXFLAGS=$CXXFLAGS
5798 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_cxx_g+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5804    ac_cxx_werror_flag=yes
5805    ac_cv_prog_cxx_g=no
5806    CXXFLAGS="-g"
5807    cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813
5814 int
5815 main ()
5816 {
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_compile") 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837   { (case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_try") 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; } &&
5846          { ac_try='test -s conftest.$ac_objext'
5847   { (case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852   (eval "$ac_try") 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_prog_cxx_g=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861         CXXFLAGS=""
5862       cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868
5869 int
5870 main ()
5871 {
5872
5873   ;
5874   return 0;
5875 }
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881   *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884   (eval "$ac_compile") 2>conftest.er1
5885   ac_status=$?
5886   grep -v '^ *+' conftest.er1 >conftest.err
5887   rm -f conftest.er1
5888   cat conftest.err >&5
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); } &&
5891          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5892   { (case "(($ac_try" in
5893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894   *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897   (eval "$ac_try") 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; } &&
5901          { ac_try='test -s conftest.$ac_objext'
5902   { (case "(($ac_try" in
5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904   *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907   (eval "$ac_try") 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; }; then
5911   :
5912 else
5913   echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5917          CXXFLAGS="-g"
5918          cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924
5925 int
5926 main ()
5927 {
5928
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940   (eval "$ac_compile") 2>conftest.er1
5941   ac_status=$?
5942   grep -v '^ *+' conftest.er1 >conftest.err
5943   rm -f conftest.er1
5944   cat conftest.err >&5
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } &&
5947          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5948   { (case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_try") 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }; } &&
5957          { ac_try='test -s conftest.$ac_objext'
5958   { (case "(($ac_try" in
5959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960   *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963   (eval "$ac_try") 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; }; then
5967   ac_cv_prog_cxx_g=yes
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5983 fi
5984 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5985 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5986 if test "$ac_test_CXXFLAGS" = set; then
5987   CXXFLAGS=$ac_save_CXXFLAGS
5988 elif test $ac_cv_prog_cxx_g = yes; then
5989   if test "$GXX" = yes; then
5990     CXXFLAGS="-g -O2"
5991   else
5992     CXXFLAGS="-g"
5993   fi
5994 else
5995   if test "$GXX" = yes; then
5996     CXXFLAGS="-O2"
5997   else
5998     CXXFLAGS=
5999   fi
6000 fi
6001 ac_ext=c
6002 ac_cpp='$CPP $CPPFLAGS'
6003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006
6007 { echo "$as_me:$LINENO: checking " >&5
6008 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6009 if test "${ac_cv_has_flex+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   for ac_prog in flex lex
6013 do
6014   # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_LEX+set}" = set; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021   if test -n "$LEX"; then
6022   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029   for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_prog_LEX="$ac_prog"
6032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 LEX=$ac_cv_prog_LEX
6042 if test -n "$LEX"; then
6043   { echo "$as_me:$LINENO: result: $LEX" >&5
6044 echo "${ECHO_T}$LEX" >&6; }
6045 else
6046   { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6048 fi
6049
6050
6051   test -n "$LEX" && break
6052 done
6053 test -n "$LEX" || LEX=":"
6054
6055 if test -z "$LEXLIB"
6056 then
6057   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6058 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6059 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lfl  $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070
6071 /* Override any GCC internal prototype to avoid an error.
6072    Use char because int might match the return type of a GCC
6073    builtin and then its argument prototype would still apply.  */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 char yywrap ();
6078 int
6079 main ()
6080 {
6081 return yywrap ();
6082   ;
6083   return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6088 case "(($ac_try" in
6089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090   *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093   (eval "$ac_link") 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } &&
6100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101   { (case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_try") 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }; } &&
6110          { ac_try='test -s conftest$ac_exeext'
6111   { (case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116   (eval "$ac_try") 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_lib_fl_yywrap=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125         ac_cv_lib_fl_yywrap=no
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext \
6129       conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_check_lib_save_LIBS
6131 fi
6132 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6133 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6134 if test $ac_cv_lib_fl_yywrap = yes; then
6135   LEXLIB="-lfl"
6136 else
6137   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6138 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6139 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   ac_check_lib_save_LIBS=$LIBS
6143 LIBS="-ll  $LIBS"
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h.  */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h.  */
6150
6151 /* Override any GCC internal prototype to avoid an error.
6152    Use char because int might match the return type of a GCC
6153    builtin and then its argument prototype would still apply.  */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 char yywrap ();
6158 int
6159 main ()
6160 {
6161 return yywrap ();
6162   ;
6163   return 0;
6164 }
6165 _ACEOF
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (ac_try="$ac_link"
6168 case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_link") 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } &&
6180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6181   { (case "(($ac_try" in
6182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183   *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186   (eval "$ac_try") 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; } &&
6190          { ac_try='test -s conftest$ac_exeext'
6191   { (case "(($ac_try" in
6192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193   *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196   (eval "$ac_try") 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_lib_l_yywrap=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205         ac_cv_lib_l_yywrap=no
6206 fi
6207
6208 rm -f core conftest.err conftest.$ac_objext \
6209       conftest$ac_exeext conftest.$ac_ext
6210 LIBS=$ac_check_lib_save_LIBS
6211 fi
6212 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6213 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6214 if test $ac_cv_lib_l_yywrap = yes; then
6215   LEXLIB="-ll"
6216 fi
6217
6218 fi
6219
6220 fi
6221
6222 if test "x$LEX" != "x:"; then
6223   { echo "$as_me:$LINENO: checking lex output file root" >&5
6224 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_lex_root+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   # The minimal lex program is just a single line: %%.  But some broken lexes
6229 # (Solaris, I think it was) want two %% lines, so accommodate them.
6230 cat >conftest.l <<_ACEOF
6231 %%
6232 %%
6233 _ACEOF
6234 { (ac_try="$LEX conftest.l"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$LEX conftest.l") 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }
6244 if test -f lex.yy.c; then
6245   ac_cv_prog_lex_root=lex.yy
6246 elif test -f lexyy.c; then
6247   ac_cv_prog_lex_root=lexyy
6248 else
6249   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6250 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6251    { (exit 1); exit 1; }; }
6252 fi
6253 fi
6254 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6255 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6256 rm -f conftest.l
6257 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6258
6259 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6260 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6261 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   # POSIX says lex can declare yytext either as a pointer or an array; the
6265 # default is implementation-dependent. Figure out which it is, since
6266 # not all implementations provide the %pointer and %array declarations.
6267 ac_cv_prog_lex_yytext_pointer=no
6268 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6269 ac_save_LIBS=$LIBS
6270 LIBS="$LIBS $LEXLIB"
6271 cat >conftest.$ac_ext <<_ACEOF
6272 `cat $LEX_OUTPUT_ROOT.c`
6273 _ACEOF
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (ac_try="$ac_link"
6276 case "(($ac_try" in
6277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278   *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281   (eval "$ac_link") 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289   { (case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_try") 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; } &&
6298          { ac_try='test -s conftest$ac_exeext'
6299   { (case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_try") 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; }; then
6308   ac_cv_prog_lex_yytext_pointer=yes
6309 else
6310   echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313
6314 fi
6315
6316 rm -f core conftest.err conftest.$ac_objext \
6317       conftest$ac_exeext conftest.$ac_ext
6318 LIBS=$ac_save_LIBS
6319 rm -f "${LEX_OUTPUT_ROOT}.c"
6320
6321 fi
6322 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6323 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6324 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6325
6326 cat >>confdefs.h <<\_ACEOF
6327 #define YYTEXT_POINTER 1
6328 _ACEOF
6329
6330 fi
6331
6332 fi
6333
6334 fi
6335 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6336 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6337 if test "$LEX" != "flex"; then
6338   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6339 echo "$as_me: error: flex not found but required" >&2;}
6340    { (exit 1); exit 1; }; }
6341 else
6342   FLEX=flex
6343
6344 fi
6345
6346 { echo "$as_me:$LINENO: checking " >&5
6347 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6348 if test "${llvm_cv_has_bison+set}" = set; then
6349   echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351   for ac_prog in 'bison -y' byacc
6352 do
6353   # Extract the first word of "$ac_prog", so it can be a program name with args.
6354 set dummy $ac_prog; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_YACC+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   if test -n "$YACC"; then
6361   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_YACC="$ac_prog"
6371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 YACC=$ac_cv_prog_YACC
6381 if test -n "$YACC"; then
6382   { echo "$as_me:$LINENO: result: $YACC" >&5
6383 echo "${ECHO_T}$YACC" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388
6389
6390   test -n "$YACC" && break
6391 done
6392 test -n "$YACC" || YACC="yacc"
6393
6394 fi
6395 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6396 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6397 if test "$YACC" != "bison -y"; then
6398
6399   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6400 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6401 else
6402   BISON=bison
6403
6404 fi
6405
6406 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6407 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6408 if test "${lt_cv_path_NM+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   if test -n "$NM"; then
6412   # Let the user override the test.
6413   lt_cv_path_NM="$NM"
6414 else
6415   lt_nm_to_check="${ac_tool_prefix}nm"
6416   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6417     lt_nm_to_check="$lt_nm_to_check nm"
6418   fi
6419   for lt_tmp_nm in $lt_nm_to_check; do
6420     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6421     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6422       IFS="$lt_save_ifs"
6423       test -z "$ac_dir" && ac_dir=.
6424       tmp_nm="$ac_dir/$lt_tmp_nm"
6425       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6426         # Check to see if the nm accepts a BSD-compat flag.
6427         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6428         #   nm: unknown option "B" ignored
6429         # Tru64's nm complains that /dev/null is an invalid object file
6430         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6431         */dev/null* | *'Invalid file or object type'*)
6432           lt_cv_path_NM="$tmp_nm -B"
6433           break
6434           ;;
6435         *)
6436           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6437           */dev/null*)
6438             lt_cv_path_NM="$tmp_nm -p"
6439             break
6440             ;;
6441           *)
6442             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6443             continue # so that we can try to find one that supports BSD flags
6444             ;;
6445           esac
6446           ;;
6447         esac
6448       fi
6449     done
6450     IFS="$lt_save_ifs"
6451   done
6452   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6453 fi
6454 fi
6455 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6456 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6457 NM="$lt_cv_path_NM"
6458
6459
6460
6461 { echo "$as_me:$LINENO: checking for GNU make" >&5
6462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6463 if test "${llvm_cv_gnu_make_command+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   llvm_cv_gnu_make_command=''
6467  for a in "$MAKE" make gmake gnumake ; do
6468   if test -z "$a" ; then continue ; fi ;
6469   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6470   then
6471    llvm_cv_gnu_make_command=$a ;
6472    break;
6473   fi
6474  done
6475 fi
6476 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6478  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6479    ifGNUmake='' ;
6480  else
6481    ifGNUmake='#' ;
6482    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6483 echo "${ECHO_T}\"Not found\"" >&6; };
6484  fi
6485
6486
6487 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6489 LN_S=$as_ln_s
6490 if test "$LN_S" = "ln -s"; then
6491   { echo "$as_me:$LINENO: result: yes" >&5
6492 echo "${ECHO_T}yes" >&6; }
6493 else
6494   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6495 echo "${ECHO_T}no, using $LN_S" >&6; }
6496 fi
6497
6498 # Extract the first word of "cmp", so it can be a program name with args.
6499 set dummy cmp; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_path_CMP+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   case $CMP in
6506   [\\/]* | ?:[\\/]*)
6507   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6508   ;;
6509   *)
6510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515   for ac_exec_ext in '' $ac_executable_extensions; do
6516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6517     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6526   ;;
6527 esac
6528 fi
6529 CMP=$ac_cv_path_CMP
6530 if test -n "$CMP"; then
6531   { echo "$as_me:$LINENO: result: $CMP" >&5
6532 echo "${ECHO_T}$CMP" >&6; }
6533 else
6534   { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6536 fi
6537
6538
6539 # Extract the first word of "cp", so it can be a program name with args.
6540 set dummy cp; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_CP+set}" = set; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546   case $CP in
6547   [\\/]* | ?:[\\/]*)
6548   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6549   ;;
6550   *)
6551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556   for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6567   ;;
6568 esac
6569 fi
6570 CP=$ac_cv_path_CP
6571 if test -n "$CP"; then
6572   { echo "$as_me:$LINENO: result: $CP" >&5
6573 echo "${ECHO_T}$CP" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579
6580 # Extract the first word of "date", so it can be a program name with args.
6581 set dummy date; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_DATE+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   case $DATE in
6588   [\\/]* | ?:[\\/]*)
6589   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6590   ;;
6591   *)
6592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   for ac_exec_ext in '' $ac_executable_extensions; do
6598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6608   ;;
6609 esac
6610 fi
6611 DATE=$ac_cv_path_DATE
6612 if test -n "$DATE"; then
6613   { echo "$as_me:$LINENO: result: $DATE" >&5
6614 echo "${ECHO_T}$DATE" >&6; }
6615 else
6616   { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6618 fi
6619
6620
6621 # Extract the first word of "find", so it can be a program name with args.
6622 set dummy find; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_FIND+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   case $FIND in
6629   [\\/]* | ?:[\\/]*)
6630   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6631   ;;
6632   *)
6633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638   for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6649   ;;
6650 esac
6651 fi
6652 FIND=$ac_cv_path_FIND
6653 if test -n "$FIND"; then
6654   { echo "$as_me:$LINENO: result: $FIND" >&5
6655 echo "${ECHO_T}$FIND" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660
6661
6662 # Extract the first word of "grep", so it can be a program name with args.
6663 set dummy grep; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_path_GREP+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   case $GREP in
6670   [\\/]* | ?:[\\/]*)
6671   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6672   ;;
6673   *)
6674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679   for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6690   ;;
6691 esac
6692 fi
6693 GREP=$ac_cv_path_GREP
6694 if test -n "$GREP"; then
6695   { echo "$as_me:$LINENO: result: $GREP" >&5
6696 echo "${ECHO_T}$GREP" >&6; }
6697 else
6698   { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6700 fi
6701
6702
6703 # Extract the first word of "mkdir", so it can be a program name with args.
6704 set dummy mkdir; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_path_MKDIR+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710   case $MKDIR in
6711   [\\/]* | ?:[\\/]*)
6712   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6713   ;;
6714   *)
6715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720   for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6731   ;;
6732 esac
6733 fi
6734 MKDIR=$ac_cv_path_MKDIR
6735 if test -n "$MKDIR"; then
6736   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6737 echo "${ECHO_T}$MKDIR" >&6; }
6738 else
6739   { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6741 fi
6742
6743
6744 # Extract the first word of "mv", so it can be a program name with args.
6745 set dummy mv; ac_word=$2
6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748 if test "${ac_cv_path_MV+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   case $MV in
6752   [\\/]* | ?:[\\/]*)
6753   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6754   ;;
6755   *)
6756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761   for ac_exec_ext in '' $ac_executable_extensions; do
6762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6772   ;;
6773 esac
6774 fi
6775 MV=$ac_cv_path_MV
6776 if test -n "$MV"; then
6777   { echo "$as_me:$LINENO: result: $MV" >&5
6778 echo "${ECHO_T}$MV" >&6; }
6779 else
6780   { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784
6785 if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_RANLIB+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$RANLIB"; then
6794   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 RANLIB=$ac_cv_prog_RANLIB
6814 if test -n "$RANLIB"; then
6815   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816 echo "${ECHO_T}$RANLIB" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_RANLIB"; then
6825   ac_ct_RANLIB=$RANLIB
6826   # Extract the first word of "ranlib", so it can be a program name with args.
6827 set dummy ranlib; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test -n "$ac_ct_RANLIB"; then
6834   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_RANLIB="ranlib"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854 if test -n "$ac_ct_RANLIB"; then
6855   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_RANLIB" = x; then
6863     RANLIB=":"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     RANLIB=$ac_ct_RANLIB
6876   fi
6877 else
6878   RANLIB="$ac_cv_prog_RANLIB"
6879 fi
6880
6881 # Extract the first word of "rm", so it can be a program name with args.
6882 set dummy rm; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_RM+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   case $RM in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6891   ;;
6892   *)
6893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898   for ac_exec_ext in '' $ac_executable_extensions; do
6899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6909   ;;
6910 esac
6911 fi
6912 RM=$ac_cv_path_RM
6913 if test -n "$RM"; then
6914   { echo "$as_me:$LINENO: result: $RM" >&5
6915 echo "${ECHO_T}$RM" >&6; }
6916 else
6917   { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 fi
6920
6921
6922 # Extract the first word of "sed", so it can be a program name with args.
6923 set dummy sed; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_SED+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   case $SED in
6930   [\\/]* | ?:[\\/]*)
6931   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6932   ;;
6933   *)
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6950   ;;
6951 esac
6952 fi
6953 SED=$ac_cv_path_SED
6954 if test -n "$SED"; then
6955   { echo "$as_me:$LINENO: result: $SED" >&5
6956 echo "${ECHO_T}$SED" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 # Extract the first word of "tar", so it can be a program name with args.
6964 set dummy tar; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_TAR+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   case $TAR in
6971   [\\/]* | ?:[\\/]*)
6972   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6973   ;;
6974   *)
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980   for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6991   ;;
6992 esac
6993 fi
6994 TAR=$ac_cv_path_TAR
6995 if test -n "$TAR"; then
6996   { echo "$as_me:$LINENO: result: $TAR" >&5
6997 echo "${ECHO_T}$TAR" >&6; }
6998 else
6999   { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001 fi
7002
7003
7004 # Extract the first word of "pwd", so it can be a program name with args.
7005 set dummy pwd; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_BINPWD+set}" = set; then
7009   echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011   case $BINPWD in
7012   [\\/]* | ?:[\\/]*)
7013   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7014   ;;
7015   *)
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021   for ac_exec_ext in '' $ac_executable_extensions; do
7022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7032   ;;
7033 esac
7034 fi
7035 BINPWD=$ac_cv_path_BINPWD
7036 if test -n "$BINPWD"; then
7037   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7038 echo "${ECHO_T}$BINPWD" >&6; }
7039 else
7040   { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7042 fi
7043
7044
7045
7046 # Extract the first word of "Graphviz", so it can be a program name with args.
7047 set dummy Graphviz; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   case $GRAPHVIZ in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063   for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7074   ;;
7075 esac
7076 fi
7077 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7078 if test -n "$GRAPHVIZ"; then
7079   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7080 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7081 else
7082   { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7084 fi
7085
7086
7087 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7088
7089 cat >>confdefs.h <<\_ACEOF
7090 #define HAVE_GRAPHVIZ 1
7091 _ACEOF
7092
7093     if test "$llvm_cv_os_type" == "MingW" ; then
7094     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7095   fi
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7099 _ACEOF
7100
7101 fi
7102 # Extract the first word of "dot", so it can be a program name with args.
7103 set dummy dot; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_DOT+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   case $DOT in
7110   [\\/]* | ?:[\\/]*)
7111   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7112   ;;
7113   *)
7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119   for ac_exec_ext in '' $ac_executable_extensions; do
7120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7130   ;;
7131 esac
7132 fi
7133 DOT=$ac_cv_path_DOT
7134 if test -n "$DOT"; then
7135   { echo "$as_me:$LINENO: result: $DOT" >&5
7136 echo "${ECHO_T}$DOT" >&6; }
7137 else
7138   { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7140 fi
7141
7142
7143 if test "$DOT" != "echo dot" ; then
7144
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_DOT 1
7147 _ACEOF
7148
7149     if test "$llvm_cv_os_type" == "MingW" ; then
7150     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7151   fi
7152
7153 cat >>confdefs.h <<_ACEOF
7154 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7155 _ACEOF
7156
7157 fi
7158 for ac_prog in gv gsview32
7159 do
7160   # Extract the first word of "$ac_prog", so it can be a program name with args.
7161 set dummy $ac_prog; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GV+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $GV in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 GV=$ac_cv_path_GV
7191 if test -n "$GV"; then
7192   { echo "$as_me:$LINENO: result: $GV" >&5
7193 echo "${ECHO_T}$GV" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200   test -n "$GV" && break
7201 done
7202 test -n "$GV" || GV="echo gv"
7203
7204 if test "$GV" != "echo gv" ; then
7205
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_GV 1
7208 _ACEOF
7209
7210     if test "$llvm_cv_os_type" == "MingW" ; then
7211     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7212   fi
7213
7214 cat >>confdefs.h <<_ACEOF
7215 #define LLVM_PATH_GV "$GV${EXEEXT}"
7216 _ACEOF
7217
7218 fi
7219 # Extract the first word of "dotty", so it can be a program name with args.
7220 set dummy dotty; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_DOTTY+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   case $DOTTY in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7247   ;;
7248 esac
7249 fi
7250 DOTTY=$ac_cv_path_DOTTY
7251 if test -n "$DOTTY"; then
7252   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7253 echo "${ECHO_T}$DOTTY" >&6; }
7254 else
7255   { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7257 fi
7258
7259
7260 if test "$DOTTY" != "echo dotty" ; then
7261
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_DOTTY 1
7264 _ACEOF
7265
7266     if test "$llvm_cv_os_type" == "MingW" ; then
7267     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7268   fi
7269
7270 cat >>confdefs.h <<_ACEOF
7271 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7272 _ACEOF
7273
7274 fi
7275
7276
7277 # Extract the first word of "perl", so it can be a program name with args.
7278 set dummy perl; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PERL+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   case $PERL in
7285   [\\/]* | ?:[\\/]*)
7286   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7287   ;;
7288   *)
7289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294   for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7305   ;;
7306 esac
7307 fi
7308 PERL=$ac_cv_path_PERL
7309 if test -n "$PERL"; then
7310   { echo "$as_me:$LINENO: result: $PERL" >&5
7311 echo "${ECHO_T}$PERL" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318 if test "$PERL" != "none"; then
7319   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7320 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7321   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7322     { echo "$as_me:$LINENO: result: yes" >&5
7323 echo "${ECHO_T}yes" >&6; }
7324   else
7325     PERL=none
7326     { echo "$as_me:$LINENO: result: not found" >&5
7327 echo "${ECHO_T}not found" >&6; }
7328   fi
7329 fi
7330
7331
7332 if test x"$PERL" = xnone; then
7333    HAVE_PERL=0
7334
7335 else
7336    HAVE_PERL=1
7337
7338 fi
7339
7340 # Find a good install program.  We prefer a C program (faster),
7341 # so one script is as good as another.  But avoid the broken or
7342 # incompatible versions:
7343 # SysV /etc/install, /usr/sbin/install
7344 # SunOS /usr/etc/install
7345 # IRIX /sbin/install
7346 # AIX /bin/install
7347 # AmigaOS /C/install, which installs bootblocks on floppy discs
7348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7351 # OS/2's system install, which has a completely different semantic
7352 # ./install, which can be erroneously created by make from ./install.sh.
7353 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7355 if test -z "$INSTALL"; then
7356 if test "${ac_cv_path_install+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364   # Account for people who put trailing slashes in PATH elements.
7365 case $as_dir/ in
7366   ./ | .// | /cC/* | \
7367   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7368   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7369   /usr/ucb/* ) ;;
7370   *)
7371     # OSF1 and SCO ODT 3.0 have their own names for install.
7372     # Don't use installbsd from OSF since it installs stuff as root
7373     # by default.
7374     for ac_prog in ginstall scoinst install; do
7375       for ac_exec_ext in '' $ac_executable_extensions; do
7376         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7377           if test $ac_prog = install &&
7378             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7379             # AIX install.  It has an incompatible calling convention.
7380             :
7381           elif test $ac_prog = install &&
7382             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7383             # program-specific install script used by HP pwplus--don't use.
7384             :
7385           else
7386             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7387             break 3
7388           fi
7389         fi
7390       done
7391     done
7392     ;;
7393 esac
7394 done
7395 IFS=$as_save_IFS
7396
7397
7398 fi
7399   if test "${ac_cv_path_install+set}" = set; then
7400     INSTALL=$ac_cv_path_install
7401   else
7402     # As a last resort, use the slow shell script.  Don't cache a
7403     # value for INSTALL within a source directory, because that will
7404     # break other packages using the cache if that directory is
7405     # removed, or if the value is a relative name.
7406     INSTALL=$ac_install_sh
7407   fi
7408 fi
7409 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7410 echo "${ECHO_T}$INSTALL" >&6; }
7411
7412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7413 # It thinks the first close brace ends the variable substitution.
7414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7415
7416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7417
7418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7419
7420
7421 # Extract the first word of "bzip2", so it can be a program name with args.
7422 set dummy bzip2; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_BZIP2+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   case $BZIP2 in
7429   [\\/]* | ?:[\\/]*)
7430   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7431   ;;
7432   *)
7433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438   for ac_exec_ext in '' $ac_executable_extensions; do
7439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7449   ;;
7450 esac
7451 fi
7452 BZIP2=$ac_cv_path_BZIP2
7453 if test -n "$BZIP2"; then
7454   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7455 echo "${ECHO_T}$BZIP2" >&6; }
7456 else
7457   { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7459 fi
7460
7461
7462 # Extract the first word of "doxygen", so it can be a program name with args.
7463 set dummy doxygen; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   case $DOXYGEN in
7470   [\\/]* | ?:[\\/]*)
7471   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7472   ;;
7473   *)
7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479   for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7490   ;;
7491 esac
7492 fi
7493 DOXYGEN=$ac_cv_path_DOXYGEN
7494 if test -n "$DOXYGEN"; then
7495   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496 echo "${ECHO_T}$DOXYGEN" >&6; }
7497 else
7498   { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7500 fi
7501
7502
7503 # Extract the first word of "groff", so it can be a program name with args.
7504 set dummy groff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GROFF+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   case $GROFF in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7531   ;;
7532 esac
7533 fi
7534 GROFF=$ac_cv_path_GROFF
7535 if test -n "$GROFF"; then
7536   { echo "$as_me:$LINENO: result: $GROFF" >&5
7537 echo "${ECHO_T}$GROFF" >&6; }
7538 else
7539   { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7541 fi
7542
7543
7544 # Extract the first word of "gzip", so it can be a program name with args.
7545 set dummy gzip; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GZIP+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $GZIP in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7572   ;;
7573 esac
7574 fi
7575 GZIP=$ac_cv_path_GZIP
7576 if test -n "$GZIP"; then
7577   { echo "$as_me:$LINENO: result: $GZIP" >&5
7578 echo "${ECHO_T}$GZIP" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 # Extract the first word of "pod2html", so it can be a program name with args.
7586 set dummy pod2html; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_POD2HTML+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $POD2HTML in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7613   ;;
7614 esac
7615 fi
7616 POD2HTML=$ac_cv_path_POD2HTML
7617 if test -n "$POD2HTML"; then
7618   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7619 echo "${ECHO_T}$POD2HTML" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626 # Extract the first word of "pod2man", so it can be a program name with args.
7627 set dummy pod2man; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_POD2MAN+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   case $POD2MAN in
7634   [\\/]* | ?:[\\/]*)
7635   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7636   ;;
7637   *)
7638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643   for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7654   ;;
7655 esac
7656 fi
7657 POD2MAN=$ac_cv_path_POD2MAN
7658 if test -n "$POD2MAN"; then
7659   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7660 echo "${ECHO_T}$POD2MAN" >&6; }
7661 else
7662   { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7664 fi
7665
7666
7667 # Extract the first word of "runtest", so it can be a program name with args.
7668 set dummy runtest; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_RUNTEST+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   case $RUNTEST in
7675   [\\/]* | ?:[\\/]*)
7676   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7677   ;;
7678   *)
7679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7695   ;;
7696 esac
7697 fi
7698 RUNTEST=$ac_cv_path_RUNTEST
7699 if test -n "$RUNTEST"; then
7700   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7701 echo "${ECHO_T}$RUNTEST" >&6; }
7702 else
7703   { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7705 fi
7706
7707
7708
7709 no_itcl=true
7710 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7711 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7712
7713 # Check whether --with-tclinclude was given.
7714 if test "${with_tclinclude+set}" = set; then
7715   withval=$with_tclinclude; with_tclinclude=${withval}
7716 else
7717   with_tclinclude=''
7718 fi
7719
7720 if test "${ac_cv_path_tclsh+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723
7724 if test x"${with_tclinclude}" != x ; then
7725   if test -f ${with_tclinclude}/tclsh ; then
7726     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7727   elif test -f ${with_tclinclude}/src/tclsh ; then
7728     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7729   else
7730     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7731 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7732    { (exit 1); exit 1; }; }
7733   fi
7734 fi
7735
7736 if test x"${ac_cv_path_tclsh}" = x ; then
7737   { echo "$as_me:$LINENO: result: none" >&5
7738 echo "${ECHO_T}none" >&6; }
7739   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
7740 do
7741   # Extract the first word of "$ac_prog", so it can be a program name with args.
7742 set dummy $ac_prog; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_TCLSH+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $TCLSH in
7749   [\\/]* | ?:[\\/]*)
7750   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7751   ;;
7752   *)
7753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768   ;;
7769 esac
7770 fi
7771 TCLSH=$ac_cv_path_TCLSH
7772 if test -n "$TCLSH"; then
7773   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7774 echo "${ECHO_T}$TCLSH" >&6; }
7775 else
7776   { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7779
7780
7781   test -n "$TCLSH" && break
7782 done
7783
7784   if test x"${TCLSH}" = x ; then
7785     ac_cv_path_tclsh='';
7786   else
7787     ac_cv_path_tclsh="${TCLSH}";
7788   fi
7789 else
7790   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7791 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7792   TCLSH="${ac_cv_path_tclsh}"
7793
7794 fi
7795
7796 fi
7797
7798 # Extract the first word of "zip", so it can be a program name with args.
7799 set dummy zip; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_ZIP+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   case $ZIP in
7806   [\\/]* | ?:[\\/]*)
7807   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7808   ;;
7809   *)
7810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7826   ;;
7827 esac
7828 fi
7829 ZIP=$ac_cv_path_ZIP
7830 if test -n "$ZIP"; then
7831   { echo "$as_me:$LINENO: result: $ZIP" >&5
7832 echo "${ECHO_T}$ZIP" >&6; }
7833 else
7834   { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7836 fi
7837
7838
7839
7840 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7841 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7842 if test "${llvm_cv_link_use_r+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845    ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851   oldcflags="$CFLAGS"
7852   CFLAGS="$CFLAGS -Wl,-R."
7853   cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h.  */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h.  */
7859
7860 int
7861 main ()
7862 {
7863 int main() { return 0; }
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872   *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875   (eval "$ac_link") 2>conftest.er1
7876   ac_status=$?
7877   grep -v '^ *+' conftest.er1 >conftest.err
7878   rm -f conftest.er1
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } &&
7882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; } &&
7892          { ac_try='test -s conftest$ac_exeext'
7893   { (case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898   (eval "$ac_try") 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   llvm_cv_link_use_r=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907         llvm_cv_link_use_r=no
7908 fi
7909
7910 rm -f core conftest.err conftest.$ac_objext \
7911       conftest$ac_exeext conftest.$ac_ext
7912   CFLAGS="$oldcflags"
7913   ac_ext=c
7914 ac_cpp='$CPP $CPPFLAGS'
7915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919
7920 fi
7921 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7922 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7923 if test "$llvm_cv_link_use_r" = yes ; then
7924
7925 cat >>confdefs.h <<\_ACEOF
7926 #define HAVE_LINK_R 1
7927 _ACEOF
7928
7929   fi
7930
7931
7932
7933
7934 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7935 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7936 if test "${ac_cv_c_const+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 int
7947 main ()
7948 {
7949 /* FIXME: Include the comments suggested by Paul. */
7950 #ifndef __cplusplus
7951   /* Ultrix mips cc rejects this.  */
7952   typedef int charset[2];
7953   const charset x;
7954   /* SunOS 4.1.1 cc rejects this.  */
7955   char const *const *ccp;
7956   char **p;
7957   /* NEC SVR4.0.2 mips cc rejects this.  */
7958   struct point {int x, y;};
7959   static struct point const zero = {0,0};
7960   /* AIX XL C 1.02.0.0 rejects this.
7961      It does not let you subtract one const X* pointer from another in
7962      an arm of an if-expression whose if-part is not a constant
7963      expression */
7964   const char *g = "string";
7965   ccp = &g + (g ? g-g : 0);
7966   /* HPUX 7.0 cc rejects these. */
7967   ++ccp;
7968   p = (char**) ccp;
7969   ccp = (char const *const *) p;
7970   { /* SCO 3.2v4 cc rejects this.  */
7971     char *t;
7972     char const *s = 0 ? (char *) 0 : (char const *) 0;
7973
7974     *t++ = 0;
7975     if (s) return 0;
7976   }
7977   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7978     int x[] = {25, 17};
7979     const int *foo = &x[0];
7980     ++foo;
7981   }
7982   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7983     typedef const int *iptr;
7984     iptr p = 0;
7985     ++p;
7986   }
7987   { /* AIX XL C 1.02.0.0 rejects this saying
7988        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7989     struct s { int j; const int *ap[3]; };
7990     struct s *b; b->j = 5;
7991   }
7992   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7993     const int foo = 10;
7994     if (!foo) return 0;
7995   }
7996   return !x[0] && !zero.x;
7997 #endif
7998
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010   (eval "$ac_compile") 2>conftest.er1
8011   ac_status=$?
8012   grep -v '^ *+' conftest.er1 >conftest.err
8013   rm -f conftest.er1
8014   cat conftest.err >&5
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } &&
8017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8018   { (case "(($ac_try" in
8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020   *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023   (eval "$ac_try") 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; } &&
8027          { ac_try='test -s conftest.$ac_objext'
8028   { (case "(($ac_try" in
8029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030   *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033   (eval "$ac_try") 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_cv_c_const=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042         ac_cv_c_const=no
8043 fi
8044
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 fi
8047 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8049 if test $ac_cv_c_const = no; then
8050
8051 cat >>confdefs.h <<\_ACEOF
8052 #define const
8053 _ACEOF
8054
8055 fi
8056
8057
8058
8059
8060
8061
8062 ac_header_dirent=no
8063 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8064   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8065 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8066 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h.  */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h.  */
8076 #include <sys/types.h>
8077 #include <$ac_hdr>
8078
8079 int
8080 main ()
8081 {
8082 if ((DIR *) 0)
8083 return 0;
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8090 case "(($ac_try" in
8091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092   *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095   (eval "$ac_compile") 2>conftest.er1
8096   ac_status=$?
8097   grep -v '^ *+' conftest.er1 >conftest.err
8098   rm -f conftest.er1
8099   cat conftest.err >&5
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); } &&
8102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8103   { (case "(($ac_try" in
8104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105   *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108   (eval "$ac_try") 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; } &&
8112          { ac_try='test -s conftest.$ac_objext'
8113   { (case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_try") 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; }; then
8122   eval "$as_ac_Header=yes"
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127         eval "$as_ac_Header=no"
8128 fi
8129
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 fi
8132 ac_res=`eval echo '${'$as_ac_Header'}'`
8133                { echo "$as_me:$LINENO: result: $ac_res" >&5
8134 echo "${ECHO_T}$ac_res" >&6; }
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136   cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8138 _ACEOF
8139
8140 ac_header_dirent=$ac_hdr; break
8141 fi
8142
8143 done
8144 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8145 if test $ac_header_dirent = dirent.h; then
8146   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8147 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8148 if test "${ac_cv_search_opendir+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   ac_func_search_save_LIBS=$LIBS
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158
8159 /* Override any GCC internal prototype to avoid an error.
8160    Use char because int might match the return type of a GCC
8161    builtin and then its argument prototype would still apply.  */
8162 #ifdef __cplusplus
8163 extern "C"
8164 #endif
8165 char opendir ();
8166 int
8167 main ()
8168 {
8169 return opendir ();
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 for ac_lib in '' dir; do
8175   if test -z "$ac_lib"; then
8176     ac_res="none required"
8177   else
8178     ac_res=-l$ac_lib
8179     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8180   fi
8181   rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8183 case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_link") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } &&
8195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196   { (case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_try") 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; } &&
8205          { ac_try='test -s conftest$ac_exeext'
8206   { (case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211   (eval "$ac_try") 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; }; then
8215   ac_cv_search_opendir=$ac_res
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220
8221 fi
8222
8223 rm -f core conftest.err conftest.$ac_objext \
8224       conftest$ac_exeext
8225   if test "${ac_cv_search_opendir+set}" = set; then
8226   break
8227 fi
8228 done
8229 if test "${ac_cv_search_opendir+set}" = set; then
8230   :
8231 else
8232   ac_cv_search_opendir=no
8233 fi
8234 rm conftest.$ac_ext
8235 LIBS=$ac_func_search_save_LIBS
8236 fi
8237 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8238 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8239 ac_res=$ac_cv_search_opendir
8240 if test "$ac_res" != no; then
8241   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8242
8243 fi
8244
8245 else
8246   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8247 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8248 if test "${ac_cv_search_opendir+set}" = set; then
8249   echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251   ac_func_search_save_LIBS=$LIBS
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260    Use char because int might match the return type of a GCC
8261    builtin and then its argument prototype would still apply.  */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char opendir ();
8266 int
8267 main ()
8268 {
8269 return opendir ();
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 for ac_lib in '' x; do
8275   if test -z "$ac_lib"; then
8276     ac_res="none required"
8277   else
8278     ac_res=-l$ac_lib
8279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8280   fi
8281   rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8283 case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_link") 2>conftest.er1
8289   ac_status=$?
8290   grep -v '^ *+' conftest.er1 >conftest.err
8291   rm -f conftest.er1
8292   cat conftest.err >&5
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } &&
8295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8296   { (case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_try") 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; } &&
8305          { ac_try='test -s conftest$ac_exeext'
8306   { (case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_try") 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   ac_cv_search_opendir=$ac_res
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320
8321 fi
8322
8323 rm -f core conftest.err conftest.$ac_objext \
8324       conftest$ac_exeext
8325   if test "${ac_cv_search_opendir+set}" = set; then
8326   break
8327 fi
8328 done
8329 if test "${ac_cv_search_opendir+set}" = set; then
8330   :
8331 else
8332   ac_cv_search_opendir=no
8333 fi
8334 rm conftest.$ac_ext
8335 LIBS=$ac_func_search_save_LIBS
8336 fi
8337 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8338 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8339 ac_res=$ac_cv_search_opendir
8340 if test "$ac_res" != no; then
8341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8342
8343 fi
8344
8345 fi
8346
8347
8348 for ac_header in dlfcn.h
8349 do
8350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 fi
8357 ac_res=`eval echo '${'$as_ac_Header'}'`
8358                { echo "$as_me:$LINENO: result: $ac_res" >&5
8359 echo "${ECHO_T}$ac_res" >&6; }
8360 else
8361   # Is the header compilable?
8362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 $ac_includes_default
8371 #include <$ac_header>
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_compile") 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388   { (case "(($ac_try" in
8389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390   *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393   (eval "$ac_try") 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; } &&
8397          { ac_try='test -s conftest.$ac_objext'
8398   { (case "(($ac_try" in
8399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400   *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403   (eval "$ac_try") 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; }; then
8407   ac_header_compiler=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412         ac_header_compiler=no
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417 echo "${ECHO_T}$ac_header_compiler" >&6; }
8418
8419 # Is the header present?
8420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428 #include <$ac_header>
8429 _ACEOF
8430 if { (ac_try="$ac_cpp conftest.$ac_ext"
8431 case "(($ac_try" in
8432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433   *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8437   ac_status=$?
8438   grep -v '^ *+' conftest.er1 >conftest.err
8439   rm -f conftest.er1
8440   cat conftest.err >&5
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } >/dev/null; then
8443   if test -s conftest.err; then
8444     ac_cpp_err=$ac_c_preproc_warn_flag
8445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446   else
8447     ac_cpp_err=
8448   fi
8449 else
8450   ac_cpp_err=yes
8451 fi
8452 if test -z "$ac_cpp_err"; then
8453   ac_header_preproc=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458   ac_header_preproc=no
8459 fi
8460
8461 rm -f conftest.err conftest.$ac_ext
8462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8463 echo "${ECHO_T}$ac_header_preproc" >&6; }
8464
8465 # So?  What about this header?
8466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8467   yes:no: )
8468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8472     ac_header_preproc=yes
8473     ;;
8474   no:yes:* )
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8487     ( cat <<\_ASBOX
8488 ## ----------------------------------- ##
8489 ## Report this to llvmbugs@cs.uiuc.edu ##
8490 ## ----------------------------------- ##
8491 _ASBOX
8492      ) | sed "s/^/$as_me: WARNING:     /" >&2
8493     ;;
8494 esac
8495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   eval "$as_ac_Header=\$ac_header_preproc"
8501 fi
8502 ac_res=`eval echo '${'$as_ac_Header'}'`
8503                { echo "$as_me:$LINENO: result: $ac_res" >&5
8504 echo "${ECHO_T}$ac_res" >&6; }
8505
8506 fi
8507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508   cat >>confdefs.h <<_ACEOF
8509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510 _ACEOF
8511
8512 fi
8513
8514 done
8515
8516 # Check whether --enable-ltdl-install was given.
8517 if test "${enable_ltdl_install+set}" = set; then
8518   enableval=$enable_ltdl_install;
8519 fi
8520
8521
8522
8523
8524 if test x"${enable_ltdl_install-no}" != xno; then
8525   INSTALL_LTDL_TRUE=
8526   INSTALL_LTDL_FALSE='#'
8527 else
8528   INSTALL_LTDL_TRUE='#'
8529   INSTALL_LTDL_FALSE=
8530 fi
8531
8532
8533
8534 if test x"${enable_ltdl_convenience-no}" != xno; then
8535   CONVENIENCE_LTDL_TRUE=
8536   CONVENIENCE_LTDL_FALSE='#'
8537 else
8538   CONVENIENCE_LTDL_TRUE='#'
8539   CONVENIENCE_LTDL_FALSE=
8540 fi
8541
8542
8543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8545 library_names_spec=
8546 libname_spec='lib$name'
8547 soname_spec=
8548 shrext_cmds=".so"
8549 postinstall_cmds=
8550 postuninstall_cmds=
8551 finish_cmds=
8552 finish_eval=
8553 shlibpath_var=
8554 shlibpath_overrides_runpath=unknown
8555 version_type=none
8556 dynamic_linker="$host_os ld.so"
8557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558 if test "$GCC" = yes; then
8559   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8561     # if the path contains ";" then we assume it to be the separator
8562     # otherwise default to the standard path separator (i.e. ":") - it is
8563     # assumed that no part of a normal pathname contains ";" but that should
8564     # okay in the real world where ";" in dirpaths is itself problematic.
8565     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8566   else
8567     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8568   fi
8569 else
8570   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8571 fi
8572 need_lib_prefix=unknown
8573 hardcode_into_libs=no
8574
8575 # when you set need_version to no, make sure it does not cause -set_version
8576 # flags to be left without arguments
8577 need_version=unknown
8578
8579 case $host_os in
8580 aix3*)
8581   version_type=linux
8582   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8583   shlibpath_var=LIBPATH
8584
8585   # AIX 3 has no versioning support, so we append a major version to the name.
8586   soname_spec='${libname}${release}${shared_ext}$major'
8587   ;;
8588
8589 aix4* | aix5*)
8590   version_type=linux
8591   need_lib_prefix=no
8592   need_version=no
8593   hardcode_into_libs=yes
8594   if test "$host_cpu" = ia64; then
8595     # AIX 5 supports IA64
8596     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8597     shlibpath_var=LD_LIBRARY_PATH
8598   else
8599     # With GCC up to 2.95.x, collect2 would create an import file
8600     # for dependence libraries.  The import file would start with
8601     # the line `#! .'.  This would cause the generated library to
8602     # depend on `.', always an invalid library.  This was fixed in
8603     # development snapshots of GCC prior to 3.0.
8604     case $host_os in
8605       aix4 | aix4.[01] | aix4.[01].*)
8606       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8607            echo ' yes '
8608            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8609         :
8610       else
8611         can_build_shared=no
8612       fi
8613       ;;
8614     esac
8615     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8616     # soname into executable. Probably we can add versioning support to
8617     # collect2, so additional links can be useful in future.
8618     if test "$aix_use_runtimelinking" = yes; then
8619       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8620       # instead of lib<name>.a to let people know that these are not
8621       # typical AIX shared libraries.
8622       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623     else
8624       # We preserve .a as extension for shared libraries through AIX4.2
8625       # and later when we are not doing run time linking.
8626       library_names_spec='${libname}${release}.a $libname.a'
8627       soname_spec='${libname}${release}${shared_ext}$major'
8628     fi
8629     shlibpath_var=LIBPATH
8630   fi
8631   ;;
8632
8633 amigaos*)
8634   library_names_spec='$libname.ixlibrary $libname.a'
8635   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8636   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'
8637   ;;
8638
8639 beos*)
8640   library_names_spec='${libname}${shared_ext}'
8641   dynamic_linker="$host_os ld.so"
8642   shlibpath_var=LIBRARY_PATH
8643   ;;
8644
8645 bsdi[45]*)
8646   version_type=linux
8647   need_version=no
8648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649   soname_spec='${libname}${release}${shared_ext}$major'
8650   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8651   shlibpath_var=LD_LIBRARY_PATH
8652   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8653   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8654   # the default ld.so.conf also contains /usr/contrib/lib and
8655   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8656   # libtool to hard-code these into programs
8657   ;;
8658
8659 cygwin* | mingw* | pw32*)
8660   version_type=windows
8661   shrext_cmds=".dll"
8662   need_version=no
8663   need_lib_prefix=no
8664
8665   case $GCC,$host_os in
8666   yes,cygwin* | yes,mingw* | yes,pw32*)
8667     library_names_spec='$libname.dll.a'
8668     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8669     postinstall_cmds='base_file=`basename \${file}`~
8670       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8671       dldir=$destdir/`dirname \$dlpath`~
8672       test -d \$dldir || mkdir -p \$dldir~
8673       $install_prog $dir/$dlname \$dldir/$dlname~
8674       chmod a+x \$dldir/$dlname'
8675     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8676       dlpath=$dir/\$dldll~
8677        $rm \$dlpath'
8678     shlibpath_overrides_runpath=yes
8679
8680     case $host_os in
8681     cygwin*)
8682       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8683       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8685       ;;
8686     mingw*)
8687       # MinGW DLLs use traditional 'lib' prefix
8688       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8690       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8691         # It is most probably a Windows format PATH printed by
8692         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8693         # path with ; separators, and with drive letters. We can handle the
8694         # drive letters (cygwin fileutils understands them), so leave them,
8695         # especially as we might pass files found there to a mingw objdump,
8696         # which wouldn't understand a cygwinified path. Ahh.
8697         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8698       else
8699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8700       fi
8701       ;;
8702     pw32*)
8703       # pw32 DLLs use 'pw' prefix rather than 'lib'
8704       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8705       ;;
8706     esac
8707     ;;
8708
8709   *)
8710     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8711     ;;
8712   esac
8713   dynamic_linker='Win32 ld.exe'
8714   # FIXME: first we should search . and the directory the executable is in
8715   shlibpath_var=PATH
8716   ;;
8717
8718 darwin* | rhapsody*)
8719   dynamic_linker="$host_os dyld"
8720   version_type=darwin
8721   need_lib_prefix=no
8722   need_version=no
8723   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8724   soname_spec='${libname}${release}${major}$shared_ext'
8725   shlibpath_overrides_runpath=yes
8726   shlibpath_var=DYLD_LIBRARY_PATH
8727   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8728   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8729   if test "$GCC" = yes; then
8730     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"`
8731   else
8732     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8733   fi
8734   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8735   ;;
8736
8737 dgux*)
8738   version_type=linux
8739   need_lib_prefix=no
8740   need_version=no
8741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8742   soname_spec='${libname}${release}${shared_ext}$major'
8743   shlibpath_var=LD_LIBRARY_PATH
8744   ;;
8745
8746 freebsd1*)
8747   dynamic_linker=no
8748   ;;
8749
8750 kfreebsd*-gnu)
8751   version_type=linux
8752   need_lib_prefix=no
8753   need_version=no
8754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8755   soname_spec='${libname}${release}${shared_ext}$major'
8756   shlibpath_var=LD_LIBRARY_PATH
8757   shlibpath_overrides_runpath=no
8758   hardcode_into_libs=yes
8759   dynamic_linker='GNU ld.so'
8760   ;;
8761
8762 freebsd* | dragonfly*)
8763   # DragonFly does not have aout.  When/if they implement a new
8764   # versioning mechanism, adjust this.
8765   if test -x /usr/bin/objformat; then
8766     objformat=`/usr/bin/objformat`
8767   else
8768     case $host_os in
8769     freebsd[123]*) objformat=aout ;;
8770     *) objformat=elf ;;
8771     esac
8772   fi
8773   version_type=freebsd-$objformat
8774   case $version_type in
8775     freebsd-elf*)
8776       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8777       need_version=no
8778       need_lib_prefix=no
8779       ;;
8780     freebsd-*)
8781       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8782       need_version=yes
8783       ;;
8784   esac
8785   shlibpath_var=LD_LIBRARY_PATH
8786   case $host_os in
8787   freebsd2*)
8788     shlibpath_overrides_runpath=yes
8789     ;;
8790   freebsd3.[01]* | freebsdelf3.[01]*)
8791     shlibpath_overrides_runpath=yes
8792     hardcode_into_libs=yes
8793     ;;
8794   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8795   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8796     shlibpath_overrides_runpath=no
8797     hardcode_into_libs=yes
8798     ;;
8799   freebsd*) # from 4.6 on
8800     shlibpath_overrides_runpath=yes
8801     hardcode_into_libs=yes
8802     ;;
8803   esac
8804   ;;
8805
8806 gnu*)
8807   version_type=linux
8808   need_lib_prefix=no
8809   need_version=no
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8811   soname_spec='${libname}${release}${shared_ext}$major'
8812   shlibpath_var=LD_LIBRARY_PATH
8813   hardcode_into_libs=yes
8814   ;;
8815
8816 hpux9* | hpux10* | hpux11*)
8817   # Give a soname corresponding to the major version so that dld.sl refuses to
8818   # link against other versions.
8819   version_type=sunos
8820   need_lib_prefix=no
8821   need_version=no
8822   case $host_cpu in
8823   ia64*)
8824     shrext_cmds='.so'
8825     hardcode_into_libs=yes
8826     dynamic_linker="$host_os dld.so"
8827     shlibpath_var=LD_LIBRARY_PATH
8828     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830     soname_spec='${libname}${release}${shared_ext}$major'
8831     if test "X$HPUX_IA64_MODE" = X32; then
8832       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8833     else
8834       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8835     fi
8836     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8837     ;;
8838    hppa*64*)
8839      shrext_cmds='.sl'
8840      hardcode_into_libs=yes
8841      dynamic_linker="$host_os dld.sl"
8842      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8843      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845      soname_spec='${libname}${release}${shared_ext}$major'
8846      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8847      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8848      ;;
8849    *)
8850     shrext_cmds='.sl'
8851     dynamic_linker="$host_os dld.sl"
8852     shlibpath_var=SHLIB_PATH
8853     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855     soname_spec='${libname}${release}${shared_ext}$major'
8856     ;;
8857   esac
8858   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8859   postinstall_cmds='chmod 555 $lib'
8860   ;;
8861
8862 interix3*)
8863   version_type=linux
8864   need_lib_prefix=no
8865   need_version=no
8866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867   soname_spec='${libname}${release}${shared_ext}$major'
8868   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8869   shlibpath_var=LD_LIBRARY_PATH
8870   shlibpath_overrides_runpath=no
8871   hardcode_into_libs=yes
8872   ;;
8873
8874 irix5* | irix6* | nonstopux*)
8875   case $host_os in
8876     nonstopux*) version_type=nonstopux ;;
8877     *)
8878         if test "$lt_cv_prog_gnu_ld" = yes; then
8879                 version_type=linux
8880         else
8881                 version_type=irix
8882         fi ;;
8883   esac
8884   need_lib_prefix=no
8885   need_version=no
8886   soname_spec='${libname}${release}${shared_ext}$major'
8887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8888   case $host_os in
8889   irix5* | nonstopux*)
8890     libsuff= shlibsuff=
8891     ;;
8892   *)
8893     case $LD in # libtool.m4 will add one of these switches to LD
8894     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8895       libsuff= shlibsuff= libmagic=32-bit;;
8896     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8897       libsuff=32 shlibsuff=N32 libmagic=N32;;
8898     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8899       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8900     *) libsuff= shlibsuff= libmagic=never-match;;
8901     esac
8902     ;;
8903   esac
8904   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8905   shlibpath_overrides_runpath=no
8906   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8907   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8908   hardcode_into_libs=yes
8909   ;;
8910
8911 # No shared lib support for Linux oldld, aout, or coff.
8912 linux*oldld* | linux*aout* | linux*coff*)
8913   dynamic_linker=no
8914   ;;
8915
8916 # This must be Linux ELF.
8917 linux*)
8918   version_type=linux
8919   need_lib_prefix=no
8920   need_version=no
8921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922   soname_spec='${libname}${release}${shared_ext}$major'
8923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8924   shlibpath_var=LD_LIBRARY_PATH
8925   shlibpath_overrides_runpath=no
8926   # This implies no fast_install, which is unacceptable.
8927   # Some rework will be needed to allow for fast_install
8928   # before this can be enabled.
8929   hardcode_into_libs=yes
8930
8931   # Append ld.so.conf contents to the search path
8932   if test -f /etc/ld.so.conf; then
8933     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' ' '`
8934     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8935   fi
8936
8937   # We used to test for /lib/ld.so.1 and disable shared libraries on
8938   # powerpc, because MkLinux only supported shared libraries with the
8939   # GNU dynamic linker.  Since this was broken with cross compilers,
8940   # most powerpc-linux boxes support dynamic linking these days and
8941   # people can always --disable-shared, the test was removed, and we
8942   # assume the GNU/Linux dynamic linker is in use.
8943   dynamic_linker='GNU/Linux ld.so'
8944   ;;
8945
8946 knetbsd*-gnu)
8947   version_type=linux
8948   need_lib_prefix=no
8949   need_version=no
8950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951   soname_spec='${libname}${release}${shared_ext}$major'
8952   shlibpath_var=LD_LIBRARY_PATH
8953   shlibpath_overrides_runpath=no
8954   hardcode_into_libs=yes
8955   dynamic_linker='GNU ld.so'
8956   ;;
8957
8958 netbsd*)
8959   version_type=sunos
8960   need_lib_prefix=no
8961   need_version=no
8962   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8964     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8965     dynamic_linker='NetBSD (a.out) ld.so'
8966   else
8967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968     soname_spec='${libname}${release}${shared_ext}$major'
8969     dynamic_linker='NetBSD ld.elf_so'
8970   fi
8971   shlibpath_var=LD_LIBRARY_PATH
8972   shlibpath_overrides_runpath=yes
8973   hardcode_into_libs=yes
8974   ;;
8975
8976 newsos6)
8977   version_type=linux
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979   shlibpath_var=LD_LIBRARY_PATH
8980   shlibpath_overrides_runpath=yes
8981   ;;
8982
8983 nto-qnx*)
8984   version_type=linux
8985   need_lib_prefix=no
8986   need_version=no
8987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988   soname_spec='${libname}${release}${shared_ext}$major'
8989   shlibpath_var=LD_LIBRARY_PATH
8990   shlibpath_overrides_runpath=yes
8991   ;;
8992
8993 openbsd*)
8994   version_type=sunos
8995   sys_lib_dlsearch_path_spec="/usr/lib"
8996   need_lib_prefix=no
8997   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8998   case $host_os in
8999     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9000     *)                         need_version=no  ;;
9001   esac
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9003   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9006     case $host_os in
9007       openbsd2.[89] | openbsd2.[89].*)
9008         shlibpath_overrides_runpath=no
9009         ;;
9010       *)
9011         shlibpath_overrides_runpath=yes
9012         ;;
9013       esac
9014   else
9015     shlibpath_overrides_runpath=yes
9016   fi
9017   ;;
9018
9019 os2*)
9020   libname_spec='$name'
9021   shrext_cmds=".dll"
9022   need_lib_prefix=no
9023   library_names_spec='$libname${shared_ext} $libname.a'
9024   dynamic_linker='OS/2 ld.exe'
9025   shlibpath_var=LIBPATH
9026   ;;
9027
9028 osf3* | osf4* | osf5*)
9029   version_type=osf
9030   need_lib_prefix=no
9031   need_version=no
9032   soname_spec='${libname}${release}${shared_ext}$major'
9033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9036   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9037   ;;
9038
9039 solaris*)
9040   version_type=linux
9041   need_lib_prefix=no
9042   need_version=no
9043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044   soname_spec='${libname}${release}${shared_ext}$major'
9045   shlibpath_var=LD_LIBRARY_PATH
9046   shlibpath_overrides_runpath=yes
9047   hardcode_into_libs=yes
9048   # ldd complains unless libraries are executable
9049   postinstall_cmds='chmod +x $lib'
9050   ;;
9051
9052 sunos4*)
9053   version_type=sunos
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9056   shlibpath_var=LD_LIBRARY_PATH
9057   shlibpath_overrides_runpath=yes
9058   if test "$with_gnu_ld" = yes; then
9059     need_lib_prefix=no
9060   fi
9061   need_version=yes
9062   ;;
9063
9064 sysv4 | sysv4.3*)
9065   version_type=linux
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067   soname_spec='${libname}${release}${shared_ext}$major'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   case $host_vendor in
9070     sni)
9071       shlibpath_overrides_runpath=no
9072       need_lib_prefix=no
9073       export_dynamic_flag_spec='${wl}-Blargedynsym'
9074       runpath_var=LD_RUN_PATH
9075       ;;
9076     siemens)
9077       need_lib_prefix=no
9078       ;;
9079     motorola)
9080       need_lib_prefix=no
9081       need_version=no
9082       shlibpath_overrides_runpath=no
9083       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9084       ;;
9085   esac
9086   ;;
9087
9088 sysv4*MP*)
9089   if test -d /usr/nec ;then
9090     version_type=linux
9091     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9092     soname_spec='$libname${shared_ext}.$major'
9093     shlibpath_var=LD_LIBRARY_PATH
9094   fi
9095   ;;
9096
9097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9098   version_type=freebsd-elf
9099   need_lib_prefix=no
9100   need_version=no
9101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9102   soname_spec='${libname}${release}${shared_ext}$major'
9103   shlibpath_var=LD_LIBRARY_PATH
9104   hardcode_into_libs=yes
9105   if test "$with_gnu_ld" = yes; then
9106     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9107     shlibpath_overrides_runpath=no
9108   else
9109     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9110     shlibpath_overrides_runpath=yes
9111     case $host_os in
9112       sco3.2v5*)
9113         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9114         ;;
9115     esac
9116   fi
9117   sys_lib_dlsearch_path_spec='/usr/lib'
9118   ;;
9119
9120 uts4*)
9121   version_type=linux
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123   soname_spec='${libname}${release}${shared_ext}$major'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   ;;
9126
9127 *)
9128   dynamic_linker=no
9129   ;;
9130 esac
9131 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9132 echo "${ECHO_T}$dynamic_linker" >&6; }
9133 test "$dynamic_linker" = no && can_build_shared=no
9134
9135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9136 if test "$GCC" = yes; then
9137   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9138 fi
9139
9140
9141 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9142 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9143 if test "${libltdl_cv_shlibext+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146
9147 module=yes
9148 eval libltdl_cv_shlibext=$shrext_cmds
9149
9150 fi
9151 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9152 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9153 if test -n "$libltdl_cv_shlibext"; then
9154
9155 cat >>confdefs.h <<_ACEOF
9156 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9157 _ACEOF
9158
9159 fi
9160
9161
9162 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9163 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9164 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   libltdl_cv_shlibpath_var="$shlibpath_var"
9168 fi
9169 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9170 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9171 if test -n "$libltdl_cv_shlibpath_var"; then
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9175 _ACEOF
9176
9177 fi
9178
9179
9180 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9181 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9182 if test "${libltdl_cv_sys_search_path+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9186 fi
9187 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9188 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9189 if test -n "$libltdl_cv_sys_search_path"; then
9190   sys_search_path=
9191   for dir in $libltdl_cv_sys_search_path; do
9192     if test -z "$sys_search_path"; then
9193       sys_search_path="$dir"
9194     else
9195       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9196     fi
9197   done
9198
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9201 _ACEOF
9202
9203 fi
9204
9205 { echo "$as_me:$LINENO: checking for objdir" >&5
9206 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_objdir+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   libltdl_cv_objdir="$objdir"
9211   if test -n "$objdir"; then
9212     :
9213   else
9214     rm -f .libs 2>/dev/null
9215     mkdir .libs 2>/dev/null
9216     if test -d .libs; then
9217       libltdl_cv_objdir=.libs
9218     else
9219       # MS-DOS does not allow filenames that begin with a dot.
9220       libltdl_cv_objdir=_libs
9221     fi
9222   rmdir .libs 2>/dev/null
9223   fi
9224
9225 fi
9226 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9227 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9228
9229 cat >>confdefs.h <<_ACEOF
9230 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9231 _ACEOF
9232
9233
9234
9235
9236
9237
9238 # Check for command to grab the raw symbol name followed by C symbol from nm.
9239 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244
9245 # These are sane defaults that work on at least a few old systems.
9246 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9247
9248 # Character class describing NM global symbol codes.
9249 symcode='[BCDEGRST]'
9250
9251 # Regexp to match symbols that can be accessed directly from C.
9252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9253
9254 # Transform an extracted symbol line into a proper C declaration
9255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9256
9257 # Transform an extracted symbol line into symbol name and symbol address
9258 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'"
9259
9260 # Define system-specific variables.
9261 case $host_os in
9262 aix*)
9263   symcode='[BCDT]'
9264   ;;
9265 cygwin* | mingw* | pw32*)
9266   symcode='[ABCDGISTW]'
9267   ;;
9268 hpux*) # Its linker distinguishes data from code symbols
9269   if test "$host_cpu" = ia64; then
9270     symcode='[ABCDEGRST]'
9271   fi
9272   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9273   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'"
9274   ;;
9275 linux*)
9276   if test "$host_cpu" = ia64; then
9277     symcode='[ABCDGIRSTW]'
9278     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9279     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'"
9280   fi
9281   ;;
9282 irix* | nonstopux*)
9283   symcode='[BCDEGRST]'
9284   ;;
9285 osf*)
9286   symcode='[BCDEGQRST]'
9287   ;;
9288 solaris*)
9289   symcode='[BDRT]'
9290   ;;
9291 sco3.2v5*)
9292   symcode='[DT]'
9293   ;;
9294 sysv4.2uw2*)
9295   symcode='[DT]'
9296   ;;
9297 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9298   symcode='[ABDT]'
9299   ;;
9300 sysv4)
9301   symcode='[DFNSTU]'
9302   ;;
9303 esac
9304
9305 # Handle CRLF in mingw tool chain
9306 opt_cr=
9307 case $build_os in
9308 mingw*)
9309   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9310   ;;
9311 esac
9312
9313 # If we're using GNU nm, then use its standard symbol codes.
9314 case `$NM -V 2>&1` in
9315 *GNU* | *'with BFD'*)
9316   symcode='[ABCDGIRSTW]' ;;
9317 esac
9318
9319 # Try without a prefix undercore, then with it.
9320 for ac_symprfx in "" "_"; do
9321
9322   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9323   symxfrm="\\1 $ac_symprfx\\2 \\2"
9324
9325   # Write the raw and C identifiers.
9326   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9327
9328   # Check to see that the pipe works correctly.
9329   pipe_works=no
9330
9331   rm -f conftest*
9332   cat > conftest.$ac_ext <<EOF
9333 #ifdef __cplusplus
9334 extern "C" {
9335 #endif
9336 char nm_test_var;
9337 void nm_test_func(){}
9338 #ifdef __cplusplus
9339 }
9340 #endif
9341 int main(){nm_test_var='a';nm_test_func();return(0);}
9342 EOF
9343
9344   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345   (eval $ac_compile) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; then
9349     # Now try to grab the symbols.
9350     nlist=conftest.nm
9351     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9352   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } && test -s "$nlist"; then
9356       # Try sorting and uniquifying the output.
9357       if sort "$nlist" | uniq > "$nlist"T; then
9358         mv -f "$nlist"T "$nlist"
9359       else
9360         rm -f "$nlist"T
9361       fi
9362
9363       # Make sure that we snagged all the symbols we need.
9364       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9365         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9366           cat <<EOF > conftest.$ac_ext
9367 #ifdef __cplusplus
9368 extern "C" {
9369 #endif
9370
9371 EOF
9372           # Now generate the symbol file.
9373           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9374
9375           cat <<EOF >> conftest.$ac_ext
9376 #if defined (__STDC__) && __STDC__
9377 # define lt_ptr_t void *
9378 #else
9379 # define lt_ptr_t char *
9380 # define const
9381 #endif
9382
9383 /* The mapping between symbol names and symbols. */
9384 const struct {
9385   const char *name;
9386   lt_ptr_t address;
9387 }
9388 lt_preloaded_symbols[] =
9389 {
9390 EOF
9391           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9392           cat <<\EOF >> conftest.$ac_ext
9393   {0, (lt_ptr_t) 0}
9394 };
9395
9396 #ifdef __cplusplus
9397 }
9398 #endif
9399 EOF
9400           # Now try linking the two files.
9401           mv conftest.$ac_objext conftstm.$ac_objext
9402           lt_save_LIBS="$LIBS"
9403           lt_save_CFLAGS="$CFLAGS"
9404           LIBS="conftstm.$ac_objext"
9405           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9406           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407   (eval $ac_link) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9411             pipe_works=yes
9412           fi
9413           LIBS="$lt_save_LIBS"
9414           CFLAGS="$lt_save_CFLAGS"
9415         else
9416           echo "cannot find nm_test_func in $nlist" >&5
9417         fi
9418       else
9419         echo "cannot find nm_test_var in $nlist" >&5
9420       fi
9421     else
9422       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9423     fi
9424   else
9425     echo "$progname: failed program was:" >&5
9426     cat conftest.$ac_ext >&5
9427   fi
9428   rm -f conftest* conftst*
9429
9430   # Do not use the global_symbol_pipe unless it works.
9431   if test "$pipe_works" = yes; then
9432     break
9433   else
9434     lt_cv_sys_global_symbol_pipe=
9435   fi
9436 done
9437
9438 fi
9439
9440 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9441   lt_cv_sys_global_symbol_to_cdecl=
9442 fi
9443 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9444   { echo "$as_me:$LINENO: result: failed" >&5
9445 echo "${ECHO_T}failed" >&6; }
9446 else
9447   { echo "$as_me:$LINENO: result: ok" >&5
9448 echo "${ECHO_T}ok" >&6; }
9449 fi
9450
9451
9452 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9453 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9458     libltdl_cv_preloaded_symbols=yes
9459   else
9460     libltdl_cv_preloaded_symbols=no
9461   fi
9462
9463 fi
9464 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9465 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9466 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_PRELOADED_SYMBOLS 1
9470 _ACEOF
9471
9472 fi
9473
9474 LIBADD_DL=
9475
9476 ac_ext=c
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9481
9482
9483 { echo "$as_me:$LINENO: checking for shl_load" >&5
9484 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_shl_load+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496 #define shl_load innocuous_shl_load
9497
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char shl_load (); below.
9500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501     <limits.h> exists even on freestanding compilers.  */
9502
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9508
9509 #undef shl_load
9510
9511 /* Override any GCC internal prototype to avoid an error.
9512    Use char because int might match the return type of a GCC
9513    builtin and then its argument prototype would still apply.  */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char shl_load ();
9518 /* The GNU C library defines this for functions which it implements
9519     to always fail with ENOSYS.  Some functions are actually named
9520     something starting with __ and the normal name is an alias.  */
9521 #if defined __stub_shl_load || defined __stub___shl_load
9522 choke me
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 return shl_load ();
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537   *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540   (eval "$ac_link") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548   { (case "(($ac_try" in
9549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550   *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553   (eval "$ac_try") 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563   (eval "$ac_try") 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567   ac_cv_func_shl_load=yes
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572         ac_cv_func_shl_load=no
9573 fi
9574
9575 rm -f core conftest.err conftest.$ac_objext \
9576       conftest$ac_exeext conftest.$ac_ext
9577 fi
9578 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9579 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9580 if test $ac_cv_func_shl_load = yes; then
9581
9582 cat >>confdefs.h <<\_ACEOF
9583 #define HAVE_SHL_LOAD 1
9584 _ACEOF
9585
9586 else
9587   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-ldld  $LIBS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600
9601 /* Override any GCC internal prototype to avoid an error.
9602    Use char because int might match the return type of a GCC
9603    builtin and then its argument prototype would still apply.  */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char shl_load ();
9608 int
9609 main ()
9610 {
9611 return shl_load ();
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (ac_try="$ac_link"
9618 case "(($ac_try" in
9619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620   *) ac_try_echo=$ac_try;;
9621 esac
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623   (eval "$ac_link") 2>conftest.er1
9624   ac_status=$?
9625   grep -v '^ *+' conftest.er1 >conftest.err
9626   rm -f conftest.er1
9627   cat conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9631   { (case "(($ac_try" in
9632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633   *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636   (eval "$ac_try") 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; } &&
9640          { ac_try='test -s conftest$ac_exeext'
9641   { (case "(($ac_try" in
9642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643   *) ac_try_echo=$ac_try;;
9644 esac
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646   (eval "$ac_try") 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); }; }; then
9650   ac_cv_lib_dld_shl_load=yes
9651 else
9652   echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655         ac_cv_lib_dld_shl_load=no
9656 fi
9657
9658 rm -f core conftest.err conftest.$ac_objext \
9659       conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9661 fi
9662 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9664 if test $ac_cv_lib_dld_shl_load = yes; then
9665
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_SHL_LOAD 1
9668 _ACEOF
9669
9670         LIBADD_DL="$LIBADD_DL -ldld"
9671 else
9672   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-ldl  $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685
9686 /* Override any GCC internal prototype to avoid an error.
9687    Use char because int might match the return type of a GCC
9688    builtin and then its argument prototype would still apply.  */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char dlopen ();
9693 int
9694 main ()
9695 {
9696 return dlopen ();
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705   *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708   (eval "$ac_link") 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716   { (case "(($ac_try" in
9717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718   *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721   (eval "$ac_try") 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; } &&
9725          { ac_try='test -s conftest$ac_exeext'
9726   { (case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_try") 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_lib_dl_dlopen=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740         ac_cv_lib_dl_dlopen=no
9741 fi
9742
9743 rm -f core conftest.err conftest.$ac_objext \
9744       conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9746 fi
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9749 if test $ac_cv_lib_dl_dlopen = yes; then
9750
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_LIBDL 1
9753 _ACEOF
9754
9755                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9756 else
9757   cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763 #if HAVE_DLFCN_H
9764 #  include <dlfcn.h>
9765 #endif
9766
9767 int
9768 main ()
9769 {
9770 dlopen(0, 0);
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9777 case "(($ac_try" in
9778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779   *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782   (eval "$ac_link") 2>conftest.er1
9783   ac_status=$?
9784   grep -v '^ *+' conftest.er1 >conftest.err
9785   rm -f conftest.er1
9786   cat conftest.err >&5
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); } &&
9789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9790   { (case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_try") 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; } &&
9799          { ac_try='test -s conftest$ac_exeext'
9800   { (case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805   (eval "$ac_try") 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9812 _ACEOF
9813  libltdl_cv_func_dlopen="yes"
9814 else
9815   echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9819 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9820 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   ac_check_lib_save_LIBS=$LIBS
9824 LIBS="-lsvld  $LIBS"
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831
9832 /* Override any GCC internal prototype to avoid an error.
9833    Use char because int might match the return type of a GCC
9834    builtin and then its argument prototype would still apply.  */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 char dlopen ();
9839 int
9840 main ()
9841 {
9842 return dlopen ();
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851   *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854   (eval "$ac_link") 2>conftest.er1
9855   ac_status=$?
9856   grep -v '^ *+' conftest.er1 >conftest.err
9857   rm -f conftest.er1
9858   cat conftest.err >&5
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862   { (case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_try") 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; } &&
9871          { ac_try='test -s conftest$ac_exeext'
9872   { (case "(($ac_try" in
9873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874   *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877   (eval "$ac_try") 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_lib_svld_dlopen=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886         ac_cv_lib_svld_dlopen=no
9887 fi
9888
9889 rm -f core conftest.err conftest.$ac_objext \
9890       conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9892 fi
9893 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9895 if test $ac_cv_lib_svld_dlopen = yes; then
9896
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_LIBDL 1
9899 _ACEOF
9900
9901                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9902 else
9903   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-ldld  $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 /* Override any GCC internal prototype to avoid an error.
9918    Use char because int might match the return type of a GCC
9919    builtin and then its argument prototype would still apply.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dld_link ();
9924 int
9925 main ()
9926 {
9927 return dld_link ();
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_link") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947   { (case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_try") 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_try") 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966   ac_cv_lib_dld_dld_link=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         ac_cv_lib_dld_dld_link=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext \
9975       conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9980 if test $ac_cv_lib_dld_dld_link = yes; then
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_DLD 1
9984 _ACEOF
9985
9986                 LIBADD_DL="$LIBADD_DL -ldld"
9987 else
9988   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9989 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9990 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10001 #define _dyld_func_lookup innocuous__dyld_func_lookup
10002
10003 /* System header to define __stub macros and hopefully few prototypes,
10004     which can conflict with char _dyld_func_lookup (); below.
10005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006     <limits.h> exists even on freestanding compilers.  */
10007
10008 #ifdef __STDC__
10009 # include <limits.h>
10010 #else
10011 # include <assert.h>
10012 #endif
10013
10014 #undef _dyld_func_lookup
10015
10016 /* Override any GCC internal prototype to avoid an error.
10017    Use char because int might match the return type of a GCC
10018    builtin and then its argument prototype would still apply.  */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 char _dyld_func_lookup ();
10023 /* The GNU C library defines this for functions which it implements
10024     to always fail with ENOSYS.  Some functions are actually named
10025     something starting with __ and the normal name is an alias.  */
10026 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10027 choke me
10028 #endif
10029
10030 int
10031 main ()
10032 {
10033 return _dyld_func_lookup ();
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042   *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045   (eval "$ac_link") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_func__dyld_func_lookup=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077         ac_cv_func__dyld_func_lookup=no
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext \
10081       conftest$ac_exeext conftest.$ac_ext
10082 fi
10083 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10084 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10085 if test $ac_cv_func__dyld_func_lookup = yes; then
10086
10087 cat >>confdefs.h <<\_ACEOF
10088 #define HAVE_DYLD 1
10089 _ACEOF
10090
10091 fi
10092
10093
10094 fi
10095
10096
10097 fi
10098
10099
10100 fi
10101
10102 rm -f core conftest.err conftest.$ac_objext \
10103       conftest$ac_exeext conftest.$ac_ext
10104
10105 fi
10106
10107
10108 fi
10109
10110
10111 fi
10112
10113
10114 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10115 then
10116   lt_save_LIBS="$LIBS"
10117   LIBS="$LIBS $LIBADD_DL"
10118
10119 for ac_func in dlerror
10120 do
10121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10125   echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127   cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10135 #define $ac_func innocuous_$ac_func
10136
10137 /* System header to define __stub macros and hopefully few prototypes,
10138     which can conflict with char $ac_func (); below.
10139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140     <limits.h> exists even on freestanding compilers.  */
10141
10142 #ifdef __STDC__
10143 # include <limits.h>
10144 #else
10145 # include <assert.h>
10146 #endif
10147
10148 #undef $ac_func
10149
10150 /* Override any GCC internal prototype to avoid an error.
10151    Use char because int might match the return type of a GCC
10152    builtin and then its argument prototype would still apply.  */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char $ac_func ();
10157 /* The GNU C library defines this for functions which it implements
10158     to always fail with ENOSYS.  Some functions are actually named
10159     something starting with __ and the normal name is an alias.  */
10160 #if defined __stub_$ac_func || defined __stub___$ac_func
10161 choke me
10162 #endif
10163
10164 int
10165 main ()
10166 {
10167 return $ac_func ();
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176   *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179   (eval "$ac_link") 2>conftest.er1
10180   ac_status=$?
10181   grep -v '^ *+' conftest.er1 >conftest.err
10182   rm -f conftest.er1
10183   cat conftest.err >&5
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } &&
10186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187   { (case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_try") 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest$ac_exeext'
10197   { (case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_try") 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   eval "$as_ac_var=yes"
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211         eval "$as_ac_var=no"
10212 fi
10213
10214 rm -f core conftest.err conftest.$ac_objext \
10215       conftest$ac_exeext conftest.$ac_ext
10216 fi
10217 ac_res=`eval echo '${'$as_ac_var'}'`
10218                { echo "$as_me:$LINENO: result: $ac_res" >&5
10219 echo "${ECHO_T}$ac_res" >&6; }
10220 if test `eval echo '${'$as_ac_var'}'` = yes; then
10221   cat >>confdefs.h <<_ACEOF
10222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10223 _ACEOF
10224
10225 fi
10226 done
10227
10228   LIBS="$lt_save_LIBS"
10229 fi
10230 ac_ext=c
10231 ac_cpp='$CPP $CPPFLAGS'
10232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
10236
10237
10238 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10239 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10240 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   ac_cv_sys_symbol_underscore=no
10244   cat > conftest.$ac_ext <<EOF
10245 void nm_test_func(){}
10246 int main(){nm_test_func;return 0;}
10247 EOF
10248   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10249   (eval $ac_compile) 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; then
10253     # Now try to grab the symbols.
10254     ac_nlist=conftest.nm
10255     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10256   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); } && test -s "$ac_nlist"; then
10260       # See whether the symbols have a leading underscore.
10261       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10262         ac_cv_sys_symbol_underscore=yes
10263       else
10264         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10265           :
10266         else
10267           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10268         fi
10269       fi
10270     else
10271       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10272     fi
10273   else
10274     echo "configure: failed program was:" >&5
10275     cat conftest.c >&5
10276   fi
10277   rm -rf conftest*
10278
10279 fi
10280 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10281 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10282
10283
10284 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10285   if test x"$libltdl_cv_func_dlopen" = xyes ||
10286      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10287         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10288 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10289 if test "${libltdl_cv_need_uscore+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   libltdl_cv_need_uscore=unknown
10293           save_LIBS="$LIBS"
10294           LIBS="$LIBS $LIBADD_DL"
10295           if test "$cross_compiling" = yes; then :
10296   libltdl_cv_need_uscore=cross
10297 else
10298   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299   lt_status=$lt_dlunknown
10300   cat > conftest.$ac_ext <<EOF
10301 #line 10301 "configure"
10302 #include "confdefs.h"
10303
10304 #if HAVE_DLFCN_H
10305 #include <dlfcn.h>
10306 #endif
10307
10308 #include <stdio.h>
10309
10310 #ifdef RTLD_GLOBAL
10311 #  define LT_DLGLOBAL           RTLD_GLOBAL
10312 #else
10313 #  ifdef DL_GLOBAL
10314 #    define LT_DLGLOBAL         DL_GLOBAL
10315 #  else
10316 #    define LT_DLGLOBAL         0
10317 #  endif
10318 #endif
10319
10320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321    find out it does not work in some platform. */
10322 #ifndef LT_DLLAZY_OR_NOW
10323 #  ifdef RTLD_LAZY
10324 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10325 #  else
10326 #    ifdef DL_LAZY
10327 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10328 #    else
10329 #      ifdef RTLD_NOW
10330 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10331 #      else
10332 #        ifdef DL_NOW
10333 #          define LT_DLLAZY_OR_NOW      DL_NOW
10334 #        else
10335 #          define LT_DLLAZY_OR_NOW      0
10336 #        endif
10337 #      endif
10338 #    endif
10339 #  endif
10340 #endif
10341
10342 #ifdef __cplusplus
10343 extern "C" void exit (int);
10344 #endif
10345
10346 void fnord() { int i=42;}
10347 int main ()
10348 {
10349   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350   int status = $lt_dlunknown;
10351
10352   if (self)
10353     {
10354       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10355       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356       /* dlclose (self); */
10357     }
10358   else
10359     puts (dlerror ());
10360
10361     exit (status);
10362 }
10363 EOF
10364   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365   (eval $ac_link) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369     (./conftest; exit; ) >&5 2>/dev/null
10370     lt_status=$?
10371     case x$lt_status in
10372       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10373       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10374       x$lt_dlunknown|x*)  ;;
10375     esac
10376   else :
10377     # compilation failed
10378
10379   fi
10380 fi
10381 rm -fr conftest*
10382
10383           LIBS="$save_LIBS"
10384
10385 fi
10386 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10387 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10388   fi
10389 fi
10390
10391 if test x"$libltdl_cv_need_uscore" = xyes; then
10392
10393 cat >>confdefs.h <<\_ACEOF
10394 #define NEED_USCORE 1
10395 _ACEOF
10396
10397 fi
10398
10399
10400 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10401 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10402 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   # PORTME does your system automatically load deplibs for dlopen?
10406   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10407   # For now, we just catch OSes we know something about -- in the
10408   # future, we'll try test this programmatically.
10409   libltdl_cv_sys_dlopen_deplibs=unknown
10410   case "$host_os" in
10411   aix3*|aix4.1.*|aix4.2.*)
10412     # Unknown whether this is true for these versions of AIX, but
10413     # we want this `case' here to explicitly catch those versions.
10414     libltdl_cv_sys_dlopen_deplibs=unknown
10415     ;;
10416   aix[45]*)
10417     libltdl_cv_sys_dlopen_deplibs=yes
10418     ;;
10419   darwin*)
10420     # Assuming the user has installed a libdl from somewhere, this is true
10421     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10422     libltdl_cv_sys_dlopen_deplibs=yes
10423     ;;
10424   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10425     # GNU and its variants, using gnu ld.so (Glibc)
10426     libltdl_cv_sys_dlopen_deplibs=yes
10427     ;;
10428   hpux10*|hpux11*)
10429     libltdl_cv_sys_dlopen_deplibs=yes
10430     ;;
10431   interix*)
10432     libltdl_cv_sys_dlopen_deplibs=yes
10433     ;;
10434   irix[12345]*|irix6.[01]*)
10435     # Catch all versions of IRIX before 6.2, and indicate that we don't
10436     # know how it worked for any of those versions.
10437     libltdl_cv_sys_dlopen_deplibs=unknown
10438     ;;
10439   irix*)
10440     # The case above catches anything before 6.2, and it's known that
10441     # at 6.2 and later dlopen does load deplibs.
10442     libltdl_cv_sys_dlopen_deplibs=yes
10443     ;;
10444   netbsd*)
10445     libltdl_cv_sys_dlopen_deplibs=yes
10446     ;;
10447   openbsd*)
10448     libltdl_cv_sys_dlopen_deplibs=yes
10449     ;;
10450   osf[1234]*)
10451     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10452     # it did *not* use an RPATH in a shared library to find objects the
10453     # library depends on, so we explictly say `no'.
10454     libltdl_cv_sys_dlopen_deplibs=no
10455     ;;
10456   osf5.0|osf5.0a|osf5.1)
10457     # dlopen *does* load deplibs and with the right loader patch applied
10458     # it even uses RPATH in a shared library to search for shared objects
10459     # that the library depends on, but there's no easy way to know if that
10460     # patch is installed.  Since this is the case, all we can really
10461     # say is unknown -- it depends on the patch being installed.  If
10462     # it is, this changes to `yes'.  Without it, it would be `no'.
10463     libltdl_cv_sys_dlopen_deplibs=unknown
10464     ;;
10465   osf*)
10466     # the two cases above should catch all versions of osf <= 5.1.  Read
10467     # the comments above for what we know about them.
10468     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10469     # is used to find them so we can finally say `yes'.
10470     libltdl_cv_sys_dlopen_deplibs=yes
10471     ;;
10472   solaris*)
10473     libltdl_cv_sys_dlopen_deplibs=yes
10474     ;;
10475   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10476     libltdl_cv_sys_dlopen_deplibs=yes
10477     ;;
10478   esac
10479
10480 fi
10481 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10482 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10483 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10484
10485 cat >>confdefs.h <<\_ACEOF
10486 #define LTDL_DLOPEN_DEPLIBS 1
10487 _ACEOF
10488
10489 fi
10490
10491
10492 for ac_header in argz.h
10493 do
10494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10496   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 fi
10501 ac_res=`eval echo '${'$as_ac_Header'}'`
10502                { echo "$as_me:$LINENO: result: $ac_res" >&5
10503 echo "${ECHO_T}$ac_res" >&6; }
10504 else
10505   # Is the header compilable?
10506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514 $ac_includes_default
10515 #include <$ac_header>
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (ac_try="$ac_compile"
10519 case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_compile") 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } &&
10531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532   { (case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_try") 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; } &&
10541          { ac_try='test -s conftest.$ac_objext'
10542   { (case "(($ac_try" in
10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544   *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547   (eval "$ac_try") 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_header_compiler=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556         ac_header_compiler=no
10557 fi
10558
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10561 echo "${ECHO_T}$ac_header_compiler" >&6; }
10562
10563 # Is the header present?
10564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 #include <$ac_header>
10573 _ACEOF
10574 if { (ac_try="$ac_cpp conftest.$ac_ext"
10575 case "(($ac_try" in
10576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577   *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } >/dev/null; then
10587   if test -s conftest.err; then
10588     ac_cpp_err=$ac_c_preproc_warn_flag
10589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10590   else
10591     ac_cpp_err=
10592   fi
10593 else
10594   ac_cpp_err=yes
10595 fi
10596 if test -z "$ac_cpp_err"; then
10597   ac_header_preproc=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602   ac_header_preproc=no
10603 fi
10604
10605 rm -f conftest.err conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 echo "${ECHO_T}$ac_header_preproc" >&6; }
10608
10609 # So?  What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611   yes:no: )
10612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616     ac_header_preproc=yes
10617     ;;
10618   no:yes:* )
10619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10631     ( cat <<\_ASBOX
10632 ## ----------------------------------- ##
10633 ## Report this to llvmbugs@cs.uiuc.edu ##
10634 ## ----------------------------------- ##
10635 _ASBOX
10636      ) | sed "s/^/$as_me: WARNING:     /" >&2
10637     ;;
10638 esac
10639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   eval "$as_ac_Header=\$ac_header_preproc"
10645 fi
10646 ac_res=`eval echo '${'$as_ac_Header'}'`
10647                { echo "$as_me:$LINENO: result: $ac_res" >&5
10648 echo "${ECHO_T}$ac_res" >&6; }
10649
10650 fi
10651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10652   cat >>confdefs.h <<_ACEOF
10653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10654 _ACEOF
10655
10656 fi
10657
10658 done
10659
10660
10661 { echo "$as_me:$LINENO: checking for error_t" >&5
10662 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10663 if test "${ac_cv_type_error_t+set}" = set; then
10664   echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666   cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h.  */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h.  */
10672 #if HAVE_ARGZ_H
10673 #  include <argz.h>
10674 #endif
10675
10676 typedef error_t ac__type_new_;
10677 int
10678 main ()
10679 {
10680 if ((ac__type_new_ *) 0)
10681   return 0;
10682 if (sizeof (ac__type_new_))
10683   return 0;
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_compile") 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } &&
10702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703   { (case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_try") 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; } &&
10712          { ac_try='test -s conftest.$ac_objext'
10713   { (case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_try") 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }; }; then
10722   ac_cv_type_error_t=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_cv_type_error_t=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 fi
10732 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10733 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10734 if test $ac_cv_type_error_t = yes; then
10735
10736 cat >>confdefs.h <<_ACEOF
10737 #define HAVE_ERROR_T 1
10738 _ACEOF
10739
10740
10741 else
10742
10743 cat >>confdefs.h <<\_ACEOF
10744 #define error_t int
10745 _ACEOF
10746
10747 fi
10748
10749
10750
10751
10752
10753
10754
10755 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10756 do
10757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763   cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10771 #define $ac_func innocuous_$ac_func
10772
10773 /* System header to define __stub macros and hopefully few prototypes,
10774     which can conflict with char $ac_func (); below.
10775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776     <limits.h> exists even on freestanding compilers.  */
10777
10778 #ifdef __STDC__
10779 # include <limits.h>
10780 #else
10781 # include <assert.h>
10782 #endif
10783
10784 #undef $ac_func
10785
10786 /* Override any GCC internal prototype to avoid an error.
10787    Use char because int might match the return type of a GCC
10788    builtin and then its argument prototype would still apply.  */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char $ac_func ();
10793 /* The GNU C library defines this for functions which it implements
10794     to always fail with ENOSYS.  Some functions are actually named
10795     something starting with __ and the normal name is an alias.  */
10796 #if defined __stub_$ac_func || defined __stub___$ac_func
10797 choke me
10798 #endif
10799
10800 int
10801 main ()
10802 {
10803 return $ac_func ();
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812   *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815   (eval "$ac_link") 2>conftest.er1
10816   ac_status=$?
10817   grep -v '^ *+' conftest.er1 >conftest.err
10818   rm -f conftest.er1
10819   cat conftest.err >&5
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); } &&
10822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10823   { (case "(($ac_try" in
10824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825   *) ac_try_echo=$ac_try;;
10826 esac
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828   (eval "$ac_try") 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); }; } &&
10832          { ac_try='test -s conftest$ac_exeext'
10833   { (case "(($ac_try" in
10834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835   *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838   (eval "$ac_try") 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; }; then
10842   eval "$as_ac_var=yes"
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847         eval "$as_ac_var=no"
10848 fi
10849
10850 rm -f core conftest.err conftest.$ac_objext \
10851       conftest$ac_exeext conftest.$ac_ext
10852 fi
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854                { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857   cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10859 _ACEOF
10860
10861 fi
10862 done
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10892                   stdio.h unistd.h
10893 do
10894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 fi
10901 ac_res=`eval echo '${'$as_ac_Header'}'`
10902                { echo "$as_me:$LINENO: result: $ac_res" >&5
10903 echo "${ECHO_T}$ac_res" >&6; }
10904 else
10905   # Is the header compilable?
10906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h.  */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h.  */
10914 $ac_includes_default
10915 #include <$ac_header>
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924   (eval "$ac_compile") 2>conftest.er1
10925   ac_status=$?
10926   grep -v '^ *+' conftest.er1 >conftest.err
10927   rm -f conftest.er1
10928   cat conftest.err >&5
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932   { (case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937   (eval "$ac_try") 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; } &&
10941          { ac_try='test -s conftest.$ac_objext'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; }; then
10951   ac_header_compiler=yes
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956         ac_header_compiler=no
10957 fi
10958
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10961 echo "${ECHO_T}$ac_header_compiler" >&6; }
10962
10963 # Is the header present?
10964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10966 cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h.  */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h.  */
10972 #include <$ac_header>
10973 _ACEOF
10974 if { (ac_try="$ac_cpp conftest.$ac_ext"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } >/dev/null; then
10987   if test -s conftest.err; then
10988     ac_cpp_err=$ac_c_preproc_warn_flag
10989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990   else
10991     ac_cpp_err=
10992   fi
10993 else
10994   ac_cpp_err=yes
10995 fi
10996 if test -z "$ac_cpp_err"; then
10997   ac_header_preproc=yes
10998 else
10999   echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002   ac_header_preproc=no
11003 fi
11004
11005 rm -f conftest.err conftest.$ac_ext
11006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007 echo "${ECHO_T}$ac_header_preproc" >&6; }
11008
11009 # So?  What about this header?
11010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011   yes:no: )
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016     ac_header_preproc=yes
11017     ;;
11018   no:yes:* )
11019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11031     ( cat <<\_ASBOX
11032 ## ----------------------------------- ##
11033 ## Report this to llvmbugs@cs.uiuc.edu ##
11034 ## ----------------------------------- ##
11035 _ASBOX
11036      ) | sed "s/^/$as_me: WARNING:     /" >&2
11037     ;;
11038 esac
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044   eval "$as_ac_Header=\$ac_header_preproc"
11045 fi
11046 ac_res=`eval echo '${'$as_ac_Header'}'`
11047                { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11049
11050 fi
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052   cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057
11058 done
11059
11060
11061
11062
11063
11064 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11065 do
11066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 fi
11073 ac_res=`eval echo '${'$as_ac_Header'}'`
11074                { echo "$as_me:$LINENO: result: $ac_res" >&5
11075 echo "${ECHO_T}$ac_res" >&6; }
11076 else
11077   # Is the header compilable?
11078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086 $ac_includes_default
11087 #include <$ac_header>
11088 _ACEOF
11089 rm -f conftest.$ac_objext
11090 if { (ac_try="$ac_compile"
11091 case "(($ac_try" in
11092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093   *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096   (eval "$ac_compile") 2>conftest.er1
11097   ac_status=$?
11098   grep -v '^ *+' conftest.er1 >conftest.err
11099   rm -f conftest.er1
11100   cat conftest.err >&5
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } &&
11103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11104   { (case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109   (eval "$ac_try") 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; } &&
11113          { ac_try='test -s conftest.$ac_objext'
11114   { (case "(($ac_try" in
11115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116   *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119   (eval "$ac_try") 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); }; }; then
11123   ac_header_compiler=yes
11124 else
11125   echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11127
11128         ac_header_compiler=no
11129 fi
11130
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133 echo "${ECHO_T}$ac_header_compiler" >&6; }
11134
11135 # Is the header present?
11136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 #include <$ac_header>
11145 _ACEOF
11146 if { (ac_try="$ac_cpp conftest.$ac_ext"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } >/dev/null; then
11159   if test -s conftest.err; then
11160     ac_cpp_err=$ac_c_preproc_warn_flag
11161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162   else
11163     ac_cpp_err=
11164   fi
11165 else
11166   ac_cpp_err=yes
11167 fi
11168 if test -z "$ac_cpp_err"; then
11169   ac_header_preproc=yes
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174   ac_header_preproc=no
11175 fi
11176
11177 rm -f conftest.err conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11179 echo "${ECHO_T}$ac_header_preproc" >&6; }
11180
11181 # So?  What about this header?
11182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11183   yes:no: )
11184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11188     ac_header_preproc=yes
11189     ;;
11190   no:yes:* )
11191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11203     ( cat <<\_ASBOX
11204 ## ----------------------------------- ##
11205 ## Report this to llvmbugs@cs.uiuc.edu ##
11206 ## ----------------------------------- ##
11207 _ASBOX
11208      ) | sed "s/^/$as_me: WARNING:     /" >&2
11209     ;;
11210 esac
11211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11214   echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216   eval "$as_ac_Header=\$ac_header_preproc"
11217 fi
11218 ac_res=`eval echo '${'$as_ac_Header'}'`
11219                { echo "$as_me:$LINENO: result: $ac_res" >&5
11220 echo "${ECHO_T}$ac_res" >&6; }
11221
11222 fi
11223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224   cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11226 _ACEOF
11227
11228 fi
11229
11230 done
11231
11232
11233
11234 for ac_header in string.h strings.h
11235 do
11236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 fi
11243 ac_res=`eval echo '${'$as_ac_Header'}'`
11244                { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11246 else
11247   # Is the header compilable?
11248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 $ac_includes_default
11257 #include <$ac_header>
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (ac_try="$ac_compile"
11261 case "(($ac_try" in
11262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263   *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266   (eval "$ac_compile") 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11274   { (case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_try") 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; } &&
11283          { ac_try='test -s conftest.$ac_objext'
11284   { (case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289   (eval "$ac_try") 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); }; }; then
11293   ac_header_compiler=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298         ac_header_compiler=no
11299 fi
11300
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11303 echo "${ECHO_T}$ac_header_compiler" >&6; }
11304
11305 # Is the header present?
11306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 #include <$ac_header>
11315 _ACEOF
11316 if { (ac_try="$ac_cpp conftest.$ac_ext"
11317 case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11323   ac_status=$?
11324   grep -v '^ *+' conftest.er1 >conftest.err
11325   rm -f conftest.er1
11326   cat conftest.err >&5
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } >/dev/null; then
11329   if test -s conftest.err; then
11330     ac_cpp_err=$ac_c_preproc_warn_flag
11331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332   else
11333     ac_cpp_err=
11334   fi
11335 else
11336   ac_cpp_err=yes
11337 fi
11338 if test -z "$ac_cpp_err"; then
11339   ac_header_preproc=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344   ac_header_preproc=no
11345 fi
11346
11347 rm -f conftest.err conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6; }
11350
11351 # So?  What about this header?
11352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11353   yes:no: )
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11358     ac_header_preproc=yes
11359     ;;
11360   no:yes:* )
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11373     ( cat <<\_ASBOX
11374 ## ----------------------------------- ##
11375 ## Report this to llvmbugs@cs.uiuc.edu ##
11376 ## ----------------------------------- ##
11377 _ASBOX
11378      ) | sed "s/^/$as_me: WARNING:     /" >&2
11379     ;;
11380 esac
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   eval "$as_ac_Header=\$ac_header_preproc"
11387 fi
11388 ac_res=`eval echo '${'$as_ac_Header'}'`
11389                { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11391
11392 fi
11393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394   cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 _ACEOF
11397  break
11398 fi
11399
11400 done
11401
11402
11403
11404
11405 for ac_func in strchr index
11406 do
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11421 #define $ac_func innocuous_$ac_func
11422
11423 /* System header to define __stub macros and hopefully few prototypes,
11424     which can conflict with char $ac_func (); below.
11425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426     <limits.h> exists even on freestanding compilers.  */
11427
11428 #ifdef __STDC__
11429 # include <limits.h>
11430 #else
11431 # include <assert.h>
11432 #endif
11433
11434 #undef $ac_func
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437    Use char because int might match the return type of a GCC
11438    builtin and then its argument prototype would still apply.  */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char $ac_func ();
11443 /* The GNU C library defines this for functions which it implements
11444     to always fail with ENOSYS.  Some functions are actually named
11445     something starting with __ and the normal name is an alias.  */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11447 choke me
11448 #endif
11449
11450 int
11451 main ()
11452 {
11453 return $ac_func ();
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465   (eval "$ac_link") 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473   { (case "(($ac_try" in
11474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475   *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478   (eval "$ac_try") 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; } &&
11482          { ac_try='test -s conftest$ac_exeext'
11483   { (case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_try") 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   eval "$as_ac_var=yes"
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497         eval "$as_ac_var=no"
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext \
11501       conftest$ac_exeext conftest.$ac_ext
11502 fi
11503 ac_res=`eval echo '${'$as_ac_var'}'`
11504                { echo "$as_me:$LINENO: result: $ac_res" >&5
11505 echo "${ECHO_T}$ac_res" >&6; }
11506 if test `eval echo '${'$as_ac_var'}'` = yes; then
11507   cat >>confdefs.h <<_ACEOF
11508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11509 _ACEOF
11510  break
11511 fi
11512 done
11513
11514
11515
11516 for ac_func in strrchr rindex
11517 do
11518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11532 #define $ac_func innocuous_$ac_func
11533
11534 /* System header to define __stub macros and hopefully few prototypes,
11535     which can conflict with char $ac_func (); below.
11536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537     <limits.h> exists even on freestanding compilers.  */
11538
11539 #ifdef __STDC__
11540 # include <limits.h>
11541 #else
11542 # include <assert.h>
11543 #endif
11544
11545 #undef $ac_func
11546
11547 /* Override any GCC internal prototype to avoid an error.
11548    Use char because int might match the return type of a GCC
11549    builtin and then its argument prototype would still apply.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char $ac_func ();
11554 /* The GNU C library defines this for functions which it implements
11555     to always fail with ENOSYS.  Some functions are actually named
11556     something starting with __ and the normal name is an alias.  */
11557 #if defined __stub_$ac_func || defined __stub___$ac_func
11558 choke me
11559 #endif
11560
11561 int
11562 main ()
11563 {
11564 return $ac_func ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (ac_try="$ac_link"
11571 case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_link") 2>conftest.er1
11577   ac_status=$?
11578   grep -v '^ *+' conftest.er1 >conftest.err
11579   rm -f conftest.er1
11580   cat conftest.err >&5
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } &&
11583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584   { (case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589   (eval "$ac_try") 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; } &&
11593          { ac_try='test -s conftest$ac_exeext'
11594   { (case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_try") 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; }; then
11603   eval "$as_ac_var=yes"
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608         eval "$as_ac_var=no"
11609 fi
11610
11611 rm -f core conftest.err conftest.$ac_objext \
11612       conftest$ac_exeext conftest.$ac_ext
11613 fi
11614 ac_res=`eval echo '${'$as_ac_var'}'`
11615                { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11617 if test `eval echo '${'$as_ac_var'}'` = yes; then
11618   cat >>confdefs.h <<_ACEOF
11619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620 _ACEOF
11621  break
11622 fi
11623 done
11624
11625
11626
11627 for ac_func in memcpy bcopy
11628 do
11629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h.  */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h.  */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11643 #define $ac_func innocuous_$ac_func
11644
11645 /* System header to define __stub macros and hopefully few prototypes,
11646     which can conflict with char $ac_func (); below.
11647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648     <limits.h> exists even on freestanding compilers.  */
11649
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11655
11656 #undef $ac_func
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659    Use char because int might match the return type of a GCC
11660    builtin and then its argument prototype would still apply.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char $ac_func ();
11665 /* The GNU C library defines this for functions which it implements
11666     to always fail with ENOSYS.  Some functions are actually named
11667     something starting with __ and the normal name is an alias.  */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 choke me
11670 #endif
11671
11672 int
11673 main ()
11674 {
11675 return $ac_func ();
11676   ;
11677   return 0;
11678 }
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_link") 2>conftest.er1
11688   ac_status=$?
11689   grep -v '^ *+' conftest.er1 >conftest.err
11690   rm -f conftest.er1
11691   cat conftest.err >&5
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695   { (case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_try") 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; } &&
11704          { ac_try='test -s conftest$ac_exeext'
11705   { (case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_try") 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   eval "$as_ac_var=yes"
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719         eval "$as_ac_var=no"
11720 fi
11721
11722 rm -f core conftest.err conftest.$ac_objext \
11723       conftest$ac_exeext conftest.$ac_ext
11724 fi
11725 ac_res=`eval echo '${'$as_ac_var'}'`
11726                { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729   cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 _ACEOF
11732  break
11733 fi
11734 done
11735
11736
11737
11738 for ac_func in memmove strcmp
11739 do
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11754 #define $ac_func innocuous_$ac_func
11755
11756 /* System header to define __stub macros and hopefully few prototypes,
11757     which can conflict with char $ac_func (); below.
11758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759     <limits.h> exists even on freestanding compilers.  */
11760
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11766
11767 #undef $ac_func
11768
11769 /* Override any GCC internal prototype to avoid an error.
11770    Use char because int might match the return type of a GCC
11771    builtin and then its argument prototype would still apply.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char $ac_func ();
11776 /* The GNU C library defines this for functions which it implements
11777     to always fail with ENOSYS.  Some functions are actually named
11778     something starting with __ and the normal name is an alias.  */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 choke me
11781 #endif
11782
11783 int
11784 main ()
11785 {
11786 return $ac_func ();
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_link") 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806   { (case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_try") 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; } &&
11815          { ac_try='test -s conftest$ac_exeext'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; }; then
11825   eval "$as_ac_var=yes"
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830         eval "$as_ac_var=no"
11831 fi
11832
11833 rm -f core conftest.err conftest.$ac_objext \
11834       conftest$ac_exeext conftest.$ac_ext
11835 fi
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837                { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840   cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 _ACEOF
11843
11844 fi
11845 done
11846
11847
11848
11849
11850 for ac_func in closedir opendir readdir
11851 do
11852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11866 #define $ac_func innocuous_$ac_func
11867
11868 /* System header to define __stub macros and hopefully few prototypes,
11869     which can conflict with char $ac_func (); below.
11870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871     <limits.h> exists even on freestanding compilers.  */
11872
11873 #ifdef __STDC__
11874 # include <limits.h>
11875 #else
11876 # include <assert.h>
11877 #endif
11878
11879 #undef $ac_func
11880
11881 /* Override any GCC internal prototype to avoid an error.
11882    Use char because int might match the return type of a GCC
11883    builtin and then its argument prototype would still apply.  */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char $ac_func ();
11888 /* The GNU C library defines this for functions which it implements
11889     to always fail with ENOSYS.  Some functions are actually named
11890     something starting with __ and the normal name is an alias.  */
11891 #if defined __stub_$ac_func || defined __stub___$ac_func
11892 choke me
11893 #endif
11894
11895 int
11896 main ()
11897 {
11898 return $ac_func ();
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (ac_try="$ac_link"
11905 case "(($ac_try" in
11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907   *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910   (eval "$ac_link") 2>conftest.er1
11911   ac_status=$?
11912   grep -v '^ *+' conftest.er1 >conftest.err
11913   rm -f conftest.er1
11914   cat conftest.err >&5
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918   { (case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_try") 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; } &&
11927          { ac_try='test -s conftest$ac_exeext'
11928   { (case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933   (eval "$ac_try") 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }; then
11937   eval "$as_ac_var=yes"
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942         eval "$as_ac_var=no"
11943 fi
11944
11945 rm -f core conftest.err conftest.$ac_objext \
11946       conftest$ac_exeext conftest.$ac_ext
11947 fi
11948 ac_res=`eval echo '${'$as_ac_var'}'`
11949                { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952   cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 _ACEOF
11955
11956 fi
11957 done
11958
11959
11960 # Check whether --enable-shared was given.
11961 if test "${enable_shared+set}" = set; then
11962   enableval=$enable_shared; p=${PACKAGE-default}
11963     case $enableval in
11964     yes) enable_shared=yes ;;
11965     no) enable_shared=no ;;
11966     *)
11967       enable_shared=no
11968       # Look at the argument we got.  We use all the common list separators.
11969       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11970       for pkg in $enableval; do
11971         IFS="$lt_save_ifs"
11972         if test "X$pkg" = "X$p"; then
11973           enable_shared=yes
11974         fi
11975       done
11976       IFS="$lt_save_ifs"
11977       ;;
11978     esac
11979 else
11980   enable_shared=yes
11981 fi
11982
11983
11984 # Check whether --enable-static was given.
11985 if test "${enable_static+set}" = set; then
11986   enableval=$enable_static; p=${PACKAGE-default}
11987     case $enableval in
11988     yes) enable_static=yes ;;
11989     no) enable_static=no ;;
11990     *)
11991      enable_static=no
11992       # Look at the argument we got.  We use all the common list separators.
11993       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11994       for pkg in $enableval; do
11995         IFS="$lt_save_ifs"
11996         if test "X$pkg" = "X$p"; then
11997           enable_static=yes
11998         fi
11999       done
12000       IFS="$lt_save_ifs"
12001       ;;
12002     esac
12003 else
12004   enable_static=yes
12005 fi
12006
12007
12008 # Check whether --enable-fast-install was given.
12009 if test "${enable_fast_install+set}" = set; then
12010   enableval=$enable_fast_install; p=${PACKAGE-default}
12011     case $enableval in
12012     yes) enable_fast_install=yes ;;
12013     no) enable_fast_install=no ;;
12014     *)
12015       enable_fast_install=no
12016       # Look at the argument we got.  We use all the common list separators.
12017       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12018       for pkg in $enableval; do
12019         IFS="$lt_save_ifs"
12020         if test "X$pkg" = "X$p"; then
12021           enable_fast_install=yes
12022         fi
12023       done
12024       IFS="$lt_save_ifs"
12025       ;;
12026     esac
12027 else
12028   enable_fast_install=yes
12029 fi
12030
12031
12032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12034 if test "${lt_cv_path_SED+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   # Loop through the user's path and test for sed and gsed.
12038 # Then use that list of sed's as ones to test for truncation.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042   IFS=$as_save_IFS
12043   test -z "$as_dir" && as_dir=.
12044   for lt_ac_prog in sed gsed; do
12045     for ac_exec_ext in '' $ac_executable_extensions; do
12046       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12047         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12048       fi
12049     done
12050   done
12051 done
12052 lt_ac_max=0
12053 lt_ac_count=0
12054 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12055 # along with /bin/sed that truncates output.
12056 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12057   test ! -f $lt_ac_sed && continue
12058   cat /dev/null > conftest.in
12059   lt_ac_count=0
12060   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12061   # Check for GNU sed and select it if it is found.
12062   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12063     lt_cv_path_SED=$lt_ac_sed
12064     break
12065   fi
12066   while true; do
12067     cat conftest.in conftest.in >conftest.tmp
12068     mv conftest.tmp conftest.in
12069     cp conftest.in conftest.nl
12070     echo >>conftest.nl
12071     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12072     cmp -s conftest.out conftest.nl || break
12073     # 10000 chars as input seems more than enough
12074     test $lt_ac_count -gt 10 && break
12075     lt_ac_count=`expr $lt_ac_count + 1`
12076     if test $lt_ac_count -gt $lt_ac_max; then
12077       lt_ac_max=$lt_ac_count
12078       lt_cv_path_SED=$lt_ac_sed
12079     fi
12080   done
12081 done
12082
12083 fi
12084
12085 SED=$lt_cv_path_SED
12086 { echo "$as_me:$LINENO: result: $SED" >&5
12087 echo "${ECHO_T}$SED" >&6; }
12088
12089
12090 # Check whether --with-gnu-ld was given.
12091 if test "${with_gnu_ld+set}" = set; then
12092   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12093 else
12094   with_gnu_ld=no
12095 fi
12096
12097 ac_prog=ld
12098 if test "$GCC" = yes; then
12099   # Check if gcc -print-prog-name=ld gives a path.
12100   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12101 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12102   case $host in
12103   *-*-mingw*)
12104     # gcc leaves a trailing carriage return which upsets mingw
12105     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12106   *)
12107     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12108   esac
12109   case $ac_prog in
12110     # Accept absolute paths.
12111     [\\/]* | ?:[\\/]*)
12112       re_direlt='/[^/][^/]*/\.\./'
12113       # Canonicalize the pathname of ld
12114       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12115       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12116         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12117       done
12118       test -z "$LD" && LD="$ac_prog"
12119       ;;
12120   "")
12121     # If it fails, then pretend we aren't using GCC.
12122     ac_prog=ld
12123     ;;
12124   *)
12125     # If it is relative, then search for the first ld in PATH.
12126     with_gnu_ld=unknown
12127     ;;
12128   esac
12129 elif test "$with_gnu_ld" = yes; then
12130   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12132 else
12133   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12135 fi
12136 if test "${lt_cv_path_LD+set}" = set; then
12137   echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139   if test -z "$LD"; then
12140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12141   for ac_dir in $PATH; do
12142     IFS="$lt_save_ifs"
12143     test -z "$ac_dir" && ac_dir=.
12144     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12145       lt_cv_path_LD="$ac_dir/$ac_prog"
12146       # Check to see if the program is GNU ld.  I'd rather use --version,
12147       # but apparently some variants of GNU ld only accept -v.
12148       # Break only if it was the GNU/non-GNU ld that we prefer.
12149       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12150       *GNU* | *'with BFD'*)
12151         test "$with_gnu_ld" != no && break
12152         ;;
12153       *)
12154         test "$with_gnu_ld" != yes && break
12155         ;;
12156       esac
12157     fi
12158   done
12159   IFS="$lt_save_ifs"
12160 else
12161   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12162 fi
12163 fi
12164
12165 LD="$lt_cv_path_LD"
12166 if test -n "$LD"; then
12167   { echo "$as_me:$LINENO: result: $LD" >&5
12168 echo "${ECHO_T}$LD" >&6; }
12169 else
12170   { echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6; }
12172 fi
12173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12175    { (exit 1); exit 1; }; }
12176 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12178 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12179   echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12182 case `$LD -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184   lt_cv_prog_gnu_ld=yes
12185   ;;
12186 *)
12187   lt_cv_prog_gnu_ld=no
12188   ;;
12189 esac
12190 fi
12191 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12192 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12193 with_gnu_ld=$lt_cv_prog_gnu_ld
12194
12195
12196 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12197 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12198 if test "${lt_cv_ld_reload_flag+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   lt_cv_ld_reload_flag='-r'
12202 fi
12203 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12204 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12205 reload_flag=$lt_cv_ld_reload_flag
12206 case $reload_flag in
12207 "" | " "*) ;;
12208 *) reload_flag=" $reload_flag" ;;
12209 esac
12210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12211 case $host_os in
12212   darwin*)
12213     if test "$GCC" = yes; then
12214       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12215     else
12216       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12217     fi
12218     ;;
12219 esac
12220
12221 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12222 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12223 if test "${lt_cv_deplibs_check_method+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   lt_cv_file_magic_cmd='$MAGIC_CMD'
12227 lt_cv_file_magic_test_file=
12228 lt_cv_deplibs_check_method='unknown'
12229 # Need to set the preceding variable on all platforms that support
12230 # interlibrary dependencies.
12231 # 'none' -- dependencies not supported.
12232 # `unknown' -- same as none, but documents that we really don't know.
12233 # 'pass_all' -- all dependencies passed with no checks.
12234 # 'test_compile' -- check by making test program.
12235 # 'file_magic [[regex]]' -- check by looking for files in library path
12236 # which responds to the $file_magic_cmd with a given extended regex.
12237 # If you have `file' or equivalent on your system and you're not sure
12238 # whether `pass_all' will *always* work, you probably want this one.
12239
12240 case $host_os in
12241 aix4* | aix5*)
12242   lt_cv_deplibs_check_method=pass_all
12243   ;;
12244
12245 beos*)
12246   lt_cv_deplibs_check_method=pass_all
12247   ;;
12248
12249 bsdi[45]*)
12250   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12251   lt_cv_file_magic_cmd='/usr/bin/file -L'
12252   lt_cv_file_magic_test_file=/shlib/libc.so
12253   ;;
12254
12255 cygwin*)
12256   # func_win32_libid is a shell function defined in ltmain.sh
12257   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12258   lt_cv_file_magic_cmd='func_win32_libid'
12259   ;;
12260
12261 mingw* | pw32*)
12262   # Base MSYS/MinGW do not provide the 'file' command needed by
12263   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12264   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12265   lt_cv_file_magic_cmd='$OBJDUMP -f'
12266   ;;
12267
12268 darwin* | rhapsody*)
12269   lt_cv_deplibs_check_method=pass_all
12270   ;;
12271
12272 freebsd* | kfreebsd*-gnu | dragonfly*)
12273   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12274     case $host_cpu in
12275     i*86 )
12276       # Not sure whether the presence of OpenBSD here was a mistake.
12277       # Let's accept both of them until this is cleared up.
12278       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12279       lt_cv_file_magic_cmd=/usr/bin/file
12280       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12281       ;;
12282     esac
12283   else
12284     lt_cv_deplibs_check_method=pass_all
12285   fi
12286   ;;
12287
12288 gnu*)
12289   lt_cv_deplibs_check_method=pass_all
12290   ;;
12291
12292 hpux10.20* | hpux11*)
12293   lt_cv_file_magic_cmd=/usr/bin/file
12294   case $host_cpu in
12295   ia64*)
12296     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12297     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12298     ;;
12299   hppa*64*)
12300     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]'
12301     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12302     ;;
12303   *)
12304     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12305     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12306     ;;
12307   esac
12308   ;;
12309
12310 interix3*)
12311   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12312   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12313   ;;
12314
12315 irix5* | irix6* | nonstopux*)
12316   case $LD in
12317   *-32|*"-32 ") libmagic=32-bit;;
12318   *-n32|*"-n32 ") libmagic=N32;;
12319   *-64|*"-64 ") libmagic=64-bit;;
12320   *) libmagic=never-match;;
12321   esac
12322   lt_cv_deplibs_check_method=pass_all
12323   ;;
12324
12325 # This must be Linux ELF.
12326 linux*)
12327   lt_cv_deplibs_check_method=pass_all
12328   ;;
12329
12330 netbsd*)
12331   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12332     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12333   else
12334     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12335   fi
12336   ;;
12337
12338 newos6*)
12339   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12340   lt_cv_file_magic_cmd=/usr/bin/file
12341   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12342   ;;
12343
12344 nto-qnx*)
12345   lt_cv_deplibs_check_method=unknown
12346   ;;
12347
12348 openbsd*)
12349   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12351   else
12352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12353   fi
12354   ;;
12355
12356 osf3* | osf4* | osf5*)
12357   lt_cv_deplibs_check_method=pass_all
12358   ;;
12359
12360 solaris*)
12361   lt_cv_deplibs_check_method=pass_all
12362   ;;
12363
12364 sysv4 | sysv4.3*)
12365   case $host_vendor in
12366   motorola)
12367     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]'
12368     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12369     ;;
12370   ncr)
12371     lt_cv_deplibs_check_method=pass_all
12372     ;;
12373   sequent)
12374     lt_cv_file_magic_cmd='/bin/file'
12375     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12376     ;;
12377   sni)
12378     lt_cv_file_magic_cmd='/bin/file'
12379     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12380     lt_cv_file_magic_test_file=/lib/libc.so
12381     ;;
12382   siemens)
12383     lt_cv_deplibs_check_method=pass_all
12384     ;;
12385   pc)
12386     lt_cv_deplibs_check_method=pass_all
12387     ;;
12388   esac
12389   ;;
12390
12391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392   lt_cv_deplibs_check_method=pass_all
12393   ;;
12394 esac
12395
12396 fi
12397 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12398 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12399 file_magic_cmd=$lt_cv_file_magic_cmd
12400 deplibs_check_method=$lt_cv_deplibs_check_method
12401 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12402
12403
12404
12405 # If no C compiler was specified, use CC.
12406 LTCC=${LTCC-"$CC"}
12407
12408 # If no C compiler flags were specified, use CFLAGS.
12409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12410
12411 # Allow CC to be a program name with arguments.
12412 compiler=$CC
12413
12414 # Check whether --enable-libtool-lock was given.
12415 if test "${enable_libtool_lock+set}" = set; then
12416   enableval=$enable_libtool_lock;
12417 fi
12418
12419 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12420
12421 # Some flags need to be propagated to the compiler or linker for good
12422 # libtool support.
12423 case $host in
12424 ia64-*-hpux*)
12425   # Find out which ABI we are using.
12426   echo 'int i;' > conftest.$ac_ext
12427   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428   (eval $ac_compile) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; then
12432     case `/usr/bin/file conftest.$ac_objext` in
12433     *ELF-32*)
12434       HPUX_IA64_MODE="32"
12435       ;;
12436     *ELF-64*)
12437       HPUX_IA64_MODE="64"
12438       ;;
12439     esac
12440   fi
12441   rm -rf conftest*
12442   ;;
12443 *-*-irix6*)
12444   # Find out which ABI we are using.
12445   echo '#line 12445 "configure"' > conftest.$ac_ext
12446   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447   (eval $ac_compile) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; then
12451    if test "$lt_cv_prog_gnu_ld" = yes; then
12452     case `/usr/bin/file conftest.$ac_objext` in
12453     *32-bit*)
12454       LD="${LD-ld} -melf32bsmip"
12455       ;;
12456     *N32*)
12457       LD="${LD-ld} -melf32bmipn32"
12458       ;;
12459     *64-bit*)
12460       LD="${LD-ld} -melf64bmip"
12461       ;;
12462     esac
12463    else
12464     case `/usr/bin/file conftest.$ac_objext` in
12465     *32-bit*)
12466       LD="${LD-ld} -32"
12467       ;;
12468     *N32*)
12469       LD="${LD-ld} -n32"
12470       ;;
12471     *64-bit*)
12472       LD="${LD-ld} -64"
12473       ;;
12474     esac
12475    fi
12476   fi
12477   rm -rf conftest*
12478   ;;
12479
12480 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12481   # Find out which ABI we are using.
12482   echo 'int i;' > conftest.$ac_ext
12483   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484   (eval $ac_compile) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; then
12488     case `/usr/bin/file conftest.o` in
12489     *32-bit*)
12490       case $host in
12491         x86_64-*linux*)
12492           LD="${LD-ld} -m elf_i386"
12493           ;;
12494         ppc64-*linux*|powerpc64-*linux*)
12495           LD="${LD-ld} -m elf32ppclinux"
12496           ;;
12497         s390x-*linux*)
12498           LD="${LD-ld} -m elf_s390"
12499           ;;
12500         sparc64-*linux*)
12501           LD="${LD-ld} -m elf32_sparc"
12502           ;;
12503       esac
12504       ;;
12505     *64-bit*)
12506       case $host in
12507         x86_64-*linux*)
12508           LD="${LD-ld} -m elf_x86_64"
12509           ;;
12510         ppc*-*linux*|powerpc*-*linux*)
12511           LD="${LD-ld} -m elf64ppc"
12512           ;;
12513         s390*-*linux*)
12514           LD="${LD-ld} -m elf64_s390"
12515           ;;
12516         sparc*-*linux*)
12517           LD="${LD-ld} -m elf64_sparc"
12518           ;;
12519       esac
12520       ;;
12521     esac
12522   fi
12523   rm -rf conftest*
12524   ;;
12525
12526 *-*-sco3.2v5*)
12527   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12528   SAVE_CFLAGS="$CFLAGS"
12529   CFLAGS="$CFLAGS -belf"
12530   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12531 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12532 if test "${lt_cv_cc_needs_belf+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   ac_ext=c
12536 ac_cpp='$CPP $CPPFLAGS'
12537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12540
12541      cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547
12548 int
12549 main ()
12550 {
12551
12552   ;
12553   return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_link") 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571   { (case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_try") 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; } &&
12580          { ac_try='test -s conftest$ac_exeext'
12581   { (case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586   (eval "$ac_try") 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   lt_cv_cc_needs_belf=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595         lt_cv_cc_needs_belf=no
12596 fi
12597
12598 rm -f core conftest.err conftest.$ac_objext \
12599       conftest$ac_exeext conftest.$ac_ext
12600      ac_ext=c
12601 ac_cpp='$CPP $CPPFLAGS'
12602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12605
12606 fi
12607 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12608 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12609   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12610     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12611     CFLAGS="$SAVE_CFLAGS"
12612   fi
12613   ;;
12614 sparc*-*solaris*)
12615   # Find out which ABI we are using.
12616   echo 'int i;' > conftest.$ac_ext
12617   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618   (eval $ac_compile) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; then
12622     case `/usr/bin/file conftest.o` in
12623     *64-bit*)
12624       case $lt_cv_prog_gnu_ld in
12625       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12626       *)    LD="${LD-ld} -64" ;;
12627       esac
12628       ;;
12629     esac
12630   fi
12631   rm -rf conftest*
12632   ;;
12633
12634
12635 esac
12636
12637 need_locks="$enable_libtool_lock"
12638
12639
12640
12641
12642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12643     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12644     (test "X$CXX" != "Xg++"))) ; then
12645   ac_ext=cpp
12646 ac_cpp='$CXXCPP $CPPFLAGS'
12647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12650 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12651 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12652 if test -z "$CXXCPP"; then
12653   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656       # Double quotes because CXXCPP needs to be expanded
12657     for CXXCPP in "$CXX -E" "/lib/cpp"
12658     do
12659       ac_preproc_ok=false
12660 for ac_cxx_preproc_warn_flag in '' yes
12661 do
12662   # Use a header file that comes with gcc, so configuring glibc
12663   # with a fresh cross-compiler works.
12664   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12665   # <limits.h> exists even on freestanding compilers.
12666   # On the NeXT, cc -E runs the code through the compiler's parser,
12667   # not just through cpp. "Syntax error" is here to catch this case.
12668   cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h.  */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h.  */
12674 #ifdef __STDC__
12675 # include <limits.h>
12676 #else
12677 # include <assert.h>
12678 #endif
12679                      Syntax error
12680 _ACEOF
12681 if { (ac_try="$ac_cpp conftest.$ac_ext"
12682 case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } >/dev/null; then
12694   if test -s conftest.err; then
12695     ac_cpp_err=$ac_cxx_preproc_warn_flag
12696     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12697   else
12698     ac_cpp_err=
12699   fi
12700 else
12701   ac_cpp_err=yes
12702 fi
12703 if test -z "$ac_cpp_err"; then
12704   :
12705 else
12706   echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709   # Broken: fails on valid input.
12710 continue
12711 fi
12712
12713 rm -f conftest.err conftest.$ac_ext
12714
12715   # OK, works on sane cases.  Now check whether nonexistent headers
12716   # can be detected and how.
12717   cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723 #include <ac_nonexistent.h>
12724 _ACEOF
12725 if { (ac_try="$ac_cpp conftest.$ac_ext"
12726 case "(($ac_try" in
12727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728   *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12732   ac_status=$?
12733   grep -v '^ *+' conftest.er1 >conftest.err
12734   rm -f conftest.er1
12735   cat conftest.err >&5
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } >/dev/null; then
12738   if test -s conftest.err; then
12739     ac_cpp_err=$ac_cxx_preproc_warn_flag
12740     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12741   else
12742     ac_cpp_err=
12743   fi
12744 else
12745   ac_cpp_err=yes
12746 fi
12747 if test -z "$ac_cpp_err"; then
12748   # Broken: success on invalid input.
12749 continue
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754   # Passes both tests.
12755 ac_preproc_ok=:
12756 break
12757 fi
12758
12759 rm -f conftest.err conftest.$ac_ext
12760
12761 done
12762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12763 rm -f conftest.err conftest.$ac_ext
12764 if $ac_preproc_ok; then
12765   break
12766 fi
12767
12768     done
12769     ac_cv_prog_CXXCPP=$CXXCPP
12770
12771 fi
12772   CXXCPP=$ac_cv_prog_CXXCPP
12773 else
12774   ac_cv_prog_CXXCPP=$CXXCPP
12775 fi
12776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12777 echo "${ECHO_T}$CXXCPP" >&6; }
12778 ac_preproc_ok=false
12779 for ac_cxx_preproc_warn_flag in '' yes
12780 do
12781   # Use a header file that comes with gcc, so configuring glibc
12782   # with a fresh cross-compiler works.
12783   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784   # <limits.h> exists even on freestanding compilers.
12785   # On the NeXT, cc -E runs the code through the compiler's parser,
12786   # not just through cpp. "Syntax error" is here to catch this case.
12787   cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 #ifdef __STDC__
12794 # include <limits.h>
12795 #else
12796 # include <assert.h>
12797 #endif
12798                      Syntax error
12799 _ACEOF
12800 if { (ac_try="$ac_cpp conftest.$ac_ext"
12801 case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807   ac_status=$?
12808   grep -v '^ *+' conftest.er1 >conftest.err
12809   rm -f conftest.er1
12810   cat conftest.err >&5
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } >/dev/null; then
12813   if test -s conftest.err; then
12814     ac_cpp_err=$ac_cxx_preproc_warn_flag
12815     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12816   else
12817     ac_cpp_err=
12818   fi
12819 else
12820   ac_cpp_err=yes
12821 fi
12822 if test -z "$ac_cpp_err"; then
12823   :
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828   # Broken: fails on valid input.
12829 continue
12830 fi
12831
12832 rm -f conftest.err conftest.$ac_ext
12833
12834   # OK, works on sane cases.  Now check whether nonexistent headers
12835   # can be detected and how.
12836   cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 #include <ac_nonexistent.h>
12843 _ACEOF
12844 if { (ac_try="$ac_cpp conftest.$ac_ext"
12845 case "(($ac_try" in
12846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847   *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12851   ac_status=$?
12852   grep -v '^ *+' conftest.er1 >conftest.err
12853   rm -f conftest.er1
12854   cat conftest.err >&5
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } >/dev/null; then
12857   if test -s conftest.err; then
12858     ac_cpp_err=$ac_cxx_preproc_warn_flag
12859     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12860   else
12861     ac_cpp_err=
12862   fi
12863 else
12864   ac_cpp_err=yes
12865 fi
12866 if test -z "$ac_cpp_err"; then
12867   # Broken: success on invalid input.
12868 continue
12869 else
12870   echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12872
12873   # Passes both tests.
12874 ac_preproc_ok=:
12875 break
12876 fi
12877
12878 rm -f conftest.err conftest.$ac_ext
12879
12880 done
12881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12882 rm -f conftest.err conftest.$ac_ext
12883 if $ac_preproc_ok; then
12884   :
12885 else
12886   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12887 See \`config.log' for more details." >&5
12888 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12889 See \`config.log' for more details." >&2;}
12890    { (exit 1); exit 1; }; }
12891 fi
12892
12893 ac_ext=cpp
12894 ac_cpp='$CXXCPP $CPPFLAGS'
12895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12898
12899 fi
12900
12901
12902 ac_ext=f
12903 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12904 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12906 if test -n "$ac_tool_prefix"; then
12907   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
12908   do
12909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12913 if test "${ac_cv_prog_F77+set}" = set; then
12914   echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916   if test -n "$F77"; then
12917   ac_cv_prog_F77="$F77" # Let the user override the test.
12918 else
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12921 do
12922   IFS=$as_save_IFS
12923   test -z "$as_dir" && as_dir=.
12924   for ac_exec_ext in '' $ac_executable_extensions; do
12925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12926     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928     break 2
12929   fi
12930 done
12931 done
12932 IFS=$as_save_IFS
12933
12934 fi
12935 fi
12936 F77=$ac_cv_prog_F77
12937 if test -n "$F77"; then
12938   { echo "$as_me:$LINENO: result: $F77" >&5
12939 echo "${ECHO_T}$F77" >&6; }
12940 else
12941   { echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6; }
12943 fi
12944
12945
12946     test -n "$F77" && break
12947   done
12948 fi
12949 if test -z "$F77"; then
12950   ac_ct_F77=$F77
12951   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
12952 do
12953   # Extract the first word of "$ac_prog", so it can be a program name with args.
12954 set dummy $ac_prog; ac_word=$2
12955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12957 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960   if test -n "$ac_ct_F77"; then
12961   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12962 else
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12965 do
12966   IFS=$as_save_IFS
12967   test -z "$as_dir" && as_dir=.
12968   for ac_exec_ext in '' $ac_executable_extensions; do
12969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12970     ac_cv_prog_ac_ct_F77="$ac_prog"
12971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12972     break 2
12973   fi
12974 done
12975 done
12976 IFS=$as_save_IFS
12977
12978 fi
12979 fi
12980 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12981 if test -n "$ac_ct_F77"; then
12982   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12983 echo "${ECHO_T}$ac_ct_F77" >&6; }
12984 else
12985   { echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6; }
12987 fi
12988
12989
12990   test -n "$ac_ct_F77" && break
12991 done
12992
12993   if test "x$ac_ct_F77" = x; then
12994     F77=""
12995   else
12996     case $cross_compiling:$ac_tool_warned in
12997 yes:)
12998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12999 whose name does not start with the host triplet.  If you think this
13000 configuration is useful to you, please write to autoconf@gnu.org." >&5
13001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13002 whose name does not start with the host triplet.  If you think this
13003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13004 ac_tool_warned=yes ;;
13005 esac
13006     F77=$ac_ct_F77
13007   fi
13008 fi
13009
13010
13011 # Provide some information about the compiler.
13012 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13013 ac_compiler=`set X $ac_compile; echo $2`
13014 { (ac_try="$ac_compiler --version >&5"
13015 case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_compiler --version >&5") 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }
13024 { (ac_try="$ac_compiler -v >&5"
13025 case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_compiler -v >&5") 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }
13034 { (ac_try="$ac_compiler -V >&5"
13035 case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_compiler -V >&5") 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }
13044 rm -f a.out
13045
13046 # If we don't use `.F' as extension, the preprocessor is not run on the
13047 # input file.  (Note that this only needs to work for GNU compilers.)
13048 ac_save_ext=$ac_ext
13049 ac_ext=F
13050 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13051 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13052 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   cat >conftest.$ac_ext <<_ACEOF
13056       program main
13057 #ifndef __GNUC__
13058        choke me
13059 #endif
13060
13061       end
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (ac_try="$ac_compile"
13065 case "(($ac_try" in
13066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067   *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070   (eval "$ac_compile") 2>conftest.er1
13071   ac_status=$?
13072   grep -v '^ *+' conftest.er1 >conftest.err
13073   rm -f conftest.er1
13074   cat conftest.err >&5
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } &&
13077          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13078   { (case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_try") 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; } &&
13087          { ac_try='test -s conftest.$ac_objext'
13088   { (case "(($ac_try" in
13089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090   *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093   (eval "$ac_try") 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   ac_compiler_gnu=yes
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102         ac_compiler_gnu=no
13103 fi
13104
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13107
13108 fi
13109 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13110 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13111 ac_ext=$ac_save_ext
13112 ac_test_FFLAGS=${FFLAGS+set}
13113 ac_save_FFLAGS=$FFLAGS
13114 FFLAGS=
13115 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13116 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13117 if test "${ac_cv_prog_f77_g+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   FFLAGS=-g
13121 cat >conftest.$ac_ext <<_ACEOF
13122       program main
13123
13124       end
13125 _ACEOF
13126 rm -f conftest.$ac_objext
13127 if { (ac_try="$ac_compile"
13128 case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133   (eval "$ac_compile") 2>conftest.er1
13134   ac_status=$?
13135   grep -v '^ *+' conftest.er1 >conftest.err
13136   rm -f conftest.er1
13137   cat conftest.err >&5
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); } &&
13140          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13141   { (case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_try") 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; } &&
13150          { ac_try='test -s conftest.$ac_objext'
13151   { (case "(($ac_try" in
13152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153   *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156   (eval "$ac_try") 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_cv_prog_f77_g=yes
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165         ac_cv_prog_f77_g=no
13166 fi
13167
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169
13170 fi
13171 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13173 if test "$ac_test_FFLAGS" = set; then
13174   FFLAGS=$ac_save_FFLAGS
13175 elif test $ac_cv_prog_f77_g = yes; then
13176   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13177     FFLAGS="-g -O2"
13178   else
13179     FFLAGS="-g"
13180   fi
13181 else
13182   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13183     FFLAGS="-O2"
13184   else
13185     FFLAGS=
13186   fi
13187 fi
13188
13189 G77=`test $ac_compiler_gnu = yes && echo yes`
13190 ac_ext=c
13191 ac_cpp='$CPP $CPPFLAGS'
13192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13195
13196
13197
13198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13199
13200 # find the maximum length of command line arguments
13201 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13202 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13203 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13204   echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206     i=0
13207   teststring="ABCD"
13208
13209   case $build_os in
13210   msdosdjgpp*)
13211     # On DJGPP, this test can blow up pretty badly due to problems in libc
13212     # (any single argument exceeding 2000 bytes causes a buffer overrun
13213     # during glob expansion).  Even if it were fixed, the result of this
13214     # check would be larger than it should be.
13215     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13216     ;;
13217
13218   gnu*)
13219     # Under GNU Hurd, this test is not required because there is
13220     # no limit to the length of command line arguments.
13221     # Libtool will interpret -1 as no limit whatsoever
13222     lt_cv_sys_max_cmd_len=-1;
13223     ;;
13224
13225   cygwin* | mingw*)
13226     # On Win9x/ME, this test blows up -- it succeeds, but takes
13227     # about 5 minutes as the teststring grows exponentially.
13228     # Worse, since 9x/ME are not pre-emptively multitasking,
13229     # you end up with a "frozen" computer, even though with patience
13230     # the test eventually succeeds (with a max line length of 256k).
13231     # Instead, let's just punt: use the minimum linelength reported by
13232     # all of the supported platforms: 8192 (on NT/2K/XP).
13233     lt_cv_sys_max_cmd_len=8192;
13234     ;;
13235
13236   amigaos*)
13237     # On AmigaOS with pdksh, this test takes hours, literally.
13238     # So we just punt and use a minimum line length of 8192.
13239     lt_cv_sys_max_cmd_len=8192;
13240     ;;
13241
13242   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13243     # This has been around since 386BSD, at least.  Likely further.
13244     if test -x /sbin/sysctl; then
13245       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13246     elif test -x /usr/sbin/sysctl; then
13247       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13248     else
13249       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13250     fi
13251     # And add a safety zone
13252     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13253     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13254     ;;
13255
13256   interix*)
13257     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13258     lt_cv_sys_max_cmd_len=196608
13259     ;;
13260
13261   osf*)
13262     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13263     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13264     # nice to cause kernel panics so lets avoid the loop below.
13265     # First set a reasonable default.
13266     lt_cv_sys_max_cmd_len=16384
13267     #
13268     if test -x /sbin/sysconfig; then
13269       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13270         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13271       esac
13272     fi
13273     ;;
13274   sco3.2v5*)
13275     lt_cv_sys_max_cmd_len=102400
13276     ;;
13277   sysv5* | sco5v6* | sysv4.2uw2*)
13278     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13279     if test -n "$kargmax"; then
13280       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13281     else
13282       lt_cv_sys_max_cmd_len=32768
13283     fi
13284     ;;
13285   *)
13286     # If test is not a shell built-in, we'll probably end up computing a
13287     # maximum length that is only half of the actual maximum length, but
13288     # we can't tell.
13289     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13290     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13291                = "XX$teststring") >/dev/null 2>&1 &&
13292             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13293             lt_cv_sys_max_cmd_len=$new_result &&
13294             test $i != 17 # 1/2 MB should be enough
13295     do
13296       i=`expr $i + 1`
13297       teststring=$teststring$teststring
13298     done
13299     teststring=
13300     # Add a significant safety factor because C++ compilers can tack on massive
13301     # amounts of additional arguments before passing them to the linker.
13302     # It appears as though 1/2 is a usable value.
13303     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13304     ;;
13305   esac
13306
13307 fi
13308
13309 if test -n $lt_cv_sys_max_cmd_len ; then
13310   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13311 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13312 else
13313   { echo "$as_me:$LINENO: result: none" >&5
13314 echo "${ECHO_T}none" >&6; }
13315 fi
13316
13317
13318
13319
13320 # Check for command to grab the raw symbol name followed by C symbol from nm.
13321 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13322 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13323 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13324   echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13326
13327 # These are sane defaults that work on at least a few old systems.
13328 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13329
13330 # Character class describing NM global symbol codes.
13331 symcode='[BCDEGRST]'
13332
13333 # Regexp to match symbols that can be accessed directly from C.
13334 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13335
13336 # Transform an extracted symbol line into a proper C declaration
13337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13338
13339 # Transform an extracted symbol line into symbol name and symbol address
13340 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'"
13341
13342 # Define system-specific variables.
13343 case $host_os in
13344 aix*)
13345   symcode='[BCDT]'
13346   ;;
13347 cygwin* | mingw* | pw32*)
13348   symcode='[ABCDGISTW]'
13349   ;;
13350 hpux*) # Its linker distinguishes data from code symbols
13351   if test "$host_cpu" = ia64; then
13352     symcode='[ABCDEGRST]'
13353   fi
13354   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13355   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'"
13356   ;;
13357 linux*)
13358   if test "$host_cpu" = ia64; then
13359     symcode='[ABCDGIRSTW]'
13360     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13361     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'"
13362   fi
13363   ;;
13364 irix* | nonstopux*)
13365   symcode='[BCDEGRST]'
13366   ;;
13367 osf*)
13368   symcode='[BCDEGQRST]'
13369   ;;
13370 solaris*)
13371   symcode='[BDRT]'
13372   ;;
13373 sco3.2v5*)
13374   symcode='[DT]'
13375   ;;
13376 sysv4.2uw2*)
13377   symcode='[DT]'
13378   ;;
13379 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13380   symcode='[ABDT]'
13381   ;;
13382 sysv4)
13383   symcode='[DFNSTU]'
13384   ;;
13385 esac
13386
13387 # Handle CRLF in mingw tool chain
13388 opt_cr=
13389 case $build_os in
13390 mingw*)
13391   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13392   ;;
13393 esac
13394
13395 # If we're using GNU nm, then use its standard symbol codes.
13396 case `$NM -V 2>&1` in
13397 *GNU* | *'with BFD'*)
13398   symcode='[ABCDGIRSTW]' ;;
13399 esac
13400
13401 # Try without a prefix undercore, then with it.
13402 for ac_symprfx in "" "_"; do
13403
13404   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13405   symxfrm="\\1 $ac_symprfx\\2 \\2"
13406
13407   # Write the raw and C identifiers.
13408   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13409
13410   # Check to see that the pipe works correctly.
13411   pipe_works=no
13412
13413   rm -f conftest*
13414   cat > conftest.$ac_ext <<EOF
13415 #ifdef __cplusplus
13416 extern "C" {
13417 #endif
13418 char nm_test_var;
13419 void nm_test_func(){}
13420 #ifdef __cplusplus
13421 }
13422 #endif
13423 int main(){nm_test_var='a';nm_test_func();return(0);}
13424 EOF
13425
13426   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427   (eval $ac_compile) 2>&5
13428   ac_status=$?
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); }; then
13431     # Now try to grab the symbols.
13432     nlist=conftest.nm
13433     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13434   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } && test -s "$nlist"; then
13438       # Try sorting and uniquifying the output.
13439       if sort "$nlist" | uniq > "$nlist"T; then
13440         mv -f "$nlist"T "$nlist"
13441       else
13442         rm -f "$nlist"T
13443       fi
13444
13445       # Make sure that we snagged all the symbols we need.
13446       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13447         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13448           cat <<EOF > conftest.$ac_ext
13449 #ifdef __cplusplus
13450 extern "C" {
13451 #endif
13452
13453 EOF
13454           # Now generate the symbol file.
13455           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13456
13457           cat <<EOF >> conftest.$ac_ext
13458 #if defined (__STDC__) && __STDC__
13459 # define lt_ptr_t void *
13460 #else
13461 # define lt_ptr_t char *
13462 # define const
13463 #endif
13464
13465 /* The mapping between symbol names and symbols. */
13466 const struct {
13467   const char *name;
13468   lt_ptr_t address;
13469 }
13470 lt_preloaded_symbols[] =
13471 {
13472 EOF
13473           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13474           cat <<\EOF >> conftest.$ac_ext
13475   {0, (lt_ptr_t) 0}
13476 };
13477
13478 #ifdef __cplusplus
13479 }
13480 #endif
13481 EOF
13482           # Now try linking the two files.
13483           mv conftest.$ac_objext conftstm.$ac_objext
13484           lt_save_LIBS="$LIBS"
13485           lt_save_CFLAGS="$CFLAGS"
13486           LIBS="conftstm.$ac_objext"
13487           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13488           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13493             pipe_works=yes
13494           fi
13495           LIBS="$lt_save_LIBS"
13496           CFLAGS="$lt_save_CFLAGS"
13497         else
13498           echo "cannot find nm_test_func in $nlist" >&5
13499         fi
13500       else
13501         echo "cannot find nm_test_var in $nlist" >&5
13502       fi
13503     else
13504       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13505     fi
13506   else
13507     echo "$progname: failed program was:" >&5
13508     cat conftest.$ac_ext >&5
13509   fi
13510   rm -f conftest* conftst*
13511
13512   # Do not use the global_symbol_pipe unless it works.
13513   if test "$pipe_works" = yes; then
13514     break
13515   else
13516     lt_cv_sys_global_symbol_pipe=
13517   fi
13518 done
13519
13520 fi
13521
13522 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13523   lt_cv_sys_global_symbol_to_cdecl=
13524 fi
13525 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13526   { echo "$as_me:$LINENO: result: failed" >&5
13527 echo "${ECHO_T}failed" >&6; }
13528 else
13529   { echo "$as_me:$LINENO: result: ok" >&5
13530 echo "${ECHO_T}ok" >&6; }
13531 fi
13532
13533 { echo "$as_me:$LINENO: checking for objdir" >&5
13534 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13535 if test "${lt_cv_objdir+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   rm -f .libs 2>/dev/null
13539 mkdir .libs 2>/dev/null
13540 if test -d .libs; then
13541   lt_cv_objdir=.libs
13542 else
13543   # MS-DOS does not allow filenames that begin with a dot.
13544   lt_cv_objdir=_libs
13545 fi
13546 rmdir .libs 2>/dev/null
13547 fi
13548 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13549 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13550 objdir=$lt_cv_objdir
13551
13552
13553
13554
13555
13556 case $host_os in
13557 aix3*)
13558   # AIX sometimes has problems with the GCC collect2 program.  For some
13559   # reason, if we set the COLLECT_NAMES environment variable, the problems
13560   # vanish in a puff of smoke.
13561   if test "X${COLLECT_NAMES+set}" != Xset; then
13562     COLLECT_NAMES=
13563     export COLLECT_NAMES
13564   fi
13565   ;;
13566 esac
13567
13568 # Sed substitution that helps us do robust quoting.  It backslashifies
13569 # metacharacters that are still active within double-quoted strings.
13570 Xsed='sed -e 1s/^X//'
13571 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13572
13573 # Same as above, but do not quote variable references.
13574 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13575
13576 # Sed substitution to delay expansion of an escaped shell variable in a
13577 # double_quote_subst'ed string.
13578 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13579
13580 # Sed substitution to avoid accidental globbing in evaled expressions
13581 no_glob_subst='s/\*/\\\*/g'
13582
13583 # Constants:
13584 rm="rm -f"
13585
13586 # Global variables:
13587 default_ofile=mklib
13588 can_build_shared=yes
13589
13590 # All known linkers require a `.a' archive for static linking (except MSVC,
13591 # which needs '.lib').
13592 libext=a
13593 ltmain="$ac_aux_dir/ltmain.sh"
13594 ofile="$default_ofile"
13595 with_gnu_ld="$lt_cv_prog_gnu_ld"
13596
13597 if test -n "$ac_tool_prefix"; then
13598   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13599 set dummy ${ac_tool_prefix}ar; ac_word=$2
13600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13602 if test "${ac_cv_prog_AR+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   if test -n "$AR"; then
13606   ac_cv_prog_AR="$AR" # Let the user override the test.
13607 else
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13610 do
13611   IFS=$as_save_IFS
13612   test -z "$as_dir" && as_dir=.
13613   for ac_exec_ext in '' $ac_executable_extensions; do
13614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13615     ac_cv_prog_AR="${ac_tool_prefix}ar"
13616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13617     break 2
13618   fi
13619 done
13620 done
13621 IFS=$as_save_IFS
13622
13623 fi
13624 fi
13625 AR=$ac_cv_prog_AR
13626 if test -n "$AR"; then
13627   { echo "$as_me:$LINENO: result: $AR" >&5
13628 echo "${ECHO_T}$AR" >&6; }
13629 else
13630   { echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6; }
13632 fi
13633
13634
13635 fi
13636 if test -z "$ac_cv_prog_AR"; then
13637   ac_ct_AR=$AR
13638   # Extract the first word of "ar", so it can be a program name with args.
13639 set dummy ar; ac_word=$2
13640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13643   echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645   if test -n "$ac_ct_AR"; then
13646   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13647 else
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13650 do
13651   IFS=$as_save_IFS
13652   test -z "$as_dir" && as_dir=.
13653   for ac_exec_ext in '' $ac_executable_extensions; do
13654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13655     ac_cv_prog_ac_ct_AR="ar"
13656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657     break 2
13658   fi
13659 done
13660 done
13661 IFS=$as_save_IFS
13662
13663 fi
13664 fi
13665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13666 if test -n "$ac_ct_AR"; then
13667   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13668 echo "${ECHO_T}$ac_ct_AR" >&6; }
13669 else
13670   { echo "$as_me:$LINENO: result: no" >&5
13671 echo "${ECHO_T}no" >&6; }
13672 fi
13673
13674   if test "x$ac_ct_AR" = x; then
13675     AR="false"
13676   else
13677     case $cross_compiling:$ac_tool_warned in
13678 yes:)
13679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13680 whose name does not start with the host triplet.  If you think this
13681 configuration is useful to you, please write to autoconf@gnu.org." >&5
13682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13683 whose name does not start with the host triplet.  If you think this
13684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13685 ac_tool_warned=yes ;;
13686 esac
13687     AR=$ac_ct_AR
13688   fi
13689 else
13690   AR="$ac_cv_prog_AR"
13691 fi
13692
13693 if test -n "$ac_tool_prefix"; then
13694   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13695 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13698 if test "${ac_cv_prog_RANLIB+set}" = set; then
13699   echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701   if test -n "$RANLIB"; then
13702   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707   IFS=$as_save_IFS
13708   test -z "$as_dir" && as_dir=.
13709   for ac_exec_ext in '' $ac_executable_extensions; do
13710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13711     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13713     break 2
13714   fi
13715 done
13716 done
13717 IFS=$as_save_IFS
13718
13719 fi
13720 fi
13721 RANLIB=$ac_cv_prog_RANLIB
13722 if test -n "$RANLIB"; then
13723   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13724 echo "${ECHO_T}$RANLIB" >&6; }
13725 else
13726   { echo "$as_me:$LINENO: result: no" >&5
13727 echo "${ECHO_T}no" >&6; }
13728 fi
13729
13730
13731 fi
13732 if test -z "$ac_cv_prog_RANLIB"; then
13733   ac_ct_RANLIB=$RANLIB
13734   # Extract the first word of "ranlib", so it can be a program name with args.
13735 set dummy ranlib; ac_word=$2
13736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13738 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13739   echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741   if test -n "$ac_ct_RANLIB"; then
13742   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13743 else
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13746 do
13747   IFS=$as_save_IFS
13748   test -z "$as_dir" && as_dir=.
13749   for ac_exec_ext in '' $ac_executable_extensions; do
13750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13751     ac_cv_prog_ac_ct_RANLIB="ranlib"
13752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13753     break 2
13754   fi
13755 done
13756 done
13757 IFS=$as_save_IFS
13758
13759 fi
13760 fi
13761 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13762 if test -n "$ac_ct_RANLIB"; then
13763   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13764 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13765 else
13766   { echo "$as_me:$LINENO: result: no" >&5
13767 echo "${ECHO_T}no" >&6; }
13768 fi
13769
13770   if test "x$ac_ct_RANLIB" = x; then
13771     RANLIB=":"
13772   else
13773     case $cross_compiling:$ac_tool_warned in
13774 yes:)
13775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13776 whose name does not start with the host triplet.  If you think this
13777 configuration is useful to you, please write to autoconf@gnu.org." >&5
13778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13779 whose name does not start with the host triplet.  If you think this
13780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13781 ac_tool_warned=yes ;;
13782 esac
13783     RANLIB=$ac_ct_RANLIB
13784   fi
13785 else
13786   RANLIB="$ac_cv_prog_RANLIB"
13787 fi
13788
13789 if test -n "$ac_tool_prefix"; then
13790   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13791 set dummy ${ac_tool_prefix}strip; ac_word=$2
13792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13794 if test "${ac_cv_prog_STRIP+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   if test -n "$STRIP"; then
13798   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13799 else
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13802 do
13803   IFS=$as_save_IFS
13804   test -z "$as_dir" && as_dir=.
13805   for ac_exec_ext in '' $ac_executable_extensions; do
13806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13807     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13809     break 2
13810   fi
13811 done
13812 done
13813 IFS=$as_save_IFS
13814
13815 fi
13816 fi
13817 STRIP=$ac_cv_prog_STRIP
13818 if test -n "$STRIP"; then
13819   { echo "$as_me:$LINENO: result: $STRIP" >&5
13820 echo "${ECHO_T}$STRIP" >&6; }
13821 else
13822   { echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6; }
13824 fi
13825
13826
13827 fi
13828 if test -z "$ac_cv_prog_STRIP"; then
13829   ac_ct_STRIP=$STRIP
13830   # Extract the first word of "strip", so it can be a program name with args.
13831 set dummy strip; ac_word=$2
13832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13835   echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837   if test -n "$ac_ct_STRIP"; then
13838   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13839 else
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13842 do
13843   IFS=$as_save_IFS
13844   test -z "$as_dir" && as_dir=.
13845   for ac_exec_ext in '' $ac_executable_extensions; do
13846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13847     ac_cv_prog_ac_ct_STRIP="strip"
13848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13849     break 2
13850   fi
13851 done
13852 done
13853 IFS=$as_save_IFS
13854
13855 fi
13856 fi
13857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13858 if test -n "$ac_ct_STRIP"; then
13859   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13860 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13861 else
13862   { echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6; }
13864 fi
13865
13866   if test "x$ac_ct_STRIP" = x; then
13867     STRIP=":"
13868   else
13869     case $cross_compiling:$ac_tool_warned in
13870 yes:)
13871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13872 whose name does not start with the host triplet.  If you think this
13873 configuration is useful to you, please write to autoconf@gnu.org." >&5
13874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13875 whose name does not start with the host triplet.  If you think this
13876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13877 ac_tool_warned=yes ;;
13878 esac
13879     STRIP=$ac_ct_STRIP
13880   fi
13881 else
13882   STRIP="$ac_cv_prog_STRIP"
13883 fi
13884
13885
13886 old_CC="$CC"
13887 old_CFLAGS="$CFLAGS"
13888
13889 # Set sane defaults for various variables
13890 test -z "$AR" && AR=ar
13891 test -z "$AR_FLAGS" && AR_FLAGS=cru
13892 test -z "$AS" && AS=as
13893 test -z "$CC" && CC=cc
13894 test -z "$LTCC" && LTCC=$CC
13895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13896 test -z "$DLLTOOL" && DLLTOOL=dlltool
13897 test -z "$LD" && LD=ld
13898 test -z "$LN_S" && LN_S="ln -s"
13899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13900 test -z "$NM" && NM=nm
13901 test -z "$SED" && SED=sed
13902 test -z "$OBJDUMP" && OBJDUMP=objdump
13903 test -z "$RANLIB" && RANLIB=:
13904 test -z "$STRIP" && STRIP=:
13905 test -z "$ac_objext" && ac_objext=o
13906
13907 # Determine commands to create old-style static archives.
13908 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13909 old_postinstall_cmds='chmod 644 $oldlib'
13910 old_postuninstall_cmds=
13911
13912 if test -n "$RANLIB"; then
13913   case $host_os in
13914   openbsd*)
13915     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13916     ;;
13917   *)
13918     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13919     ;;
13920   esac
13921   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13922 fi
13923
13924 for cc_temp in $compiler""; do
13925   case $cc_temp in
13926     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13927     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13928     \-*) ;;
13929     *) break;;
13930   esac
13931 done
13932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13933
13934
13935 # Only perform the check for file, if the check method requires it
13936 case $deplibs_check_method in
13937 file_magic*)
13938   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13939     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   case $MAGIC_CMD in
13945 [\\/*] |  ?:[\\/]*)
13946   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13947   ;;
13948 *)
13949   lt_save_MAGIC_CMD="$MAGIC_CMD"
13950   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13951   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13952   for ac_dir in $ac_dummy; do
13953     IFS="$lt_save_ifs"
13954     test -z "$ac_dir" && ac_dir=.
13955     if test -f $ac_dir/${ac_tool_prefix}file; then
13956       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13957       if test -n "$file_magic_test_file"; then
13958         case $deplibs_check_method in
13959         "file_magic "*)
13960           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13961           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13962           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13963             $EGREP "$file_magic_regex" > /dev/null; then
13964             :
13965           else
13966             cat <<EOF 1>&2
13967
13968 *** Warning: the command libtool uses to detect shared libraries,
13969 *** $file_magic_cmd, produces output that libtool cannot recognize.
13970 *** The result is that libtool may fail to recognize shared libraries
13971 *** as such.  This will affect the creation of libtool libraries that
13972 *** depend on shared libraries, but programs linked with such libtool
13973 *** libraries will work regardless of this problem.  Nevertheless, you
13974 *** may want to report the problem to your system manager and/or to
13975 *** bug-libtool@gnu.org
13976
13977 EOF
13978           fi ;;
13979         esac
13980       fi
13981       break
13982     fi
13983   done
13984   IFS="$lt_save_ifs"
13985   MAGIC_CMD="$lt_save_MAGIC_CMD"
13986   ;;
13987 esac
13988 fi
13989
13990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if test -n "$MAGIC_CMD"; then
13992   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13993 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13994 else
13995   { echo "$as_me:$LINENO: result: no" >&5
13996 echo "${ECHO_T}no" >&6; }
13997 fi
13998
13999 if test -z "$lt_cv_path_MAGIC_CMD"; then
14000   if test -n "$ac_tool_prefix"; then
14001     { echo "$as_me:$LINENO: checking for file" >&5
14002 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   case $MAGIC_CMD in
14007 [\\/*] |  ?:[\\/]*)
14008   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14009   ;;
14010 *)
14011   lt_save_MAGIC_CMD="$MAGIC_CMD"
14012   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14013   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14014   for ac_dir in $ac_dummy; do
14015     IFS="$lt_save_ifs"
14016     test -z "$ac_dir" && ac_dir=.
14017     if test -f $ac_dir/file; then
14018       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14019       if test -n "$file_magic_test_file"; then
14020         case $deplibs_check_method in
14021         "file_magic "*)
14022           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14023           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14025             $EGREP "$file_magic_regex" > /dev/null; then
14026             :
14027           else
14028             cat <<EOF 1>&2
14029
14030 *** Warning: the command libtool uses to detect shared libraries,
14031 *** $file_magic_cmd, produces output that libtool cannot recognize.
14032 *** The result is that libtool may fail to recognize shared libraries
14033 *** as such.  This will affect the creation of libtool libraries that
14034 *** depend on shared libraries, but programs linked with such libtool
14035 *** libraries will work regardless of this problem.  Nevertheless, you
14036 *** may want to report the problem to your system manager and/or to
14037 *** bug-libtool@gnu.org
14038
14039 EOF
14040           fi ;;
14041         esac
14042       fi
14043       break
14044     fi
14045   done
14046   IFS="$lt_save_ifs"
14047   MAGIC_CMD="$lt_save_MAGIC_CMD"
14048   ;;
14049 esac
14050 fi
14051
14052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053 if test -n "$MAGIC_CMD"; then
14054   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14055 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14056 else
14057   { echo "$as_me:$LINENO: result: no" >&5
14058 echo "${ECHO_T}no" >&6; }
14059 fi
14060
14061   else
14062     MAGIC_CMD=:
14063   fi
14064 fi
14065
14066   fi
14067   ;;
14068 esac
14069
14070 enable_dlopen=yes
14071 enable_win32_dll=no
14072
14073 # Check whether --enable-libtool-lock was given.
14074 if test "${enable_libtool_lock+set}" = set; then
14075   enableval=$enable_libtool_lock;
14076 fi
14077
14078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14079
14080
14081 # Check whether --with-pic was given.
14082 if test "${with_pic+set}" = set; then
14083   withval=$with_pic; pic_mode="$withval"
14084 else
14085   pic_mode=default
14086 fi
14087
14088 test -z "$pic_mode" && pic_mode=default
14089
14090 # Use C for the default configuration in the libtool script
14091 tagname=
14092 lt_save_CC="$CC"
14093 ac_ext=c
14094 ac_cpp='$CPP $CPPFLAGS'
14095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14098
14099
14100 # Source file extension for C test sources.
14101 ac_ext=c
14102
14103 # Object file extension for compiled C test sources.
14104 objext=o
14105 objext=$objext
14106
14107 # Code to be used in simple compile tests
14108 lt_simple_compile_test_code="int some_variable = 0;\n"
14109
14110 # Code to be used in simple link tests
14111 lt_simple_link_test_code='int main(){return(0);}\n'
14112
14113
14114 # If no C compiler was specified, use CC.
14115 LTCC=${LTCC-"$CC"}
14116
14117 # If no C compiler flags were specified, use CFLAGS.
14118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14119
14120 # Allow CC to be a program name with arguments.
14121 compiler=$CC
14122
14123
14124 # save warnings/boilerplate of simple test code
14125 ac_outfile=conftest.$ac_objext
14126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14128 _lt_compiler_boilerplate=`cat conftest.err`
14129 $rm conftest*
14130
14131 ac_outfile=conftest.$ac_objext
14132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14134 _lt_linker_boilerplate=`cat conftest.err`
14135 $rm conftest*
14136
14137
14138
14139 lt_prog_compiler_no_builtin_flag=
14140
14141 if test "$GCC" = yes; then
14142   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14143
14144
14145 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14146 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14147 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   lt_cv_prog_compiler_rtti_exceptions=no
14151   ac_outfile=conftest.$ac_objext
14152    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153    lt_compiler_flag="-fno-rtti -fno-exceptions"
14154    # Insert the option either (1) after the last *FLAGS variable, or
14155    # (2) before a word containing "conftest.", or (3) at the end.
14156    # Note that $ac_compile itself does not contain backslashes and begins
14157    # with a dollar sign (not a hyphen), so the echo should work correctly.
14158    # The option is referenced via a variable to avoid confusing sed.
14159    lt_compile=`echo "$ac_compile" | $SED \
14160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162    -e 's:$: $lt_compiler_flag:'`
14163    (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
14164    (eval "$lt_compile" 2>conftest.err)
14165    ac_status=$?
14166    cat conftest.err >&5
14167    echo "$as_me:14167: \$? = $ac_status" >&5
14168    if (exit $ac_status) && test -s "$ac_outfile"; then
14169      # The compiler can only warn and ignore the option if not recognized
14170      # So say no if there are warnings other than the usual output.
14171      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14172      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14174        lt_cv_prog_compiler_rtti_exceptions=yes
14175      fi
14176    fi
14177    $rm conftest*
14178
14179 fi
14180 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14181 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14182
14183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14184     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14185 else
14186     :
14187 fi
14188
14189 fi
14190
14191 lt_prog_compiler_wl=
14192 lt_prog_compiler_pic=
14193 lt_prog_compiler_static=
14194
14195 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14197
14198   if test "$GCC" = yes; then
14199     lt_prog_compiler_wl='-Wl,'
14200     lt_prog_compiler_static='-static'
14201
14202     case $host_os in
14203       aix*)
14204       # All AIX code is PIC.
14205       if test "$host_cpu" = ia64; then
14206         # AIX 5 now supports IA64 processor
14207         lt_prog_compiler_static='-Bstatic'
14208       fi
14209       ;;
14210
14211     amigaos*)
14212       # FIXME: we need at least 68020 code to build shared libraries, but
14213       # adding the `-m68020' flag to GCC prevents building anything better,
14214       # like `-m68040'.
14215       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14216       ;;
14217
14218     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14219       # PIC is the default for these OSes.
14220       ;;
14221
14222     mingw* | pw32* | os2*)
14223       # This hack is so that the source file can tell whether it is being
14224       # built for inclusion in a dll (and should export symbols for example).
14225       lt_prog_compiler_pic='-DDLL_EXPORT'
14226       ;;
14227
14228     darwin* | rhapsody*)
14229       # PIC is the default on this platform
14230       # Common symbols not allowed in MH_DYLIB files
14231       lt_prog_compiler_pic='-fno-common'
14232       ;;
14233
14234     interix3*)
14235       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236       # Instead, we relocate shared libraries at runtime.
14237       ;;
14238
14239     msdosdjgpp*)
14240       # Just because we use GCC doesn't mean we suddenly get shared libraries
14241       # on systems that don't support them.
14242       lt_prog_compiler_can_build_shared=no
14243       enable_shared=no
14244       ;;
14245
14246     sysv4*MP*)
14247       if test -d /usr/nec; then
14248         lt_prog_compiler_pic=-Kconform_pic
14249       fi
14250       ;;
14251
14252     hpux*)
14253       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14254       # not for PA HP-UX.
14255       case $host_cpu in
14256       hppa*64*|ia64*)
14257         # +Z the default
14258         ;;
14259       *)
14260         lt_prog_compiler_pic='-fPIC'
14261         ;;
14262       esac
14263       ;;
14264
14265     *)
14266       lt_prog_compiler_pic='-fPIC'
14267       ;;
14268     esac
14269   else
14270     # PORTME Check for flag to pass linker flags through the system compiler.
14271     case $host_os in
14272     aix*)
14273       lt_prog_compiler_wl='-Wl,'
14274       if test "$host_cpu" = ia64; then
14275         # AIX 5 now supports IA64 processor
14276         lt_prog_compiler_static='-Bstatic'
14277       else
14278         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14279       fi
14280       ;;
14281       darwin*)
14282         # PIC is the default on this platform
14283         # Common symbols not allowed in MH_DYLIB files
14284        case $cc_basename in
14285          xlc*)
14286          lt_prog_compiler_pic='-qnocommon'
14287          lt_prog_compiler_wl='-Wl,'
14288          ;;
14289        esac
14290        ;;
14291
14292     mingw* | pw32* | os2*)
14293       # This hack is so that the source file can tell whether it is being
14294       # built for inclusion in a dll (and should export symbols for example).
14295       lt_prog_compiler_pic='-DDLL_EXPORT'
14296       ;;
14297
14298     hpux9* | hpux10* | hpux11*)
14299       lt_prog_compiler_wl='-Wl,'
14300       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14301       # not for PA HP-UX.
14302       case $host_cpu in
14303       hppa*64*|ia64*)
14304         # +Z the default
14305         ;;
14306       *)
14307         lt_prog_compiler_pic='+Z'
14308         ;;
14309       esac
14310       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14311       lt_prog_compiler_static='${wl}-a ${wl}archive'
14312       ;;
14313
14314     irix5* | irix6* | nonstopux*)
14315       lt_prog_compiler_wl='-Wl,'
14316       # PIC (with -KPIC) is the default.
14317       lt_prog_compiler_static='-non_shared'
14318       ;;
14319
14320     newsos6)
14321       lt_prog_compiler_pic='-KPIC'
14322       lt_prog_compiler_static='-Bstatic'
14323       ;;
14324
14325     linux*)
14326       case $cc_basename in
14327       icc* | ecc*)
14328         lt_prog_compiler_wl='-Wl,'
14329         lt_prog_compiler_pic='-KPIC'
14330         lt_prog_compiler_static='-static'
14331         ;;
14332       pgcc* | pgf77* | pgf90* | pgf95*)
14333         # Portland Group compilers (*not* the Pentium gcc compiler,
14334         # which looks to be a dead project)
14335         lt_prog_compiler_wl='-Wl,'
14336         lt_prog_compiler_pic='-fpic'
14337         lt_prog_compiler_static='-Bstatic'
14338         ;;
14339       ccc*)
14340         lt_prog_compiler_wl='-Wl,'
14341         # All Alpha code is PIC.
14342         lt_prog_compiler_static='-non_shared'
14343         ;;
14344       esac
14345       ;;
14346
14347     osf3* | osf4* | osf5*)
14348       lt_prog_compiler_wl='-Wl,'
14349       # All OSF/1 code is PIC.
14350       lt_prog_compiler_static='-non_shared'
14351       ;;
14352
14353     solaris*)
14354       lt_prog_compiler_pic='-KPIC'
14355       lt_prog_compiler_static='-Bstatic'
14356       case $cc_basename in
14357       f77* | f90* | f95*)
14358         lt_prog_compiler_wl='-Qoption ld ';;
14359       *)
14360         lt_prog_compiler_wl='-Wl,';;
14361       esac
14362       ;;
14363
14364     sunos4*)
14365       lt_prog_compiler_wl='-Qoption ld '
14366       lt_prog_compiler_pic='-PIC'
14367       lt_prog_compiler_static='-Bstatic'
14368       ;;
14369
14370     sysv4 | sysv4.2uw2* | sysv4.3*)
14371       lt_prog_compiler_wl='-Wl,'
14372       lt_prog_compiler_pic='-KPIC'
14373       lt_prog_compiler_static='-Bstatic'
14374       ;;
14375
14376     sysv4*MP*)
14377       if test -d /usr/nec ;then
14378         lt_prog_compiler_pic='-Kconform_pic'
14379         lt_prog_compiler_static='-Bstatic'
14380       fi
14381       ;;
14382
14383     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14384       lt_prog_compiler_wl='-Wl,'
14385       lt_prog_compiler_pic='-KPIC'
14386       lt_prog_compiler_static='-Bstatic'
14387       ;;
14388
14389     unicos*)
14390       lt_prog_compiler_wl='-Wl,'
14391       lt_prog_compiler_can_build_shared=no
14392       ;;
14393
14394     uts4*)
14395       lt_prog_compiler_pic='-pic'
14396       lt_prog_compiler_static='-Bstatic'
14397       ;;
14398
14399     *)
14400       lt_prog_compiler_can_build_shared=no
14401       ;;
14402     esac
14403   fi
14404
14405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14406 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14407
14408 #
14409 # Check to make sure the PIC flag actually works.
14410 #
14411 if test -n "$lt_prog_compiler_pic"; then
14412
14413 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14414 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14415 if test "${lt_prog_compiler_pic_works+set}" = set; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   lt_prog_compiler_pic_works=no
14419   ac_outfile=conftest.$ac_objext
14420    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14421    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14422    # Insert the option either (1) after the last *FLAGS variable, or
14423    # (2) before a word containing "conftest.", or (3) at the end.
14424    # Note that $ac_compile itself does not contain backslashes and begins
14425    # with a dollar sign (not a hyphen), so the echo should work correctly.
14426    # The option is referenced via a variable to avoid confusing sed.
14427    lt_compile=`echo "$ac_compile" | $SED \
14428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430    -e 's:$: $lt_compiler_flag:'`
14431    (eval echo "\"\$as_me:14431: $lt_compile\"" >&5)
14432    (eval "$lt_compile" 2>conftest.err)
14433    ac_status=$?
14434    cat conftest.err >&5
14435    echo "$as_me:14435: \$? = $ac_status" >&5
14436    if (exit $ac_status) && test -s "$ac_outfile"; then
14437      # The compiler can only warn and ignore the option if not recognized
14438      # So say no if there are warnings other than the usual output.
14439      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14440      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14442        lt_prog_compiler_pic_works=yes
14443      fi
14444    fi
14445    $rm conftest*
14446
14447 fi
14448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14449 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14450
14451 if test x"$lt_prog_compiler_pic_works" = xyes; then
14452     case $lt_prog_compiler_pic in
14453      "" | " "*) ;;
14454      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14455      esac
14456 else
14457     lt_prog_compiler_pic=
14458      lt_prog_compiler_can_build_shared=no
14459 fi
14460
14461 fi
14462 case $host_os in
14463   # For platforms which do not support PIC, -DPIC is meaningless:
14464   *djgpp*)
14465     lt_prog_compiler_pic=
14466     ;;
14467   *)
14468     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14469     ;;
14470 esac
14471
14472 #
14473 # Check to make sure the static flag actually works.
14474 #
14475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14476 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14477 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14478 if test "${lt_prog_compiler_static_works+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   lt_prog_compiler_static_works=no
14482    save_LDFLAGS="$LDFLAGS"
14483    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14484    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14485    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14486      # The linker can only warn and ignore the option if not recognized
14487      # So say no if there are warnings
14488      if test -s conftest.err; then
14489        # Append any errors to the config.log.
14490        cat conftest.err 1>&5
14491        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14492        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14493        if diff conftest.exp conftest.er2 >/dev/null; then
14494          lt_prog_compiler_static_works=yes
14495        fi
14496      else
14497        lt_prog_compiler_static_works=yes
14498      fi
14499    fi
14500    $rm conftest*
14501    LDFLAGS="$save_LDFLAGS"
14502
14503 fi
14504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14505 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14506
14507 if test x"$lt_prog_compiler_static_works" = xyes; then
14508     :
14509 else
14510     lt_prog_compiler_static=
14511 fi
14512
14513
14514 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   lt_cv_prog_compiler_c_o=no
14520    $rm -r conftest 2>/dev/null
14521    mkdir conftest
14522    cd conftest
14523    mkdir out
14524    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14525
14526    lt_compiler_flag="-o out/conftest2.$ac_objext"
14527    # Insert the option either (1) after the last *FLAGS variable, or
14528    # (2) before a word containing "conftest.", or (3) at the end.
14529    # Note that $ac_compile itself does not contain backslashes and begins
14530    # with a dollar sign (not a hyphen), so the echo should work correctly.
14531    lt_compile=`echo "$ac_compile" | $SED \
14532    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14534    -e 's:$: $lt_compiler_flag:'`
14535    (eval echo "\"\$as_me:14535: $lt_compile\"" >&5)
14536    (eval "$lt_compile" 2>out/conftest.err)
14537    ac_status=$?
14538    cat out/conftest.err >&5
14539    echo "$as_me:14539: \$? = $ac_status" >&5
14540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14541    then
14542      # The compiler can only warn and ignore the option if not recognized
14543      # So say no if there are warnings
14544      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14545      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14546      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14547        lt_cv_prog_compiler_c_o=yes
14548      fi
14549    fi
14550    chmod u+w . 2>&5
14551    $rm conftest*
14552    # SGI C++ compiler will create directory out/ii_files/ for
14553    # template instantiation
14554    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14555    $rm out/* && rmdir out
14556    cd ..
14557    rmdir conftest
14558    $rm conftest*
14559
14560 fi
14561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14562 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14563
14564
14565 hard_links="nottested"
14566 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14567   # do not overwrite the value of need_locks provided by the user
14568   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14569 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14570   hard_links=yes
14571   $rm conftest*
14572   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14573   touch conftest.a
14574   ln conftest.a conftest.b 2>&5 || hard_links=no
14575   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576   { echo "$as_me:$LINENO: result: $hard_links" >&5
14577 echo "${ECHO_T}$hard_links" >&6; }
14578   if test "$hard_links" = no; then
14579     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14581     need_locks=warn
14582   fi
14583 else
14584   need_locks=no
14585 fi
14586
14587 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14588 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14589
14590   runpath_var=
14591   allow_undefined_flag=
14592   enable_shared_with_static_runtimes=no
14593   archive_cmds=
14594   archive_expsym_cmds=
14595   old_archive_From_new_cmds=
14596   old_archive_from_expsyms_cmds=
14597   export_dynamic_flag_spec=
14598   whole_archive_flag_spec=
14599   thread_safe_flag_spec=
14600   hardcode_libdir_flag_spec=
14601   hardcode_libdir_flag_spec_ld=
14602   hardcode_libdir_separator=
14603   hardcode_direct=no
14604   hardcode_minus_L=no
14605   hardcode_shlibpath_var=unsupported
14606   link_all_deplibs=unknown
14607   hardcode_automatic=no
14608   module_cmds=
14609   module_expsym_cmds=
14610   always_export_symbols=no
14611   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14612   # include_expsyms should be a list of space-separated symbols to be *always*
14613   # included in the symbol list
14614   include_expsyms=
14615   # exclude_expsyms can be an extended regexp of symbols to exclude
14616   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14617   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14618   # as well as any symbol that contains `d'.
14619   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14620   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14621   # platforms (ab)use it in PIC code, but their linkers get confused if
14622   # the symbol is explicitly referenced.  Since portable code cannot
14623   # rely on this symbol name, it's probably fine to never include it in
14624   # preloaded symbol tables.
14625   extract_expsyms_cmds=
14626   # Just being paranoid about ensuring that cc_basename is set.
14627   for cc_temp in $compiler""; do
14628   case $cc_temp in
14629     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14631     \-*) ;;
14632     *) break;;
14633   esac
14634 done
14635 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14636
14637   case $host_os in
14638   cygwin* | mingw* | pw32*)
14639     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14640     # When not using gcc, we currently assume that we are using
14641     # Microsoft Visual C++.
14642     if test "$GCC" != yes; then
14643       with_gnu_ld=no
14644     fi
14645     ;;
14646   interix*)
14647     # we just hope/assume this is gcc and not c89 (= MSVC++)
14648     with_gnu_ld=yes
14649     ;;
14650   openbsd*)
14651     with_gnu_ld=no
14652     ;;
14653   esac
14654
14655   ld_shlibs=yes
14656   if test "$with_gnu_ld" = yes; then
14657     # If archive_cmds runs LD, not CC, wlarc should be empty
14658     wlarc='${wl}'
14659
14660     # Set some defaults for GNU ld with shared library support. These
14661     # are reset later if shared libraries are not supported. Putting them
14662     # here allows them to be overridden if necessary.
14663     runpath_var=LD_RUN_PATH
14664     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14665     export_dynamic_flag_spec='${wl}--export-dynamic'
14666     # ancient GNU ld didn't support --whole-archive et. al.
14667     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14668         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14669       else
14670         whole_archive_flag_spec=
14671     fi
14672     supports_anon_versioning=no
14673     case `$LD -v 2>/dev/null` in
14674       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14675       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14676       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14677       *\ 2.11.*) ;; # other 2.11 versions
14678       *) supports_anon_versioning=yes ;;
14679     esac
14680
14681     # See if GNU ld supports shared libraries.
14682     case $host_os in
14683     aix3* | aix4* | aix5*)
14684       # On AIX/PPC, the GNU linker is very broken
14685       if test "$host_cpu" != ia64; then
14686         ld_shlibs=no
14687         cat <<EOF 1>&2
14688
14689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14690 *** to be unable to reliably create shared libraries on AIX.
14691 *** Therefore, libtool is disabling shared libraries support.  If you
14692 *** really care for shared libraries, you may want to modify your PATH
14693 *** so that a non-GNU linker is found, and then restart.
14694
14695 EOF
14696       fi
14697       ;;
14698
14699     amigaos*)
14700       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)'
14701       hardcode_libdir_flag_spec='-L$libdir'
14702       hardcode_minus_L=yes
14703
14704       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14705       # that the semantics of dynamic libraries on AmigaOS, at least up
14706       # to version 4, is to share data among multiple programs linked
14707       # with the same dynamic library.  Since this doesn't match the
14708       # behavior of shared libraries on other platforms, we can't use
14709       # them.
14710       ld_shlibs=no
14711       ;;
14712
14713     beos*)
14714       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715         allow_undefined_flag=unsupported
14716         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14717         # support --undefined.  This deserves some investigation.  FIXME
14718         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14719       else
14720         ld_shlibs=no
14721       fi
14722       ;;
14723
14724     cygwin* | mingw* | pw32*)
14725       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14726       # as there is no search path for DLLs.
14727       hardcode_libdir_flag_spec='-L$libdir'
14728       allow_undefined_flag=unsupported
14729       always_export_symbols=no
14730       enable_shared_with_static_runtimes=yes
14731       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14732
14733       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14735         # If the export-symbols file already is a .def file (1st line
14736         # is EXPORTS), use it as is; otherwise, prepend...
14737         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14738           cp $export_symbols $output_objdir/$soname.def;
14739         else
14740           echo EXPORTS > $output_objdir/$soname.def;
14741           cat $export_symbols >> $output_objdir/$soname.def;
14742         fi~
14743         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14744       else
14745         ld_shlibs=no
14746       fi
14747       ;;
14748
14749     interix3*)
14750       hardcode_direct=no
14751       hardcode_shlibpath_var=no
14752       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14753       export_dynamic_flag_spec='${wl}-E'
14754       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14755       # Instead, shared libraries are loaded at an image base (0x10000000 by
14756       # default) and relocated if they conflict, which is a slow very memory
14757       # consuming and fragmenting process.  To avoid this, we pick a random,
14758       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14759       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14760       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14761       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'
14762       ;;
14763
14764     linux*)
14765       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14766         tmp_addflag=
14767         case $cc_basename,$host_cpu in
14768         pgcc*)                          # Portland Group C compiler
14769           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'
14770           tmp_addflag=' $pic_flag'
14771           ;;
14772         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14773           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'
14774           tmp_addflag=' $pic_flag -Mnomain' ;;
14775         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14776           tmp_addflag=' -i_dynamic' ;;
14777         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14778           tmp_addflag=' -i_dynamic -nofor_main' ;;
14779         ifc* | ifort*)                  # Intel Fortran compiler
14780           tmp_addflag=' -nofor_main' ;;
14781         esac
14782         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783
14784         if test $supports_anon_versioning = yes; then
14785           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14786   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14787   $echo "local: *; };" >> $output_objdir/$libname.ver~
14788           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14789         fi
14790       else
14791         ld_shlibs=no
14792       fi
14793       ;;
14794
14795     netbsd*)
14796       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14797         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14798         wlarc=
14799       else
14800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14802       fi
14803       ;;
14804
14805     solaris*)
14806       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14807         ld_shlibs=no
14808         cat <<EOF 1>&2
14809
14810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14811 *** create shared libraries on Solaris systems.  Therefore, libtool
14812 *** is disabling shared libraries support.  We urge you to upgrade GNU
14813 *** binutils to release 2.9.1 or newer.  Another option is to modify
14814 *** your PATH or compiler configuration so that the native linker is
14815 *** used, and then restart.
14816
14817 EOF
14818       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14821       else
14822         ld_shlibs=no
14823       fi
14824       ;;
14825
14826     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14827       case `$LD -v 2>&1` in
14828         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14829         ld_shlibs=no
14830         cat <<_LT_EOF 1>&2
14831
14832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14833 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14834 *** is disabling shared libraries support.  We urge you to upgrade GNU
14835 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14836 *** your PATH or compiler configuration so that the native linker is
14837 *** used, and then restart.
14838
14839 _LT_EOF
14840         ;;
14841         *)
14842           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14844             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14845             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14846           else
14847             ld_shlibs=no
14848           fi
14849         ;;
14850       esac
14851       ;;
14852
14853     sunos4*)
14854       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14855       wlarc=
14856       hardcode_direct=yes
14857       hardcode_shlibpath_var=no
14858       ;;
14859
14860     *)
14861       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14864       else
14865         ld_shlibs=no
14866       fi
14867       ;;
14868     esac
14869
14870     if test "$ld_shlibs" = no; then
14871       runpath_var=
14872       hardcode_libdir_flag_spec=
14873       export_dynamic_flag_spec=
14874       whole_archive_flag_spec=
14875     fi
14876   else
14877     # PORTME fill in a description of your system's linker (not GNU ld)
14878     case $host_os in
14879     aix3*)
14880       allow_undefined_flag=unsupported
14881       always_export_symbols=yes
14882       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'
14883       # Note: this linker hardcodes the directories in LIBPATH if there
14884       # are no directories specified by -L.
14885       hardcode_minus_L=yes
14886       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14887         # Neither direct hardcoding nor static linking is supported with a
14888         # broken collect2.
14889         hardcode_direct=unsupported
14890       fi
14891       ;;
14892
14893     aix4* | aix5*)
14894       if test "$host_cpu" = ia64; then
14895         # On IA64, the linker does run time linking by default, so we don't
14896         # have to do anything special.
14897         aix_use_runtimelinking=no
14898         exp_sym_flag='-Bexport'
14899         no_entry_flag=""
14900       else
14901         # If we're using GNU nm, then we don't want the "-C" option.
14902         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14903         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14904           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'
14905         else
14906           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'
14907         fi
14908         aix_use_runtimelinking=no
14909
14910         # Test if we are trying to use run time linking or normal
14911         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14912         # need to do runtime linking.
14913         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14914           for ld_flag in $LDFLAGS; do
14915           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14916             aix_use_runtimelinking=yes
14917             break
14918           fi
14919           done
14920           ;;
14921         esac
14922
14923         exp_sym_flag='-bexport'
14924         no_entry_flag='-bnoentry'
14925       fi
14926
14927       # When large executables or shared objects are built, AIX ld can
14928       # have problems creating the table of contents.  If linking a library
14929       # or program results in "error TOC overflow" add -mminimal-toc to
14930       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14931       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14932
14933       archive_cmds=''
14934       hardcode_direct=yes
14935       hardcode_libdir_separator=':'
14936       link_all_deplibs=yes
14937
14938       if test "$GCC" = yes; then
14939         case $host_os in aix4.[012]|aix4.[012].*)
14940         # We only want to do this on AIX 4.2 and lower, the check
14941         # below for broken collect2 doesn't work under 4.3+
14942           collect2name=`${CC} -print-prog-name=collect2`
14943           if test -f "$collect2name" && \
14944            strings "$collect2name" | grep resolve_lib_name >/dev/null
14945           then
14946           # We have reworked collect2
14947           hardcode_direct=yes
14948           else
14949           # We have old collect2
14950           hardcode_direct=unsupported
14951           # It fails to find uninstalled libraries when the uninstalled
14952           # path is not listed in the libpath.  Setting hardcode_minus_L
14953           # to unsupported forces relinking
14954           hardcode_minus_L=yes
14955           hardcode_libdir_flag_spec='-L$libdir'
14956           hardcode_libdir_separator=
14957           fi
14958           ;;
14959         esac
14960         shared_flag='-shared'
14961         if test "$aix_use_runtimelinking" = yes; then
14962           shared_flag="$shared_flag "'${wl}-G'
14963         fi
14964       else
14965         # not using gcc
14966         if test "$host_cpu" = ia64; then
14967         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14968         # chokes on -Wl,-G. The following line is correct:
14969           shared_flag='-G'
14970         else
14971           if test "$aix_use_runtimelinking" = yes; then
14972             shared_flag='${wl}-G'
14973           else
14974             shared_flag='${wl}-bM:SRE'
14975           fi
14976         fi
14977       fi
14978
14979       # It seems that -bexpall does not export symbols beginning with
14980       # underscore (_), so it is better to generate a list of symbols to export.
14981       always_export_symbols=yes
14982       if test "$aix_use_runtimelinking" = yes; then
14983         # Warning - without using the other runtime loading flags (-brtl),
14984         # -berok will link without error, but may produce a broken library.
14985         allow_undefined_flag='-berok'
14986        # Determine the default libpath from the value encoded in an empty executable.
14987        cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993
14994 int
14995 main ()
14996 {
14997
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_link") 2>conftest.er1
15010   ac_status=$?
15011   grep -v '^ *+' conftest.er1 >conftest.err
15012   rm -f conftest.er1
15013   cat conftest.err >&5
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } &&
15016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15017   { (case "(($ac_try" in
15018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019   *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022   (eval "$ac_try") 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; } &&
15026          { ac_try='test -s conftest$ac_exeext'
15027   { (case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032   (eval "$ac_try") 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; }; then
15036
15037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15038 }'`
15039 # Check for a 64-bit object if we didn't find anything.
15040 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; }
15041 }'`; fi
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046
15047 fi
15048
15049 rm -f core conftest.err conftest.$ac_objext \
15050       conftest$ac_exeext conftest.$ac_ext
15051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15052
15053        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15054         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"
15055        else
15056         if test "$host_cpu" = ia64; then
15057           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15058           allow_undefined_flag="-z nodefs"
15059           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"
15060         else
15061          # Determine the default libpath from the value encoded in an empty executable.
15062          cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068
15069 int
15070 main ()
15071 {
15072
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084   (eval "$ac_link") 2>conftest.er1
15085   ac_status=$?
15086   grep -v '^ *+' conftest.er1 >conftest.err
15087   rm -f conftest.er1
15088   cat conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); } &&
15091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092   { (case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_try") 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; } &&
15101          { ac_try='test -s conftest$ac_exeext'
15102   { (case "(($ac_try" in
15103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104   *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107   (eval "$ac_try") 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; }; then
15111
15112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15113 }'`
15114 # Check for a 64-bit object if we didn't find anything.
15115 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; }
15116 }'`; fi
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext \
15125       conftest$ac_exeext conftest.$ac_ext
15126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15127
15128          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15129           # Warning - without using the other run time loading flags,
15130           # -berok will link without error, but may produce a broken library.
15131           no_undefined_flag=' ${wl}-bernotok'
15132           allow_undefined_flag=' ${wl}-berok'
15133           # Exported symbols can be pulled into shared objects from archives
15134           whole_archive_flag_spec='$convenience'
15135           archive_cmds_need_lc=yes
15136           # This is similar to how AIX traditionally builds its shared libraries.
15137           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'
15138         fi
15139       fi
15140       ;;
15141
15142     amigaos*)
15143       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)'
15144       hardcode_libdir_flag_spec='-L$libdir'
15145       hardcode_minus_L=yes
15146       # see comment about different semantics on the GNU ld section
15147       ld_shlibs=no
15148       ;;
15149
15150     bsdi[45]*)
15151       export_dynamic_flag_spec=-rdynamic
15152       ;;
15153
15154     cygwin* | mingw* | pw32*)
15155       # When not using gcc, we currently assume that we are using
15156       # Microsoft Visual C++.
15157       # hardcode_libdir_flag_spec is actually meaningless, as there is
15158       # no search path for DLLs.
15159       hardcode_libdir_flag_spec=' '
15160       allow_undefined_flag=unsupported
15161       # Tell ltmain to make .lib files, not .a files.
15162       libext=lib
15163       # Tell ltmain to make .dll files, not .so files.
15164       shrext_cmds=".dll"
15165       # FIXME: Setting linknames here is a bad hack.
15166       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15167       # The linker will automatically build a .lib file if we build a DLL.
15168       old_archive_From_new_cmds='true'
15169       # FIXME: Should let the user specify the lib program.
15170       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15171       fix_srcfile_path='`cygpath -w "$srcfile"`'
15172       enable_shared_with_static_runtimes=yes
15173       ;;
15174
15175     darwin* | rhapsody*)
15176       case $host_os in
15177         rhapsody* | darwin1.[012])
15178          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15179          ;;
15180        *) # Darwin 1.3 on
15181          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15182            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15183          else
15184            case ${MACOSX_DEPLOYMENT_TARGET} in
15185              10.[012])
15186                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15187                ;;
15188              10.*)
15189                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15190                ;;
15191            esac
15192          fi
15193          ;;
15194       esac
15195       archive_cmds_need_lc=no
15196       hardcode_direct=no
15197       hardcode_automatic=yes
15198       hardcode_shlibpath_var=unsupported
15199       whole_archive_flag_spec=''
15200       link_all_deplibs=yes
15201     if test "$GCC" = yes ; then
15202         output_verbose_link_cmd='echo'
15203         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15204       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15205       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15206       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}'
15207       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}'
15208     else
15209       case $cc_basename in
15210         xlc*)
15211          output_verbose_link_cmd='echo'
15212          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15213          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15214           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15215          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}'
15216           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}'
15217           ;;
15218        *)
15219          ld_shlibs=no
15220           ;;
15221       esac
15222     fi
15223       ;;
15224
15225     dgux*)
15226       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15227       hardcode_libdir_flag_spec='-L$libdir'
15228       hardcode_shlibpath_var=no
15229       ;;
15230
15231     freebsd1*)
15232       ld_shlibs=no
15233       ;;
15234
15235     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15236     # support.  Future versions do this automatically, but an explicit c++rt0.o
15237     # does not break anything, and helps significantly (at the cost of a little
15238     # extra space).
15239     freebsd2.2*)
15240       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15241       hardcode_libdir_flag_spec='-R$libdir'
15242       hardcode_direct=yes
15243       hardcode_shlibpath_var=no
15244       ;;
15245
15246     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15247     freebsd2*)
15248       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15249       hardcode_direct=yes
15250       hardcode_minus_L=yes
15251       hardcode_shlibpath_var=no
15252       ;;
15253
15254     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15255     freebsd* | kfreebsd*-gnu | dragonfly*)
15256       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15257       hardcode_libdir_flag_spec='-R$libdir'
15258       hardcode_direct=yes
15259       hardcode_shlibpath_var=no
15260       ;;
15261
15262     hpux9*)
15263       if test "$GCC" = yes; then
15264         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'
15265       else
15266         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'
15267       fi
15268       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269       hardcode_libdir_separator=:
15270       hardcode_direct=yes
15271
15272       # hardcode_minus_L: Not really in the search PATH,
15273       # but as the default location of the library.
15274       hardcode_minus_L=yes
15275       export_dynamic_flag_spec='${wl}-E'
15276       ;;
15277
15278     hpux10*)
15279       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15280         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15281       else
15282         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15283       fi
15284       if test "$with_gnu_ld" = no; then
15285         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15286         hardcode_libdir_separator=:
15287
15288         hardcode_direct=yes
15289         export_dynamic_flag_spec='${wl}-E'
15290
15291         # hardcode_minus_L: Not really in the search PATH,
15292         # but as the default location of the library.
15293         hardcode_minus_L=yes
15294       fi
15295       ;;
15296
15297     hpux11*)
15298       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15299         case $host_cpu in
15300         hppa*64*)
15301           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15302           ;;
15303         ia64*)
15304           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15305           ;;
15306         *)
15307           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15308           ;;
15309         esac
15310       else
15311         case $host_cpu in
15312         hppa*64*)
15313           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15314           ;;
15315         ia64*)
15316           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15317           ;;
15318         *)
15319           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15320           ;;
15321         esac
15322       fi
15323       if test "$with_gnu_ld" = no; then
15324         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15325         hardcode_libdir_separator=:
15326
15327         case $host_cpu in
15328         hppa*64*|ia64*)
15329           hardcode_libdir_flag_spec_ld='+b $libdir'
15330           hardcode_direct=no
15331           hardcode_shlibpath_var=no
15332           ;;
15333         *)
15334           hardcode_direct=yes
15335           export_dynamic_flag_spec='${wl}-E'
15336
15337           # hardcode_minus_L: Not really in the search PATH,
15338           # but as the default location of the library.
15339           hardcode_minus_L=yes
15340           ;;
15341         esac
15342       fi
15343       ;;
15344
15345     irix5* | irix6* | nonstopux*)
15346       if test "$GCC" = yes; then
15347         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'
15348       else
15349         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'
15350         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15351       fi
15352       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15353       hardcode_libdir_separator=:
15354       link_all_deplibs=yes
15355       ;;
15356
15357     netbsd*)
15358       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15359         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15360       else
15361         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15362       fi
15363       hardcode_libdir_flag_spec='-R$libdir'
15364       hardcode_direct=yes
15365       hardcode_shlibpath_var=no
15366       ;;
15367
15368     newsos6)
15369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370       hardcode_direct=yes
15371       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15372       hardcode_libdir_separator=:
15373       hardcode_shlibpath_var=no
15374       ;;
15375
15376     openbsd*)
15377       hardcode_direct=yes
15378       hardcode_shlibpath_var=no
15379       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15380         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15381         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15382         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15383         export_dynamic_flag_spec='${wl}-E'
15384       else
15385        case $host_os in
15386          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15387            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15388            hardcode_libdir_flag_spec='-R$libdir'
15389            ;;
15390          *)
15391            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15392            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15393            ;;
15394        esac
15395       fi
15396       ;;
15397
15398     os2*)
15399       hardcode_libdir_flag_spec='-L$libdir'
15400       hardcode_minus_L=yes
15401       allow_undefined_flag=unsupported
15402       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'
15403       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15404       ;;
15405
15406     osf3*)
15407       if test "$GCC" = yes; then
15408         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15409         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'
15410       else
15411         allow_undefined_flag=' -expect_unresolved \*'
15412         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'
15413       fi
15414       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15415       hardcode_libdir_separator=:
15416       ;;
15417
15418     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15419       if test "$GCC" = yes; then
15420         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15421         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'
15422         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15423       else
15424         allow_undefined_flag=' -expect_unresolved \*'
15425         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'
15426         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15427         $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'
15428
15429         # Both c and cxx compiler support -rpath directly
15430         hardcode_libdir_flag_spec='-rpath $libdir'
15431       fi
15432       hardcode_libdir_separator=:
15433       ;;
15434
15435     solaris*)
15436       no_undefined_flag=' -z text'
15437       if test "$GCC" = yes; then
15438         wlarc='${wl}'
15439         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15441           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15442       else
15443         wlarc=''
15444         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15446         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15447       fi
15448       hardcode_libdir_flag_spec='-R$libdir'
15449       hardcode_shlibpath_var=no
15450       case $host_os in
15451       solaris2.[0-5] | solaris2.[0-5].*) ;;
15452       *)
15453         # The compiler driver will combine linker options so we
15454         # cannot just pass the convience library names through
15455         # without $wl, iff we do not link with $LD.
15456         # Luckily, gcc supports the same syntax we need for Sun Studio.
15457         # Supported since Solaris 2.6 (maybe 2.5.1?)
15458         case $wlarc in
15459         '')
15460           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15461         *)
15462           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' ;;
15463         esac ;;
15464       esac
15465       link_all_deplibs=yes
15466       ;;
15467
15468     sunos4*)
15469       if test "x$host_vendor" = xsequent; then
15470         # Use $CC to link under sequent, because it throws in some extra .o
15471         # files that make .init and .fini sections work.
15472         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15473       else
15474         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15475       fi
15476       hardcode_libdir_flag_spec='-L$libdir'
15477       hardcode_direct=yes
15478       hardcode_minus_L=yes
15479       hardcode_shlibpath_var=no
15480       ;;
15481
15482     sysv4)
15483       case $host_vendor in
15484         sni)
15485           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486           hardcode_direct=yes # is this really true???
15487         ;;
15488         siemens)
15489           ## LD is ld it makes a PLAMLIB
15490           ## CC just makes a GrossModule.
15491           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15492           reload_cmds='$CC -r -o $output$reload_objs'
15493           hardcode_direct=no
15494         ;;
15495         motorola)
15496           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15498         ;;
15499       esac
15500       runpath_var='LD_RUN_PATH'
15501       hardcode_shlibpath_var=no
15502       ;;
15503
15504     sysv4.3*)
15505       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506       hardcode_shlibpath_var=no
15507       export_dynamic_flag_spec='-Bexport'
15508       ;;
15509
15510     sysv4*MP*)
15511       if test -d /usr/nec; then
15512         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513         hardcode_shlibpath_var=no
15514         runpath_var=LD_RUN_PATH
15515         hardcode_runpath_var=yes
15516         ld_shlibs=yes
15517       fi
15518       ;;
15519
15520     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15521       no_undefined_flag='${wl}-z,text'
15522       archive_cmds_need_lc=no
15523       hardcode_shlibpath_var=no
15524       runpath_var='LD_RUN_PATH'
15525
15526       if test "$GCC" = yes; then
15527         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15528         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529       else
15530         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15532       fi
15533       ;;
15534
15535     sysv5* | sco3.2v5* | sco5v6*)
15536       # Note: We can NOT use -z defs as we might desire, because we do not
15537       # link with -lc, and that would cause any symbols used from libc to
15538       # always be unresolved, which means just about no library would
15539       # ever link correctly.  If we're not using GNU ld we use -z text
15540       # though, which does catch some bad symbols but isn't as heavy-handed
15541       # as -z defs.
15542       no_undefined_flag='${wl}-z,text'
15543       allow_undefined_flag='${wl}-z,nodefs'
15544       archive_cmds_need_lc=no
15545       hardcode_shlibpath_var=no
15546       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15547       hardcode_libdir_separator=':'
15548       link_all_deplibs=yes
15549       export_dynamic_flag_spec='${wl}-Bexport'
15550       runpath_var='LD_RUN_PATH'
15551
15552       if test "$GCC" = yes; then
15553         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15554         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555       else
15556         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558       fi
15559       ;;
15560
15561     uts4*)
15562       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563       hardcode_libdir_flag_spec='-L$libdir'
15564       hardcode_shlibpath_var=no
15565       ;;
15566
15567     *)
15568       ld_shlibs=no
15569       ;;
15570     esac
15571   fi
15572
15573 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15574 echo "${ECHO_T}$ld_shlibs" >&6; }
15575 test "$ld_shlibs" = no && can_build_shared=no
15576
15577 #
15578 # Do we need to explicitly link libc?
15579 #
15580 case "x$archive_cmds_need_lc" in
15581 x|xyes)
15582   # Assume -lc should be added
15583   archive_cmds_need_lc=yes
15584
15585   if test "$enable_shared" = yes && test "$GCC" = yes; then
15586     case $archive_cmds in
15587     *'~'*)
15588       # FIXME: we may have to deal with multi-command sequences.
15589       ;;
15590     '$CC '*)
15591       # Test whether the compiler implicitly links with -lc since on some
15592       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15593       # to ld, don't add -lc before -lgcc.
15594       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15595 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15596       $rm conftest*
15597       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15598
15599       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600   (eval $ac_compile) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } 2>conftest.err; then
15604         soname=conftest
15605         lib=conftest
15606         libobjs=conftest.$ac_objext
15607         deplibs=
15608         wl=$lt_prog_compiler_wl
15609         pic_flag=$lt_prog_compiler_pic
15610         compiler_flags=-v
15611         linker_flags=-v
15612         verstring=
15613         output_objdir=.
15614         libname=conftest
15615         lt_save_allow_undefined_flag=$allow_undefined_flag
15616         allow_undefined_flag=
15617         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15618   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }
15622         then
15623           archive_cmds_need_lc=no
15624         else
15625           archive_cmds_need_lc=yes
15626         fi
15627         allow_undefined_flag=$lt_save_allow_undefined_flag
15628       else
15629         cat conftest.err 1>&5
15630       fi
15631       $rm conftest*
15632       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15633 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15634       ;;
15635     esac
15636   fi
15637   ;;
15638 esac
15639
15640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15642 library_names_spec=
15643 libname_spec='lib$name'
15644 soname_spec=
15645 shrext_cmds=".so"
15646 postinstall_cmds=
15647 postuninstall_cmds=
15648 finish_cmds=
15649 finish_eval=
15650 shlibpath_var=
15651 shlibpath_overrides_runpath=unknown
15652 version_type=none
15653 dynamic_linker="$host_os ld.so"
15654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15655 if test "$GCC" = yes; then
15656   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15658     # if the path contains ";" then we assume it to be the separator
15659     # otherwise default to the standard path separator (i.e. ":") - it is
15660     # assumed that no part of a normal pathname contains ";" but that should
15661     # okay in the real world where ";" in dirpaths is itself problematic.
15662     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15663   else
15664     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15665   fi
15666 else
15667   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15668 fi
15669 need_lib_prefix=unknown
15670 hardcode_into_libs=no
15671
15672 # when you set need_version to no, make sure it does not cause -set_version
15673 # flags to be left without arguments
15674 need_version=unknown
15675
15676 case $host_os in
15677 aix3*)
15678   version_type=linux
15679   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15680   shlibpath_var=LIBPATH
15681
15682   # AIX 3 has no versioning support, so we append a major version to the name.
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   ;;
15685
15686 aix4* | aix5*)
15687   version_type=linux
15688   need_lib_prefix=no
15689   need_version=no
15690   hardcode_into_libs=yes
15691   if test "$host_cpu" = ia64; then
15692     # AIX 5 supports IA64
15693     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15694     shlibpath_var=LD_LIBRARY_PATH
15695   else
15696     # With GCC up to 2.95.x, collect2 would create an import file
15697     # for dependence libraries.  The import file would start with
15698     # the line `#! .'.  This would cause the generated library to
15699     # depend on `.', always an invalid library.  This was fixed in
15700     # development snapshots of GCC prior to 3.0.
15701     case $host_os in
15702       aix4 | aix4.[01] | aix4.[01].*)
15703       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15704            echo ' yes '
15705            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15706         :
15707       else
15708         can_build_shared=no
15709       fi
15710       ;;
15711     esac
15712     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15713     # soname into executable. Probably we can add versioning support to
15714     # collect2, so additional links can be useful in future.
15715     if test "$aix_use_runtimelinking" = yes; then
15716       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15717       # instead of lib<name>.a to let people know that these are not
15718       # typical AIX shared libraries.
15719       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720     else
15721       # We preserve .a as extension for shared libraries through AIX4.2
15722       # and later when we are not doing run time linking.
15723       library_names_spec='${libname}${release}.a $libname.a'
15724       soname_spec='${libname}${release}${shared_ext}$major'
15725     fi
15726     shlibpath_var=LIBPATH
15727   fi
15728   ;;
15729
15730 amigaos*)
15731   library_names_spec='$libname.ixlibrary $libname.a'
15732   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15733   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'
15734   ;;
15735
15736 beos*)
15737   library_names_spec='${libname}${shared_ext}'
15738   dynamic_linker="$host_os ld.so"
15739   shlibpath_var=LIBRARY_PATH
15740   ;;
15741
15742 bsdi[45]*)
15743   version_type=linux
15744   need_version=no
15745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746   soname_spec='${libname}${release}${shared_ext}$major'
15747   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15748   shlibpath_var=LD_LIBRARY_PATH
15749   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15750   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15751   # the default ld.so.conf also contains /usr/contrib/lib and
15752   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15753   # libtool to hard-code these into programs
15754   ;;
15755
15756 cygwin* | mingw* | pw32*)
15757   version_type=windows
15758   shrext_cmds=".dll"
15759   need_version=no
15760   need_lib_prefix=no
15761
15762   case $GCC,$host_os in
15763   yes,cygwin* | yes,mingw* | yes,pw32*)
15764     library_names_spec='$libname.dll.a'
15765     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15766     postinstall_cmds='base_file=`basename \${file}`~
15767       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15768       dldir=$destdir/`dirname \$dlpath`~
15769       test -d \$dldir || mkdir -p \$dldir~
15770       $install_prog $dir/$dlname \$dldir/$dlname~
15771       chmod a+x \$dldir/$dlname'
15772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15773       dlpath=$dir/\$dldll~
15774        $rm \$dlpath'
15775     shlibpath_overrides_runpath=yes
15776
15777     case $host_os in
15778     cygwin*)
15779       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15780       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15781       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15782       ;;
15783     mingw*)
15784       # MinGW DLLs use traditional 'lib' prefix
15785       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15787       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15788         # It is most probably a Windows format PATH printed by
15789         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15790         # path with ; separators, and with drive letters. We can handle the
15791         # drive letters (cygwin fileutils understands them), so leave them,
15792         # especially as we might pass files found there to a mingw objdump,
15793         # which wouldn't understand a cygwinified path. Ahh.
15794         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15795       else
15796         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15797       fi
15798       ;;
15799     pw32*)
15800       # pw32 DLLs use 'pw' prefix rather than 'lib'
15801       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15802       ;;
15803     esac
15804     ;;
15805
15806   *)
15807     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15808     ;;
15809   esac
15810   dynamic_linker='Win32 ld.exe'
15811   # FIXME: first we should search . and the directory the executable is in
15812   shlibpath_var=PATH
15813   ;;
15814
15815 darwin* | rhapsody*)
15816   dynamic_linker="$host_os dyld"
15817   version_type=darwin
15818   need_lib_prefix=no
15819   need_version=no
15820   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15821   soname_spec='${libname}${release}${major}$shared_ext'
15822   shlibpath_overrides_runpath=yes
15823   shlibpath_var=DYLD_LIBRARY_PATH
15824   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15825   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15826   if test "$GCC" = yes; then
15827     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"`
15828   else
15829     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15830   fi
15831   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15832   ;;
15833
15834 dgux*)
15835   version_type=linux
15836   need_lib_prefix=no
15837   need_version=no
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839   soname_spec='${libname}${release}${shared_ext}$major'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   ;;
15842
15843 freebsd1*)
15844   dynamic_linker=no
15845   ;;
15846
15847 kfreebsd*-gnu)
15848   version_type=linux
15849   need_lib_prefix=no
15850   need_version=no
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15852   soname_spec='${libname}${release}${shared_ext}$major'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   shlibpath_overrides_runpath=no
15855   hardcode_into_libs=yes
15856   dynamic_linker='GNU ld.so'
15857   ;;
15858
15859 freebsd* | dragonfly*)
15860   # DragonFly does not have aout.  When/if they implement a new
15861   # versioning mechanism, adjust this.
15862   if test -x /usr/bin/objformat; then
15863     objformat=`/usr/bin/objformat`
15864   else
15865     case $host_os in
15866     freebsd[123]*) objformat=aout ;;
15867     *) objformat=elf ;;
15868     esac
15869   fi
15870   version_type=freebsd-$objformat
15871   case $version_type in
15872     freebsd-elf*)
15873       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15874       need_version=no
15875       need_lib_prefix=no
15876       ;;
15877     freebsd-*)
15878       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15879       need_version=yes
15880       ;;
15881   esac
15882   shlibpath_var=LD_LIBRARY_PATH
15883   case $host_os in
15884   freebsd2*)
15885     shlibpath_overrides_runpath=yes
15886     ;;
15887   freebsd3.[01]* | freebsdelf3.[01]*)
15888     shlibpath_overrides_runpath=yes
15889     hardcode_into_libs=yes
15890     ;;
15891   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15892   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15893     shlibpath_overrides_runpath=no
15894     hardcode_into_libs=yes
15895     ;;
15896   freebsd*) # from 4.6 on
15897     shlibpath_overrides_runpath=yes
15898     hardcode_into_libs=yes
15899     ;;
15900   esac
15901   ;;
15902
15903 gnu*)
15904   version_type=linux
15905   need_lib_prefix=no
15906   need_version=no
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15908   soname_spec='${libname}${release}${shared_ext}$major'
15909   shlibpath_var=LD_LIBRARY_PATH
15910   hardcode_into_libs=yes
15911   ;;
15912
15913 hpux9* | hpux10* | hpux11*)
15914   # Give a soname corresponding to the major version so that dld.sl refuses to
15915   # link against other versions.
15916   version_type=sunos
15917   need_lib_prefix=no
15918   need_version=no
15919   case $host_cpu in
15920   ia64*)
15921     shrext_cmds='.so'
15922     hardcode_into_libs=yes
15923     dynamic_linker="$host_os dld.so"
15924     shlibpath_var=LD_LIBRARY_PATH
15925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927     soname_spec='${libname}${release}${shared_ext}$major'
15928     if test "X$HPUX_IA64_MODE" = X32; then
15929       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15930     else
15931       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15932     fi
15933     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15934     ;;
15935    hppa*64*)
15936      shrext_cmds='.sl'
15937      hardcode_into_libs=yes
15938      dynamic_linker="$host_os dld.sl"
15939      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15940      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15941      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942      soname_spec='${libname}${release}${shared_ext}$major'
15943      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15944      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15945      ;;
15946    *)
15947     shrext_cmds='.sl'
15948     dynamic_linker="$host_os dld.sl"
15949     shlibpath_var=SHLIB_PATH
15950     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952     soname_spec='${libname}${release}${shared_ext}$major'
15953     ;;
15954   esac
15955   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15956   postinstall_cmds='chmod 555 $lib'
15957   ;;
15958
15959 interix3*)
15960   version_type=linux
15961   need_lib_prefix=no
15962   need_version=no
15963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964   soname_spec='${libname}${release}${shared_ext}$major'
15965   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15966   shlibpath_var=LD_LIBRARY_PATH
15967   shlibpath_overrides_runpath=no
15968   hardcode_into_libs=yes
15969   ;;
15970
15971 irix5* | irix6* | nonstopux*)
15972   case $host_os in
15973     nonstopux*) version_type=nonstopux ;;
15974     *)
15975         if test "$lt_cv_prog_gnu_ld" = yes; then
15976                 version_type=linux
15977         else
15978                 version_type=irix
15979         fi ;;
15980   esac
15981   need_lib_prefix=no
15982   need_version=no
15983   soname_spec='${libname}${release}${shared_ext}$major'
15984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15985   case $host_os in
15986   irix5* | nonstopux*)
15987     libsuff= shlibsuff=
15988     ;;
15989   *)
15990     case $LD in # libtool.m4 will add one of these switches to LD
15991     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15992       libsuff= shlibsuff= libmagic=32-bit;;
15993     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15994       libsuff=32 shlibsuff=N32 libmagic=N32;;
15995     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15996       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15997     *) libsuff= shlibsuff= libmagic=never-match;;
15998     esac
15999     ;;
16000   esac
16001   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16002   shlibpath_overrides_runpath=no
16003   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16004   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16005   hardcode_into_libs=yes
16006   ;;
16007
16008 # No shared lib support for Linux oldld, aout, or coff.
16009 linux*oldld* | linux*aout* | linux*coff*)
16010   dynamic_linker=no
16011   ;;
16012
16013 # This must be Linux ELF.
16014 linux*)
16015   version_type=linux
16016   need_lib_prefix=no
16017   need_version=no
16018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019   soname_spec='${libname}${release}${shared_ext}$major'
16020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   shlibpath_overrides_runpath=no
16023   # This implies no fast_install, which is unacceptable.
16024   # Some rework will be needed to allow for fast_install
16025   # before this can be enabled.
16026   hardcode_into_libs=yes
16027
16028   # Append ld.so.conf contents to the search path
16029   if test -f /etc/ld.so.conf; then
16030     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' ' '`
16031     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16032   fi
16033
16034   # We used to test for /lib/ld.so.1 and disable shared libraries on
16035   # powerpc, because MkLinux only supported shared libraries with the
16036   # GNU dynamic linker.  Since this was broken with cross compilers,
16037   # most powerpc-linux boxes support dynamic linking these days and
16038   # people can always --disable-shared, the test was removed, and we
16039   # assume the GNU/Linux dynamic linker is in use.
16040   dynamic_linker='GNU/Linux ld.so'
16041   ;;
16042
16043 knetbsd*-gnu)
16044   version_type=linux
16045   need_lib_prefix=no
16046   need_version=no
16047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048   soname_spec='${libname}${release}${shared_ext}$major'
16049   shlibpath_var=LD_LIBRARY_PATH
16050   shlibpath_overrides_runpath=no
16051   hardcode_into_libs=yes
16052   dynamic_linker='GNU ld.so'
16053   ;;
16054
16055 netbsd*)
16056   version_type=sunos
16057   need_lib_prefix=no
16058   need_version=no
16059   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062     dynamic_linker='NetBSD (a.out) ld.so'
16063   else
16064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065     soname_spec='${libname}${release}${shared_ext}$major'
16066     dynamic_linker='NetBSD ld.elf_so'
16067   fi
16068   shlibpath_var=LD_LIBRARY_PATH
16069   shlibpath_overrides_runpath=yes
16070   hardcode_into_libs=yes
16071   ;;
16072
16073 newsos6)
16074   version_type=linux
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   ;;
16079
16080 nto-qnx*)
16081   version_type=linux
16082   need_lib_prefix=no
16083   need_version=no
16084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085   soname_spec='${libname}${release}${shared_ext}$major'
16086   shlibpath_var=LD_LIBRARY_PATH
16087   shlibpath_overrides_runpath=yes
16088   ;;
16089
16090 openbsd*)
16091   version_type=sunos
16092   sys_lib_dlsearch_path_spec="/usr/lib"
16093   need_lib_prefix=no
16094   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16095   case $host_os in
16096     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16097     *)                         need_version=no  ;;
16098   esac
16099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101   shlibpath_var=LD_LIBRARY_PATH
16102   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16103     case $host_os in
16104       openbsd2.[89] | openbsd2.[89].*)
16105         shlibpath_overrides_runpath=no
16106         ;;
16107       *)
16108         shlibpath_overrides_runpath=yes
16109         ;;
16110       esac
16111   else
16112     shlibpath_overrides_runpath=yes
16113   fi
16114   ;;
16115
16116 os2*)
16117   libname_spec='$name'
16118   shrext_cmds=".dll"
16119   need_lib_prefix=no
16120   library_names_spec='$libname${shared_ext} $libname.a'
16121   dynamic_linker='OS/2 ld.exe'
16122   shlibpath_var=LIBPATH
16123   ;;
16124
16125 osf3* | osf4* | osf5*)
16126   version_type=osf
16127   need_lib_prefix=no
16128   need_version=no
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16133   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16134   ;;
16135
16136 solaris*)
16137   version_type=linux
16138   need_lib_prefix=no
16139   need_version=no
16140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141   soname_spec='${libname}${release}${shared_ext}$major'
16142   shlibpath_var=LD_LIBRARY_PATH
16143   shlibpath_overrides_runpath=yes
16144   hardcode_into_libs=yes
16145   # ldd complains unless libraries are executable
16146   postinstall_cmds='chmod +x $lib'
16147   ;;
16148
16149 sunos4*)
16150   version_type=sunos
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16153   shlibpath_var=LD_LIBRARY_PATH
16154   shlibpath_overrides_runpath=yes
16155   if test "$with_gnu_ld" = yes; then
16156     need_lib_prefix=no
16157   fi
16158   need_version=yes
16159   ;;
16160
16161 sysv4 | sysv4.3*)
16162   version_type=linux
16163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164   soname_spec='${libname}${release}${shared_ext}$major'
16165   shlibpath_var=LD_LIBRARY_PATH
16166   case $host_vendor in
16167     sni)
16168       shlibpath_overrides_runpath=no
16169       need_lib_prefix=no
16170       export_dynamic_flag_spec='${wl}-Blargedynsym'
16171       runpath_var=LD_RUN_PATH
16172       ;;
16173     siemens)
16174       need_lib_prefix=no
16175       ;;
16176     motorola)
16177       need_lib_prefix=no
16178       need_version=no
16179       shlibpath_overrides_runpath=no
16180       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16181       ;;
16182   esac
16183   ;;
16184
16185 sysv4*MP*)
16186   if test -d /usr/nec ;then
16187     version_type=linux
16188     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16189     soname_spec='$libname${shared_ext}.$major'
16190     shlibpath_var=LD_LIBRARY_PATH
16191   fi
16192   ;;
16193
16194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16195   version_type=freebsd-elf
16196   need_lib_prefix=no
16197   need_version=no
16198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16199   soname_spec='${libname}${release}${shared_ext}$major'
16200   shlibpath_var=LD_LIBRARY_PATH
16201   hardcode_into_libs=yes
16202   if test "$with_gnu_ld" = yes; then
16203     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16204     shlibpath_overrides_runpath=no
16205   else
16206     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16207     shlibpath_overrides_runpath=yes
16208     case $host_os in
16209       sco3.2v5*)
16210         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16211         ;;
16212     esac
16213   fi
16214   sys_lib_dlsearch_path_spec='/usr/lib'
16215   ;;
16216
16217 uts4*)
16218   version_type=linux
16219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220   soname_spec='${libname}${release}${shared_ext}$major'
16221   shlibpath_var=LD_LIBRARY_PATH
16222   ;;
16223
16224 *)
16225   dynamic_linker=no
16226   ;;
16227 esac
16228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16229 echo "${ECHO_T}$dynamic_linker" >&6; }
16230 test "$dynamic_linker" = no && can_build_shared=no
16231
16232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233 if test "$GCC" = yes; then
16234   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16235 fi
16236
16237 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16238 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16239 hardcode_action=
16240 if test -n "$hardcode_libdir_flag_spec" || \
16241    test -n "$runpath_var" || \
16242    test "X$hardcode_automatic" = "Xyes" ; then
16243
16244   # We can hardcode non-existant directories.
16245   if test "$hardcode_direct" != no &&
16246      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16247      # have to relink, otherwise we might link with an installed library
16248      # when we should be linking with a yet-to-be-installed one
16249      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16250      test "$hardcode_minus_L" != no; then
16251     # Linking always hardcodes the temporary library directory.
16252     hardcode_action=relink
16253   else
16254     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16255     hardcode_action=immediate
16256   fi
16257 else
16258   # We cannot hardcode anything, or else we can only hardcode existing
16259   # directories.
16260   hardcode_action=unsupported
16261 fi
16262 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16263 echo "${ECHO_T}$hardcode_action" >&6; }
16264
16265 if test "$hardcode_action" = relink; then
16266   # Fast installation is not supported
16267   enable_fast_install=no
16268 elif test "$shlibpath_overrides_runpath" = yes ||
16269      test "$enable_shared" = no; then
16270   # Fast installation is not necessary
16271   enable_fast_install=needless
16272 fi
16273
16274 striplib=
16275 old_striplib=
16276 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16277 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16278 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16279   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16280   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16281   { echo "$as_me:$LINENO: result: yes" >&5
16282 echo "${ECHO_T}yes" >&6; }
16283 else
16284 # FIXME - insert some real tests, host_os isn't really good enough
16285   case $host_os in
16286    darwin*)
16287        if test -n "$STRIP" ; then
16288          striplib="$STRIP -x"
16289          { echo "$as_me:$LINENO: result: yes" >&5
16290 echo "${ECHO_T}yes" >&6; }
16291        else
16292   { echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6; }
16294 fi
16295        ;;
16296    *)
16297   { echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6; }
16299     ;;
16300   esac
16301 fi
16302
16303 if test "x$enable_dlopen" != xyes; then
16304   enable_dlopen=unknown
16305   enable_dlopen_self=unknown
16306   enable_dlopen_self_static=unknown
16307 else
16308   lt_cv_dlopen=no
16309   lt_cv_dlopen_libs=
16310
16311   case $host_os in
16312   beos*)
16313     lt_cv_dlopen="load_add_on"
16314     lt_cv_dlopen_libs=
16315     lt_cv_dlopen_self=yes
16316     ;;
16317
16318   mingw* | pw32*)
16319     lt_cv_dlopen="LoadLibrary"
16320     lt_cv_dlopen_libs=
16321    ;;
16322
16323   cygwin*)
16324     lt_cv_dlopen="dlopen"
16325     lt_cv_dlopen_libs=
16326    ;;
16327
16328   darwin*)
16329   # if libdl is installed we need to link against it
16330     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16331 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335   ac_check_lib_save_LIBS=$LIBS
16336 LIBS="-ldl  $LIBS"
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343
16344 /* Override any GCC internal prototype to avoid an error.
16345    Use char because int might match the return type of a GCC
16346    builtin and then its argument prototype would still apply.  */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 char dlopen ();
16351 int
16352 main ()
16353 {
16354 return dlopen ();
16355   ;
16356   return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (ac_try="$ac_link"
16361 case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366   (eval "$ac_link") 2>conftest.er1
16367   ac_status=$?
16368   grep -v '^ *+' conftest.er1 >conftest.err
16369   rm -f conftest.er1
16370   cat conftest.err >&5
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); } &&
16373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16374   { (case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379   (eval "$ac_try") 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }; } &&
16383          { ac_try='test -s conftest$ac_exeext'
16384   { (case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_try") 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; }; then
16393   ac_cv_lib_dl_dlopen=yes
16394 else
16395   echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16397
16398         ac_cv_lib_dl_dlopen=no
16399 fi
16400
16401 rm -f core conftest.err conftest.$ac_objext \
16402       conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16404 fi
16405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16407 if test $ac_cv_lib_dl_dlopen = yes; then
16408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16409 else
16410
16411     lt_cv_dlopen="dyld"
16412     lt_cv_dlopen_libs=
16413     lt_cv_dlopen_self=yes
16414
16415 fi
16416
16417    ;;
16418
16419   *)
16420     { echo "$as_me:$LINENO: checking for shl_load" >&5
16421 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16422 if test "${ac_cv_func_shl_load+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425   cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16433 #define shl_load innocuous_shl_load
16434
16435 /* System header to define __stub macros and hopefully few prototypes,
16436     which can conflict with char shl_load (); below.
16437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16438     <limits.h> exists even on freestanding compilers.  */
16439
16440 #ifdef __STDC__
16441 # include <limits.h>
16442 #else
16443 # include <assert.h>
16444 #endif
16445
16446 #undef shl_load
16447
16448 /* Override any GCC internal prototype to avoid an error.
16449    Use char because int might match the return type of a GCC
16450    builtin and then its argument prototype would still apply.  */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 char shl_load ();
16455 /* The GNU C library defines this for functions which it implements
16456     to always fail with ENOSYS.  Some functions are actually named
16457     something starting with __ and the normal name is an alias.  */
16458 #if defined __stub_shl_load || defined __stub___shl_load
16459 choke me
16460 #endif
16461
16462 int
16463 main ()
16464 {
16465 return shl_load ();
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_link") 2>conftest.er1
16478   ac_status=$?
16479   grep -v '^ *+' conftest.er1 >conftest.err
16480   rm -f conftest.er1
16481   cat conftest.err >&5
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); } &&
16484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485   { (case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490   (eval "$ac_try") 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; } &&
16494          { ac_try='test -s conftest$ac_exeext'
16495   { (case "(($ac_try" in
16496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497   *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500   (eval "$ac_try") 2>&5
16501   ac_status=$?
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); }; }; then
16504   ac_cv_func_shl_load=yes
16505 else
16506   echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509         ac_cv_func_shl_load=no
16510 fi
16511
16512 rm -f core conftest.err conftest.$ac_objext \
16513       conftest$ac_exeext conftest.$ac_ext
16514 fi
16515 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16517 if test $ac_cv_func_shl_load = yes; then
16518   lt_cv_dlopen="shl_load"
16519 else
16520   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   ac_check_lib_save_LIBS=$LIBS
16526 LIBS="-ldld  $LIBS"
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h.  */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h.  */
16533
16534 /* Override any GCC internal prototype to avoid an error.
16535    Use char because int might match the return type of a GCC
16536    builtin and then its argument prototype would still apply.  */
16537 #ifdef __cplusplus
16538 extern "C"
16539 #endif
16540 char shl_load ();
16541 int
16542 main ()
16543 {
16544 return shl_load ();
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_link") 2>conftest.er1
16557   ac_status=$?
16558   grep -v '^ *+' conftest.er1 >conftest.err
16559   rm -f conftest.er1
16560   cat conftest.err >&5
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } &&
16563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16564   { (case "(($ac_try" in
16565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566   *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569   (eval "$ac_try") 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; } &&
16573          { ac_try='test -s conftest$ac_exeext'
16574   { (case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_try") 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; }; then
16583   ac_cv_lib_dld_shl_load=yes
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588         ac_cv_lib_dld_shl_load=no
16589 fi
16590
16591 rm -f core conftest.err conftest.$ac_objext \
16592       conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16594 fi
16595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16597 if test $ac_cv_lib_dld_shl_load = yes; then
16598   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16599 else
16600   { echo "$as_me:$LINENO: checking for dlopen" >&5
16601 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16602 if test "${ac_cv_func_dlopen+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16613 #define dlopen innocuous_dlopen
16614
16615 /* System header to define __stub macros and hopefully few prototypes,
16616     which can conflict with char dlopen (); below.
16617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618     <limits.h> exists even on freestanding compilers.  */
16619
16620 #ifdef __STDC__
16621 # include <limits.h>
16622 #else
16623 # include <assert.h>
16624 #endif
16625
16626 #undef dlopen
16627
16628 /* Override any GCC internal prototype to avoid an error.
16629    Use char because int might match the return type of a GCC
16630    builtin and then its argument prototype would still apply.  */
16631 #ifdef __cplusplus
16632 extern "C"
16633 #endif
16634 char dlopen ();
16635 /* The GNU C library defines this for functions which it implements
16636     to always fail with ENOSYS.  Some functions are actually named
16637     something starting with __ and the normal name is an alias.  */
16638 #if defined __stub_dlopen || defined __stub___dlopen
16639 choke me
16640 #endif
16641
16642 int
16643 main ()
16644 {
16645 return dlopen ();
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (ac_try="$ac_link"
16652 case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_link") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665   { (case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_try") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; } &&
16674          { ac_try='test -s conftest$ac_exeext'
16675   { (case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_try") 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   ac_cv_func_dlopen=yes
16685 else
16686   echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689         ac_cv_func_dlopen=no
16690 fi
16691
16692 rm -f core conftest.err conftest.$ac_objext \
16693       conftest$ac_exeext conftest.$ac_ext
16694 fi
16695 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16696 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16697 if test $ac_cv_func_dlopen = yes; then
16698   lt_cv_dlopen="dlopen"
16699 else
16700   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   ac_check_lib_save_LIBS=$LIBS
16706 LIBS="-ldl  $LIBS"
16707 cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713
16714 /* Override any GCC internal prototype to avoid an error.
16715    Use char because int might match the return type of a GCC
16716    builtin and then its argument prototype would still apply.  */
16717 #ifdef __cplusplus
16718 extern "C"
16719 #endif
16720 char dlopen ();
16721 int
16722 main ()
16723 {
16724 return dlopen ();
16725   ;
16726   return 0;
16727 }
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (ac_try="$ac_link"
16731 case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_link") 2>conftest.er1
16737   ac_status=$?
16738   grep -v '^ *+' conftest.er1 >conftest.err
16739   rm -f conftest.er1
16740   cat conftest.err >&5
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); } &&
16743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744   { (case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_try") 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; } &&
16753          { ac_try='test -s conftest$ac_exeext'
16754   { (case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_try") 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; }; then
16763   ac_cv_lib_dl_dlopen=yes
16764 else
16765   echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768         ac_cv_lib_dl_dlopen=no
16769 fi
16770
16771 rm -f core conftest.err conftest.$ac_objext \
16772       conftest$ac_exeext conftest.$ac_ext
16773 LIBS=$ac_check_lib_save_LIBS
16774 fi
16775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16777 if test $ac_cv_lib_dl_dlopen = yes; then
16778   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16779 else
16780   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-lsvld  $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h.  */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h.  */
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795    Use char because int might match the return type of a GCC
16796    builtin and then its argument prototype would still apply.  */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char dlopen ();
16801 int
16802 main ()
16803 {
16804 return dlopen ();
16805   ;
16806   return 0;
16807 }
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813   *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816   (eval "$ac_link") 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } &&
16823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824   { (case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829   (eval "$ac_try") 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; } &&
16833          { ac_try='test -s conftest$ac_exeext'
16834   { (case "(($ac_try" in
16835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836   *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839   (eval "$ac_try") 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   ac_cv_lib_svld_dlopen=yes
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848         ac_cv_lib_svld_dlopen=no
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext \
16852       conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16854 fi
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16857 if test $ac_cv_lib_svld_dlopen = yes; then
16858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16859 else
16860   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865   ac_check_lib_save_LIBS=$LIBS
16866 LIBS="-ldld  $LIBS"
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873
16874 /* Override any GCC internal prototype to avoid an error.
16875    Use char because int might match the return type of a GCC
16876    builtin and then its argument prototype would still apply.  */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char dld_link ();
16881 int
16882 main ()
16883 {
16884 return dld_link ();
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_link") 2>conftest.er1
16897   ac_status=$?
16898   grep -v '^ *+' conftest.er1 >conftest.err
16899   rm -f conftest.er1
16900   cat conftest.err >&5
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } &&
16903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest$ac_exeext'
16914   { (case "(($ac_try" in
16915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916   *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919   (eval "$ac_try") 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_cv_lib_dld_dld_link=yes
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928         ac_cv_lib_dld_dld_link=no
16929 fi
16930
16931 rm -f core conftest.err conftest.$ac_objext \
16932       conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16934 fi
16935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16937 if test $ac_cv_lib_dld_dld_link = yes; then
16938   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16939 fi
16940
16941
16942 fi
16943
16944
16945 fi
16946
16947
16948 fi
16949
16950
16951 fi
16952
16953
16954 fi
16955
16956     ;;
16957   esac
16958
16959   if test "x$lt_cv_dlopen" != xno; then
16960     enable_dlopen=yes
16961   else
16962     enable_dlopen=no
16963   fi
16964
16965   case $lt_cv_dlopen in
16966   dlopen)
16967     save_CPPFLAGS="$CPPFLAGS"
16968     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16969
16970     save_LDFLAGS="$LDFLAGS"
16971     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16972
16973     save_LIBS="$LIBS"
16974     LIBS="$lt_cv_dlopen_libs $LIBS"
16975
16976     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16978 if test "${lt_cv_dlopen_self+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981           if test "$cross_compiling" = yes; then :
16982   lt_cv_dlopen_self=cross
16983 else
16984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16985   lt_status=$lt_dlunknown
16986   cat > conftest.$ac_ext <<EOF
16987 #line 16987 "configure"
16988 #include "confdefs.h"
16989
16990 #if HAVE_DLFCN_H
16991 #include <dlfcn.h>
16992 #endif
16993
16994 #include <stdio.h>
16995
16996 #ifdef RTLD_GLOBAL
16997 #  define LT_DLGLOBAL           RTLD_GLOBAL
16998 #else
16999 #  ifdef DL_GLOBAL
17000 #    define LT_DLGLOBAL         DL_GLOBAL
17001 #  else
17002 #    define LT_DLGLOBAL         0
17003 #  endif
17004 #endif
17005
17006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007    find out it does not work in some platform. */
17008 #ifndef LT_DLLAZY_OR_NOW
17009 #  ifdef RTLD_LAZY
17010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17011 #  else
17012 #    ifdef DL_LAZY
17013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17014 #    else
17015 #      ifdef RTLD_NOW
17016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17017 #      else
17018 #        ifdef DL_NOW
17019 #          define LT_DLLAZY_OR_NOW      DL_NOW
17020 #        else
17021 #          define LT_DLLAZY_OR_NOW      0
17022 #        endif
17023 #      endif
17024 #    endif
17025 #  endif
17026 #endif
17027
17028 #ifdef __cplusplus
17029 extern "C" void exit (int);
17030 #endif
17031
17032 void fnord() { int i=42;}
17033 int main ()
17034 {
17035   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036   int status = $lt_dlunknown;
17037
17038   if (self)
17039     {
17040       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17041       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042       /* dlclose (self); */
17043     }
17044   else
17045     puts (dlerror ());
17046
17047     exit (status);
17048 }
17049 EOF
17050   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051   (eval $ac_link) 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17055     (./conftest; exit; ) >&5 2>/dev/null
17056     lt_status=$?
17057     case x$lt_status in
17058       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17059       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17060       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17061     esac
17062   else :
17063     # compilation failed
17064     lt_cv_dlopen_self=no
17065   fi
17066 fi
17067 rm -fr conftest*
17068
17069
17070 fi
17071 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17072 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17073
17074     if test "x$lt_cv_dlopen_self" = xyes; then
17075       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17076       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17077 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17078 if test "${lt_cv_dlopen_self_static+set}" = set; then
17079   echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081           if test "$cross_compiling" = yes; then :
17082   lt_cv_dlopen_self_static=cross
17083 else
17084   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17085   lt_status=$lt_dlunknown
17086   cat > conftest.$ac_ext <<EOF
17087 #line 17087 "configure"
17088 #include "confdefs.h"
17089
17090 #if HAVE_DLFCN_H
17091 #include <dlfcn.h>
17092 #endif
17093
17094 #include <stdio.h>
17095
17096 #ifdef RTLD_GLOBAL
17097 #  define LT_DLGLOBAL           RTLD_GLOBAL
17098 #else
17099 #  ifdef DL_GLOBAL
17100 #    define LT_DLGLOBAL         DL_GLOBAL
17101 #  else
17102 #    define LT_DLGLOBAL         0
17103 #  endif
17104 #endif
17105
17106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17107    find out it does not work in some platform. */
17108 #ifndef LT_DLLAZY_OR_NOW
17109 #  ifdef RTLD_LAZY
17110 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17111 #  else
17112 #    ifdef DL_LAZY
17113 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17114 #    else
17115 #      ifdef RTLD_NOW
17116 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17117 #      else
17118 #        ifdef DL_NOW
17119 #          define LT_DLLAZY_OR_NOW      DL_NOW
17120 #        else
17121 #          define LT_DLLAZY_OR_NOW      0
17122 #        endif
17123 #      endif
17124 #    endif
17125 #  endif
17126 #endif
17127
17128 #ifdef __cplusplus
17129 extern "C" void exit (int);
17130 #endif
17131
17132 void fnord() { int i=42;}
17133 int main ()
17134 {
17135   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17136   int status = $lt_dlunknown;
17137
17138   if (self)
17139     {
17140       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17141       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17142       /* dlclose (self); */
17143     }
17144   else
17145     puts (dlerror ());
17146
17147     exit (status);
17148 }
17149 EOF
17150   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151   (eval $ac_link) 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17155     (./conftest; exit; ) >&5 2>/dev/null
17156     lt_status=$?
17157     case x$lt_status in
17158       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17159       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17160       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17161     esac
17162   else :
17163     # compilation failed
17164     lt_cv_dlopen_self_static=no
17165   fi
17166 fi
17167 rm -fr conftest*
17168
17169
17170 fi
17171 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17172 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17173     fi
17174
17175     CPPFLAGS="$save_CPPFLAGS"
17176     LDFLAGS="$save_LDFLAGS"
17177     LIBS="$save_LIBS"
17178     ;;
17179   esac
17180
17181   case $lt_cv_dlopen_self in
17182   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17183   *) enable_dlopen_self=unknown ;;
17184   esac
17185
17186   case $lt_cv_dlopen_self_static in
17187   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17188   *) enable_dlopen_self_static=unknown ;;
17189   esac
17190 fi
17191
17192
17193 # Report which library types will actually be built
17194 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17195 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17196 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17197 echo "${ECHO_T}$can_build_shared" >&6; }
17198
17199 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17200 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17201 test "$can_build_shared" = "no" && enable_shared=no
17202
17203 # On AIX, shared libraries and static libraries use the same namespace, and
17204 # are all built from PIC.
17205 case $host_os in
17206 aix3*)
17207   test "$enable_shared" = yes && enable_static=no
17208   if test -n "$RANLIB"; then
17209     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17210     postinstall_cmds='$RANLIB $lib'
17211   fi
17212   ;;
17213
17214 aix4* | aix5*)
17215   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17216     test "$enable_shared" = yes && enable_static=no
17217   fi
17218     ;;
17219 esac
17220 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17221 echo "${ECHO_T}$enable_shared" >&6; }
17222
17223 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17224 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17225 # Make sure either enable_shared or enable_static is yes.
17226 test "$enable_shared" = yes || enable_static=yes
17227 { echo "$as_me:$LINENO: result: $enable_static" >&5
17228 echo "${ECHO_T}$enable_static" >&6; }
17229
17230 # The else clause should only fire when bootstrapping the
17231 # libtool distribution, otherwise you forgot to ship ltmain.sh
17232 # with your package, and you will get complaints that there are
17233 # no rules to generate ltmain.sh.
17234 if test -f "$ltmain"; then
17235   # See if we are running on zsh, and set the options which allow our commands through
17236   # without removal of \ escapes.
17237   if test -n "${ZSH_VERSION+set}" ; then
17238     setopt NO_GLOB_SUBST
17239   fi
17240   # Now quote all the things that may contain metacharacters while being
17241   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17242   # variables and quote the copies for generation of the libtool script.
17243   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17244     SED SHELL STRIP \
17245     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17246     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17247     deplibs_check_method reload_flag reload_cmds need_locks \
17248     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17249     lt_cv_sys_global_symbol_to_c_name_address \
17250     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17251     old_postinstall_cmds old_postuninstall_cmds \
17252     compiler \
17253     CC \
17254     LD \
17255     lt_prog_compiler_wl \
17256     lt_prog_compiler_pic \
17257     lt_prog_compiler_static \
17258     lt_prog_compiler_no_builtin_flag \
17259     export_dynamic_flag_spec \
17260     thread_safe_flag_spec \
17261     whole_archive_flag_spec \
17262     enable_shared_with_static_runtimes \
17263     old_archive_cmds \
17264     old_archive_from_new_cmds \
17265     predep_objects \
17266     postdep_objects \
17267     predeps \
17268     postdeps \
17269     compiler_lib_search_path \
17270     archive_cmds \
17271     archive_expsym_cmds \
17272     postinstall_cmds \
17273     postuninstall_cmds \
17274     old_archive_from_expsyms_cmds \
17275     allow_undefined_flag \
17276     no_undefined_flag \
17277     export_symbols_cmds \
17278     hardcode_libdir_flag_spec \
17279     hardcode_libdir_flag_spec_ld \
17280     hardcode_libdir_separator \
17281     hardcode_automatic \
17282     module_cmds \
17283     module_expsym_cmds \
17284     lt_cv_prog_compiler_c_o \
17285     exclude_expsyms \
17286     include_expsyms; do
17287
17288     case $var in
17289     old_archive_cmds | \
17290     old_archive_from_new_cmds | \
17291     archive_cmds | \
17292     archive_expsym_cmds | \
17293     module_cmds | \
17294     module_expsym_cmds | \
17295     old_archive_from_expsyms_cmds | \
17296     export_symbols_cmds | \
17297     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17298     postinstall_cmds | postuninstall_cmds | \
17299     old_postinstall_cmds | old_postuninstall_cmds | \
17300     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17301       # Double-quote double-evaled strings.
17302       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17303       ;;
17304     *)
17305       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17306       ;;
17307     esac
17308   done
17309
17310   case $lt_echo in
17311   *'\$0 --fallback-echo"')
17312     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17313     ;;
17314   esac
17315
17316 cfgfile="${ofile}T"
17317   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17318   $rm -f "$cfgfile"
17319   { echo "$as_me:$LINENO: creating $ofile" >&5
17320 echo "$as_me: creating $ofile" >&6;}
17321
17322   cat <<__EOF__ >> "$cfgfile"
17323 #! $SHELL
17324
17325 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17326 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17327 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17328 #
17329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17330 # Free Software Foundation, Inc.
17331 #
17332 # This file is part of GNU Libtool:
17333 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17334 #
17335 # This program is free software; you can redistribute it and/or modify
17336 # it under the terms of the GNU General Public License as published by
17337 # the Free Software Foundation; either version 2 of the License, or
17338 # (at your option) any later version.
17339 #
17340 # This program is distributed in the hope that it will be useful, but
17341 # WITHOUT ANY WARRANTY; without even the implied warranty of
17342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17343 # General Public License for more details.
17344 #
17345 # You should have received a copy of the GNU General Public License
17346 # along with this program; if not, write to the Free Software
17347 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17348 #
17349 # As a special exception to the GNU General Public License, if you
17350 # distribute this file as part of a program that contains a
17351 # configuration script generated by Autoconf, you may include it under
17352 # the same distribution terms that you use for the rest of that program.
17353
17354 # A sed program that does not truncate output.
17355 SED=$lt_SED
17356
17357 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17358 Xsed="$SED -e 1s/^X//"
17359
17360 # The HP-UX ksh and POSIX shell print the target directory to stdout
17361 # if CDPATH is set.
17362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17363
17364 # The names of the tagged configurations supported by this script.
17365 available_tags=
17366
17367 # ### BEGIN LIBTOOL CONFIG
17368
17369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17370
17371 # Shell to use when invoking shell scripts.
17372 SHELL=$lt_SHELL
17373
17374 # Whether or not to build shared libraries.
17375 build_libtool_libs=$enable_shared
17376
17377 # Whether or not to build static libraries.
17378 build_old_libs=$enable_static
17379
17380 # Whether or not to add -lc for building shared libraries.
17381 build_libtool_need_lc=$archive_cmds_need_lc
17382
17383 # Whether or not to disallow shared libs when runtime libs are static
17384 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17385
17386 # Whether or not to optimize for fast installation.
17387 fast_install=$enable_fast_install
17388
17389 # The host system.
17390 host_alias=$host_alias
17391 host=$host
17392 host_os=$host_os
17393
17394 # The build system.
17395 build_alias=$build_alias
17396 build=$build
17397 build_os=$build_os
17398
17399 # An echo program that does not interpret backslashes.
17400 echo=$lt_echo
17401
17402 # The archiver.
17403 AR=$lt_AR
17404 AR_FLAGS=$lt_AR_FLAGS
17405
17406 # A C compiler.
17407 LTCC=$lt_LTCC
17408
17409 # LTCC compiler flags.
17410 LTCFLAGS=$lt_LTCFLAGS
17411
17412 # A language-specific compiler.
17413 CC=$lt_compiler
17414
17415 # Is the compiler the GNU C compiler?
17416 with_gcc=$GCC
17417
17418 # An ERE matcher.
17419 EGREP=$lt_EGREP
17420
17421 # The linker used to build libraries.
17422 LD=$lt_LD
17423
17424 # Whether we need hard or soft links.
17425 LN_S=$lt_LN_S
17426
17427 # A BSD-compatible nm program.
17428 NM=$lt_NM
17429
17430 # A symbol stripping program
17431 STRIP=$lt_STRIP
17432
17433 # Used to examine libraries when file_magic_cmd begins "file"
17434 MAGIC_CMD=$MAGIC_CMD
17435
17436 # Used on cygwin: DLL creation program.
17437 DLLTOOL="$DLLTOOL"
17438
17439 # Used on cygwin: object dumper.
17440 OBJDUMP="$OBJDUMP"
17441
17442 # Used on cygwin: assembler.
17443 AS="$AS"
17444
17445 # The name of the directory that contains temporary libtool files.
17446 objdir=$objdir
17447
17448 # How to create reloadable object files.
17449 reload_flag=$lt_reload_flag
17450 reload_cmds=$lt_reload_cmds
17451
17452 # How to pass a linker flag through the compiler.
17453 wl=$lt_lt_prog_compiler_wl
17454
17455 # Object file suffix (normally "o").
17456 objext="$ac_objext"
17457
17458 # Old archive suffix (normally "a").
17459 libext="$libext"
17460
17461 # Shared library suffix (normally ".so").
17462 shrext_cmds='$shrext_cmds'
17463
17464 # Executable file suffix (normally "").
17465 exeext="$exeext"
17466
17467 # Additional compiler flags for building library objects.
17468 pic_flag=$lt_lt_prog_compiler_pic
17469 pic_mode=$pic_mode
17470
17471 # What is the maximum length of a command?
17472 max_cmd_len=$lt_cv_sys_max_cmd_len
17473
17474 # Does compiler simultaneously support -c and -o options?
17475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17476
17477 # Must we lock files when doing compilation?
17478 need_locks=$lt_need_locks
17479
17480 # Do we need the lib prefix for modules?
17481 need_lib_prefix=$need_lib_prefix
17482
17483 # Do we need a version for libraries?
17484 need_version=$need_version
17485
17486 # Whether dlopen is supported.
17487 dlopen_support=$enable_dlopen
17488
17489 # Whether dlopen of programs is supported.
17490 dlopen_self=$enable_dlopen_self
17491
17492 # Whether dlopen of statically linked programs is supported.
17493 dlopen_self_static=$enable_dlopen_self_static
17494
17495 # Compiler flag to prevent dynamic linking.
17496 link_static_flag=$lt_lt_prog_compiler_static
17497
17498 # Compiler flag to turn off builtin functions.
17499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17500
17501 # Compiler flag to allow reflexive dlopens.
17502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17503
17504 # Compiler flag to generate shared objects directly from archives.
17505 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17506
17507 # Compiler flag to generate thread-safe objects.
17508 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17509
17510 # Library versioning type.
17511 version_type=$version_type
17512
17513 # Format of library name prefix.
17514 libname_spec=$lt_libname_spec
17515
17516 # List of archive names.  First name is the real one, the rest are links.
17517 # The last name is the one that the linker finds with -lNAME.
17518 library_names_spec=$lt_library_names_spec
17519
17520 # The coded name of the library, if different from the real name.
17521 soname_spec=$lt_soname_spec
17522
17523 # Commands used to build and install an old-style archive.
17524 RANLIB=$lt_RANLIB
17525 old_archive_cmds=$lt_old_archive_cmds
17526 old_postinstall_cmds=$lt_old_postinstall_cmds
17527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17528
17529 # Create an old-style archive from a shared archive.
17530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17531
17532 # Create a temporary old-style archive to link instead of a shared archive.
17533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17534
17535 # Commands used to build and install a shared archive.
17536 archive_cmds=$lt_archive_cmds
17537 archive_expsym_cmds=$lt_archive_expsym_cmds
17538 postinstall_cmds=$lt_postinstall_cmds
17539 postuninstall_cmds=$lt_postuninstall_cmds
17540
17541 # Commands used to build a loadable module (assumed same as above if empty)
17542 module_cmds=$lt_module_cmds
17543 module_expsym_cmds=$lt_module_expsym_cmds
17544
17545 # Commands to strip libraries.
17546 old_striplib=$lt_old_striplib
17547 striplib=$lt_striplib
17548
17549 # Dependencies to place before the objects being linked to create a
17550 # shared library.
17551 predep_objects=$lt_predep_objects
17552
17553 # Dependencies to place after the objects being linked to create a
17554 # shared library.
17555 postdep_objects=$lt_postdep_objects
17556
17557 # Dependencies to place before the objects being linked to create a
17558 # shared library.
17559 predeps=$lt_predeps
17560
17561 # Dependencies to place after the objects being linked to create a
17562 # shared library.
17563 postdeps=$lt_postdeps
17564
17565 # The library search path used internally by the compiler when linking
17566 # a shared library.
17567 compiler_lib_search_path=$lt_compiler_lib_search_path
17568
17569 # Method to check whether dependent libraries are shared objects.
17570 deplibs_check_method=$lt_deplibs_check_method
17571
17572 # Command to use when deplibs_check_method == file_magic.
17573 file_magic_cmd=$lt_file_magic_cmd
17574
17575 # Flag that allows shared libraries with undefined symbols to be built.
17576 allow_undefined_flag=$lt_allow_undefined_flag
17577
17578 # Flag that forces no undefined symbols.
17579 no_undefined_flag=$lt_no_undefined_flag
17580
17581 # Commands used to finish a libtool library installation in a directory.
17582 finish_cmds=$lt_finish_cmds
17583
17584 # Same as above, but a single script fragment to be evaled but not shown.
17585 finish_eval=$lt_finish_eval
17586
17587 # Take the output of nm and produce a listing of raw symbols and C names.
17588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17589
17590 # Transform the output of nm in a proper C declaration
17591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17592
17593 # Transform the output of nm in a C name address pair
17594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17595
17596 # This is the shared library runtime path variable.
17597 runpath_var=$runpath_var
17598
17599 # This is the shared library path variable.
17600 shlibpath_var=$shlibpath_var
17601
17602 # Is shlibpath searched before the hard-coded library search path?
17603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17604
17605 # How to hardcode a shared library path into an executable.
17606 hardcode_action=$hardcode_action
17607
17608 # Whether we should hardcode library paths into libraries.
17609 hardcode_into_libs=$hardcode_into_libs
17610
17611 # Flag to hardcode \$libdir into a binary during linking.
17612 # This must work even if \$libdir does not exist.
17613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17614
17615 # If ld is used when linking, flag to hardcode \$libdir into
17616 # a binary during linking. This must work even if \$libdir does
17617 # not exist.
17618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17619
17620 # Whether we need a single -rpath flag with a separated argument.
17621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17622
17623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17624 # resulting binary.
17625 hardcode_direct=$hardcode_direct
17626
17627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17628 # resulting binary.
17629 hardcode_minus_L=$hardcode_minus_L
17630
17631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17632 # the resulting binary.
17633 hardcode_shlibpath_var=$hardcode_shlibpath_var
17634
17635 # Set to yes if building a shared library automatically hardcodes DIR into the library
17636 # and all subsequent libraries and executables linked against it.
17637 hardcode_automatic=$hardcode_automatic
17638
17639 # Variables whose values should be saved in libtool wrapper scripts and
17640 # restored at relink time.
17641 variables_saved_for_relink="$variables_saved_for_relink"
17642
17643 # Whether libtool must link a program against all its dependency libraries.
17644 link_all_deplibs=$link_all_deplibs
17645
17646 # Compile-time system search path for libraries
17647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17648
17649 # Run-time system search path for libraries
17650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17651
17652 # Fix the shell variable \$srcfile for the compiler.
17653 fix_srcfile_path="$fix_srcfile_path"
17654
17655 # Set to yes if exported symbols are required.
17656 always_export_symbols=$always_export_symbols
17657
17658 # The commands to list exported symbols.
17659 export_symbols_cmds=$lt_export_symbols_cmds
17660
17661 # The commands to extract the exported symbol list from a shared archive.
17662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17663
17664 # Symbols that should not be listed in the preloaded symbols.
17665 exclude_expsyms=$lt_exclude_expsyms
17666
17667 # Symbols that must always be exported.
17668 include_expsyms=$lt_include_expsyms
17669
17670 # ### END LIBTOOL CONFIG
17671
17672 __EOF__
17673
17674
17675   case $host_os in
17676   aix3*)
17677     cat <<\EOF >> "$cfgfile"
17678
17679 # AIX sometimes has problems with the GCC collect2 program.  For some
17680 # reason, if we set the COLLECT_NAMES environment variable, the problems
17681 # vanish in a puff of smoke.
17682 if test "X${COLLECT_NAMES+set}" != Xset; then
17683   COLLECT_NAMES=
17684   export COLLECT_NAMES
17685 fi
17686 EOF
17687     ;;
17688   esac
17689
17690   # We use sed instead of cat because bash on DJGPP gets confused if
17691   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17692   # text mode, it properly converts lines to CR/LF.  This bash problem
17693   # is reportedly fixed, but why not run on old versions too?
17694   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17695
17696   mv -f "$cfgfile" "$ofile" || \
17697     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698   chmod +x "$ofile"
17699
17700 else
17701   # If there is no Makefile yet, we rely on a make rule to execute
17702   # `config.status --recheck' to rerun these tests and create the
17703   # libtool script then.
17704   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17705   if test -f "$ltmain_in"; then
17706     test -f Makefile && make "$ltmain"
17707   fi
17708 fi
17709
17710
17711 ac_ext=c
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716
17717 CC="$lt_save_CC"
17718
17719
17720 # Check whether --with-tags was given.
17721 if test "${with_tags+set}" = set; then
17722   withval=$with_tags; tagnames="$withval"
17723 fi
17724
17725
17726 if test -f "$ltmain" && test -n "$tagnames"; then
17727   if test ! -f "${ofile}"; then
17728     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17729 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17730   fi
17731
17732   if test -z "$LTCC"; then
17733     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17734     if test -z "$LTCC"; then
17735       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17736 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17737     else
17738       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17739 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17740     fi
17741   fi
17742   if test -z "$LTCFLAGS"; then
17743     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17744   fi
17745
17746   # Extract list of available tagged configurations in $ofile.
17747   # Note that this assumes the entire list is on one line.
17748   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17749
17750   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17751   for tagname in $tagnames; do
17752     IFS="$lt_save_ifs"
17753     # Check whether tagname contains only valid characters
17754     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17755     "") ;;
17756     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17757 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17758    { (exit 1); exit 1; }; }
17759         ;;
17760     esac
17761
17762     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17763     then
17764       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17765 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17766    { (exit 1); exit 1; }; }
17767     fi
17768
17769     # Update the list of available tags.
17770     if test -n "$tagname"; then
17771       echo appending configuration tag \"$tagname\" to $ofile
17772
17773       case $tagname in
17774       CXX)
17775         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17776             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17777             (test "X$CXX" != "Xg++"))) ; then
17778           ac_ext=cpp
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
17784
17785
17786
17787 archive_cmds_need_lc_CXX=no
17788 allow_undefined_flag_CXX=
17789 always_export_symbols_CXX=no
17790 archive_expsym_cmds_CXX=
17791 export_dynamic_flag_spec_CXX=
17792 hardcode_direct_CXX=no
17793 hardcode_libdir_flag_spec_CXX=
17794 hardcode_libdir_flag_spec_ld_CXX=
17795 hardcode_libdir_separator_CXX=
17796 hardcode_minus_L_CXX=no
17797 hardcode_shlibpath_var_CXX=unsupported
17798 hardcode_automatic_CXX=no
17799 module_cmds_CXX=
17800 module_expsym_cmds_CXX=
17801 link_all_deplibs_CXX=unknown
17802 old_archive_cmds_CXX=$old_archive_cmds
17803 no_undefined_flag_CXX=
17804 whole_archive_flag_spec_CXX=
17805 enable_shared_with_static_runtimes_CXX=no
17806
17807 # Dependencies to place before and after the object being linked:
17808 predep_objects_CXX=
17809 postdep_objects_CXX=
17810 predeps_CXX=
17811 postdeps_CXX=
17812 compiler_lib_search_path_CXX=
17813
17814 # Source file extension for C++ test sources.
17815 ac_ext=cpp
17816
17817 # Object file extension for compiled C++ test sources.
17818 objext=o
17819 objext_CXX=$objext
17820
17821 # Code to be used in simple compile tests
17822 lt_simple_compile_test_code="int some_variable = 0;\n"
17823
17824 # Code to be used in simple link tests
17825 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17826
17827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17828
17829 # If no C compiler was specified, use CC.
17830 LTCC=${LTCC-"$CC"}
17831
17832 # If no C compiler flags were specified, use CFLAGS.
17833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17834
17835 # Allow CC to be a program name with arguments.
17836 compiler=$CC
17837
17838
17839 # save warnings/boilerplate of simple test code
17840 ac_outfile=conftest.$ac_objext
17841 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17842 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17843 _lt_compiler_boilerplate=`cat conftest.err`
17844 $rm conftest*
17845
17846 ac_outfile=conftest.$ac_objext
17847 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17848 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17849 _lt_linker_boilerplate=`cat conftest.err`
17850 $rm conftest*
17851
17852
17853 # Allow CC to be a program name with arguments.
17854 lt_save_CC=$CC
17855 lt_save_LD=$LD
17856 lt_save_GCC=$GCC
17857 GCC=$GXX
17858 lt_save_with_gnu_ld=$with_gnu_ld
17859 lt_save_path_LD=$lt_cv_path_LD
17860 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17861   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17862 else
17863   $as_unset lt_cv_prog_gnu_ld
17864 fi
17865 if test -n "${lt_cv_path_LDCXX+set}"; then
17866   lt_cv_path_LD=$lt_cv_path_LDCXX
17867 else
17868   $as_unset lt_cv_path_LD
17869 fi
17870 test -z "${LDCXX+set}" || LD=$LDCXX
17871 CC=${CXX-"c++"}
17872 compiler=$CC
17873 compiler_CXX=$CC
17874 for cc_temp in $compiler""; do
17875   case $cc_temp in
17876     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17877     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17878     \-*) ;;
17879     *) break;;
17880   esac
17881 done
17882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17883
17884
17885 # We don't want -fno-exception wen compiling C++ code, so set the
17886 # no_builtin_flag separately
17887 if test "$GXX" = yes; then
17888   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17889 else
17890   lt_prog_compiler_no_builtin_flag_CXX=
17891 fi
17892
17893 if test "$GXX" = yes; then
17894   # Set up default GNU C++ configuration
17895
17896
17897 # Check whether --with-gnu-ld was given.
17898 if test "${with_gnu_ld+set}" = set; then
17899   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17900 else
17901   with_gnu_ld=no
17902 fi
17903
17904 ac_prog=ld
17905 if test "$GCC" = yes; then
17906   # Check if gcc -print-prog-name=ld gives a path.
17907   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17908 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17909   case $host in
17910   *-*-mingw*)
17911     # gcc leaves a trailing carriage return which upsets mingw
17912     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17913   *)
17914     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17915   esac
17916   case $ac_prog in
17917     # Accept absolute paths.
17918     [\\/]* | ?:[\\/]*)
17919       re_direlt='/[^/][^/]*/\.\./'
17920       # Canonicalize the pathname of ld
17921       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17922       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17923         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17924       done
17925       test -z "$LD" && LD="$ac_prog"
17926       ;;
17927   "")
17928     # If it fails, then pretend we aren't using GCC.
17929     ac_prog=ld
17930     ;;
17931   *)
17932     # If it is relative, then search for the first ld in PATH.
17933     with_gnu_ld=unknown
17934     ;;
17935   esac
17936 elif test "$with_gnu_ld" = yes; then
17937   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17938 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17939 else
17940   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17941 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17942 fi
17943 if test "${lt_cv_path_LD+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   if test -z "$LD"; then
17947   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17948   for ac_dir in $PATH; do
17949     IFS="$lt_save_ifs"
17950     test -z "$ac_dir" && ac_dir=.
17951     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17952       lt_cv_path_LD="$ac_dir/$ac_prog"
17953       # Check to see if the program is GNU ld.  I'd rather use --version,
17954       # but apparently some variants of GNU ld only accept -v.
17955       # Break only if it was the GNU/non-GNU ld that we prefer.
17956       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17957       *GNU* | *'with BFD'*)
17958         test "$with_gnu_ld" != no && break
17959         ;;
17960       *)
17961         test "$with_gnu_ld" != yes && break
17962         ;;
17963       esac
17964     fi
17965   done
17966   IFS="$lt_save_ifs"
17967 else
17968   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17969 fi
17970 fi
17971
17972 LD="$lt_cv_path_LD"
17973 if test -n "$LD"; then
17974   { echo "$as_me:$LINENO: result: $LD" >&5
17975 echo "${ECHO_T}$LD" >&6; }
17976 else
17977   { echo "$as_me:$LINENO: result: no" >&5
17978 echo "${ECHO_T}no" >&6; }
17979 fi
17980 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17981 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17982    { (exit 1); exit 1; }; }
17983 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17984 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17985 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17989 case `$LD -v 2>&1 </dev/null` in
17990 *GNU* | *'with BFD'*)
17991   lt_cv_prog_gnu_ld=yes
17992   ;;
17993 *)
17994   lt_cv_prog_gnu_ld=no
17995   ;;
17996 esac
17997 fi
17998 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17999 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18000 with_gnu_ld=$lt_cv_prog_gnu_ld
18001
18002
18003
18004   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18005   # archiving commands below assume that GNU ld is being used.
18006   if test "$with_gnu_ld" = yes; then
18007     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008     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'
18009
18010     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18011     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18012
18013     # If archive_cmds runs LD, not CC, wlarc should be empty
18014     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18015     #     investigate it a little bit more. (MM)
18016     wlarc='${wl}'
18017
18018     # ancient GNU ld didn't support --whole-archive et. al.
18019     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18020         grep 'no-whole-archive' > /dev/null; then
18021       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18022     else
18023       whole_archive_flag_spec_CXX=
18024     fi
18025   else
18026     with_gnu_ld=no
18027     wlarc=
18028
18029     # A generic and very simple default shared library creation
18030     # command for GNU C++ for the case where it uses the native
18031     # linker, instead of GNU ld.  If possible, this setting should
18032     # overridden to take advantage of the native linker features on
18033     # the platform it is being used on.
18034     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18035   fi
18036
18037   # Commands to make compiler produce verbose output that lists
18038   # what "hidden" libraries, object files and flags are used when
18039   # linking a shared library.
18040   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18041
18042 else
18043   GXX=no
18044   with_gnu_ld=no
18045   wlarc=
18046 fi
18047
18048 # PORTME: fill in a description of your system's C++ link characteristics
18049 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18051 ld_shlibs_CXX=yes
18052 case $host_os in
18053   aix3*)
18054     # FIXME: insert proper C++ library support
18055     ld_shlibs_CXX=no
18056     ;;
18057   aix4* | aix5*)
18058     if test "$host_cpu" = ia64; then
18059       # On IA64, the linker does run time linking by default, so we don't
18060       # have to do anything special.
18061       aix_use_runtimelinking=no
18062       exp_sym_flag='-Bexport'
18063       no_entry_flag=""
18064     else
18065       aix_use_runtimelinking=no
18066
18067       # Test if we are trying to use run time linking or normal
18068       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18069       # need to do runtime linking.
18070       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18071         for ld_flag in $LDFLAGS; do
18072           case $ld_flag in
18073           *-brtl*)
18074             aix_use_runtimelinking=yes
18075             break
18076             ;;
18077           esac
18078         done
18079         ;;
18080       esac
18081
18082       exp_sym_flag='-bexport'
18083       no_entry_flag='-bnoentry'
18084     fi
18085
18086     # When large executables or shared objects are built, AIX ld can
18087     # have problems creating the table of contents.  If linking a library
18088     # or program results in "error TOC overflow" add -mminimal-toc to
18089     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18090     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18091
18092     archive_cmds_CXX=''
18093     hardcode_direct_CXX=yes
18094     hardcode_libdir_separator_CXX=':'
18095     link_all_deplibs_CXX=yes
18096
18097     if test "$GXX" = yes; then
18098       case $host_os in aix4.[012]|aix4.[012].*)
18099       # We only want to do this on AIX 4.2 and lower, the check
18100       # below for broken collect2 doesn't work under 4.3+
18101         collect2name=`${CC} -print-prog-name=collect2`
18102         if test -f "$collect2name" && \
18103            strings "$collect2name" | grep resolve_lib_name >/dev/null
18104         then
18105           # We have reworked collect2
18106           hardcode_direct_CXX=yes
18107         else
18108           # We have old collect2
18109           hardcode_direct_CXX=unsupported
18110           # It fails to find uninstalled libraries when the uninstalled
18111           # path is not listed in the libpath.  Setting hardcode_minus_L
18112           # to unsupported forces relinking
18113           hardcode_minus_L_CXX=yes
18114           hardcode_libdir_flag_spec_CXX='-L$libdir'
18115           hardcode_libdir_separator_CXX=
18116         fi
18117         ;;
18118       esac
18119       shared_flag='-shared'
18120       if test "$aix_use_runtimelinking" = yes; then
18121         shared_flag="$shared_flag "'${wl}-G'
18122       fi
18123     else
18124       # not using gcc
18125       if test "$host_cpu" = ia64; then
18126         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18127         # chokes on -Wl,-G. The following line is correct:
18128         shared_flag='-G'
18129       else
18130         if test "$aix_use_runtimelinking" = yes; then
18131           shared_flag='${wl}-G'
18132         else
18133           shared_flag='${wl}-bM:SRE'
18134         fi
18135       fi
18136     fi
18137
18138     # It seems that -bexpall does not export symbols beginning with
18139     # underscore (_), so it is better to generate a list of symbols to export.
18140     always_export_symbols_CXX=yes
18141     if test "$aix_use_runtimelinking" = yes; then
18142       # Warning - without using the other runtime loading flags (-brtl),
18143       # -berok will link without error, but may produce a broken library.
18144       allow_undefined_flag_CXX='-berok'
18145       # Determine the default libpath from the value encoded in an empty executable.
18146       cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152
18153 int
18154 main ()
18155 {
18156
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168   (eval "$ac_link") 2>conftest.er1
18169   ac_status=$?
18170   grep -v '^ *+' conftest.er1 >conftest.err
18171   rm -f conftest.er1
18172   cat conftest.err >&5
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } &&
18175          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; } &&
18185          { ac_try='test -s conftest$ac_exeext'
18186   { (case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_try") 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195
18196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18197 }'`
18198 # Check for a 64-bit object if we didn't find anything.
18199 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; }
18200 }'`; fi
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205
18206 fi
18207
18208 rm -f core conftest.err conftest.$ac_objext \
18209       conftest$ac_exeext conftest.$ac_ext
18210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18211
18212       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18213
18214       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"
18215      else
18216       if test "$host_cpu" = ia64; then
18217         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18218         allow_undefined_flag_CXX="-z nodefs"
18219         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"
18220       else
18221         # Determine the default libpath from the value encoded in an empty executable.
18222         cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h.  */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h.  */
18228
18229 int
18230 main ()
18231 {
18232
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241   *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244   (eval "$ac_link") 2>conftest.er1
18245   ac_status=$?
18246   grep -v '^ *+' conftest.er1 >conftest.err
18247   rm -f conftest.er1
18248   cat conftest.err >&5
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); } &&
18251          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252   { (case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_try") 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; } &&
18261          { ac_try='test -s conftest$ac_exeext'
18262   { (case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_try") 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); }; }; then
18271
18272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18273 }'`
18274 # Check for a 64-bit object if we didn't find anything.
18275 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; }
18276 }'`; fi
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext \
18285       conftest$ac_exeext conftest.$ac_ext
18286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18287
18288         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18289         # Warning - without using the other run time loading flags,
18290         # -berok will link without error, but may produce a broken library.
18291         no_undefined_flag_CXX=' ${wl}-bernotok'
18292         allow_undefined_flag_CXX=' ${wl}-berok'
18293         # Exported symbols can be pulled into shared objects from archives
18294         whole_archive_flag_spec_CXX='$convenience'
18295         archive_cmds_need_lc_CXX=yes
18296         # This is similar to how AIX traditionally builds its shared libraries.
18297         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'
18298       fi
18299     fi
18300     ;;
18301
18302   beos*)
18303     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18304       allow_undefined_flag_CXX=unsupported
18305       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18306       # support --undefined.  This deserves some investigation.  FIXME
18307       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18308     else
18309       ld_shlibs_CXX=no
18310     fi
18311     ;;
18312
18313   chorus*)
18314     case $cc_basename in
18315       *)
18316         # FIXME: insert proper C++ library support
18317         ld_shlibs_CXX=no
18318         ;;
18319     esac
18320     ;;
18321
18322   cygwin* | mingw* | pw32*)
18323     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18324     # as there is no search path for DLLs.
18325     hardcode_libdir_flag_spec_CXX='-L$libdir'
18326     allow_undefined_flag_CXX=unsupported
18327     always_export_symbols_CXX=no
18328     enable_shared_with_static_runtimes_CXX=yes
18329
18330     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18331       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'
18332       # If the export-symbols file already is a .def file (1st line
18333       # is EXPORTS), use it as is; otherwise, prepend...
18334       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18335         cp $export_symbols $output_objdir/$soname.def;
18336       else
18337         echo EXPORTS > $output_objdir/$soname.def;
18338         cat $export_symbols >> $output_objdir/$soname.def;
18339       fi~
18340       $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'
18341     else
18342       ld_shlibs_CXX=no
18343     fi
18344   ;;
18345       darwin* | rhapsody*)
18346         case $host_os in
18347         rhapsody* | darwin1.[012])
18348          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18349          ;;
18350        *) # Darwin 1.3 on
18351          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18352            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18353          else
18354            case ${MACOSX_DEPLOYMENT_TARGET} in
18355              10.[012])
18356                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18357                ;;
18358              10.*)
18359                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18360                ;;
18361            esac
18362          fi
18363          ;;
18364         esac
18365       archive_cmds_need_lc_CXX=no
18366       hardcode_direct_CXX=no
18367       hardcode_automatic_CXX=yes
18368       hardcode_shlibpath_var_CXX=unsupported
18369       whole_archive_flag_spec_CXX=''
18370       link_all_deplibs_CXX=yes
18371
18372     if test "$GXX" = yes ; then
18373       lt_int_apple_cc_single_mod=no
18374       output_verbose_link_cmd='echo'
18375       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18376        lt_int_apple_cc_single_mod=yes
18377       fi
18378       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18379        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18380       else
18381           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'
18382         fi
18383         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18384         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18385           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18386             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}'
18387           else
18388             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}'
18389           fi
18390             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}'
18391       else
18392       case $cc_basename in
18393         xlc*)
18394          output_verbose_link_cmd='echo'
18395           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'
18396           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18397           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18398           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}'
18399           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}'
18400           ;;
18401        *)
18402          ld_shlibs_CXX=no
18403           ;;
18404       esac
18405       fi
18406         ;;
18407
18408   dgux*)
18409     case $cc_basename in
18410       ec++*)
18411         # FIXME: insert proper C++ library support
18412         ld_shlibs_CXX=no
18413         ;;
18414       ghcx*)
18415         # Green Hills C++ Compiler
18416         # FIXME: insert proper C++ library support
18417         ld_shlibs_CXX=no
18418         ;;
18419       *)
18420         # FIXME: insert proper C++ library support
18421         ld_shlibs_CXX=no
18422         ;;
18423     esac
18424     ;;
18425   freebsd[12]*)
18426     # C++ shared libraries reported to be fairly broken before switch to ELF
18427     ld_shlibs_CXX=no
18428     ;;
18429   freebsd-elf*)
18430     archive_cmds_need_lc_CXX=no
18431     ;;
18432   freebsd* | kfreebsd*-gnu | dragonfly*)
18433     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18434     # conventions
18435     ld_shlibs_CXX=yes
18436     ;;
18437   gnu*)
18438     ;;
18439   hpux9*)
18440     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18441     hardcode_libdir_separator_CXX=:
18442     export_dynamic_flag_spec_CXX='${wl}-E'
18443     hardcode_direct_CXX=yes
18444     hardcode_minus_L_CXX=yes # Not in the search PATH,
18445                                 # but as the default
18446                                 # location of the library.
18447
18448     case $cc_basename in
18449     CC*)
18450       # FIXME: insert proper C++ library support
18451       ld_shlibs_CXX=no
18452       ;;
18453     aCC*)
18454       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'
18455       # Commands to make compiler produce verbose output that lists
18456       # what "hidden" libraries, object files and flags are used when
18457       # linking a shared library.
18458       #
18459       # There doesn't appear to be a way to prevent this compiler from
18460       # explicitly linking system object files so we need to strip them
18461       # from the output so that they don't get included in the library
18462       # dependencies.
18463       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'
18464       ;;
18465     *)
18466       if test "$GXX" = yes; then
18467         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'
18468       else
18469         # FIXME: insert proper C++ library support
18470         ld_shlibs_CXX=no
18471       fi
18472       ;;
18473     esac
18474     ;;
18475   hpux10*|hpux11*)
18476     if test $with_gnu_ld = no; then
18477       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18478       hardcode_libdir_separator_CXX=:
18479
18480       case $host_cpu in
18481       hppa*64*|ia64*)
18482         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18483         ;;
18484       *)
18485         export_dynamic_flag_spec_CXX='${wl}-E'
18486         ;;
18487       esac
18488     fi
18489     case $host_cpu in
18490     hppa*64*|ia64*)
18491       hardcode_direct_CXX=no
18492       hardcode_shlibpath_var_CXX=no
18493       ;;
18494     *)
18495       hardcode_direct_CXX=yes
18496       hardcode_minus_L_CXX=yes # Not in the search PATH,
18497                                               # but as the default
18498                                               # location of the library.
18499       ;;
18500     esac
18501
18502     case $cc_basename in
18503       CC*)
18504         # FIXME: insert proper C++ library support
18505         ld_shlibs_CXX=no
18506         ;;
18507       aCC*)
18508         case $host_cpu in
18509         hppa*64*)
18510           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18511           ;;
18512         ia64*)
18513           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18514           ;;
18515         *)
18516           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18517           ;;
18518         esac
18519         # Commands to make compiler produce verbose output that lists
18520         # what "hidden" libraries, object files and flags are used when
18521         # linking a shared library.
18522         #
18523         # There doesn't appear to be a way to prevent this compiler from
18524         # explicitly linking system object files so we need to strip them
18525         # from the output so that they don't get included in the library
18526         # dependencies.
18527         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'
18528         ;;
18529       *)
18530         if test "$GXX" = yes; then
18531           if test $with_gnu_ld = no; then
18532             case $host_cpu in
18533             hppa*64*)
18534               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18535               ;;
18536             ia64*)
18537               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18538               ;;
18539             *)
18540               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'
18541               ;;
18542             esac
18543           fi
18544         else
18545           # FIXME: insert proper C++ library support
18546           ld_shlibs_CXX=no
18547         fi
18548         ;;
18549     esac
18550     ;;
18551   interix3*)
18552     hardcode_direct_CXX=no
18553     hardcode_shlibpath_var_CXX=no
18554     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18555     export_dynamic_flag_spec_CXX='${wl}-E'
18556     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18557     # Instead, shared libraries are loaded at an image base (0x10000000 by
18558     # default) and relocated if they conflict, which is a slow very memory
18559     # consuming and fragmenting process.  To avoid this, we pick a random,
18560     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18561     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18562     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'
18563     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'
18564     ;;
18565   irix5* | irix6*)
18566     case $cc_basename in
18567       CC*)
18568         # SGI C++
18569         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'
18570
18571         # Archives containing C++ object files must be created using
18572         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18573         # necessary to make sure instantiated templates are included
18574         # in the archive.
18575         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18576         ;;
18577       *)
18578         if test "$GXX" = yes; then
18579           if test "$with_gnu_ld" = no; then
18580             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'
18581           else
18582             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'
18583           fi
18584         fi
18585         link_all_deplibs_CXX=yes
18586         ;;
18587     esac
18588     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589     hardcode_libdir_separator_CXX=:
18590     ;;
18591   linux*)
18592     case $cc_basename in
18593       KCC*)
18594         # Kuck and Associates, Inc. (KAI) C++ Compiler
18595
18596         # KCC will only create a shared library if the output file
18597         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18598         # to its proper name (with version) after linking.
18599         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'
18600         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'
18601         # Commands to make compiler produce verbose output that lists
18602         # what "hidden" libraries, object files and flags are used when
18603         # linking a shared library.
18604         #
18605         # There doesn't appear to be a way to prevent this compiler from
18606         # explicitly linking system object files so we need to strip them
18607         # from the output so that they don't get included in the library
18608         # dependencies.
18609         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'
18610
18611         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18612         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18613
18614         # Archives containing C++ object files must be created using
18615         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18616         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18617         ;;
18618       icpc*)
18619         # Intel C++
18620         with_gnu_ld=yes
18621         # version 8.0 and above of icpc choke on multiply defined symbols
18622         # if we add $predep_objects and $postdep_objects, however 7.1 and
18623         # earlier do not add the objects themselves.
18624         case `$CC -V 2>&1` in
18625         *"Version 7."*)
18626           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627           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'
18628           ;;
18629         *)  # Version 8.0 or newer
18630           tmp_idyn=
18631           case $host_cpu in
18632             ia64*) tmp_idyn=' -i_dynamic';;
18633           esac
18634           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18635           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'
18636           ;;
18637         esac
18638         archive_cmds_need_lc_CXX=no
18639         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18640         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18642         ;;
18643       pgCC*)
18644         # Portland Group C++ compiler
18645         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18646         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'
18647
18648         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18649         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18650         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'
18651         ;;
18652       cxx*)
18653         # Compaq C++
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  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18656
18657         runpath_var=LD_RUN_PATH
18658         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18659         hardcode_libdir_separator_CXX=:
18660
18661         # Commands to make compiler produce verbose output that lists
18662         # what "hidden" libraries, object files and flags are used when
18663         # linking a shared library.
18664         #
18665         # There doesn't appear to be a way to prevent this compiler from
18666         # explicitly linking system object files so we need to strip them
18667         # from the output so that they don't get included in the library
18668         # dependencies.
18669         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'
18670         ;;
18671     esac
18672     ;;
18673   lynxos*)
18674     # FIXME: insert proper C++ library support
18675     ld_shlibs_CXX=no
18676     ;;
18677   m88k*)
18678     # FIXME: insert proper C++ library support
18679     ld_shlibs_CXX=no
18680     ;;
18681   mvs*)
18682     case $cc_basename in
18683       cxx*)
18684         # FIXME: insert proper C++ library support
18685         ld_shlibs_CXX=no
18686         ;;
18687       *)
18688         # FIXME: insert proper C++ library support
18689         ld_shlibs_CXX=no
18690         ;;
18691     esac
18692     ;;
18693   netbsd*)
18694     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18695       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18696       wlarc=
18697       hardcode_libdir_flag_spec_CXX='-R$libdir'
18698       hardcode_direct_CXX=yes
18699       hardcode_shlibpath_var_CXX=no
18700     fi
18701     # Workaround some broken pre-1.5 toolchains
18702     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18703     ;;
18704   openbsd2*)
18705     # C++ shared libraries are fairly broken
18706     ld_shlibs_CXX=no
18707     ;;
18708   openbsd*)
18709     hardcode_direct_CXX=yes
18710     hardcode_shlibpath_var_CXX=no
18711     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18712     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18713     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18714       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18715       export_dynamic_flag_spec_CXX='${wl}-E'
18716       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18717     fi
18718     output_verbose_link_cmd='echo'
18719     ;;
18720   osf3*)
18721     case $cc_basename in
18722       KCC*)
18723         # Kuck and Associates, Inc. (KAI) C++ Compiler
18724
18725         # KCC will only create a shared library if the output file
18726         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18727         # to its proper name (with version) after linking.
18728         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'
18729
18730         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18731         hardcode_libdir_separator_CXX=:
18732
18733         # Archives containing C++ object files must be created using
18734         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18735         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18736
18737         ;;
18738       RCC*)
18739         # Rational C++ 2.4.1
18740         # FIXME: insert proper C++ library support
18741         ld_shlibs_CXX=no
18742         ;;
18743       cxx*)
18744         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18745         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'
18746
18747         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18748         hardcode_libdir_separator_CXX=:
18749
18750         # Commands to make compiler produce verbose output that lists
18751         # what "hidden" libraries, object files and flags are used when
18752         # linking a shared library.
18753         #
18754         # There doesn't appear to be a way to prevent this compiler from
18755         # explicitly linking system object files so we need to strip them
18756         # from the output so that they don't get included in the library
18757         # dependencies.
18758         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'
18759         ;;
18760       *)
18761         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18762           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18763           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'
18764
18765           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18766           hardcode_libdir_separator_CXX=:
18767
18768           # Commands to make compiler produce verbose output that lists
18769           # what "hidden" libraries, object files and flags are used when
18770           # linking a shared library.
18771           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18772
18773         else
18774           # FIXME: insert proper C++ library support
18775           ld_shlibs_CXX=no
18776         fi
18777         ;;
18778     esac
18779     ;;
18780   osf4* | osf5*)
18781     case $cc_basename in
18782       KCC*)
18783         # Kuck and Associates, Inc. (KAI) C++ Compiler
18784
18785         # KCC will only create a shared library if the output file
18786         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18787         # to its proper name (with version) after linking.
18788         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'
18789
18790         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18791         hardcode_libdir_separator_CXX=:
18792
18793         # Archives containing C++ object files must be created using
18794         # the KAI C++ compiler.
18795         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18796         ;;
18797       RCC*)
18798         # Rational C++ 2.4.1
18799         # FIXME: insert proper C++ library support
18800         ld_shlibs_CXX=no
18801         ;;
18802       cxx*)
18803         allow_undefined_flag_CXX=' -expect_unresolved \*'
18804         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'
18805         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18806           echo "-hidden">> $lib.exp~
18807           $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~
18808           $rm $lib.exp'
18809
18810         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811         hardcode_libdir_separator_CXX=:
18812
18813         # Commands to make compiler produce verbose output that lists
18814         # what "hidden" libraries, object files and flags are used when
18815         # linking a shared library.
18816         #
18817         # There doesn't appear to be a way to prevent this compiler from
18818         # explicitly linking system object files so we need to strip them
18819         # from the output so that they don't get included in the library
18820         # dependencies.
18821         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'
18822         ;;
18823       *)
18824         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18825           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18826          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'
18827
18828           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18829           hardcode_libdir_separator_CXX=:
18830
18831           # Commands to make compiler produce verbose output that lists
18832           # what "hidden" libraries, object files and flags are used when
18833           # linking a shared library.
18834           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18835
18836         else
18837           # FIXME: insert proper C++ library support
18838           ld_shlibs_CXX=no
18839         fi
18840         ;;
18841     esac
18842     ;;
18843   psos*)
18844     # FIXME: insert proper C++ library support
18845     ld_shlibs_CXX=no
18846     ;;
18847   sunos4*)
18848     case $cc_basename in
18849       CC*)
18850         # Sun C++ 4.x
18851         # FIXME: insert proper C++ library support
18852         ld_shlibs_CXX=no
18853         ;;
18854       lcc*)
18855         # Lucid
18856         # FIXME: insert proper C++ library support
18857         ld_shlibs_CXX=no
18858         ;;
18859       *)
18860         # FIXME: insert proper C++ library support
18861         ld_shlibs_CXX=no
18862         ;;
18863     esac
18864     ;;
18865   solaris*)
18866     case $cc_basename in
18867       CC*)
18868         # Sun C++ 4.2, 5.x and Centerline C++
18869         archive_cmds_need_lc_CXX=yes
18870         no_undefined_flag_CXX=' -zdefs'
18871         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18872         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18873         $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'
18874
18875         hardcode_libdir_flag_spec_CXX='-R$libdir'
18876         hardcode_shlibpath_var_CXX=no
18877         case $host_os in
18878           solaris2.[0-5] | solaris2.[0-5].*) ;;
18879           *)
18880             # The C++ compiler is used as linker so we must use $wl
18881             # flag to pass the commands to the underlying system
18882             # linker. We must also pass each convience library through
18883             # to the system linker between allextract/defaultextract.
18884             # The C++ compiler will combine linker options so we
18885             # cannot just pass the convience library names through
18886             # without $wl.
18887             # Supported since Solaris 2.6 (maybe 2.5.1?)
18888             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'
18889             ;;
18890         esac
18891         link_all_deplibs_CXX=yes
18892
18893         output_verbose_link_cmd='echo'
18894
18895         # Archives containing C++ object files must be created using
18896         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18897         # necessary to make sure instantiated templates are included
18898         # in the archive.
18899         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18900         ;;
18901       gcx*)
18902         # Green Hills C++ Compiler
18903         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18904
18905         # The C++ compiler must be used to create the archive.
18906         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18907         ;;
18908       *)
18909         # GNU C++ compiler with Solaris linker
18910         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18911           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18912           if $CC --version | grep -v '^2\.7' > /dev/null; then
18913             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18914             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18916
18917             # Commands to make compiler produce verbose output that lists
18918             # what "hidden" libraries, object files and flags are used when
18919             # linking a shared library.
18920             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18921           else
18922             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18923             # platform.
18924             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18925             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18926                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18927
18928             # Commands to make compiler produce verbose output that lists
18929             # what "hidden" libraries, object files and flags are used when
18930             # linking a shared library.
18931             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18932           fi
18933
18934           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18935         fi
18936         ;;
18937     esac
18938     ;;
18939   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18940     no_undefined_flag_CXX='${wl}-z,text'
18941     archive_cmds_need_lc_CXX=no
18942     hardcode_shlibpath_var_CXX=no
18943     runpath_var='LD_RUN_PATH'
18944
18945     case $cc_basename in
18946       CC*)
18947         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18948         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18949         ;;
18950       *)
18951         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18953         ;;
18954     esac
18955     ;;
18956   sysv5* | sco3.2v5* | sco5v6*)
18957     # Note: We can NOT use -z defs as we might desire, because we do not
18958     # link with -lc, and that would cause any symbols used from libc to
18959     # always be unresolved, which means just about no library would
18960     # ever link correctly.  If we're not using GNU ld we use -z text
18961     # though, which does catch some bad symbols but isn't as heavy-handed
18962     # as -z defs.
18963     # For security reasons, it is highly recommended that you always
18964     # use absolute paths for naming shared libraries, and exclude the
18965     # DT_RUNPATH tag from executables and libraries.  But doing so
18966     # requires that you compile everything twice, which is a pain.
18967     # So that behaviour is only enabled if SCOABSPATH is set to a
18968     # non-empty value in the environment.  Most likely only useful for
18969     # creating official distributions of packages.
18970     # This is a hack until libtool officially supports absolute path
18971     # names for shared libraries.
18972     no_undefined_flag_CXX='${wl}-z,text'
18973     allow_undefined_flag_CXX='${wl}-z,nodefs'
18974     archive_cmds_need_lc_CXX=no
18975     hardcode_shlibpath_var_CXX=no
18976     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18977     hardcode_libdir_separator_CXX=':'
18978     link_all_deplibs_CXX=yes
18979     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18980     runpath_var='LD_RUN_PATH'
18981
18982     case $cc_basename in
18983       CC*)
18984         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18985         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18986         ;;
18987       *)
18988         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18989         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18990         ;;
18991     esac
18992     ;;
18993   tandem*)
18994     case $cc_basename in
18995       NCC*)
18996         # NonStop-UX NCC 3.20
18997         # FIXME: insert proper C++ library support
18998         ld_shlibs_CXX=no
18999         ;;
19000       *)
19001         # FIXME: insert proper C++ library support
19002         ld_shlibs_CXX=no
19003         ;;
19004     esac
19005     ;;
19006   vxworks*)
19007     # FIXME: insert proper C++ library support
19008     ld_shlibs_CXX=no
19009     ;;
19010   *)
19011     # FIXME: insert proper C++ library support
19012     ld_shlibs_CXX=no
19013     ;;
19014 esac
19015 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19016 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19017 test "$ld_shlibs_CXX" = no && can_build_shared=no
19018
19019 GCC_CXX="$GXX"
19020 LD_CXX="$LD"
19021
19022
19023 cat > conftest.$ac_ext <<EOF
19024 class Foo
19025 {
19026 public:
19027   Foo (void) { a = 0; }
19028 private:
19029   int a;
19030 };
19031 EOF
19032
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034   (eval $ac_compile) 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; then
19038   # Parse the compiler output and extract the necessary
19039   # objects, libraries and library flags.
19040
19041   # Sentinel used to keep track of whether or not we are before
19042   # the conftest object file.
19043   pre_test_object_deps_done=no
19044
19045   # The `*' in the case matches for architectures that use `case' in
19046   # $output_verbose_cmd can trigger glob expansion during the loop
19047   # eval without this substitution.
19048   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19049
19050   for p in `eval $output_verbose_link_cmd`; do
19051     case $p in
19052
19053     -L* | -R* | -l*)
19054        # Some compilers place space between "-{L,R}" and the path.
19055        # Remove the space.
19056        if test $p = "-L" \
19057           || test $p = "-R"; then
19058          prev=$p
19059          continue
19060        else
19061          prev=
19062        fi
19063
19064        if test "$pre_test_object_deps_done" = no; then
19065          case $p in
19066          -L* | -R*)
19067            # Internal compiler library paths should come after those
19068            # provided the user.  The postdeps already come after the
19069            # user supplied libs so there is no need to process them.
19070            if test -z "$compiler_lib_search_path_CXX"; then
19071              compiler_lib_search_path_CXX="${prev}${p}"
19072            else
19073              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19074            fi
19075            ;;
19076          # The "-l" case would never come before the object being
19077          # linked, so don't bother handling this case.
19078          esac
19079        else
19080          if test -z "$postdeps_CXX"; then
19081            postdeps_CXX="${prev}${p}"
19082          else
19083            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19084          fi
19085        fi
19086        ;;
19087
19088     *.$objext)
19089        # This assumes that the test object file only shows up
19090        # once in the compiler output.
19091        if test "$p" = "conftest.$objext"; then
19092          pre_test_object_deps_done=yes
19093          continue
19094        fi
19095
19096        if test "$pre_test_object_deps_done" = no; then
19097          if test -z "$predep_objects_CXX"; then
19098            predep_objects_CXX="$p"
19099          else
19100            predep_objects_CXX="$predep_objects_CXX $p"
19101          fi
19102        else
19103          if test -z "$postdep_objects_CXX"; then
19104            postdep_objects_CXX="$p"
19105          else
19106            postdep_objects_CXX="$postdep_objects_CXX $p"
19107          fi
19108        fi
19109        ;;
19110
19111     *) ;; # Ignore the rest.
19112
19113     esac
19114   done
19115
19116   # Clean up.
19117   rm -f a.out a.exe
19118 else
19119   echo "libtool.m4: error: problem compiling CXX test program"
19120 fi
19121
19122 $rm -f confest.$objext
19123
19124 # PORTME: override above test on systems where it is broken
19125 case $host_os in
19126 interix3*)
19127   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19128   # hack all around it, let's just trust "g++" to DTRT.
19129   predep_objects_CXX=
19130   postdep_objects_CXX=
19131   postdeps_CXX=
19132   ;;
19133
19134 solaris*)
19135   case $cc_basename in
19136   CC*)
19137     # Adding this requires a known-good setup of shared libraries for
19138     # Sun compiler versions before 5.6, else PIC objects from an old
19139     # archive will be linked into the output, leading to subtle bugs.
19140     postdeps_CXX='-lCstd -lCrun'
19141     ;;
19142   esac
19143   ;;
19144 esac
19145
19146
19147 case " $postdeps_CXX " in
19148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19149 esac
19150
19151 lt_prog_compiler_wl_CXX=
19152 lt_prog_compiler_pic_CXX=
19153 lt_prog_compiler_static_CXX=
19154
19155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19157
19158   # C++ specific cases for pic, static, wl, etc.
19159   if test "$GXX" = yes; then
19160     lt_prog_compiler_wl_CXX='-Wl,'
19161     lt_prog_compiler_static_CXX='-static'
19162
19163     case $host_os in
19164     aix*)
19165       # All AIX code is PIC.
19166       if test "$host_cpu" = ia64; then
19167         # AIX 5 now supports IA64 processor
19168         lt_prog_compiler_static_CXX='-Bstatic'
19169       fi
19170       ;;
19171     amigaos*)
19172       # FIXME: we need at least 68020 code to build shared libraries, but
19173       # adding the `-m68020' flag to GCC prevents building anything better,
19174       # like `-m68040'.
19175       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19176       ;;
19177     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19178       # PIC is the default for these OSes.
19179       ;;
19180     mingw* | os2* | pw32*)
19181       # This hack is so that the source file can tell whether it is being
19182       # built for inclusion in a dll (and should export symbols for example).
19183       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19184       ;;
19185     darwin* | rhapsody*)
19186       # PIC is the default on this platform
19187       # Common symbols not allowed in MH_DYLIB files
19188       lt_prog_compiler_pic_CXX='-fno-common'
19189       ;;
19190     *djgpp*)
19191       # DJGPP does not support shared libraries at all
19192       lt_prog_compiler_pic_CXX=
19193       ;;
19194     interix3*)
19195       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19196       # Instead, we relocate shared libraries at runtime.
19197       ;;
19198     sysv4*MP*)
19199       if test -d /usr/nec; then
19200         lt_prog_compiler_pic_CXX=-Kconform_pic
19201       fi
19202       ;;
19203     hpux*)
19204       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19205       # not for PA HP-UX.
19206       case $host_cpu in
19207       hppa*64*|ia64*)
19208         ;;
19209       *)
19210         lt_prog_compiler_pic_CXX='-fPIC'
19211         ;;
19212       esac
19213       ;;
19214     *)
19215       lt_prog_compiler_pic_CXX='-fPIC'
19216       ;;
19217     esac
19218   else
19219     case $host_os in
19220       aix4* | aix5*)
19221         # All AIX code is PIC.
19222         if test "$host_cpu" = ia64; then
19223           # AIX 5 now supports IA64 processor
19224           lt_prog_compiler_static_CXX='-Bstatic'
19225         else
19226           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19227         fi
19228         ;;
19229       chorus*)
19230         case $cc_basename in
19231         cxch68*)
19232           # Green Hills C++ Compiler
19233           # _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"
19234           ;;
19235         esac
19236         ;;
19237        darwin*)
19238          # PIC is the default on this platform
19239          # Common symbols not allowed in MH_DYLIB files
19240          case $cc_basename in
19241            xlc*)
19242            lt_prog_compiler_pic_CXX='-qnocommon'
19243            lt_prog_compiler_wl_CXX='-Wl,'
19244            ;;
19245          esac
19246        ;;
19247       dgux*)
19248         case $cc_basename in
19249           ec++*)
19250             lt_prog_compiler_pic_CXX='-KPIC'
19251             ;;
19252           ghcx*)
19253             # Green Hills C++ Compiler
19254             lt_prog_compiler_pic_CXX='-pic'
19255             ;;
19256           *)
19257             ;;
19258         esac
19259         ;;
19260       freebsd* | kfreebsd*-gnu | dragonfly*)
19261         # FreeBSD uses GNU C++
19262         ;;
19263       hpux9* | hpux10* | hpux11*)
19264         case $cc_basename in
19265           CC*)
19266             lt_prog_compiler_wl_CXX='-Wl,'
19267             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19268             if test "$host_cpu" != ia64; then
19269               lt_prog_compiler_pic_CXX='+Z'
19270             fi
19271             ;;
19272           aCC*)
19273             lt_prog_compiler_wl_CXX='-Wl,'
19274             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19275             case $host_cpu in
19276             hppa*64*|ia64*)
19277               # +Z the default
19278               ;;
19279             *)
19280               lt_prog_compiler_pic_CXX='+Z'
19281               ;;
19282             esac
19283             ;;
19284           *)
19285             ;;
19286         esac
19287         ;;
19288       interix*)
19289         # This is c89, which is MS Visual C++ (no shared libs)
19290         # Anyone wants to do a port?
19291         ;;
19292       irix5* | irix6* | nonstopux*)
19293         case $cc_basename in
19294           CC*)
19295             lt_prog_compiler_wl_CXX='-Wl,'
19296             lt_prog_compiler_static_CXX='-non_shared'
19297             # CC pic flag -KPIC is the default.
19298             ;;
19299           *)
19300             ;;
19301         esac
19302         ;;
19303       linux*)
19304         case $cc_basename in
19305           KCC*)
19306             # KAI C++ Compiler
19307             lt_prog_compiler_wl_CXX='--backend -Wl,'
19308             lt_prog_compiler_pic_CXX='-fPIC'
19309             ;;
19310           icpc* | ecpc*)
19311             # Intel C++
19312             lt_prog_compiler_wl_CXX='-Wl,'
19313             lt_prog_compiler_pic_CXX='-KPIC'
19314             lt_prog_compiler_static_CXX='-static'
19315             ;;
19316           pgCC*)
19317             # Portland Group C++ compiler.
19318             lt_prog_compiler_wl_CXX='-Wl,'
19319             lt_prog_compiler_pic_CXX='-fpic'
19320             lt_prog_compiler_static_CXX='-Bstatic'
19321             ;;
19322           cxx*)
19323             # Compaq C++
19324             # Make sure the PIC flag is empty.  It appears that all Alpha
19325             # Linux and Compaq Tru64 Unix objects are PIC.
19326             lt_prog_compiler_pic_CXX=
19327             lt_prog_compiler_static_CXX='-non_shared'
19328             ;;
19329           *)
19330             ;;
19331         esac
19332         ;;
19333       lynxos*)
19334         ;;
19335       m88k*)
19336         ;;
19337       mvs*)
19338         case $cc_basename in
19339           cxx*)
19340             lt_prog_compiler_pic_CXX='-W c,exportall'
19341             ;;
19342           *)
19343             ;;
19344         esac
19345         ;;
19346       netbsd*)
19347         ;;
19348       osf3* | osf4* | osf5*)
19349         case $cc_basename in
19350           KCC*)
19351             lt_prog_compiler_wl_CXX='--backend -Wl,'
19352             ;;
19353           RCC*)
19354             # Rational C++ 2.4.1
19355             lt_prog_compiler_pic_CXX='-pic'
19356             ;;
19357           cxx*)
19358             # Digital/Compaq C++
19359             lt_prog_compiler_wl_CXX='-Wl,'
19360             # Make sure the PIC flag is empty.  It appears that all Alpha
19361             # Linux and Compaq Tru64 Unix objects are PIC.
19362             lt_prog_compiler_pic_CXX=
19363             lt_prog_compiler_static_CXX='-non_shared'
19364             ;;
19365           *)
19366             ;;
19367         esac
19368         ;;
19369       psos*)
19370         ;;
19371       solaris*)
19372         case $cc_basename in
19373           CC*)
19374             # Sun C++ 4.2, 5.x and Centerline C++
19375             lt_prog_compiler_pic_CXX='-KPIC'
19376             lt_prog_compiler_static_CXX='-Bstatic'
19377             lt_prog_compiler_wl_CXX='-Qoption ld '
19378             ;;
19379           gcx*)
19380             # Green Hills C++ Compiler
19381             lt_prog_compiler_pic_CXX='-PIC'
19382             ;;
19383           *)
19384             ;;
19385         esac
19386         ;;
19387       sunos4*)
19388         case $cc_basename in
19389           CC*)
19390             # Sun C++ 4.x
19391             lt_prog_compiler_pic_CXX='-pic'
19392             lt_prog_compiler_static_CXX='-Bstatic'
19393             ;;
19394           lcc*)
19395             # Lucid
19396             lt_prog_compiler_pic_CXX='-pic'
19397             ;;
19398           *)
19399             ;;
19400         esac
19401         ;;
19402       tandem*)
19403         case $cc_basename in
19404           NCC*)
19405             # NonStop-UX NCC 3.20
19406             lt_prog_compiler_pic_CXX='-KPIC'
19407             ;;
19408           *)
19409             ;;
19410         esac
19411         ;;
19412       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19413         case $cc_basename in
19414           CC*)
19415             lt_prog_compiler_wl_CXX='-Wl,'
19416             lt_prog_compiler_pic_CXX='-KPIC'
19417             lt_prog_compiler_static_CXX='-Bstatic'
19418             ;;
19419         esac
19420         ;;
19421       vxworks*)
19422         ;;
19423       *)
19424         lt_prog_compiler_can_build_shared_CXX=no
19425         ;;
19426     esac
19427   fi
19428
19429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19430 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19431
19432 #
19433 # Check to make sure the PIC flag actually works.
19434 #
19435 if test -n "$lt_prog_compiler_pic_CXX"; then
19436
19437 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19439 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442   lt_prog_compiler_pic_works_CXX=no
19443   ac_outfile=conftest.$ac_objext
19444    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19445    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19446    # Insert the option either (1) after the last *FLAGS variable, or
19447    # (2) before a word containing "conftest.", or (3) at the end.
19448    # Note that $ac_compile itself does not contain backslashes and begins
19449    # with a dollar sign (not a hyphen), so the echo should work correctly.
19450    # The option is referenced via a variable to avoid confusing sed.
19451    lt_compile=`echo "$ac_compile" | $SED \
19452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19454    -e 's:$: $lt_compiler_flag:'`
19455    (eval echo "\"\$as_me:19455: $lt_compile\"" >&5)
19456    (eval "$lt_compile" 2>conftest.err)
19457    ac_status=$?
19458    cat conftest.err >&5
19459    echo "$as_me:19459: \$? = $ac_status" >&5
19460    if (exit $ac_status) && test -s "$ac_outfile"; then
19461      # The compiler can only warn and ignore the option if not recognized
19462      # So say no if there are warnings other than the usual output.
19463      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19464      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19465      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19466        lt_prog_compiler_pic_works_CXX=yes
19467      fi
19468    fi
19469    $rm conftest*
19470
19471 fi
19472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19473 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19474
19475 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19476     case $lt_prog_compiler_pic_CXX in
19477      "" | " "*) ;;
19478      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19479      esac
19480 else
19481     lt_prog_compiler_pic_CXX=
19482      lt_prog_compiler_can_build_shared_CXX=no
19483 fi
19484
19485 fi
19486 case $host_os in
19487   # For platforms which do not support PIC, -DPIC is meaningless:
19488   *djgpp*)
19489     lt_prog_compiler_pic_CXX=
19490     ;;
19491   *)
19492     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19493     ;;
19494 esac
19495
19496 #
19497 # Check to make sure the static flag actually works.
19498 #
19499 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19500 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19501 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19502 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   lt_prog_compiler_static_works_CXX=no
19506    save_LDFLAGS="$LDFLAGS"
19507    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19508    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19509    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19510      # The linker can only warn and ignore the option if not recognized
19511      # So say no if there are warnings
19512      if test -s conftest.err; then
19513        # Append any errors to the config.log.
19514        cat conftest.err 1>&5
19515        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19516        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19517        if diff conftest.exp conftest.er2 >/dev/null; then
19518          lt_prog_compiler_static_works_CXX=yes
19519        fi
19520      else
19521        lt_prog_compiler_static_works_CXX=yes
19522      fi
19523    fi
19524    $rm conftest*
19525    LDFLAGS="$save_LDFLAGS"
19526
19527 fi
19528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19529 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19530
19531 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19532     :
19533 else
19534     lt_prog_compiler_static_CXX=
19535 fi
19536
19537
19538 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19540 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   lt_cv_prog_compiler_c_o_CXX=no
19544    $rm -r conftest 2>/dev/null
19545    mkdir conftest
19546    cd conftest
19547    mkdir out
19548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19549
19550    lt_compiler_flag="-o out/conftest2.$ac_objext"
19551    # Insert the option either (1) after the last *FLAGS variable, or
19552    # (2) before a word containing "conftest.", or (3) at the end.
19553    # Note that $ac_compile itself does not contain backslashes and begins
19554    # with a dollar sign (not a hyphen), so the echo should work correctly.
19555    lt_compile=`echo "$ac_compile" | $SED \
19556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19558    -e 's:$: $lt_compiler_flag:'`
19559    (eval echo "\"\$as_me:19559: $lt_compile\"" >&5)
19560    (eval "$lt_compile" 2>out/conftest.err)
19561    ac_status=$?
19562    cat out/conftest.err >&5
19563    echo "$as_me:19563: \$? = $ac_status" >&5
19564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19565    then
19566      # The compiler can only warn and ignore the option if not recognized
19567      # So say no if there are warnings
19568      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19571        lt_cv_prog_compiler_c_o_CXX=yes
19572      fi
19573    fi
19574    chmod u+w . 2>&5
19575    $rm conftest*
19576    # SGI C++ compiler will create directory out/ii_files/ for
19577    # template instantiation
19578    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19579    $rm out/* && rmdir out
19580    cd ..
19581    rmdir conftest
19582    $rm conftest*
19583
19584 fi
19585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19587
19588
19589 hard_links="nottested"
19590 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19591   # do not overwrite the value of need_locks provided by the user
19592   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19594   hard_links=yes
19595   $rm conftest*
19596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19597   touch conftest.a
19598   ln conftest.a conftest.b 2>&5 || hard_links=no
19599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19600   { echo "$as_me:$LINENO: result: $hard_links" >&5
19601 echo "${ECHO_T}$hard_links" >&6; }
19602   if test "$hard_links" = no; then
19603     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19605     need_locks=warn
19606   fi
19607 else
19608   need_locks=no
19609 fi
19610
19611 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19613
19614   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19615   case $host_os in
19616   aix4* | aix5*)
19617     # If we're using GNU nm, then we don't want the "-C" option.
19618     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19619     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19620       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'
19621     else
19622       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'
19623     fi
19624     ;;
19625   pw32*)
19626     export_symbols_cmds_CXX="$ltdll_cmds"
19627   ;;
19628   cygwin* | mingw*)
19629     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'
19630   ;;
19631   *)
19632     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19633   ;;
19634   esac
19635
19636 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19637 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19638 test "$ld_shlibs_CXX" = no && can_build_shared=no
19639
19640 #
19641 # Do we need to explicitly link libc?
19642 #
19643 case "x$archive_cmds_need_lc_CXX" in
19644 x|xyes)
19645   # Assume -lc should be added
19646   archive_cmds_need_lc_CXX=yes
19647
19648   if test "$enable_shared" = yes && test "$GCC" = yes; then
19649     case $archive_cmds_CXX in
19650     *'~'*)
19651       # FIXME: we may have to deal with multi-command sequences.
19652       ;;
19653     '$CC '*)
19654       # Test whether the compiler implicitly links with -lc since on some
19655       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19656       # to ld, don't add -lc before -lgcc.
19657       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19659       $rm conftest*
19660       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19661
19662       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663   (eval $ac_compile) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } 2>conftest.err; then
19667         soname=conftest
19668         lib=conftest
19669         libobjs=conftest.$ac_objext
19670         deplibs=
19671         wl=$lt_prog_compiler_wl_CXX
19672         pic_flag=$lt_prog_compiler_pic_CXX
19673         compiler_flags=-v
19674         linker_flags=-v
19675         verstring=
19676         output_objdir=.
19677         libname=conftest
19678         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19679         allow_undefined_flag_CXX=
19680         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19681   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }
19685         then
19686           archive_cmds_need_lc_CXX=no
19687         else
19688           archive_cmds_need_lc_CXX=yes
19689         fi
19690         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19691       else
19692         cat conftest.err 1>&5
19693       fi
19694       $rm conftest*
19695       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19696 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19697       ;;
19698     esac
19699   fi
19700   ;;
19701 esac
19702
19703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19705 library_names_spec=
19706 libname_spec='lib$name'
19707 soname_spec=
19708 shrext_cmds=".so"
19709 postinstall_cmds=
19710 postuninstall_cmds=
19711 finish_cmds=
19712 finish_eval=
19713 shlibpath_var=
19714 shlibpath_overrides_runpath=unknown
19715 version_type=none
19716 dynamic_linker="$host_os ld.so"
19717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19718 if test "$GCC" = yes; then
19719   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19720   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19721     # if the path contains ";" then we assume it to be the separator
19722     # otherwise default to the standard path separator (i.e. ":") - it is
19723     # assumed that no part of a normal pathname contains ";" but that should
19724     # okay in the real world where ";" in dirpaths is itself problematic.
19725     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19726   else
19727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19728   fi
19729 else
19730   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19731 fi
19732 need_lib_prefix=unknown
19733 hardcode_into_libs=no
19734
19735 # when you set need_version to no, make sure it does not cause -set_version
19736 # flags to be left without arguments
19737 need_version=unknown
19738
19739 case $host_os in
19740 aix3*)
19741   version_type=linux
19742   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19743   shlibpath_var=LIBPATH
19744
19745   # AIX 3 has no versioning support, so we append a major version to the name.
19746   soname_spec='${libname}${release}${shared_ext}$major'
19747   ;;
19748
19749 aix4* | aix5*)
19750   version_type=linux
19751   need_lib_prefix=no
19752   need_version=no
19753   hardcode_into_libs=yes
19754   if test "$host_cpu" = ia64; then
19755     # AIX 5 supports IA64
19756     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19757     shlibpath_var=LD_LIBRARY_PATH
19758   else
19759     # With GCC up to 2.95.x, collect2 would create an import file
19760     # for dependence libraries.  The import file would start with
19761     # the line `#! .'.  This would cause the generated library to
19762     # depend on `.', always an invalid library.  This was fixed in
19763     # development snapshots of GCC prior to 3.0.
19764     case $host_os in
19765       aix4 | aix4.[01] | aix4.[01].*)
19766       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19767            echo ' yes '
19768            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19769         :
19770       else
19771         can_build_shared=no
19772       fi
19773       ;;
19774     esac
19775     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19776     # soname into executable. Probably we can add versioning support to
19777     # collect2, so additional links can be useful in future.
19778     if test "$aix_use_runtimelinking" = yes; then
19779       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19780       # instead of lib<name>.a to let people know that these are not
19781       # typical AIX shared libraries.
19782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783     else
19784       # We preserve .a as extension for shared libraries through AIX4.2
19785       # and later when we are not doing run time linking.
19786       library_names_spec='${libname}${release}.a $libname.a'
19787       soname_spec='${libname}${release}${shared_ext}$major'
19788     fi
19789     shlibpath_var=LIBPATH
19790   fi
19791   ;;
19792
19793 amigaos*)
19794   library_names_spec='$libname.ixlibrary $libname.a'
19795   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19796   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'
19797   ;;
19798
19799 beos*)
19800   library_names_spec='${libname}${shared_ext}'
19801   dynamic_linker="$host_os ld.so"
19802   shlibpath_var=LIBRARY_PATH
19803   ;;
19804
19805 bsdi[45]*)
19806   version_type=linux
19807   need_version=no
19808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19809   soname_spec='${libname}${release}${shared_ext}$major'
19810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19811   shlibpath_var=LD_LIBRARY_PATH
19812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19814   # the default ld.so.conf also contains /usr/contrib/lib and
19815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19816   # libtool to hard-code these into programs
19817   ;;
19818
19819 cygwin* | mingw* | pw32*)
19820   version_type=windows
19821   shrext_cmds=".dll"
19822   need_version=no
19823   need_lib_prefix=no
19824
19825   case $GCC,$host_os in
19826   yes,cygwin* | yes,mingw* | yes,pw32*)
19827     library_names_spec='$libname.dll.a'
19828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19829     postinstall_cmds='base_file=`basename \${file}`~
19830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19831       dldir=$destdir/`dirname \$dlpath`~
19832       test -d \$dldir || mkdir -p \$dldir~
19833       $install_prog $dir/$dlname \$dldir/$dlname~
19834       chmod a+x \$dldir/$dlname'
19835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19836       dlpath=$dir/\$dldll~
19837        $rm \$dlpath'
19838     shlibpath_overrides_runpath=yes
19839
19840     case $host_os in
19841     cygwin*)
19842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19845       ;;
19846     mingw*)
19847       # MinGW DLLs use traditional 'lib' prefix
19848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19851         # It is most probably a Windows format PATH printed by
19852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19853         # path with ; separators, and with drive letters. We can handle the
19854         # drive letters (cygwin fileutils understands them), so leave them,
19855         # especially as we might pass files found there to a mingw objdump,
19856         # which wouldn't understand a cygwinified path. Ahh.
19857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19858       else
19859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19860       fi
19861       ;;
19862     pw32*)
19863       # pw32 DLLs use 'pw' prefix rather than 'lib'
19864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19865       ;;
19866     esac
19867     ;;
19868
19869   *)
19870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19871     ;;
19872   esac
19873   dynamic_linker='Win32 ld.exe'
19874   # FIXME: first we should search . and the directory the executable is in
19875   shlibpath_var=PATH
19876   ;;
19877
19878 darwin* | rhapsody*)
19879   dynamic_linker="$host_os dyld"
19880   version_type=darwin
19881   need_lib_prefix=no
19882   need_version=no
19883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19884   soname_spec='${libname}${release}${major}$shared_ext'
19885   shlibpath_overrides_runpath=yes
19886   shlibpath_var=DYLD_LIBRARY_PATH
19887   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19888   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19889   if test "$GCC" = yes; then
19890     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"`
19891   else
19892     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19893   fi
19894   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19895   ;;
19896
19897 dgux*)
19898   version_type=linux
19899   need_lib_prefix=no
19900   need_version=no
19901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19902   soname_spec='${libname}${release}${shared_ext}$major'
19903   shlibpath_var=LD_LIBRARY_PATH
19904   ;;
19905
19906 freebsd1*)
19907   dynamic_linker=no
19908   ;;
19909
19910 kfreebsd*-gnu)
19911   version_type=linux
19912   need_lib_prefix=no
19913   need_version=no
19914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19915   soname_spec='${libname}${release}${shared_ext}$major'
19916   shlibpath_var=LD_LIBRARY_PATH
19917   shlibpath_overrides_runpath=no
19918   hardcode_into_libs=yes
19919   dynamic_linker='GNU ld.so'
19920   ;;
19921
19922 freebsd* | dragonfly*)
19923   # DragonFly does not have aout.  When/if they implement a new
19924   # versioning mechanism, adjust this.
19925   if test -x /usr/bin/objformat; then
19926     objformat=`/usr/bin/objformat`
19927   else
19928     case $host_os in
19929     freebsd[123]*) objformat=aout ;;
19930     *) objformat=elf ;;
19931     esac
19932   fi
19933   version_type=freebsd-$objformat
19934   case $version_type in
19935     freebsd-elf*)
19936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19937       need_version=no
19938       need_lib_prefix=no
19939       ;;
19940     freebsd-*)
19941       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19942       need_version=yes
19943       ;;
19944   esac
19945   shlibpath_var=LD_LIBRARY_PATH
19946   case $host_os in
19947   freebsd2*)
19948     shlibpath_overrides_runpath=yes
19949     ;;
19950   freebsd3.[01]* | freebsdelf3.[01]*)
19951     shlibpath_overrides_runpath=yes
19952     hardcode_into_libs=yes
19953     ;;
19954   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19955   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19956     shlibpath_overrides_runpath=no
19957     hardcode_into_libs=yes
19958     ;;
19959   freebsd*) # from 4.6 on
19960     shlibpath_overrides_runpath=yes
19961     hardcode_into_libs=yes
19962     ;;
19963   esac
19964   ;;
19965
19966 gnu*)
19967   version_type=linux
19968   need_lib_prefix=no
19969   need_version=no
19970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19971   soname_spec='${libname}${release}${shared_ext}$major'
19972   shlibpath_var=LD_LIBRARY_PATH
19973   hardcode_into_libs=yes
19974   ;;
19975
19976 hpux9* | hpux10* | hpux11*)
19977   # Give a soname corresponding to the major version so that dld.sl refuses to
19978   # link against other versions.
19979   version_type=sunos
19980   need_lib_prefix=no
19981   need_version=no
19982   case $host_cpu in
19983   ia64*)
19984     shrext_cmds='.so'
19985     hardcode_into_libs=yes
19986     dynamic_linker="$host_os dld.so"
19987     shlibpath_var=LD_LIBRARY_PATH
19988     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990     soname_spec='${libname}${release}${shared_ext}$major'
19991     if test "X$HPUX_IA64_MODE" = X32; then
19992       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19993     else
19994       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19995     fi
19996     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19997     ;;
19998    hppa*64*)
19999      shrext_cmds='.sl'
20000      hardcode_into_libs=yes
20001      dynamic_linker="$host_os dld.sl"
20002      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20003      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20004      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005      soname_spec='${libname}${release}${shared_ext}$major'
20006      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20007      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20008      ;;
20009    *)
20010     shrext_cmds='.sl'
20011     dynamic_linker="$host_os dld.sl"
20012     shlibpath_var=SHLIB_PATH
20013     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20015     soname_spec='${libname}${release}${shared_ext}$major'
20016     ;;
20017   esac
20018   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20019   postinstall_cmds='chmod 555 $lib'
20020   ;;
20021
20022 interix3*)
20023   version_type=linux
20024   need_lib_prefix=no
20025   need_version=no
20026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20027   soname_spec='${libname}${release}${shared_ext}$major'
20028   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20029   shlibpath_var=LD_LIBRARY_PATH
20030   shlibpath_overrides_runpath=no
20031   hardcode_into_libs=yes
20032   ;;
20033
20034 irix5* | irix6* | nonstopux*)
20035   case $host_os in
20036     nonstopux*) version_type=nonstopux ;;
20037     *)
20038         if test "$lt_cv_prog_gnu_ld" = yes; then
20039                 version_type=linux
20040         else
20041                 version_type=irix
20042         fi ;;
20043   esac
20044   need_lib_prefix=no
20045   need_version=no
20046   soname_spec='${libname}${release}${shared_ext}$major'
20047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20048   case $host_os in
20049   irix5* | nonstopux*)
20050     libsuff= shlibsuff=
20051     ;;
20052   *)
20053     case $LD in # libtool.m4 will add one of these switches to LD
20054     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20055       libsuff= shlibsuff= libmagic=32-bit;;
20056     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20057       libsuff=32 shlibsuff=N32 libmagic=N32;;
20058     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20059       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20060     *) libsuff= shlibsuff= libmagic=never-match;;
20061     esac
20062     ;;
20063   esac
20064   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20065   shlibpath_overrides_runpath=no
20066   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20067   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20068   hardcode_into_libs=yes
20069   ;;
20070
20071 # No shared lib support for Linux oldld, aout, or coff.
20072 linux*oldld* | linux*aout* | linux*coff*)
20073   dynamic_linker=no
20074   ;;
20075
20076 # This must be Linux ELF.
20077 linux*)
20078   version_type=linux
20079   need_lib_prefix=no
20080   need_version=no
20081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20082   soname_spec='${libname}${release}${shared_ext}$major'
20083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20084   shlibpath_var=LD_LIBRARY_PATH
20085   shlibpath_overrides_runpath=no
20086   # This implies no fast_install, which is unacceptable.
20087   # Some rework will be needed to allow for fast_install
20088   # before this can be enabled.
20089   hardcode_into_libs=yes
20090
20091   # Append ld.so.conf contents to the search path
20092   if test -f /etc/ld.so.conf; then
20093     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' ' '`
20094     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20095   fi
20096
20097   # We used to test for /lib/ld.so.1 and disable shared libraries on
20098   # powerpc, because MkLinux only supported shared libraries with the
20099   # GNU dynamic linker.  Since this was broken with cross compilers,
20100   # most powerpc-linux boxes support dynamic linking these days and
20101   # people can always --disable-shared, the test was removed, and we
20102   # assume the GNU/Linux dynamic linker is in use.
20103   dynamic_linker='GNU/Linux ld.so'
20104   ;;
20105
20106 knetbsd*-gnu)
20107   version_type=linux
20108   need_lib_prefix=no
20109   need_version=no
20110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20111   soname_spec='${libname}${release}${shared_ext}$major'
20112   shlibpath_var=LD_LIBRARY_PATH
20113   shlibpath_overrides_runpath=no
20114   hardcode_into_libs=yes
20115   dynamic_linker='GNU ld.so'
20116   ;;
20117
20118 netbsd*)
20119   version_type=sunos
20120   need_lib_prefix=no
20121   need_version=no
20122   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125     dynamic_linker='NetBSD (a.out) ld.so'
20126   else
20127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20128     soname_spec='${libname}${release}${shared_ext}$major'
20129     dynamic_linker='NetBSD ld.elf_so'
20130   fi
20131   shlibpath_var=LD_LIBRARY_PATH
20132   shlibpath_overrides_runpath=yes
20133   hardcode_into_libs=yes
20134   ;;
20135
20136 newsos6)
20137   version_type=linux
20138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139   shlibpath_var=LD_LIBRARY_PATH
20140   shlibpath_overrides_runpath=yes
20141   ;;
20142
20143 nto-qnx*)
20144   version_type=linux
20145   need_lib_prefix=no
20146   need_version=no
20147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148   soname_spec='${libname}${release}${shared_ext}$major'
20149   shlibpath_var=LD_LIBRARY_PATH
20150   shlibpath_overrides_runpath=yes
20151   ;;
20152
20153 openbsd*)
20154   version_type=sunos
20155   sys_lib_dlsearch_path_spec="/usr/lib"
20156   need_lib_prefix=no
20157   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20158   case $host_os in
20159     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20160     *)                         need_version=no  ;;
20161   esac
20162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20163   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20164   shlibpath_var=LD_LIBRARY_PATH
20165   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20166     case $host_os in
20167       openbsd2.[89] | openbsd2.[89].*)
20168         shlibpath_overrides_runpath=no
20169         ;;
20170       *)
20171         shlibpath_overrides_runpath=yes
20172         ;;
20173       esac
20174   else
20175     shlibpath_overrides_runpath=yes
20176   fi
20177   ;;
20178
20179 os2*)
20180   libname_spec='$name'
20181   shrext_cmds=".dll"
20182   need_lib_prefix=no
20183   library_names_spec='$libname${shared_ext} $libname.a'
20184   dynamic_linker='OS/2 ld.exe'
20185   shlibpath_var=LIBPATH
20186   ;;
20187
20188 osf3* | osf4* | osf5*)
20189   version_type=osf
20190   need_lib_prefix=no
20191   need_version=no
20192   soname_spec='${libname}${release}${shared_ext}$major'
20193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194   shlibpath_var=LD_LIBRARY_PATH
20195   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20196   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20197   ;;
20198
20199 solaris*)
20200   version_type=linux
20201   need_lib_prefix=no
20202   need_version=no
20203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204   soname_spec='${libname}${release}${shared_ext}$major'
20205   shlibpath_var=LD_LIBRARY_PATH
20206   shlibpath_overrides_runpath=yes
20207   hardcode_into_libs=yes
20208   # ldd complains unless libraries are executable
20209   postinstall_cmds='chmod +x $lib'
20210   ;;
20211
20212 sunos4*)
20213   version_type=sunos
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20216   shlibpath_var=LD_LIBRARY_PATH
20217   shlibpath_overrides_runpath=yes
20218   if test "$with_gnu_ld" = yes; then
20219     need_lib_prefix=no
20220   fi
20221   need_version=yes
20222   ;;
20223
20224 sysv4 | sysv4.3*)
20225   version_type=linux
20226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227   soname_spec='${libname}${release}${shared_ext}$major'
20228   shlibpath_var=LD_LIBRARY_PATH
20229   case $host_vendor in
20230     sni)
20231       shlibpath_overrides_runpath=no
20232       need_lib_prefix=no
20233       export_dynamic_flag_spec='${wl}-Blargedynsym'
20234       runpath_var=LD_RUN_PATH
20235       ;;
20236     siemens)
20237       need_lib_prefix=no
20238       ;;
20239     motorola)
20240       need_lib_prefix=no
20241       need_version=no
20242       shlibpath_overrides_runpath=no
20243       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20244       ;;
20245   esac
20246   ;;
20247
20248 sysv4*MP*)
20249   if test -d /usr/nec ;then
20250     version_type=linux
20251     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20252     soname_spec='$libname${shared_ext}.$major'
20253     shlibpath_var=LD_LIBRARY_PATH
20254   fi
20255   ;;
20256
20257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20258   version_type=freebsd-elf
20259   need_lib_prefix=no
20260   need_version=no
20261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20262   soname_spec='${libname}${release}${shared_ext}$major'
20263   shlibpath_var=LD_LIBRARY_PATH
20264   hardcode_into_libs=yes
20265   if test "$with_gnu_ld" = yes; then
20266     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20267     shlibpath_overrides_runpath=no
20268   else
20269     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20270     shlibpath_overrides_runpath=yes
20271     case $host_os in
20272       sco3.2v5*)
20273         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20274         ;;
20275     esac
20276   fi
20277   sys_lib_dlsearch_path_spec='/usr/lib'
20278   ;;
20279
20280 uts4*)
20281   version_type=linux
20282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283   soname_spec='${libname}${release}${shared_ext}$major'
20284   shlibpath_var=LD_LIBRARY_PATH
20285   ;;
20286
20287 *)
20288   dynamic_linker=no
20289   ;;
20290 esac
20291 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20292 echo "${ECHO_T}$dynamic_linker" >&6; }
20293 test "$dynamic_linker" = no && can_build_shared=no
20294
20295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20296 if test "$GCC" = yes; then
20297   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20298 fi
20299
20300 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20302 hardcode_action_CXX=
20303 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20304    test -n "$runpath_var_CXX" || \
20305    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20306
20307   # We can hardcode non-existant directories.
20308   if test "$hardcode_direct_CXX" != no &&
20309      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20310      # have to relink, otherwise we might link with an installed library
20311      # when we should be linking with a yet-to-be-installed one
20312      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20313      test "$hardcode_minus_L_CXX" != no; then
20314     # Linking always hardcodes the temporary library directory.
20315     hardcode_action_CXX=relink
20316   else
20317     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20318     hardcode_action_CXX=immediate
20319   fi
20320 else
20321   # We cannot hardcode anything, or else we can only hardcode existing
20322   # directories.
20323   hardcode_action_CXX=unsupported
20324 fi
20325 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20326 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20327
20328 if test "$hardcode_action_CXX" = relink; then
20329   # Fast installation is not supported
20330   enable_fast_install=no
20331 elif test "$shlibpath_overrides_runpath" = yes ||
20332      test "$enable_shared" = no; then
20333   # Fast installation is not necessary
20334   enable_fast_install=needless
20335 fi
20336
20337
20338 # The else clause should only fire when bootstrapping the
20339 # libtool distribution, otherwise you forgot to ship ltmain.sh
20340 # with your package, and you will get complaints that there are
20341 # no rules to generate ltmain.sh.
20342 if test -f "$ltmain"; then
20343   # See if we are running on zsh, and set the options which allow our commands through
20344   # without removal of \ escapes.
20345   if test -n "${ZSH_VERSION+set}" ; then
20346     setopt NO_GLOB_SUBST
20347   fi
20348   # Now quote all the things that may contain metacharacters while being
20349   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20350   # variables and quote the copies for generation of the libtool script.
20351   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20352     SED SHELL STRIP \
20353     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20354     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20355     deplibs_check_method reload_flag reload_cmds need_locks \
20356     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20357     lt_cv_sys_global_symbol_to_c_name_address \
20358     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20359     old_postinstall_cmds old_postuninstall_cmds \
20360     compiler_CXX \
20361     CC_CXX \
20362     LD_CXX \
20363     lt_prog_compiler_wl_CXX \
20364     lt_prog_compiler_pic_CXX \
20365     lt_prog_compiler_static_CXX \
20366     lt_prog_compiler_no_builtin_flag_CXX \
20367     export_dynamic_flag_spec_CXX \
20368     thread_safe_flag_spec_CXX \
20369     whole_archive_flag_spec_CXX \
20370     enable_shared_with_static_runtimes_CXX \
20371     old_archive_cmds_CXX \
20372     old_archive_from_new_cmds_CXX \
20373     predep_objects_CXX \
20374     postdep_objects_CXX \
20375     predeps_CXX \
20376     postdeps_CXX \
20377     compiler_lib_search_path_CXX \
20378     archive_cmds_CXX \
20379     archive_expsym_cmds_CXX \
20380     postinstall_cmds_CXX \
20381     postuninstall_cmds_CXX \
20382     old_archive_from_expsyms_cmds_CXX \
20383     allow_undefined_flag_CXX \
20384     no_undefined_flag_CXX \
20385     export_symbols_cmds_CXX \
20386     hardcode_libdir_flag_spec_CXX \
20387     hardcode_libdir_flag_spec_ld_CXX \
20388     hardcode_libdir_separator_CXX \
20389     hardcode_automatic_CXX \
20390     module_cmds_CXX \
20391     module_expsym_cmds_CXX \
20392     lt_cv_prog_compiler_c_o_CXX \
20393     exclude_expsyms_CXX \
20394     include_expsyms_CXX; do
20395
20396     case $var in
20397     old_archive_cmds_CXX | \
20398     old_archive_from_new_cmds_CXX | \
20399     archive_cmds_CXX | \
20400     archive_expsym_cmds_CXX | \
20401     module_cmds_CXX | \
20402     module_expsym_cmds_CXX | \
20403     old_archive_from_expsyms_cmds_CXX | \
20404     export_symbols_cmds_CXX | \
20405     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20406     postinstall_cmds | postuninstall_cmds | \
20407     old_postinstall_cmds | old_postuninstall_cmds | \
20408     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20409       # Double-quote double-evaled strings.
20410       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20411       ;;
20412     *)
20413       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20414       ;;
20415     esac
20416   done
20417
20418   case $lt_echo in
20419   *'\$0 --fallback-echo"')
20420     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20421     ;;
20422   esac
20423
20424 cfgfile="$ofile"
20425
20426   cat <<__EOF__ >> "$cfgfile"
20427 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20428
20429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20430
20431 # Shell to use when invoking shell scripts.
20432 SHELL=$lt_SHELL
20433
20434 # Whether or not to build shared libraries.
20435 build_libtool_libs=$enable_shared
20436
20437 # Whether or not to build static libraries.
20438 build_old_libs=$enable_static
20439
20440 # Whether or not to add -lc for building shared libraries.
20441 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20442
20443 # Whether or not to disallow shared libs when runtime libs are static
20444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20445
20446 # Whether or not to optimize for fast installation.
20447 fast_install=$enable_fast_install
20448
20449 # The host system.
20450 host_alias=$host_alias
20451 host=$host
20452 host_os=$host_os
20453
20454 # The build system.
20455 build_alias=$build_alias
20456 build=$build
20457 build_os=$build_os
20458
20459 # An echo program that does not interpret backslashes.
20460 echo=$lt_echo
20461
20462 # The archiver.
20463 AR=$lt_AR
20464 AR_FLAGS=$lt_AR_FLAGS
20465
20466 # A C compiler.
20467 LTCC=$lt_LTCC
20468
20469 # LTCC compiler flags.
20470 LTCFLAGS=$lt_LTCFLAGS
20471
20472 # A language-specific compiler.
20473 CC=$lt_compiler_CXX
20474
20475 # Is the compiler the GNU C compiler?
20476 with_gcc=$GCC_CXX
20477
20478 # An ERE matcher.
20479 EGREP=$lt_EGREP
20480
20481 # The linker used to build libraries.
20482 LD=$lt_LD_CXX
20483
20484 # Whether we need hard or soft links.
20485 LN_S=$lt_LN_S
20486
20487 # A BSD-compatible nm program.
20488 NM=$lt_NM
20489
20490 # A symbol stripping program
20491 STRIP=$lt_STRIP
20492
20493 # Used to examine libraries when file_magic_cmd begins "file"
20494 MAGIC_CMD=$MAGIC_CMD
20495
20496 # Used on cygwin: DLL creation program.
20497 DLLTOOL="$DLLTOOL"
20498
20499 # Used on cygwin: object dumper.
20500 OBJDUMP="$OBJDUMP"
20501
20502 # Used on cygwin: assembler.
20503 AS="$AS"
20504
20505 # The name of the directory that contains temporary libtool files.
20506 objdir=$objdir
20507
20508 # How to create reloadable object files.
20509 reload_flag=$lt_reload_flag
20510 reload_cmds=$lt_reload_cmds
20511
20512 # How to pass a linker flag through the compiler.
20513 wl=$lt_lt_prog_compiler_wl_CXX
20514
20515 # Object file suffix (normally "o").
20516 objext="$ac_objext"
20517
20518 # Old archive suffix (normally "a").
20519 libext="$libext"
20520
20521 # Shared library suffix (normally ".so").
20522 shrext_cmds='$shrext_cmds'
20523
20524 # Executable file suffix (normally "").
20525 exeext="$exeext"
20526
20527 # Additional compiler flags for building library objects.
20528 pic_flag=$lt_lt_prog_compiler_pic_CXX
20529 pic_mode=$pic_mode
20530
20531 # What is the maximum length of a command?
20532 max_cmd_len=$lt_cv_sys_max_cmd_len
20533
20534 # Does compiler simultaneously support -c and -o options?
20535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20536
20537 # Must we lock files when doing compilation?
20538 need_locks=$lt_need_locks
20539
20540 # Do we need the lib prefix for modules?
20541 need_lib_prefix=$need_lib_prefix
20542
20543 # Do we need a version for libraries?
20544 need_version=$need_version
20545
20546 # Whether dlopen is supported.
20547 dlopen_support=$enable_dlopen
20548
20549 # Whether dlopen of programs is supported.
20550 dlopen_self=$enable_dlopen_self
20551
20552 # Whether dlopen of statically linked programs is supported.
20553 dlopen_self_static=$enable_dlopen_self_static
20554
20555 # Compiler flag to prevent dynamic linking.
20556 link_static_flag=$lt_lt_prog_compiler_static_CXX
20557
20558 # Compiler flag to turn off builtin functions.
20559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20560
20561 # Compiler flag to allow reflexive dlopens.
20562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20563
20564 # Compiler flag to generate shared objects directly from archives.
20565 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20566
20567 # Compiler flag to generate thread-safe objects.
20568 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20569
20570 # Library versioning type.
20571 version_type=$version_type
20572
20573 # Format of library name prefix.
20574 libname_spec=$lt_libname_spec
20575
20576 # List of archive names.  First name is the real one, the rest are links.
20577 # The last name is the one that the linker finds with -lNAME.
20578 library_names_spec=$lt_library_names_spec
20579
20580 # The coded name of the library, if different from the real name.
20581 soname_spec=$lt_soname_spec
20582
20583 # Commands used to build and install an old-style archive.
20584 RANLIB=$lt_RANLIB
20585 old_archive_cmds=$lt_old_archive_cmds_CXX
20586 old_postinstall_cmds=$lt_old_postinstall_cmds
20587 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20588
20589 # Create an old-style archive from a shared archive.
20590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20591
20592 # Create a temporary old-style archive to link instead of a shared archive.
20593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20594
20595 # Commands used to build and install a shared archive.
20596 archive_cmds=$lt_archive_cmds_CXX
20597 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20598 postinstall_cmds=$lt_postinstall_cmds
20599 postuninstall_cmds=$lt_postuninstall_cmds
20600
20601 # Commands used to build a loadable module (assumed same as above if empty)
20602 module_cmds=$lt_module_cmds_CXX
20603 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20604
20605 # Commands to strip libraries.
20606 old_striplib=$lt_old_striplib
20607 striplib=$lt_striplib
20608
20609 # Dependencies to place before the objects being linked to create a
20610 # shared library.
20611 predep_objects=$lt_predep_objects_CXX
20612
20613 # Dependencies to place after the objects being linked to create a
20614 # shared library.
20615 postdep_objects=$lt_postdep_objects_CXX
20616
20617 # Dependencies to place before the objects being linked to create a
20618 # shared library.
20619 predeps=$lt_predeps_CXX
20620
20621 # Dependencies to place after the objects being linked to create a
20622 # shared library.
20623 postdeps=$lt_postdeps_CXX
20624
20625 # The library search path used internally by the compiler when linking
20626 # a shared library.
20627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20628
20629 # Method to check whether dependent libraries are shared objects.
20630 deplibs_check_method=$lt_deplibs_check_method
20631
20632 # Command to use when deplibs_check_method == file_magic.
20633 file_magic_cmd=$lt_file_magic_cmd
20634
20635 # Flag that allows shared libraries with undefined symbols to be built.
20636 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20637
20638 # Flag that forces no undefined symbols.
20639 no_undefined_flag=$lt_no_undefined_flag_CXX
20640
20641 # Commands used to finish a libtool library installation in a directory.
20642 finish_cmds=$lt_finish_cmds
20643
20644 # Same as above, but a single script fragment to be evaled but not shown.
20645 finish_eval=$lt_finish_eval
20646
20647 # Take the output of nm and produce a listing of raw symbols and C names.
20648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20649
20650 # Transform the output of nm in a proper C declaration
20651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20652
20653 # Transform the output of nm in a C name address pair
20654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20655
20656 # This is the shared library runtime path variable.
20657 runpath_var=$runpath_var
20658
20659 # This is the shared library path variable.
20660 shlibpath_var=$shlibpath_var
20661
20662 # Is shlibpath searched before the hard-coded library search path?
20663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20664
20665 # How to hardcode a shared library path into an executable.
20666 hardcode_action=$hardcode_action_CXX
20667
20668 # Whether we should hardcode library paths into libraries.
20669 hardcode_into_libs=$hardcode_into_libs
20670
20671 # Flag to hardcode \$libdir into a binary during linking.
20672 # This must work even if \$libdir does not exist.
20673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20674
20675 # If ld is used when linking, flag to hardcode \$libdir into
20676 # a binary during linking. This must work even if \$libdir does
20677 # not exist.
20678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20679
20680 # Whether we need a single -rpath flag with a separated argument.
20681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20682
20683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20684 # resulting binary.
20685 hardcode_direct=$hardcode_direct_CXX
20686
20687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20688 # resulting binary.
20689 hardcode_minus_L=$hardcode_minus_L_CXX
20690
20691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20692 # the resulting binary.
20693 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20694
20695 # Set to yes if building a shared library automatically hardcodes DIR into the library
20696 # and all subsequent libraries and executables linked against it.
20697 hardcode_automatic=$hardcode_automatic_CXX
20698
20699 # Variables whose values should be saved in libtool wrapper scripts and
20700 # restored at relink time.
20701 variables_saved_for_relink="$variables_saved_for_relink"
20702
20703 # Whether libtool must link a program against all its dependency libraries.
20704 link_all_deplibs=$link_all_deplibs_CXX
20705
20706 # Compile-time system search path for libraries
20707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20708
20709 # Run-time system search path for libraries
20710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20711
20712 # Fix the shell variable \$srcfile for the compiler.
20713 fix_srcfile_path="$fix_srcfile_path_CXX"
20714
20715 # Set to yes if exported symbols are required.
20716 always_export_symbols=$always_export_symbols_CXX
20717
20718 # The commands to list exported symbols.
20719 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20720
20721 # The commands to extract the exported symbol list from a shared archive.
20722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20723
20724 # Symbols that should not be listed in the preloaded symbols.
20725 exclude_expsyms=$lt_exclude_expsyms_CXX
20726
20727 # Symbols that must always be exported.
20728 include_expsyms=$lt_include_expsyms_CXX
20729
20730 # ### END LIBTOOL TAG CONFIG: $tagname
20731
20732 __EOF__
20733
20734
20735 else
20736   # If there is no Makefile yet, we rely on a make rule to execute
20737   # `config.status --recheck' to rerun these tests and create the
20738   # libtool script then.
20739   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20740   if test -f "$ltmain_in"; then
20741     test -f Makefile && make "$ltmain"
20742   fi
20743 fi
20744
20745
20746 ac_ext=c
20747 ac_cpp='$CPP $CPPFLAGS'
20748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20751
20752 CC=$lt_save_CC
20753 LDCXX=$LD
20754 LD=$lt_save_LD
20755 GCC=$lt_save_GCC
20756 with_gnu_ldcxx=$with_gnu_ld
20757 with_gnu_ld=$lt_save_with_gnu_ld
20758 lt_cv_path_LDCXX=$lt_cv_path_LD
20759 lt_cv_path_LD=$lt_save_path_LD
20760 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20761 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20762
20763         else
20764           tagname=""
20765         fi
20766         ;;
20767
20768       F77)
20769         if test -n "$F77" && test "X$F77" != "Xno"; then
20770
20771 ac_ext=f
20772 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20773 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20775
20776
20777 archive_cmds_need_lc_F77=no
20778 allow_undefined_flag_F77=
20779 always_export_symbols_F77=no
20780 archive_expsym_cmds_F77=
20781 export_dynamic_flag_spec_F77=
20782 hardcode_direct_F77=no
20783 hardcode_libdir_flag_spec_F77=
20784 hardcode_libdir_flag_spec_ld_F77=
20785 hardcode_libdir_separator_F77=
20786 hardcode_minus_L_F77=no
20787 hardcode_automatic_F77=no
20788 module_cmds_F77=
20789 module_expsym_cmds_F77=
20790 link_all_deplibs_F77=unknown
20791 old_archive_cmds_F77=$old_archive_cmds
20792 no_undefined_flag_F77=
20793 whole_archive_flag_spec_F77=
20794 enable_shared_with_static_runtimes_F77=no
20795
20796 # Source file extension for f77 test sources.
20797 ac_ext=f
20798
20799 # Object file extension for compiled f77 test sources.
20800 objext=o
20801 objext_F77=$objext
20802
20803 # Code to be used in simple compile tests
20804 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20805
20806 # Code to be used in simple link tests
20807 lt_simple_link_test_code="      program t\n      end\n"
20808
20809 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20810
20811 # If no C compiler was specified, use CC.
20812 LTCC=${LTCC-"$CC"}
20813
20814 # If no C compiler flags were specified, use CFLAGS.
20815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20816
20817 # Allow CC to be a program name with arguments.
20818 compiler=$CC
20819
20820
20821 # save warnings/boilerplate of simple test code
20822 ac_outfile=conftest.$ac_objext
20823 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20825 _lt_compiler_boilerplate=`cat conftest.err`
20826 $rm conftest*
20827
20828 ac_outfile=conftest.$ac_objext
20829 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20831 _lt_linker_boilerplate=`cat conftest.err`
20832 $rm conftest*
20833
20834
20835 # Allow CC to be a program name with arguments.
20836 lt_save_CC="$CC"
20837 CC=${F77-"f77"}
20838 compiler=$CC
20839 compiler_F77=$CC
20840 for cc_temp in $compiler""; do
20841   case $cc_temp in
20842     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20843     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20844     \-*) ;;
20845     *) break;;
20846   esac
20847 done
20848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20849
20850
20851 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20852 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20853 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20854 echo "${ECHO_T}$can_build_shared" >&6; }
20855
20856 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20857 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20858 test "$can_build_shared" = "no" && enable_shared=no
20859
20860 # On AIX, shared libraries and static libraries use the same namespace, and
20861 # are all built from PIC.
20862 case $host_os in
20863 aix3*)
20864   test "$enable_shared" = yes && enable_static=no
20865   if test -n "$RANLIB"; then
20866     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20867     postinstall_cmds='$RANLIB $lib'
20868   fi
20869   ;;
20870 aix4* | aix5*)
20871   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20872     test "$enable_shared" = yes && enable_static=no
20873   fi
20874   ;;
20875 esac
20876 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20877 echo "${ECHO_T}$enable_shared" >&6; }
20878
20879 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20880 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20881 # Make sure either enable_shared or enable_static is yes.
20882 test "$enable_shared" = yes || enable_static=yes
20883 { echo "$as_me:$LINENO: result: $enable_static" >&5
20884 echo "${ECHO_T}$enable_static" >&6; }
20885
20886 GCC_F77="$G77"
20887 LD_F77="$LD"
20888
20889 lt_prog_compiler_wl_F77=
20890 lt_prog_compiler_pic_F77=
20891 lt_prog_compiler_static_F77=
20892
20893 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20895
20896   if test "$GCC" = yes; then
20897     lt_prog_compiler_wl_F77='-Wl,'
20898     lt_prog_compiler_static_F77='-static'
20899
20900     case $host_os in
20901       aix*)
20902       # All AIX code is PIC.
20903       if test "$host_cpu" = ia64; then
20904         # AIX 5 now supports IA64 processor
20905         lt_prog_compiler_static_F77='-Bstatic'
20906       fi
20907       ;;
20908
20909     amigaos*)
20910       # FIXME: we need at least 68020 code to build shared libraries, but
20911       # adding the `-m68020' flag to GCC prevents building anything better,
20912       # like `-m68040'.
20913       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20914       ;;
20915
20916     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20917       # PIC is the default for these OSes.
20918       ;;
20919
20920     mingw* | pw32* | os2*)
20921       # This hack is so that the source file can tell whether it is being
20922       # built for inclusion in a dll (and should export symbols for example).
20923       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20924       ;;
20925
20926     darwin* | rhapsody*)
20927       # PIC is the default on this platform
20928       # Common symbols not allowed in MH_DYLIB files
20929       lt_prog_compiler_pic_F77='-fno-common'
20930       ;;
20931
20932     interix3*)
20933       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20934       # Instead, we relocate shared libraries at runtime.
20935       ;;
20936
20937     msdosdjgpp*)
20938       # Just because we use GCC doesn't mean we suddenly get shared libraries
20939       # on systems that don't support them.
20940       lt_prog_compiler_can_build_shared_F77=no
20941       enable_shared=no
20942       ;;
20943
20944     sysv4*MP*)
20945       if test -d /usr/nec; then
20946         lt_prog_compiler_pic_F77=-Kconform_pic
20947       fi
20948       ;;
20949
20950     hpux*)
20951       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20952       # not for PA HP-UX.
20953       case $host_cpu in
20954       hppa*64*|ia64*)
20955         # +Z the default
20956         ;;
20957       *)
20958         lt_prog_compiler_pic_F77='-fPIC'
20959         ;;
20960       esac
20961       ;;
20962
20963     *)
20964       lt_prog_compiler_pic_F77='-fPIC'
20965       ;;
20966     esac
20967   else
20968     # PORTME Check for flag to pass linker flags through the system compiler.
20969     case $host_os in
20970     aix*)
20971       lt_prog_compiler_wl_F77='-Wl,'
20972       if test "$host_cpu" = ia64; then
20973         # AIX 5 now supports IA64 processor
20974         lt_prog_compiler_static_F77='-Bstatic'
20975       else
20976         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20977       fi
20978       ;;
20979       darwin*)
20980         # PIC is the default on this platform
20981         # Common symbols not allowed in MH_DYLIB files
20982        case $cc_basename in
20983          xlc*)
20984          lt_prog_compiler_pic_F77='-qnocommon'
20985          lt_prog_compiler_wl_F77='-Wl,'
20986          ;;
20987        esac
20988        ;;
20989
20990     mingw* | pw32* | os2*)
20991       # This hack is so that the source file can tell whether it is being
20992       # built for inclusion in a dll (and should export symbols for example).
20993       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20994       ;;
20995
20996     hpux9* | hpux10* | hpux11*)
20997       lt_prog_compiler_wl_F77='-Wl,'
20998       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20999       # not for PA HP-UX.
21000       case $host_cpu in
21001       hppa*64*|ia64*)
21002         # +Z the default
21003         ;;
21004       *)
21005         lt_prog_compiler_pic_F77='+Z'
21006         ;;
21007       esac
21008       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21009       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21010       ;;
21011
21012     irix5* | irix6* | nonstopux*)
21013       lt_prog_compiler_wl_F77='-Wl,'
21014       # PIC (with -KPIC) is the default.
21015       lt_prog_compiler_static_F77='-non_shared'
21016       ;;
21017
21018     newsos6)
21019       lt_prog_compiler_pic_F77='-KPIC'
21020       lt_prog_compiler_static_F77='-Bstatic'
21021       ;;
21022
21023     linux*)
21024       case $cc_basename in
21025       icc* | ecc*)
21026         lt_prog_compiler_wl_F77='-Wl,'
21027         lt_prog_compiler_pic_F77='-KPIC'
21028         lt_prog_compiler_static_F77='-static'
21029         ;;
21030       pgcc* | pgf77* | pgf90* | pgf95*)
21031         # Portland Group compilers (*not* the Pentium gcc compiler,
21032         # which looks to be a dead project)
21033         lt_prog_compiler_wl_F77='-Wl,'
21034         lt_prog_compiler_pic_F77='-fpic'
21035         lt_prog_compiler_static_F77='-Bstatic'
21036         ;;
21037       ccc*)
21038         lt_prog_compiler_wl_F77='-Wl,'
21039         # All Alpha code is PIC.
21040         lt_prog_compiler_static_F77='-non_shared'
21041         ;;
21042       esac
21043       ;;
21044
21045     osf3* | osf4* | osf5*)
21046       lt_prog_compiler_wl_F77='-Wl,'
21047       # All OSF/1 code is PIC.
21048       lt_prog_compiler_static_F77='-non_shared'
21049       ;;
21050
21051     solaris*)
21052       lt_prog_compiler_pic_F77='-KPIC'
21053       lt_prog_compiler_static_F77='-Bstatic'
21054       case $cc_basename in
21055       f77* | f90* | f95*)
21056         lt_prog_compiler_wl_F77='-Qoption ld ';;
21057       *)
21058         lt_prog_compiler_wl_F77='-Wl,';;
21059       esac
21060       ;;
21061
21062     sunos4*)
21063       lt_prog_compiler_wl_F77='-Qoption ld '
21064       lt_prog_compiler_pic_F77='-PIC'
21065       lt_prog_compiler_static_F77='-Bstatic'
21066       ;;
21067
21068     sysv4 | sysv4.2uw2* | sysv4.3*)
21069       lt_prog_compiler_wl_F77='-Wl,'
21070       lt_prog_compiler_pic_F77='-KPIC'
21071       lt_prog_compiler_static_F77='-Bstatic'
21072       ;;
21073
21074     sysv4*MP*)
21075       if test -d /usr/nec ;then
21076         lt_prog_compiler_pic_F77='-Kconform_pic'
21077         lt_prog_compiler_static_F77='-Bstatic'
21078       fi
21079       ;;
21080
21081     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21082       lt_prog_compiler_wl_F77='-Wl,'
21083       lt_prog_compiler_pic_F77='-KPIC'
21084       lt_prog_compiler_static_F77='-Bstatic'
21085       ;;
21086
21087     unicos*)
21088       lt_prog_compiler_wl_F77='-Wl,'
21089       lt_prog_compiler_can_build_shared_F77=no
21090       ;;
21091
21092     uts4*)
21093       lt_prog_compiler_pic_F77='-pic'
21094       lt_prog_compiler_static_F77='-Bstatic'
21095       ;;
21096
21097     *)
21098       lt_prog_compiler_can_build_shared_F77=no
21099       ;;
21100     esac
21101   fi
21102
21103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21104 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21105
21106 #
21107 # Check to make sure the PIC flag actually works.
21108 #
21109 if test -n "$lt_prog_compiler_pic_F77"; then
21110
21111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21113 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21114   echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116   lt_prog_compiler_pic_works_F77=no
21117   ac_outfile=conftest.$ac_objext
21118    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21119    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21120    # Insert the option either (1) after the last *FLAGS variable, or
21121    # (2) before a word containing "conftest.", or (3) at the end.
21122    # Note that $ac_compile itself does not contain backslashes and begins
21123    # with a dollar sign (not a hyphen), so the echo should work correctly.
21124    # The option is referenced via a variable to avoid confusing sed.
21125    lt_compile=`echo "$ac_compile" | $SED \
21126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21128    -e 's:$: $lt_compiler_flag:'`
21129    (eval echo "\"\$as_me:21129: $lt_compile\"" >&5)
21130    (eval "$lt_compile" 2>conftest.err)
21131    ac_status=$?
21132    cat conftest.err >&5
21133    echo "$as_me:21133: \$? = $ac_status" >&5
21134    if (exit $ac_status) && test -s "$ac_outfile"; then
21135      # The compiler can only warn and ignore the option if not recognized
21136      # So say no if there are warnings other than the usual output.
21137      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21138      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21139      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21140        lt_prog_compiler_pic_works_F77=yes
21141      fi
21142    fi
21143    $rm conftest*
21144
21145 fi
21146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21147 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21148
21149 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21150     case $lt_prog_compiler_pic_F77 in
21151      "" | " "*) ;;
21152      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21153      esac
21154 else
21155     lt_prog_compiler_pic_F77=
21156      lt_prog_compiler_can_build_shared_F77=no
21157 fi
21158
21159 fi
21160 case $host_os in
21161   # For platforms which do not support PIC, -DPIC is meaningless:
21162   *djgpp*)
21163     lt_prog_compiler_pic_F77=
21164     ;;
21165   *)
21166     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21167     ;;
21168 esac
21169
21170 #
21171 # Check to make sure the static flag actually works.
21172 #
21173 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21176 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179   lt_prog_compiler_static_works_F77=no
21180    save_LDFLAGS="$LDFLAGS"
21181    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21182    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21183    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21184      # The linker can only warn and ignore the option if not recognized
21185      # So say no if there are warnings
21186      if test -s conftest.err; then
21187        # Append any errors to the config.log.
21188        cat conftest.err 1>&5
21189        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21190        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21191        if diff conftest.exp conftest.er2 >/dev/null; then
21192          lt_prog_compiler_static_works_F77=yes
21193        fi
21194      else
21195        lt_prog_compiler_static_works_F77=yes
21196      fi
21197    fi
21198    $rm conftest*
21199    LDFLAGS="$save_LDFLAGS"
21200
21201 fi
21202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21203 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21204
21205 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21206     :
21207 else
21208     lt_prog_compiler_static_F77=
21209 fi
21210
21211
21212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21214 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217   lt_cv_prog_compiler_c_o_F77=no
21218    $rm -r conftest 2>/dev/null
21219    mkdir conftest
21220    cd conftest
21221    mkdir out
21222    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21223
21224    lt_compiler_flag="-o out/conftest2.$ac_objext"
21225    # Insert the option either (1) after the last *FLAGS variable, or
21226    # (2) before a word containing "conftest.", or (3) at the end.
21227    # Note that $ac_compile itself does not contain backslashes and begins
21228    # with a dollar sign (not a hyphen), so the echo should work correctly.
21229    lt_compile=`echo "$ac_compile" | $SED \
21230    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232    -e 's:$: $lt_compiler_flag:'`
21233    (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
21234    (eval "$lt_compile" 2>out/conftest.err)
21235    ac_status=$?
21236    cat out/conftest.err >&5
21237    echo "$as_me:21237: \$? = $ac_status" >&5
21238    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21239    then
21240      # The compiler can only warn and ignore the option if not recognized
21241      # So say no if there are warnings
21242      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21243      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21244      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21245        lt_cv_prog_compiler_c_o_F77=yes
21246      fi
21247    fi
21248    chmod u+w . 2>&5
21249    $rm conftest*
21250    # SGI C++ compiler will create directory out/ii_files/ for
21251    # template instantiation
21252    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21253    $rm out/* && rmdir out
21254    cd ..
21255    rmdir conftest
21256    $rm conftest*
21257
21258 fi
21259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21261
21262
21263 hard_links="nottested"
21264 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21265   # do not overwrite the value of need_locks provided by the user
21266   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21268   hard_links=yes
21269   $rm conftest*
21270   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21271   touch conftest.a
21272   ln conftest.a conftest.b 2>&5 || hard_links=no
21273   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21274   { echo "$as_me:$LINENO: result: $hard_links" >&5
21275 echo "${ECHO_T}$hard_links" >&6; }
21276   if test "$hard_links" = no; then
21277     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21279     need_locks=warn
21280   fi
21281 else
21282   need_locks=no
21283 fi
21284
21285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21287
21288   runpath_var=
21289   allow_undefined_flag_F77=
21290   enable_shared_with_static_runtimes_F77=no
21291   archive_cmds_F77=
21292   archive_expsym_cmds_F77=
21293   old_archive_From_new_cmds_F77=
21294   old_archive_from_expsyms_cmds_F77=
21295   export_dynamic_flag_spec_F77=
21296   whole_archive_flag_spec_F77=
21297   thread_safe_flag_spec_F77=
21298   hardcode_libdir_flag_spec_F77=
21299   hardcode_libdir_flag_spec_ld_F77=
21300   hardcode_libdir_separator_F77=
21301   hardcode_direct_F77=no
21302   hardcode_minus_L_F77=no
21303   hardcode_shlibpath_var_F77=unsupported
21304   link_all_deplibs_F77=unknown
21305   hardcode_automatic_F77=no
21306   module_cmds_F77=
21307   module_expsym_cmds_F77=
21308   always_export_symbols_F77=no
21309   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21310   # include_expsyms should be a list of space-separated symbols to be *always*
21311   # included in the symbol list
21312   include_expsyms_F77=
21313   # exclude_expsyms can be an extended regexp of symbols to exclude
21314   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21315   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21316   # as well as any symbol that contains `d'.
21317   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21318   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21319   # platforms (ab)use it in PIC code, but their linkers get confused if
21320   # the symbol is explicitly referenced.  Since portable code cannot
21321   # rely on this symbol name, it's probably fine to never include it in
21322   # preloaded symbol tables.
21323   extract_expsyms_cmds=
21324   # Just being paranoid about ensuring that cc_basename is set.
21325   for cc_temp in $compiler""; do
21326   case $cc_temp in
21327     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21328     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21329     \-*) ;;
21330     *) break;;
21331   esac
21332 done
21333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21334
21335   case $host_os in
21336   cygwin* | mingw* | pw32*)
21337     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21338     # When not using gcc, we currently assume that we are using
21339     # Microsoft Visual C++.
21340     if test "$GCC" != yes; then
21341       with_gnu_ld=no
21342     fi
21343     ;;
21344   interix*)
21345     # we just hope/assume this is gcc and not c89 (= MSVC++)
21346     with_gnu_ld=yes
21347     ;;
21348   openbsd*)
21349     with_gnu_ld=no
21350     ;;
21351   esac
21352
21353   ld_shlibs_F77=yes
21354   if test "$with_gnu_ld" = yes; then
21355     # If archive_cmds runs LD, not CC, wlarc should be empty
21356     wlarc='${wl}'
21357
21358     # Set some defaults for GNU ld with shared library support. These
21359     # are reset later if shared libraries are not supported. Putting them
21360     # here allows them to be overridden if necessary.
21361     runpath_var=LD_RUN_PATH
21362     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21363     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21364     # ancient GNU ld didn't support --whole-archive et. al.
21365     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21366         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21367       else
21368         whole_archive_flag_spec_F77=
21369     fi
21370     supports_anon_versioning=no
21371     case `$LD -v 2>/dev/null` in
21372       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21373       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21374       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21375       *\ 2.11.*) ;; # other 2.11 versions
21376       *) supports_anon_versioning=yes ;;
21377     esac
21378
21379     # See if GNU ld supports shared libraries.
21380     case $host_os in
21381     aix3* | aix4* | aix5*)
21382       # On AIX/PPC, the GNU linker is very broken
21383       if test "$host_cpu" != ia64; then
21384         ld_shlibs_F77=no
21385         cat <<EOF 1>&2
21386
21387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21388 *** to be unable to reliably create shared libraries on AIX.
21389 *** Therefore, libtool is disabling shared libraries support.  If you
21390 *** really care for shared libraries, you may want to modify your PATH
21391 *** so that a non-GNU linker is found, and then restart.
21392
21393 EOF
21394       fi
21395       ;;
21396
21397     amigaos*)
21398       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)'
21399       hardcode_libdir_flag_spec_F77='-L$libdir'
21400       hardcode_minus_L_F77=yes
21401
21402       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21403       # that the semantics of dynamic libraries on AmigaOS, at least up
21404       # to version 4, is to share data among multiple programs linked
21405       # with the same dynamic library.  Since this doesn't match the
21406       # behavior of shared libraries on other platforms, we can't use
21407       # them.
21408       ld_shlibs_F77=no
21409       ;;
21410
21411     beos*)
21412       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21413         allow_undefined_flag_F77=unsupported
21414         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21415         # support --undefined.  This deserves some investigation.  FIXME
21416         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21417       else
21418         ld_shlibs_F77=no
21419       fi
21420       ;;
21421
21422     cygwin* | mingw* | pw32*)
21423       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21424       # as there is no search path for DLLs.
21425       hardcode_libdir_flag_spec_F77='-L$libdir'
21426       allow_undefined_flag_F77=unsupported
21427       always_export_symbols_F77=no
21428       enable_shared_with_static_runtimes_F77=yes
21429       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21430
21431       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21432         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21433         # If the export-symbols file already is a .def file (1st line
21434         # is EXPORTS), use it as is; otherwise, prepend...
21435         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21436           cp $export_symbols $output_objdir/$soname.def;
21437         else
21438           echo EXPORTS > $output_objdir/$soname.def;
21439           cat $export_symbols >> $output_objdir/$soname.def;
21440         fi~
21441         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21442       else
21443         ld_shlibs_F77=no
21444       fi
21445       ;;
21446
21447     interix3*)
21448       hardcode_direct_F77=no
21449       hardcode_shlibpath_var_F77=no
21450       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21451       export_dynamic_flag_spec_F77='${wl}-E'
21452       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21453       # Instead, shared libraries are loaded at an image base (0x10000000 by
21454       # default) and relocated if they conflict, which is a slow very memory
21455       # consuming and fragmenting process.  To avoid this, we pick a random,
21456       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21457       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21458       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'
21459       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'
21460       ;;
21461
21462     linux*)
21463       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21464         tmp_addflag=
21465         case $cc_basename,$host_cpu in
21466         pgcc*)                          # Portland Group C compiler
21467           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'
21468           tmp_addflag=' $pic_flag'
21469           ;;
21470         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21471           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'
21472           tmp_addflag=' $pic_flag -Mnomain' ;;
21473         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21474           tmp_addflag=' -i_dynamic' ;;
21475         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21476           tmp_addflag=' -i_dynamic -nofor_main' ;;
21477         ifc* | ifort*)                  # Intel Fortran compiler
21478           tmp_addflag=' -nofor_main' ;;
21479         esac
21480         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21481
21482         if test $supports_anon_versioning = yes; then
21483           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21484   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21485   $echo "local: *; };" >> $output_objdir/$libname.ver~
21486           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21487         fi
21488       else
21489         ld_shlibs_F77=no
21490       fi
21491       ;;
21492
21493     netbsd*)
21494       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21495         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21496         wlarc=
21497       else
21498         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21499         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21500       fi
21501       ;;
21502
21503     solaris*)
21504       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21505         ld_shlibs_F77=no
21506         cat <<EOF 1>&2
21507
21508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21509 *** create shared libraries on Solaris systems.  Therefore, libtool
21510 *** is disabling shared libraries support.  We urge you to upgrade GNU
21511 *** binutils to release 2.9.1 or newer.  Another option is to modify
21512 *** your PATH or compiler configuration so that the native linker is
21513 *** used, and then restart.
21514
21515 EOF
21516       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21517         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21518         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21519       else
21520         ld_shlibs_F77=no
21521       fi
21522       ;;
21523
21524     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21525       case `$LD -v 2>&1` in
21526         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21527         ld_shlibs_F77=no
21528         cat <<_LT_EOF 1>&2
21529
21530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21531 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21532 *** is disabling shared libraries support.  We urge you to upgrade GNU
21533 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21534 *** your PATH or compiler configuration so that the native linker is
21535 *** used, and then restart.
21536
21537 _LT_EOF
21538         ;;
21539         *)
21540           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21542             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21543             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21544           else
21545             ld_shlibs_F77=no
21546           fi
21547         ;;
21548       esac
21549       ;;
21550
21551     sunos4*)
21552       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21553       wlarc=
21554       hardcode_direct_F77=yes
21555       hardcode_shlibpath_var_F77=no
21556       ;;
21557
21558     *)
21559       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21560         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21561         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21562       else
21563         ld_shlibs_F77=no
21564       fi
21565       ;;
21566     esac
21567
21568     if test "$ld_shlibs_F77" = no; then
21569       runpath_var=
21570       hardcode_libdir_flag_spec_F77=
21571       export_dynamic_flag_spec_F77=
21572       whole_archive_flag_spec_F77=
21573     fi
21574   else
21575     # PORTME fill in a description of your system's linker (not GNU ld)
21576     case $host_os in
21577     aix3*)
21578       allow_undefined_flag_F77=unsupported
21579       always_export_symbols_F77=yes
21580       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'
21581       # Note: this linker hardcodes the directories in LIBPATH if there
21582       # are no directories specified by -L.
21583       hardcode_minus_L_F77=yes
21584       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21585         # Neither direct hardcoding nor static linking is supported with a
21586         # broken collect2.
21587         hardcode_direct_F77=unsupported
21588       fi
21589       ;;
21590
21591     aix4* | aix5*)
21592       if test "$host_cpu" = ia64; then
21593         # On IA64, the linker does run time linking by default, so we don't
21594         # have to do anything special.
21595         aix_use_runtimelinking=no
21596         exp_sym_flag='-Bexport'
21597         no_entry_flag=""
21598       else
21599         # If we're using GNU nm, then we don't want the "-C" option.
21600         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21601         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21602           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'
21603         else
21604           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'
21605         fi
21606         aix_use_runtimelinking=no
21607
21608         # Test if we are trying to use run time linking or normal
21609         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21610         # need to do runtime linking.
21611         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21612           for ld_flag in $LDFLAGS; do
21613           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21614             aix_use_runtimelinking=yes
21615             break
21616           fi
21617           done
21618           ;;
21619         esac
21620
21621         exp_sym_flag='-bexport'
21622         no_entry_flag='-bnoentry'
21623       fi
21624
21625       # When large executables or shared objects are built, AIX ld can
21626       # have problems creating the table of contents.  If linking a library
21627       # or program results in "error TOC overflow" add -mminimal-toc to
21628       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21629       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21630
21631       archive_cmds_F77=''
21632       hardcode_direct_F77=yes
21633       hardcode_libdir_separator_F77=':'
21634       link_all_deplibs_F77=yes
21635
21636       if test "$GCC" = yes; then
21637         case $host_os in aix4.[012]|aix4.[012].*)
21638         # We only want to do this on AIX 4.2 and lower, the check
21639         # below for broken collect2 doesn't work under 4.3+
21640           collect2name=`${CC} -print-prog-name=collect2`
21641           if test -f "$collect2name" && \
21642            strings "$collect2name" | grep resolve_lib_name >/dev/null
21643           then
21644           # We have reworked collect2
21645           hardcode_direct_F77=yes
21646           else
21647           # We have old collect2
21648           hardcode_direct_F77=unsupported
21649           # It fails to find uninstalled libraries when the uninstalled
21650           # path is not listed in the libpath.  Setting hardcode_minus_L
21651           # to unsupported forces relinking
21652           hardcode_minus_L_F77=yes
21653           hardcode_libdir_flag_spec_F77='-L$libdir'
21654           hardcode_libdir_separator_F77=
21655           fi
21656           ;;
21657         esac
21658         shared_flag='-shared'
21659         if test "$aix_use_runtimelinking" = yes; then
21660           shared_flag="$shared_flag "'${wl}-G'
21661         fi
21662       else
21663         # not using gcc
21664         if test "$host_cpu" = ia64; then
21665         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21666         # chokes on -Wl,-G. The following line is correct:
21667           shared_flag='-G'
21668         else
21669           if test "$aix_use_runtimelinking" = yes; then
21670             shared_flag='${wl}-G'
21671           else
21672             shared_flag='${wl}-bM:SRE'
21673           fi
21674         fi
21675       fi
21676
21677       # It seems that -bexpall does not export symbols beginning with
21678       # underscore (_), so it is better to generate a list of symbols to export.
21679       always_export_symbols_F77=yes
21680       if test "$aix_use_runtimelinking" = yes; then
21681         # Warning - without using the other runtime loading flags (-brtl),
21682         # -berok will link without error, but may produce a broken library.
21683         allow_undefined_flag_F77='-berok'
21684        # Determine the default libpath from the value encoded in an empty executable.
21685        cat >conftest.$ac_ext <<_ACEOF
21686       program main
21687
21688       end
21689 _ACEOF
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (ac_try="$ac_link"
21692 case "(($ac_try" in
21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694   *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697   (eval "$ac_link") 2>conftest.er1
21698   ac_status=$?
21699   grep -v '^ *+' conftest.er1 >conftest.err
21700   rm -f conftest.er1
21701   cat conftest.err >&5
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } &&
21704          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21705   { (case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710   (eval "$ac_try") 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; } &&
21714          { ac_try='test -s conftest$ac_exeext'
21715   { (case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_try") 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }; then
21724
21725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21726 }'`
21727 # Check for a 64-bit object if we didn't find anything.
21728 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; }
21729 }'`; fi
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734
21735 fi
21736
21737 rm -f core conftest.err conftest.$ac_objext \
21738       conftest$ac_exeext conftest.$ac_ext
21739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21740
21741        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21742         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"
21743        else
21744         if test "$host_cpu" = ia64; then
21745           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21746           allow_undefined_flag_F77="-z nodefs"
21747           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"
21748         else
21749          # Determine the default libpath from the value encoded in an empty executable.
21750          cat >conftest.$ac_ext <<_ACEOF
21751       program main
21752
21753       end
21754 _ACEOF
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (ac_try="$ac_link"
21757 case "(($ac_try" in
21758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759   *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762   (eval "$ac_link") 2>conftest.er1
21763   ac_status=$?
21764   grep -v '^ *+' conftest.er1 >conftest.err
21765   rm -f conftest.er1
21766   cat conftest.err >&5
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); } &&
21769          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21770   { (case "(($ac_try" in
21771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772   *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775   (eval "$ac_try") 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); }; } &&
21779          { ac_try='test -s conftest$ac_exeext'
21780   { (case "(($ac_try" in
21781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782   *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785   (eval "$ac_try") 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; }; then
21789
21790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21791 }'`
21792 # Check for a 64-bit object if we didn't find anything.
21793 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; }
21794 }'`; fi
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799
21800 fi
21801
21802 rm -f core conftest.err conftest.$ac_objext \
21803       conftest$ac_exeext conftest.$ac_ext
21804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21805
21806          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21807           # Warning - without using the other run time loading flags,
21808           # -berok will link without error, but may produce a broken library.
21809           no_undefined_flag_F77=' ${wl}-bernotok'
21810           allow_undefined_flag_F77=' ${wl}-berok'
21811           # Exported symbols can be pulled into shared objects from archives
21812           whole_archive_flag_spec_F77='$convenience'
21813           archive_cmds_need_lc_F77=yes
21814           # This is similar to how AIX traditionally builds its shared libraries.
21815           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'
21816         fi
21817       fi
21818       ;;
21819
21820     amigaos*)
21821       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)'
21822       hardcode_libdir_flag_spec_F77='-L$libdir'
21823       hardcode_minus_L_F77=yes
21824       # see comment about different semantics on the GNU ld section
21825       ld_shlibs_F77=no
21826       ;;
21827
21828     bsdi[45]*)
21829       export_dynamic_flag_spec_F77=-rdynamic
21830       ;;
21831
21832     cygwin* | mingw* | pw32*)
21833       # When not using gcc, we currently assume that we are using
21834       # Microsoft Visual C++.
21835       # hardcode_libdir_flag_spec is actually meaningless, as there is
21836       # no search path for DLLs.
21837       hardcode_libdir_flag_spec_F77=' '
21838       allow_undefined_flag_F77=unsupported
21839       # Tell ltmain to make .lib files, not .a files.
21840       libext=lib
21841       # Tell ltmain to make .dll files, not .so files.
21842       shrext_cmds=".dll"
21843       # FIXME: Setting linknames here is a bad hack.
21844       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21845       # The linker will automatically build a .lib file if we build a DLL.
21846       old_archive_From_new_cmds_F77='true'
21847       # FIXME: Should let the user specify the lib program.
21848       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21849       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21850       enable_shared_with_static_runtimes_F77=yes
21851       ;;
21852
21853     darwin* | rhapsody*)
21854       case $host_os in
21855         rhapsody* | darwin1.[012])
21856          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21857          ;;
21858        *) # Darwin 1.3 on
21859          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21860            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21861          else
21862            case ${MACOSX_DEPLOYMENT_TARGET} in
21863              10.[012])
21864                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21865                ;;
21866              10.*)
21867                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21868                ;;
21869            esac
21870          fi
21871          ;;
21872       esac
21873       archive_cmds_need_lc_F77=no
21874       hardcode_direct_F77=no
21875       hardcode_automatic_F77=yes
21876       hardcode_shlibpath_var_F77=unsupported
21877       whole_archive_flag_spec_F77=''
21878       link_all_deplibs_F77=yes
21879     if test "$GCC" = yes ; then
21880         output_verbose_link_cmd='echo'
21881         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21882       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21883       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21884       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}'
21885       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}'
21886     else
21887       case $cc_basename in
21888         xlc*)
21889          output_verbose_link_cmd='echo'
21890          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21891          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21892           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21893          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}'
21894           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}'
21895           ;;
21896        *)
21897          ld_shlibs_F77=no
21898           ;;
21899       esac
21900     fi
21901       ;;
21902
21903     dgux*)
21904       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21905       hardcode_libdir_flag_spec_F77='-L$libdir'
21906       hardcode_shlibpath_var_F77=no
21907       ;;
21908
21909     freebsd1*)
21910       ld_shlibs_F77=no
21911       ;;
21912
21913     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21914     # support.  Future versions do this automatically, but an explicit c++rt0.o
21915     # does not break anything, and helps significantly (at the cost of a little
21916     # extra space).
21917     freebsd2.2*)
21918       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21919       hardcode_libdir_flag_spec_F77='-R$libdir'
21920       hardcode_direct_F77=yes
21921       hardcode_shlibpath_var_F77=no
21922       ;;
21923
21924     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21925     freebsd2*)
21926       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21927       hardcode_direct_F77=yes
21928       hardcode_minus_L_F77=yes
21929       hardcode_shlibpath_var_F77=no
21930       ;;
21931
21932     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21933     freebsd* | kfreebsd*-gnu | dragonfly*)
21934       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21935       hardcode_libdir_flag_spec_F77='-R$libdir'
21936       hardcode_direct_F77=yes
21937       hardcode_shlibpath_var_F77=no
21938       ;;
21939
21940     hpux9*)
21941       if test "$GCC" = yes; then
21942         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'
21943       else
21944         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'
21945       fi
21946       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947       hardcode_libdir_separator_F77=:
21948       hardcode_direct_F77=yes
21949
21950       # hardcode_minus_L: Not really in the search PATH,
21951       # but as the default location of the library.
21952       hardcode_minus_L_F77=yes
21953       export_dynamic_flag_spec_F77='${wl}-E'
21954       ;;
21955
21956     hpux10*)
21957       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21958         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21959       else
21960         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21961       fi
21962       if test "$with_gnu_ld" = no; then
21963         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21964         hardcode_libdir_separator_F77=:
21965
21966         hardcode_direct_F77=yes
21967         export_dynamic_flag_spec_F77='${wl}-E'
21968
21969         # hardcode_minus_L: Not really in the search PATH,
21970         # but as the default location of the library.
21971         hardcode_minus_L_F77=yes
21972       fi
21973       ;;
21974
21975     hpux11*)
21976       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21977         case $host_cpu in
21978         hppa*64*)
21979           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21980           ;;
21981         ia64*)
21982           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21983           ;;
21984         *)
21985           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21986           ;;
21987         esac
21988       else
21989         case $host_cpu in
21990         hppa*64*)
21991           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21992           ;;
21993         ia64*)
21994           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21995           ;;
21996         *)
21997           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21998           ;;
21999         esac
22000       fi
22001       if test "$with_gnu_ld" = no; then
22002         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22003         hardcode_libdir_separator_F77=:
22004
22005         case $host_cpu in
22006         hppa*64*|ia64*)
22007           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22008           hardcode_direct_F77=no
22009           hardcode_shlibpath_var_F77=no
22010           ;;
22011         *)
22012           hardcode_direct_F77=yes
22013           export_dynamic_flag_spec_F77='${wl}-E'
22014
22015           # hardcode_minus_L: Not really in the search PATH,
22016           # but as the default location of the library.
22017           hardcode_minus_L_F77=yes
22018           ;;
22019         esac
22020       fi
22021       ;;
22022
22023     irix5* | irix6* | nonstopux*)
22024       if test "$GCC" = yes; then
22025         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'
22026       else
22027         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'
22028         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22029       fi
22030       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22031       hardcode_libdir_separator_F77=:
22032       link_all_deplibs_F77=yes
22033       ;;
22034
22035     netbsd*)
22036       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22037         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22038       else
22039         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22040       fi
22041       hardcode_libdir_flag_spec_F77='-R$libdir'
22042       hardcode_direct_F77=yes
22043       hardcode_shlibpath_var_F77=no
22044       ;;
22045
22046     newsos6)
22047       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22048       hardcode_direct_F77=yes
22049       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22050       hardcode_libdir_separator_F77=:
22051       hardcode_shlibpath_var_F77=no
22052       ;;
22053
22054     openbsd*)
22055       hardcode_direct_F77=yes
22056       hardcode_shlibpath_var_F77=no
22057       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22058         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22059         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22060         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22061         export_dynamic_flag_spec_F77='${wl}-E'
22062       else
22063        case $host_os in
22064          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22065            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22066            hardcode_libdir_flag_spec_F77='-R$libdir'
22067            ;;
22068          *)
22069            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22070            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22071            ;;
22072        esac
22073       fi
22074       ;;
22075
22076     os2*)
22077       hardcode_libdir_flag_spec_F77='-L$libdir'
22078       hardcode_minus_L_F77=yes
22079       allow_undefined_flag_F77=unsupported
22080       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'
22081       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22082       ;;
22083
22084     osf3*)
22085       if test "$GCC" = yes; then
22086         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22087         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'
22088       else
22089         allow_undefined_flag_F77=' -expect_unresolved \*'
22090         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'
22091       fi
22092       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22093       hardcode_libdir_separator_F77=:
22094       ;;
22095
22096     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22097       if test "$GCC" = yes; then
22098         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22099         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'
22100         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22101       else
22102         allow_undefined_flag_F77=' -expect_unresolved \*'
22103         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'
22104         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~
22105         $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'
22106
22107         # Both c and cxx compiler support -rpath directly
22108         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22109       fi
22110       hardcode_libdir_separator_F77=:
22111       ;;
22112
22113     solaris*)
22114       no_undefined_flag_F77=' -z text'
22115       if test "$GCC" = yes; then
22116         wlarc='${wl}'
22117         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22118         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22119           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22120       else
22121         wlarc=''
22122         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22123         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22124         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22125       fi
22126       hardcode_libdir_flag_spec_F77='-R$libdir'
22127       hardcode_shlibpath_var_F77=no
22128       case $host_os in
22129       solaris2.[0-5] | solaris2.[0-5].*) ;;
22130       *)
22131         # The compiler driver will combine linker options so we
22132         # cannot just pass the convience library names through
22133         # without $wl, iff we do not link with $LD.
22134         # Luckily, gcc supports the same syntax we need for Sun Studio.
22135         # Supported since Solaris 2.6 (maybe 2.5.1?)
22136         case $wlarc in
22137         '')
22138           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22139         *)
22140           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' ;;
22141         esac ;;
22142       esac
22143       link_all_deplibs_F77=yes
22144       ;;
22145
22146     sunos4*)
22147       if test "x$host_vendor" = xsequent; then
22148         # Use $CC to link under sequent, because it throws in some extra .o
22149         # files that make .init and .fini sections work.
22150         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22151       else
22152         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22153       fi
22154       hardcode_libdir_flag_spec_F77='-L$libdir'
22155       hardcode_direct_F77=yes
22156       hardcode_minus_L_F77=yes
22157       hardcode_shlibpath_var_F77=no
22158       ;;
22159
22160     sysv4)
22161       case $host_vendor in
22162         sni)
22163           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22164           hardcode_direct_F77=yes # is this really true???
22165         ;;
22166         siemens)
22167           ## LD is ld it makes a PLAMLIB
22168           ## CC just makes a GrossModule.
22169           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22170           reload_cmds_F77='$CC -r -o $output$reload_objs'
22171           hardcode_direct_F77=no
22172         ;;
22173         motorola)
22174           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22176         ;;
22177       esac
22178       runpath_var='LD_RUN_PATH'
22179       hardcode_shlibpath_var_F77=no
22180       ;;
22181
22182     sysv4.3*)
22183       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184       hardcode_shlibpath_var_F77=no
22185       export_dynamic_flag_spec_F77='-Bexport'
22186       ;;
22187
22188     sysv4*MP*)
22189       if test -d /usr/nec; then
22190         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191         hardcode_shlibpath_var_F77=no
22192         runpath_var=LD_RUN_PATH
22193         hardcode_runpath_var=yes
22194         ld_shlibs_F77=yes
22195       fi
22196       ;;
22197
22198     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22199       no_undefined_flag_F77='${wl}-z,text'
22200       archive_cmds_need_lc_F77=no
22201       hardcode_shlibpath_var_F77=no
22202       runpath_var='LD_RUN_PATH'
22203
22204       if test "$GCC" = yes; then
22205         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22206         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22207       else
22208         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22209         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22210       fi
22211       ;;
22212
22213     sysv5* | sco3.2v5* | sco5v6*)
22214       # Note: We can NOT use -z defs as we might desire, because we do not
22215       # link with -lc, and that would cause any symbols used from libc to
22216       # always be unresolved, which means just about no library would
22217       # ever link correctly.  If we're not using GNU ld we use -z text
22218       # though, which does catch some bad symbols but isn't as heavy-handed
22219       # as -z defs.
22220       no_undefined_flag_F77='${wl}-z,text'
22221       allow_undefined_flag_F77='${wl}-z,nodefs'
22222       archive_cmds_need_lc_F77=no
22223       hardcode_shlibpath_var_F77=no
22224       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22225       hardcode_libdir_separator_F77=':'
22226       link_all_deplibs_F77=yes
22227       export_dynamic_flag_spec_F77='${wl}-Bexport'
22228       runpath_var='LD_RUN_PATH'
22229
22230       if test "$GCC" = yes; then
22231         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22232         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233       else
22234         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236       fi
22237       ;;
22238
22239     uts4*)
22240       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22241       hardcode_libdir_flag_spec_F77='-L$libdir'
22242       hardcode_shlibpath_var_F77=no
22243       ;;
22244
22245     *)
22246       ld_shlibs_F77=no
22247       ;;
22248     esac
22249   fi
22250
22251 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22252 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22253 test "$ld_shlibs_F77" = no && can_build_shared=no
22254
22255 #
22256 # Do we need to explicitly link libc?
22257 #
22258 case "x$archive_cmds_need_lc_F77" in
22259 x|xyes)
22260   # Assume -lc should be added
22261   archive_cmds_need_lc_F77=yes
22262
22263   if test "$enable_shared" = yes && test "$GCC" = yes; then
22264     case $archive_cmds_F77 in
22265     *'~'*)
22266       # FIXME: we may have to deal with multi-command sequences.
22267       ;;
22268     '$CC '*)
22269       # Test whether the compiler implicitly links with -lc since on some
22270       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22271       # to ld, don't add -lc before -lgcc.
22272       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22274       $rm conftest*
22275       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22276
22277       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22278   (eval $ac_compile) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); } 2>conftest.err; then
22282         soname=conftest
22283         lib=conftest
22284         libobjs=conftest.$ac_objext
22285         deplibs=
22286         wl=$lt_prog_compiler_wl_F77
22287         pic_flag=$lt_prog_compiler_pic_F77
22288         compiler_flags=-v
22289         linker_flags=-v
22290         verstring=
22291         output_objdir=.
22292         libname=conftest
22293         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22294         allow_undefined_flag_F77=
22295         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22296   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }
22300         then
22301           archive_cmds_need_lc_F77=no
22302         else
22303           archive_cmds_need_lc_F77=yes
22304         fi
22305         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22306       else
22307         cat conftest.err 1>&5
22308       fi
22309       $rm conftest*
22310       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22311 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22312       ;;
22313     esac
22314   fi
22315   ;;
22316 esac
22317
22318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22320 library_names_spec=
22321 libname_spec='lib$name'
22322 soname_spec=
22323 shrext_cmds=".so"
22324 postinstall_cmds=
22325 postuninstall_cmds=
22326 finish_cmds=
22327 finish_eval=
22328 shlibpath_var=
22329 shlibpath_overrides_runpath=unknown
22330 version_type=none
22331 dynamic_linker="$host_os ld.so"
22332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22333 if test "$GCC" = yes; then
22334   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22335   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22336     # if the path contains ";" then we assume it to be the separator
22337     # otherwise default to the standard path separator (i.e. ":") - it is
22338     # assumed that no part of a normal pathname contains ";" but that should
22339     # okay in the real world where ";" in dirpaths is itself problematic.
22340     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22341   else
22342     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22343   fi
22344 else
22345   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22346 fi
22347 need_lib_prefix=unknown
22348 hardcode_into_libs=no
22349
22350 # when you set need_version to no, make sure it does not cause -set_version
22351 # flags to be left without arguments
22352 need_version=unknown
22353
22354 case $host_os in
22355 aix3*)
22356   version_type=linux
22357   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22358   shlibpath_var=LIBPATH
22359
22360   # AIX 3 has no versioning support, so we append a major version to the name.
22361   soname_spec='${libname}${release}${shared_ext}$major'
22362   ;;
22363
22364 aix4* | aix5*)
22365   version_type=linux
22366   need_lib_prefix=no
22367   need_version=no
22368   hardcode_into_libs=yes
22369   if test "$host_cpu" = ia64; then
22370     # AIX 5 supports IA64
22371     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22372     shlibpath_var=LD_LIBRARY_PATH
22373   else
22374     # With GCC up to 2.95.x, collect2 would create an import file
22375     # for dependence libraries.  The import file would start with
22376     # the line `#! .'.  This would cause the generated library to
22377     # depend on `.', always an invalid library.  This was fixed in
22378     # development snapshots of GCC prior to 3.0.
22379     case $host_os in
22380       aix4 | aix4.[01] | aix4.[01].*)
22381       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22382            echo ' yes '
22383            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22384         :
22385       else
22386         can_build_shared=no
22387       fi
22388       ;;
22389     esac
22390     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22391     # soname into executable. Probably we can add versioning support to
22392     # collect2, so additional links can be useful in future.
22393     if test "$aix_use_runtimelinking" = yes; then
22394       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22395       # instead of lib<name>.a to let people know that these are not
22396       # typical AIX shared libraries.
22397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22398     else
22399       # We preserve .a as extension for shared libraries through AIX4.2
22400       # and later when we are not doing run time linking.
22401       library_names_spec='${libname}${release}.a $libname.a'
22402       soname_spec='${libname}${release}${shared_ext}$major'
22403     fi
22404     shlibpath_var=LIBPATH
22405   fi
22406   ;;
22407
22408 amigaos*)
22409   library_names_spec='$libname.ixlibrary $libname.a'
22410   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22411   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'
22412   ;;
22413
22414 beos*)
22415   library_names_spec='${libname}${shared_ext}'
22416   dynamic_linker="$host_os ld.so"
22417   shlibpath_var=LIBRARY_PATH
22418   ;;
22419
22420 bsdi[45]*)
22421   version_type=linux
22422   need_version=no
22423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424   soname_spec='${libname}${release}${shared_ext}$major'
22425   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22426   shlibpath_var=LD_LIBRARY_PATH
22427   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22428   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22429   # the default ld.so.conf also contains /usr/contrib/lib and
22430   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22431   # libtool to hard-code these into programs
22432   ;;
22433
22434 cygwin* | mingw* | pw32*)
22435   version_type=windows
22436   shrext_cmds=".dll"
22437   need_version=no
22438   need_lib_prefix=no
22439
22440   case $GCC,$host_os in
22441   yes,cygwin* | yes,mingw* | yes,pw32*)
22442     library_names_spec='$libname.dll.a'
22443     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22444     postinstall_cmds='base_file=`basename \${file}`~
22445       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22446       dldir=$destdir/`dirname \$dlpath`~
22447       test -d \$dldir || mkdir -p \$dldir~
22448       $install_prog $dir/$dlname \$dldir/$dlname~
22449       chmod a+x \$dldir/$dlname'
22450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451       dlpath=$dir/\$dldll~
22452        $rm \$dlpath'
22453     shlibpath_overrides_runpath=yes
22454
22455     case $host_os in
22456     cygwin*)
22457       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22459       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22460       ;;
22461     mingw*)
22462       # MinGW DLLs use traditional 'lib' prefix
22463       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466         # It is most probably a Windows format PATH printed by
22467         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468         # path with ; separators, and with drive letters. We can handle the
22469         # drive letters (cygwin fileutils understands them), so leave them,
22470         # especially as we might pass files found there to a mingw objdump,
22471         # which wouldn't understand a cygwinified path. Ahh.
22472         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22473       else
22474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22475       fi
22476       ;;
22477     pw32*)
22478       # pw32 DLLs use 'pw' prefix rather than 'lib'
22479       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22480       ;;
22481     esac
22482     ;;
22483
22484   *)
22485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22486     ;;
22487   esac
22488   dynamic_linker='Win32 ld.exe'
22489   # FIXME: first we should search . and the directory the executable is in
22490   shlibpath_var=PATH
22491   ;;
22492
22493 darwin* | rhapsody*)
22494   dynamic_linker="$host_os dyld"
22495   version_type=darwin
22496   need_lib_prefix=no
22497   need_version=no
22498   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22499   soname_spec='${libname}${release}${major}$shared_ext'
22500   shlibpath_overrides_runpath=yes
22501   shlibpath_var=DYLD_LIBRARY_PATH
22502   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22503   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22504   if test "$GCC" = yes; then
22505     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"`
22506   else
22507     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22508   fi
22509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22510   ;;
22511
22512 dgux*)
22513   version_type=linux
22514   need_lib_prefix=no
22515   need_version=no
22516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517   soname_spec='${libname}${release}${shared_ext}$major'
22518   shlibpath_var=LD_LIBRARY_PATH
22519   ;;
22520
22521 freebsd1*)
22522   dynamic_linker=no
22523   ;;
22524
22525 kfreebsd*-gnu)
22526   version_type=linux
22527   need_lib_prefix=no
22528   need_version=no
22529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530   soname_spec='${libname}${release}${shared_ext}$major'
22531   shlibpath_var=LD_LIBRARY_PATH
22532   shlibpath_overrides_runpath=no
22533   hardcode_into_libs=yes
22534   dynamic_linker='GNU ld.so'
22535   ;;
22536
22537 freebsd* | dragonfly*)
22538   # DragonFly does not have aout.  When/if they implement a new
22539   # versioning mechanism, adjust this.
22540   if test -x /usr/bin/objformat; then
22541     objformat=`/usr/bin/objformat`
22542   else
22543     case $host_os in
22544     freebsd[123]*) objformat=aout ;;
22545     *) objformat=elf ;;
22546     esac
22547   fi
22548   version_type=freebsd-$objformat
22549   case $version_type in
22550     freebsd-elf*)
22551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22552       need_version=no
22553       need_lib_prefix=no
22554       ;;
22555     freebsd-*)
22556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22557       need_version=yes
22558       ;;
22559   esac
22560   shlibpath_var=LD_LIBRARY_PATH
22561   case $host_os in
22562   freebsd2*)
22563     shlibpath_overrides_runpath=yes
22564     ;;
22565   freebsd3.[01]* | freebsdelf3.[01]*)
22566     shlibpath_overrides_runpath=yes
22567     hardcode_into_libs=yes
22568     ;;
22569   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22570   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22571     shlibpath_overrides_runpath=no
22572     hardcode_into_libs=yes
22573     ;;
22574   freebsd*) # from 4.6 on
22575     shlibpath_overrides_runpath=yes
22576     hardcode_into_libs=yes
22577     ;;
22578   esac
22579   ;;
22580
22581 gnu*)
22582   version_type=linux
22583   need_lib_prefix=no
22584   need_version=no
22585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22586   soname_spec='${libname}${release}${shared_ext}$major'
22587   shlibpath_var=LD_LIBRARY_PATH
22588   hardcode_into_libs=yes
22589   ;;
22590
22591 hpux9* | hpux10* | hpux11*)
22592   # Give a soname corresponding to the major version so that dld.sl refuses to
22593   # link against other versions.
22594   version_type=sunos
22595   need_lib_prefix=no
22596   need_version=no
22597   case $host_cpu in
22598   ia64*)
22599     shrext_cmds='.so'
22600     hardcode_into_libs=yes
22601     dynamic_linker="$host_os dld.so"
22602     shlibpath_var=LD_LIBRARY_PATH
22603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605     soname_spec='${libname}${release}${shared_ext}$major'
22606     if test "X$HPUX_IA64_MODE" = X32; then
22607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22608     else
22609       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22610     fi
22611     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22612     ;;
22613    hppa*64*)
22614      shrext_cmds='.sl'
22615      hardcode_into_libs=yes
22616      dynamic_linker="$host_os dld.sl"
22617      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22618      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22619      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620      soname_spec='${libname}${release}${shared_ext}$major'
22621      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22622      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22623      ;;
22624    *)
22625     shrext_cmds='.sl'
22626     dynamic_linker="$host_os dld.sl"
22627     shlibpath_var=SHLIB_PATH
22628     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630     soname_spec='${libname}${release}${shared_ext}$major'
22631     ;;
22632   esac
22633   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22634   postinstall_cmds='chmod 555 $lib'
22635   ;;
22636
22637 interix3*)
22638   version_type=linux
22639   need_lib_prefix=no
22640   need_version=no
22641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22642   soname_spec='${libname}${release}${shared_ext}$major'
22643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22644   shlibpath_var=LD_LIBRARY_PATH
22645   shlibpath_overrides_runpath=no
22646   hardcode_into_libs=yes
22647   ;;
22648
22649 irix5* | irix6* | nonstopux*)
22650   case $host_os in
22651     nonstopux*) version_type=nonstopux ;;
22652     *)
22653         if test "$lt_cv_prog_gnu_ld" = yes; then
22654                 version_type=linux
22655         else
22656                 version_type=irix
22657         fi ;;
22658   esac
22659   need_lib_prefix=no
22660   need_version=no
22661   soname_spec='${libname}${release}${shared_ext}$major'
22662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22663   case $host_os in
22664   irix5* | nonstopux*)
22665     libsuff= shlibsuff=
22666     ;;
22667   *)
22668     case $LD in # libtool.m4 will add one of these switches to LD
22669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22670       libsuff= shlibsuff= libmagic=32-bit;;
22671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22672       libsuff=32 shlibsuff=N32 libmagic=N32;;
22673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22675     *) libsuff= shlibsuff= libmagic=never-match;;
22676     esac
22677     ;;
22678   esac
22679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22680   shlibpath_overrides_runpath=no
22681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22683   hardcode_into_libs=yes
22684   ;;
22685
22686 # No shared lib support for Linux oldld, aout, or coff.
22687 linux*oldld* | linux*aout* | linux*coff*)
22688   dynamic_linker=no
22689   ;;
22690
22691 # This must be Linux ELF.
22692 linux*)
22693   version_type=linux
22694   need_lib_prefix=no
22695   need_version=no
22696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697   soname_spec='${libname}${release}${shared_ext}$major'
22698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22699   shlibpath_var=LD_LIBRARY_PATH
22700   shlibpath_overrides_runpath=no
22701   # This implies no fast_install, which is unacceptable.
22702   # Some rework will be needed to allow for fast_install
22703   # before this can be enabled.
22704   hardcode_into_libs=yes
22705
22706   # Append ld.so.conf contents to the search path
22707   if test -f /etc/ld.so.conf; then
22708     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' ' '`
22709     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22710   fi
22711
22712   # We used to test for /lib/ld.so.1 and disable shared libraries on
22713   # powerpc, because MkLinux only supported shared libraries with the
22714   # GNU dynamic linker.  Since this was broken with cross compilers,
22715   # most powerpc-linux boxes support dynamic linking these days and
22716   # people can always --disable-shared, the test was removed, and we
22717   # assume the GNU/Linux dynamic linker is in use.
22718   dynamic_linker='GNU/Linux ld.so'
22719   ;;
22720
22721 knetbsd*-gnu)
22722   version_type=linux
22723   need_lib_prefix=no
22724   need_version=no
22725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22726   soname_spec='${libname}${release}${shared_ext}$major'
22727   shlibpath_var=LD_LIBRARY_PATH
22728   shlibpath_overrides_runpath=no
22729   hardcode_into_libs=yes
22730   dynamic_linker='GNU ld.so'
22731   ;;
22732
22733 netbsd*)
22734   version_type=sunos
22735   need_lib_prefix=no
22736   need_version=no
22737   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22739     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22740     dynamic_linker='NetBSD (a.out) ld.so'
22741   else
22742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22743     soname_spec='${libname}${release}${shared_ext}$major'
22744     dynamic_linker='NetBSD ld.elf_so'
22745   fi
22746   shlibpath_var=LD_LIBRARY_PATH
22747   shlibpath_overrides_runpath=yes
22748   hardcode_into_libs=yes
22749   ;;
22750
22751 newsos6)
22752   version_type=linux
22753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754   shlibpath_var=LD_LIBRARY_PATH
22755   shlibpath_overrides_runpath=yes
22756   ;;
22757
22758 nto-qnx*)
22759   version_type=linux
22760   need_lib_prefix=no
22761   need_version=no
22762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22763   soname_spec='${libname}${release}${shared_ext}$major'
22764   shlibpath_var=LD_LIBRARY_PATH
22765   shlibpath_overrides_runpath=yes
22766   ;;
22767
22768 openbsd*)
22769   version_type=sunos
22770   sys_lib_dlsearch_path_spec="/usr/lib"
22771   need_lib_prefix=no
22772   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22773   case $host_os in
22774     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22775     *)                         need_version=no  ;;
22776   esac
22777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22779   shlibpath_var=LD_LIBRARY_PATH
22780   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22781     case $host_os in
22782       openbsd2.[89] | openbsd2.[89].*)
22783         shlibpath_overrides_runpath=no
22784         ;;
22785       *)
22786         shlibpath_overrides_runpath=yes
22787         ;;
22788       esac
22789   else
22790     shlibpath_overrides_runpath=yes
22791   fi
22792   ;;
22793
22794 os2*)
22795   libname_spec='$name'
22796   shrext_cmds=".dll"
22797   need_lib_prefix=no
22798   library_names_spec='$libname${shared_ext} $libname.a'
22799   dynamic_linker='OS/2 ld.exe'
22800   shlibpath_var=LIBPATH
22801   ;;
22802
22803 osf3* | osf4* | osf5*)
22804   version_type=osf
22805   need_lib_prefix=no
22806   need_version=no
22807   soname_spec='${libname}${release}${shared_ext}$major'
22808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22809   shlibpath_var=LD_LIBRARY_PATH
22810   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22811   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22812   ;;
22813
22814 solaris*)
22815   version_type=linux
22816   need_lib_prefix=no
22817   need_version=no
22818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22819   soname_spec='${libname}${release}${shared_ext}$major'
22820   shlibpath_var=LD_LIBRARY_PATH
22821   shlibpath_overrides_runpath=yes
22822   hardcode_into_libs=yes
22823   # ldd complains unless libraries are executable
22824   postinstall_cmds='chmod +x $lib'
22825   ;;
22826
22827 sunos4*)
22828   version_type=sunos
22829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22830   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22831   shlibpath_var=LD_LIBRARY_PATH
22832   shlibpath_overrides_runpath=yes
22833   if test "$with_gnu_ld" = yes; then
22834     need_lib_prefix=no
22835   fi
22836   need_version=yes
22837   ;;
22838
22839 sysv4 | sysv4.3*)
22840   version_type=linux
22841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22842   soname_spec='${libname}${release}${shared_ext}$major'
22843   shlibpath_var=LD_LIBRARY_PATH
22844   case $host_vendor in
22845     sni)
22846       shlibpath_overrides_runpath=no
22847       need_lib_prefix=no
22848       export_dynamic_flag_spec='${wl}-Blargedynsym'
22849       runpath_var=LD_RUN_PATH
22850       ;;
22851     siemens)
22852       need_lib_prefix=no
22853       ;;
22854     motorola)
22855       need_lib_prefix=no
22856       need_version=no
22857       shlibpath_overrides_runpath=no
22858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22859       ;;
22860   esac
22861   ;;
22862
22863 sysv4*MP*)
22864   if test -d /usr/nec ;then
22865     version_type=linux
22866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22867     soname_spec='$libname${shared_ext}.$major'
22868     shlibpath_var=LD_LIBRARY_PATH
22869   fi
22870   ;;
22871
22872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22873   version_type=freebsd-elf
22874   need_lib_prefix=no
22875   need_version=no
22876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22877   soname_spec='${libname}${release}${shared_ext}$major'
22878   shlibpath_var=LD_LIBRARY_PATH
22879   hardcode_into_libs=yes
22880   if test "$with_gnu_ld" = yes; then
22881     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22882     shlibpath_overrides_runpath=no
22883   else
22884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22885     shlibpath_overrides_runpath=yes
22886     case $host_os in
22887       sco3.2v5*)
22888         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22889         ;;
22890     esac
22891   fi
22892   sys_lib_dlsearch_path_spec='/usr/lib'
22893   ;;
22894
22895 uts4*)
22896   version_type=linux
22897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898   soname_spec='${libname}${release}${shared_ext}$major'
22899   shlibpath_var=LD_LIBRARY_PATH
22900   ;;
22901
22902 *)
22903   dynamic_linker=no
22904   ;;
22905 esac
22906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22907 echo "${ECHO_T}$dynamic_linker" >&6; }
22908 test "$dynamic_linker" = no && can_build_shared=no
22909
22910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22911 if test "$GCC" = yes; then
22912   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22913 fi
22914
22915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22917 hardcode_action_F77=
22918 if test -n "$hardcode_libdir_flag_spec_F77" || \
22919    test -n "$runpath_var_F77" || \
22920    test "X$hardcode_automatic_F77" = "Xyes" ; then
22921
22922   # We can hardcode non-existant directories.
22923   if test "$hardcode_direct_F77" != no &&
22924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22925      # have to relink, otherwise we might link with an installed library
22926      # when we should be linking with a yet-to-be-installed one
22927      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22928      test "$hardcode_minus_L_F77" != no; then
22929     # Linking always hardcodes the temporary library directory.
22930     hardcode_action_F77=relink
22931   else
22932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22933     hardcode_action_F77=immediate
22934   fi
22935 else
22936   # We cannot hardcode anything, or else we can only hardcode existing
22937   # directories.
22938   hardcode_action_F77=unsupported
22939 fi
22940 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22941 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22942
22943 if test "$hardcode_action_F77" = relink; then
22944   # Fast installation is not supported
22945   enable_fast_install=no
22946 elif test "$shlibpath_overrides_runpath" = yes ||
22947      test "$enable_shared" = no; then
22948   # Fast installation is not necessary
22949   enable_fast_install=needless
22950 fi
22951
22952
22953 # The else clause should only fire when bootstrapping the
22954 # libtool distribution, otherwise you forgot to ship ltmain.sh
22955 # with your package, and you will get complaints that there are
22956 # no rules to generate ltmain.sh.
22957 if test -f "$ltmain"; then
22958   # See if we are running on zsh, and set the options which allow our commands through
22959   # without removal of \ escapes.
22960   if test -n "${ZSH_VERSION+set}" ; then
22961     setopt NO_GLOB_SUBST
22962   fi
22963   # Now quote all the things that may contain metacharacters while being
22964   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22965   # variables and quote the copies for generation of the libtool script.
22966   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22967     SED SHELL STRIP \
22968     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22969     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22970     deplibs_check_method reload_flag reload_cmds need_locks \
22971     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22972     lt_cv_sys_global_symbol_to_c_name_address \
22973     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22974     old_postinstall_cmds old_postuninstall_cmds \
22975     compiler_F77 \
22976     CC_F77 \
22977     LD_F77 \
22978     lt_prog_compiler_wl_F77 \
22979     lt_prog_compiler_pic_F77 \
22980     lt_prog_compiler_static_F77 \
22981     lt_prog_compiler_no_builtin_flag_F77 \
22982     export_dynamic_flag_spec_F77 \
22983     thread_safe_flag_spec_F77 \
22984     whole_archive_flag_spec_F77 \
22985     enable_shared_with_static_runtimes_F77 \
22986     old_archive_cmds_F77 \
22987     old_archive_from_new_cmds_F77 \
22988     predep_objects_F77 \
22989     postdep_objects_F77 \
22990     predeps_F77 \
22991     postdeps_F77 \
22992     compiler_lib_search_path_F77 \
22993     archive_cmds_F77 \
22994     archive_expsym_cmds_F77 \
22995     postinstall_cmds_F77 \
22996     postuninstall_cmds_F77 \
22997     old_archive_from_expsyms_cmds_F77 \
22998     allow_undefined_flag_F77 \
22999     no_undefined_flag_F77 \
23000     export_symbols_cmds_F77 \
23001     hardcode_libdir_flag_spec_F77 \
23002     hardcode_libdir_flag_spec_ld_F77 \
23003     hardcode_libdir_separator_F77 \
23004     hardcode_automatic_F77 \
23005     module_cmds_F77 \
23006     module_expsym_cmds_F77 \
23007     lt_cv_prog_compiler_c_o_F77 \
23008     exclude_expsyms_F77 \
23009     include_expsyms_F77; do
23010
23011     case $var in
23012     old_archive_cmds_F77 | \
23013     old_archive_from_new_cmds_F77 | \
23014     archive_cmds_F77 | \
23015     archive_expsym_cmds_F77 | \
23016     module_cmds_F77 | \
23017     module_expsym_cmds_F77 | \
23018     old_archive_from_expsyms_cmds_F77 | \
23019     export_symbols_cmds_F77 | \
23020     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23021     postinstall_cmds | postuninstall_cmds | \
23022     old_postinstall_cmds | old_postuninstall_cmds | \
23023     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23024       # Double-quote double-evaled strings.
23025       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23026       ;;
23027     *)
23028       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23029       ;;
23030     esac
23031   done
23032
23033   case $lt_echo in
23034   *'\$0 --fallback-echo"')
23035     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23036     ;;
23037   esac
23038
23039 cfgfile="$ofile"
23040
23041   cat <<__EOF__ >> "$cfgfile"
23042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23043
23044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23045
23046 # Shell to use when invoking shell scripts.
23047 SHELL=$lt_SHELL
23048
23049 # Whether or not to build shared libraries.
23050 build_libtool_libs=$enable_shared
23051
23052 # Whether or not to build static libraries.
23053 build_old_libs=$enable_static
23054
23055 # Whether or not to add -lc for building shared libraries.
23056 build_libtool_need_lc=$archive_cmds_need_lc_F77
23057
23058 # Whether or not to disallow shared libs when runtime libs are static
23059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23060
23061 # Whether or not to optimize for fast installation.
23062 fast_install=$enable_fast_install
23063
23064 # The host system.
23065 host_alias=$host_alias
23066 host=$host
23067 host_os=$host_os
23068
23069 # The build system.
23070 build_alias=$build_alias
23071 build=$build
23072 build_os=$build_os
23073
23074 # An echo program that does not interpret backslashes.
23075 echo=$lt_echo
23076
23077 # The archiver.
23078 AR=$lt_AR
23079 AR_FLAGS=$lt_AR_FLAGS
23080
23081 # A C compiler.
23082 LTCC=$lt_LTCC
23083
23084 # LTCC compiler flags.
23085 LTCFLAGS=$lt_LTCFLAGS
23086
23087 # A language-specific compiler.
23088 CC=$lt_compiler_F77
23089
23090 # Is the compiler the GNU C compiler?
23091 with_gcc=$GCC_F77
23092
23093 # An ERE matcher.
23094 EGREP=$lt_EGREP
23095
23096 # The linker used to build libraries.
23097 LD=$lt_LD_F77
23098
23099 # Whether we need hard or soft links.
23100 LN_S=$lt_LN_S
23101
23102 # A BSD-compatible nm program.
23103 NM=$lt_NM
23104
23105 # A symbol stripping program
23106 STRIP=$lt_STRIP
23107
23108 # Used to examine libraries when file_magic_cmd begins "file"
23109 MAGIC_CMD=$MAGIC_CMD
23110
23111 # Used on cygwin: DLL creation program.
23112 DLLTOOL="$DLLTOOL"
23113
23114 # Used on cygwin: object dumper.
23115 OBJDUMP="$OBJDUMP"
23116
23117 # Used on cygwin: assembler.
23118 AS="$AS"
23119
23120 # The name of the directory that contains temporary libtool files.
23121 objdir=$objdir
23122
23123 # How to create reloadable object files.
23124 reload_flag=$lt_reload_flag
23125 reload_cmds=$lt_reload_cmds
23126
23127 # How to pass a linker flag through the compiler.
23128 wl=$lt_lt_prog_compiler_wl_F77
23129
23130 # Object file suffix (normally "o").
23131 objext="$ac_objext"
23132
23133 # Old archive suffix (normally "a").
23134 libext="$libext"
23135
23136 # Shared library suffix (normally ".so").
23137 shrext_cmds='$shrext_cmds'
23138
23139 # Executable file suffix (normally "").
23140 exeext="$exeext"
23141
23142 # Additional compiler flags for building library objects.
23143 pic_flag=$lt_lt_prog_compiler_pic_F77
23144 pic_mode=$pic_mode
23145
23146 # What is the maximum length of a command?
23147 max_cmd_len=$lt_cv_sys_max_cmd_len
23148
23149 # Does compiler simultaneously support -c and -o options?
23150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23151
23152 # Must we lock files when doing compilation?
23153 need_locks=$lt_need_locks
23154
23155 # Do we need the lib prefix for modules?
23156 need_lib_prefix=$need_lib_prefix
23157
23158 # Do we need a version for libraries?
23159 need_version=$need_version
23160
23161 # Whether dlopen is supported.
23162 dlopen_support=$enable_dlopen
23163
23164 # Whether dlopen of programs is supported.
23165 dlopen_self=$enable_dlopen_self
23166
23167 # Whether dlopen of statically linked programs is supported.
23168 dlopen_self_static=$enable_dlopen_self_static
23169
23170 # Compiler flag to prevent dynamic linking.
23171 link_static_flag=$lt_lt_prog_compiler_static_F77
23172
23173 # Compiler flag to turn off builtin functions.
23174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23175
23176 # Compiler flag to allow reflexive dlopens.
23177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23178
23179 # Compiler flag to generate shared objects directly from archives.
23180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23181
23182 # Compiler flag to generate thread-safe objects.
23183 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23184
23185 # Library versioning type.
23186 version_type=$version_type
23187
23188 # Format of library name prefix.
23189 libname_spec=$lt_libname_spec
23190
23191 # List of archive names.  First name is the real one, the rest are links.
23192 # The last name is the one that the linker finds with -lNAME.
23193 library_names_spec=$lt_library_names_spec
23194
23195 # The coded name of the library, if different from the real name.
23196 soname_spec=$lt_soname_spec
23197
23198 # Commands used to build and install an old-style archive.
23199 RANLIB=$lt_RANLIB
23200 old_archive_cmds=$lt_old_archive_cmds_F77
23201 old_postinstall_cmds=$lt_old_postinstall_cmds
23202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23203
23204 # Create an old-style archive from a shared archive.
23205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23206
23207 # Create a temporary old-style archive to link instead of a shared archive.
23208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23209
23210 # Commands used to build and install a shared archive.
23211 archive_cmds=$lt_archive_cmds_F77
23212 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23213 postinstall_cmds=$lt_postinstall_cmds
23214 postuninstall_cmds=$lt_postuninstall_cmds
23215
23216 # Commands used to build a loadable module (assumed same as above if empty)
23217 module_cmds=$lt_module_cmds_F77
23218 module_expsym_cmds=$lt_module_expsym_cmds_F77
23219
23220 # Commands to strip libraries.
23221 old_striplib=$lt_old_striplib
23222 striplib=$lt_striplib
23223
23224 # Dependencies to place before the objects being linked to create a
23225 # shared library.
23226 predep_objects=$lt_predep_objects_F77
23227
23228 # Dependencies to place after the objects being linked to create a
23229 # shared library.
23230 postdep_objects=$lt_postdep_objects_F77
23231
23232 # Dependencies to place before the objects being linked to create a
23233 # shared library.
23234 predeps=$lt_predeps_F77
23235
23236 # Dependencies to place after the objects being linked to create a
23237 # shared library.
23238 postdeps=$lt_postdeps_F77
23239
23240 # The library search path used internally by the compiler when linking
23241 # a shared library.
23242 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23243
23244 # Method to check whether dependent libraries are shared objects.
23245 deplibs_check_method=$lt_deplibs_check_method
23246
23247 # Command to use when deplibs_check_method == file_magic.
23248 file_magic_cmd=$lt_file_magic_cmd
23249
23250 # Flag that allows shared libraries with undefined symbols to be built.
23251 allow_undefined_flag=$lt_allow_undefined_flag_F77
23252
23253 # Flag that forces no undefined symbols.
23254 no_undefined_flag=$lt_no_undefined_flag_F77
23255
23256 # Commands used to finish a libtool library installation in a directory.
23257 finish_cmds=$lt_finish_cmds
23258
23259 # Same as above, but a single script fragment to be evaled but not shown.
23260 finish_eval=$lt_finish_eval
23261
23262 # Take the output of nm and produce a listing of raw symbols and C names.
23263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23264
23265 # Transform the output of nm in a proper C declaration
23266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23267
23268 # Transform the output of nm in a C name address pair
23269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23270
23271 # This is the shared library runtime path variable.
23272 runpath_var=$runpath_var
23273
23274 # This is the shared library path variable.
23275 shlibpath_var=$shlibpath_var
23276
23277 # Is shlibpath searched before the hard-coded library search path?
23278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23279
23280 # How to hardcode a shared library path into an executable.
23281 hardcode_action=$hardcode_action_F77
23282
23283 # Whether we should hardcode library paths into libraries.
23284 hardcode_into_libs=$hardcode_into_libs
23285
23286 # Flag to hardcode \$libdir into a binary during linking.
23287 # This must work even if \$libdir does not exist.
23288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23289
23290 # If ld is used when linking, flag to hardcode \$libdir into
23291 # a binary during linking. This must work even if \$libdir does
23292 # not exist.
23293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23294
23295 # Whether we need a single -rpath flag with a separated argument.
23296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23297
23298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23299 # resulting binary.
23300 hardcode_direct=$hardcode_direct_F77
23301
23302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23303 # resulting binary.
23304 hardcode_minus_L=$hardcode_minus_L_F77
23305
23306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23307 # the resulting binary.
23308 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23309
23310 # Set to yes if building a shared library automatically hardcodes DIR into the library
23311 # and all subsequent libraries and executables linked against it.
23312 hardcode_automatic=$hardcode_automatic_F77
23313
23314 # Variables whose values should be saved in libtool wrapper scripts and
23315 # restored at relink time.
23316 variables_saved_for_relink="$variables_saved_for_relink"
23317
23318 # Whether libtool must link a program against all its dependency libraries.
23319 link_all_deplibs=$link_all_deplibs_F77
23320
23321 # Compile-time system search path for libraries
23322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23323
23324 # Run-time system search path for libraries
23325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23326
23327 # Fix the shell variable \$srcfile for the compiler.
23328 fix_srcfile_path="$fix_srcfile_path_F77"
23329
23330 # Set to yes if exported symbols are required.
23331 always_export_symbols=$always_export_symbols_F77
23332
23333 # The commands to list exported symbols.
23334 export_symbols_cmds=$lt_export_symbols_cmds_F77
23335
23336 # The commands to extract the exported symbol list from a shared archive.
23337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23338
23339 # Symbols that should not be listed in the preloaded symbols.
23340 exclude_expsyms=$lt_exclude_expsyms_F77
23341
23342 # Symbols that must always be exported.
23343 include_expsyms=$lt_include_expsyms_F77
23344
23345 # ### END LIBTOOL TAG CONFIG: $tagname
23346
23347 __EOF__
23348
23349
23350 else
23351   # If there is no Makefile yet, we rely on a make rule to execute
23352   # `config.status --recheck' to rerun these tests and create the
23353   # libtool script then.
23354   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23355   if test -f "$ltmain_in"; then
23356     test -f Makefile && make "$ltmain"
23357   fi
23358 fi
23359
23360
23361 ac_ext=c
23362 ac_cpp='$CPP $CPPFLAGS'
23363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23366
23367 CC="$lt_save_CC"
23368
23369         else
23370           tagname=""
23371         fi
23372         ;;
23373
23374       GCJ)
23375         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23376           ac_ext=c
23377 ac_cpp='$CPP $CPPFLAGS'
23378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23381
23382
23383 # Source file extension for Java test sources.
23384 ac_ext=java
23385
23386 # Object file extension for compiled Java test sources.
23387 objext=o
23388 objext_GCJ=$objext
23389
23390 # Code to be used in simple compile tests
23391 lt_simple_compile_test_code="class foo {}\n"
23392
23393 # Code to be used in simple link tests
23394 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23395
23396 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23397
23398 # If no C compiler was specified, use CC.
23399 LTCC=${LTCC-"$CC"}
23400
23401 # If no C compiler flags were specified, use CFLAGS.
23402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23403
23404 # Allow CC to be a program name with arguments.
23405 compiler=$CC
23406
23407
23408 # save warnings/boilerplate of simple test code
23409 ac_outfile=conftest.$ac_objext
23410 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23411 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23412 _lt_compiler_boilerplate=`cat conftest.err`
23413 $rm conftest*
23414
23415 ac_outfile=conftest.$ac_objext
23416 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23417 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23418 _lt_linker_boilerplate=`cat conftest.err`
23419 $rm conftest*
23420
23421
23422 # Allow CC to be a program name with arguments.
23423 lt_save_CC="$CC"
23424 CC=${GCJ-"gcj"}
23425 compiler=$CC
23426 compiler_GCJ=$CC
23427 for cc_temp in $compiler""; do
23428   case $cc_temp in
23429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23431     \-*) ;;
23432     *) break;;
23433   esac
23434 done
23435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23436
23437
23438 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23439 archive_cmds_need_lc_GCJ=no
23440
23441 old_archive_cmds_GCJ=$old_archive_cmds
23442
23443
23444 lt_prog_compiler_no_builtin_flag_GCJ=
23445
23446 if test "$GCC" = yes; then
23447   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23448
23449
23450 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23451 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23453   echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23455   lt_cv_prog_compiler_rtti_exceptions=no
23456   ac_outfile=conftest.$ac_objext
23457    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23458    lt_compiler_flag="-fno-rtti -fno-exceptions"
23459    # Insert the option either (1) after the last *FLAGS variable, or
23460    # (2) before a word containing "conftest.", or (3) at the end.
23461    # Note that $ac_compile itself does not contain backslashes and begins
23462    # with a dollar sign (not a hyphen), so the echo should work correctly.
23463    # The option is referenced via a variable to avoid confusing sed.
23464    lt_compile=`echo "$ac_compile" | $SED \
23465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23467    -e 's:$: $lt_compiler_flag:'`
23468    (eval echo "\"\$as_me:23468: $lt_compile\"" >&5)
23469    (eval "$lt_compile" 2>conftest.err)
23470    ac_status=$?
23471    cat conftest.err >&5
23472    echo "$as_me:23472: \$? = $ac_status" >&5
23473    if (exit $ac_status) && test -s "$ac_outfile"; then
23474      # The compiler can only warn and ignore the option if not recognized
23475      # So say no if there are warnings other than the usual output.
23476      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23477      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23478      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23479        lt_cv_prog_compiler_rtti_exceptions=yes
23480      fi
23481    fi
23482    $rm conftest*
23483
23484 fi
23485 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23486 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23487
23488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23489     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23490 else
23491     :
23492 fi
23493
23494 fi
23495
23496 lt_prog_compiler_wl_GCJ=
23497 lt_prog_compiler_pic_GCJ=
23498 lt_prog_compiler_static_GCJ=
23499
23500 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23501 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23502
23503   if test "$GCC" = yes; then
23504     lt_prog_compiler_wl_GCJ='-Wl,'
23505     lt_prog_compiler_static_GCJ='-static'
23506
23507     case $host_os in
23508       aix*)
23509       # All AIX code is PIC.
23510       if test "$host_cpu" = ia64; then
23511         # AIX 5 now supports IA64 processor
23512         lt_prog_compiler_static_GCJ='-Bstatic'
23513       fi
23514       ;;
23515
23516     amigaos*)
23517       # FIXME: we need at least 68020 code to build shared libraries, but
23518       # adding the `-m68020' flag to GCC prevents building anything better,
23519       # like `-m68040'.
23520       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23521       ;;
23522
23523     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23524       # PIC is the default for these OSes.
23525       ;;
23526
23527     mingw* | pw32* | os2*)
23528       # This hack is so that the source file can tell whether it is being
23529       # built for inclusion in a dll (and should export symbols for example).
23530       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23531       ;;
23532
23533     darwin* | rhapsody*)
23534       # PIC is the default on this platform
23535       # Common symbols not allowed in MH_DYLIB files
23536       lt_prog_compiler_pic_GCJ='-fno-common'
23537       ;;
23538
23539     interix3*)
23540       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23541       # Instead, we relocate shared libraries at runtime.
23542       ;;
23543
23544     msdosdjgpp*)
23545       # Just because we use GCC doesn't mean we suddenly get shared libraries
23546       # on systems that don't support them.
23547       lt_prog_compiler_can_build_shared_GCJ=no
23548       enable_shared=no
23549       ;;
23550
23551     sysv4*MP*)
23552       if test -d /usr/nec; then
23553         lt_prog_compiler_pic_GCJ=-Kconform_pic
23554       fi
23555       ;;
23556
23557     hpux*)
23558       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23559       # not for PA HP-UX.
23560       case $host_cpu in
23561       hppa*64*|ia64*)
23562         # +Z the default
23563         ;;
23564       *)
23565         lt_prog_compiler_pic_GCJ='-fPIC'
23566         ;;
23567       esac
23568       ;;
23569
23570     *)
23571       lt_prog_compiler_pic_GCJ='-fPIC'
23572       ;;
23573     esac
23574   else
23575     # PORTME Check for flag to pass linker flags through the system compiler.
23576     case $host_os in
23577     aix*)
23578       lt_prog_compiler_wl_GCJ='-Wl,'
23579       if test "$host_cpu" = ia64; then
23580         # AIX 5 now supports IA64 processor
23581         lt_prog_compiler_static_GCJ='-Bstatic'
23582       else
23583         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23584       fi
23585       ;;
23586       darwin*)
23587         # PIC is the default on this platform
23588         # Common symbols not allowed in MH_DYLIB files
23589        case $cc_basename in
23590          xlc*)
23591          lt_prog_compiler_pic_GCJ='-qnocommon'
23592          lt_prog_compiler_wl_GCJ='-Wl,'
23593          ;;
23594        esac
23595        ;;
23596
23597     mingw* | pw32* | os2*)
23598       # This hack is so that the source file can tell whether it is being
23599       # built for inclusion in a dll (and should export symbols for example).
23600       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23601       ;;
23602
23603     hpux9* | hpux10* | hpux11*)
23604       lt_prog_compiler_wl_GCJ='-Wl,'
23605       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23606       # not for PA HP-UX.
23607       case $host_cpu in
23608       hppa*64*|ia64*)
23609         # +Z the default
23610         ;;
23611       *)
23612         lt_prog_compiler_pic_GCJ='+Z'
23613         ;;
23614       esac
23615       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23616       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23617       ;;
23618
23619     irix5* | irix6* | nonstopux*)
23620       lt_prog_compiler_wl_GCJ='-Wl,'
23621       # PIC (with -KPIC) is the default.
23622       lt_prog_compiler_static_GCJ='-non_shared'
23623       ;;
23624
23625     newsos6)
23626       lt_prog_compiler_pic_GCJ='-KPIC'
23627       lt_prog_compiler_static_GCJ='-Bstatic'
23628       ;;
23629
23630     linux*)
23631       case $cc_basename in
23632       icc* | ecc*)
23633         lt_prog_compiler_wl_GCJ='-Wl,'
23634         lt_prog_compiler_pic_GCJ='-KPIC'
23635         lt_prog_compiler_static_GCJ='-static'
23636         ;;
23637       pgcc* | pgf77* | pgf90* | pgf95*)
23638         # Portland Group compilers (*not* the Pentium gcc compiler,
23639         # which looks to be a dead project)
23640         lt_prog_compiler_wl_GCJ='-Wl,'
23641         lt_prog_compiler_pic_GCJ='-fpic'
23642         lt_prog_compiler_static_GCJ='-Bstatic'
23643         ;;
23644       ccc*)
23645         lt_prog_compiler_wl_GCJ='-Wl,'
23646         # All Alpha code is PIC.
23647         lt_prog_compiler_static_GCJ='-non_shared'
23648         ;;
23649       esac
23650       ;;
23651
23652     osf3* | osf4* | osf5*)
23653       lt_prog_compiler_wl_GCJ='-Wl,'
23654       # All OSF/1 code is PIC.
23655       lt_prog_compiler_static_GCJ='-non_shared'
23656       ;;
23657
23658     solaris*)
23659       lt_prog_compiler_pic_GCJ='-KPIC'
23660       lt_prog_compiler_static_GCJ='-Bstatic'
23661       case $cc_basename in
23662       f77* | f90* | f95*)
23663         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23664       *)
23665         lt_prog_compiler_wl_GCJ='-Wl,';;
23666       esac
23667       ;;
23668
23669     sunos4*)
23670       lt_prog_compiler_wl_GCJ='-Qoption ld '
23671       lt_prog_compiler_pic_GCJ='-PIC'
23672       lt_prog_compiler_static_GCJ='-Bstatic'
23673       ;;
23674
23675     sysv4 | sysv4.2uw2* | sysv4.3*)
23676       lt_prog_compiler_wl_GCJ='-Wl,'
23677       lt_prog_compiler_pic_GCJ='-KPIC'
23678       lt_prog_compiler_static_GCJ='-Bstatic'
23679       ;;
23680
23681     sysv4*MP*)
23682       if test -d /usr/nec ;then
23683         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23684         lt_prog_compiler_static_GCJ='-Bstatic'
23685       fi
23686       ;;
23687
23688     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23689       lt_prog_compiler_wl_GCJ='-Wl,'
23690       lt_prog_compiler_pic_GCJ='-KPIC'
23691       lt_prog_compiler_static_GCJ='-Bstatic'
23692       ;;
23693
23694     unicos*)
23695       lt_prog_compiler_wl_GCJ='-Wl,'
23696       lt_prog_compiler_can_build_shared_GCJ=no
23697       ;;
23698
23699     uts4*)
23700       lt_prog_compiler_pic_GCJ='-pic'
23701       lt_prog_compiler_static_GCJ='-Bstatic'
23702       ;;
23703
23704     *)
23705       lt_prog_compiler_can_build_shared_GCJ=no
23706       ;;
23707     esac
23708   fi
23709
23710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23711 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23712
23713 #
23714 # Check to make sure the PIC flag actually works.
23715 #
23716 if test -n "$lt_prog_compiler_pic_GCJ"; then
23717
23718 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23720 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   lt_prog_compiler_pic_works_GCJ=no
23724   ac_outfile=conftest.$ac_objext
23725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23726    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23727    # Insert the option either (1) after the last *FLAGS variable, or
23728    # (2) before a word containing "conftest.", or (3) at the end.
23729    # Note that $ac_compile itself does not contain backslashes and begins
23730    # with a dollar sign (not a hyphen), so the echo should work correctly.
23731    # The option is referenced via a variable to avoid confusing sed.
23732    lt_compile=`echo "$ac_compile" | $SED \
23733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23735    -e 's:$: $lt_compiler_flag:'`
23736    (eval echo "\"\$as_me:23736: $lt_compile\"" >&5)
23737    (eval "$lt_compile" 2>conftest.err)
23738    ac_status=$?
23739    cat conftest.err >&5
23740    echo "$as_me:23740: \$? = $ac_status" >&5
23741    if (exit $ac_status) && test -s "$ac_outfile"; then
23742      # The compiler can only warn and ignore the option if not recognized
23743      # So say no if there are warnings other than the usual output.
23744      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23745      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23746      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23747        lt_prog_compiler_pic_works_GCJ=yes
23748      fi
23749    fi
23750    $rm conftest*
23751
23752 fi
23753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23754 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23755
23756 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23757     case $lt_prog_compiler_pic_GCJ in
23758      "" | " "*) ;;
23759      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23760      esac
23761 else
23762     lt_prog_compiler_pic_GCJ=
23763      lt_prog_compiler_can_build_shared_GCJ=no
23764 fi
23765
23766 fi
23767 case $host_os in
23768   # For platforms which do not support PIC, -DPIC is meaningless:
23769   *djgpp*)
23770     lt_prog_compiler_pic_GCJ=
23771     ;;
23772   *)
23773     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23774     ;;
23775 esac
23776
23777 #
23778 # Check to make sure the static flag actually works.
23779 #
23780 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23783 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23784   echo $ECHO_N "(cached) $ECHO_C" >&6
23785 else
23786   lt_prog_compiler_static_works_GCJ=no
23787    save_LDFLAGS="$LDFLAGS"
23788    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23789    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23790    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23791      # The linker can only warn and ignore the option if not recognized
23792      # So say no if there are warnings
23793      if test -s conftest.err; then
23794        # Append any errors to the config.log.
23795        cat conftest.err 1>&5
23796        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23797        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23798        if diff conftest.exp conftest.er2 >/dev/null; then
23799          lt_prog_compiler_static_works_GCJ=yes
23800        fi
23801      else
23802        lt_prog_compiler_static_works_GCJ=yes
23803      fi
23804    fi
23805    $rm conftest*
23806    LDFLAGS="$save_LDFLAGS"
23807
23808 fi
23809 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23810 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23811
23812 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23813     :
23814 else
23815     lt_prog_compiler_static_GCJ=
23816 fi
23817
23818
23819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23821 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23822   echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824   lt_cv_prog_compiler_c_o_GCJ=no
23825    $rm -r conftest 2>/dev/null
23826    mkdir conftest
23827    cd conftest
23828    mkdir out
23829    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23830
23831    lt_compiler_flag="-o out/conftest2.$ac_objext"
23832    # Insert the option either (1) after the last *FLAGS variable, or
23833    # (2) before a word containing "conftest.", or (3) at the end.
23834    # Note that $ac_compile itself does not contain backslashes and begins
23835    # with a dollar sign (not a hyphen), so the echo should work correctly.
23836    lt_compile=`echo "$ac_compile" | $SED \
23837    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23839    -e 's:$: $lt_compiler_flag:'`
23840    (eval echo "\"\$as_me:23840: $lt_compile\"" >&5)
23841    (eval "$lt_compile" 2>out/conftest.err)
23842    ac_status=$?
23843    cat out/conftest.err >&5
23844    echo "$as_me:23844: \$? = $ac_status" >&5
23845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23846    then
23847      # The compiler can only warn and ignore the option if not recognized
23848      # So say no if there are warnings
23849      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23850      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23851      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23852        lt_cv_prog_compiler_c_o_GCJ=yes
23853      fi
23854    fi
23855    chmod u+w . 2>&5
23856    $rm conftest*
23857    # SGI C++ compiler will create directory out/ii_files/ for
23858    # template instantiation
23859    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23860    $rm out/* && rmdir out
23861    cd ..
23862    rmdir conftest
23863    $rm conftest*
23864
23865 fi
23866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23868
23869
23870 hard_links="nottested"
23871 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23872   # do not overwrite the value of need_locks provided by the user
23873   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23875   hard_links=yes
23876   $rm conftest*
23877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23878   touch conftest.a
23879   ln conftest.a conftest.b 2>&5 || hard_links=no
23880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23881   { echo "$as_me:$LINENO: result: $hard_links" >&5
23882 echo "${ECHO_T}$hard_links" >&6; }
23883   if test "$hard_links" = no; then
23884     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23886     need_locks=warn
23887   fi
23888 else
23889   need_locks=no
23890 fi
23891
23892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23894
23895   runpath_var=
23896   allow_undefined_flag_GCJ=
23897   enable_shared_with_static_runtimes_GCJ=no
23898   archive_cmds_GCJ=
23899   archive_expsym_cmds_GCJ=
23900   old_archive_From_new_cmds_GCJ=
23901   old_archive_from_expsyms_cmds_GCJ=
23902   export_dynamic_flag_spec_GCJ=
23903   whole_archive_flag_spec_GCJ=
23904   thread_safe_flag_spec_GCJ=
23905   hardcode_libdir_flag_spec_GCJ=
23906   hardcode_libdir_flag_spec_ld_GCJ=
23907   hardcode_libdir_separator_GCJ=
23908   hardcode_direct_GCJ=no
23909   hardcode_minus_L_GCJ=no
23910   hardcode_shlibpath_var_GCJ=unsupported
23911   link_all_deplibs_GCJ=unknown
23912   hardcode_automatic_GCJ=no
23913   module_cmds_GCJ=
23914   module_expsym_cmds_GCJ=
23915   always_export_symbols_GCJ=no
23916   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23917   # include_expsyms should be a list of space-separated symbols to be *always*
23918   # included in the symbol list
23919   include_expsyms_GCJ=
23920   # exclude_expsyms can be an extended regexp of symbols to exclude
23921   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23922   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23923   # as well as any symbol that contains `d'.
23924   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23925   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23926   # platforms (ab)use it in PIC code, but their linkers get confused if
23927   # the symbol is explicitly referenced.  Since portable code cannot
23928   # rely on this symbol name, it's probably fine to never include it in
23929   # preloaded symbol tables.
23930   extract_expsyms_cmds=
23931   # Just being paranoid about ensuring that cc_basename is set.
23932   for cc_temp in $compiler""; do
23933   case $cc_temp in
23934     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23935     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23936     \-*) ;;
23937     *) break;;
23938   esac
23939 done
23940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23941
23942   case $host_os in
23943   cygwin* | mingw* | pw32*)
23944     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23945     # When not using gcc, we currently assume that we are using
23946     # Microsoft Visual C++.
23947     if test "$GCC" != yes; then
23948       with_gnu_ld=no
23949     fi
23950     ;;
23951   interix*)
23952     # we just hope/assume this is gcc and not c89 (= MSVC++)
23953     with_gnu_ld=yes
23954     ;;
23955   openbsd*)
23956     with_gnu_ld=no
23957     ;;
23958   esac
23959
23960   ld_shlibs_GCJ=yes
23961   if test "$with_gnu_ld" = yes; then
23962     # If archive_cmds runs LD, not CC, wlarc should be empty
23963     wlarc='${wl}'
23964
23965     # Set some defaults for GNU ld with shared library support. These
23966     # are reset later if shared libraries are not supported. Putting them
23967     # here allows them to be overridden if necessary.
23968     runpath_var=LD_RUN_PATH
23969     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23970     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23971     # ancient GNU ld didn't support --whole-archive et. al.
23972     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23973         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23974       else
23975         whole_archive_flag_spec_GCJ=
23976     fi
23977     supports_anon_versioning=no
23978     case `$LD -v 2>/dev/null` in
23979       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23980       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23981       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23982       *\ 2.11.*) ;; # other 2.11 versions
23983       *) supports_anon_versioning=yes ;;
23984     esac
23985
23986     # See if GNU ld supports shared libraries.
23987     case $host_os in
23988     aix3* | aix4* | aix5*)
23989       # On AIX/PPC, the GNU linker is very broken
23990       if test "$host_cpu" != ia64; then
23991         ld_shlibs_GCJ=no
23992         cat <<EOF 1>&2
23993
23994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23995 *** to be unable to reliably create shared libraries on AIX.
23996 *** Therefore, libtool is disabling shared libraries support.  If you
23997 *** really care for shared libraries, you may want to modify your PATH
23998 *** so that a non-GNU linker is found, and then restart.
23999
24000 EOF
24001       fi
24002       ;;
24003
24004     amigaos*)
24005       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)'
24006       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007       hardcode_minus_L_GCJ=yes
24008
24009       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24010       # that the semantics of dynamic libraries on AmigaOS, at least up
24011       # to version 4, is to share data among multiple programs linked
24012       # with the same dynamic library.  Since this doesn't match the
24013       # behavior of shared libraries on other platforms, we can't use
24014       # them.
24015       ld_shlibs_GCJ=no
24016       ;;
24017
24018     beos*)
24019       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24020         allow_undefined_flag_GCJ=unsupported
24021         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24022         # support --undefined.  This deserves some investigation.  FIXME
24023         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24024       else
24025         ld_shlibs_GCJ=no
24026       fi
24027       ;;
24028
24029     cygwin* | mingw* | pw32*)
24030       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24031       # as there is no search path for DLLs.
24032       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24033       allow_undefined_flag_GCJ=unsupported
24034       always_export_symbols_GCJ=no
24035       enable_shared_with_static_runtimes_GCJ=yes
24036       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24037
24038       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24039         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24040         # If the export-symbols file already is a .def file (1st line
24041         # is EXPORTS), use it as is; otherwise, prepend...
24042         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24043           cp $export_symbols $output_objdir/$soname.def;
24044         else
24045           echo EXPORTS > $output_objdir/$soname.def;
24046           cat $export_symbols >> $output_objdir/$soname.def;
24047         fi~
24048         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24049       else
24050         ld_shlibs_GCJ=no
24051       fi
24052       ;;
24053
24054     interix3*)
24055       hardcode_direct_GCJ=no
24056       hardcode_shlibpath_var_GCJ=no
24057       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24058       export_dynamic_flag_spec_GCJ='${wl}-E'
24059       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24060       # Instead, shared libraries are loaded at an image base (0x10000000 by
24061       # default) and relocated if they conflict, which is a slow very memory
24062       # consuming and fragmenting process.  To avoid this, we pick a random,
24063       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24064       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24065       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'
24066       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'
24067       ;;
24068
24069     linux*)
24070       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24071         tmp_addflag=
24072         case $cc_basename,$host_cpu in
24073         pgcc*)                          # Portland Group C compiler
24074           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'
24075           tmp_addflag=' $pic_flag'
24076           ;;
24077         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24078           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'
24079           tmp_addflag=' $pic_flag -Mnomain' ;;
24080         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24081           tmp_addflag=' -i_dynamic' ;;
24082         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24083           tmp_addflag=' -i_dynamic -nofor_main' ;;
24084         ifc* | ifort*)                  # Intel Fortran compiler
24085           tmp_addflag=' -nofor_main' ;;
24086         esac
24087         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24088
24089         if test $supports_anon_versioning = yes; then
24090           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24091   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24092   $echo "local: *; };" >> $output_objdir/$libname.ver~
24093           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24094         fi
24095       else
24096         ld_shlibs_GCJ=no
24097       fi
24098       ;;
24099
24100     netbsd*)
24101       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24102         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24103         wlarc=
24104       else
24105         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24106         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24107       fi
24108       ;;
24109
24110     solaris*)
24111       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24112         ld_shlibs_GCJ=no
24113         cat <<EOF 1>&2
24114
24115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24116 *** create shared libraries on Solaris systems.  Therefore, libtool
24117 *** is disabling shared libraries support.  We urge you to upgrade GNU
24118 *** binutils to release 2.9.1 or newer.  Another option is to modify
24119 *** your PATH or compiler configuration so that the native linker is
24120 *** used, and then restart.
24121
24122 EOF
24123       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24124         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24125         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24126       else
24127         ld_shlibs_GCJ=no
24128       fi
24129       ;;
24130
24131     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24132       case `$LD -v 2>&1` in
24133         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24134         ld_shlibs_GCJ=no
24135         cat <<_LT_EOF 1>&2
24136
24137 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24138 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24139 *** is disabling shared libraries support.  We urge you to upgrade GNU
24140 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24141 *** your PATH or compiler configuration so that the native linker is
24142 *** used, and then restart.
24143
24144 _LT_EOF
24145         ;;
24146         *)
24147           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24148             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24149             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24150             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24151           else
24152             ld_shlibs_GCJ=no
24153           fi
24154         ;;
24155       esac
24156       ;;
24157
24158     sunos4*)
24159       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24160       wlarc=
24161       hardcode_direct_GCJ=yes
24162       hardcode_shlibpath_var_GCJ=no
24163       ;;
24164
24165     *)
24166       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24167         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24168         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24169       else
24170         ld_shlibs_GCJ=no
24171       fi
24172       ;;
24173     esac
24174
24175     if test "$ld_shlibs_GCJ" = no; then
24176       runpath_var=
24177       hardcode_libdir_flag_spec_GCJ=
24178       export_dynamic_flag_spec_GCJ=
24179       whole_archive_flag_spec_GCJ=
24180     fi
24181   else
24182     # PORTME fill in a description of your system's linker (not GNU ld)
24183     case $host_os in
24184     aix3*)
24185       allow_undefined_flag_GCJ=unsupported
24186       always_export_symbols_GCJ=yes
24187       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'
24188       # Note: this linker hardcodes the directories in LIBPATH if there
24189       # are no directories specified by -L.
24190       hardcode_minus_L_GCJ=yes
24191       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24192         # Neither direct hardcoding nor static linking is supported with a
24193         # broken collect2.
24194         hardcode_direct_GCJ=unsupported
24195       fi
24196       ;;
24197
24198     aix4* | aix5*)
24199       if test "$host_cpu" = ia64; then
24200         # On IA64, the linker does run time linking by default, so we don't
24201         # have to do anything special.
24202         aix_use_runtimelinking=no
24203         exp_sym_flag='-Bexport'
24204         no_entry_flag=""
24205       else
24206         # If we're using GNU nm, then we don't want the "-C" option.
24207         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24208         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24209           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'
24210         else
24211           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'
24212         fi
24213         aix_use_runtimelinking=no
24214
24215         # Test if we are trying to use run time linking or normal
24216         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24217         # need to do runtime linking.
24218         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24219           for ld_flag in $LDFLAGS; do
24220           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24221             aix_use_runtimelinking=yes
24222             break
24223           fi
24224           done
24225           ;;
24226         esac
24227
24228         exp_sym_flag='-bexport'
24229         no_entry_flag='-bnoentry'
24230       fi
24231
24232       # When large executables or shared objects are built, AIX ld can
24233       # have problems creating the table of contents.  If linking a library
24234       # or program results in "error TOC overflow" add -mminimal-toc to
24235       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24236       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24237
24238       archive_cmds_GCJ=''
24239       hardcode_direct_GCJ=yes
24240       hardcode_libdir_separator_GCJ=':'
24241       link_all_deplibs_GCJ=yes
24242
24243       if test "$GCC" = yes; then
24244         case $host_os in aix4.[012]|aix4.[012].*)
24245         # We only want to do this on AIX 4.2 and lower, the check
24246         # below for broken collect2 doesn't work under 4.3+
24247           collect2name=`${CC} -print-prog-name=collect2`
24248           if test -f "$collect2name" && \
24249            strings "$collect2name" | grep resolve_lib_name >/dev/null
24250           then
24251           # We have reworked collect2
24252           hardcode_direct_GCJ=yes
24253           else
24254           # We have old collect2
24255           hardcode_direct_GCJ=unsupported
24256           # It fails to find uninstalled libraries when the uninstalled
24257           # path is not listed in the libpath.  Setting hardcode_minus_L
24258           # to unsupported forces relinking
24259           hardcode_minus_L_GCJ=yes
24260           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261           hardcode_libdir_separator_GCJ=
24262           fi
24263           ;;
24264         esac
24265         shared_flag='-shared'
24266         if test "$aix_use_runtimelinking" = yes; then
24267           shared_flag="$shared_flag "'${wl}-G'
24268         fi
24269       else
24270         # not using gcc
24271         if test "$host_cpu" = ia64; then
24272         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24273         # chokes on -Wl,-G. The following line is correct:
24274           shared_flag='-G'
24275         else
24276           if test "$aix_use_runtimelinking" = yes; then
24277             shared_flag='${wl}-G'
24278           else
24279             shared_flag='${wl}-bM:SRE'
24280           fi
24281         fi
24282       fi
24283
24284       # It seems that -bexpall does not export symbols beginning with
24285       # underscore (_), so it is better to generate a list of symbols to export.
24286       always_export_symbols_GCJ=yes
24287       if test "$aix_use_runtimelinking" = yes; then
24288         # Warning - without using the other runtime loading flags (-brtl),
24289         # -berok will link without error, but may produce a broken library.
24290         allow_undefined_flag_GCJ='-berok'
24291        # Determine the default libpath from the value encoded in an empty executable.
24292        cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298
24299 int
24300 main ()
24301 {
24302
24303   ;
24304   return 0;
24305 }
24306 _ACEOF
24307 rm -f conftest.$ac_objext conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311   *) ac_try_echo=$ac_try;;
24312 esac
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314   (eval "$ac_link") 2>conftest.er1
24315   ac_status=$?
24316   grep -v '^ *+' conftest.er1 >conftest.err
24317   rm -f conftest.er1
24318   cat conftest.err >&5
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); } &&
24321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322   { (case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_try") 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; } &&
24331          { ac_try='test -s conftest$ac_exeext'
24332   { (case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337   (eval "$ac_try") 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; }; then
24341
24342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24343 }'`
24344 # Check for a 64-bit object if we didn't find anything.
24345 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; }
24346 }'`; fi
24347 else
24348   echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351
24352 fi
24353
24354 rm -f core conftest.err conftest.$ac_objext \
24355       conftest$ac_exeext conftest.$ac_ext
24356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24357
24358        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24359         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"
24360        else
24361         if test "$host_cpu" = ia64; then
24362           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24363           allow_undefined_flag_GCJ="-z nodefs"
24364           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"
24365         else
24366          # Determine the default libpath from the value encoded in an empty executable.
24367          cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373
24374 int
24375 main ()
24376 {
24377
24378   ;
24379   return 0;
24380 }
24381 _ACEOF
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (ac_try="$ac_link"
24384 case "(($ac_try" in
24385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386   *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389   (eval "$ac_link") 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } &&
24396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24397   { (case "(($ac_try" in
24398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399   *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402   (eval "$ac_try") 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); }; } &&
24406          { ac_try='test -s conftest$ac_exeext'
24407   { (case "(($ac_try" in
24408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409   *) ac_try_echo=$ac_try;;
24410 esac
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412   (eval "$ac_try") 2>&5
24413   ac_status=$?
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); }; }; then
24416
24417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24418 }'`
24419 # Check for a 64-bit object if we didn't find anything.
24420 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; }
24421 }'`; fi
24422 else
24423   echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24425
24426
24427 fi
24428
24429 rm -f core conftest.err conftest.$ac_objext \
24430       conftest$ac_exeext conftest.$ac_ext
24431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24432
24433          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24434           # Warning - without using the other run time loading flags,
24435           # -berok will link without error, but may produce a broken library.
24436           no_undefined_flag_GCJ=' ${wl}-bernotok'
24437           allow_undefined_flag_GCJ=' ${wl}-berok'
24438           # Exported symbols can be pulled into shared objects from archives
24439           whole_archive_flag_spec_GCJ='$convenience'
24440           archive_cmds_need_lc_GCJ=yes
24441           # This is similar to how AIX traditionally builds its shared libraries.
24442           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'
24443         fi
24444       fi
24445       ;;
24446
24447     amigaos*)
24448       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)'
24449       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24450       hardcode_minus_L_GCJ=yes
24451       # see comment about different semantics on the GNU ld section
24452       ld_shlibs_GCJ=no
24453       ;;
24454
24455     bsdi[45]*)
24456       export_dynamic_flag_spec_GCJ=-rdynamic
24457       ;;
24458
24459     cygwin* | mingw* | pw32*)
24460       # When not using gcc, we currently assume that we are using
24461       # Microsoft Visual C++.
24462       # hardcode_libdir_flag_spec is actually meaningless, as there is
24463       # no search path for DLLs.
24464       hardcode_libdir_flag_spec_GCJ=' '
24465       allow_undefined_flag_GCJ=unsupported
24466       # Tell ltmain to make .lib files, not .a files.
24467       libext=lib
24468       # Tell ltmain to make .dll files, not .so files.
24469       shrext_cmds=".dll"
24470       # FIXME: Setting linknames here is a bad hack.
24471       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24472       # The linker will automatically build a .lib file if we build a DLL.
24473       old_archive_From_new_cmds_GCJ='true'
24474       # FIXME: Should let the user specify the lib program.
24475       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24476       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24477       enable_shared_with_static_runtimes_GCJ=yes
24478       ;;
24479
24480     darwin* | rhapsody*)
24481       case $host_os in
24482         rhapsody* | darwin1.[012])
24483          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24484          ;;
24485        *) # Darwin 1.3 on
24486          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24487            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24488          else
24489            case ${MACOSX_DEPLOYMENT_TARGET} in
24490              10.[012])
24491                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24492                ;;
24493              10.*)
24494                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24495                ;;
24496            esac
24497          fi
24498          ;;
24499       esac
24500       archive_cmds_need_lc_GCJ=no
24501       hardcode_direct_GCJ=no
24502       hardcode_automatic_GCJ=yes
24503       hardcode_shlibpath_var_GCJ=unsupported
24504       whole_archive_flag_spec_GCJ=''
24505       link_all_deplibs_GCJ=yes
24506     if test "$GCC" = yes ; then
24507         output_verbose_link_cmd='echo'
24508         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24509       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24510       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24511       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}'
24512       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}'
24513     else
24514       case $cc_basename in
24515         xlc*)
24516          output_verbose_link_cmd='echo'
24517          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24518          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24519           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24520          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}'
24521           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}'
24522           ;;
24523        *)
24524          ld_shlibs_GCJ=no
24525           ;;
24526       esac
24527     fi
24528       ;;
24529
24530     dgux*)
24531       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24532       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533       hardcode_shlibpath_var_GCJ=no
24534       ;;
24535
24536     freebsd1*)
24537       ld_shlibs_GCJ=no
24538       ;;
24539
24540     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24541     # support.  Future versions do this automatically, but an explicit c++rt0.o
24542     # does not break anything, and helps significantly (at the cost of a little
24543     # extra space).
24544     freebsd2.2*)
24545       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24546       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24547       hardcode_direct_GCJ=yes
24548       hardcode_shlibpath_var_GCJ=no
24549       ;;
24550
24551     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24552     freebsd2*)
24553       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24554       hardcode_direct_GCJ=yes
24555       hardcode_minus_L_GCJ=yes
24556       hardcode_shlibpath_var_GCJ=no
24557       ;;
24558
24559     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24560     freebsd* | kfreebsd*-gnu | dragonfly*)
24561       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24562       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24563       hardcode_direct_GCJ=yes
24564       hardcode_shlibpath_var_GCJ=no
24565       ;;
24566
24567     hpux9*)
24568       if test "$GCC" = yes; then
24569         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'
24570       else
24571         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'
24572       fi
24573       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574       hardcode_libdir_separator_GCJ=:
24575       hardcode_direct_GCJ=yes
24576
24577       # hardcode_minus_L: Not really in the search PATH,
24578       # but as the default location of the library.
24579       hardcode_minus_L_GCJ=yes
24580       export_dynamic_flag_spec_GCJ='${wl}-E'
24581       ;;
24582
24583     hpux10*)
24584       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24585         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24586       else
24587         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24588       fi
24589       if test "$with_gnu_ld" = no; then
24590         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24591         hardcode_libdir_separator_GCJ=:
24592
24593         hardcode_direct_GCJ=yes
24594         export_dynamic_flag_spec_GCJ='${wl}-E'
24595
24596         # hardcode_minus_L: Not really in the search PATH,
24597         # but as the default location of the library.
24598         hardcode_minus_L_GCJ=yes
24599       fi
24600       ;;
24601
24602     hpux11*)
24603       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24604         case $host_cpu in
24605         hppa*64*)
24606           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24607           ;;
24608         ia64*)
24609           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24610           ;;
24611         *)
24612           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24613           ;;
24614         esac
24615       else
24616         case $host_cpu in
24617         hppa*64*)
24618           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24619           ;;
24620         ia64*)
24621           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24622           ;;
24623         *)
24624           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24625           ;;
24626         esac
24627       fi
24628       if test "$with_gnu_ld" = no; then
24629         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24630         hardcode_libdir_separator_GCJ=:
24631
24632         case $host_cpu in
24633         hppa*64*|ia64*)
24634           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24635           hardcode_direct_GCJ=no
24636           hardcode_shlibpath_var_GCJ=no
24637           ;;
24638         *)
24639           hardcode_direct_GCJ=yes
24640           export_dynamic_flag_spec_GCJ='${wl}-E'
24641
24642           # hardcode_minus_L: Not really in the search PATH,
24643           # but as the default location of the library.
24644           hardcode_minus_L_GCJ=yes
24645           ;;
24646         esac
24647       fi
24648       ;;
24649
24650     irix5* | irix6* | nonstopux*)
24651       if test "$GCC" = yes; then
24652         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'
24653       else
24654         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'
24655         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24656       fi
24657       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24658       hardcode_libdir_separator_GCJ=:
24659       link_all_deplibs_GCJ=yes
24660       ;;
24661
24662     netbsd*)
24663       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24664         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24665       else
24666         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24667       fi
24668       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24669       hardcode_direct_GCJ=yes
24670       hardcode_shlibpath_var_GCJ=no
24671       ;;
24672
24673     newsos6)
24674       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24675       hardcode_direct_GCJ=yes
24676       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24677       hardcode_libdir_separator_GCJ=:
24678       hardcode_shlibpath_var_GCJ=no
24679       ;;
24680
24681     openbsd*)
24682       hardcode_direct_GCJ=yes
24683       hardcode_shlibpath_var_GCJ=no
24684       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24685         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24686         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24687         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24688         export_dynamic_flag_spec_GCJ='${wl}-E'
24689       else
24690        case $host_os in
24691          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24692            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24693            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24694            ;;
24695          *)
24696            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24697            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24698            ;;
24699        esac
24700       fi
24701       ;;
24702
24703     os2*)
24704       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24705       hardcode_minus_L_GCJ=yes
24706       allow_undefined_flag_GCJ=unsupported
24707       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'
24708       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24709       ;;
24710
24711     osf3*)
24712       if test "$GCC" = yes; then
24713         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24714         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'
24715       else
24716         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24717         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'
24718       fi
24719       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24720       hardcode_libdir_separator_GCJ=:
24721       ;;
24722
24723     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24724       if test "$GCC" = yes; then
24725         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24726         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'
24727         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24728       else
24729         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24730         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'
24731         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~
24732         $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'
24733
24734         # Both c and cxx compiler support -rpath directly
24735         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24736       fi
24737       hardcode_libdir_separator_GCJ=:
24738       ;;
24739
24740     solaris*)
24741       no_undefined_flag_GCJ=' -z text'
24742       if test "$GCC" = yes; then
24743         wlarc='${wl}'
24744         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24745         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24746           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24747       else
24748         wlarc=''
24749         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24750         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24751         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24752       fi
24753       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24754       hardcode_shlibpath_var_GCJ=no
24755       case $host_os in
24756       solaris2.[0-5] | solaris2.[0-5].*) ;;
24757       *)
24758         # The compiler driver will combine linker options so we
24759         # cannot just pass the convience library names through
24760         # without $wl, iff we do not link with $LD.
24761         # Luckily, gcc supports the same syntax we need for Sun Studio.
24762         # Supported since Solaris 2.6 (maybe 2.5.1?)
24763         case $wlarc in
24764         '')
24765           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24766         *)
24767           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' ;;
24768         esac ;;
24769       esac
24770       link_all_deplibs_GCJ=yes
24771       ;;
24772
24773     sunos4*)
24774       if test "x$host_vendor" = xsequent; then
24775         # Use $CC to link under sequent, because it throws in some extra .o
24776         # files that make .init and .fini sections work.
24777         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24778       else
24779         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24780       fi
24781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782       hardcode_direct_GCJ=yes
24783       hardcode_minus_L_GCJ=yes
24784       hardcode_shlibpath_var_GCJ=no
24785       ;;
24786
24787     sysv4)
24788       case $host_vendor in
24789         sni)
24790           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24791           hardcode_direct_GCJ=yes # is this really true???
24792         ;;
24793         siemens)
24794           ## LD is ld it makes a PLAMLIB
24795           ## CC just makes a GrossModule.
24796           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24797           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24798           hardcode_direct_GCJ=no
24799         ;;
24800         motorola)
24801           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24802           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24803         ;;
24804       esac
24805       runpath_var='LD_RUN_PATH'
24806       hardcode_shlibpath_var_GCJ=no
24807       ;;
24808
24809     sysv4.3*)
24810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811       hardcode_shlibpath_var_GCJ=no
24812       export_dynamic_flag_spec_GCJ='-Bexport'
24813       ;;
24814
24815     sysv4*MP*)
24816       if test -d /usr/nec; then
24817         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818         hardcode_shlibpath_var_GCJ=no
24819         runpath_var=LD_RUN_PATH
24820         hardcode_runpath_var=yes
24821         ld_shlibs_GCJ=yes
24822       fi
24823       ;;
24824
24825     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24826       no_undefined_flag_GCJ='${wl}-z,text'
24827       archive_cmds_need_lc_GCJ=no
24828       hardcode_shlibpath_var_GCJ=no
24829       runpath_var='LD_RUN_PATH'
24830
24831       if test "$GCC" = yes; then
24832         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24833         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24834       else
24835         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24836         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24837       fi
24838       ;;
24839
24840     sysv5* | sco3.2v5* | sco5v6*)
24841       # Note: We can NOT use -z defs as we might desire, because we do not
24842       # link with -lc, and that would cause any symbols used from libc to
24843       # always be unresolved, which means just about no library would
24844       # ever link correctly.  If we're not using GNU ld we use -z text
24845       # though, which does catch some bad symbols but isn't as heavy-handed
24846       # as -z defs.
24847       no_undefined_flag_GCJ='${wl}-z,text'
24848       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24849       archive_cmds_need_lc_GCJ=no
24850       hardcode_shlibpath_var_GCJ=no
24851       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24852       hardcode_libdir_separator_GCJ=':'
24853       link_all_deplibs_GCJ=yes
24854       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24855       runpath_var='LD_RUN_PATH'
24856
24857       if test "$GCC" = yes; then
24858         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24859         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24860       else
24861         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24862         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24863       fi
24864       ;;
24865
24866     uts4*)
24867       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24868       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24869       hardcode_shlibpath_var_GCJ=no
24870       ;;
24871
24872     *)
24873       ld_shlibs_GCJ=no
24874       ;;
24875     esac
24876   fi
24877
24878 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24879 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24880 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24881
24882 #
24883 # Do we need to explicitly link libc?
24884 #
24885 case "x$archive_cmds_need_lc_GCJ" in
24886 x|xyes)
24887   # Assume -lc should be added
24888   archive_cmds_need_lc_GCJ=yes
24889
24890   if test "$enable_shared" = yes && test "$GCC" = yes; then
24891     case $archive_cmds_GCJ in
24892     *'~'*)
24893       # FIXME: we may have to deal with multi-command sequences.
24894       ;;
24895     '$CC '*)
24896       # Test whether the compiler implicitly links with -lc since on some
24897       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24898       # to ld, don't add -lc before -lgcc.
24899       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24900 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24901       $rm conftest*
24902       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24903
24904       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24905   (eval $ac_compile) 2>&5
24906   ac_status=$?
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); } 2>conftest.err; then
24909         soname=conftest
24910         lib=conftest
24911         libobjs=conftest.$ac_objext
24912         deplibs=
24913         wl=$lt_prog_compiler_wl_GCJ
24914         pic_flag=$lt_prog_compiler_pic_GCJ
24915         compiler_flags=-v
24916         linker_flags=-v
24917         verstring=
24918         output_objdir=.
24919         libname=conftest
24920         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24921         allow_undefined_flag_GCJ=
24922         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24923   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24924   ac_status=$?
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); }
24927         then
24928           archive_cmds_need_lc_GCJ=no
24929         else
24930           archive_cmds_need_lc_GCJ=yes
24931         fi
24932         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24933       else
24934         cat conftest.err 1>&5
24935       fi
24936       $rm conftest*
24937       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24938 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24939       ;;
24940     esac
24941   fi
24942   ;;
24943 esac
24944
24945 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24947 library_names_spec=
24948 libname_spec='lib$name'
24949 soname_spec=
24950 shrext_cmds=".so"
24951 postinstall_cmds=
24952 postuninstall_cmds=
24953 finish_cmds=
24954 finish_eval=
24955 shlibpath_var=
24956 shlibpath_overrides_runpath=unknown
24957 version_type=none
24958 dynamic_linker="$host_os ld.so"
24959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24960 if test "$GCC" = yes; then
24961   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24962   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24963     # if the path contains ";" then we assume it to be the separator
24964     # otherwise default to the standard path separator (i.e. ":") - it is
24965     # assumed that no part of a normal pathname contains ";" but that should
24966     # okay in the real world where ";" in dirpaths is itself problematic.
24967     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24968   else
24969     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24970   fi
24971 else
24972   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24973 fi
24974 need_lib_prefix=unknown
24975 hardcode_into_libs=no
24976
24977 # when you set need_version to no, make sure it does not cause -set_version
24978 # flags to be left without arguments
24979 need_version=unknown
24980
24981 case $host_os in
24982 aix3*)
24983   version_type=linux
24984   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24985   shlibpath_var=LIBPATH
24986
24987   # AIX 3 has no versioning support, so we append a major version to the name.
24988   soname_spec='${libname}${release}${shared_ext}$major'
24989   ;;
24990
24991 aix4* | aix5*)
24992   version_type=linux
24993   need_lib_prefix=no
24994   need_version=no
24995   hardcode_into_libs=yes
24996   if test "$host_cpu" = ia64; then
24997     # AIX 5 supports IA64
24998     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24999     shlibpath_var=LD_LIBRARY_PATH
25000   else
25001     # With GCC up to 2.95.x, collect2 would create an import file
25002     # for dependence libraries.  The import file would start with
25003     # the line `#! .'.  This would cause the generated library to
25004     # depend on `.', always an invalid library.  This was fixed in
25005     # development snapshots of GCC prior to 3.0.
25006     case $host_os in
25007       aix4 | aix4.[01] | aix4.[01].*)
25008       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25009            echo ' yes '
25010            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25011         :
25012       else
25013         can_build_shared=no
25014       fi
25015       ;;
25016     esac
25017     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25018     # soname into executable. Probably we can add versioning support to
25019     # collect2, so additional links can be useful in future.
25020     if test "$aix_use_runtimelinking" = yes; then
25021       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25022       # instead of lib<name>.a to let people know that these are not
25023       # typical AIX shared libraries.
25024       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25025     else
25026       # We preserve .a as extension for shared libraries through AIX4.2
25027       # and later when we are not doing run time linking.
25028       library_names_spec='${libname}${release}.a $libname.a'
25029       soname_spec='${libname}${release}${shared_ext}$major'
25030     fi
25031     shlibpath_var=LIBPATH
25032   fi
25033   ;;
25034
25035 amigaos*)
25036   library_names_spec='$libname.ixlibrary $libname.a'
25037   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25038   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'
25039   ;;
25040
25041 beos*)
25042   library_names_spec='${libname}${shared_ext}'
25043   dynamic_linker="$host_os ld.so"
25044   shlibpath_var=LIBRARY_PATH
25045   ;;
25046
25047 bsdi[45]*)
25048   version_type=linux
25049   need_version=no
25050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25051   soname_spec='${libname}${release}${shared_ext}$major'
25052   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25053   shlibpath_var=LD_LIBRARY_PATH
25054   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25055   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25056   # the default ld.so.conf also contains /usr/contrib/lib and
25057   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25058   # libtool to hard-code these into programs
25059   ;;
25060
25061 cygwin* | mingw* | pw32*)
25062   version_type=windows
25063   shrext_cmds=".dll"
25064   need_version=no
25065   need_lib_prefix=no
25066
25067   case $GCC,$host_os in
25068   yes,cygwin* | yes,mingw* | yes,pw32*)
25069     library_names_spec='$libname.dll.a'
25070     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25071     postinstall_cmds='base_file=`basename \${file}`~
25072       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25073       dldir=$destdir/`dirname \$dlpath`~
25074       test -d \$dldir || mkdir -p \$dldir~
25075       $install_prog $dir/$dlname \$dldir/$dlname~
25076       chmod a+x \$dldir/$dlname'
25077     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25078       dlpath=$dir/\$dldll~
25079        $rm \$dlpath'
25080     shlibpath_overrides_runpath=yes
25081
25082     case $host_os in
25083     cygwin*)
25084       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25085       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25086       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25087       ;;
25088     mingw*)
25089       # MinGW DLLs use traditional 'lib' prefix
25090       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25091       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25092       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25093         # It is most probably a Windows format PATH printed by
25094         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25095         # path with ; separators, and with drive letters. We can handle the
25096         # drive letters (cygwin fileutils understands them), so leave them,
25097         # especially as we might pass files found there to a mingw objdump,
25098         # which wouldn't understand a cygwinified path. Ahh.
25099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25100       else
25101         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25102       fi
25103       ;;
25104     pw32*)
25105       # pw32 DLLs use 'pw' prefix rather than 'lib'
25106       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25107       ;;
25108     esac
25109     ;;
25110
25111   *)
25112     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25113     ;;
25114   esac
25115   dynamic_linker='Win32 ld.exe'
25116   # FIXME: first we should search . and the directory the executable is in
25117   shlibpath_var=PATH
25118   ;;
25119
25120 darwin* | rhapsody*)
25121   dynamic_linker="$host_os dyld"
25122   version_type=darwin
25123   need_lib_prefix=no
25124   need_version=no
25125   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25126   soname_spec='${libname}${release}${major}$shared_ext'
25127   shlibpath_overrides_runpath=yes
25128   shlibpath_var=DYLD_LIBRARY_PATH
25129   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25130   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25131   if test "$GCC" = yes; then
25132     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"`
25133   else
25134     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25135   fi
25136   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25137   ;;
25138
25139 dgux*)
25140   version_type=linux
25141   need_lib_prefix=no
25142   need_version=no
25143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25144   soname_spec='${libname}${release}${shared_ext}$major'
25145   shlibpath_var=LD_LIBRARY_PATH
25146   ;;
25147
25148 freebsd1*)
25149   dynamic_linker=no
25150   ;;
25151
25152 kfreebsd*-gnu)
25153   version_type=linux
25154   need_lib_prefix=no
25155   need_version=no
25156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25157   soname_spec='${libname}${release}${shared_ext}$major'
25158   shlibpath_var=LD_LIBRARY_PATH
25159   shlibpath_overrides_runpath=no
25160   hardcode_into_libs=yes
25161   dynamic_linker='GNU ld.so'
25162   ;;
25163
25164 freebsd* | dragonfly*)
25165   # DragonFly does not have aout.  When/if they implement a new
25166   # versioning mechanism, adjust this.
25167   if test -x /usr/bin/objformat; then
25168     objformat=`/usr/bin/objformat`
25169   else
25170     case $host_os in
25171     freebsd[123]*) objformat=aout ;;
25172     *) objformat=elf ;;
25173     esac
25174   fi
25175   version_type=freebsd-$objformat
25176   case $version_type in
25177     freebsd-elf*)
25178       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25179       need_version=no
25180       need_lib_prefix=no
25181       ;;
25182     freebsd-*)
25183       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25184       need_version=yes
25185       ;;
25186   esac
25187   shlibpath_var=LD_LIBRARY_PATH
25188   case $host_os in
25189   freebsd2*)
25190     shlibpath_overrides_runpath=yes
25191     ;;
25192   freebsd3.[01]* | freebsdelf3.[01]*)
25193     shlibpath_overrides_runpath=yes
25194     hardcode_into_libs=yes
25195     ;;
25196   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25197   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25198     shlibpath_overrides_runpath=no
25199     hardcode_into_libs=yes
25200     ;;
25201   freebsd*) # from 4.6 on
25202     shlibpath_overrides_runpath=yes
25203     hardcode_into_libs=yes
25204     ;;
25205   esac
25206   ;;
25207
25208 gnu*)
25209   version_type=linux
25210   need_lib_prefix=no
25211   need_version=no
25212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25213   soname_spec='${libname}${release}${shared_ext}$major'
25214   shlibpath_var=LD_LIBRARY_PATH
25215   hardcode_into_libs=yes
25216   ;;
25217
25218 hpux9* | hpux10* | hpux11*)
25219   # Give a soname corresponding to the major version so that dld.sl refuses to
25220   # link against other versions.
25221   version_type=sunos
25222   need_lib_prefix=no
25223   need_version=no
25224   case $host_cpu in
25225   ia64*)
25226     shrext_cmds='.so'
25227     hardcode_into_libs=yes
25228     dynamic_linker="$host_os dld.so"
25229     shlibpath_var=LD_LIBRARY_PATH
25230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25232     soname_spec='${libname}${release}${shared_ext}$major'
25233     if test "X$HPUX_IA64_MODE" = X32; then
25234       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25235     else
25236       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25237     fi
25238     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25239     ;;
25240    hppa*64*)
25241      shrext_cmds='.sl'
25242      hardcode_into_libs=yes
25243      dynamic_linker="$host_os dld.sl"
25244      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25245      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25247      soname_spec='${libname}${release}${shared_ext}$major'
25248      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25249      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25250      ;;
25251    *)
25252     shrext_cmds='.sl'
25253     dynamic_linker="$host_os dld.sl"
25254     shlibpath_var=SHLIB_PATH
25255     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25257     soname_spec='${libname}${release}${shared_ext}$major'
25258     ;;
25259   esac
25260   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25261   postinstall_cmds='chmod 555 $lib'
25262   ;;
25263
25264 interix3*)
25265   version_type=linux
25266   need_lib_prefix=no
25267   need_version=no
25268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25269   soname_spec='${libname}${release}${shared_ext}$major'
25270   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25271   shlibpath_var=LD_LIBRARY_PATH
25272   shlibpath_overrides_runpath=no
25273   hardcode_into_libs=yes
25274   ;;
25275
25276 irix5* | irix6* | nonstopux*)
25277   case $host_os in
25278     nonstopux*) version_type=nonstopux ;;
25279     *)
25280         if test "$lt_cv_prog_gnu_ld" = yes; then
25281                 version_type=linux
25282         else
25283                 version_type=irix
25284         fi ;;
25285   esac
25286   need_lib_prefix=no
25287   need_version=no
25288   soname_spec='${libname}${release}${shared_ext}$major'
25289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25290   case $host_os in
25291   irix5* | nonstopux*)
25292     libsuff= shlibsuff=
25293     ;;
25294   *)
25295     case $LD in # libtool.m4 will add one of these switches to LD
25296     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25297       libsuff= shlibsuff= libmagic=32-bit;;
25298     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25299       libsuff=32 shlibsuff=N32 libmagic=N32;;
25300     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25301       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25302     *) libsuff= shlibsuff= libmagic=never-match;;
25303     esac
25304     ;;
25305   esac
25306   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25307   shlibpath_overrides_runpath=no
25308   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25309   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25310   hardcode_into_libs=yes
25311   ;;
25312
25313 # No shared lib support for Linux oldld, aout, or coff.
25314 linux*oldld* | linux*aout* | linux*coff*)
25315   dynamic_linker=no
25316   ;;
25317
25318 # This must be Linux ELF.
25319 linux*)
25320   version_type=linux
25321   need_lib_prefix=no
25322   need_version=no
25323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25324   soname_spec='${libname}${release}${shared_ext}$major'
25325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25326   shlibpath_var=LD_LIBRARY_PATH
25327   shlibpath_overrides_runpath=no
25328   # This implies no fast_install, which is unacceptable.
25329   # Some rework will be needed to allow for fast_install
25330   # before this can be enabled.
25331   hardcode_into_libs=yes
25332
25333   # Append ld.so.conf contents to the search path
25334   if test -f /etc/ld.so.conf; then
25335     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' ' '`
25336     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25337   fi
25338
25339   # We used to test for /lib/ld.so.1 and disable shared libraries on
25340   # powerpc, because MkLinux only supported shared libraries with the
25341   # GNU dynamic linker.  Since this was broken with cross compilers,
25342   # most powerpc-linux boxes support dynamic linking these days and
25343   # people can always --disable-shared, the test was removed, and we
25344   # assume the GNU/Linux dynamic linker is in use.
25345   dynamic_linker='GNU/Linux ld.so'
25346   ;;
25347
25348 knetbsd*-gnu)
25349   version_type=linux
25350   need_lib_prefix=no
25351   need_version=no
25352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25353   soname_spec='${libname}${release}${shared_ext}$major'
25354   shlibpath_var=LD_LIBRARY_PATH
25355   shlibpath_overrides_runpath=no
25356   hardcode_into_libs=yes
25357   dynamic_linker='GNU ld.so'
25358   ;;
25359
25360 netbsd*)
25361   version_type=sunos
25362   need_lib_prefix=no
25363   need_version=no
25364   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25366     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25367     dynamic_linker='NetBSD (a.out) ld.so'
25368   else
25369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25370     soname_spec='${libname}${release}${shared_ext}$major'
25371     dynamic_linker='NetBSD ld.elf_so'
25372   fi
25373   shlibpath_var=LD_LIBRARY_PATH
25374   shlibpath_overrides_runpath=yes
25375   hardcode_into_libs=yes
25376   ;;
25377
25378 newsos6)
25379   version_type=linux
25380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381   shlibpath_var=LD_LIBRARY_PATH
25382   shlibpath_overrides_runpath=yes
25383   ;;
25384
25385 nto-qnx*)
25386   version_type=linux
25387   need_lib_prefix=no
25388   need_version=no
25389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25390   soname_spec='${libname}${release}${shared_ext}$major'
25391   shlibpath_var=LD_LIBRARY_PATH
25392   shlibpath_overrides_runpath=yes
25393   ;;
25394
25395 openbsd*)
25396   version_type=sunos
25397   sys_lib_dlsearch_path_spec="/usr/lib"
25398   need_lib_prefix=no
25399   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25400   case $host_os in
25401     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25402     *)                         need_version=no  ;;
25403   esac
25404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25406   shlibpath_var=LD_LIBRARY_PATH
25407   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25408     case $host_os in
25409       openbsd2.[89] | openbsd2.[89].*)
25410         shlibpath_overrides_runpath=no
25411         ;;
25412       *)
25413         shlibpath_overrides_runpath=yes
25414         ;;
25415       esac
25416   else
25417     shlibpath_overrides_runpath=yes
25418   fi
25419   ;;
25420
25421 os2*)
25422   libname_spec='$name'
25423   shrext_cmds=".dll"
25424   need_lib_prefix=no
25425   library_names_spec='$libname${shared_ext} $libname.a'
25426   dynamic_linker='OS/2 ld.exe'
25427   shlibpath_var=LIBPATH
25428   ;;
25429
25430 osf3* | osf4* | osf5*)
25431   version_type=osf
25432   need_lib_prefix=no
25433   need_version=no
25434   soname_spec='${libname}${release}${shared_ext}$major'
25435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25436   shlibpath_var=LD_LIBRARY_PATH
25437   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25438   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25439   ;;
25440
25441 solaris*)
25442   version_type=linux
25443   need_lib_prefix=no
25444   need_version=no
25445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25446   soname_spec='${libname}${release}${shared_ext}$major'
25447   shlibpath_var=LD_LIBRARY_PATH
25448   shlibpath_overrides_runpath=yes
25449   hardcode_into_libs=yes
25450   # ldd complains unless libraries are executable
25451   postinstall_cmds='chmod +x $lib'
25452   ;;
25453
25454 sunos4*)
25455   version_type=sunos
25456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25457   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25458   shlibpath_var=LD_LIBRARY_PATH
25459   shlibpath_overrides_runpath=yes
25460   if test "$with_gnu_ld" = yes; then
25461     need_lib_prefix=no
25462   fi
25463   need_version=yes
25464   ;;
25465
25466 sysv4 | sysv4.3*)
25467   version_type=linux
25468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25469   soname_spec='${libname}${release}${shared_ext}$major'
25470   shlibpath_var=LD_LIBRARY_PATH
25471   case $host_vendor in
25472     sni)
25473       shlibpath_overrides_runpath=no
25474       need_lib_prefix=no
25475       export_dynamic_flag_spec='${wl}-Blargedynsym'
25476       runpath_var=LD_RUN_PATH
25477       ;;
25478     siemens)
25479       need_lib_prefix=no
25480       ;;
25481     motorola)
25482       need_lib_prefix=no
25483       need_version=no
25484       shlibpath_overrides_runpath=no
25485       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25486       ;;
25487   esac
25488   ;;
25489
25490 sysv4*MP*)
25491   if test -d /usr/nec ;then
25492     version_type=linux
25493     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25494     soname_spec='$libname${shared_ext}.$major'
25495     shlibpath_var=LD_LIBRARY_PATH
25496   fi
25497   ;;
25498
25499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25500   version_type=freebsd-elf
25501   need_lib_prefix=no
25502   need_version=no
25503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25504   soname_spec='${libname}${release}${shared_ext}$major'
25505   shlibpath_var=LD_LIBRARY_PATH
25506   hardcode_into_libs=yes
25507   if test "$with_gnu_ld" = yes; then
25508     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25509     shlibpath_overrides_runpath=no
25510   else
25511     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25512     shlibpath_overrides_runpath=yes
25513     case $host_os in
25514       sco3.2v5*)
25515         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25516         ;;
25517     esac
25518   fi
25519   sys_lib_dlsearch_path_spec='/usr/lib'
25520   ;;
25521
25522 uts4*)
25523   version_type=linux
25524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525   soname_spec='${libname}${release}${shared_ext}$major'
25526   shlibpath_var=LD_LIBRARY_PATH
25527   ;;
25528
25529 *)
25530   dynamic_linker=no
25531   ;;
25532 esac
25533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25534 echo "${ECHO_T}$dynamic_linker" >&6; }
25535 test "$dynamic_linker" = no && can_build_shared=no
25536
25537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25538 if test "$GCC" = yes; then
25539   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25540 fi
25541
25542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25544 hardcode_action_GCJ=
25545 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25546    test -n "$runpath_var_GCJ" || \
25547    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25548
25549   # We can hardcode non-existant directories.
25550   if test "$hardcode_direct_GCJ" != no &&
25551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25552      # have to relink, otherwise we might link with an installed library
25553      # when we should be linking with a yet-to-be-installed one
25554      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25555      test "$hardcode_minus_L_GCJ" != no; then
25556     # Linking always hardcodes the temporary library directory.
25557     hardcode_action_GCJ=relink
25558   else
25559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25560     hardcode_action_GCJ=immediate
25561   fi
25562 else
25563   # We cannot hardcode anything, or else we can only hardcode existing
25564   # directories.
25565   hardcode_action_GCJ=unsupported
25566 fi
25567 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25568 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25569
25570 if test "$hardcode_action_GCJ" = relink; then
25571   # Fast installation is not supported
25572   enable_fast_install=no
25573 elif test "$shlibpath_overrides_runpath" = yes ||
25574      test "$enable_shared" = no; then
25575   # Fast installation is not necessary
25576   enable_fast_install=needless
25577 fi
25578
25579
25580 # The else clause should only fire when bootstrapping the
25581 # libtool distribution, otherwise you forgot to ship ltmain.sh
25582 # with your package, and you will get complaints that there are
25583 # no rules to generate ltmain.sh.
25584 if test -f "$ltmain"; then
25585   # See if we are running on zsh, and set the options which allow our commands through
25586   # without removal of \ escapes.
25587   if test -n "${ZSH_VERSION+set}" ; then
25588     setopt NO_GLOB_SUBST
25589   fi
25590   # Now quote all the things that may contain metacharacters while being
25591   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25592   # variables and quote the copies for generation of the libtool script.
25593   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25594     SED SHELL STRIP \
25595     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25596     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25597     deplibs_check_method reload_flag reload_cmds need_locks \
25598     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25599     lt_cv_sys_global_symbol_to_c_name_address \
25600     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25601     old_postinstall_cmds old_postuninstall_cmds \
25602     compiler_GCJ \
25603     CC_GCJ \
25604     LD_GCJ \
25605     lt_prog_compiler_wl_GCJ \
25606     lt_prog_compiler_pic_GCJ \
25607     lt_prog_compiler_static_GCJ \
25608     lt_prog_compiler_no_builtin_flag_GCJ \
25609     export_dynamic_flag_spec_GCJ \
25610     thread_safe_flag_spec_GCJ \
25611     whole_archive_flag_spec_GCJ \
25612     enable_shared_with_static_runtimes_GCJ \
25613     old_archive_cmds_GCJ \
25614     old_archive_from_new_cmds_GCJ \
25615     predep_objects_GCJ \
25616     postdep_objects_GCJ \
25617     predeps_GCJ \
25618     postdeps_GCJ \
25619     compiler_lib_search_path_GCJ \
25620     archive_cmds_GCJ \
25621     archive_expsym_cmds_GCJ \
25622     postinstall_cmds_GCJ \
25623     postuninstall_cmds_GCJ \
25624     old_archive_from_expsyms_cmds_GCJ \
25625     allow_undefined_flag_GCJ \
25626     no_undefined_flag_GCJ \
25627     export_symbols_cmds_GCJ \
25628     hardcode_libdir_flag_spec_GCJ \
25629     hardcode_libdir_flag_spec_ld_GCJ \
25630     hardcode_libdir_separator_GCJ \
25631     hardcode_automatic_GCJ \
25632     module_cmds_GCJ \
25633     module_expsym_cmds_GCJ \
25634     lt_cv_prog_compiler_c_o_GCJ \
25635     exclude_expsyms_GCJ \
25636     include_expsyms_GCJ; do
25637
25638     case $var in
25639     old_archive_cmds_GCJ | \
25640     old_archive_from_new_cmds_GCJ | \
25641     archive_cmds_GCJ | \
25642     archive_expsym_cmds_GCJ | \
25643     module_cmds_GCJ | \
25644     module_expsym_cmds_GCJ | \
25645     old_archive_from_expsyms_cmds_GCJ | \
25646     export_symbols_cmds_GCJ | \
25647     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25648     postinstall_cmds | postuninstall_cmds | \
25649     old_postinstall_cmds | old_postuninstall_cmds | \
25650     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25651       # Double-quote double-evaled strings.
25652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25653       ;;
25654     *)
25655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25656       ;;
25657     esac
25658   done
25659
25660   case $lt_echo in
25661   *'\$0 --fallback-echo"')
25662     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25663     ;;
25664   esac
25665
25666 cfgfile="$ofile"
25667
25668   cat <<__EOF__ >> "$cfgfile"
25669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25670
25671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25672
25673 # Shell to use when invoking shell scripts.
25674 SHELL=$lt_SHELL
25675
25676 # Whether or not to build shared libraries.
25677 build_libtool_libs=$enable_shared
25678
25679 # Whether or not to build static libraries.
25680 build_old_libs=$enable_static
25681
25682 # Whether or not to add -lc for building shared libraries.
25683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25684
25685 # Whether or not to disallow shared libs when runtime libs are static
25686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25687
25688 # Whether or not to optimize for fast installation.
25689 fast_install=$enable_fast_install
25690
25691 # The host system.
25692 host_alias=$host_alias
25693 host=$host
25694 host_os=$host_os
25695
25696 # The build system.
25697 build_alias=$build_alias
25698 build=$build
25699 build_os=$build_os
25700
25701 # An echo program that does not interpret backslashes.
25702 echo=$lt_echo
25703
25704 # The archiver.
25705 AR=$lt_AR
25706 AR_FLAGS=$lt_AR_FLAGS
25707
25708 # A C compiler.
25709 LTCC=$lt_LTCC
25710
25711 # LTCC compiler flags.
25712 LTCFLAGS=$lt_LTCFLAGS
25713
25714 # A language-specific compiler.
25715 CC=$lt_compiler_GCJ
25716
25717 # Is the compiler the GNU C compiler?
25718 with_gcc=$GCC_GCJ
25719
25720 # An ERE matcher.
25721 EGREP=$lt_EGREP
25722
25723 # The linker used to build libraries.
25724 LD=$lt_LD_GCJ
25725
25726 # Whether we need hard or soft links.
25727 LN_S=$lt_LN_S
25728
25729 # A BSD-compatible nm program.
25730 NM=$lt_NM
25731
25732 # A symbol stripping program
25733 STRIP=$lt_STRIP
25734
25735 # Used to examine libraries when file_magic_cmd begins "file"
25736 MAGIC_CMD=$MAGIC_CMD
25737
25738 # Used on cygwin: DLL creation program.
25739 DLLTOOL="$DLLTOOL"
25740
25741 # Used on cygwin: object dumper.
25742 OBJDUMP="$OBJDUMP"
25743
25744 # Used on cygwin: assembler.
25745 AS="$AS"
25746
25747 # The name of the directory that contains temporary libtool files.
25748 objdir=$objdir
25749
25750 # How to create reloadable object files.
25751 reload_flag=$lt_reload_flag
25752 reload_cmds=$lt_reload_cmds
25753
25754 # How to pass a linker flag through the compiler.
25755 wl=$lt_lt_prog_compiler_wl_GCJ
25756
25757 # Object file suffix (normally "o").
25758 objext="$ac_objext"
25759
25760 # Old archive suffix (normally "a").
25761 libext="$libext"
25762
25763 # Shared library suffix (normally ".so").
25764 shrext_cmds='$shrext_cmds'
25765
25766 # Executable file suffix (normally "").
25767 exeext="$exeext"
25768
25769 # Additional compiler flags for building library objects.
25770 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25771 pic_mode=$pic_mode
25772
25773 # What is the maximum length of a command?
25774 max_cmd_len=$lt_cv_sys_max_cmd_len
25775
25776 # Does compiler simultaneously support -c and -o options?
25777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25778
25779 # Must we lock files when doing compilation?
25780 need_locks=$lt_need_locks
25781
25782 # Do we need the lib prefix for modules?
25783 need_lib_prefix=$need_lib_prefix
25784
25785 # Do we need a version for libraries?
25786 need_version=$need_version
25787
25788 # Whether dlopen is supported.
25789 dlopen_support=$enable_dlopen
25790
25791 # Whether dlopen of programs is supported.
25792 dlopen_self=$enable_dlopen_self
25793
25794 # Whether dlopen of statically linked programs is supported.
25795 dlopen_self_static=$enable_dlopen_self_static
25796
25797 # Compiler flag to prevent dynamic linking.
25798 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25799
25800 # Compiler flag to turn off builtin functions.
25801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25802
25803 # Compiler flag to allow reflexive dlopens.
25804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25805
25806 # Compiler flag to generate shared objects directly from archives.
25807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25808
25809 # Compiler flag to generate thread-safe objects.
25810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25811
25812 # Library versioning type.
25813 version_type=$version_type
25814
25815 # Format of library name prefix.
25816 libname_spec=$lt_libname_spec
25817
25818 # List of archive names.  First name is the real one, the rest are links.
25819 # The last name is the one that the linker finds with -lNAME.
25820 library_names_spec=$lt_library_names_spec
25821
25822 # The coded name of the library, if different from the real name.
25823 soname_spec=$lt_soname_spec
25824
25825 # Commands used to build and install an old-style archive.
25826 RANLIB=$lt_RANLIB
25827 old_archive_cmds=$lt_old_archive_cmds_GCJ
25828 old_postinstall_cmds=$lt_old_postinstall_cmds
25829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25830
25831 # Create an old-style archive from a shared archive.
25832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25833
25834 # Create a temporary old-style archive to link instead of a shared archive.
25835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25836
25837 # Commands used to build and install a shared archive.
25838 archive_cmds=$lt_archive_cmds_GCJ
25839 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25840 postinstall_cmds=$lt_postinstall_cmds
25841 postuninstall_cmds=$lt_postuninstall_cmds
25842
25843 # Commands used to build a loadable module (assumed same as above if empty)
25844 module_cmds=$lt_module_cmds_GCJ
25845 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25846
25847 # Commands to strip libraries.
25848 old_striplib=$lt_old_striplib
25849 striplib=$lt_striplib
25850
25851 # Dependencies to place before the objects being linked to create a
25852 # shared library.
25853 predep_objects=$lt_predep_objects_GCJ
25854
25855 # Dependencies to place after the objects being linked to create a
25856 # shared library.
25857 postdep_objects=$lt_postdep_objects_GCJ
25858
25859 # Dependencies to place before the objects being linked to create a
25860 # shared library.
25861 predeps=$lt_predeps_GCJ
25862
25863 # Dependencies to place after the objects being linked to create a
25864 # shared library.
25865 postdeps=$lt_postdeps_GCJ
25866
25867 # The library search path used internally by the compiler when linking
25868 # a shared library.
25869 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25870
25871 # Method to check whether dependent libraries are shared objects.
25872 deplibs_check_method=$lt_deplibs_check_method
25873
25874 # Command to use when deplibs_check_method == file_magic.
25875 file_magic_cmd=$lt_file_magic_cmd
25876
25877 # Flag that allows shared libraries with undefined symbols to be built.
25878 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25879
25880 # Flag that forces no undefined symbols.
25881 no_undefined_flag=$lt_no_undefined_flag_GCJ
25882
25883 # Commands used to finish a libtool library installation in a directory.
25884 finish_cmds=$lt_finish_cmds
25885
25886 # Same as above, but a single script fragment to be evaled but not shown.
25887 finish_eval=$lt_finish_eval
25888
25889 # Take the output of nm and produce a listing of raw symbols and C names.
25890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25891
25892 # Transform the output of nm in a proper C declaration
25893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25894
25895 # Transform the output of nm in a C name address pair
25896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25897
25898 # This is the shared library runtime path variable.
25899 runpath_var=$runpath_var
25900
25901 # This is the shared library path variable.
25902 shlibpath_var=$shlibpath_var
25903
25904 # Is shlibpath searched before the hard-coded library search path?
25905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25906
25907 # How to hardcode a shared library path into an executable.
25908 hardcode_action=$hardcode_action_GCJ
25909
25910 # Whether we should hardcode library paths into libraries.
25911 hardcode_into_libs=$hardcode_into_libs
25912
25913 # Flag to hardcode \$libdir into a binary during linking.
25914 # This must work even if \$libdir does not exist.
25915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25916
25917 # If ld is used when linking, flag to hardcode \$libdir into
25918 # a binary during linking. This must work even if \$libdir does
25919 # not exist.
25920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25921
25922 # Whether we need a single -rpath flag with a separated argument.
25923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25924
25925 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25926 # resulting binary.
25927 hardcode_direct=$hardcode_direct_GCJ
25928
25929 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25930 # resulting binary.
25931 hardcode_minus_L=$hardcode_minus_L_GCJ
25932
25933 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25934 # the resulting binary.
25935 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25936
25937 # Set to yes if building a shared library automatically hardcodes DIR into the library
25938 # and all subsequent libraries and executables linked against it.
25939 hardcode_automatic=$hardcode_automatic_GCJ
25940
25941 # Variables whose values should be saved in libtool wrapper scripts and
25942 # restored at relink time.
25943 variables_saved_for_relink="$variables_saved_for_relink"
25944
25945 # Whether libtool must link a program against all its dependency libraries.
25946 link_all_deplibs=$link_all_deplibs_GCJ
25947
25948 # Compile-time system search path for libraries
25949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25950
25951 # Run-time system search path for libraries
25952 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25953
25954 # Fix the shell variable \$srcfile for the compiler.
25955 fix_srcfile_path="$fix_srcfile_path_GCJ"
25956
25957 # Set to yes if exported symbols are required.
25958 always_export_symbols=$always_export_symbols_GCJ
25959
25960 # The commands to list exported symbols.
25961 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25962
25963 # The commands to extract the exported symbol list from a shared archive.
25964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25965
25966 # Symbols that should not be listed in the preloaded symbols.
25967 exclude_expsyms=$lt_exclude_expsyms_GCJ
25968
25969 # Symbols that must always be exported.
25970 include_expsyms=$lt_include_expsyms_GCJ
25971
25972 # ### END LIBTOOL TAG CONFIG: $tagname
25973
25974 __EOF__
25975
25976
25977 else
25978   # If there is no Makefile yet, we rely on a make rule to execute
25979   # `config.status --recheck' to rerun these tests and create the
25980   # libtool script then.
25981   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25982   if test -f "$ltmain_in"; then
25983     test -f Makefile && make "$ltmain"
25984   fi
25985 fi
25986
25987
25988 ac_ext=c
25989 ac_cpp='$CPP $CPPFLAGS'
25990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25993
25994 CC="$lt_save_CC"
25995
25996         else
25997           tagname=""
25998         fi
25999         ;;
26000
26001       RC)
26002         ac_ext=c
26003 ac_cpp='$CPP $CPPFLAGS'
26004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26007
26008
26009 # Source file extension for RC test sources.
26010 ac_ext=rc
26011
26012 # Object file extension for compiled RC test sources.
26013 objext=o
26014 objext_RC=$objext
26015
26016 # Code to be used in simple compile tests
26017 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26018
26019 # Code to be used in simple link tests
26020 lt_simple_link_test_code="$lt_simple_compile_test_code"
26021
26022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26023
26024 # If no C compiler was specified, use CC.
26025 LTCC=${LTCC-"$CC"}
26026
26027 # If no C compiler flags were specified, use CFLAGS.
26028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26029
26030 # Allow CC to be a program name with arguments.
26031 compiler=$CC
26032
26033
26034 # save warnings/boilerplate of simple test code
26035 ac_outfile=conftest.$ac_objext
26036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26038 _lt_compiler_boilerplate=`cat conftest.err`
26039 $rm conftest*
26040
26041 ac_outfile=conftest.$ac_objext
26042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26044 _lt_linker_boilerplate=`cat conftest.err`
26045 $rm conftest*
26046
26047
26048 # Allow CC to be a program name with arguments.
26049 lt_save_CC="$CC"
26050 CC=${RC-"windres"}
26051 compiler=$CC
26052 compiler_RC=$CC
26053 for cc_temp in $compiler""; do
26054   case $cc_temp in
26055     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26056     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26057     \-*) ;;
26058     *) break;;
26059   esac
26060 done
26061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26062
26063 lt_cv_prog_compiler_c_o_RC=yes
26064
26065 # The else clause should only fire when bootstrapping the
26066 # libtool distribution, otherwise you forgot to ship ltmain.sh
26067 # with your package, and you will get complaints that there are
26068 # no rules to generate ltmain.sh.
26069 if test -f "$ltmain"; then
26070   # See if we are running on zsh, and set the options which allow our commands through
26071   # without removal of \ escapes.
26072   if test -n "${ZSH_VERSION+set}" ; then
26073     setopt NO_GLOB_SUBST
26074   fi
26075   # Now quote all the things that may contain metacharacters while being
26076   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26077   # variables and quote the copies for generation of the libtool script.
26078   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26079     SED SHELL STRIP \
26080     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26081     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26082     deplibs_check_method reload_flag reload_cmds need_locks \
26083     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26084     lt_cv_sys_global_symbol_to_c_name_address \
26085     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26086     old_postinstall_cmds old_postuninstall_cmds \
26087     compiler_RC \
26088     CC_RC \
26089     LD_RC \
26090     lt_prog_compiler_wl_RC \
26091     lt_prog_compiler_pic_RC \
26092     lt_prog_compiler_static_RC \
26093     lt_prog_compiler_no_builtin_flag_RC \
26094     export_dynamic_flag_spec_RC \
26095     thread_safe_flag_spec_RC \
26096     whole_archive_flag_spec_RC \
26097     enable_shared_with_static_runtimes_RC \
26098     old_archive_cmds_RC \
26099     old_archive_from_new_cmds_RC \
26100     predep_objects_RC \
26101     postdep_objects_RC \
26102     predeps_RC \
26103     postdeps_RC \
26104     compiler_lib_search_path_RC \
26105     archive_cmds_RC \
26106     archive_expsym_cmds_RC \
26107     postinstall_cmds_RC \
26108     postuninstall_cmds_RC \
26109     old_archive_from_expsyms_cmds_RC \
26110     allow_undefined_flag_RC \
26111     no_undefined_flag_RC \
26112     export_symbols_cmds_RC \
26113     hardcode_libdir_flag_spec_RC \
26114     hardcode_libdir_flag_spec_ld_RC \
26115     hardcode_libdir_separator_RC \
26116     hardcode_automatic_RC \
26117     module_cmds_RC \
26118     module_expsym_cmds_RC \
26119     lt_cv_prog_compiler_c_o_RC \
26120     exclude_expsyms_RC \
26121     include_expsyms_RC; do
26122
26123     case $var in
26124     old_archive_cmds_RC | \
26125     old_archive_from_new_cmds_RC | \
26126     archive_cmds_RC | \
26127     archive_expsym_cmds_RC | \
26128     module_cmds_RC | \
26129     module_expsym_cmds_RC | \
26130     old_archive_from_expsyms_cmds_RC | \
26131     export_symbols_cmds_RC | \
26132     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26133     postinstall_cmds | postuninstall_cmds | \
26134     old_postinstall_cmds | old_postuninstall_cmds | \
26135     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26136       # Double-quote double-evaled strings.
26137       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26138       ;;
26139     *)
26140       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26141       ;;
26142     esac
26143   done
26144
26145   case $lt_echo in
26146   *'\$0 --fallback-echo"')
26147     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26148     ;;
26149   esac
26150
26151 cfgfile="$ofile"
26152
26153   cat <<__EOF__ >> "$cfgfile"
26154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26155
26156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26157
26158 # Shell to use when invoking shell scripts.
26159 SHELL=$lt_SHELL
26160
26161 # Whether or not to build shared libraries.
26162 build_libtool_libs=$enable_shared
26163
26164 # Whether or not to build static libraries.
26165 build_old_libs=$enable_static
26166
26167 # Whether or not to add -lc for building shared libraries.
26168 build_libtool_need_lc=$archive_cmds_need_lc_RC
26169
26170 # Whether or not to disallow shared libs when runtime libs are static
26171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26172
26173 # Whether or not to optimize for fast installation.
26174 fast_install=$enable_fast_install
26175
26176 # The host system.
26177 host_alias=$host_alias
26178 host=$host
26179 host_os=$host_os
26180
26181 # The build system.
26182 build_alias=$build_alias
26183 build=$build
26184 build_os=$build_os
26185
26186 # An echo program that does not interpret backslashes.
26187 echo=$lt_echo
26188
26189 # The archiver.
26190 AR=$lt_AR
26191 AR_FLAGS=$lt_AR_FLAGS
26192
26193 # A C compiler.
26194 LTCC=$lt_LTCC
26195
26196 # LTCC compiler flags.
26197 LTCFLAGS=$lt_LTCFLAGS
26198
26199 # A language-specific compiler.
26200 CC=$lt_compiler_RC
26201
26202 # Is the compiler the GNU C compiler?
26203 with_gcc=$GCC_RC
26204
26205 # An ERE matcher.
26206 EGREP=$lt_EGREP
26207
26208 # The linker used to build libraries.
26209 LD=$lt_LD_RC
26210
26211 # Whether we need hard or soft links.
26212 LN_S=$lt_LN_S
26213
26214 # A BSD-compatible nm program.
26215 NM=$lt_NM
26216
26217 # A symbol stripping program
26218 STRIP=$lt_STRIP
26219
26220 # Used to examine libraries when file_magic_cmd begins "file"
26221 MAGIC_CMD=$MAGIC_CMD
26222
26223 # Used on cygwin: DLL creation program.
26224 DLLTOOL="$DLLTOOL"
26225
26226 # Used on cygwin: object dumper.
26227 OBJDUMP="$OBJDUMP"
26228
26229 # Used on cygwin: assembler.
26230 AS="$AS"
26231
26232 # The name of the directory that contains temporary libtool files.
26233 objdir=$objdir
26234
26235 # How to create reloadable object files.
26236 reload_flag=$lt_reload_flag
26237 reload_cmds=$lt_reload_cmds
26238
26239 # How to pass a linker flag through the compiler.
26240 wl=$lt_lt_prog_compiler_wl_RC
26241
26242 # Object file suffix (normally "o").
26243 objext="$ac_objext"
26244
26245 # Old archive suffix (normally "a").
26246 libext="$libext"
26247
26248 # Shared library suffix (normally ".so").
26249 shrext_cmds='$shrext_cmds'
26250
26251 # Executable file suffix (normally "").
26252 exeext="$exeext"
26253
26254 # Additional compiler flags for building library objects.
26255 pic_flag=$lt_lt_prog_compiler_pic_RC
26256 pic_mode=$pic_mode
26257
26258 # What is the maximum length of a command?
26259 max_cmd_len=$lt_cv_sys_max_cmd_len
26260
26261 # Does compiler simultaneously support -c and -o options?
26262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26263
26264 # Must we lock files when doing compilation?
26265 need_locks=$lt_need_locks
26266
26267 # Do we need the lib prefix for modules?
26268 need_lib_prefix=$need_lib_prefix
26269
26270 # Do we need a version for libraries?
26271 need_version=$need_version
26272
26273 # Whether dlopen is supported.
26274 dlopen_support=$enable_dlopen
26275
26276 # Whether dlopen of programs is supported.
26277 dlopen_self=$enable_dlopen_self
26278
26279 # Whether dlopen of statically linked programs is supported.
26280 dlopen_self_static=$enable_dlopen_self_static
26281
26282 # Compiler flag to prevent dynamic linking.
26283 link_static_flag=$lt_lt_prog_compiler_static_RC
26284
26285 # Compiler flag to turn off builtin functions.
26286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26287
26288 # Compiler flag to allow reflexive dlopens.
26289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26290
26291 # Compiler flag to generate shared objects directly from archives.
26292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26293
26294 # Compiler flag to generate thread-safe objects.
26295 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26296
26297 # Library versioning type.
26298 version_type=$version_type
26299
26300 # Format of library name prefix.
26301 libname_spec=$lt_libname_spec
26302
26303 # List of archive names.  First name is the real one, the rest are links.
26304 # The last name is the one that the linker finds with -lNAME.
26305 library_names_spec=$lt_library_names_spec
26306
26307 # The coded name of the library, if different from the real name.
26308 soname_spec=$lt_soname_spec
26309
26310 # Commands used to build and install an old-style archive.
26311 RANLIB=$lt_RANLIB
26312 old_archive_cmds=$lt_old_archive_cmds_RC
26313 old_postinstall_cmds=$lt_old_postinstall_cmds
26314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26315
26316 # Create an old-style archive from a shared archive.
26317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26318
26319 # Create a temporary old-style archive to link instead of a shared archive.
26320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26321
26322 # Commands used to build and install a shared archive.
26323 archive_cmds=$lt_archive_cmds_RC
26324 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26325 postinstall_cmds=$lt_postinstall_cmds
26326 postuninstall_cmds=$lt_postuninstall_cmds
26327
26328 # Commands used to build a loadable module (assumed same as above if empty)
26329 module_cmds=$lt_module_cmds_RC
26330 module_expsym_cmds=$lt_module_expsym_cmds_RC
26331
26332 # Commands to strip libraries.
26333 old_striplib=$lt_old_striplib
26334 striplib=$lt_striplib
26335
26336 # Dependencies to place before the objects being linked to create a
26337 # shared library.
26338 predep_objects=$lt_predep_objects_RC
26339
26340 # Dependencies to place after the objects being linked to create a
26341 # shared library.
26342 postdep_objects=$lt_postdep_objects_RC
26343
26344 # Dependencies to place before the objects being linked to create a
26345 # shared library.
26346 predeps=$lt_predeps_RC
26347
26348 # Dependencies to place after the objects being linked to create a
26349 # shared library.
26350 postdeps=$lt_postdeps_RC
26351
26352 # The library search path used internally by the compiler when linking
26353 # a shared library.
26354 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26355
26356 # Method to check whether dependent libraries are shared objects.
26357 deplibs_check_method=$lt_deplibs_check_method
26358
26359 # Command to use when deplibs_check_method == file_magic.
26360 file_magic_cmd=$lt_file_magic_cmd
26361
26362 # Flag that allows shared libraries with undefined symbols to be built.
26363 allow_undefined_flag=$lt_allow_undefined_flag_RC
26364
26365 # Flag that forces no undefined symbols.
26366 no_undefined_flag=$lt_no_undefined_flag_RC
26367
26368 # Commands used to finish a libtool library installation in a directory.
26369 finish_cmds=$lt_finish_cmds
26370
26371 # Same as above, but a single script fragment to be evaled but not shown.
26372 finish_eval=$lt_finish_eval
26373
26374 # Take the output of nm and produce a listing of raw symbols and C names.
26375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26376
26377 # Transform the output of nm in a proper C declaration
26378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26379
26380 # Transform the output of nm in a C name address pair
26381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26382
26383 # This is the shared library runtime path variable.
26384 runpath_var=$runpath_var
26385
26386 # This is the shared library path variable.
26387 shlibpath_var=$shlibpath_var
26388
26389 # Is shlibpath searched before the hard-coded library search path?
26390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26391
26392 # How to hardcode a shared library path into an executable.
26393 hardcode_action=$hardcode_action_RC
26394
26395 # Whether we should hardcode library paths into libraries.
26396 hardcode_into_libs=$hardcode_into_libs
26397
26398 # Flag to hardcode \$libdir into a binary during linking.
26399 # This must work even if \$libdir does not exist.
26400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26401
26402 # If ld is used when linking, flag to hardcode \$libdir into
26403 # a binary during linking. This must work even if \$libdir does
26404 # not exist.
26405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26406
26407 # Whether we need a single -rpath flag with a separated argument.
26408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26409
26410 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26411 # resulting binary.
26412 hardcode_direct=$hardcode_direct_RC
26413
26414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26415 # resulting binary.
26416 hardcode_minus_L=$hardcode_minus_L_RC
26417
26418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26419 # the resulting binary.
26420 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26421
26422 # Set to yes if building a shared library automatically hardcodes DIR into the library
26423 # and all subsequent libraries and executables linked against it.
26424 hardcode_automatic=$hardcode_automatic_RC
26425
26426 # Variables whose values should be saved in libtool wrapper scripts and
26427 # restored at relink time.
26428 variables_saved_for_relink="$variables_saved_for_relink"
26429
26430 # Whether libtool must link a program against all its dependency libraries.
26431 link_all_deplibs=$link_all_deplibs_RC
26432
26433 # Compile-time system search path for libraries
26434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26435
26436 # Run-time system search path for libraries
26437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26438
26439 # Fix the shell variable \$srcfile for the compiler.
26440 fix_srcfile_path="$fix_srcfile_path_RC"
26441
26442 # Set to yes if exported symbols are required.
26443 always_export_symbols=$always_export_symbols_RC
26444
26445 # The commands to list exported symbols.
26446 export_symbols_cmds=$lt_export_symbols_cmds_RC
26447
26448 # The commands to extract the exported symbol list from a shared archive.
26449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26450
26451 # Symbols that should not be listed in the preloaded symbols.
26452 exclude_expsyms=$lt_exclude_expsyms_RC
26453
26454 # Symbols that must always be exported.
26455 include_expsyms=$lt_include_expsyms_RC
26456
26457 # ### END LIBTOOL TAG CONFIG: $tagname
26458
26459 __EOF__
26460
26461
26462 else
26463   # If there is no Makefile yet, we rely on a make rule to execute
26464   # `config.status --recheck' to rerun these tests and create the
26465   # libtool script then.
26466   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26467   if test -f "$ltmain_in"; then
26468     test -f Makefile && make "$ltmain"
26469   fi
26470 fi
26471
26472
26473 ac_ext=c
26474 ac_cpp='$CPP $CPPFLAGS'
26475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26478
26479 CC="$lt_save_CC"
26480
26481         ;;
26482
26483       *)
26484         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26485 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26486    { (exit 1); exit 1; }; }
26487         ;;
26488       esac
26489
26490       # Append the new tag name to the list of available tags.
26491       if test -n "$tagname" ; then
26492       available_tags="$available_tags $tagname"
26493     fi
26494     fi
26495   done
26496   IFS="$lt_save_ifs"
26497
26498   # Now substitute the updated list of available tags.
26499   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26500     mv "${ofile}T" "$ofile"
26501     chmod +x "$ofile"
26502   else
26503     rm -f "${ofile}T"
26504     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26505 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26506    { (exit 1); exit 1; }; }
26507   fi
26508 fi
26509
26510
26511
26512 # This can be used to rebuild libtool when needed
26513 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26514
26515 # Always use our own libtool.
26516 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26517
26518 # Prevent multiple expansion
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540 if test "$lt_cv_dlopen_self" = "yes" ; then
26541
26542 cat >>confdefs.h <<\_ACEOF
26543 #define CAN_DLOPEN_SELF 1
26544 _ACEOF
26545
26546 fi
26547
26548 etags_version=`$ETAGS --version 2>&1`
26549 case "$etags_version" in
26550         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26551         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26552         *) ETAGSFLAGS="" ;;
26553 esac
26554 ETAGSFLAGS=$ETAGSFLAGS
26555
26556
26557 if test "$WITH_LLVMGCCDIR" = "default" ; then
26558   LLVMGCC="llvm-gcc${EXEEXT}"
26559   LLVMGXX="llvm-g++${EXEEXT}"
26560   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26561 set dummy $LLVMGCC; ac_word=$2
26562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26564 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26565   echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567   case $LLVMGCC in
26568   [\\/]* | ?:[\\/]*)
26569   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26570   ;;
26571   *)
26572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26573 for as_dir in $PATH
26574 do
26575   IFS=$as_save_IFS
26576   test -z "$as_dir" && as_dir=.
26577   for ac_exec_ext in '' $ac_executable_extensions; do
26578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26579     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26581     break 2
26582   fi
26583 done
26584 done
26585 IFS=$as_save_IFS
26586
26587   ;;
26588 esac
26589 fi
26590 LLVMGCC=$ac_cv_path_LLVMGCC
26591 if test -n "$LLVMGCC"; then
26592   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26593 echo "${ECHO_T}$LLVMGCC" >&6; }
26594 else
26595   { echo "$as_me:$LINENO: result: no" >&5
26596 echo "${ECHO_T}no" >&6; }
26597 fi
26598
26599
26600   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26601 set dummy $LLVMGXX; ac_word=$2
26602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26604 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26605   echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607   case $LLVMGXX in
26608   [\\/]* | ?:[\\/]*)
26609   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26610   ;;
26611   *)
26612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26613 for as_dir in $PATH
26614 do
26615   IFS=$as_save_IFS
26616   test -z "$as_dir" && as_dir=.
26617   for ac_exec_ext in '' $ac_executable_extensions; do
26618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26619     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621     break 2
26622   fi
26623 done
26624 done
26625 IFS=$as_save_IFS
26626
26627   ;;
26628 esac
26629 fi
26630 LLVMGXX=$ac_cv_path_LLVMGXX
26631 if test -n "$LLVMGXX"; then
26632   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26633 echo "${ECHO_T}$LLVMGXX" >&6; }
26634 else
26635   { echo "$as_me:$LINENO: result: no" >&5
26636 echo "${ECHO_T}no" >&6; }
26637 fi
26638
26639
26640 else
26641   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26642   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26643   LLVMGCC=$LLVMGCC
26644
26645   LLVMGXX=$LLVMGXX
26646
26647 fi
26648
26649 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26650 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26651
26652 ICC=no
26653 IXX=no
26654 case $CC in
26655   icc*|icpc*)
26656     ICC=yes
26657     IXX=yes
26658     ;;
26659    *)
26660     ;;
26661 esac
26662
26663 if test "$GCC" != "yes" && test "$ICC" != "yes"
26664 then
26665   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26666 echo "$as_me: error: gcc|icc required but not found" >&2;}
26667    { (exit 1); exit 1; }; }
26668 fi
26669
26670 if test "$GXX" != "yes" && test "$IXX" != "yes"
26671 then
26672   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26673 echo "$as_me: error: g++|icc required but not found" >&2;}
26674    { (exit 1); exit 1; }; }
26675 fi
26676
26677 if test "$GCC" = "yes"
26678 then
26679   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26680   if test "$gccmajor" -lt "3"
26681   then
26682     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26683 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26684    { (exit 1); exit 1; }; }
26685   fi
26686 fi
26687
26688 if test -z "$llvm_cv_gnu_make_command"
26689 then
26690   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26691 echo "$as_me: error: GNU Make required but not found" >&2;}
26692    { (exit 1); exit 1; }; }
26693 fi
26694
26695 { echo "$as_me:$LINENO: result: ok" >&5
26696 echo "${ECHO_T}ok" >&6; }
26697
26698
26699
26700 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26701 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26702 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26703   echo $ECHO_N "(cached) $ECHO_C" >&6
26704 else
26705   ac_check_lib_save_LIBS=$LIBS
26706 LIBS="-lelf  $LIBS"
26707 cat >conftest.$ac_ext <<_ACEOF
26708 /* confdefs.h.  */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h.  */
26713
26714 /* Override any GCC internal prototype to avoid an error.
26715    Use char because int might match the return type of a GCC
26716    builtin and then its argument prototype would still apply.  */
26717 #ifdef __cplusplus
26718 extern "C"
26719 #endif
26720 char elf_begin ();
26721 int
26722 main ()
26723 {
26724 return elf_begin ();
26725   ;
26726   return 0;
26727 }
26728 _ACEOF
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (ac_try="$ac_link"
26731 case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736   (eval "$ac_link") 2>conftest.er1
26737   ac_status=$?
26738   grep -v '^ *+' conftest.er1 >conftest.err
26739   rm -f conftest.er1
26740   cat conftest.err >&5
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); } &&
26743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26744   { (case "(($ac_try" in
26745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746   *) ac_try_echo=$ac_try;;
26747 esac
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749   (eval "$ac_try") 2>&5
26750   ac_status=$?
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); }; } &&
26753          { ac_try='test -s conftest$ac_exeext'
26754   { (case "(($ac_try" in
26755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756   *) ac_try_echo=$ac_try;;
26757 esac
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759   (eval "$ac_try") 2>&5
26760   ac_status=$?
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); }; }; then
26763   ac_cv_lib_elf_elf_begin=yes
26764 else
26765   echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26767
26768         ac_cv_lib_elf_elf_begin=no
26769 fi
26770
26771 rm -f core conftest.err conftest.$ac_objext \
26772       conftest$ac_exeext conftest.$ac_ext
26773 LIBS=$ac_check_lib_save_LIBS
26774 fi
26775 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26776 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26777 if test $ac_cv_lib_elf_elf_begin = yes; then
26778   cat >>confdefs.h <<_ACEOF
26779 #define HAVE_LIBELF 1
26780 _ACEOF
26781
26782   LIBS="-lelf $LIBS"
26783
26784 fi
26785
26786
26787 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26788 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26789 if test "${ac_cv_lib_m_sin+set}" = set; then
26790   echo $ECHO_N "(cached) $ECHO_C" >&6
26791 else
26792   ac_check_lib_save_LIBS=$LIBS
26793 LIBS="-lm  $LIBS"
26794 cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h.  */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h.  */
26800
26801 /* Override any GCC internal prototype to avoid an error.
26802    Use char because int might match the return type of a GCC
26803    builtin and then its argument prototype would still apply.  */
26804 #ifdef __cplusplus
26805 extern "C"
26806 #endif
26807 char sin ();
26808 int
26809 main ()
26810 {
26811 return sin ();
26812   ;
26813   return 0;
26814 }
26815 _ACEOF
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_link") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } &&
26830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26831   { (case "(($ac_try" in
26832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833   *) ac_try_echo=$ac_try;;
26834 esac
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836   (eval "$ac_try") 2>&5
26837   ac_status=$?
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); }; } &&
26840          { ac_try='test -s conftest$ac_exeext'
26841   { (case "(($ac_try" in
26842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843   *) ac_try_echo=$ac_try;;
26844 esac
26845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26846   (eval "$ac_try") 2>&5
26847   ac_status=$?
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); }; }; then
26850   ac_cv_lib_m_sin=yes
26851 else
26852   echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26854
26855         ac_cv_lib_m_sin=no
26856 fi
26857
26858 rm -f core conftest.err conftest.$ac_objext \
26859       conftest$ac_exeext conftest.$ac_ext
26860 LIBS=$ac_check_lib_save_LIBS
26861 fi
26862 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26863 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26864 if test $ac_cv_lib_m_sin = yes; then
26865   cat >>confdefs.h <<_ACEOF
26866 #define HAVE_LIBM 1
26867 _ACEOF
26868
26869   LIBS="-lm $LIBS"
26870
26871 fi
26872
26873 if test "$llvm_cv_os_type" == "MingW" ; then
26874
26875 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26876 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26877 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26878   echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880   ac_check_lib_save_LIBS=$LIBS
26881 LIBS="-limagehlp  $LIBS"
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h.  */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h.  */
26888
26889
26890 int
26891 main ()
26892 {
26893 return main ();
26894   ;
26895   return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902   *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905   (eval "$ac_link") 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } &&
26912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913   { (case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918   (eval "$ac_try") 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; } &&
26922          { ac_try='test -s conftest$ac_exeext'
26923   { (case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_try") 2>&5
26929   ac_status=$?
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); }; }; then
26932   ac_cv_lib_imagehlp_main=yes
26933 else
26934   echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26936
26937         ac_cv_lib_imagehlp_main=no
26938 fi
26939
26940 rm -f core conftest.err conftest.$ac_objext \
26941       conftest$ac_exeext conftest.$ac_ext
26942 LIBS=$ac_check_lib_save_LIBS
26943 fi
26944 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26945 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26946 if test $ac_cv_lib_imagehlp_main = yes; then
26947   cat >>confdefs.h <<_ACEOF
26948 #define HAVE_LIBIMAGEHLP 1
26949 _ACEOF
26950
26951   LIBS="-limagehlp $LIBS"
26952
26953 fi
26954
26955
26956 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26957 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26958 if test "${ac_cv_lib_psapi_main+set}" = set; then
26959   echo $ECHO_N "(cached) $ECHO_C" >&6
26960 else
26961   ac_check_lib_save_LIBS=$LIBS
26962 LIBS="-lpsapi  $LIBS"
26963 cat >conftest.$ac_ext <<_ACEOF
26964 /* confdefs.h.  */
26965 _ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h.  */
26969
26970
26971 int
26972 main ()
26973 {
26974 return main ();
26975   ;
26976   return 0;
26977 }
26978 _ACEOF
26979 rm -f conftest.$ac_objext conftest$ac_exeext
26980 if { (ac_try="$ac_link"
26981 case "(($ac_try" in
26982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983   *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986   (eval "$ac_link") 2>conftest.er1
26987   ac_status=$?
26988   grep -v '^ *+' conftest.er1 >conftest.err
26989   rm -f conftest.er1
26990   cat conftest.err >&5
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); } &&
26993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26994   { (case "(($ac_try" in
26995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996   *) ac_try_echo=$ac_try;;
26997 esac
26998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999   (eval "$ac_try") 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); }; } &&
27003          { ac_try='test -s conftest$ac_exeext'
27004   { (case "(($ac_try" in
27005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006   *) ac_try_echo=$ac_try;;
27007 esac
27008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27009   (eval "$ac_try") 2>&5
27010   ac_status=$?
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); }; }; then
27013   ac_cv_lib_psapi_main=yes
27014 else
27015   echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27017
27018         ac_cv_lib_psapi_main=no
27019 fi
27020
27021 rm -f core conftest.err conftest.$ac_objext \
27022       conftest$ac_exeext conftest.$ac_ext
27023 LIBS=$ac_check_lib_save_LIBS
27024 fi
27025 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27026 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27027 if test $ac_cv_lib_psapi_main = yes; then
27028   cat >>confdefs.h <<_ACEOF
27029 #define HAVE_LIBPSAPI 1
27030 _ACEOF
27031
27032   LIBS="-lpsapi $LIBS"
27033
27034 fi
27035
27036 fi
27037
27038 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27039 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27040 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27041   echo $ECHO_N "(cached) $ECHO_C" >&6
27042 else
27043   ac_func_search_save_LIBS=$LIBS
27044 cat >conftest.$ac_ext <<_ACEOF
27045 /* confdefs.h.  */
27046 _ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h.  */
27050
27051 /* Override any GCC internal prototype to avoid an error.
27052    Use char because int might match the return type of a GCC
27053    builtin and then its argument prototype would still apply.  */
27054 #ifdef __cplusplus
27055 extern "C"
27056 #endif
27057 char lt_dlopen ();
27058 int
27059 main ()
27060 {
27061 return lt_dlopen ();
27062   ;
27063   return 0;
27064 }
27065 _ACEOF
27066 for ac_lib in '' ltdl; do
27067   if test -z "$ac_lib"; then
27068     ac_res="none required"
27069   else
27070     ac_res=-l$ac_lib
27071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27072   fi
27073   rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080   (eval "$ac_link") 2>conftest.er1
27081   ac_status=$?
27082   grep -v '^ *+' conftest.er1 >conftest.err
27083   rm -f conftest.er1
27084   cat conftest.err >&5
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); } &&
27087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27088   { (case "(($ac_try" in
27089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090   *) ac_try_echo=$ac_try;;
27091 esac
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093   (eval "$ac_try") 2>&5
27094   ac_status=$?
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); }; } &&
27097          { ac_try='test -s conftest$ac_exeext'
27098   { (case "(($ac_try" in
27099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100   *) ac_try_echo=$ac_try;;
27101 esac
27102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103   (eval "$ac_try") 2>&5
27104   ac_status=$?
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); }; }; then
27107   ac_cv_search_lt_dlopen=$ac_res
27108 else
27109   echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.$ac_ext >&5
27111
27112
27113 fi
27114
27115 rm -f core conftest.err conftest.$ac_objext \
27116       conftest$ac_exeext
27117   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27118   break
27119 fi
27120 done
27121 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27122   :
27123 else
27124   ac_cv_search_lt_dlopen=no
27125 fi
27126 rm conftest.$ac_ext
27127 LIBS=$ac_func_search_save_LIBS
27128 fi
27129 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27130 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27131 ac_res=$ac_cv_search_lt_dlopen
27132 if test "$ac_res" != no; then
27133   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27134
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_LT_DLOPEN 1
27137 _ACEOF
27138
27139 else
27140   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27141                            not be available" >&5
27142 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27143                            not be available" >&2;}
27144 fi
27145
27146
27147 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27148 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27149 if test "${ac_cv_search_dlopen+set}" = set; then
27150   echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152   ac_func_search_save_LIBS=$LIBS
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h.  */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h.  */
27159
27160 /* Override any GCC internal prototype to avoid an error.
27161    Use char because int might match the return type of a GCC
27162    builtin and then its argument prototype would still apply.  */
27163 #ifdef __cplusplus
27164 extern "C"
27165 #endif
27166 char dlopen ();
27167 int
27168 main ()
27169 {
27170 return dlopen ();
27171   ;
27172   return 0;
27173 }
27174 _ACEOF
27175 for ac_lib in '' dl; do
27176   if test -z "$ac_lib"; then
27177     ac_res="none required"
27178   else
27179     ac_res=-l$ac_lib
27180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27181   fi
27182   rm -f conftest.$ac_objext conftest$ac_exeext
27183 if { (ac_try="$ac_link"
27184 case "(($ac_try" in
27185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186   *) ac_try_echo=$ac_try;;
27187 esac
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189   (eval "$ac_link") 2>conftest.er1
27190   ac_status=$?
27191   grep -v '^ *+' conftest.er1 >conftest.err
27192   rm -f conftest.er1
27193   cat conftest.err >&5
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); } &&
27196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197   { (case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202   (eval "$ac_try") 2>&5
27203   ac_status=$?
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); }; } &&
27206          { ac_try='test -s conftest$ac_exeext'
27207   { (case "(($ac_try" in
27208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209   *) ac_try_echo=$ac_try;;
27210 esac
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212   (eval "$ac_try") 2>&5
27213   ac_status=$?
27214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215   (exit $ac_status); }; }; then
27216   ac_cv_search_dlopen=$ac_res
27217 else
27218   echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27220
27221
27222 fi
27223
27224 rm -f core conftest.err conftest.$ac_objext \
27225       conftest$ac_exeext
27226   if test "${ac_cv_search_dlopen+set}" = set; then
27227   break
27228 fi
27229 done
27230 if test "${ac_cv_search_dlopen+set}" = set; then
27231   :
27232 else
27233   ac_cv_search_dlopen=no
27234 fi
27235 rm conftest.$ac_ext
27236 LIBS=$ac_func_search_save_LIBS
27237 fi
27238 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27239 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27240 ac_res=$ac_cv_search_dlopen
27241 if test "$ac_res" != no; then
27242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27243
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_DLOPEN 1
27246 _ACEOF
27247
27248 else
27249   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27250 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27251 fi
27252
27253
27254 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27255 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27256 if test "${ac_cv_search_mallinfo+set}" = set; then
27257   echo $ECHO_N "(cached) $ECHO_C" >&6
27258 else
27259   ac_func_search_save_LIBS=$LIBS
27260 cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h.  */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h.  */
27266
27267 /* Override any GCC internal prototype to avoid an error.
27268    Use char because int might match the return type of a GCC
27269    builtin and then its argument prototype would still apply.  */
27270 #ifdef __cplusplus
27271 extern "C"
27272 #endif
27273 char mallinfo ();
27274 int
27275 main ()
27276 {
27277 return mallinfo ();
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 for ac_lib in '' malloc; do
27283   if test -z "$ac_lib"; then
27284     ac_res="none required"
27285   else
27286     ac_res=-l$ac_lib
27287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27288   fi
27289   rm -f conftest.$ac_objext conftest$ac_exeext
27290 if { (ac_try="$ac_link"
27291 case "(($ac_try" in
27292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293   *) ac_try_echo=$ac_try;;
27294 esac
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296   (eval "$ac_link") 2>conftest.er1
27297   ac_status=$?
27298   grep -v '^ *+' conftest.er1 >conftest.err
27299   rm -f conftest.er1
27300   cat conftest.err >&5
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); } &&
27303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27304   { (case "(($ac_try" in
27305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306   *) ac_try_echo=$ac_try;;
27307 esac
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309   (eval "$ac_try") 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; } &&
27313          { ac_try='test -s conftest$ac_exeext'
27314   { (case "(($ac_try" in
27315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316   *) ac_try_echo=$ac_try;;
27317 esac
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319   (eval "$ac_try") 2>&5
27320   ac_status=$?
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); }; }; then
27323   ac_cv_search_mallinfo=$ac_res
27324 else
27325   echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27327
27328
27329 fi
27330
27331 rm -f core conftest.err conftest.$ac_objext \
27332       conftest$ac_exeext
27333   if test "${ac_cv_search_mallinfo+set}" = set; then
27334   break
27335 fi
27336 done
27337 if test "${ac_cv_search_mallinfo+set}" = set; then
27338   :
27339 else
27340   ac_cv_search_mallinfo=no
27341 fi
27342 rm conftest.$ac_ext
27343 LIBS=$ac_func_search_save_LIBS
27344 fi
27345 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27346 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27347 ac_res=$ac_cv_search_mallinfo
27348 if test "$ac_res" != no; then
27349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27350
27351 cat >>confdefs.h <<\_ACEOF
27352 #define HAVE_MALLINFO 1
27353 _ACEOF
27354
27355 fi
27356
27357
27358 if test "$ENABLE_THREADS" -eq 1 ; then
27359
27360 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27361 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27363   echo $ECHO_N "(cached) $ECHO_C" >&6
27364 else
27365   ac_check_lib_save_LIBS=$LIBS
27366 LIBS="-lpthread  $LIBS"
27367 cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h.  */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h.  */
27373
27374 /* Override any GCC internal prototype to avoid an error.
27375    Use char because int might match the return type of a GCC
27376    builtin and then its argument prototype would still apply.  */
27377 #ifdef __cplusplus
27378 extern "C"
27379 #endif
27380 char pthread_mutex_init ();
27381 int
27382 main ()
27383 {
27384 return pthread_mutex_init ();
27385   ;
27386   return 0;
27387 }
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (ac_try="$ac_link"
27391 case "(($ac_try" in
27392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393   *) ac_try_echo=$ac_try;;
27394 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396   (eval "$ac_link") 2>conftest.er1
27397   ac_status=$?
27398   grep -v '^ *+' conftest.er1 >conftest.err
27399   rm -f conftest.er1
27400   cat conftest.err >&5
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); } &&
27403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404   { (case "(($ac_try" in
27405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406   *) ac_try_echo=$ac_try;;
27407 esac
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409   (eval "$ac_try") 2>&5
27410   ac_status=$?
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); }; } &&
27413          { ac_try='test -s conftest$ac_exeext'
27414   { (case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419   (eval "$ac_try") 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); }; }; then
27423   ac_cv_lib_pthread_pthread_mutex_init=yes
27424 else
27425   echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27427
27428         ac_cv_lib_pthread_pthread_mutex_init=no
27429 fi
27430
27431 rm -f core conftest.err conftest.$ac_objext \
27432       conftest$ac_exeext conftest.$ac_ext
27433 LIBS=$ac_check_lib_save_LIBS
27434 fi
27435 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27436 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27437 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27438   cat >>confdefs.h <<_ACEOF
27439 #define HAVE_LIBPTHREAD 1
27440 _ACEOF
27441
27442   LIBS="-lpthread $LIBS"
27443
27444 fi
27445
27446   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27447 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27449   echo $ECHO_N "(cached) $ECHO_C" >&6
27450 else
27451   ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458
27459 /* Override any GCC internal prototype to avoid an error.
27460    Use char because int might match the return type of a GCC
27461    builtin and then its argument prototype would still apply.  */
27462 #ifdef __cplusplus
27463 extern "C"
27464 #endif
27465 char pthread_mutex_lock ();
27466 int
27467 main ()
27468 {
27469 return pthread_mutex_lock ();
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 for ac_lib in '' pthread; do
27475   if test -z "$ac_lib"; then
27476     ac_res="none required"
27477   else
27478     ac_res=-l$ac_lib
27479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27480   fi
27481   rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485   *) ac_try_echo=$ac_try;;
27486 esac
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488   (eval "$ac_link") 2>conftest.er1
27489   ac_status=$?
27490   grep -v '^ *+' conftest.er1 >conftest.err
27491   rm -f conftest.er1
27492   cat conftest.err >&5
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); } &&
27495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_try") 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; } &&
27505          { ac_try='test -s conftest$ac_exeext'
27506   { (case "(($ac_try" in
27507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508   *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511   (eval "$ac_try") 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; }; then
27515   ac_cv_search_pthread_mutex_lock=$ac_res
27516 else
27517   echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520
27521 fi
27522
27523 rm -f core conftest.err conftest.$ac_objext \
27524       conftest$ac_exeext
27525   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27526   break
27527 fi
27528 done
27529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27530   :
27531 else
27532   ac_cv_search_pthread_mutex_lock=no
27533 fi
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27536 fi
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27538 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27539 ac_res=$ac_cv_search_pthread_mutex_lock
27540 if test "$ac_res" != no; then
27541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27542
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_PTHREAD_MUTEX_LOCK 1
27545 _ACEOF
27546
27547 fi
27548
27549 fi
27550
27551
27552
27553
27554
27555
27556
27557 ac_header_dirent=no
27558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27559   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27560 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27561 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27563   echo $ECHO_N "(cached) $ECHO_C" >&6
27564 else
27565   cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571 #include <sys/types.h>
27572 #include <$ac_hdr>
27573
27574 int
27575 main ()
27576 {
27577 if ((DIR *) 0)
27578 return 0;
27579   ;
27580   return 0;
27581 }
27582 _ACEOF
27583 rm -f conftest.$ac_objext
27584 if { (ac_try="$ac_compile"
27585 case "(($ac_try" in
27586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587   *) ac_try_echo=$ac_try;;
27588 esac
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590   (eval "$ac_compile") 2>conftest.er1
27591   ac_status=$?
27592   grep -v '^ *+' conftest.er1 >conftest.err
27593   rm -f conftest.er1
27594   cat conftest.err >&5
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); } &&
27597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27598   { (case "(($ac_try" in
27599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600   *) ac_try_echo=$ac_try;;
27601 esac
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603   (eval "$ac_try") 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; } &&
27607          { ac_try='test -s conftest.$ac_objext'
27608   { (case "(($ac_try" in
27609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610   *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613   (eval "$ac_try") 2>&5
27614   ac_status=$?
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); }; }; then
27617   eval "$as_ac_Header=yes"
27618 else
27619   echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27621
27622         eval "$as_ac_Header=no"
27623 fi
27624
27625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27626 fi
27627 ac_res=`eval echo '${'$as_ac_Header'}'`
27628                { echo "$as_me:$LINENO: result: $ac_res" >&5
27629 echo "${ECHO_T}$ac_res" >&6; }
27630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27631   cat >>confdefs.h <<_ACEOF
27632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27633 _ACEOF
27634
27635 ac_header_dirent=$ac_hdr; break
27636 fi
27637
27638 done
27639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27640 if test $ac_header_dirent = dirent.h; then
27641   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27643 if test "${ac_cv_search_opendir+set}" = set; then
27644   echo $ECHO_N "(cached) $ECHO_C" >&6
27645 else
27646   ac_func_search_save_LIBS=$LIBS
27647 cat >conftest.$ac_ext <<_ACEOF
27648 /* confdefs.h.  */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h.  */
27653
27654 /* Override any GCC internal prototype to avoid an error.
27655    Use char because int might match the return type of a GCC
27656    builtin and then its argument prototype would still apply.  */
27657 #ifdef __cplusplus
27658 extern "C"
27659 #endif
27660 char opendir ();
27661 int
27662 main ()
27663 {
27664 return opendir ();
27665   ;
27666   return 0;
27667 }
27668 _ACEOF
27669 for ac_lib in '' dir; do
27670   if test -z "$ac_lib"; then
27671     ac_res="none required"
27672   else
27673     ac_res=-l$ac_lib
27674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27675   fi
27676   rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (ac_try="$ac_link"
27678 case "(($ac_try" in
27679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680   *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683   (eval "$ac_link") 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691   { (case "(($ac_try" in
27692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693   *) ac_try_echo=$ac_try;;
27694 esac
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696   (eval "$ac_try") 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; } &&
27700          { ac_try='test -s conftest$ac_exeext'
27701   { (case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706   (eval "$ac_try") 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); }; }; then
27710   ac_cv_search_opendir=$ac_res
27711 else
27712   echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27714
27715
27716 fi
27717
27718 rm -f core conftest.err conftest.$ac_objext \
27719       conftest$ac_exeext
27720   if test "${ac_cv_search_opendir+set}" = set; then
27721   break
27722 fi
27723 done
27724 if test "${ac_cv_search_opendir+set}" = set; then
27725   :
27726 else
27727   ac_cv_search_opendir=no
27728 fi
27729 rm conftest.$ac_ext
27730 LIBS=$ac_func_search_save_LIBS
27731 fi
27732 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27733 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27734 ac_res=$ac_cv_search_opendir
27735 if test "$ac_res" != no; then
27736   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27737
27738 fi
27739
27740 else
27741   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27742 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27743 if test "${ac_cv_search_opendir+set}" = set; then
27744   echo $ECHO_N "(cached) $ECHO_C" >&6
27745 else
27746   ac_func_search_save_LIBS=$LIBS
27747 cat >conftest.$ac_ext <<_ACEOF
27748 /* confdefs.h.  */
27749 _ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h.  */
27753
27754 /* Override any GCC internal prototype to avoid an error.
27755    Use char because int might match the return type of a GCC
27756    builtin and then its argument prototype would still apply.  */
27757 #ifdef __cplusplus
27758 extern "C"
27759 #endif
27760 char opendir ();
27761 int
27762 main ()
27763 {
27764 return opendir ();
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 for ac_lib in '' x; do
27770   if test -z "$ac_lib"; then
27771     ac_res="none required"
27772   else
27773     ac_res=-l$ac_lib
27774     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27775   fi
27776   rm -f conftest.$ac_objext conftest$ac_exeext
27777 if { (ac_try="$ac_link"
27778 case "(($ac_try" in
27779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780   *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783   (eval "$ac_link") 2>conftest.er1
27784   ac_status=$?
27785   grep -v '^ *+' conftest.er1 >conftest.err
27786   rm -f conftest.er1
27787   cat conftest.err >&5
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); } &&
27790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27791   { (case "(($ac_try" in
27792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27793   *) ac_try_echo=$ac_try;;
27794 esac
27795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27796   (eval "$ac_try") 2>&5
27797   ac_status=$?
27798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799   (exit $ac_status); }; } &&
27800          { ac_try='test -s conftest$ac_exeext'
27801   { (case "(($ac_try" in
27802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803   *) ac_try_echo=$ac_try;;
27804 esac
27805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806   (eval "$ac_try") 2>&5
27807   ac_status=$?
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); }; }; then
27810   ac_cv_search_opendir=$ac_res
27811 else
27812   echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815
27816 fi
27817
27818 rm -f core conftest.err conftest.$ac_objext \
27819       conftest$ac_exeext
27820   if test "${ac_cv_search_opendir+set}" = set; then
27821   break
27822 fi
27823 done
27824 if test "${ac_cv_search_opendir+set}" = set; then
27825   :
27826 else
27827   ac_cv_search_opendir=no
27828 fi
27829 rm conftest.$ac_ext
27830 LIBS=$ac_func_search_save_LIBS
27831 fi
27832 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27833 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27834 ac_res=$ac_cv_search_opendir
27835 if test "$ac_res" != no; then
27836   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27837
27838 fi
27839
27840 fi
27841
27842 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27843 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27844 if test "${ac_cv_header_mmap_anon+set}" = set; then
27845   echo $ECHO_N "(cached) $ECHO_C" >&6
27846 else
27847    ac_ext=c
27848 ac_cpp='$CPP $CPPFLAGS'
27849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27852
27853   cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 #include <sys/mman.h>
27860 #include <unistd.h>
27861 #include <fcntl.h>
27862 int
27863 main ()
27864 {
27865 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27866   ;
27867   return 0;
27868 }
27869 _ACEOF
27870 rm -f conftest.$ac_objext
27871 if { (ac_try="$ac_compile"
27872 case "(($ac_try" in
27873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874   *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877   (eval "$ac_compile") 2>conftest.er1
27878   ac_status=$?
27879   grep -v '^ *+' conftest.er1 >conftest.err
27880   rm -f conftest.er1
27881   cat conftest.err >&5
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); } &&
27884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885   { (case "(($ac_try" in
27886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887   *) ac_try_echo=$ac_try;;
27888 esac
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890   (eval "$ac_try") 2>&5
27891   ac_status=$?
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); }; } &&
27894          { ac_try='test -s conftest.$ac_objext'
27895   { (case "(($ac_try" in
27896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897   *) ac_try_echo=$ac_try;;
27898 esac
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900   (eval "$ac_try") 2>&5
27901   ac_status=$?
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); }; }; then
27904   ac_cv_header_mmap_anon=yes
27905 else
27906   echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909         ac_cv_header_mmap_anon=no
27910 fi
27911
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913   ac_ext=c
27914 ac_cpp='$CPP $CPPFLAGS'
27915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27918
27919
27920 fi
27921 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27922 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27923 if test "$ac_cv_header_mmap_anon" = yes; then
27924
27925 cat >>confdefs.h <<\_ACEOF
27926 #define HAVE_MMAP_ANONYMOUS 1
27927 _ACEOF
27928
27929 fi
27930
27931 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27932 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27933 if test "${ac_cv_header_stat_broken+set}" = set; then
27934   echo $ECHO_N "(cached) $ECHO_C" >&6
27935 else
27936   cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h.  */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h.  */
27942 #include <sys/types.h>
27943 #include <sys/stat.h>
27944
27945 #if defined S_ISBLK && defined S_IFDIR
27946 # if S_ISBLK (S_IFDIR)
27947 You lose.
27948 # endif
27949 #endif
27950
27951 #if defined S_ISBLK && defined S_IFCHR
27952 # if S_ISBLK (S_IFCHR)
27953 You lose.
27954 # endif
27955 #endif
27956
27957 #if defined S_ISLNK && defined S_IFREG
27958 # if S_ISLNK (S_IFREG)
27959 You lose.
27960 # endif
27961 #endif
27962
27963 #if defined S_ISSOCK && defined S_IFREG
27964 # if S_ISSOCK (S_IFREG)
27965 You lose.
27966 # endif
27967 #endif
27968
27969 _ACEOF
27970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27971   $EGREP "You lose" >/dev/null 2>&1; then
27972   ac_cv_header_stat_broken=yes
27973 else
27974   ac_cv_header_stat_broken=no
27975 fi
27976 rm -f conftest*
27977
27978 fi
27979 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27980 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27981 if test $ac_cv_header_stat_broken = yes; then
27982
27983 cat >>confdefs.h <<\_ACEOF
27984 #define STAT_MACROS_BROKEN 1
27985 _ACEOF
27986
27987 fi
27988
27989 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27990 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27991 if test "${ac_cv_header_stdc+set}" = set; then
27992   echo $ECHO_N "(cached) $ECHO_C" >&6
27993 else
27994   cat >conftest.$ac_ext <<_ACEOF
27995 /* confdefs.h.  */
27996 _ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h.  */
28000 #include <stdlib.h>
28001 #include <stdarg.h>
28002 #include <string.h>
28003 #include <float.h>
28004
28005 int
28006 main ()
28007 {
28008
28009   ;
28010   return 0;
28011 }
28012 _ACEOF
28013 rm -f conftest.$ac_objext
28014 if { (ac_try="$ac_compile"
28015 case "(($ac_try" in
28016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017   *) ac_try_echo=$ac_try;;
28018 esac
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020   (eval "$ac_compile") 2>conftest.er1
28021   ac_status=$?
28022   grep -v '^ *+' conftest.er1 >conftest.err
28023   rm -f conftest.er1
28024   cat conftest.err >&5
28025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026   (exit $ac_status); } &&
28027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28028   { (case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_try") 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; } &&
28037          { ac_try='test -s conftest.$ac_objext'
28038   { (case "(($ac_try" in
28039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040   *) ac_try_echo=$ac_try;;
28041 esac
28042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043   (eval "$ac_try") 2>&5
28044   ac_status=$?
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); }; }; then
28047   ac_cv_header_stdc=yes
28048 else
28049   echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28051
28052         ac_cv_header_stdc=no
28053 fi
28054
28055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28056
28057 if test $ac_cv_header_stdc = yes; then
28058   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28059   cat >conftest.$ac_ext <<_ACEOF
28060 /* confdefs.h.  */
28061 _ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h.  */
28065 #include <string.h>
28066
28067 _ACEOF
28068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28069   $EGREP "memchr" >/dev/null 2>&1; then
28070   :
28071 else
28072   ac_cv_header_stdc=no
28073 fi
28074 rm -f conftest*
28075
28076 fi
28077
28078 if test $ac_cv_header_stdc = yes; then
28079   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28080   cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086 #include <stdlib.h>
28087
28088 _ACEOF
28089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28090   $EGREP "free" >/dev/null 2>&1; then
28091   :
28092 else
28093   ac_cv_header_stdc=no
28094 fi
28095 rm -f conftest*
28096
28097 fi
28098
28099 if test $ac_cv_header_stdc = yes; then
28100   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28101   if test "$cross_compiling" = yes; then
28102   :
28103 else
28104   cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h.  */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h.  */
28110 #include <ctype.h>
28111 #include <stdlib.h>
28112 #if ((' ' & 0x0FF) == 0x020)
28113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28115 #else
28116 # define ISLOWER(c) \
28117                    (('a' <= (c) && (c) <= 'i') \
28118                      || ('j' <= (c) && (c) <= 'r') \
28119                      || ('s' <= (c) && (c) <= 'z'))
28120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28121 #endif
28122
28123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28124 int
28125 main ()
28126 {
28127   int i;
28128   for (i = 0; i < 256; i++)
28129     if (XOR (islower (i), ISLOWER (i))
28130         || toupper (i) != TOUPPER (i))
28131       return 2;
28132   return 0;
28133 }
28134 _ACEOF
28135 rm -f conftest$ac_exeext
28136 if { (ac_try="$ac_link"
28137 case "(($ac_try" in
28138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139   *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142   (eval "$ac_link") 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28146   { (case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151   (eval "$ac_try") 2>&5
28152   ac_status=$?
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); }; }; then
28155   :
28156 else
28157   echo "$as_me: program exited with status $ac_status" >&5
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161 ( exit $ac_status )
28162 ac_cv_header_stdc=no
28163 fi
28164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28165 fi
28166
28167
28168 fi
28169 fi
28170 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28171 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28172 if test $ac_cv_header_stdc = yes; then
28173
28174 cat >>confdefs.h <<\_ACEOF
28175 #define STDC_HEADERS 1
28176 _ACEOF
28177
28178 fi
28179
28180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28183   echo $ECHO_N "(cached) $ECHO_C" >&6
28184 else
28185   cat >conftest.$ac_ext <<_ACEOF
28186 /* confdefs.h.  */
28187 _ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h.  */
28191 #include <sys/types.h>
28192 #include <sys/wait.h>
28193 #ifndef WEXITSTATUS
28194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28195 #endif
28196 #ifndef WIFEXITED
28197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28198 #endif
28199
28200 int
28201 main ()
28202 {
28203   int s;
28204   wait (&s);
28205   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28206   ;
28207   return 0;
28208 }
28209 _ACEOF
28210 rm -f conftest.$ac_objext
28211 if { (ac_try="$ac_compile"
28212 case "(($ac_try" in
28213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214   *) ac_try_echo=$ac_try;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217   (eval "$ac_compile") 2>conftest.er1
28218   ac_status=$?
28219   grep -v '^ *+' conftest.er1 >conftest.err
28220   rm -f conftest.er1
28221   cat conftest.err >&5
28222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223   (exit $ac_status); } &&
28224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28225   { (case "(($ac_try" in
28226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227   *) ac_try_echo=$ac_try;;
28228 esac
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230   (eval "$ac_try") 2>&5
28231   ac_status=$?
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); }; } &&
28234          { ac_try='test -s conftest.$ac_objext'
28235   { (case "(($ac_try" in
28236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237   *) ac_try_echo=$ac_try;;
28238 esac
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240   (eval "$ac_try") 2>&5
28241   ac_status=$?
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); }; }; then
28244   ac_cv_header_sys_wait_h=yes
28245 else
28246   echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28248
28249         ac_cv_header_sys_wait_h=no
28250 fi
28251
28252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28253 fi
28254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28255 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28256 if test $ac_cv_header_sys_wait_h = yes; then
28257
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_SYS_WAIT_H 1
28260 _ACEOF
28261
28262 fi
28263
28264 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28265 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28266 if test "${ac_cv_header_time+set}" = set; then
28267   echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269   cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275 #include <sys/types.h>
28276 #include <sys/time.h>
28277 #include <time.h>
28278
28279 int
28280 main ()
28281 {
28282 if ((struct tm *) 0)
28283 return 0;
28284   ;
28285   return 0;
28286 }
28287 _ACEOF
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292   *) ac_try_echo=$ac_try;;
28293 esac
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295   (eval "$ac_compile") 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } &&
28302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28303   { (case "(($ac_try" in
28304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305   *) ac_try_echo=$ac_try;;
28306 esac
28307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308   (eval "$ac_try") 2>&5
28309   ac_status=$?
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); }; } &&
28312          { ac_try='test -s conftest.$ac_objext'
28313   { (case "(($ac_try" in
28314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315   *) ac_try_echo=$ac_try;;
28316 esac
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318   (eval "$ac_try") 2>&5
28319   ac_status=$?
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); }; }; then
28322   ac_cv_header_time=yes
28323 else
28324   echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28326
28327         ac_cv_header_time=no
28328 fi
28329
28330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28331 fi
28332 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28333 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28334 if test $ac_cv_header_time = yes; then
28335
28336 cat >>confdefs.h <<\_ACEOF
28337 #define TIME_WITH_SYS_TIME 1
28338 _ACEOF
28339
28340 fi
28341
28342
28343
28344
28345
28346
28347
28348
28349 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28350 do
28351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28353   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28356   echo $ECHO_N "(cached) $ECHO_C" >&6
28357 fi
28358 ac_res=`eval echo '${'$as_ac_Header'}'`
28359                { echo "$as_me:$LINENO: result: $ac_res" >&5
28360 echo "${ECHO_T}$ac_res" >&6; }
28361 else
28362   # Is the header compilable?
28363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371 $ac_includes_default
28372 #include <$ac_header>
28373 _ACEOF
28374 rm -f conftest.$ac_objext
28375 if { (ac_try="$ac_compile"
28376 case "(($ac_try" in
28377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28378   *) ac_try_echo=$ac_try;;
28379 esac
28380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381   (eval "$ac_compile") 2>conftest.er1
28382   ac_status=$?
28383   grep -v '^ *+' conftest.er1 >conftest.err
28384   rm -f conftest.er1
28385   cat conftest.err >&5
28386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); } &&
28388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389   { (case "(($ac_try" in
28390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391   *) ac_try_echo=$ac_try;;
28392 esac
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394   (eval "$ac_try") 2>&5
28395   ac_status=$?
28396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397   (exit $ac_status); }; } &&
28398          { ac_try='test -s conftest.$ac_objext'
28399   { (case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404   (eval "$ac_try") 2>&5
28405   ac_status=$?
28406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407   (exit $ac_status); }; }; then
28408   ac_header_compiler=yes
28409 else
28410   echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28412
28413         ac_header_compiler=no
28414 fi
28415
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28418 echo "${ECHO_T}$ac_header_compiler" >&6; }
28419
28420 # Is the header present?
28421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28423 cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h.  */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h.  */
28429 #include <$ac_header>
28430 _ACEOF
28431 if { (ac_try="$ac_cpp conftest.$ac_ext"
28432 case "(($ac_try" in
28433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434   *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28438   ac_status=$?
28439   grep -v '^ *+' conftest.er1 >conftest.err
28440   rm -f conftest.er1
28441   cat conftest.err >&5
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); } >/dev/null; then
28444   if test -s conftest.err; then
28445     ac_cpp_err=$ac_c_preproc_warn_flag
28446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28447   else
28448     ac_cpp_err=
28449   fi
28450 else
28451   ac_cpp_err=yes
28452 fi
28453 if test -z "$ac_cpp_err"; then
28454   ac_header_preproc=yes
28455 else
28456   echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28458
28459   ac_header_preproc=no
28460 fi
28461
28462 rm -f conftest.err conftest.$ac_ext
28463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28464 echo "${ECHO_T}$ac_header_preproc" >&6; }
28465
28466 # So?  What about this header?
28467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28468   yes:no: )
28469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28473     ac_header_preproc=yes
28474     ;;
28475   no:yes:* )
28476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28488     ( cat <<\_ASBOX
28489 ## ----------------------------------- ##
28490 ## Report this to llvmbugs@cs.uiuc.edu ##
28491 ## ----------------------------------- ##
28492 _ASBOX
28493      ) | sed "s/^/$as_me: WARNING:     /" >&2
28494     ;;
28495 esac
28496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28499   echo $ECHO_N "(cached) $ECHO_C" >&6
28500 else
28501   eval "$as_ac_Header=\$ac_header_preproc"
28502 fi
28503 ac_res=`eval echo '${'$as_ac_Header'}'`
28504                { echo "$as_me:$LINENO: result: $ac_res" >&5
28505 echo "${ECHO_T}$ac_res" >&6; }
28506
28507 fi
28508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28509   cat >>confdefs.h <<_ACEOF
28510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28511 _ACEOF
28512
28513 fi
28514
28515 done
28516
28517
28518
28519
28520
28521
28522
28523 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28524 do
28525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28530   echo $ECHO_N "(cached) $ECHO_C" >&6
28531 fi
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533                { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28535 else
28536   # Is the header compilable?
28537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28539 cat >conftest.$ac_ext <<_ACEOF
28540 /* confdefs.h.  */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h.  */
28545 $ac_includes_default
28546 #include <$ac_header>
28547 _ACEOF
28548 rm -f conftest.$ac_objext
28549 if { (ac_try="$ac_compile"
28550 case "(($ac_try" in
28551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552   *) ac_try_echo=$ac_try;;
28553 esac
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555   (eval "$ac_compile") 2>conftest.er1
28556   ac_status=$?
28557   grep -v '^ *+' conftest.er1 >conftest.err
28558   rm -f conftest.er1
28559   cat conftest.err >&5
28560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561   (exit $ac_status); } &&
28562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28563   { (case "(($ac_try" in
28564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565   *) ac_try_echo=$ac_try;;
28566 esac
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568   (eval "$ac_try") 2>&5
28569   ac_status=$?
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); }; } &&
28572          { ac_try='test -s conftest.$ac_objext'
28573   { (case "(($ac_try" in
28574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575   *) ac_try_echo=$ac_try;;
28576 esac
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578   (eval "$ac_try") 2>&5
28579   ac_status=$?
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); }; }; then
28582   ac_header_compiler=yes
28583 else
28584   echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28586
28587         ac_header_compiler=no
28588 fi
28589
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28592 echo "${ECHO_T}$ac_header_compiler" >&6; }
28593
28594 # Is the header present?
28595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28597 cat >conftest.$ac_ext <<_ACEOF
28598 /* confdefs.h.  */
28599 _ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h.  */
28603 #include <$ac_header>
28604 _ACEOF
28605 if { (ac_try="$ac_cpp conftest.$ac_ext"
28606 case "(($ac_try" in
28607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608   *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28612   ac_status=$?
28613   grep -v '^ *+' conftest.er1 >conftest.err
28614   rm -f conftest.er1
28615   cat conftest.err >&5
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); } >/dev/null; then
28618   if test -s conftest.err; then
28619     ac_cpp_err=$ac_c_preproc_warn_flag
28620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28621   else
28622     ac_cpp_err=
28623   fi
28624 else
28625   ac_cpp_err=yes
28626 fi
28627 if test -z "$ac_cpp_err"; then
28628   ac_header_preproc=yes
28629 else
28630   echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28632
28633   ac_header_preproc=no
28634 fi
28635
28636 rm -f conftest.err conftest.$ac_ext
28637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28638 echo "${ECHO_T}$ac_header_preproc" >&6; }
28639
28640 # So?  What about this header?
28641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28642   yes:no: )
28643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28647     ac_header_preproc=yes
28648     ;;
28649   no:yes:* )
28650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28662     ( cat <<\_ASBOX
28663 ## ----------------------------------- ##
28664 ## Report this to llvmbugs@cs.uiuc.edu ##
28665 ## ----------------------------------- ##
28666 _ASBOX
28667      ) | sed "s/^/$as_me: WARNING:     /" >&2
28668     ;;
28669 esac
28670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28673   echo $ECHO_N "(cached) $ECHO_C" >&6
28674 else
28675   eval "$as_ac_Header=\$ac_header_preproc"
28676 fi
28677 ac_res=`eval echo '${'$as_ac_Header'}'`
28678                { echo "$as_me:$LINENO: result: $ac_res" >&5
28679 echo "${ECHO_T}$ac_res" >&6; }
28680
28681 fi
28682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28683   cat >>confdefs.h <<_ACEOF
28684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28685 _ACEOF
28686
28687 fi
28688
28689 done
28690
28691
28692
28693
28694
28695
28696 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28697 do
28698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28700   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28703   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
28709   # Is the header compilable?
28710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28712 cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h.  */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h.  */
28718 $ac_includes_default
28719 #include <$ac_header>
28720 _ACEOF
28721 rm -f conftest.$ac_objext
28722 if { (ac_try="$ac_compile"
28723 case "(($ac_try" in
28724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725   *) ac_try_echo=$ac_try;;
28726 esac
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728   (eval "$ac_compile") 2>conftest.er1
28729   ac_status=$?
28730   grep -v '^ *+' conftest.er1 >conftest.err
28731   rm -f conftest.er1
28732   cat conftest.err >&5
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); } &&
28735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28736   { (case "(($ac_try" in
28737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738   *) ac_try_echo=$ac_try;;
28739 esac
28740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28741   (eval "$ac_try") 2>&5
28742   ac_status=$?
28743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744   (exit $ac_status); }; } &&
28745          { ac_try='test -s conftest.$ac_objext'
28746   { (case "(($ac_try" in
28747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748   *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751   (eval "$ac_try") 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; }; then
28755   ac_header_compiler=yes
28756 else
28757   echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28759
28760         ac_header_compiler=no
28761 fi
28762
28763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28765 echo "${ECHO_T}$ac_header_compiler" >&6; }
28766
28767 # Is the header present?
28768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28770 cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 #include <$ac_header>
28777 _ACEOF
28778 if { (ac_try="$ac_cpp conftest.$ac_ext"
28779 case "(($ac_try" in
28780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781   *) ac_try_echo=$ac_try;;
28782 esac
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28785   ac_status=$?
28786   grep -v '^ *+' conftest.er1 >conftest.err
28787   rm -f conftest.er1
28788   cat conftest.err >&5
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); } >/dev/null; then
28791   if test -s conftest.err; then
28792     ac_cpp_err=$ac_c_preproc_warn_flag
28793     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28794   else
28795     ac_cpp_err=
28796   fi
28797 else
28798   ac_cpp_err=yes
28799 fi
28800 if test -z "$ac_cpp_err"; then
28801   ac_header_preproc=yes
28802 else
28803   echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28805
28806   ac_header_preproc=no
28807 fi
28808
28809 rm -f conftest.err conftest.$ac_ext
28810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28811 echo "${ECHO_T}$ac_header_preproc" >&6; }
28812
28813 # So?  What about this header?
28814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28815   yes:no: )
28816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28820     ac_header_preproc=yes
28821     ;;
28822   no:yes:* )
28823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28835     ( cat <<\_ASBOX
28836 ## ----------------------------------- ##
28837 ## Report this to llvmbugs@cs.uiuc.edu ##
28838 ## ----------------------------------- ##
28839 _ASBOX
28840      ) | sed "s/^/$as_me: WARNING:     /" >&2
28841     ;;
28842 esac
28843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28846   echo $ECHO_N "(cached) $ECHO_C" >&6
28847 else
28848   eval "$as_ac_Header=\$ac_header_preproc"
28849 fi
28850 ac_res=`eval echo '${'$as_ac_Header'}'`
28851                { echo "$as_me:$LINENO: result: $ac_res" >&5
28852 echo "${ECHO_T}$ac_res" >&6; }
28853
28854 fi
28855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28856   cat >>confdefs.h <<_ACEOF
28857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28858 _ACEOF
28859
28860 fi
28861
28862 done
28863
28864
28865
28866
28867 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28868 do
28869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
28876 ac_res=`eval echo '${'$as_ac_Header'}'`
28877                { echo "$as_me:$LINENO: result: $ac_res" >&5
28878 echo "${ECHO_T}$ac_res" >&6; }
28879 else
28880   # Is the header compilable?
28881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28883 cat >conftest.$ac_ext <<_ACEOF
28884 /* confdefs.h.  */
28885 _ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h.  */
28889 $ac_includes_default
28890 #include <$ac_header>
28891 _ACEOF
28892 rm -f conftest.$ac_objext
28893 if { (ac_try="$ac_compile"
28894 case "(($ac_try" in
28895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896   *) ac_try_echo=$ac_try;;
28897 esac
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899   (eval "$ac_compile") 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } &&
28906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28907   { (case "(($ac_try" in
28908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909   *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912   (eval "$ac_try") 2>&5
28913   ac_status=$?
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); }; } &&
28916          { ac_try='test -s conftest.$ac_objext'
28917   { (case "(($ac_try" in
28918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919   *) ac_try_echo=$ac_try;;
28920 esac
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922   (eval "$ac_try") 2>&5
28923   ac_status=$?
28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925   (exit $ac_status); }; }; then
28926   ac_header_compiler=yes
28927 else
28928   echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28930
28931         ac_header_compiler=no
28932 fi
28933
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28936 echo "${ECHO_T}$ac_header_compiler" >&6; }
28937
28938 # Is the header present?
28939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28947 #include <$ac_header>
28948 _ACEOF
28949 if { (ac_try="$ac_cpp conftest.$ac_ext"
28950 case "(($ac_try" in
28951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952   *) ac_try_echo=$ac_try;;
28953 esac
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28956   ac_status=$?
28957   grep -v '^ *+' conftest.er1 >conftest.err
28958   rm -f conftest.er1
28959   cat conftest.err >&5
28960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961   (exit $ac_status); } >/dev/null; then
28962   if test -s conftest.err; then
28963     ac_cpp_err=$ac_c_preproc_warn_flag
28964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28965   else
28966     ac_cpp_err=
28967   fi
28968 else
28969   ac_cpp_err=yes
28970 fi
28971 if test -z "$ac_cpp_err"; then
28972   ac_header_preproc=yes
28973 else
28974   echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28976
28977   ac_header_preproc=no
28978 fi
28979
28980 rm -f conftest.err conftest.$ac_ext
28981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28982 echo "${ECHO_T}$ac_header_preproc" >&6; }
28983
28984 # So?  What about this header?
28985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28986   yes:no: )
28987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28991     ac_header_preproc=yes
28992     ;;
28993   no:yes:* )
28994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29006     ( cat <<\_ASBOX
29007 ## ----------------------------------- ##
29008 ## Report this to llvmbugs@cs.uiuc.edu ##
29009 ## ----------------------------------- ##
29010 _ASBOX
29011      ) | sed "s/^/$as_me: WARNING:     /" >&2
29012     ;;
29013 esac
29014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29017   echo $ECHO_N "(cached) $ECHO_C" >&6
29018 else
29019   eval "$as_ac_Header=\$ac_header_preproc"
29020 fi
29021 ac_res=`eval echo '${'$as_ac_Header'}'`
29022                { echo "$as_me:$LINENO: result: $ac_res" >&5
29023 echo "${ECHO_T}$ac_res" >&6; }
29024
29025 fi
29026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29027   cat >>confdefs.h <<_ACEOF
29028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29029 _ACEOF
29030
29031 fi
29032
29033 done
29034
29035 if test "$ENABLE_THREADS" -eq 1 ; then
29036
29037 for ac_header in pthread.h
29038 do
29039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29044   echo $ECHO_N "(cached) $ECHO_C" >&6
29045 fi
29046 ac_res=`eval echo '${'$as_ac_Header'}'`
29047                { echo "$as_me:$LINENO: result: $ac_res" >&5
29048 echo "${ECHO_T}$ac_res" >&6; }
29049 else
29050   # Is the header compilable?
29051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29053 cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h.  */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h.  */
29059 $ac_includes_default
29060 #include <$ac_header>
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_compile") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } &&
29076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29077   { (case "(($ac_try" in
29078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079   *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082   (eval "$ac_try") 2>&5
29083   ac_status=$?
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); }; } &&
29086          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); }; }; then
29096   ac_header_compiler=yes
29097 else
29098   echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29100
29101         ac_header_compiler=no
29102 fi
29103
29104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29106 echo "${ECHO_T}$ac_header_compiler" >&6; }
29107
29108 # Is the header present?
29109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29111 cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h.  */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h.  */
29117 #include <$ac_header>
29118 _ACEOF
29119 if { (ac_try="$ac_cpp conftest.$ac_ext"
29120 case "(($ac_try" in
29121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122   *) ac_try_echo=$ac_try;;
29123 esac
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29126   ac_status=$?
29127   grep -v '^ *+' conftest.er1 >conftest.err
29128   rm -f conftest.er1
29129   cat conftest.err >&5
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); } >/dev/null; then
29132   if test -s conftest.err; then
29133     ac_cpp_err=$ac_c_preproc_warn_flag
29134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29135   else
29136     ac_cpp_err=
29137   fi
29138 else
29139   ac_cpp_err=yes
29140 fi
29141 if test -z "$ac_cpp_err"; then
29142   ac_header_preproc=yes
29143 else
29144   echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29146
29147   ac_header_preproc=no
29148 fi
29149
29150 rm -f conftest.err conftest.$ac_ext
29151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29152 echo "${ECHO_T}$ac_header_preproc" >&6; }
29153
29154 # So?  What about this header?
29155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29156   yes:no: )
29157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29161     ac_header_preproc=yes
29162     ;;
29163   no:yes:* )
29164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29176     ( cat <<\_ASBOX
29177 ## ----------------------------------- ##
29178 ## Report this to llvmbugs@cs.uiuc.edu ##
29179 ## ----------------------------------- ##
29180 _ASBOX
29181      ) | sed "s/^/$as_me: WARNING:     /" >&2
29182     ;;
29183 esac
29184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29187   echo $ECHO_N "(cached) $ECHO_C" >&6
29188 else
29189   eval "$as_ac_Header=\$ac_header_preproc"
29190 fi
29191 ac_res=`eval echo '${'$as_ac_Header'}'`
29192                { echo "$as_me:$LINENO: result: $ac_res" >&5
29193 echo "${ECHO_T}$ac_res" >&6; }
29194
29195 fi
29196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29197   cat >>confdefs.h <<_ACEOF
29198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29199 _ACEOF
29200
29201 fi
29202
29203 done
29204
29205 fi
29206
29207
29208
29209   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29210 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29211 if test "${ac_cv_huge_val_sanity+set}" = set; then
29212   echo $ECHO_N "(cached) $ECHO_C" >&6
29213 else
29214
29215     ac_ext=cpp
29216 ac_cpp='$CXXCPP $CPPFLAGS'
29217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29220
29221     CXXFLAGS=-pedantic
29222     if test "$cross_compiling" = yes; then
29223   ac_cv_huge_val_sanity=yes
29224 else
29225   cat >conftest.$ac_ext <<_ACEOF
29226 /* confdefs.h.  */
29227 _ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h.  */
29231 #include <math.h>
29232 int
29233 main ()
29234 {
29235 double x = HUGE_VAL; return x != x;
29236   ;
29237   return 0;
29238 }
29239 _ACEOF
29240 rm -f conftest$ac_exeext
29241 if { (ac_try="$ac_link"
29242 case "(($ac_try" in
29243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244   *) ac_try_echo=$ac_try;;
29245 esac
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247   (eval "$ac_link") 2>&5
29248   ac_status=$?
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29251   { (case "(($ac_try" in
29252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253   *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256   (eval "$ac_try") 2>&5
29257   ac_status=$?
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); }; }; then
29260   ac_cv_huge_val_sanity=yes
29261 else
29262   echo "$as_me: program exited with status $ac_status" >&5
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266 ( exit $ac_status )
29267 ac_cv_huge_val_sanity=no
29268 fi
29269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29270 fi
29271
29272
29273     ac_ext=c
29274 ac_cpp='$CPP $CPPFLAGS'
29275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29278
29279
29280 fi
29281 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29282 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29283   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29284
29285
29286 { echo "$as_me:$LINENO: checking for pid_t" >&5
29287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29288 if test "${ac_cv_type_pid_t+set}" = set; then
29289   echo $ECHO_N "(cached) $ECHO_C" >&6
29290 else
29291   cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297 $ac_includes_default
29298 typedef pid_t ac__type_new_;
29299 int
29300 main ()
29301 {
29302 if ((ac__type_new_ *) 0)
29303   return 0;
29304 if (sizeof (ac__type_new_))
29305   return 0;
29306   ;
29307   return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext
29311 if { (ac_try="$ac_compile"
29312 case "(($ac_try" in
29313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314   *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317   (eval "$ac_compile") 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } &&
29324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29325   { (case "(($ac_try" in
29326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327   *) ac_try_echo=$ac_try;;
29328 esac
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330   (eval "$ac_try") 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; } &&
29334          { ac_try='test -s conftest.$ac_objext'
29335   { (case "(($ac_try" in
29336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337   *) ac_try_echo=$ac_try;;
29338 esac
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340   (eval "$ac_try") 2>&5
29341   ac_status=$?
29342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343   (exit $ac_status); }; }; then
29344   ac_cv_type_pid_t=yes
29345 else
29346   echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.$ac_ext >&5
29348
29349         ac_cv_type_pid_t=no
29350 fi
29351
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353 fi
29354 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29355 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29356 if test $ac_cv_type_pid_t = yes; then
29357   :
29358 else
29359
29360 cat >>confdefs.h <<_ACEOF
29361 #define pid_t int
29362 _ACEOF
29363
29364 fi
29365
29366 { echo "$as_me:$LINENO: checking for size_t" >&5
29367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29368 if test "${ac_cv_type_size_t+set}" = set; then
29369   echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371   cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377 $ac_includes_default
29378 typedef size_t ac__type_new_;
29379 int
29380 main ()
29381 {
29382 if ((ac__type_new_ *) 0)
29383   return 0;
29384 if (sizeof (ac__type_new_))
29385   return 0;
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_compile") 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } &&
29404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29405   { (case "(($ac_try" in
29406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407   *) ac_try_echo=$ac_try;;
29408 esac
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410   (eval "$ac_try") 2>&5
29411   ac_status=$?
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); }; } &&
29414          { ac_try='test -s conftest.$ac_objext'
29415   { (case "(($ac_try" in
29416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417   *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420   (eval "$ac_try") 2>&5
29421   ac_status=$?
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); }; }; then
29424   ac_cv_type_size_t=yes
29425 else
29426   echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29428
29429         ac_cv_type_size_t=no
29430 fi
29431
29432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29433 fi
29434 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29435 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29436 if test $ac_cv_type_size_t = yes; then
29437   :
29438 else
29439
29440 cat >>confdefs.h <<_ACEOF
29441 #define size_t unsigned int
29442 _ACEOF
29443
29444 fi
29445
29446 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29447 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29448 if test "${ac_cv_type_signal+set}" = set; then
29449   echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451   cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457 #include <sys/types.h>
29458 #include <signal.h>
29459
29460 int
29461 main ()
29462 {
29463 return *(signal (0, 0)) (0) == 1;
29464   ;
29465   return 0;
29466 }
29467 _ACEOF
29468 rm -f conftest.$ac_objext
29469 if { (ac_try="$ac_compile"
29470 case "(($ac_try" in
29471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472   *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475   (eval "$ac_compile") 2>conftest.er1
29476   ac_status=$?
29477   grep -v '^ *+' conftest.er1 >conftest.err
29478   rm -f conftest.er1
29479   cat conftest.err >&5
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); } &&
29482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29483   { (case "(($ac_try" in
29484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485   *) ac_try_echo=$ac_try;;
29486 esac
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488   (eval "$ac_try") 2>&5
29489   ac_status=$?
29490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491   (exit $ac_status); }; } &&
29492          { ac_try='test -s conftest.$ac_objext'
29493   { (case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_try") 2>&5
29499   ac_status=$?
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); }; }; then
29502   ac_cv_type_signal=int
29503 else
29504   echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29506
29507         ac_cv_type_signal=void
29508 fi
29509
29510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29511 fi
29512 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29513 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29514
29515 cat >>confdefs.h <<_ACEOF
29516 #define RETSIGTYPE $ac_cv_type_signal
29517 _ACEOF
29518
29519
29520 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29521 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29522 if test "${ac_cv_struct_tm+set}" = set; then
29523   echo $ECHO_N "(cached) $ECHO_C" >&6
29524 else
29525   cat >conftest.$ac_ext <<_ACEOF
29526 /* confdefs.h.  */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h.  */
29531 #include <sys/types.h>
29532 #include <time.h>
29533
29534 int
29535 main ()
29536 {
29537 struct tm *tp; tp->tm_sec;
29538   ;
29539   return 0;
29540 }
29541 _ACEOF
29542 rm -f conftest.$ac_objext
29543 if { (ac_try="$ac_compile"
29544 case "(($ac_try" in
29545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546   *) ac_try_echo=$ac_try;;
29547 esac
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549   (eval "$ac_compile") 2>conftest.er1
29550   ac_status=$?
29551   grep -v '^ *+' conftest.er1 >conftest.err
29552   rm -f conftest.er1
29553   cat conftest.err >&5
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); } &&
29556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557   { (case "(($ac_try" in
29558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559   *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562   (eval "$ac_try") 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; } &&
29566          { ac_try='test -s conftest.$ac_objext'
29567   { (case "(($ac_try" in
29568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569   *) ac_try_echo=$ac_try;;
29570 esac
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572   (eval "$ac_try") 2>&5
29573   ac_status=$?
29574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575   (exit $ac_status); }; }; then
29576   ac_cv_struct_tm=time.h
29577 else
29578   echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29580
29581         ac_cv_struct_tm=sys/time.h
29582 fi
29583
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29585 fi
29586 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29587 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29588 if test $ac_cv_struct_tm = sys/time.h; then
29589
29590 cat >>confdefs.h <<\_ACEOF
29591 #define TM_IN_SYS_TIME 1
29592 _ACEOF
29593
29594 fi
29595
29596 { echo "$as_me:$LINENO: checking for int64_t" >&5
29597 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29598 if test "${ac_cv_type_int64_t+set}" = set; then
29599   echo $ECHO_N "(cached) $ECHO_C" >&6
29600 else
29601   cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607 $ac_includes_default
29608 typedef int64_t ac__type_new_;
29609 int
29610 main ()
29611 {
29612 if ((ac__type_new_ *) 0)
29613   return 0;
29614 if (sizeof (ac__type_new_))
29615   return 0;
29616   ;
29617   return 0;
29618 }
29619 _ACEOF
29620 rm -f conftest.$ac_objext
29621 if { (ac_try="$ac_compile"
29622 case "(($ac_try" in
29623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624   *) ac_try_echo=$ac_try;;
29625 esac
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627   (eval "$ac_compile") 2>conftest.er1
29628   ac_status=$?
29629   grep -v '^ *+' conftest.er1 >conftest.err
29630   rm -f conftest.er1
29631   cat conftest.err >&5
29632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); } &&
29634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635   { (case "(($ac_try" in
29636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637   *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640   (eval "$ac_try") 2>&5
29641   ac_status=$?
29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); }; } &&
29644          { ac_try='test -s conftest.$ac_objext'
29645   { (case "(($ac_try" in
29646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647   *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650   (eval "$ac_try") 2>&5
29651   ac_status=$?
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); }; }; then
29654   ac_cv_type_int64_t=yes
29655 else
29656   echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29658
29659         ac_cv_type_int64_t=no
29660 fi
29661
29662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29663 fi
29664 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29665 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29666 if test $ac_cv_type_int64_t = yes; then
29667
29668 cat >>confdefs.h <<_ACEOF
29669 #define HAVE_INT64_T 1
29670 _ACEOF
29671
29672
29673 else
29674   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29675 echo "$as_me: error: Type int64_t required but not found" >&2;}
29676    { (exit 1); exit 1; }; }
29677 fi
29678
29679 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29680 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29681 if test "${ac_cv_type_uint64_t+set}" = set; then
29682   echo $ECHO_N "(cached) $ECHO_C" >&6
29683 else
29684   cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h.  */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h.  */
29690 $ac_includes_default
29691 typedef uint64_t ac__type_new_;
29692 int
29693 main ()
29694 {
29695 if ((ac__type_new_ *) 0)
29696   return 0;
29697 if (sizeof (ac__type_new_))
29698   return 0;
29699   ;
29700   return 0;
29701 }
29702 _ACEOF
29703 rm -f conftest.$ac_objext
29704 if { (ac_try="$ac_compile"
29705 case "(($ac_try" in
29706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707   *) ac_try_echo=$ac_try;;
29708 esac
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710   (eval "$ac_compile") 2>conftest.er1
29711   ac_status=$?
29712   grep -v '^ *+' conftest.er1 >conftest.err
29713   rm -f conftest.er1
29714   cat conftest.err >&5
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); } &&
29717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29718   { (case "(($ac_try" in
29719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720   *) ac_try_echo=$ac_try;;
29721 esac
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723   (eval "$ac_try") 2>&5
29724   ac_status=$?
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); }; } &&
29727          { ac_try='test -s conftest.$ac_objext'
29728   { (case "(($ac_try" in
29729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730   *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733   (eval "$ac_try") 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; }; then
29737   ac_cv_type_uint64_t=yes
29738 else
29739   echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29741
29742         ac_cv_type_uint64_t=no
29743 fi
29744
29745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29746 fi
29747 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29748 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29749 if test $ac_cv_type_uint64_t = yes; then
29750
29751 cat >>confdefs.h <<_ACEOF
29752 #define HAVE_UINT64_T 1
29753 _ACEOF
29754
29755
29756 else
29757   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29758 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29759 if test "${ac_cv_type_u_int64_t+set}" = set; then
29760   echo $ECHO_N "(cached) $ECHO_C" >&6
29761 else
29762   cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h.  */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h.  */
29768 $ac_includes_default
29769 typedef u_int64_t ac__type_new_;
29770 int
29771 main ()
29772 {
29773 if ((ac__type_new_ *) 0)
29774   return 0;
29775 if (sizeof (ac__type_new_))
29776   return 0;
29777   ;
29778   return 0;
29779 }
29780 _ACEOF
29781 rm -f conftest.$ac_objext
29782 if { (ac_try="$ac_compile"
29783 case "(($ac_try" in
29784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29785   *) ac_try_echo=$ac_try;;
29786 esac
29787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29788   (eval "$ac_compile") 2>conftest.er1
29789   ac_status=$?
29790   grep -v '^ *+' conftest.er1 >conftest.err
29791   rm -f conftest.er1
29792   cat conftest.err >&5
29793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794   (exit $ac_status); } &&
29795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29796   { (case "(($ac_try" in
29797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798   *) ac_try_echo=$ac_try;;
29799 esac
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801   (eval "$ac_try") 2>&5
29802   ac_status=$?
29803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804   (exit $ac_status); }; } &&
29805          { ac_try='test -s conftest.$ac_objext'
29806   { (case "(($ac_try" in
29807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808   *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811   (eval "$ac_try") 2>&5
29812   ac_status=$?
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); }; }; then
29815   ac_cv_type_u_int64_t=yes
29816 else
29817   echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29819
29820         ac_cv_type_u_int64_t=no
29821 fi
29822
29823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29824 fi
29825 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29827 if test $ac_cv_type_u_int64_t = yes; then
29828
29829 cat >>confdefs.h <<_ACEOF
29830 #define HAVE_U_INT64_T 1
29831 _ACEOF
29832
29833
29834 else
29835   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29836 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29837    { (exit 1); exit 1; }; }
29838 fi
29839
29840 fi
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29852 do
29853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29857   echo $ECHO_N "(cached) $ECHO_C" >&6
29858 else
29859   cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h.  */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h.  */
29865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29867 #define $ac_func innocuous_$ac_func
29868
29869 /* System header to define __stub macros and hopefully few prototypes,
29870     which can conflict with char $ac_func (); below.
29871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29872     <limits.h> exists even on freestanding compilers.  */
29873
29874 #ifdef __STDC__
29875 # include <limits.h>
29876 #else
29877 # include <assert.h>
29878 #endif
29879
29880 #undef $ac_func
29881
29882 /* Override any GCC internal prototype to avoid an error.
29883    Use char because int might match the return type of a GCC
29884    builtin and then its argument prototype would still apply.  */
29885 #ifdef __cplusplus
29886 extern "C"
29887 #endif
29888 char $ac_func ();
29889 /* The GNU C library defines this for functions which it implements
29890     to always fail with ENOSYS.  Some functions are actually named
29891     something starting with __ and the normal name is an alias.  */
29892 #if defined __stub_$ac_func || defined __stub___$ac_func
29893 choke me
29894 #endif
29895
29896 int
29897 main ()
29898 {
29899 return $ac_func ();
29900   ;
29901   return 0;
29902 }
29903 _ACEOF
29904 rm -f conftest.$ac_objext conftest$ac_exeext
29905 if { (ac_try="$ac_link"
29906 case "(($ac_try" in
29907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908   *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911   (eval "$ac_link") 2>conftest.er1
29912   ac_status=$?
29913   grep -v '^ *+' conftest.er1 >conftest.err
29914   rm -f conftest.er1
29915   cat conftest.err >&5
29916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917   (exit $ac_status); } &&
29918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29919   { (case "(($ac_try" in
29920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921   *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924   (eval "$ac_try") 2>&5
29925   ac_status=$?
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); }; } &&
29928          { ac_try='test -s conftest$ac_exeext'
29929   { (case "(($ac_try" in
29930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931   *) ac_try_echo=$ac_try;;
29932 esac
29933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934   (eval "$ac_try") 2>&5
29935   ac_status=$?
29936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937   (exit $ac_status); }; }; then
29938   eval "$as_ac_var=yes"
29939 else
29940   echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29942
29943         eval "$as_ac_var=no"
29944 fi
29945
29946 rm -f core conftest.err conftest.$ac_objext \
29947       conftest$ac_exeext conftest.$ac_ext
29948 fi
29949 ac_res=`eval echo '${'$as_ac_var'}'`
29950                { echo "$as_me:$LINENO: result: $ac_res" >&5
29951 echo "${ECHO_T}$ac_res" >&6; }
29952 if test `eval echo '${'$as_ac_var'}'` = yes; then
29953   cat >>confdefs.h <<_ACEOF
29954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29955 _ACEOF
29956
29957 fi
29958 done
29959
29960
29961
29962
29963
29964
29965
29966 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29967 do
29968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29972   echo $ECHO_N "(cached) $ECHO_C" >&6
29973 else
29974   cat >conftest.$ac_ext <<_ACEOF
29975 /* confdefs.h.  */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h.  */
29980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29982 #define $ac_func innocuous_$ac_func
29983
29984 /* System header to define __stub macros and hopefully few prototypes,
29985     which can conflict with char $ac_func (); below.
29986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29987     <limits.h> exists even on freestanding compilers.  */
29988
29989 #ifdef __STDC__
29990 # include <limits.h>
29991 #else
29992 # include <assert.h>
29993 #endif
29994
29995 #undef $ac_func
29996
29997 /* Override any GCC internal prototype to avoid an error.
29998    Use char because int might match the return type of a GCC
29999    builtin and then its argument prototype would still apply.  */
30000 #ifdef __cplusplus
30001 extern "C"
30002 #endif
30003 char $ac_func ();
30004 /* The GNU C library defines this for functions which it implements
30005     to always fail with ENOSYS.  Some functions are actually named
30006     something starting with __ and the normal name is an alias.  */
30007 #if defined __stub_$ac_func || defined __stub___$ac_func
30008 choke me
30009 #endif
30010
30011 int
30012 main ()
30013 {
30014 return $ac_func ();
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_link") 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } &&
30033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034   { (case "(($ac_try" in
30035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036   *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039   (eval "$ac_try") 2>&5
30040   ac_status=$?
30041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); }; } &&
30043          { ac_try='test -s conftest$ac_exeext'
30044   { (case "(($ac_try" in
30045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046   *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049   (eval "$ac_try") 2>&5
30050   ac_status=$?
30051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052   (exit $ac_status); }; }; then
30053   eval "$as_ac_var=yes"
30054 else
30055   echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30057
30058         eval "$as_ac_var=no"
30059 fi
30060
30061 rm -f core conftest.err conftest.$ac_objext \
30062       conftest$ac_exeext conftest.$ac_ext
30063 fi
30064 ac_res=`eval echo '${'$as_ac_var'}'`
30065                { echo "$as_me:$LINENO: result: $ac_res" >&5
30066 echo "${ECHO_T}$ac_res" >&6; }
30067 if test `eval echo '${'$as_ac_var'}'` = yes; then
30068   cat >>confdefs.h <<_ACEOF
30069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30070 _ACEOF
30071
30072 fi
30073 done
30074
30075
30076
30077
30078
30079
30080
30081
30082 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30083 do
30084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30088   echo $ECHO_N "(cached) $ECHO_C" >&6
30089 else
30090   cat >conftest.$ac_ext <<_ACEOF
30091 /* confdefs.h.  */
30092 _ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h.  */
30096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30098 #define $ac_func innocuous_$ac_func
30099
30100 /* System header to define __stub macros and hopefully few prototypes,
30101     which can conflict with char $ac_func (); below.
30102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30103     <limits.h> exists even on freestanding compilers.  */
30104
30105 #ifdef __STDC__
30106 # include <limits.h>
30107 #else
30108 # include <assert.h>
30109 #endif
30110
30111 #undef $ac_func
30112
30113 /* Override any GCC internal prototype to avoid an error.
30114    Use char because int might match the return type of a GCC
30115    builtin and then its argument prototype would still apply.  */
30116 #ifdef __cplusplus
30117 extern "C"
30118 #endif
30119 char $ac_func ();
30120 /* The GNU C library defines this for functions which it implements
30121     to always fail with ENOSYS.  Some functions are actually named
30122     something starting with __ and the normal name is an alias.  */
30123 #if defined __stub_$ac_func || defined __stub___$ac_func
30124 choke me
30125 #endif
30126
30127 int
30128 main ()
30129 {
30130 return $ac_func ();
30131   ;
30132   return 0;
30133 }
30134 _ACEOF
30135 rm -f conftest.$ac_objext conftest$ac_exeext
30136 if { (ac_try="$ac_link"
30137 case "(($ac_try" in
30138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139   *) ac_try_echo=$ac_try;;
30140 esac
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142   (eval "$ac_link") 2>conftest.er1
30143   ac_status=$?
30144   grep -v '^ *+' conftest.er1 >conftest.err
30145   rm -f conftest.er1
30146   cat conftest.err >&5
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); } &&
30149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30150   { (case "(($ac_try" in
30151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152   *) ac_try_echo=$ac_try;;
30153 esac
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155   (eval "$ac_try") 2>&5
30156   ac_status=$?
30157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158   (exit $ac_status); }; } &&
30159          { ac_try='test -s conftest$ac_exeext'
30160   { (case "(($ac_try" in
30161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162   *) ac_try_echo=$ac_try;;
30163 esac
30164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165   (eval "$ac_try") 2>&5
30166   ac_status=$?
30167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168   (exit $ac_status); }; }; then
30169   eval "$as_ac_var=yes"
30170 else
30171   echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30173
30174         eval "$as_ac_var=no"
30175 fi
30176
30177 rm -f core conftest.err conftest.$ac_objext \
30178       conftest$ac_exeext conftest.$ac_ext
30179 fi
30180 ac_res=`eval echo '${'$as_ac_var'}'`
30181                { echo "$as_me:$LINENO: result: $ac_res" >&5
30182 echo "${ECHO_T}$ac_res" >&6; }
30183 if test `eval echo '${'$as_ac_var'}'` = yes; then
30184   cat >>confdefs.h <<_ACEOF
30185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30186 _ACEOF
30187
30188 fi
30189 done
30190
30191
30192
30193
30194
30195 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30196 do
30197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201   echo $ECHO_N "(cached) $ECHO_C" >&6
30202 else
30203   cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h.  */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h.  */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30211 #define $ac_func innocuous_$ac_func
30212
30213 /* System header to define __stub macros and hopefully few prototypes,
30214     which can conflict with char $ac_func (); below.
30215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216     <limits.h> exists even on freestanding compilers.  */
30217
30218 #ifdef __STDC__
30219 # include <limits.h>
30220 #else
30221 # include <assert.h>
30222 #endif
30223
30224 #undef $ac_func
30225
30226 /* Override any GCC internal prototype to avoid an error.
30227    Use char because int might match the return type of a GCC
30228    builtin and then its argument prototype would still apply.  */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 char $ac_func ();
30233 /* The GNU C library defines this for functions which it implements
30234     to always fail with ENOSYS.  Some functions are actually named
30235     something starting with __ and the normal name is an alias.  */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30237 choke me
30238 #endif
30239
30240 int
30241 main ()
30242 {
30243 return $ac_func ();
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252   *) ac_try_echo=$ac_try;;
30253 esac
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255   (eval "$ac_link") 2>conftest.er1
30256   ac_status=$?
30257   grep -v '^ *+' conftest.er1 >conftest.err
30258   rm -f conftest.er1
30259   cat conftest.err >&5
30260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261   (exit $ac_status); } &&
30262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30263   { (case "(($ac_try" in
30264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265   *) ac_try_echo=$ac_try;;
30266 esac
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268   (eval "$ac_try") 2>&5
30269   ac_status=$?
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); }; } &&
30272          { ac_try='test -s conftest$ac_exeext'
30273   { (case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278   (eval "$ac_try") 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; }; then
30282   eval "$as_ac_var=yes"
30283 else
30284   echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30286
30287         eval "$as_ac_var=no"
30288 fi
30289
30290 rm -f core conftest.err conftest.$ac_objext \
30291       conftest$ac_exeext conftest.$ac_ext
30292 fi
30293 ac_res=`eval echo '${'$as_ac_var'}'`
30294                { echo "$as_me:$LINENO: result: $ac_res" >&5
30295 echo "${ECHO_T}$ac_res" >&6; }
30296 if test `eval echo '${'$as_ac_var'}'` = yes; then
30297   cat >>confdefs.h <<_ACEOF
30298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30299 _ACEOF
30300
30301 fi
30302 done
30303
30304
30305
30306
30307
30308
30309
30310 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30311 do
30312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30316   echo $ECHO_N "(cached) $ECHO_C" >&6
30317 else
30318   cat >conftest.$ac_ext <<_ACEOF
30319 /* confdefs.h.  */
30320 _ACEOF
30321 cat confdefs.h >>conftest.$ac_ext
30322 cat >>conftest.$ac_ext <<_ACEOF
30323 /* end confdefs.h.  */
30324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30326 #define $ac_func innocuous_$ac_func
30327
30328 /* System header to define __stub macros and hopefully few prototypes,
30329     which can conflict with char $ac_func (); below.
30330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30331     <limits.h> exists even on freestanding compilers.  */
30332
30333 #ifdef __STDC__
30334 # include <limits.h>
30335 #else
30336 # include <assert.h>
30337 #endif
30338
30339 #undef $ac_func
30340
30341 /* Override any GCC internal prototype to avoid an error.
30342    Use char because int might match the return type of a GCC
30343    builtin and then its argument prototype would still apply.  */
30344 #ifdef __cplusplus
30345 extern "C"
30346 #endif
30347 char $ac_func ();
30348 /* The GNU C library defines this for functions which it implements
30349     to always fail with ENOSYS.  Some functions are actually named
30350     something starting with __ and the normal name is an alias.  */
30351 #if defined __stub_$ac_func || defined __stub___$ac_func
30352 choke me
30353 #endif
30354
30355 int
30356 main ()
30357 {
30358 return $ac_func ();
30359   ;
30360   return 0;
30361 }
30362 _ACEOF
30363 rm -f conftest.$ac_objext conftest$ac_exeext
30364 if { (ac_try="$ac_link"
30365 case "(($ac_try" in
30366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367   *) ac_try_echo=$ac_try;;
30368 esac
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370   (eval "$ac_link") 2>conftest.er1
30371   ac_status=$?
30372   grep -v '^ *+' conftest.er1 >conftest.err
30373   rm -f conftest.er1
30374   cat conftest.err >&5
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); } &&
30377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30378   { (case "(($ac_try" in
30379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380   *) ac_try_echo=$ac_try;;
30381 esac
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383   (eval "$ac_try") 2>&5
30384   ac_status=$?
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); }; } &&
30387          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30394   ac_status=$?
30395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); }; }; then
30397   eval "$as_ac_var=yes"
30398 else
30399   echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30401
30402         eval "$as_ac_var=no"
30403 fi
30404
30405 rm -f core conftest.err conftest.$ac_objext \
30406       conftest$ac_exeext conftest.$ac_ext
30407 fi
30408 ac_res=`eval echo '${'$as_ac_var'}'`
30409                { echo "$as_me:$LINENO: result: $ac_res" >&5
30410 echo "${ECHO_T}$ac_res" >&6; }
30411 if test `eval echo '${'$as_ac_var'}'` = yes; then
30412   cat >>confdefs.h <<_ACEOF
30413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30414 _ACEOF
30415
30416 fi
30417 done
30418
30419 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30420 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30421 if test "${llvm_cv_c_printf_a+set}" = set; then
30422   echo $ECHO_N "(cached) $ECHO_C" >&6
30423 else
30424   ac_ext=c
30425 ac_cpp='$CPP $CPPFLAGS'
30426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30429
30430  if test "$cross_compiling" = yes; then
30431   llvmac_cv_c_printf_a=no
30432 else
30433   cat >conftest.$ac_ext <<_ACEOF
30434
30435   /* confdefs.h.  */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h.  */
30440
30441 #include <stdio.h>
30442 #include <stdlib.h>
30443
30444 int
30445 main ()
30446 {
30447
30448 volatile double A, B;
30449 char Buffer[100];
30450 A = 1;
30451 A /= 10.0;
30452 sprintf(Buffer, "%a", A);
30453 B = atof(Buffer);
30454 if (A != B)
30455   return (1);
30456 if (A != 0x1.999999999999ap-4)
30457   return (1);
30458 return (0);
30459   ;
30460   return 0;
30461 }
30462 _ACEOF
30463 rm -f conftest$ac_exeext
30464 if { (ac_try="$ac_link"
30465 case "(($ac_try" in
30466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467   *) ac_try_echo=$ac_try;;
30468 esac
30469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470   (eval "$ac_link") 2>&5
30471   ac_status=$?
30472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30474   { (case "(($ac_try" in
30475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476   *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479   (eval "$ac_try") 2>&5
30480   ac_status=$?
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); }; }; then
30483   llvm_cv_c_printf_a=yes
30484 else
30485   echo "$as_me: program exited with status $ac_status" >&5
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30488
30489 ( exit $ac_status )
30490 llvmac_cv_c_printf_a=no
30491 fi
30492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30493 fi
30494
30495
30496  ac_ext=c
30497 ac_cpp='$CPP $CPPFLAGS'
30498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30501
30502 fi
30503 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30504 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30505  if test "$llvm_cv_c_printf_a" = "yes"; then
30506
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_PRINTF_A 1
30509 _ACEOF
30510
30511  fi
30512
30513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30514 # for constant arguments.  Useless!
30515 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30516 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30517 if test "${ac_cv_working_alloca_h+set}" = set; then
30518   echo $ECHO_N "(cached) $ECHO_C" >&6
30519 else
30520   cat >conftest.$ac_ext <<_ACEOF
30521 /* confdefs.h.  */
30522 _ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h.  */
30526 #include <alloca.h>
30527 int
30528 main ()
30529 {
30530 char *p = (char *) alloca (2 * sizeof (int));
30531                           if (p) return 0;
30532   ;
30533   return 0;
30534 }
30535 _ACEOF
30536 rm -f conftest.$ac_objext conftest$ac_exeext
30537 if { (ac_try="$ac_link"
30538 case "(($ac_try" in
30539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540   *) ac_try_echo=$ac_try;;
30541 esac
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543   (eval "$ac_link") 2>conftest.er1
30544   ac_status=$?
30545   grep -v '^ *+' conftest.er1 >conftest.err
30546   rm -f conftest.er1
30547   cat conftest.err >&5
30548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549   (exit $ac_status); } &&
30550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30551   { (case "(($ac_try" in
30552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553   *) ac_try_echo=$ac_try;;
30554 esac
30555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556   (eval "$ac_try") 2>&5
30557   ac_status=$?
30558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559   (exit $ac_status); }; } &&
30560          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30567   ac_status=$?
30568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569   (exit $ac_status); }; }; then
30570   ac_cv_working_alloca_h=yes
30571 else
30572   echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30574
30575         ac_cv_working_alloca_h=no
30576 fi
30577
30578 rm -f core conftest.err conftest.$ac_objext \
30579       conftest$ac_exeext conftest.$ac_ext
30580 fi
30581 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30582 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30583 if test $ac_cv_working_alloca_h = yes; then
30584
30585 cat >>confdefs.h <<\_ACEOF
30586 #define HAVE_ALLOCA_H 1
30587 _ACEOF
30588
30589 fi
30590
30591 { echo "$as_me:$LINENO: checking for alloca" >&5
30592 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30593 if test "${ac_cv_func_alloca_works+set}" = set; then
30594   echo $ECHO_N "(cached) $ECHO_C" >&6
30595 else
30596   cat >conftest.$ac_ext <<_ACEOF
30597 /* confdefs.h.  */
30598 _ACEOF
30599 cat confdefs.h >>conftest.$ac_ext
30600 cat >>conftest.$ac_ext <<_ACEOF
30601 /* end confdefs.h.  */
30602 #ifdef __GNUC__
30603 # define alloca __builtin_alloca
30604 #else
30605 # ifdef _MSC_VER
30606 #  include <malloc.h>
30607 #  define alloca _alloca
30608 # else
30609 #  if HAVE_ALLOCA_H
30610 #   include <alloca.h>
30611 #  else
30612 #   ifdef _AIX
30613  #pragma alloca
30614 #   else
30615 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30616 char *alloca ();
30617 #    endif
30618 #   endif
30619 #  endif
30620 # endif
30621 #endif
30622
30623 int
30624 main ()
30625 {
30626 char *p = (char *) alloca (1);
30627                                     if (p) return 0;
30628   ;
30629   return 0;
30630 }
30631 _ACEOF
30632 rm -f conftest.$ac_objext conftest$ac_exeext
30633 if { (ac_try="$ac_link"
30634 case "(($ac_try" in
30635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636   *) ac_try_echo=$ac_try;;
30637 esac
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639   (eval "$ac_link") 2>conftest.er1
30640   ac_status=$?
30641   grep -v '^ *+' conftest.er1 >conftest.err
30642   rm -f conftest.er1
30643   cat conftest.err >&5
30644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645   (exit $ac_status); } &&
30646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30647   { (case "(($ac_try" in
30648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649   *) ac_try_echo=$ac_try;;
30650 esac
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652   (eval "$ac_try") 2>&5
30653   ac_status=$?
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); }; } &&
30656          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30663   ac_status=$?
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); }; }; then
30666   ac_cv_func_alloca_works=yes
30667 else
30668   echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30670
30671         ac_cv_func_alloca_works=no
30672 fi
30673
30674 rm -f core conftest.err conftest.$ac_objext \
30675       conftest$ac_exeext conftest.$ac_ext
30676 fi
30677 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30678 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30679
30680 if test $ac_cv_func_alloca_works = yes; then
30681
30682 cat >>confdefs.h <<\_ACEOF
30683 #define HAVE_ALLOCA 1
30684 _ACEOF
30685
30686 else
30687   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30688 # that cause trouble.  Some versions do not even contain alloca or
30689 # contain a buggy version.  If you still want to use their alloca,
30690 # use ar to extract alloca.o from them instead of compiling alloca.c.
30691
30692 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30693
30694 cat >>confdefs.h <<\_ACEOF
30695 #define C_ALLOCA 1
30696 _ACEOF
30697
30698
30699 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30700 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30701 if test "${ac_cv_os_cray+set}" = set; then
30702   echo $ECHO_N "(cached) $ECHO_C" >&6
30703 else
30704   cat >conftest.$ac_ext <<_ACEOF
30705 /* confdefs.h.  */
30706 _ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h.  */
30710 #if defined CRAY && ! defined CRAY2
30711 webecray
30712 #else
30713 wenotbecray
30714 #endif
30715
30716 _ACEOF
30717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30718   $EGREP "webecray" >/dev/null 2>&1; then
30719   ac_cv_os_cray=yes
30720 else
30721   ac_cv_os_cray=no
30722 fi
30723 rm -f conftest*
30724
30725 fi
30726 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30727 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30728 if test $ac_cv_os_cray = yes; then
30729   for ac_func in _getb67 GETB67 getb67; do
30730     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30734   echo $ECHO_N "(cached) $ECHO_C" >&6
30735 else
30736   cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h.  */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h.  */
30742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30744 #define $ac_func innocuous_$ac_func
30745
30746 /* System header to define __stub macros and hopefully few prototypes,
30747     which can conflict with char $ac_func (); below.
30748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30749     <limits.h> exists even on freestanding compilers.  */
30750
30751 #ifdef __STDC__
30752 # include <limits.h>
30753 #else
30754 # include <assert.h>
30755 #endif
30756
30757 #undef $ac_func
30758
30759 /* Override any GCC internal prototype to avoid an error.
30760    Use char because int might match the return type of a GCC
30761    builtin and then its argument prototype would still apply.  */
30762 #ifdef __cplusplus
30763 extern "C"
30764 #endif
30765 char $ac_func ();
30766 /* The GNU C library defines this for functions which it implements
30767     to always fail with ENOSYS.  Some functions are actually named
30768     something starting with __ and the normal name is an alias.  */
30769 #if defined __stub_$ac_func || defined __stub___$ac_func
30770 choke me
30771 #endif
30772
30773 int
30774 main ()
30775 {
30776 return $ac_func ();
30777   ;
30778   return 0;
30779 }
30780 _ACEOF
30781 rm -f conftest.$ac_objext conftest$ac_exeext
30782 if { (ac_try="$ac_link"
30783 case "(($ac_try" in
30784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785   *) ac_try_echo=$ac_try;;
30786 esac
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788   (eval "$ac_link") 2>conftest.er1
30789   ac_status=$?
30790   grep -v '^ *+' conftest.er1 >conftest.err
30791   rm -f conftest.er1
30792   cat conftest.err >&5
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); } &&
30795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30796   { (case "(($ac_try" in
30797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798   *) ac_try_echo=$ac_try;;
30799 esac
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801   (eval "$ac_try") 2>&5
30802   ac_status=$?
30803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804   (exit $ac_status); }; } &&
30805          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30812   ac_status=$?
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); }; }; then
30815   eval "$as_ac_var=yes"
30816 else
30817   echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30819
30820         eval "$as_ac_var=no"
30821 fi
30822
30823 rm -f core conftest.err conftest.$ac_objext \
30824       conftest$ac_exeext conftest.$ac_ext
30825 fi
30826 ac_res=`eval echo '${'$as_ac_var'}'`
30827                { echo "$as_me:$LINENO: result: $ac_res" >&5
30828 echo "${ECHO_T}$ac_res" >&6; }
30829 if test `eval echo '${'$as_ac_var'}'` = yes; then
30830
30831 cat >>confdefs.h <<_ACEOF
30832 #define CRAY_STACKSEG_END $ac_func
30833 _ACEOF
30834
30835     break
30836 fi
30837
30838   done
30839 fi
30840
30841 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30842 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30843 if test "${ac_cv_c_stack_direction+set}" = set; then
30844   echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846   if test "$cross_compiling" = yes; then
30847   ac_cv_c_stack_direction=0
30848 else
30849   cat >conftest.$ac_ext <<_ACEOF
30850 /* confdefs.h.  */
30851 _ACEOF
30852 cat confdefs.h >>conftest.$ac_ext
30853 cat >>conftest.$ac_ext <<_ACEOF
30854 /* end confdefs.h.  */
30855 $ac_includes_default
30856 int
30857 find_stack_direction ()
30858 {
30859   static char *addr = 0;
30860   auto char dummy;
30861   if (addr == 0)
30862     {
30863       addr = &dummy;
30864       return find_stack_direction ();
30865     }
30866   else
30867     return (&dummy > addr) ? 1 : -1;
30868 }
30869
30870 int
30871 main ()
30872 {
30873   return find_stack_direction () < 0;
30874 }
30875 _ACEOF
30876 rm -f conftest$ac_exeext
30877 if { (ac_try="$ac_link"
30878 case "(($ac_try" in
30879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880   *) ac_try_echo=$ac_try;;
30881 esac
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883   (eval "$ac_link") 2>&5
30884   ac_status=$?
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30887   { (case "(($ac_try" in
30888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889   *) ac_try_echo=$ac_try;;
30890 esac
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892   (eval "$ac_try") 2>&5
30893   ac_status=$?
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); }; }; then
30896   ac_cv_c_stack_direction=1
30897 else
30898   echo "$as_me: program exited with status $ac_status" >&5
30899 echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.$ac_ext >&5
30901
30902 ( exit $ac_status )
30903 ac_cv_c_stack_direction=-1
30904 fi
30905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30906 fi
30907
30908
30909 fi
30910 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30911 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30912
30913 cat >>confdefs.h <<_ACEOF
30914 #define STACK_DIRECTION $ac_cv_c_stack_direction
30915 _ACEOF
30916
30917
30918 fi
30919
30920
30921 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30922 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30923 if test "${ac_cv_func_rand48+set}" = set; then
30924   echo $ECHO_N "(cached) $ECHO_C" >&6
30925 else
30926   ac_ext=cpp
30927 ac_cpp='$CXXCPP $CPPFLAGS'
30928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30931
30932    cat >conftest.$ac_ext <<_ACEOF
30933 /* confdefs.h.  */
30934 _ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h.  */
30938 #include <stdlib.h>
30939 int
30940 main ()
30941 {
30942 srand48(0);lrand48();drand48();
30943   ;
30944   return 0;
30945 }
30946 _ACEOF
30947 rm -f conftest.$ac_objext
30948 if { (ac_try="$ac_compile"
30949 case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_compile") 2>conftest.er1
30955   ac_status=$?
30956   grep -v '^ *+' conftest.er1 >conftest.err
30957   rm -f conftest.er1
30958   cat conftest.err >&5
30959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960   (exit $ac_status); } &&
30961          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30962   { (case "(($ac_try" in
30963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964   *) ac_try_echo=$ac_try;;
30965 esac
30966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967   (eval "$ac_try") 2>&5
30968   ac_status=$?
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); }; } &&
30971          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30978   ac_status=$?
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); }; }; then
30981   ac_cv_func_rand48=yes
30982 else
30983   echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986         ac_cv_func_rand48=no
30987 fi
30988
30989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30990   ac_ext=c
30991 ac_cpp='$CPP $CPPFLAGS'
30992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30995
30996 fi
30997 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30998 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30999
31000 if test "$ac_cv_func_rand48" = "yes" ; then
31001
31002 cat >>confdefs.h <<\_ACEOF
31003 #define HAVE_RAND48 1
31004 _ACEOF
31005
31006 fi
31007
31008
31009 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31010 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31011 if test "${ac_cv_cxx_namespaces+set}" = set; then
31012   echo $ECHO_N "(cached) $ECHO_C" >&6
31013 else
31014   ac_ext=cpp
31015 ac_cpp='$CXXCPP $CPPFLAGS'
31016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31019
31020  cat >conftest.$ac_ext <<_ACEOF
31021 /* confdefs.h.  */
31022 _ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h.  */
31026 namespace Outer { namespace Inner { int i = 0; }}
31027 int
31028 main ()
31029 {
31030 using namespace Outer::Inner; return i;
31031   ;
31032   return 0;
31033 }
31034 _ACEOF
31035 rm -f conftest.$ac_objext
31036 if { (ac_try="$ac_compile"
31037 case "(($ac_try" in
31038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039   *) ac_try_echo=$ac_try;;
31040 esac
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042   (eval "$ac_compile") 2>conftest.er1
31043   ac_status=$?
31044   grep -v '^ *+' conftest.er1 >conftest.err
31045   rm -f conftest.er1
31046   cat conftest.err >&5
31047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048   (exit $ac_status); } &&
31049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31050   { (case "(($ac_try" in
31051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052   *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055   (eval "$ac_try") 2>&5
31056   ac_status=$?
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); }; } &&
31059          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31066   ac_status=$?
31067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068   (exit $ac_status); }; }; then
31069   ac_cv_cxx_namespaces=yes
31070 else
31071   echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31073
31074         ac_cv_cxx_namespaces=no
31075 fi
31076
31077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31078  ac_ext=c
31079 ac_cpp='$CPP $CPPFLAGS'
31080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31083
31084
31085 fi
31086 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31087 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31088 if test "$ac_cv_cxx_namespaces" = yes; then
31089
31090 cat >>confdefs.h <<\_ACEOF
31091 #define HAVE_NAMESPACES
31092 _ACEOF
31093
31094 fi
31095
31096 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31097 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31098 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31099   echo $ECHO_N "(cached) $ECHO_C" >&6
31100 else
31101
31102   ac_ext=cpp
31103 ac_cpp='$CXXCPP $CPPFLAGS'
31104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31107
31108   cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114 #include <ext/hash_map>
31115 #ifdef HAVE_NAMESPACES
31116 using namespace std;
31117 #endif
31118 int
31119 main ()
31120 {
31121 hash_map<int, int> t;
31122   ;
31123   return 0;
31124 }
31125 _ACEOF
31126 rm -f conftest.$ac_objext
31127 if { (ac_try="$ac_compile"
31128 case "(($ac_try" in
31129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130   *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133   (eval "$ac_compile") 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } &&
31140          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31141   { (case "(($ac_try" in
31142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143   *) ac_try_echo=$ac_try;;
31144 esac
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146   (eval "$ac_try") 2>&5
31147   ac_status=$?
31148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149   (exit $ac_status); }; } &&
31150          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31157   ac_status=$?
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); }; }; then
31160   ac_cv_cxx_have_std_ext_hash_map=yes
31161 else
31162   echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31164
31165         ac_cv_cxx_have_std_ext_hash_map=no
31166 fi
31167
31168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31169   ac_ext=c
31170 ac_cpp='$CPP $CPPFLAGS'
31171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174
31175 fi
31176 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31177 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31178  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31179  then
31180
31181 cat >>confdefs.h <<\_ACEOF
31182 #define HAVE_STD_EXT_HASH_MAP 1
31183 _ACEOF
31184
31185  else
31186
31187 cat >>confdefs.h <<\_ACEOF
31188 #define HAVE_STD_EXT_HASH_MAP 0
31189 _ACEOF
31190
31191  fi
31192
31193  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31194 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31195 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31196   echo $ECHO_N "(cached) $ECHO_C" >&6
31197 else
31198
31199   ac_ext=cpp
31200 ac_cpp='$CXXCPP $CPPFLAGS'
31201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31204
31205   cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h.  */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h.  */
31211 #include <ext/hash_map>
31212 #ifdef HAVE_NAMESPACES
31213 using namespace __gnu_cxx;
31214 #endif
31215 int
31216 main ()
31217 {
31218 hash_map<int,int> t;
31219   ;
31220   return 0;
31221 }
31222 _ACEOF
31223 rm -f conftest.$ac_objext
31224 if { (ac_try="$ac_compile"
31225 case "(($ac_try" in
31226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227   *) ac_try_echo=$ac_try;;
31228 esac
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230   (eval "$ac_compile") 2>conftest.er1
31231   ac_status=$?
31232   grep -v '^ *+' conftest.er1 >conftest.err
31233   rm -f conftest.er1
31234   cat conftest.err >&5
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); } &&
31237          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31238   { (case "(($ac_try" in
31239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240   *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243   (eval "$ac_try") 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); }; } &&
31247          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31254   ac_status=$?
31255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256   (exit $ac_status); }; }; then
31257   ac_cv_cxx_have_gnu_ext_hash_map=yes
31258 else
31259   echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31261
31262         ac_cv_cxx_have_gnu_ext_hash_map=no
31263 fi
31264
31265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31266   ac_ext=c
31267 ac_cpp='$CPP $CPPFLAGS'
31268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31271
31272 fi
31273 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31274 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31275  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31276  then
31277
31278 cat >>confdefs.h <<\_ACEOF
31279 #define HAVE_GNU_EXT_HASH_MAP 1
31280 _ACEOF
31281
31282  else
31283
31284 cat >>confdefs.h <<\_ACEOF
31285 #define HAVE_GNU_EXT_HASH_MAP 0
31286 _ACEOF
31287
31288  fi
31289
31290  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31291 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31292 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31293   echo $ECHO_N "(cached) $ECHO_C" >&6
31294 else
31295
31296   ac_ext=cpp
31297 ac_cpp='$CXXCPP $CPPFLAGS'
31298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31301
31302   cat >conftest.$ac_ext <<_ACEOF
31303 /* confdefs.h.  */
31304 _ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h.  */
31308 #include <hash_map>
31309 int
31310 main ()
31311 {
31312 hash_map<int,int> t;
31313   ;
31314   return 0;
31315 }
31316 _ACEOF
31317 rm -f conftest.$ac_objext
31318 if { (ac_try="$ac_compile"
31319 case "(($ac_try" in
31320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321   *) ac_try_echo=$ac_try;;
31322 esac
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324   (eval "$ac_compile") 2>conftest.er1
31325   ac_status=$?
31326   grep -v '^ *+' conftest.er1 >conftest.err
31327   rm -f conftest.er1
31328   cat conftest.err >&5
31329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330   (exit $ac_status); } &&
31331          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31332   { (case "(($ac_try" in
31333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334   *) ac_try_echo=$ac_try;;
31335 esac
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337   (eval "$ac_try") 2>&5
31338   ac_status=$?
31339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340   (exit $ac_status); }; } &&
31341          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31348   ac_status=$?
31349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350   (exit $ac_status); }; }; then
31351   ac_cv_cxx_have_global_hash_map=yes
31352 else
31353   echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31355
31356         ac_cv_cxx_have_global_hash_map=no
31357 fi
31358
31359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31360   ac_ext=c
31361 ac_cpp='$CPP $CPPFLAGS'
31362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31365
31366 fi
31367 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31368 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31369  if test "$ac_cv_cxx_have_global_hash_map" = yes
31370  then
31371
31372 cat >>confdefs.h <<\_ACEOF
31373 #define HAVE_GLOBAL_HASH_MAP 1
31374 _ACEOF
31375
31376  else
31377
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_GLOBAL_HASH_MAP 0
31380 _ACEOF
31381
31382  fi
31383
31384 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31385 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31386 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31387   echo $ECHO_N "(cached) $ECHO_C" >&6
31388 else
31389
31390   ac_ext=cpp
31391 ac_cpp='$CXXCPP $CPPFLAGS'
31392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31395
31396   cat >conftest.$ac_ext <<_ACEOF
31397 /* confdefs.h.  */
31398 _ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h.  */
31402 #include <ext/hash_set>
31403 #ifdef HAVE_NAMESPACES
31404 using namespace std;
31405 #endif
31406 int
31407 main ()
31408 {
31409 hash_set<int> t;
31410   ;
31411   return 0;
31412 }
31413 _ACEOF
31414 rm -f conftest.$ac_objext
31415 if { (ac_try="$ac_compile"
31416 case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_compile") 2>conftest.er1
31422   ac_status=$?
31423   grep -v '^ *+' conftest.er1 >conftest.err
31424   rm -f conftest.er1
31425   cat conftest.err >&5
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); } &&
31428          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429   { (case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_try") 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); }; } &&
31438          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31445   ac_status=$?
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); }; }; then
31448   ac_cv_cxx_have_std_ext_hash_set=yes
31449 else
31450   echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453         ac_cv_cxx_have_std_ext_hash_set=no
31454 fi
31455
31456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457   ac_ext=c
31458 ac_cpp='$CPP $CPPFLAGS'
31459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31462
31463 fi
31464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31465 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31466  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31467  then
31468
31469 cat >>confdefs.h <<\_ACEOF
31470 #define HAVE_STD_EXT_HASH_SET 1
31471 _ACEOF
31472
31473  else
31474
31475 cat >>confdefs.h <<\_ACEOF
31476 #define HAVE_STD_EXT_HASH_SET 0
31477 _ACEOF
31478
31479  fi
31480
31481  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31482 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31483 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486
31487   ac_ext=cpp
31488 ac_cpp='$CXXCPP $CPPFLAGS'
31489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31492
31493   cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h.  */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h.  */
31499 #include <ext/hash_set>
31500 #ifdef HAVE_NAMESPACES
31501 using namespace __gnu_cxx;
31502 #endif
31503 int
31504 main ()
31505 {
31506 hash_set<int> t;
31507   ;
31508   return 0;
31509 }
31510 _ACEOF
31511 rm -f conftest.$ac_objext
31512 if { (ac_try="$ac_compile"
31513 case "(($ac_try" in
31514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515   *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518   (eval "$ac_compile") 2>conftest.er1
31519   ac_status=$?
31520   grep -v '^ *+' conftest.er1 >conftest.err
31521   rm -f conftest.er1
31522   cat conftest.err >&5
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); } &&
31525          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526   { (case "(($ac_try" in
31527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528   *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531   (eval "$ac_try") 2>&5
31532   ac_status=$?
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); }; } &&
31535          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31542   ac_status=$?
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); }; }; then
31545   ac_cv_cxx_have_gnu_ext_hash_set=yes
31546 else
31547   echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31549
31550         ac_cv_cxx_have_gnu_ext_hash_set=no
31551 fi
31552
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554   ac_ext=c
31555 ac_cpp='$CPP $CPPFLAGS'
31556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31559
31560 fi
31561 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31562 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31563  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31564  then
31565
31566 cat >>confdefs.h <<\_ACEOF
31567 #define HAVE_GNU_EXT_HASH_SET 1
31568 _ACEOF
31569
31570  else
31571
31572 cat >>confdefs.h <<\_ACEOF
31573 #define HAVE_GNU_EXT_HASH_SET 0
31574 _ACEOF
31575
31576  fi
31577
31578  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31579 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31580 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583
31584   ac_ext=cpp
31585 ac_cpp='$CXXCPP $CPPFLAGS'
31586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31589
31590   cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h.  */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h.  */
31596 #include <hash_set>
31597 int
31598 main ()
31599 {
31600 hash_set<int> t; return 0;
31601   ;
31602   return 0;
31603 }
31604 _ACEOF
31605 rm -f conftest.$ac_objext
31606 if { (ac_try="$ac_compile"
31607 case "(($ac_try" in
31608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609   *) ac_try_echo=$ac_try;;
31610 esac
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612   (eval "$ac_compile") 2>conftest.er1
31613   ac_status=$?
31614   grep -v '^ *+' conftest.er1 >conftest.err
31615   rm -f conftest.er1
31616   cat conftest.err >&5
31617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618   (exit $ac_status); } &&
31619          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620   { (case "(($ac_try" in
31621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622   *) ac_try_echo=$ac_try;;
31623 esac
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625   (eval "$ac_try") 2>&5
31626   ac_status=$?
31627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628   (exit $ac_status); }; } &&
31629          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31636   ac_status=$?
31637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638   (exit $ac_status); }; }; then
31639   ac_cv_cxx_have_global_hash_set=yes
31640 else
31641   echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31643
31644         ac_cv_cxx_have_global_hash_set=no
31645 fi
31646
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648   ac_ext=c
31649 ac_cpp='$CPP $CPPFLAGS'
31650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31653
31654 fi
31655 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31656 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31657  if test "$ac_cv_cxx_have_global_hash_set" = yes
31658  then
31659
31660 cat >>confdefs.h <<\_ACEOF
31661 #define HAVE_GLOBAL_HASH_SET 1
31662 _ACEOF
31663
31664  else
31665
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_GLOBAL_HASH_SET 0
31668 _ACEOF
31669
31670  fi
31671
31672 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31673 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31674 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31675   echo $ECHO_N "(cached) $ECHO_C" >&6
31676 else
31677
31678   ac_ext=cpp
31679 ac_cpp='$CXXCPP $CPPFLAGS'
31680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31683
31684   cat >conftest.$ac_ext <<_ACEOF
31685 /* confdefs.h.  */
31686 _ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h.  */
31690 #include <iterator>
31691 #ifdef HAVE_NAMESPACES
31692 using namespace std;
31693 #endif
31694 int
31695 main ()
31696 {
31697 iterator<int,int,int> t; return 0;
31698   ;
31699   return 0;
31700 }
31701 _ACEOF
31702 rm -f conftest.$ac_objext
31703 if { (ac_try="$ac_compile"
31704 case "(($ac_try" in
31705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706   *) ac_try_echo=$ac_try;;
31707 esac
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709   (eval "$ac_compile") 2>conftest.er1
31710   ac_status=$?
31711   grep -v '^ *+' conftest.er1 >conftest.err
31712   rm -f conftest.er1
31713   cat conftest.err >&5
31714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715   (exit $ac_status); } &&
31716          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717   { (case "(($ac_try" in
31718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719   *) ac_try_echo=$ac_try;;
31720 esac
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722   (eval "$ac_try") 2>&5
31723   ac_status=$?
31724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725   (exit $ac_status); }; } &&
31726          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); }; }; then
31736   ac_cv_cxx_have_std_iterator=yes
31737 else
31738   echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31740
31741         ac_cv_cxx_have_std_iterator=no
31742 fi
31743
31744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31745   ac_ext=c
31746 ac_cpp='$CPP $CPPFLAGS'
31747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31750
31751
31752 fi
31753 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31754 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31755 if test "$ac_cv_cxx_have_std_iterator" = yes
31756 then
31757
31758 cat >>confdefs.h <<\_ACEOF
31759 #define HAVE_STD_ITERATOR 1
31760 _ACEOF
31761
31762 else
31763
31764 cat >>confdefs.h <<\_ACEOF
31765 #define HAVE_STD_ITERATOR 0
31766 _ACEOF
31767
31768 fi
31769
31770 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31771 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31772 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31773   echo $ECHO_N "(cached) $ECHO_C" >&6
31774 else
31775
31776   ac_ext=cpp
31777 ac_cpp='$CXXCPP $CPPFLAGS'
31778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31781
31782   cat >conftest.$ac_ext <<_ACEOF
31783 /* confdefs.h.  */
31784 _ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h.  */
31788 #include <iterator>
31789 #ifdef HAVE_NAMESPACES
31790 using namespace std;
31791 #endif
31792 int
31793 main ()
31794 {
31795 bidirectional_iterator<int,int> t; return 0;
31796   ;
31797   return 0;
31798 }
31799 _ACEOF
31800 rm -f conftest.$ac_objext
31801 if { (ac_try="$ac_compile"
31802 case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807   (eval "$ac_compile") 2>conftest.er1
31808   ac_status=$?
31809   grep -v '^ *+' conftest.er1 >conftest.err
31810   rm -f conftest.er1
31811   cat conftest.err >&5
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); } &&
31814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815   { (case "(($ac_try" in
31816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817   *) ac_try_echo=$ac_try;;
31818 esac
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820   (eval "$ac_try") 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; } &&
31824          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; }; then
31834   ac_cv_cxx_have_bi_iterator=yes
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839         ac_cv_cxx_have_bi_iterator=no
31840 fi
31841
31842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31843   ac_ext=c
31844 ac_cpp='$CPP $CPPFLAGS'
31845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31848
31849
31850 fi
31851 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31852 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31853 if test "$ac_cv_cxx_have_bi_iterator" = yes
31854 then
31855
31856 cat >>confdefs.h <<\_ACEOF
31857 #define HAVE_BI_ITERATOR 1
31858 _ACEOF
31859
31860 else
31861
31862 cat >>confdefs.h <<\_ACEOF
31863 #define HAVE_BI_ITERATOR 0
31864 _ACEOF
31865
31866 fi
31867
31868 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31869 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31870 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31871   echo $ECHO_N "(cached) $ECHO_C" >&6
31872 else
31873
31874   ac_ext=cpp
31875 ac_cpp='$CXXCPP $CPPFLAGS'
31876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31879
31880   cat >conftest.$ac_ext <<_ACEOF
31881 /* confdefs.h.  */
31882 _ACEOF
31883 cat confdefs.h >>conftest.$ac_ext
31884 cat >>conftest.$ac_ext <<_ACEOF
31885 /* end confdefs.h.  */
31886 #include <iterator>
31887 #ifdef HAVE_NAMESPACES
31888 using namespace std;
31889 #endif
31890 int
31891 main ()
31892 {
31893 forward_iterator<int,int> t; return 0;
31894   ;
31895   return 0;
31896 }
31897 _ACEOF
31898 rm -f conftest.$ac_objext
31899 if { (ac_try="$ac_compile"
31900 case "(($ac_try" in
31901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902   *) ac_try_echo=$ac_try;;
31903 esac
31904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905   (eval "$ac_compile") 2>conftest.er1
31906   ac_status=$?
31907   grep -v '^ *+' conftest.er1 >conftest.err
31908   rm -f conftest.er1
31909   cat conftest.err >&5
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); } &&
31912          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31913   { (case "(($ac_try" in
31914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915   *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918   (eval "$ac_try") 2>&5
31919   ac_status=$?
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); }; } &&
31922          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31929   ac_status=$?
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); }; }; then
31932   ac_cv_cxx_have_fwd_iterator=yes
31933 else
31934   echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31936
31937         ac_cv_cxx_have_fwd_iterator=no
31938 fi
31939
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31941   ac_ext=c
31942 ac_cpp='$CPP $CPPFLAGS'
31943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31946
31947
31948 fi
31949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31950 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31951 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31952 then
31953
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_FWD_ITERATOR 1
31956 _ACEOF
31957
31958 else
31959
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_FWD_ITERATOR 0
31962 _ACEOF
31963
31964 fi
31965
31966
31967 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31968 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31969 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972   ac_ext=cpp
31973 ac_cpp='$CXXCPP $CPPFLAGS'
31974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31977
31978    cat >conftest.$ac_ext <<_ACEOF
31979 /* confdefs.h.  */
31980 _ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h.  */
31984 #include <math.h>
31985 int
31986 main ()
31987 {
31988 float f; isnan(f);
31989   ;
31990   return 0;
31991 }
31992 _ACEOF
31993 rm -f conftest.$ac_objext
31994 if { (ac_try="$ac_compile"
31995 case "(($ac_try" in
31996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31997   *) ac_try_echo=$ac_try;;
31998 esac
31999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32000   (eval "$ac_compile") 2>conftest.er1
32001   ac_status=$?
32002   grep -v '^ *+' conftest.er1 >conftest.err
32003   rm -f conftest.er1
32004   cat conftest.err >&5
32005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006   (exit $ac_status); } &&
32007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32008   { (case "(($ac_try" in
32009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32010   *) ac_try_echo=$ac_try;;
32011 esac
32012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32013   (eval "$ac_try") 2>&5
32014   ac_status=$?
32015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016   (exit $ac_status); }; } &&
32017          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32024   ac_status=$?
32025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026   (exit $ac_status); }; }; then
32027   ac_cv_func_isnan_in_math_h=yes
32028 else
32029   echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32031
32032         ac_cv_func_isnan_in_math_h=no
32033 fi
32034
32035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32036   ac_ext=c
32037 ac_cpp='$CPP $CPPFLAGS'
32038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32041
32042 fi
32043 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32044 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32045
32046
32047 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32048
32049 cat >>confdefs.h <<\_ACEOF
32050 #define HAVE_ISNAN_IN_MATH_H 1
32051 _ACEOF
32052
32053 fi
32054
32055 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32056 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32057 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32058   echo $ECHO_N "(cached) $ECHO_C" >&6
32059 else
32060   ac_ext=cpp
32061 ac_cpp='$CXXCPP $CPPFLAGS'
32062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32065
32066    cat >conftest.$ac_ext <<_ACEOF
32067 /* confdefs.h.  */
32068 _ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h.  */
32072 #include <cmath>
32073 int
32074 main ()
32075 {
32076 float f; isnan(f);
32077   ;
32078   return 0;
32079 }
32080 _ACEOF
32081 rm -f conftest.$ac_objext
32082 if { (ac_try="$ac_compile"
32083 case "(($ac_try" in
32084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085   *) ac_try_echo=$ac_try;;
32086 esac
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088   (eval "$ac_compile") 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } &&
32095          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32096   { (case "(($ac_try" in
32097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32098   *) ac_try_echo=$ac_try;;
32099 esac
32100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32101   (eval "$ac_try") 2>&5
32102   ac_status=$?
32103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104   (exit $ac_status); }; } &&
32105          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32112   ac_status=$?
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); }; }; then
32115   ac_cv_func_isnan_in_cmath=yes
32116 else
32117   echo "$as_me: failed program was:" >&5
32118 sed 's/^/| /' conftest.$ac_ext >&5
32119
32120         ac_cv_func_isnan_in_cmath=no
32121 fi
32122
32123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32124   ac_ext=c
32125 ac_cpp='$CPP $CPPFLAGS'
32126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32129
32130 fi
32131 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32132 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32133
32134 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32135
32136 cat >>confdefs.h <<\_ACEOF
32137 #define HAVE_ISNAN_IN_CMATH 1
32138 _ACEOF
32139
32140 fi
32141
32142 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32143 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32144 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32145   echo $ECHO_N "(cached) $ECHO_C" >&6
32146 else
32147   ac_ext=cpp
32148 ac_cpp='$CXXCPP $CPPFLAGS'
32149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32152
32153    cat >conftest.$ac_ext <<_ACEOF
32154 /* confdefs.h.  */
32155 _ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h.  */
32159 #include <cmath>
32160 int
32161 main ()
32162 {
32163 float f; std::isnan(f);
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175   (eval "$ac_compile") 2>conftest.er1
32176   ac_status=$?
32177   grep -v '^ *+' conftest.er1 >conftest.err
32178   rm -f conftest.er1
32179   cat conftest.err >&5
32180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); } &&
32182          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32183   { (case "(($ac_try" in
32184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185   *) ac_try_echo=$ac_try;;
32186 esac
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188   (eval "$ac_try") 2>&5
32189   ac_status=$?
32190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191   (exit $ac_status); }; } &&
32192          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32199   ac_status=$?
32200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201   (exit $ac_status); }; }; then
32202   ac_cv_func_std_isnan_in_cmath=yes
32203 else
32204   echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32206
32207         ac_cv_func_std_isnan_in_cmath=no
32208 fi
32209
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32211   ac_ext=c
32212 ac_cpp='$CPP $CPPFLAGS'
32213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32216
32217 fi
32218 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32219 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32220
32221 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32222
32223 cat >>confdefs.h <<\_ACEOF
32224 #define HAVE_STD_ISNAN_IN_CMATH 1
32225 _ACEOF
32226
32227 fi
32228
32229
32230 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32231 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32232 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32233   echo $ECHO_N "(cached) $ECHO_C" >&6
32234 else
32235   ac_ext=cpp
32236 ac_cpp='$CXXCPP $CPPFLAGS'
32237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240
32241    cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247 #include <math.h>
32248 int
32249 main ()
32250 {
32251 float f; isinf(f);
32252   ;
32253   return 0;
32254 }
32255 _ACEOF
32256 rm -f conftest.$ac_objext
32257 if { (ac_try="$ac_compile"
32258 case "(($ac_try" in
32259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260   *) ac_try_echo=$ac_try;;
32261 esac
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263   (eval "$ac_compile") 2>conftest.er1
32264   ac_status=$?
32265   grep -v '^ *+' conftest.er1 >conftest.err
32266   rm -f conftest.er1
32267   cat conftest.err >&5
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); } &&
32270          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32271   { (case "(($ac_try" in
32272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273   *) ac_try_echo=$ac_try;;
32274 esac
32275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276   (eval "$ac_try") 2>&5
32277   ac_status=$?
32278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279   (exit $ac_status); }; } &&
32280          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32287   ac_status=$?
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); }; }; then
32290   ac_cv_func_isinf_in_math_h=yes
32291 else
32292   echo "$as_me: failed program was:" >&5
32293 sed 's/^/| /' conftest.$ac_ext >&5
32294
32295         ac_cv_func_isinf_in_math_h=no
32296 fi
32297
32298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32299   ac_ext=c
32300 ac_cpp='$CPP $CPPFLAGS'
32301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32304
32305 fi
32306 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32307 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32308
32309 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32310
32311 cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_ISINF_IN_MATH_H 1
32313 _ACEOF
32314
32315 fi
32316
32317 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32318 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32319 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32320   echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322   ac_ext=cpp
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327
32328    cat >conftest.$ac_ext <<_ACEOF
32329 /* confdefs.h.  */
32330 _ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h.  */
32334 #include <cmath>
32335 int
32336 main ()
32337 {
32338 float f; isinf(f);
32339   ;
32340   return 0;
32341 }
32342 _ACEOF
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347   *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350   (eval "$ac_compile") 2>conftest.er1
32351   ac_status=$?
32352   grep -v '^ *+' conftest.er1 >conftest.err
32353   rm -f conftest.er1
32354   cat conftest.err >&5
32355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356   (exit $ac_status); } &&
32357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358   { (case "(($ac_try" in
32359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360   *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363   (eval "$ac_try") 2>&5
32364   ac_status=$?
32365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366   (exit $ac_status); }; } &&
32367          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32374   ac_status=$?
32375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376   (exit $ac_status); }; }; then
32377   ac_cv_func_isinf_in_cmath=yes
32378 else
32379   echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32381
32382         ac_cv_func_isinf_in_cmath=no
32383 fi
32384
32385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386   ac_ext=c
32387 ac_cpp='$CPP $CPPFLAGS'
32388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32391
32392 fi
32393 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32394 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32395
32396 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32397
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_ISINF_IN_CMATH 1
32400 _ACEOF
32401
32402 fi
32403
32404 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32405 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32406 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32407   echo $ECHO_N "(cached) $ECHO_C" >&6
32408 else
32409   ac_ext=cpp
32410 ac_cpp='$CXXCPP $CPPFLAGS'
32411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414
32415    cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421 #include <cmath>
32422 int
32423 main ()
32424 {
32425 float f; std::isinf(f)}
32426   ;
32427   return 0;
32428 }
32429 _ACEOF
32430 rm -f conftest.$ac_objext
32431 if { (ac_try="$ac_compile"
32432 case "(($ac_try" in
32433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434   *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437   (eval "$ac_compile") 2>conftest.er1
32438   ac_status=$?
32439   grep -v '^ *+' conftest.er1 >conftest.err
32440   rm -f conftest.er1
32441   cat conftest.err >&5
32442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443   (exit $ac_status); } &&
32444          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445   { (case "(($ac_try" in
32446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447   *) ac_try_echo=$ac_try;;
32448 esac
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450   (eval "$ac_try") 2>&5
32451   ac_status=$?
32452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453   (exit $ac_status); }; } &&
32454          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32461   ac_status=$?
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); }; }; then
32464   ac_cv_func_std_isinf_in_cmath=yes
32465 else
32466   echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32468
32469         ac_cv_func_std_isinf_in_cmath=no
32470 fi
32471
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473   ac_ext=c
32474 ac_cpp='$CPP $CPPFLAGS'
32475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32478
32479 fi
32480 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32481 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32482
32483 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32484
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ISINF_IN_CMATH 1
32487 _ACEOF
32488
32489 fi
32490
32491 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32492 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32493 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32494   echo $ECHO_N "(cached) $ECHO_C" >&6
32495 else
32496   ac_ext=cpp
32497 ac_cpp='$CXXCPP $CPPFLAGS'
32498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32501
32502    cat >conftest.$ac_ext <<_ACEOF
32503 /* confdefs.h.  */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h.  */
32508 #include <ieeefp.h>
32509 int
32510 main ()
32511 {
32512 float f; finite(f);
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_compile") 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } &&
32531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532   { (case "(($ac_try" in
32533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534   *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537   (eval "$ac_try") 2>&5
32538   ac_status=$?
32539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540   (exit $ac_status); }; } &&
32541          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32548   ac_status=$?
32549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550   (exit $ac_status); }; }; then
32551   ac_cv_func_finite_in_ieeefp_h=yes
32552 else
32553   echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556         ac_cv_func_finite_in_ieeefp_h=no
32557 fi
32558
32559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32560   ac_ext=c
32561 ac_cpp='$CPP $CPPFLAGS'
32562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565
32566 fi
32567 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32568 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32569
32570 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32571
32572 cat >>confdefs.h <<\_ACEOF
32573 #define HAVE_FINITE_IN_IEEEFP_H 1
32574 _ACEOF
32575
32576 fi
32577
32578
32579
32580
32581
32582 for ac_header in stdlib.h unistd.h
32583 do
32584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32586   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32589   echo $ECHO_N "(cached) $ECHO_C" >&6
32590 fi
32591 ac_res=`eval echo '${'$as_ac_Header'}'`
32592                { echo "$as_me:$LINENO: result: $ac_res" >&5
32593 echo "${ECHO_T}$ac_res" >&6; }
32594 else
32595   # Is the header compilable?
32596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32598 cat >conftest.$ac_ext <<_ACEOF
32599 /* confdefs.h.  */
32600 _ACEOF
32601 cat confdefs.h >>conftest.$ac_ext
32602 cat >>conftest.$ac_ext <<_ACEOF
32603 /* end confdefs.h.  */
32604 $ac_includes_default
32605 #include <$ac_header>
32606 _ACEOF
32607 rm -f conftest.$ac_objext
32608 if { (ac_try="$ac_compile"
32609 case "(($ac_try" in
32610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611   *) ac_try_echo=$ac_try;;
32612 esac
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614   (eval "$ac_compile") 2>conftest.er1
32615   ac_status=$?
32616   grep -v '^ *+' conftest.er1 >conftest.err
32617   rm -f conftest.er1
32618   cat conftest.err >&5
32619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620   (exit $ac_status); } &&
32621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32622   { (case "(($ac_try" in
32623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32624   *) ac_try_echo=$ac_try;;
32625 esac
32626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32627   (eval "$ac_try") 2>&5
32628   ac_status=$?
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); }; } &&
32631          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32638   ac_status=$?
32639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640   (exit $ac_status); }; }; then
32641   ac_header_compiler=yes
32642 else
32643   echo "$as_me: failed program was:" >&5
32644 sed 's/^/| /' conftest.$ac_ext >&5
32645
32646         ac_header_compiler=no
32647 fi
32648
32649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32651 echo "${ECHO_T}$ac_header_compiler" >&6; }
32652
32653 # Is the header present?
32654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32656 cat >conftest.$ac_ext <<_ACEOF
32657 /* confdefs.h.  */
32658 _ACEOF
32659 cat confdefs.h >>conftest.$ac_ext
32660 cat >>conftest.$ac_ext <<_ACEOF
32661 /* end confdefs.h.  */
32662 #include <$ac_header>
32663 _ACEOF
32664 if { (ac_try="$ac_cpp conftest.$ac_ext"
32665 case "(($ac_try" in
32666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667   *) ac_try_echo=$ac_try;;
32668 esac
32669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32671   ac_status=$?
32672   grep -v '^ *+' conftest.er1 >conftest.err
32673   rm -f conftest.er1
32674   cat conftest.err >&5
32675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676   (exit $ac_status); } >/dev/null; then
32677   if test -s conftest.err; then
32678     ac_cpp_err=$ac_c_preproc_warn_flag
32679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32680   else
32681     ac_cpp_err=
32682   fi
32683 else
32684   ac_cpp_err=yes
32685 fi
32686 if test -z "$ac_cpp_err"; then
32687   ac_header_preproc=yes
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692   ac_header_preproc=no
32693 fi
32694
32695 rm -f conftest.err conftest.$ac_ext
32696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32697 echo "${ECHO_T}$ac_header_preproc" >&6; }
32698
32699 # So?  What about this header?
32700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32701   yes:no: )
32702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32706     ac_header_preproc=yes
32707     ;;
32708   no:yes:* )
32709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32711     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32712 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32713     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32715     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32716 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32719     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32721     ( cat <<\_ASBOX
32722 ## ----------------------------------- ##
32723 ## Report this to llvmbugs@cs.uiuc.edu ##
32724 ## ----------------------------------- ##
32725 _ASBOX
32726      ) | sed "s/^/$as_me: WARNING:     /" >&2
32727     ;;
32728 esac
32729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32732   echo $ECHO_N "(cached) $ECHO_C" >&6
32733 else
32734   eval "$as_ac_Header=\$ac_header_preproc"
32735 fi
32736 ac_res=`eval echo '${'$as_ac_Header'}'`
32737                { echo "$as_me:$LINENO: result: $ac_res" >&5
32738 echo "${ECHO_T}$ac_res" >&6; }
32739
32740 fi
32741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32742   cat >>confdefs.h <<_ACEOF
32743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32744 _ACEOF
32745
32746 fi
32747
32748 done
32749
32750
32751 for ac_func in getpagesize
32752 do
32753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32757   echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759   cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32767 #define $ac_func innocuous_$ac_func
32768
32769 /* System header to define __stub macros and hopefully few prototypes,
32770     which can conflict with char $ac_func (); below.
32771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32772     <limits.h> exists even on freestanding compilers.  */
32773
32774 #ifdef __STDC__
32775 # include <limits.h>
32776 #else
32777 # include <assert.h>
32778 #endif
32779
32780 #undef $ac_func
32781
32782 /* Override any GCC internal prototype to avoid an error.
32783    Use char because int might match the return type of a GCC
32784    builtin and then its argument prototype would still apply.  */
32785 #ifdef __cplusplus
32786 extern "C"
32787 #endif
32788 char $ac_func ();
32789 /* The GNU C library defines this for functions which it implements
32790     to always fail with ENOSYS.  Some functions are actually named
32791     something starting with __ and the normal name is an alias.  */
32792 #if defined __stub_$ac_func || defined __stub___$ac_func
32793 choke me
32794 #endif
32795
32796 int
32797 main ()
32798 {
32799 return $ac_func ();
32800   ;
32801   return 0;
32802 }
32803 _ACEOF
32804 rm -f conftest.$ac_objext conftest$ac_exeext
32805 if { (ac_try="$ac_link"
32806 case "(($ac_try" in
32807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808   *) ac_try_echo=$ac_try;;
32809 esac
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811   (eval "$ac_link") 2>conftest.er1
32812   ac_status=$?
32813   grep -v '^ *+' conftest.er1 >conftest.err
32814   rm -f conftest.er1
32815   cat conftest.err >&5
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); } &&
32818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32819   { (case "(($ac_try" in
32820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821   *) ac_try_echo=$ac_try;;
32822 esac
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824   (eval "$ac_try") 2>&5
32825   ac_status=$?
32826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827   (exit $ac_status); }; } &&
32828          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32835   ac_status=$?
32836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837   (exit $ac_status); }; }; then
32838   eval "$as_ac_var=yes"
32839 else
32840   echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32842
32843         eval "$as_ac_var=no"
32844 fi
32845
32846 rm -f core conftest.err conftest.$ac_objext \
32847       conftest$ac_exeext conftest.$ac_ext
32848 fi
32849 ac_res=`eval echo '${'$as_ac_var'}'`
32850                { echo "$as_me:$LINENO: result: $ac_res" >&5
32851 echo "${ECHO_T}$ac_res" >&6; }
32852 if test `eval echo '${'$as_ac_var'}'` = yes; then
32853   cat >>confdefs.h <<_ACEOF
32854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32855 _ACEOF
32856
32857 fi
32858 done
32859
32860 { echo "$as_me:$LINENO: checking for working mmap" >&5
32861 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32862 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32863   echo $ECHO_N "(cached) $ECHO_C" >&6
32864 else
32865   if test "$cross_compiling" = yes; then
32866   ac_cv_func_mmap_fixed_mapped=no
32867 else
32868   cat >conftest.$ac_ext <<_ACEOF
32869 /* confdefs.h.  */
32870 _ACEOF
32871 cat confdefs.h >>conftest.$ac_ext
32872 cat >>conftest.$ac_ext <<_ACEOF
32873 /* end confdefs.h.  */
32874 $ac_includes_default
32875 /* malloc might have been renamed as rpl_malloc. */
32876 #undef malloc
32877
32878 /* Thanks to Mike Haertel and Jim Avera for this test.
32879    Here is a matrix of mmap possibilities:
32880         mmap private not fixed
32881         mmap private fixed at somewhere currently unmapped
32882         mmap private fixed at somewhere already mapped
32883         mmap shared not fixed
32884         mmap shared fixed at somewhere currently unmapped
32885         mmap shared fixed at somewhere already mapped
32886    For private mappings, we should verify that changes cannot be read()
32887    back from the file, nor mmap's back from the file at a different
32888    address.  (There have been systems where private was not correctly
32889    implemented like the infamous i386 svr4.0, and systems where the
32890    VM page cache was not coherent with the file system buffer cache
32891    like early versions of FreeBSD and possibly contemporary NetBSD.)
32892    For shared mappings, we should conversely verify that changes get
32893    propagated back to all the places they're supposed to be.
32894
32895    Grep wants private fixed already mapped.
32896    The main things grep needs to know about mmap are:
32897    * does it exist and is it safe to write into the mmap'd area
32898    * how to use it (BSD variants)  */
32899
32900 #include <fcntl.h>
32901 #include <sys/mman.h>
32902
32903 #if !STDC_HEADERS && !HAVE_STDLIB_H
32904 char *malloc ();
32905 #endif
32906
32907 /* This mess was copied from the GNU getpagesize.h.  */
32908 #if !HAVE_GETPAGESIZE
32909 /* Assume that all systems that can run configure have sys/param.h.  */
32910 # if !HAVE_SYS_PARAM_H
32911 #  define HAVE_SYS_PARAM_H 1
32912 # endif
32913
32914 # ifdef _SC_PAGESIZE
32915 #  define getpagesize() sysconf(_SC_PAGESIZE)
32916 # else /* no _SC_PAGESIZE */
32917 #  if HAVE_SYS_PARAM_H
32918 #   include <sys/param.h>
32919 #   ifdef EXEC_PAGESIZE
32920 #    define getpagesize() EXEC_PAGESIZE
32921 #   else /* no EXEC_PAGESIZE */
32922 #    ifdef NBPG
32923 #     define getpagesize() NBPG * CLSIZE
32924 #     ifndef CLSIZE
32925 #      define CLSIZE 1
32926 #     endif /* no CLSIZE */
32927 #    else /* no NBPG */
32928 #     ifdef NBPC
32929 #      define getpagesize() NBPC
32930 #     else /* no NBPC */
32931 #      ifdef PAGESIZE
32932 #       define getpagesize() PAGESIZE
32933 #      endif /* PAGESIZE */
32934 #     endif /* no NBPC */
32935 #    endif /* no NBPG */
32936 #   endif /* no EXEC_PAGESIZE */
32937 #  else /* no HAVE_SYS_PARAM_H */
32938 #   define getpagesize() 8192   /* punt totally */
32939 #  endif /* no HAVE_SYS_PARAM_H */
32940 # endif /* no _SC_PAGESIZE */
32941
32942 #endif /* no HAVE_GETPAGESIZE */
32943
32944 int
32945 main ()
32946 {
32947   char *data, *data2, *data3;
32948   int i, pagesize;
32949   int fd;
32950
32951   pagesize = getpagesize ();
32952
32953   /* First, make a file with some known garbage in it. */
32954   data = (char *) malloc (pagesize);
32955   if (!data)
32956     return 1;
32957   for (i = 0; i < pagesize; ++i)
32958     *(data + i) = rand ();
32959   umask (0);
32960   fd = creat ("conftest.mmap", 0600);
32961   if (fd < 0)
32962     return 1;
32963   if (write (fd, data, pagesize) != pagesize)
32964     return 1;
32965   close (fd);
32966
32967   /* Next, try to mmap the file at a fixed address which already has
32968      something else allocated at it.  If we can, also make sure that
32969      we see the same garbage.  */
32970   fd = open ("conftest.mmap", O_RDWR);
32971   if (fd < 0)
32972     return 1;
32973   data2 = (char *) malloc (2 * pagesize);
32974   if (!data2)
32975     return 1;
32976   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32977   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32978                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
32979     return 1;
32980   for (i = 0; i < pagesize; ++i)
32981     if (*(data + i) != *(data2 + i))
32982       return 1;
32983
32984   /* Finally, make sure that changes to the mapped area do not
32985      percolate back to the file as seen by read().  (This is a bug on
32986      some variants of i386 svr4.0.)  */
32987   for (i = 0; i < pagesize; ++i)
32988     *(data2 + i) = *(data2 + i) + 1;
32989   data3 = (char *) malloc (pagesize);
32990   if (!data3)
32991     return 1;
32992   if (read (fd, data3, pagesize) != pagesize)
32993     return 1;
32994   for (i = 0; i < pagesize; ++i)
32995     if (*(data + i) != *(data3 + i))
32996       return 1;
32997   close (fd);
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_link") 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33012   { (case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_try") 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); }; }; then
33021   ac_cv_func_mmap_fixed_mapped=yes
33022 else
33023   echo "$as_me: program exited with status $ac_status" >&5
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33026
33027 ( exit $ac_status )
33028 ac_cv_func_mmap_fixed_mapped=no
33029 fi
33030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33031 fi
33032
33033
33034 fi
33035 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33036 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33037 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33038
33039 cat >>confdefs.h <<\_ACEOF
33040 #define HAVE_MMAP 1
33041 _ACEOF
33042
33043 fi
33044 rm -f conftest.mmap
33045
33046 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33047 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33048 if test "${ac_cv_func_mmap_file+set}" = set; then
33049   echo $ECHO_N "(cached) $ECHO_C" >&6
33050 else
33051    ac_ext=c
33052 ac_cpp='$CPP $CPPFLAGS'
33053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33056
33057   if test "$cross_compiling" = yes; then
33058   ac_cv_func_mmap_file=no
33059 else
33060   cat >conftest.$ac_ext <<_ACEOF
33061
33062     /* confdefs.h.  */
33063 _ACEOF
33064 cat confdefs.h >>conftest.$ac_ext
33065 cat >>conftest.$ac_ext <<_ACEOF
33066 /* end confdefs.h.  */
33067
33068 #include <sys/types.h>
33069 #include <sys/mman.h>
33070 #include <fcntl.h>
33071
33072 int
33073 main ()
33074 {
33075
33076   int fd;
33077   fd = creat ("foo",0777);
33078   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33079   unlink ("foo");
33080   return (fd != (int) MAP_FAILED);
33081   ;
33082   return 0;
33083 }
33084 _ACEOF
33085 rm -f conftest$ac_exeext
33086 if { (ac_try="$ac_link"
33087 case "(($ac_try" in
33088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089   *) ac_try_echo=$ac_try;;
33090 esac
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092   (eval "$ac_link") 2>&5
33093   ac_status=$?
33094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33096   { (case "(($ac_try" in
33097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098   *) ac_try_echo=$ac_try;;
33099 esac
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101   (eval "$ac_try") 2>&5
33102   ac_status=$?
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); }; }; then
33105   ac_cv_func_mmap_file=yes
33106 else
33107   echo "$as_me: program exited with status $ac_status" >&5
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33110
33111 ( exit $ac_status )
33112 ac_cv_func_mmap_file=no
33113 fi
33114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33115 fi
33116
33117
33118   ac_ext=c
33119 ac_cpp='$CPP $CPPFLAGS'
33120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33123
33124
33125 fi
33126 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33127 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33128 if test "$ac_cv_func_mmap_file" = yes; then
33129
33130 cat >>confdefs.h <<\_ACEOF
33131 #define HAVE_MMAP_FILE
33132 _ACEOF
33133
33134    MMAP_FILE=yes
33135
33136 fi
33137
33138 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33139 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33140 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33141   echo $ECHO_N "(cached) $ECHO_C" >&6
33142 else
33143   if test "$llvm_cv_os_type" = "Interix" ; then
33144    ac_cv_need_dev_zero_for_mmap=yes
33145  else
33146    ac_cv_need_dev_zero_for_mmap=no
33147  fi
33148
33149 fi
33150 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33151 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33152 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33153
33154 cat >>confdefs.h <<\_ACEOF
33155 #define NEED_DEV_ZERO_FOR_MMAP 1
33156 _ACEOF
33157
33158 fi
33159 { echo "$as_me:$LINENO: checking for mprotect" >&5
33160 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33161 if test "${ac_cv_func_mprotect+set}" = set; then
33162   echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164   cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h.  */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h.  */
33170 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33172 #define mprotect innocuous_mprotect
33173
33174 /* System header to define __stub macros and hopefully few prototypes,
33175     which can conflict with char mprotect (); below.
33176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177     <limits.h> exists even on freestanding compilers.  */
33178
33179 #ifdef __STDC__
33180 # include <limits.h>
33181 #else
33182 # include <assert.h>
33183 #endif
33184
33185 #undef mprotect
33186
33187 /* Override any GCC internal prototype to avoid an error.
33188    Use char because int might match the return type of a GCC
33189    builtin and then its argument prototype would still apply.  */
33190 #ifdef __cplusplus
33191 extern "C"
33192 #endif
33193 char mprotect ();
33194 /* The GNU C library defines this for functions which it implements
33195     to always fail with ENOSYS.  Some functions are actually named
33196     something starting with __ and the normal name is an alias.  */
33197 #if defined __stub_mprotect || defined __stub___mprotect
33198 choke me
33199 #endif
33200
33201 int
33202 main ()
33203 {
33204 return mprotect ();
33205   ;
33206   return 0;
33207 }
33208 _ACEOF
33209 rm -f conftest.$ac_objext conftest$ac_exeext
33210 if { (ac_try="$ac_link"
33211 case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_link") 2>conftest.er1
33217   ac_status=$?
33218   grep -v '^ *+' conftest.er1 >conftest.err
33219   rm -f conftest.er1
33220   cat conftest.err >&5
33221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222   (exit $ac_status); } &&
33223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33224   { (case "(($ac_try" in
33225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226   *) ac_try_echo=$ac_try;;
33227 esac
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229   (eval "$ac_try") 2>&5
33230   ac_status=$?
33231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232   (exit $ac_status); }; } &&
33233          { ac_try='test -s conftest$ac_exeext'
33234   { (case "(($ac_try" in
33235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236   *) ac_try_echo=$ac_try;;
33237 esac
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239   (eval "$ac_try") 2>&5
33240   ac_status=$?
33241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242   (exit $ac_status); }; }; then
33243   ac_cv_func_mprotect=yes
33244 else
33245   echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33247
33248         ac_cv_func_mprotect=no
33249 fi
33250
33251 rm -f core conftest.err conftest.$ac_objext \
33252       conftest$ac_exeext conftest.$ac_ext
33253 fi
33254 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33255 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33256 if test $ac_cv_func_mprotect = yes; then
33257   :
33258 else
33259   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33260 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33261    { (exit 1); exit 1; }; }
33262 fi
33263
33264
33265 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33266 then
33267   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33268 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33269 fi
33270 if test "$ac_cv_func_mmap_file" = "no"
33271 then
33272   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33273 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33274 fi
33275
33276
33277 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33278 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33279 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33280   echo $ECHO_N "(cached) $ECHO_C" >&6
33281 else
33282   llvm_cv_llvmgcc_sanity="no"
33283 if test -x "$LLVMGCC" ; then
33284   cp /dev/null conftest.c
33285   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33286   if test $? -eq 0 ; then
33287     llvm_cv_llvmgcc_sanity="yes"
33288   fi
33289   rm conftest.c
33290 fi
33291 fi
33292 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33293 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33294
33295 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33296   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33297   LLVMCC1=$llvmcc1path
33298
33299   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33300   LLVMCC1PLUS=$llvmcc1pluspath
33301
33302   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33303   LLVMGCCDIR=$llvmgccdir
33304
33305   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33306   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33307   LLVMGCC_VERSION=$llvmgccversion
33308
33309   LLVMGCC_MAJVERS=$llvmgccmajvers
33310
33311 fi
33312
33313 SHLIBEXT=$libltdl_cv_shlibext
33314
33315
33316 # Translate the various configuration directories and other basic
33317 # information into substitutions that will end up in Makefile.config.in
33318 # that these configured values can be used by the makefiles
33319 if test "${prefix}" == "NONE" ; then
33320   prefix="/usr/local"
33321 fi
33322 eval LLVM_PREFIX="${prefix}";
33323 eval LLVM_BINDIR="${prefix}/bin";
33324 eval LLVM_LIBDIR="${prefix}/lib";
33325 eval LLVM_DATADIR="${prefix}/share/llvm";
33326 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33327 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33328 eval LLVM_INCLUDEDIR="${prefix}/include";
33329 eval LLVM_INFODIR="${prefix}/info";
33330 eval LLVM_MANDIR="${prefix}/man";
33331 LLVM_CONFIGTIME=`date`
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343 # Place the various directores into the config.h file as #defines so that we
33344 # can know about the installation paths within LLVM.
33345
33346 cat >>confdefs.h <<_ACEOF
33347 #define LLVM_PREFIX "$LLVM_PREFIX"
33348 _ACEOF
33349
33350
33351 cat >>confdefs.h <<_ACEOF
33352 #define LLVM_BINDIR "$LLVM_BINDIR"
33353 _ACEOF
33354
33355
33356 cat >>confdefs.h <<_ACEOF
33357 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33358 _ACEOF
33359
33360
33361 cat >>confdefs.h <<_ACEOF
33362 #define LLVM_DATADIR "$LLVM_DATADIR"
33363 _ACEOF
33364
33365
33366 cat >>confdefs.h <<_ACEOF
33367 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33368 _ACEOF
33369
33370
33371 cat >>confdefs.h <<_ACEOF
33372 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33373 _ACEOF
33374
33375
33376 cat >>confdefs.h <<_ACEOF
33377 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33378 _ACEOF
33379
33380
33381 cat >>confdefs.h <<_ACEOF
33382 #define LLVM_INFODIR "$LLVM_INFODIR"
33383 _ACEOF
33384
33385
33386 cat >>confdefs.h <<_ACEOF
33387 #define LLVM_MANDIR "$LLVM_MANDIR"
33388 _ACEOF
33389
33390
33391 cat >>confdefs.h <<_ACEOF
33392 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33393 _ACEOF
33394
33395
33396
33397 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33398
33399 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33400
33401 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33402
33403 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33404
33405 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33406
33407
33408 ac_config_files="$ac_config_files Makefile.config"
33409
33410
33411 ac_config_files="$ac_config_files llvm.spec"
33412
33413
33414 ac_config_files="$ac_config_files docs/doxygen.cfg"
33415
33416
33417 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33418
33419
33420 ac_config_commands="$ac_config_commands setup"
33421
33422 ac_config_commands="$ac_config_commands Makefile"
33423
33424
33425 ac_config_commands="$ac_config_commands Makefile.common"
33426
33427
33428 ac_config_commands="$ac_config_commands examples/Makefile"
33429
33430
33431 ac_config_commands="$ac_config_commands lib/Makefile"
33432
33433
33434 ac_config_commands="$ac_config_commands runtime/Makefile"
33435
33436
33437 ac_config_commands="$ac_config_commands test/Makefile"
33438
33439
33440 ac_config_commands="$ac_config_commands test/Makefile.tests"
33441
33442
33443 ac_config_commands="$ac_config_commands tools/Makefile"
33444
33445
33446 ac_config_commands="$ac_config_commands utils/Makefile"
33447
33448
33449 ac_config_commands="$ac_config_commands projects/Makefile"
33450
33451
33452
33453 cat >confcache <<\_ACEOF
33454 # This file is a shell script that caches the results of configure
33455 # tests run on this system so they can be shared between configure
33456 # scripts and configure runs, see configure's option --config-cache.
33457 # It is not useful on other systems.  If it contains results you don't
33458 # want to keep, you may remove or edit it.
33459 #
33460 # config.status only pays attention to the cache file if you give it
33461 # the --recheck option to rerun configure.
33462 #
33463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33465 # following values.
33466
33467 _ACEOF
33468
33469 # The following way of writing the cache mishandles newlines in values,
33470 # but we know of no workaround that is simple, portable, and efficient.
33471 # So, we kill variables containing newlines.
33472 # Ultrix sh set writes to stderr and can't be redirected directly,
33473 # and sets the high bit in the cache file unless we assign to the vars.
33474 (
33475   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33476     eval ac_val=\$$ac_var
33477     case $ac_val in #(
33478     *${as_nl}*)
33479       case $ac_var in #(
33480       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33482       esac
33483       case $ac_var in #(
33484       _ | IFS | as_nl) ;; #(
33485       *) $as_unset $ac_var ;;
33486       esac ;;
33487     esac
33488   done
33489
33490   (set) 2>&1 |
33491     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33492     *${as_nl}ac_space=\ *)
33493       # `set' does not quote correctly, so add quotes (double-quote
33494       # substitution turns \\\\ into \\, and sed turns \\ into \).
33495       sed -n \
33496         "s/'/'\\\\''/g;
33497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33498       ;; #(
33499     *)
33500       # `set' quotes correctly as required by POSIX, so do not add quotes.
33501       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33502       ;;
33503     esac |
33504     sort
33505 ) |
33506   sed '
33507      /^ac_cv_env_/b end
33508      t clear
33509      :clear
33510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33511      t end
33512      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33513      :end' >>confcache
33514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33515   if test -w "$cache_file"; then
33516     test "x$cache_file" != "x/dev/null" &&
33517       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33518 echo "$as_me: updating cache $cache_file" >&6;}
33519     cat confcache >$cache_file
33520   else
33521     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33523   fi
33524 fi
33525 rm -f confcache
33526
33527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33528 # Let make expand exec_prefix.
33529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33530
33531 DEFS=-DHAVE_CONFIG_H
33532
33533 ac_libobjs=
33534 ac_ltlibobjs=
33535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33536   # 1. Remove the extension, and $U if already installed.
33537   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33538   ac_i=`echo "$ac_i" | sed "$ac_script"`
33539   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33540   #    will be set to the directory where LIBOBJS objects are built.
33541   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33542   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33543 done
33544 LIBOBJS=$ac_libobjs
33545
33546 LTLIBOBJS=$ac_ltlibobjs
33547
33548
33549 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33550   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33551 Usually this means the macro was only invoked conditionally." >&5
33552 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33553 Usually this means the macro was only invoked conditionally." >&2;}
33554    { (exit 1); exit 1; }; }
33555 fi
33556 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33557   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33558 Usually this means the macro was only invoked conditionally." >&5
33559 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33560 Usually this means the macro was only invoked conditionally." >&2;}
33561    { (exit 1); exit 1; }; }
33562 fi
33563
33564 : ${CONFIG_STATUS=./config.status}
33565 ac_clean_files_save=$ac_clean_files
33566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33567 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33568 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33569 cat >$CONFIG_STATUS <<_ACEOF
33570 #! $SHELL
33571 # Generated by $as_me.
33572 # Run this file to recreate the current configuration.
33573 # Compiler output produced by configure, useful for debugging
33574 # configure, is in config.log if it exists.
33575
33576 debug=false
33577 ac_cs_recheck=false
33578 ac_cs_silent=false
33579 SHELL=\${CONFIG_SHELL-$SHELL}
33580 _ACEOF
33581
33582 cat >>$CONFIG_STATUS <<\_ACEOF
33583 ## --------------------- ##
33584 ## M4sh Initialization.  ##
33585 ## --------------------- ##
33586
33587 # Be Bourne compatible
33588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33589   emulate sh
33590   NULLCMD=:
33591   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33592   # is contrary to our usage.  Disable this feature.
33593   alias -g '${1+"$@"}'='"$@"'
33594   setopt NO_GLOB_SUBST
33595 else
33596   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33597 fi
33598 BIN_SH=xpg4; export BIN_SH # for Tru64
33599 DUALCASE=1; export DUALCASE # for MKS sh
33600
33601
33602 # PATH needs CR
33603 # Avoid depending upon Character Ranges.
33604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33607 as_cr_digits='0123456789'
33608 as_cr_alnum=$as_cr_Letters$as_cr_digits
33609
33610 # The user is always right.
33611 if test "${PATH_SEPARATOR+set}" != set; then
33612   echo "#! /bin/sh" >conf$$.sh
33613   echo  "exit 0"   >>conf$$.sh
33614   chmod +x conf$$.sh
33615   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33616     PATH_SEPARATOR=';'
33617   else
33618     PATH_SEPARATOR=:
33619   fi
33620   rm -f conf$$.sh
33621 fi
33622
33623 # Support unset when possible.
33624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33625   as_unset=unset
33626 else
33627   as_unset=false
33628 fi
33629
33630
33631 # IFS
33632 # We need space, tab and new line, in precisely that order.  Quoting is
33633 # there to prevent editors from complaining about space-tab.
33634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33635 # splitting by setting IFS to empty value.)
33636 as_nl='
33637 '
33638 IFS=" ""        $as_nl"
33639
33640 # Find who we are.  Look in the path if we contain no directory separator.
33641 case $0 in
33642   *[\\/]* ) as_myself=$0 ;;
33643   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33644 for as_dir in $PATH
33645 do
33646   IFS=$as_save_IFS
33647   test -z "$as_dir" && as_dir=.
33648   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33649 done
33650 IFS=$as_save_IFS
33651
33652      ;;
33653 esac
33654 # We did not find ourselves, most probably we were run as `sh COMMAND'
33655 # in which case we are not to be found in the path.
33656 if test "x$as_myself" = x; then
33657   as_myself=$0
33658 fi
33659 if test ! -f "$as_myself"; then
33660   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33661   { (exit 1); exit 1; }
33662 fi
33663
33664 # Work around bugs in pre-3.0 UWIN ksh.
33665 for as_var in ENV MAIL MAILPATH
33666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33667 done
33668 PS1='$ '
33669 PS2='> '
33670 PS4='+ '
33671
33672 # NLS nuisances.
33673 for as_var in \
33674   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33675   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33676   LC_TELEPHONE LC_TIME
33677 do
33678   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33679     eval $as_var=C; export $as_var
33680   else
33681     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33682   fi
33683 done
33684
33685 # Required to use basename.
33686 if expr a : '\(a\)' >/dev/null 2>&1 &&
33687    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33688   as_expr=expr
33689 else
33690   as_expr=false
33691 fi
33692
33693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33694   as_basename=basename
33695 else
33696   as_basename=false
33697 fi
33698
33699
33700 # Name of the executable.
33701 as_me=`$as_basename -- "$0" ||
33702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33703          X"$0" : 'X\(//\)$' \| \
33704          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33705 echo X/"$0" |
33706     sed '/^.*\/\([^/][^/]*\)\/*$/{
33707             s//\1/
33708             q
33709           }
33710           /^X\/\(\/\/\)$/{
33711             s//\1/
33712             q
33713           }
33714           /^X\/\(\/\).*/{
33715             s//\1/
33716             q
33717           }
33718           s/.*/./; q'`
33719
33720 # CDPATH.
33721 $as_unset CDPATH
33722
33723
33724
33725   as_lineno_1=$LINENO
33726   as_lineno_2=$LINENO
33727   test "x$as_lineno_1" != "x$as_lineno_2" &&
33728   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33729
33730   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33731   # uniformly replaced by the line number.  The first 'sed' inserts a
33732   # line-number line after each line using $LINENO; the second 'sed'
33733   # does the real work.  The second script uses 'N' to pair each
33734   # line-number line with the line containing $LINENO, and appends
33735   # trailing '-' during substitution so that $LINENO is not a special
33736   # case at line end.
33737   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33738   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33739   # E. McMahon (1931-1989) for sed's syntax.  :-)
33740   sed -n '
33741     p
33742     /[$]LINENO/=
33743   ' <$as_myself |
33744     sed '
33745       s/[$]LINENO.*/&-/
33746       t lineno
33747       b
33748       :lineno
33749       N
33750       :loop
33751       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33752       t loop
33753       s/-\n.*//
33754     ' >$as_me.lineno &&
33755   chmod +x "$as_me.lineno" ||
33756     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33757    { (exit 1); exit 1; }; }
33758
33759   # Don't try to exec as it changes $[0], causing all sort of problems
33760   # (the dirname of $[0] is not the place where we might find the
33761   # original and so on.  Autoconf is especially sensitive to this).
33762   . "./$as_me.lineno"
33763   # Exit status is that of the last command.
33764   exit
33765 }
33766
33767
33768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33769   as_dirname=dirname
33770 else
33771   as_dirname=false
33772 fi
33773
33774 ECHO_C= ECHO_N= ECHO_T=
33775 case `echo -n x` in
33776 -n*)
33777   case `echo 'x\c'` in
33778   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33779   *)   ECHO_C='\c';;
33780   esac;;
33781 *)
33782   ECHO_N='-n';;
33783 esac
33784
33785 if expr a : '\(a\)' >/dev/null 2>&1 &&
33786    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33787   as_expr=expr
33788 else
33789   as_expr=false
33790 fi
33791
33792 rm -f conf$$ conf$$.exe conf$$.file
33793 if test -d conf$$.dir; then
33794   rm -f conf$$.dir/conf$$.file
33795 else
33796   rm -f conf$$.dir
33797   mkdir conf$$.dir
33798 fi
33799 echo >conf$$.file
33800 if ln -s conf$$.file conf$$ 2>/dev/null; then
33801   as_ln_s='ln -s'
33802   # ... but there are two gotchas:
33803   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33804   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33805   # In both cases, we have to default to `cp -p'.
33806   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33807     as_ln_s='cp -p'
33808 elif ln conf$$.file conf$$ 2>/dev/null; then
33809   as_ln_s=ln
33810 else
33811   as_ln_s='cp -p'
33812 fi
33813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33814 rmdir conf$$.dir 2>/dev/null
33815
33816 if mkdir -p . 2>/dev/null; then
33817   as_mkdir_p=:
33818 else
33819   test -d ./-p && rmdir ./-p
33820   as_mkdir_p=false
33821 fi
33822
33823 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33824 # systems may use methods other than mode bits to determine executability.
33825 cat >conf$$.file <<_ASEOF
33826 #! /bin/sh
33827 exit 0
33828 _ASEOF
33829 chmod +x conf$$.file
33830 if test -x conf$$.file >/dev/null 2>&1; then
33831   as_executable_p="test -x"
33832 else
33833   as_executable_p=:
33834 fi
33835 rm -f conf$$.file
33836
33837 # Sed expression to map a string onto a valid CPP name.
33838 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33839
33840 # Sed expression to map a string onto a valid variable name.
33841 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33842
33843
33844 exec 6>&1
33845
33846 # Save the log message, to keep $[0] and so on meaningful, and to
33847 # report actual input values of CONFIG_FILES etc. instead of their
33848 # values after options handling.
33849 ac_log="
33850 This file was extended by llvm $as_me 2.0cvs, which was
33851 generated by GNU Autoconf 2.60.  Invocation command line was
33852
33853   CONFIG_FILES    = $CONFIG_FILES
33854   CONFIG_HEADERS  = $CONFIG_HEADERS
33855   CONFIG_LINKS    = $CONFIG_LINKS
33856   CONFIG_COMMANDS = $CONFIG_COMMANDS
33857   $ $0 $@
33858
33859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33860 "
33861
33862 _ACEOF
33863
33864 cat >>$CONFIG_STATUS <<_ACEOF
33865 # Files that config.status was made for.
33866 config_files="$ac_config_files"
33867 config_headers="$ac_config_headers"
33868 config_commands="$ac_config_commands"
33869
33870 _ACEOF
33871
33872 cat >>$CONFIG_STATUS <<\_ACEOF
33873 ac_cs_usage="\
33874 \`$as_me' instantiates files from templates according to the
33875 current configuration.
33876
33877 Usage: $0 [OPTIONS] [FILE]...
33878
33879   -h, --help       print this help, then exit
33880   -V, --version    print version number, then exit
33881   -q, --quiet      do not print progress messages
33882   -d, --debug      don't remove temporary files
33883       --recheck    update $as_me by reconfiguring in the same conditions
33884   --file=FILE[:TEMPLATE]
33885                    instantiate the configuration file FILE
33886   --header=FILE[:TEMPLATE]
33887                    instantiate the configuration header FILE
33888
33889 Configuration files:
33890 $config_files
33891
33892 Configuration headers:
33893 $config_headers
33894
33895 Configuration commands:
33896 $config_commands
33897
33898 Report bugs to <bug-autoconf@gnu.org>."
33899
33900 _ACEOF
33901 cat >>$CONFIG_STATUS <<_ACEOF
33902 ac_cs_version="\\
33903 llvm config.status 2.0cvs
33904 configured by $0, generated by GNU Autoconf 2.60,
33905   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33906
33907 Copyright (C) 2006 Free Software Foundation, Inc.
33908 This config.status script is free software; the Free Software Foundation
33909 gives unlimited permission to copy, distribute and modify it."
33910
33911 ac_pwd='$ac_pwd'
33912 srcdir='$srcdir'
33913 INSTALL='$INSTALL'
33914 _ACEOF
33915
33916 cat >>$CONFIG_STATUS <<\_ACEOF
33917 # If no file are specified by the user, then we need to provide default
33918 # value.  By we need to know if files were specified by the user.
33919 ac_need_defaults=:
33920 while test $# != 0
33921 do
33922   case $1 in
33923   --*=*)
33924     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33925     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33926     ac_shift=:
33927     ;;
33928   *)
33929     ac_option=$1
33930     ac_optarg=$2
33931     ac_shift=shift
33932     ;;
33933   esac
33934
33935   case $ac_option in
33936   # Handling of the options.
33937   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33938     ac_cs_recheck=: ;;
33939   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33940     echo "$ac_cs_version"; exit ;;
33941   --debug | --debu | --deb | --de | --d | -d )
33942     debug=: ;;
33943   --file | --fil | --fi | --f )
33944     $ac_shift
33945     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33946     ac_need_defaults=false;;
33947   --header | --heade | --head | --hea )
33948     $ac_shift
33949     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33950     ac_need_defaults=false;;
33951   --he | --h)
33952     # Conflict between --help and --header
33953     { echo "$as_me: error: ambiguous option: $1
33954 Try \`$0 --help' for more information." >&2
33955    { (exit 1); exit 1; }; };;
33956   --help | --hel | -h )
33957     echo "$ac_cs_usage"; exit ;;
33958   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33959   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33960     ac_cs_silent=: ;;
33961
33962   # This is an error.
33963   -*) { echo "$as_me: error: unrecognized option: $1
33964 Try \`$0 --help' for more information." >&2
33965    { (exit 1); exit 1; }; } ;;
33966
33967   *) ac_config_targets="$ac_config_targets $1"
33968      ac_need_defaults=false ;;
33969
33970   esac
33971   shift
33972 done
33973
33974 ac_configure_extra_args=
33975
33976 if $ac_cs_silent; then
33977   exec 6>/dev/null
33978   ac_configure_extra_args="$ac_configure_extra_args --silent"
33979 fi
33980
33981 _ACEOF
33982 cat >>$CONFIG_STATUS <<_ACEOF
33983 if \$ac_cs_recheck; then
33984   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33985   CONFIG_SHELL=$SHELL
33986   export CONFIG_SHELL
33987   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33988 fi
33989
33990 _ACEOF
33991 cat >>$CONFIG_STATUS <<\_ACEOF
33992 exec 5>>config.log
33993 {
33994   echo
33995   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33996 ## Running $as_me. ##
33997 _ASBOX
33998   echo "$ac_log"
33999 } >&5
34000
34001 _ACEOF
34002 cat >>$CONFIG_STATUS <<_ACEOF
34003 #
34004 # INIT-COMMANDS
34005 #
34006 llvm_src="${srcdir}"
34007
34008 _ACEOF
34009
34010 cat >>$CONFIG_STATUS <<\_ACEOF
34011
34012 # Handling of arguments.
34013 for ac_config_target in $ac_config_targets
34014 do
34015   case $ac_config_target in
34016     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34017     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34018     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34019     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34020     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34021     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34022     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34023     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34024     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34025     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34026     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34027     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34028     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34029     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34030     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34031     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34032     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34033     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34034     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34035     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34036
34037   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34038 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34039    { (exit 1); exit 1; }; };;
34040   esac
34041 done
34042
34043
34044 # If the user did not use the arguments to specify the items to instantiate,
34045 # then the envvar interface is used.  Set only those that are not.
34046 # We use the long form for the default assignment because of an extremely
34047 # bizarre bug on SunOS 4.1.3.
34048 if $ac_need_defaults; then
34049   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34050   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34051   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34052 fi
34053
34054 # Have a temporary directory for convenience.  Make it in the build tree
34055 # simply because there is no reason against having it here, and in addition,
34056 # creating and moving files from /tmp can sometimes cause problems.
34057 # Hook for its removal unless debugging.
34058 # Note that there is a small window in which the directory will not be cleaned:
34059 # after its creation but before its name has been assigned to `$tmp'.
34060 $debug ||
34061 {
34062   tmp=
34063   trap 'exit_status=$?
34064   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34065 ' 0
34066   trap '{ (exit 1); exit 1; }' 1 2 13 15
34067 }
34068 # Create a (secure) tmp directory for tmp files.
34069
34070 {
34071   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34072   test -n "$tmp" && test -d "$tmp"
34073 }  ||
34074 {
34075   tmp=./conf$$-$RANDOM
34076   (umask 077 && mkdir "$tmp")
34077 } ||
34078 {
34079    echo "$me: cannot create a temporary directory in ." >&2
34080    { (exit 1); exit 1; }
34081 }
34082
34083 #
34084 # Set up the sed scripts for CONFIG_FILES section.
34085 #
34086
34087 # No need to generate the scripts if there are no CONFIG_FILES.
34088 # This happens for instance when ./config.status config.h
34089 if test -n "$CONFIG_FILES"; then
34090
34091 _ACEOF
34092
34093
34094
34095 ac_delim='%!_!# '
34096 for ac_last_try in false false false false false :; do
34097   cat >conf$$subs.sed <<_ACEOF
34098 SHELL!$SHELL$ac_delim
34099 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34100 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34101 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34102 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34103 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34104 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34105 exec_prefix!$exec_prefix$ac_delim
34106 prefix!$prefix$ac_delim
34107 program_transform_name!$program_transform_name$ac_delim
34108 bindir!$bindir$ac_delim
34109 sbindir!$sbindir$ac_delim
34110 libexecdir!$libexecdir$ac_delim
34111 datarootdir!$datarootdir$ac_delim
34112 datadir!$datadir$ac_delim
34113 sysconfdir!$sysconfdir$ac_delim
34114 sharedstatedir!$sharedstatedir$ac_delim
34115 localstatedir!$localstatedir$ac_delim
34116 includedir!$includedir$ac_delim
34117 oldincludedir!$oldincludedir$ac_delim
34118 docdir!$docdir$ac_delim
34119 infodir!$infodir$ac_delim
34120 htmldir!$htmldir$ac_delim
34121 dvidir!$dvidir$ac_delim
34122 pdfdir!$pdfdir$ac_delim
34123 psdir!$psdir$ac_delim
34124 libdir!$libdir$ac_delim
34125 localedir!$localedir$ac_delim
34126 mandir!$mandir$ac_delim
34127 DEFS!$DEFS$ac_delim
34128 ECHO_C!$ECHO_C$ac_delim
34129 ECHO_N!$ECHO_N$ac_delim
34130 ECHO_T!$ECHO_T$ac_delim
34131 LIBS!$LIBS$ac_delim
34132 build_alias!$build_alias$ac_delim
34133 host_alias!$host_alias$ac_delim
34134 target_alias!$target_alias$ac_delim
34135 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34136 subdirs!$subdirs$ac_delim
34137 build!$build$ac_delim
34138 build_cpu!$build_cpu$ac_delim
34139 build_vendor!$build_vendor$ac_delim
34140 build_os!$build_os$ac_delim
34141 host!$host$ac_delim
34142 host_cpu!$host_cpu$ac_delim
34143 host_vendor!$host_vendor$ac_delim
34144 host_os!$host_os$ac_delim
34145 target!$target$ac_delim
34146 target_cpu!$target_cpu$ac_delim
34147 target_vendor!$target_vendor$ac_delim
34148 target_os!$target_os$ac_delim
34149 OS!$OS$ac_delim
34150 LINKALL!$LINKALL$ac_delim
34151 NOLINKALL!$NOLINKALL$ac_delim
34152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34154 ARCH!$ARCH$ac_delim
34155 ENDIAN!$ENDIAN$ac_delim
34156 CC!$CC$ac_delim
34157 CFLAGS!$CFLAGS$ac_delim
34158 LDFLAGS!$LDFLAGS$ac_delim
34159 CPPFLAGS!$CPPFLAGS$ac_delim
34160 ac_ct_CC!$ac_ct_CC$ac_delim
34161 EXEEXT!$EXEEXT$ac_delim
34162 OBJEXT!$OBJEXT$ac_delim
34163 CPP!$CPP$ac_delim
34164 GREP!$GREP$ac_delim
34165 EGREP!$EGREP$ac_delim
34166 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34167 BUILD_CC!$BUILD_CC$ac_delim
34168 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34169 CVSBUILD!$CVSBUILD$ac_delim
34170 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34171 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34172 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34173 JIT!$JIT$ac_delim
34174 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34175 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34176 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34177 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34178 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34179 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34180 CXX!$CXX$ac_delim
34181 CXXFLAGS!$CXXFLAGS$ac_delim
34182 ac_ct_CXX!$ac_ct_CXX$ac_delim
34183 LEX!$LEX$ac_delim
34184 LEXLIB!$LEXLIB$ac_delim
34185 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34186 FLEX!$FLEX$ac_delim
34187 YACC!$YACC$ac_delim
34188 YFLAGS!$YFLAGS$ac_delim
34189 BISON!$BISON$ac_delim
34190 NM!$NM$ac_delim
34191 ifGNUmake!$ifGNUmake$ac_delim
34192 LN_S!$LN_S$ac_delim
34193 CMP!$CMP$ac_delim
34194 CP!$CP$ac_delim
34195 _ACEOF
34196
34197   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34198     break
34199   elif $ac_last_try; then
34200     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34202    { (exit 1); exit 1; }; }
34203   else
34204     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34205   fi
34206 done
34207
34208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34209 if test -n "$ac_eof"; then
34210   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34211   ac_eof=`expr $ac_eof + 1`
34212 fi
34213
34214 cat >>$CONFIG_STATUS <<_ACEOF
34215 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34217 _ACEOF
34218 sed '
34219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34220 s/^/s,@/; s/!/@,|#_!!_#|/
34221 :n
34222 t n
34223 s/'"$ac_delim"'$/,g/; t
34224 s/$/\\/; p
34225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34226 ' >>$CONFIG_STATUS <conf$$subs.sed
34227 rm -f conf$$subs.sed
34228 cat >>$CONFIG_STATUS <<_ACEOF
34229 CEOF$ac_eof
34230 _ACEOF
34231
34232
34233 ac_delim='%!_!# '
34234 for ac_last_try in false false false false false :; do
34235   cat >conf$$subs.sed <<_ACEOF
34236 DATE!$DATE$ac_delim
34237 FIND!$FIND$ac_delim
34238 MKDIR!$MKDIR$ac_delim
34239 MV!$MV$ac_delim
34240 RANLIB!$RANLIB$ac_delim
34241 RM!$RM$ac_delim
34242 SED!$SED$ac_delim
34243 TAR!$TAR$ac_delim
34244 BINPWD!$BINPWD$ac_delim
34245 GRAPHVIZ!$GRAPHVIZ$ac_delim
34246 DOT!$DOT$ac_delim
34247 GV!$GV$ac_delim
34248 DOTTY!$DOTTY$ac_delim
34249 PERL!$PERL$ac_delim
34250 HAVE_PERL!$HAVE_PERL$ac_delim
34251 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34252 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34253 INSTALL_DATA!$INSTALL_DATA$ac_delim
34254 BZIP2!$BZIP2$ac_delim
34255 DOXYGEN!$DOXYGEN$ac_delim
34256 GROFF!$GROFF$ac_delim
34257 GZIP!$GZIP$ac_delim
34258 POD2HTML!$POD2HTML$ac_delim
34259 POD2MAN!$POD2MAN$ac_delim
34260 RUNTEST!$RUNTEST$ac_delim
34261 TCLSH!$TCLSH$ac_delim
34262 ZIP!$ZIP$ac_delim
34263 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34264 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34265 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34266 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34267 LIBADD_DL!$LIBADD_DL$ac_delim
34268 ECHO!$ECHO$ac_delim
34269 AR!$AR$ac_delim
34270 STRIP!$STRIP$ac_delim
34271 CXXCPP!$CXXCPP$ac_delim
34272 F77!$F77$ac_delim
34273 FFLAGS!$FFLAGS$ac_delim
34274 ac_ct_F77!$ac_ct_F77$ac_delim
34275 LIBTOOL!$LIBTOOL$ac_delim
34276 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34277 LLVMGCC!$LLVMGCC$ac_delim
34278 LLVMGXX!$LLVMGXX$ac_delim
34279 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34280 ALLOCA!$ALLOCA$ac_delim
34281 MMAP_FILE!$MMAP_FILE$ac_delim
34282 LLVMCC1!$LLVMCC1$ac_delim
34283 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34284 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34285 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34286 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34287 SHLIBEXT!$SHLIBEXT$ac_delim
34288 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34289 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34290 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34291 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34292 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34293 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34294 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34295 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34296 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34297 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34298 LIBOBJS!$LIBOBJS$ac_delim
34299 LTLIBOBJS!$LTLIBOBJS$ac_delim
34300 _ACEOF
34301
34302   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
34303     break
34304   elif $ac_last_try; then
34305     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34307    { (exit 1); exit 1; }; }
34308   else
34309     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34310   fi
34311 done
34312
34313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34314 if test -n "$ac_eof"; then
34315   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34316   ac_eof=`expr $ac_eof + 1`
34317 fi
34318
34319 cat >>$CONFIG_STATUS <<_ACEOF
34320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34322 _ACEOF
34323 sed '
34324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34325 s/^/s,@/; s/!/@,|#_!!_#|/
34326 :n
34327 t n
34328 s/'"$ac_delim"'$/,g/; t
34329 s/$/\\/; p
34330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34331 ' >>$CONFIG_STATUS <conf$$subs.sed
34332 rm -f conf$$subs.sed
34333 cat >>$CONFIG_STATUS <<_ACEOF
34334 :end
34335 s/|#_!!_#|//g
34336 CEOF$ac_eof
34337 _ACEOF
34338
34339
34340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34342 # trailing colons and then remove the whole line if VPATH becomes empty
34343 # (actually we leave an empty line to preserve line numbers).
34344 if test "x$srcdir" = x.; then
34345   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34346 s/:*\$(srcdir):*/:/
34347 s/:*\${srcdir}:*/:/
34348 s/:*@srcdir@:*/:/
34349 s/^\([^=]*=[     ]*\):*/\1/
34350 s/:*$//
34351 s/^[^=]*=[       ]*$//
34352 }'
34353 fi
34354
34355 cat >>$CONFIG_STATUS <<\_ACEOF
34356 fi # test -n "$CONFIG_FILES"
34357
34358
34359 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34360 do
34361   case $ac_tag in
34362   :[FHLC]) ac_mode=$ac_tag; continue;;
34363   esac
34364   case $ac_mode$ac_tag in
34365   :[FHL]*:*);;
34366   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34368    { (exit 1); exit 1; }; };;
34369   :[FH]-) ac_tag=-:-;;
34370   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34371   esac
34372   ac_save_IFS=$IFS
34373   IFS=:
34374   set x $ac_tag
34375   IFS=$ac_save_IFS
34376   shift
34377   ac_file=$1
34378   shift
34379
34380   case $ac_mode in
34381   :L) ac_source=$1;;
34382   :[FH])
34383     ac_file_inputs=
34384     for ac_f
34385     do
34386       case $ac_f in
34387       -) ac_f="$tmp/stdin";;
34388       *) # Look for the file first in the build tree, then in the source tree
34389          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34390          # because $ac_f cannot contain `:'.
34391          test -f "$ac_f" ||
34392            case $ac_f in
34393            [\\/$]*) false;;
34394            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34395            esac ||
34396            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34398    { (exit 1); exit 1; }; };;
34399       esac
34400       ac_file_inputs="$ac_file_inputs $ac_f"
34401     done
34402
34403     # Let's still pretend it is `configure' which instantiates (i.e., don't
34404     # use $as_me), people would be surprised to read:
34405     #    /* config.h.  Generated by config.status.  */
34406     configure_input="Generated from "`IFS=:
34407           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34408     if test x"$ac_file" != x-; then
34409       configure_input="$ac_file.  $configure_input"
34410       { echo "$as_me:$LINENO: creating $ac_file" >&5
34411 echo "$as_me: creating $ac_file" >&6;}
34412     fi
34413
34414     case $ac_tag in
34415     *:-:* | *:-) cat >"$tmp/stdin";;
34416     esac
34417     ;;
34418   esac
34419
34420   ac_dir=`$as_dirname -- "$ac_file" ||
34421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34422          X"$ac_file" : 'X\(//\)[^/]' \| \
34423          X"$ac_file" : 'X\(//\)$' \| \
34424          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34425 echo X"$ac_file" |
34426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34427             s//\1/
34428             q
34429           }
34430           /^X\(\/\/\)[^/].*/{
34431             s//\1/
34432             q
34433           }
34434           /^X\(\/\/\)$/{
34435             s//\1/
34436             q
34437           }
34438           /^X\(\/\).*/{
34439             s//\1/
34440             q
34441           }
34442           s/.*/./; q'`
34443   { as_dir="$ac_dir"
34444   case $as_dir in #(
34445   -*) as_dir=./$as_dir;;
34446   esac
34447   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34448     as_dirs=
34449     while :; do
34450       case $as_dir in #(
34451       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34452       *) as_qdir=$as_dir;;
34453       esac
34454       as_dirs="'$as_qdir' $as_dirs"
34455       as_dir=`$as_dirname -- "$as_dir" ||
34456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34457          X"$as_dir" : 'X\(//\)[^/]' \| \
34458          X"$as_dir" : 'X\(//\)$' \| \
34459          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34460 echo X"$as_dir" |
34461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34462             s//\1/
34463             q
34464           }
34465           /^X\(\/\/\)[^/].*/{
34466             s//\1/
34467             q
34468           }
34469           /^X\(\/\/\)$/{
34470             s//\1/
34471             q
34472           }
34473           /^X\(\/\).*/{
34474             s//\1/
34475             q
34476           }
34477           s/.*/./; q'`
34478       test -d "$as_dir" && break
34479     done
34480     test -z "$as_dirs" || eval "mkdir $as_dirs"
34481   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34483    { (exit 1); exit 1; }; }; }
34484   ac_builddir=.
34485
34486 case "$ac_dir" in
34487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34488 *)
34489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34490   # A ".." for each directory in $ac_dir_suffix.
34491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34492   case $ac_top_builddir_sub in
34493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34495   esac ;;
34496 esac
34497 ac_abs_top_builddir=$ac_pwd
34498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34499 # for backward compatibility:
34500 ac_top_builddir=$ac_top_build_prefix
34501
34502 case $srcdir in
34503   .)  # We are building in place.
34504     ac_srcdir=.
34505     ac_top_srcdir=$ac_top_builddir_sub
34506     ac_abs_top_srcdir=$ac_pwd ;;
34507   [\\/]* | ?:[\\/]* )  # Absolute name.
34508     ac_srcdir=$srcdir$ac_dir_suffix;
34509     ac_top_srcdir=$srcdir
34510     ac_abs_top_srcdir=$srcdir ;;
34511   *) # Relative name.
34512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34513     ac_top_srcdir=$ac_top_build_prefix$srcdir
34514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34515 esac
34516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34517
34518
34519   case $ac_mode in
34520   :F)
34521   #
34522   # CONFIG_FILE
34523   #
34524
34525   case $INSTALL in
34526   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34527   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34528   esac
34529 _ACEOF
34530
34531 cat >>$CONFIG_STATUS <<\_ACEOF
34532 # If the template does not know about datarootdir, expand it.
34533 # FIXME: This hack should be removed a few years after 2.60.
34534 ac_datarootdir_hack=; ac_datarootdir_seen=
34535
34536 case `sed -n '/datarootdir/ {
34537   p
34538   q
34539 }
34540 /@datadir@/p
34541 /@docdir@/p
34542 /@infodir@/p
34543 /@localedir@/p
34544 /@mandir@/p
34545 ' $ac_file_inputs` in
34546 *datarootdir*) ac_datarootdir_seen=yes;;
34547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34548   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34550 _ACEOF
34551 cat >>$CONFIG_STATUS <<_ACEOF
34552   ac_datarootdir_hack='
34553   s&@datadir@&$datadir&g
34554   s&@docdir@&$docdir&g
34555   s&@infodir@&$infodir&g
34556   s&@localedir@&$localedir&g
34557   s&@mandir@&$mandir&g
34558     s&\\\${datarootdir}&$datarootdir&g' ;;
34559 esac
34560 _ACEOF
34561
34562 # Neutralize VPATH when `$srcdir' = `.'.
34563 # Shell code in configure.ac might set extrasub.
34564 # FIXME: do we really want to maintain this feature?
34565 cat >>$CONFIG_STATUS <<_ACEOF
34566   sed "$ac_vpsub
34567 $extrasub
34568 _ACEOF
34569 cat >>$CONFIG_STATUS <<\_ACEOF
34570 :t
34571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34572 s&@configure_input@&$configure_input&;t t
34573 s&@top_builddir@&$ac_top_builddir_sub&;t t
34574 s&@srcdir@&$ac_srcdir&;t t
34575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34576 s&@top_srcdir@&$ac_top_srcdir&;t t
34577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34578 s&@builddir@&$ac_builddir&;t t
34579 s&@abs_builddir@&$ac_abs_builddir&;t t
34580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34581 s&@INSTALL@&$ac_INSTALL&;t t
34582 $ac_datarootdir_hack
34583 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34584
34585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34586   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34587   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34588   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34589 which seems to be undefined.  Please make sure it is defined." >&5
34590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34591 which seems to be undefined.  Please make sure it is defined." >&2;}
34592
34593   rm -f "$tmp/stdin"
34594   case $ac_file in
34595   -) cat "$tmp/out"; rm -f "$tmp/out";;
34596   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34597   esac
34598  ;;
34599   :H)
34600   #
34601   # CONFIG_HEADER
34602   #
34603 _ACEOF
34604
34605 # Transform confdefs.h into a sed script `conftest.defines', that
34606 # substitutes the proper values into config.h.in to produce config.h.
34607 rm -f conftest.defines conftest.tail
34608 # First, append a space to every undef/define line, to ease matching.
34609 echo 's/$/ /' >conftest.defines
34610 # Then, protect against being on the right side of a sed subst, or in
34611 # an unquoted here document, in config.status.  If some macros were
34612 # called several times there might be several #defines for the same
34613 # symbol, which is useless.  But do not sort them, since the last
34614 # AC_DEFINE must be honored.
34615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34618 # PARAMS is the parameter list in the macro definition--in most cases, it's
34619 # just an empty string.
34620 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34621 ac_dB='\\)[      (].*,\\1define\\2'
34622 ac_dC=' '
34623 ac_dD=' ,'
34624
34625 uniq confdefs.h |
34626   sed -n '
34627         t rset
34628         :rset
34629         s/^[     ]*#[    ]*define[       ][      ]*//
34630         t ok
34631         d
34632         :ok
34633         s/[\\&,]/\\&/g
34634         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34635         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34636   ' >>conftest.defines
34637
34638 # Remove the space that was appended to ease matching.
34639 # Then replace #undef with comments.  This is necessary, for
34640 # example, in the case of _POSIX_SOURCE, which is predefined and required
34641 # on some systems where configure will not decide to define it.
34642 # (The regexp can be short, since the line contains either #define or #undef.)
34643 echo 's/ $//
34644 s,^[     #]*u.*,/* & */,' >>conftest.defines
34645
34646 # Break up conftest.defines:
34647 ac_max_sed_lines=50
34648
34649 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34650 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34651 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34652 # et cetera.
34653 ac_in='$ac_file_inputs'
34654 ac_out='"$tmp/out1"'
34655 ac_nxt='"$tmp/out2"'
34656
34657 while :
34658 do
34659   # Write a here document:
34660     cat >>$CONFIG_STATUS <<_ACEOF
34661     # First, check the format of the line:
34662     cat >"\$tmp/defines.sed" <<\\CEOF
34663 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34664 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34665 b
34666 :def
34667 _ACEOF
34668   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34669   echo 'CEOF
34670     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34671   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34672   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34673   grep . conftest.tail >/dev/null || break
34674   rm -f conftest.defines
34675   mv conftest.tail conftest.defines
34676 done
34677 rm -f conftest.defines conftest.tail
34678
34679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34680 cat >>$CONFIG_STATUS <<\_ACEOF
34681   if test x"$ac_file" != x-; then
34682     echo "/* $configure_input  */" >"$tmp/config.h"
34683     cat "$ac_result" >>"$tmp/config.h"
34684     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34685       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34686 echo "$as_me: $ac_file is unchanged" >&6;}
34687     else
34688       rm -f $ac_file
34689       mv "$tmp/config.h" $ac_file
34690     fi
34691   else
34692     echo "/* $configure_input  */"
34693     cat "$ac_result"
34694   fi
34695   rm -f "$tmp/out12"
34696  ;;
34697
34698   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34699 echo "$as_me: executing $ac_file commands" >&6;}
34700  ;;
34701   esac
34702
34703
34704   case $ac_file$ac_mode in
34705     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34706    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34707     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34708    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34709     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34710    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34711     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34712    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34713     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34714    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34715     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34716    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34717     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34718    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34719     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34720    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34721     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34722    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34723     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34724    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34725
34726   esac
34727 done # for ac_tag
34728
34729
34730 { (exit 0); exit 0; }
34731 _ACEOF
34732 chmod +x $CONFIG_STATUS
34733 ac_clean_files=$ac_clean_files_save
34734
34735
34736 # configure is writing to config.log, and then calls config.status.
34737 # config.status does its own redirection, appending to config.log.
34738 # Unfortunately, on DOS this fails, as config.log is still kept open
34739 # by configure, so config.status won't be able to write to it; its
34740 # output is simply discarded.  So we exec the FD to /dev/null,
34741 # effectively closing config.log, so it can be properly (re)opened and
34742 # appended to by config.status.  When coming back to configure, we
34743 # need to make the FD available again.
34744 if test "$no_create" != yes; then
34745   ac_cs_success=:
34746   ac_config_status_args=
34747   test "$silent" = yes &&
34748     ac_config_status_args="$ac_config_status_args --quiet"
34749   exec 5>/dev/null
34750   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34751   exec 5>>config.log
34752   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34753   # would make configure fail if this is the last instruction.
34754   $ac_cs_success || { (exit 1); exit 1; }
34755 fi
34756
34757 #
34758 # CONFIG_SUBDIRS section.
34759 #
34760 if test "$no_recursion" != yes; then
34761
34762   # Remove --cache-file and --srcdir arguments so they do not pile up.
34763   ac_sub_configure_args=
34764   ac_prev=
34765   eval "set x $ac_configure_args"
34766   shift
34767   for ac_arg
34768   do
34769     if test -n "$ac_prev"; then
34770       ac_prev=
34771       continue
34772     fi
34773     case $ac_arg in
34774     -cache-file | --cache-file | --cache-fil | --cache-fi \
34775     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34776       ac_prev=cache_file ;;
34777     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34778     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34779     | --c=*)
34780       ;;
34781     --config-cache | -C)
34782       ;;
34783     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34784       ac_prev=srcdir ;;
34785     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34786       ;;
34787     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34788       ac_prev=prefix ;;
34789     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34790       ;;
34791     *)
34792       case $ac_arg in
34793       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34794       esac
34795       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34796     esac
34797   done
34798
34799   # Always prepend --prefix to ensure using the same prefix
34800   # in subdir configurations.
34801   ac_arg="--prefix=$prefix"
34802   case $ac_arg in
34803   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34804   esac
34805   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34806
34807   ac_popdir=`pwd`
34808   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34809
34810     # Do not complain, so a configure script can configure whichever
34811     # parts of a large source tree are present.
34812     test -d "$srcdir/$ac_dir" || continue
34813
34814     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34815     echo "$as_me:$LINENO: $ac_msg" >&5
34816     echo "$ac_msg" >&6
34817     { as_dir="$ac_dir"
34818   case $as_dir in #(
34819   -*) as_dir=./$as_dir;;
34820   esac
34821   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34822     as_dirs=
34823     while :; do
34824       case $as_dir in #(
34825       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34826       *) as_qdir=$as_dir;;
34827       esac
34828       as_dirs="'$as_qdir' $as_dirs"
34829       as_dir=`$as_dirname -- "$as_dir" ||
34830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34831          X"$as_dir" : 'X\(//\)[^/]' \| \
34832          X"$as_dir" : 'X\(//\)$' \| \
34833          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34834 echo X"$as_dir" |
34835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34836             s//\1/
34837             q
34838           }
34839           /^X\(\/\/\)[^/].*/{
34840             s//\1/
34841             q
34842           }
34843           /^X\(\/\/\)$/{
34844             s//\1/
34845             q
34846           }
34847           /^X\(\/\).*/{
34848             s//\1/
34849             q
34850           }
34851           s/.*/./; q'`
34852       test -d "$as_dir" && break
34853     done
34854     test -z "$as_dirs" || eval "mkdir $as_dirs"
34855   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34856 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34857    { (exit 1); exit 1; }; }; }
34858     ac_builddir=.
34859
34860 case "$ac_dir" in
34861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34862 *)
34863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34864   # A ".." for each directory in $ac_dir_suffix.
34865   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34866   case $ac_top_builddir_sub in
34867   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34868   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34869   esac ;;
34870 esac
34871 ac_abs_top_builddir=$ac_pwd
34872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34873 # for backward compatibility:
34874 ac_top_builddir=$ac_top_build_prefix
34875
34876 case $srcdir in
34877   .)  # We are building in place.
34878     ac_srcdir=.
34879     ac_top_srcdir=$ac_top_builddir_sub
34880     ac_abs_top_srcdir=$ac_pwd ;;
34881   [\\/]* | ?:[\\/]* )  # Absolute name.
34882     ac_srcdir=$srcdir$ac_dir_suffix;
34883     ac_top_srcdir=$srcdir
34884     ac_abs_top_srcdir=$srcdir ;;
34885   *) # Relative name.
34886     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34887     ac_top_srcdir=$ac_top_build_prefix$srcdir
34888     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34889 esac
34890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34891
34892
34893     cd "$ac_dir"
34894
34895     # Check for guested configure; otherwise get Cygnus style configure.
34896     if test -f "$ac_srcdir/configure.gnu"; then
34897       ac_sub_configure=$ac_srcdir/configure.gnu
34898     elif test -f "$ac_srcdir/configure"; then
34899       ac_sub_configure=$ac_srcdir/configure
34900     elif test -f "$ac_srcdir/configure.in"; then
34901       # This should be Cygnus configure.
34902       ac_sub_configure=$ac_aux_dir/configure
34903     else
34904       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34906       ac_sub_configure=
34907     fi
34908
34909     # The recursion is here.
34910     if test -n "$ac_sub_configure"; then
34911       # Make the cache file name correct relative to the subdirectory.
34912       case $cache_file in
34913       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34914       *) # Relative name.
34915         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34916       esac
34917
34918       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34919 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34920       # The eval makes quoting arguments work.
34921       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34922            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34923         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34924 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34925    { (exit 1); exit 1; }; }
34926     fi
34927
34928     cd "$ac_popdir"
34929   done
34930 fi
34931
34932
34933 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34934  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34935 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34936  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34937 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
34938  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34939 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34940  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34941 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34942  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34943 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
34944 fi